body{
  margin: 0;
  text-align: center;
  overflow-x: hidden;
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-weight: auto;
  font-style: normal;
  color: #262262;
}

html{
  scroll-behavior: smooth;
}

section{
  padding: 10px;
  padding-bottom: 30px;
  border-top-style:double  ;
  border-color: #262262;
  padding-top: 30px;
}

h2 {
  font-size: 25px;
  margin-top: 10px;
  margin-bottom: 10px;
}

h5{
  margin: 0px;
  margin-bottom: 10px;
}

p{
  font-size: 16px;
  margin-top: 5px;
}

ul{
  list-style-position: inside; /* 点を内側に */
  padding: 0px;
}

nav {
  margin-bottom: 40px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 5;
  background-color: #fff;
}
  
nav ul {
  text-align: center; 
  padding-left: 0px;
}

nav li {
  display: inline-block;
  padding: 0;
  border: #ffffff solid 2px;
  border-radius: 20px;
  overflow: hidden;
}

nav a {
  display: block;
  padding: 4px 15px;
  text-decoration: none;
  color: #ffffff;
  background-image: linear-gradient(to right, transparent 50%, #ffffff 50%);
  background-size: 200% auto;
  background-position: 0 0;
  transition: 0.3s;
  width: 150px;
} 

nav li {
  margin-bottom: 6px;
}
 
.hamburger {
  position: fixed;
  top: 10px;
  right: 20px;
  width: 30px;
  cursor: pointer;
  z-index: 20;
  background-color: #262262;
  padding: 5px;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #ffffff;
  margin: 5px 0;
  transition: 0.4s;
}

.hamburger.active span:nth-child(1) {transform: rotate(45deg) translate(5px, 5px);}
.hamburger.active span:nth-child(2) {opacity: 0;}
.hamburger.active span:nth-child(3) {transform: rotate(-45deg) translate(6px, -6px);}

.menu {
  position: fixed;
  top: -150%;
  right: 0;
  width: 250px;
  height: 110vh;
  background-color:#262262;
  padding: 20px;
  box-sizing: border-box;
  z-index: 5;
  transition: top 0.5s ease;
}

.menu.open {
  top: 0;
  padding-top: 40px;
  border-left-style: dotted;
  border-right-style: dotted;
  border-color: #ffffff;
}

nav a:hover {
  color:#262262;
  background-position: -100% 0;
}

@media screen and (max-height: 630px){ 
 .menu{
 width: 360px;
}

.menu ul{
 width: 200px;
 margin: 0px;
 float: left;
 
}

.menu.menu.open{
  padding-top: 10px;
  padding-left: 3px;
}

.menu img{
  width: 100px;
  margin-right: 3;
  float: right;
 margin-top: 35%;
}

.menu a{
  font-size: 11px;
  width: 130px;
}

.menu li{
  margin: 0px;
  margin-bottom: 3px;
}
}

.menu ul{
  margin-bottom: 5px;
}

header {
  background-repeat: no-repeat;
  background-size:cover;
  background-position: center;
}


.slideshow {
  width: 100%;
  height: 110vh;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  animation: slideShowPC 20s infinite;
  transition: background-image 0.5s ease-in-out;
  background-color: #c5c5c500;
  background-blend-mode: overlay;
}

/* PC・タブレット用 */
@keyframes slideShowPC {
  0%   { background-image: url("picture/suraido/3.jpg"); }
  20%  { background-image: url("picture/suraido/8.jpg"); }
  40%  { background-image: url("picture/suraido/5.jpg"); }
  60%  { background-image: url("picture/suraido/7.jpg"); }
  80%  { background-image: url("picture/suraido/1.jpg"); }
  100% { background-image: url("picture/suraido/3.jpg"); }
}

/* スマホ用 */
@media screen and (max-width: 600px) {
  .slideshow {
    animation: slideShowSP 20s infinite;
  }

  @keyframes slideShowSP {
    0%   { background-image: url("picture/suraido/1t.jpg"); }
    20%  { background-image: url("picture/suraido/2t.jpg"); }
    40%  { background-image: url("picture/suraido/3t.jpg"); }
    60%  { background-image: url("picture/suraido/4t.jpg"); }
    80%  { background-image: url("picture/suraido/5t.jpg"); }
    100% { background-image: url("picture/suraido/1t.jpg"); }
  }
}

.taitoru{
  width: 90vmin;
  height: 90vmin;
  text-align: left;
}

.taitoru img{
  width: 55%;
  height: 55%;
  margin-top: 22.5%;
  padding-left: 5%;
}

.posuta- {
  height: 100vmin;
}

@media screen and (min-width: 700px){ 
 #gaiyou p{
  margin-left: 15%;
  margin-right: 15%;
 }
  #gaiyou li{
  margin-left: 15%;
  margin-right: 15%;
 }
  #uketuke p{
  margin-left: 15%;
  margin-right: 15%;
 }
  #uketuke li{
  margin-left: 15%;
  margin-right: 15%;
 }
   #kouen p{
  margin-left: 15%;
  margin-right: 15%;
 }
  #kouen li{
  margin-left: 15%;
  margin-right: 15%;
 }
}

