@charset "utf-8";

body {
  margin: 0;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  background-color: #407BF9;
  color: #333;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  align-items: center;
  background-color: #2C4198;
  height: 4.375rem;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}

.header-content {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  align-items: center;
  padding: 0 1.25rem;
}

header img {
  width: 13.75rem;
}
header img:hover{
  filter: brightness(0.8); /* 80%の明るさ＝少し暗く */
  transition: filter 0.3s ease; /* スムーズな変化 */

}
.header-logo a{
  background-color: transparent;
}
.header-logo a:hover{
  background-color: transparent;
}
header a {
  background-color: #FF5555;
  color: white;
  padding: 0.625rem 1rem;
  border-radius: 0.375rem;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  z-index: 10000;
  transition: background 0.3s;
}

header a:hover{
  background-color: #FF7777;
}


.top-visual {
  position: relative;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
}

.top-visual img {
  width: 100%;
  height: auto;
  display: block;
  z-index: 1;  
}

.top-visual h1 {
  font-size: 2rem;
  margin: 1rem 0;
  line-height: 1.5;
}

.top_bg {
  position: relative;
  width: 100%;
  margin: 0 auto;
  background-image: url("../images/top_bg_w192re.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top center;
  height: auto;
  padding-bottom: 50px;
}

.about-section {
  position: relative;
  width: 46.875rem;
  margin: 3.45rem auto 5rem;
  padding: 2.5rem;
  background-color: #fff;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.2);
  z-index: 2; 
}

.about-section h2 {
  color: #e60033;
  text-align: center;
  font-size: 4.375rem;
}

.about-section p {
  font-size: 1.875rem;
  line-height: 3.75rem;
  font-weight: 500;
}

.search_btn {
  margin: 3.75rem;
}

.search_btn a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  background-color: #1342BE;
  color: white;
  border-radius: 1rem;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.875rem;
  transition: background 0.3s;
  width: 34.5625rem;
  height: 6.375rem;
}

.search_btn a:hover {
  background-color: #335FD8;
}

.kensaku_arrow {
  margin-left: 1.7375rem;
  margin-top: 0;
}

.slider-container {
  width: 100%;
  max-width: 120rem;
  margin: 0 auto;
  overflow: hidden;
}

.slider {
  display: flex;
  gap: 3.5rem;
  transition: none ; /* PCではアニメーションを無効化 */
  will-change: auto;
  transform: none ;/* スライダーの位置を初期化 */
  justify-content: center;
}

.slider img {
  width: 34rem;
  min-width: auto;
  flex-shrink: 0;
  border-radius: 0.5rem;
}

.slider-wrapper {
  overflow: visible; /* PCではみ出し表示を許可 */
  padding: 1.25rem 0;
  background-color: #fff;
}

.prev-btn,
.next-btn {
  display: none;
}

