@charset "UTF-8";
@layer basic, reset, common, index, added;

@layer index {
:root {
  /*
    ビューポート幅に応じてフォントサイズを滑らかに調整します。
    - 960px以上で16px
    - 320px以下（一般的なモバイル最小幅）で10px
  */
  font-size: clamp(10px, calc(100vw * 16 / 960), 16px);
}

#Index {
  #shop-link-buttons {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translate(-50%, -10svh);
    z-index: 10;
    display: flex;
    gap: 15px;
    .shop-link-btn {
      display: inline-block;
      padding: 6px 14px;
      color: #fff;
      background-color: rgba(0,0,0,0.6);
      border: 1px solid #fff;
      text-decoration: none;
      font-size: 2rem;
      font-family: serif;
      /* font-family: 'Kosugi Maru', sans-serif; */
      transition: all 0.3s ease;
    }
    .shop-link-btn:hover {
      background-color: #fff;
      color: #000;
    }
  }
  #header {
    height: 100svh;
    overflow: hidden;
    #hero {
      height: 100svh;
      #shop_logo {
        margin-top: -64px;
      }
    }
  }
  #main {
    all: unset;
    color: #fff;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    > section {
      min-height: 100svh;
      padding-block-end: 40px;
      position: relative;
      h2 {
        font-size: 2rem;
        font-family: serif;
        text-align: center;
        margin-block-end: 2rem;
        background-image: linear-gradient(45deg, #f7e8a3, #c07c15);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
      }
      &#brand-concept {
        background: #333 url(../../menu_images/course/course_3.webp) no-repeat center center;
        background-size: cover;
        display: grid;
        place-items: center;
        width: 100%;
        padding: 2rem;
        position: relative; /* 疑似要素の基準位置 */
        overflow: hidden; /* はみ出した疑似要素をカット */
        /*
        &::before {
          content: "";
          position: absolute;
          inset: 0;
          background-image: radial-gradient(rgba(0, 0, 0, 0.75) 0.8px, transparent 0.8px);
          background-size: 2px 2px;
          transform: rotate(45deg) scale(2);
          z-index: 1;
        }*/
        .brand-inner {
          background-color: hsla(0,0%,0%,.75);
          padding: 2rem;
          position: relative; /* z-indexを有効にするため */
          z-index: 2; /* 網点レイヤーより手前に配置 */
          p.message {
            font-size: 1.5rem;
            /* font-family: sans-serif; */
            font-weight: 300;
            letter-spacing: .3em;
            line-height: 1.8;
            text-align: justify;
            max-width: 800px;
            margin-inline: auto;
            margin-bottom: 2rem;
          }
          ul {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
            gap: 2vw;
            /* max-width:960px; */
            margin: 0;
            @media (width < 620px) {
              grid-template-columns: 1fr;
            }
            li {
              border: solid 2px rgba(192, 124, 21, 0.8);
              border-radius: .5rem;
              span {
                text-align: center;
                font-weight: bold;
                display: block;
                padding: .25rem;
                &:first-of-type {
                  font-size: 1.2rem;
                  font-family: sans-serif;
                  font-weight: 800;
                  background-image: linear-gradient(45deg, #f7e8a3, #c07c15);
                  -webkit-background-clip: text;
                  background-clip: text;
                  color: transparent;
                }
                &:nth-of-type(2) {
                  /* font-size: 1rem; */
                  margin-bottom: .75rem;
                }
              }
            }
          }
        }
      }
     &#annaouce {
        display: grid;
        place-items: center;
        width: 100vw;
        height: auto;
        padding: 4vw 6vw;
        position:relative;
        header {
          background-color: hsla(0, 0%, 0%, .5);
          max-width: 800px;
          /* padding: 3rem 5rem; */
          .opening-message {
            font-size: 1.5rem;
            /* font-family: sans-serif; */
            font-weight: 300;
            letter-spacing: .25rem;
            line-height: 1.8;
            text-align: justify;
            margin-inline: auto;
            margin-block-end: 0;
          }
        }
      }
      &#shopList {
        /* display: grid;
        place-items: center; */
        width: 80%;
        height: auto;
        padding: 2rem;
        margin: 0 auto;
        position: relative;
        @media (width < 800px) {
          width: 100%;
        }
        header {
          width: fit-content;
          padding: 0 80px;
          margin-inline: auto;
          h3 {
            font-size: 1.8rem;
            font-family: serif;
            text-align: center;
            margin-block-end: 2rem;
            background-image: linear-gradient(45deg, #f7e8a3, #c07c15);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
          }
        }
        &> ul {
            display: flex;
            flex-wrap: wrap;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            width: 100%;
            list-style: none;
            gap: 2rem;
            &> li {
              width: 100%;
              height: auto;
              padding: 8px;
              /* border: solid 8px #a58a54; */
              border: solid 8px transparent;
              border-radius: 18px;
              overflow: clip;
              position: relative;
              &> div {
                text-decoration: none;
                display: flex;
                flex-wrap: nowrap;
                height: 100%;
                border-radius: 8px;
                overflow: clip;
                & div {
                  color: #000;
                  background-color: hsl(0, 0%, 72%);
                  height: 100%;
                  &:first-of-type {
                    width: 30%;
                    height: auto;
                    overflow: hidden;
                    img {
                      width: 100%;
                      height: 100%;
                      object-fit: cover;
                      object-position: center;
                    }
                  }
                  &:nth-of-type(2) {
                    /* font-family: sans-serif; */
                    font-weight: 500;
                    padding: 1vw;
                    flex: 1;
                    h3.shop-name {
                      font-size: 1.5rem;
                      line-height: 1;
                      margin-block-end: 1rem;
                      position: relative;
                      padding-bottom: .3rem; /* 下線とテキストのスペース */
                      &::after {
                        content: '';
                        position: absolute;
                        left: 0;
                        bottom: -.2rem;
                        width: 100%;
                        height: .15rem; /* 下線の太さ */
                        background-color: hsla(38, 72%, 39%, 1.00);
                      }
                    }
                    .shop-location {
                      text-indent: -1.75rem;
                      padding-left: 2.5rem;
                      &::before {
                        content: '\f3c5'; /* Font Awesomeのmap-marker-altアイコン */
                        color: hsla(0, 100%, 32%, 1.00);
                        font-family: 'Font Awesome 5 Free';
                        font-weight: 900; /* Solidスタイル */
                        margin-right: .5rem; /* アイコンとテキストの間隔 */
                      }
                    }
                    .shop-location, .call {
                      font-size: 1rem;
                      font-weight: 500;
                      font-style: normal;
                      line-height: 1.6;
                      margin-block-end: .8vw;
                    }
                    .call::before {
                      content: '\f095'; /* Font Awesomeのphoneアイコン */
                      color: hsla(40, 50%, 50%, 1.00); /* ゴールド系の色 */
                      font-family: 'Font Awesome 5 Free';
                      font-weight: 900; /* Solidスタイル */
                      margin-right: .5rem; /* アイコンとテキストの間隔 */
                    }
                    ul {
                      font-size: 1rem;
                      li {
                        text-indent: -2rem;
                        padding-left: 2.75rem;
                        &::before {
                          content: "・";
                          padding-right: .25rem;
                          vertical-align: middel;
                        }
                      }
                      li + li {
                        margin-top: .5vw;
                      }
                    }
                  }
                }
                @media (width < 600px) {
                  display: block;
                  &>div:first-of-type {
                    width: 100%;
                  }
                }
              }
            }
        }
      }
    }
  }
}
}