@media screen and (min-width: 1200px){ 
 #gaiyou p{
  margin-left: 23%;
  margin-right: 23%;
 }
  #gaiyou li{
  margin-left: 23%;
  margin-right: 23%;
 }
  #uketuke p{
  margin-left: 23%;
  margin-right: 23%;
 }
  #uketuke li{
  margin-left: 23%;
  margin-right: 23%;
 }
   #kouen p{
  margin-left: 23%;
  margin-right: 23%;
 }
  #kouen li{
  margin-left: 23%;
  margin-right: 23%;
 }
}

li{
  padding-top: 6px;
}

.map img{
  vertical-align:middle;
  width: 45%;
}

@media screen and (max-width: 900px){ 
  .map{
    float:none
  }
  .map img{
    width: 90%;
  }
}

/*タブ切り替え*/
.tab-32 {
  display: flex;
  flex-wrap: wrap;
}

.tab-32 > label {
  flex: 1 1;
  order: -1;
  min-width: 30px;
  padding-left: 3px;
  padding-right: 3px;
  padding-top: 8px;
  padding-bottom: 8px;
  background-color: #f2f2f2;
  color: #454545;
  font-weight: 600;
  font-size: .9em;
  text-align: center;
  cursor: pointer;
}

.tab-32 > label:hover {
  opacity: .8;
}

.tab-32 input {
  display: none;
}

.tab-32 > div {
  display: none;
  width: 100%;
  padding: 1.5em 1em;
  background-color: #fff;
}

.tab-32 label:has(:checked) {
  border-bottom: 4px solid #262262;
  color: #262262;
}

.tab-32 label:has(:checked) + div {
  display: block;
}
/*ここまで*/
/*タブ切り替え*/
.tab-3 {
  display: flex;
  flex-wrap: wrap;
}

.tab-3 > label {
  flex: 1 1;
  order: -1;
  min-width: 30px;
  padding-left: 3px;
  padding-right: 3px;
  padding-top: 8px;
  padding-bottom: 8px;
  background-color: #f2f2f2;
  color: #454545;
  font-weight: 600;
  font-size: .9em;
  text-align: center;
  cursor: pointer;
}

.tab-3 > label:hover {
  opacity: .8;
}

.tab-3 input {
  display: none;
}

.tab-3 > div {
  display: none;
  width: 100%;
  background-color: #fff;
}

.tab-3 label:has(:checked) {
  border-bottom: 4px solid #262262;
  color: #262262;
}

.tab-3 label:has(:checked) + div {
  display: block;
}

.tab-3{
  border-color:  #262262;
  border-style:dotted; 
}

.kakomi{
  border-color:  #262262;
  border-style:dotted; 
}

.tab-32{
  border-color:  #262262;
  border-style:dotted; 
}
/*PC用*/
@media screen and (min-width: 600px){ 
  .tab-3 {
    margin-left: 30px;
    margin-right: 30px;
  }

  .tab-32 {
  margin-left: 30px;
  margin-right: 30px;
  }

  #saigo{
    float: none;
  }
}

#guraund{
  background-color: #d3e9ff;
  color: #000;
}

#abe{
  background-color: #e0f8e5;
  color: #000;
}

#A{
  background-color: #f7e3ed;
  color: #000;
}