.search-section {
  background-color: rgba(265, 265, 265, 0.8);
  width: 46.875rem;
  margin: 5.625rem auto 0;
  border-radius: 1.25rem;
  text-align: center;
  padding: 2.5rem;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.section-title {
  color: #F54B4B;
  text-align: center;
  font-size: 4.375rem;
  margin: 0;
}

.section-subtitle{
  font-size: 1.875rem;
  color: #212121;
  margin-top: 1rem;
  font-weight: 500;
}

.accordion-container {
  max-width: 50rem;
  margin: 1.875rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.accordion-item {
  margin-bottom: 1rem;
  width: 34.5625rem;
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  height: 5rem;
  text-align: left;
  background-color: #1342BE;
  padding: 1.125rem 4rem;
  font-size: 1.875rem;
  font-weight: bold;
  border: none;
  cursor: pointer;
  outline: none;
  transition: max-height 0.6s ease, background 0.3s;
  border-radius: 1rem;
  color: #fff;
  position: relative;
}

.accordion-header.open {
  border-radius: 1.125rem 1.125rem 0 0;
}

.accordion-header::after {
  content: "";
  position: absolute;
  right: 4rem;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  border-left: 0.625rem solid transparent;
  border-right: 0.625rem solid transparent;
  border-top: 1.25rem solid white;
  transition: transform 0.3s ease;
}

/* 開いたとき（親に .open クラスが付いてるとき） */
.accordion-item.open .accordion-header::after {
  transform: translateY(-50%) rotate(180deg);
}


.accordion-header:hover {
  background-color: #335FD8;
}

.accordion-content {
  background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1rem;
    border: none;
    margin-top: -1px;
    border-radius: 0 0 1.125rem 1.125rem;
    color: #343434;
    box-sizing: border-box;
    margin-top: -1px;

}

.accordion-content.open {
  padding: 1rem;
}
/* アコーディオンに応じた背景高さ更新用 */
.search-bg-wrapper.opened .background-img {
  height: 2000px; /* アコーディオン最大展開時に必要な高さ */
}

.accordion-item.open .accordion-header {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}


.bottom-spacer {
  height: 2rem;
}
.border-line {
  margin: 2rem 4rem;
  padding-top: 2rem;
  border-top: 1px solid #343434;
}

.shop-container {
  padding: 0 6.25rem;
  margin-top: 1.25rem;
}

.shop-text {
  display: flex;
  border-bottom: solid 1px #343434;
}

.shop-text p {
  margin: 0.59375rem;
  width: 22%;
  text-align: left;
  font-size: 1rem;
}

.text_left {
  white-space: nowrap;
}

.buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.shop_btn {
  display: block;
  width: 20.125rem;
  height: 2.8125rem;
  color: #F54B4B;
  border: solid 0.09375rem #F54B4B;
  border-radius: 0.5rem;
  text-decoration: none;
  margin-top: 1.25rem;
  font-weight: 500;
  text-align: center;
  line-height: 2.8125rem;
  transition: background 0.3s;
}
.shop_btn:hover{
  background-color: #F54B4B;
  color: #ffffff;
}
.reserve-btn {
  display: block;
  width: 20.125rem;
  height: 6.375rem;
  color: #fff;
  background-color: #F54B4B;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 500;
  text-align: center;
  line-height: 6.375rem;
  font-size: 1.875rem;
  transition: background 0.3s;
}
.reserve-btn:hover{
  background-color: #D84040; /* やや濃い赤に変化 */
}
.news-section {
  padding: 3.125rem 0;
  text-align: center;
  background-color: #fff;
  width: 46.875rem;
  margin: 0 auto 3.75rem;
  border-radius: 1.25rem;
  margin-top: 3.75rem;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.news-section h2 {
  margin-bottom: 1rem;
}

.news-list {
  max-width: 31.25rem;
  margin: 0 auto;
  text-align: left;
  font-size: 1.125rem;
  padding: 0;
}

.news-list a {
  text-decoration: none;
  color: #212121;
  padding: 1rem 0;
}

.news-list li {
  border-bottom: 1px solid #ddd;
  list-style: none;
  transition: background 0.3s;
}

.news-list li:hover {
  background-color: #ddd;
}

.news-item {
  display: flex;
  align-items: flex-start;
  gap: 1em;
  text-decoration: none;
  color: inherit;
  flex-wrap: nowrap;
}

/* 日付部分の幅を固定（調整可能） */
.news-date {
  min-width: 6em;
  font-weight: bold;
  flex-shrink: 0;
  margin-left: 10px;
}

/* テキストが自動的に折り返される */
.news-text {
  flex: 1;
  margin-right: 10px;
}

.search-bg-wrapper {
  position: relative;
  z-index: 0;
  margin-top: 10rem;
}

.background-img {
  position: absolute;
  top: -3.4375rem;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  transition: height 0.6s ease;
}

.background-img img {
  position: absolute;
  max-width: none;
  z-index: 0;
}

.img1 {
  top: 1.6875rem;
  left: 5rem;
  width: 31.25rem;
}

.img2 {
  top: 5rem;
  right: 28rem;
  width: 8.125rem;
}

.img3 {
  top: 70%;
  left: 30rem;
  width: 8.125rem;
}

.img4 {
  top: 50%;
  right: 4.375rem;
  width: 9.375rem;
}

.img5 {
  top: 46%;
  left: 26rem;
  width: 12.1875rem;
}

.img6 {
  top: 35%;
  right: 15rem;
  width: 12.1875rem;
}

.img7 {
  top: 70%;
  left: 1.25rem;
  width: 12.1875rem;
}

.img8 {
  bottom: 1%;
  right: 27rem;
  width: 12.1875rem;
}

.img9 {
  top: 33%;
  left: 10rem;
  width: 12.1875rem;
}

.img10 {
  top: 54%;
  left: 6rem;
  width: 12.1875rem;
}

.img11 {
  top: 23%;
  right: 24rem;
  width: 12.1875rem;
}

.img12 {
  top: 85%;
  left: 15rem;
  width: 12.1875rem;
}

.img13 {
  top: 56.7%;
  right: 27rem;
  width: 12.1875rem;
}

.img14 {
  top: 5rem;
  right: 4rem;
  width: 25rem;
}

.img15 {
  bottom: 5%;
  right: 1rem;
  width: 31.25rem;
}

footer {
  background: #294197;
  color: white;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.875rem;
  height: 25rem;
}

.clone-first,
.clone-last {
  visibility: visible !important;
  opacity: 1 !important;
}

.slider-marquee {
  overflow: hidden;
  background-color: #fff;
  padding :1rem;

}

.slider-track {
  display: flex;
  /* アニメーションで左へずーっと動かす */
  animation: marquee 18s linear infinite;
  gap:3rem;
}

.slide {
  flex: 0 0 calc((100% / 3) * 1); /* 画面幅の1/3ずつ */
  /* margin や gap を入れたいならここで調整 */
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.75rem;
}

/* keyframes: track全体をスライド幅（オリジナル３枚分）だけ左に動かす */
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-100% / 3 * 3));
    /* = translateX(-100%) でもOK */
  }
}