@layer added {
/* Hero Section several Parts Position */


/* Page Link Buttons */
@media(orientation:portrait) {
  #shop-link-buttons {
    transform: translate(-50%, -8svh); /* SHOP LOGOの位置に合わせて調整 */
  }
}

/* Line Animation */
.h2-glow {
  position: relative;
  /* display: inline-block; */
  z-index: 1;
}
.h2-glow::before,
.h2-glow::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #fffbe6 40%, #ffe066 50%, #fffbe6 60%, transparent 100%);
  background-size: 200% 100%;
  opacity: 0.7;
  border-radius: 2px;
  animation: shine-line 6s linear infinite;
}
.h2-glow::before {
  top: -10px;
}
.h2-glow::after {
  bottom: -10px;
  animation-delay: 1.25s;
}
@keyframes shine-line {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* #annaouceセクションの背景を斜めに分割 */
#annaouce {
  position: relative;
  /* 疑似要素がはみ出さないように */
  overflow: hidden;
  /* 画像が読み込まれるまでの背景色 */
  background-color: hsla(0, 0%, 0%, .75);
}

#annaouce::before,
#annaouce::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -1;
}

/* 左上（右上から左下への対角線の上側）の背景 */
#annaouce::before {
  background-image: url('/menu_images/course/course_1.webp');
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