#D{
  background-color: #f8f7e1;
  color: #000;
}

/*改行箇所厳選用*/
.nowrap {
  white-space: nowrap;
}
.break {
  display: inline-block;
}
/*ここまで*/

@media (max-width: 700px) {
  .mobile-tab-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px auto;
  }

  /* 矢印ボタン */
  .arrow {
    width: 40px;
    height: 40px;
    background: #262262;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    transition: background 0.2s ease, transform 0.2s ease;
  }

  .arrow:hover {
    background: #3a3aa5;
    transform: scale(1.1);
  }

  /* 左矢印（三角形） */
  .arrow.left::before {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 12px solid #fff;
  }

  /* 右矢印（三角形） */
  .arrow.right::before {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid #fff;
  }

  /* 中央のタブ名表示 */
  .mobile-tab {
    background: #262262;
    color: #fff;
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 20px;
    font-weight: bold;
    min-width: 160px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  }

  #mobileMapContent {
    margin-top: 15px;
    padding: 10px;
    border-radius: 12px;
    background: #fff;
  }
}

/* PC用タブはスマホ幅では非表示 */
@media (max-width: 700px) {
  .tab-3 {
    display: none !important;
  }
  #mobileMapContent {
    display: block; /* スマホで表示 */
  }
}

/* スマホ用タブはPC幅では非表示 */
@media (min-width: 701px) {
  .mobile-tab-wrapper,
  #mobileMapContent {
    display: none !important;
  }
  .tab-3 {
    display: flex; /* PCで表示 */
  }
  .kakomi{
    border-style: none;
  }
}


.mobile-tab{
  width: 180px;
}


.card img{
  width: 88%;
}

#border img{
  border-style: solid;
  border-width: 1px;
}

.card h3{
  margin-top: 10px;
  margin-bottom: 5px;
}

@media screen and (min-width: 1000px){ 

  #saigo{
    float: left;
  }
}

@media screen and (min-width: 1500px){ 
    #saigo{
    float: none;
  }
}

#foto{
  padding-left: 0px;
  padding-right: 0px;
}

/* ブースカードを自動整列（左上詰め） */
/* --- タブ切り替えの基本設定（非表示がデフォルト） --- */
.tab-32 > div {
  display: none;
  width: 100%;
  padding: 1.5em 1em;
  background-color: #fff;
}

/* --- 選択中のタブのみ表示 --- */
/* グリッドレイアウトで自動的に横並び数を調整 */
.tab-32 label:has(:checked) + div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); /* ←重要 */
  gap: 20px;
  justify-items: center;
  align-items: start;
}

/* --- 各カード設定 --- */
.card {
  width: 100%;
  box-sizing: border-box;
}

/* --- 画像調整（見た目をそろえる） --- */
.card img {
  width: 100%;
  height: auto;
  max-width: 360px; /* 横に3～4枚置くときの最大幅 */
  object-fit: cover; /* はみ出しを防いでトリミング */
}

/* --- タイトル間隔など微調整 --- */
.card h3 {
  margin-top: 10px;
  margin-bottom: 5px;
  font-size: 1rem;
}


.card {
  width: 100%;
  box-sizing: border-box;
}

.slide-container {
    width: 100%;
    margin: 50px auto;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.slide-wrapper {
  display: flex;
  animation: slide-flow 50s infinite linear 1s both;
}

.slide{
  width: 400px;
  object-fit:cover;
  border: 1px solid #ddd;
}

@keyframes slide-flow {
     0% {transform: translateX(0);}
 100% {transform: translateX(-100%);}
}

@media screen and (max-width: 500px){ 
.slide{
  width: 300px;
}
}

footer {
  background-color: #262262;
  color: #fff;
  padding: 15px;
  padding-bottom: 20px;
}

footer h2{
  font-size: 36px;
  padding-bottom: 10px;
}

footer h3{
  font-size: 16px;
  margin: 0px;
  margin-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

@media screen and (min-width: 1000px){ 
 footer{
  padding-left: 10%;
  padding-right: 10%;
 }
}

.word-list {
  display: flex;
  flex-wrap: wrap;    /* 単語間で折り返す */
  justify-content: center;
}

.word-list h3{
  font-size: 14px;
}

.word {
  white-space: nowrap;
}