.slideshow {
  position: relative;
  top: 4rem;
  width: 100%;
  max-width: 1920px;
  height: 100vh;             
  margin: 0 auto;
  overflow: hidden;
}

.visual-img {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 2.5s ease-in-out;
  max-width: 100%;
  height: auto;
  z-index: 0;
  pointer-events: none;
  height: 100%;
    object-fit: cover;
}

.visual-img.active {
  opacity: 1;
  z-index: 2;
}


@media screen and (max-width: 768px) {

  body,
  html {
    overflow-x: hidden;
  }

  header {
    height: 65px;
    /* 内容に合わせて可変にする */
    padding: 1rem 0;
    /* 削除 */
  }

  .header-content {
    display: flex; /* 横並びを維持 */
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
  }
  .header-logo img {
    width: auto;
    height: 50px; /* 適度な高さに調整 */
  }

  .header-logo {
    flex-shrink: 1;
  }

 header a {
    flex-shrink: 0;
    font-size: 1rem;
    white-space: nowrap;
  }
  .header-logo a{
    padding-left: 0;
  }

  .top_bg {
    background-image: url("../images/top_bg_sp.png");
    height: auto;
    /* ← 固定高さを解除 */
    background-size: 100% auto;
    /* 横幅にフィットさせる */
    background-position: top center;
    background-repeat: repeat;
  }

  .top-visual {
    padding-top: 5.5rem;
  }

  .top-visual img {
    width: 100%;
    height: auto;
    margin: -23px auto;
  }

  .about-section,
  .search-section,
  .news-section {
    width: 90%;
    padding: 1.5rem;
    box-sizing: border-box;
    margin-bottom: 3rem;
  }

  .about-section{
    z-index: 2;
  }

  .about-section h2,
  .section-title {
    font-size: 2rem;
  }

  .about-section p{
    line-height: 1.75rem;
    font-size: 1rem;
  }
  .search-section,
  .news-section {
    margin-top: 5rem;
  }
  .search-section p {
    margin-top: 0.5rem;
  }

  .search_btn {
    margin: 2rem auto;
    width: 100%;
  }

  .search_btn a,
  .reserve-btn {
    width: 100%;
    height: 3.3rem;
    font-size: 1.125rem;
    padding: 0.75rem 1rem;
    line-height: 1.5;
    box-sizing: border-box;
  }
  .section-subtitle{
    font-size: 1rem;
  }
  .kensaku_arrow img {
    width: 1.25rem;
    height: auto;
  }

  .accordion-item {
    width: 100%;
  }

  .accordion-header {
    font-size: 1rem;
    padding: 0.75rem 1rem;
    height: 3.3rem;
  }

  .accordion-header::after {
    right: 1rem;
    border-top: 1rem solid white;
  }

  .accordion-content {
    font-size: 0.9rem;
  }

  iframe {
    width: 100%;
    height: 300px;
  }

  .shop-text {
    align-items: center;
  }

  .text_left {
    margin-left: 0 !important;
  }

  .shop-container {
    padding: 0;
  }

  .shop_btn {
    width: 100%;
    height: auto;
    line-height: 2.5rem;
    font-size: 1rem;
  }

  .news-list {
    font-size: 1rem;
    padding: 0 1rem;
  }
  .news-text {
    margin-left: 10px;
  }

  .slider-container {
    width: 100%;
    max-width: 100%; /* スマホでは最大幅を100%にする */
  }

  .slider-wrapper {
    overflow: hidden; /* スマホではみ出しを隠す */
    padding: 1rem 1rem;
    margin-bottom: 2rem;
  }

  body .slider-container .slider-wrapper .slider {
    gap: 1rem;
    /*transition: transform 0.4s ease !important;  スマホではアニメーションを有効化 */
    will-change: transform;
    justify-content: flex-start; /* スライダーを左寄せにする */
  }

  .slider img {
    width: 85vw; /* 画面の85%幅 */
    min-width: auto;
    flex-shrink: 0;
    border-radius: 0.5rem;
  }


  footer {
    height: auto;
    padding: 2rem 1rem 4rem;
    font-size: 0.75rem;
  }
  footer img {
    width: 80%;
  }

  .search-bg-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 1rem;
  }

  .background-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    
  }

  .background-img img {
    max-width: 100%;
    height: auto;
    position: absolute;
  }

  .img1 {
    top:  1.875rem;
    left: -2rem;
    width: 9rem;
  }

  .img2 {
    top:  1.25rem;
    right: 0;
    width: 5rem;
  }

  .img3 {
    left: 0;
    top: 50%;
    width: 5rem;
  }

  .img4 {
    top: 30%;
    right: 0;
    width: 5rem;
  }

  .img5 {
    top: 40%;
    left: 0;
    width: 5rem;
  }

  .img6 {
    top: 20%;
    right: -1%;
    width: 5rem;
  }

  .img7 {
    display: none;
  }

  .img8 {
    bottom: 21%;
        right: 2%;
        width: 5rem;
  }

  .img9 {
    top: 22%;
        left: -1%;
        width: 5rem;
  }

  .img10 {
    top: 63%;
    left: -1%;
    width: 5rem;
  }

  .img11 {
    top: 10%;
    right: -1%;
    width: 5rem;
  }

  .img12 {
    top: 70%;
    left: 10%;
    width: 5rem;
  }

  .img13 {
    top: 45%;
    right: 0;
    width: 5rem;
  }

  .img14 {
    display: none;
  }

  .img15 {
    bottom: 33%;
    right: 0;
    width: 8rem;
  }

  .news-item {
    flex-direction: column;
    gap: 0.25em;
  }

  .news-date {
    min-width: unset;
  }
  .slider-marquee {
    overflow: hidden;
    width: 100%;
    background-color: #fff;
    padding :0.5rem;
  
  }

.slider-track {
  /* アニメーションで左へずーっと動かす */
  animation: marquee 12s linear infinite;
  gap:1rem;
}
.slideshow {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto; /* 明示的にOK。省略可 */
}

.visual-img {
  object-fit: contain;
  width: 100%;
  height: 100%; /* これが重要 */
  position: absolute;
  left: 0;
  transform: none;
}
.slideshow-sp .visual-img.active {
  opacity: 1 !important;
  z-index: 2 !important;
}
.slideshow-pc{
  display: none;
}
.br-pc {
  display: none;
}
}



@media screen and (min-width: 769px) {
  .br-sp {
    display: none;
  }
  .slideshow-sp{
    display: none;
  }
}

/* チラつき対策 */
.loading-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

@keyframes spin {
  0% { transform: rotate(0); }
  100% { transform: rotate(360deg); }
}