/* 右下（右上から左下への対角線の下側）の背景 */
#annaouce::after {
  background-image: url('/common/images/gaikan01.webp');
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

/* コンテンツが背景の上にくるように調整 */
#annaouce > * {
  /* position: relative; */
  z-index: 2;
}

/* 詳細を見るボタン */
/* #shopList .nav_item a {
  display: flex;
} */
#shopList .details {
  position: relative;
  flex-grow: 1;
  padding-bottom: 70px; /* ボタンのためのスペースを確保 */
}
#shopList .details .custom-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  /* @media (width <= 1024px) {
    position: relative;
    bottom: unset;
    right: unset;
  } */
}
.sp #shopList {
  .shop-name {
    font-size: 2.2rem;
    & ~ * {
      font-size: 1.8rem;
      & + * {
        margin-top: 1lh;
      }
    }
  }
}
#shopList .details .custom-btn {
  color: #000;
  /* font-size: .8rem; */
  font-weight: 500;
  text-decoration: none;
  background: linear-gradient(145deg, #e6c887, #c5a56a); /* ゴールドのグラデーション */
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  height: auto;
  padding: .5rem 1.5rem;
  border: 2px solid #a58a54; /* 濃いゴールド */
  border-radius: 1rem;
  /* position: relative; */
  z-index: 1;
  overflow: hidden;
  transition: filter 0.3s;
  cursor: pointer;
}
.custom-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.25); /* 光沢感を出すためのレイヤー */
  transform: translateX(-100%);
  transition: transform 0.3s ease-out;
  z-index: -1;
}
.custom-btn:hover {
  filter: brightness(0.95); /* ホバー時に少し暗くする */
}
.custom-btn:hover::before {
  transform: translateX(0);
}

/* ============================================================ */
/* .nav_item ホバー時にグラデーションボーダーがアニメーションする */
/* ============================================================ */
#shopList .nav_item::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 18px;
  pointer-events: none;
  border: 8px solid transparent;
  border-image: conic-gradient(from 0deg, #FFD700, #C07C15, #FFFBE6, #FFD700) 1;
  z-index: -1;
  opacity: 0.5;
  transition: opacity 0.3s;
  transform: rotate(0deg);
  /* animation: rotate-gold-border 3s linear infinite, rotate-gold-border2 2s linear infinite; */
  scale: 12;
}

#shopList .nav_item:hover::after {
  animation: rotate-gold-border 3s linear infinite, rotate-gold-border2 2s linear infinite;
  opacity: 1;
}

@keyframes rotate-gold-border {
  0% { background: conic-gradient(from 0deg, #FFD700, #C07C15, #FFFBE6, #FFD700);}
  100% { background: conic-gradient(from 360deg, #FFD700, #C07C15, #FFFBE6, #FFD700);}
}

@keyframes rotate-gold-border2 {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}

/* .shop-nameの下線に光が走るアニメーション（.nav_item:hover時に少し遅れて発動） */
#shopList .nav_item .shop-name {
  position: relative;
  padding: .5rem;
  /* 下線のベース */
}
#shopList .nav_item .shop-name::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -.2rem;
  width: 100%;
  height: .15rem;
  background: linear-gradient(90deg, #bfa14a 0%, #fffbe6 50%, #bfa14a 100%);
  opacity: 0.6;
  border-radius: 2px;
  overflow: hidden;
  /* 光の走る部分 */
  background-size: 200% 100%;
  background-position: 0 0;
  transition: background-position 0.6s;
}


/* ホバー時に光が走る（0.4s遅延） */
#shopList .nav_item:hover .shop-name::after {
  animation: shopname-glow 1.2s cubic-bezier(.7,.2,.3,1) 0.4s 1;
}

@keyframes shopname-glow {
  0%   { background-position: 0 0; opacity: 0.6; }
  20%  { opacity: 1; }
  80%  { background-position: -100% 0; opacity: 1; }
  100% { background-position: -200% 0; opacity: 0.6; }
}

/* .nav_itemホバー時に店舗画像をズームする */
#shopList .nav_item > div > div:first-of-type img {
  transition: transform 0.6s cubic-bezier(.7,.2,.3,1);
}

#shopList .nav_item:hover > div > div:first-of-type img {
  transform: scale(1.08);
}

/* タッチデバイスでのタップ時のアニメーション */
#shopList .nav_item.touch-hover::after {
  animation: rotate-gold-border 3s linear infinite, rotate-gold-border2 2s linear infinite;
  opacity: 1;
}

#shopList .nav_item.touch-hover .shop-name::after {
  animation: shopname-glow 1.2s cubic-bezier(.7,.2,.3,1) 0.4s 1;
}

#shopList .nav_item.touch-hover > div > div:first-of-type img {
  transform: scale(1.08);
}

/* PCではhover擬似クラスを使用 */
@media (hover: hover) {
  #shopList .nav_item:hover::after {
    animation: rotate-gold-border 3s linear infinite, rotate-gold-border2 2s linear infinite;
    opacity: 1;
  }

  #shopList .nav_item:hover .shop-name::after {
    animation: shopname-glow 1.2s cubic-bezier(.7,.2,.3,1) 0.4s 1;
  }

  #shopList .nav_item:hover > div > div:first-of-type img {
    transform: scale(1.08);
  }
}

/* --- Interactive Elements --- */
#Index #shopList .shop-location,
#Index #shopList .call {
  cursor: pointer;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10+ */
  user-select: none; /* Standard */
  transition: background-color 0.2s;
  /* display: inline-block; ホバー背景がブロック全体に広がるように */
  /* margin: -0.2rem -0.4rem; paddingによるレイアウト崩れを防ぐ */
  border-radius: 4px;
}
#Index #shopList .call {
  padding: 0.2rem 0.4rem;
}

#Index #shopList .shop-location:hover,
#Index #shopList .call:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* --- Google Map Popover --- */
#map-popover {
  width: clamp(300px, 90vw, 800px);
  height: clamp(250px, 80vh, 600px);
  padding: 1rem;
  border: 2px solid #a58a54;
  border-radius: 1rem;
  background: #222;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  /* ▼ Popoverを中央に配置するためのスタイルを追加 */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0; /* ブラウザによるデフォルトマージンをリセット */
}

/* ポップオーバー表示中は背景のスクロールを禁止 */
html:has(#map-popover:popover-open) {
  overflow: hidden; /* 背景のスクロールを完全に停止 */
  overscroll-behavior: contain; /* スクロール境界での連鎖を防止 */
}

#map-popover::backdrop {
  background-color: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

#map-popover iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: .5rem;
}

}