/* ======================
   style.css
   モバイルファースト
====================== */


/* ======================
   SP BASE
====================== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 68px;
}

/* PC専用背景レイヤーはSPで非表示 */
#bg-slideshow,
#bg-fixed,
#frosted-glass {
  display: none;
}

/* PC用要素はSPで非表示 */
.pc-hamburger,
.pc-drawer,
.drawer-overlay {
  display: none;
}

/* SP専用 */
.sp-only {
  display: block;
}

/* clip-pathリセット */
#about,
#index-menu,
#instagram {
  clip-path: none !important;
}

#scroll-container {
  padding-bottom: 6rem;
}
#frosted-glass {
  transition: backdrop-filter 0.8s ease, background 0.8s ease;
}

#frosted-glass.is-blurred {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.55);
}
/* ======================
   SP: HERO スライドショー
====================== */
#hero-wrap {
  position: relative;
  height: 100svh;
  z-index: 0;
}

#hero {
  width: 100%;
  height: 100svh;
  position: relative;
  overflow: hidden;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
}

.hero-title {
  font-weight: normal;
}

.hero-slideshow .sp-only {
  touch-action: pan-y;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
}

/* SP用スライド画像 */
.slide1 {
  background-image: url('../img/index/Forest-slide1 -sp.jpg');
}

.slide2 {
  background-image: url('../img/index/Forest-slide5 -sp.jpg');
}

.slide3 {
  background-image: url('../img/index/Forest-slide6 -sp.jpg');
}

.slide4 {
  background-image: url('../img/index/Forest-slide7 -sp.jpg');
}

.slide5 {
  background-image: url('../img/index/Forest-slide8 -sp.jpg');
}

/* SP: SCROLLボタン */
.scroll-btn {
  position: fixed;
  bottom: 8rem;
  /* SP下部ナビの上 */
  right: 1.5rem;
  z-index: 40;
  width: 60px;
  display: block;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.scroll-btn img {
  width: 100%;
  height: auto;
  display: block;
}

.scroll-btn:active {
  opacity: 0.5;
}

/* ======================
   SP: ABOUT
====================== */
#about-wrap {
  background-image: url(../img/index/concept.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.about-box {
  padding: 5rem 6%;
}

.about-heading {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.about-body p {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.3rem;
  line-height: 2.2;
  color: var(--dark);
  font-weight: bold;
}

/* ======================
   INDEX: メニューセクション
====================== */
#index-menu {
  padding: 1.8rem 2.4rem 2.2rem;
}

.index-menu-heading {
  text-align: center;
  font-size: 1.8rem;
  letter-spacing: 0.3em;
  color: var(--white);
}

.index-menu-underline {
  width: 40px;
  height: 2px;
  background: var(--white);
  margin: 0.2rem auto 0rem;
}

.index-menu-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.3rem;
}

.index-menu-card {
  display: flex;
  flex-direction: column;
}

.index-menu-card figure {
  margin: 0;
}

.index-menu-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
}

.index-menu-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.index-menu-name {
  font-size: 1rem;
  margin: 0.5rem 0 0.2rem;
  font-weight: bold;
  color: var(--white);
}

.index-menu-desc {
  font-size: 0.75rem;
  color: var(--muted, #888);
  flex: 1;
  line-height: 1.5;
}

.index-menu-price {
  font-size: .9rem;
  margin-top: 0.4rem;
  font-weight: bold;
  color: var(--white);
}

.menu-title {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.index-menu-cta {
  display: inline-block;
  text-align: start;
  font-size: 1.1rem;
  color: #2fd44a;
  text-decoration: none;
  letter-spacing: 0.1em;
  margin-bottom: 1.5em;
}

.index-menu-cta:hover {
  opacity: 0.7;
}

/* ======================
   SP: INSTAGRAM
====================== */
#instagram {
  background: var(--white);
  width: 100%;
  aspect-ratio: 1/1;
  padding: 2rem 5% 6rem 5%;
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
}

.insta-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  letter-spacing: 0.05em;
  color: var(--dark);
  margin-bottom: 0.3rem;
  flex-shrink: 0;
  font-weight: normal;
}

.insta-underline {
  width: 3rem;
  height: 2px;
  background: var(--dark);
  flex-shrink: 0;
}

.insta-embed-wrap {
  flex: 1;
  min-height: 200px;
  border: 2px dashed #aaa;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background: #f0f0eb;
}

.insta-embed-wrap .placeholder-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.15em;
  color: #bbb;
}

.insta-embed-wrap .placeholder-code {
  font-family: monospace;
  font-size: 0.7rem;
  background: #e0e0db;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  color: #888;
  text-align: center;
  line-height: 2;
}

.insta-embed-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.insta-cta {
  margin: 1rem;
  font-size: 1rem;
  letter-spacing: 0.15em;
  align-self: flex-start;
  color: var(--dark);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.insta-cta::after {
  content: '→';
}

@media (min-width: 640px) and (max-width: 768px) {
  .index-menu-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =====================================================
   PC (min-width: 769px)
===================================================== */
@media (min-width: 769px) {

  /* SP専用要素を非表示 */
  .sp-header,
  .sp-info-btn,
  .sp-modal-overlay,
  .sp-nav {
    display: none !important;
  }

  /* SP専用スライドショーを非表示 */
  .sp-only {
    display: none !important;
  }

  /* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
     PC: ハンバーガー＆ドロワー（z-index最前面）
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
  .pc-hamburger {
    display: block;
    position: fixed;
    top: 2rem;
    right: 4rem;
    z-index: 200;
  }

  .hamburger-btn {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0.5rem;
    cursor: pointer;
  }

  .hamburger-btn span {
    display: block;
    width: 35px;
    height: 2px;
    background: #fff;
    transition: all 0.3s;
  }

  .hamburger-btn.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger-btn.is-open span:nth-child(2) {
    opacity: 0;
  }

  .hamburger-btn.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .pc-drawer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background: rgba(36, 18, 0, 0.97);
    z-index: 190;
    padding: 4rem 2rem 4rem 2.5rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  }

  .pc-drawer.is-open {
    transform: translateX(0);
  }

  .drawer-links {
    list-style: none;
    margin-bottom: 3rem;
  }

  .drawer-links li {
    border-bottom: 1px solid rgba(97, 97, 97, 0.5);
  }

  .drawer-links li a {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.3rem;
    letter-spacing: 0.3em;
    color: #bab9b5;
    text-decoration: none;
    padding: 1.5rem 0;
    transition: color 0.2s;
  }

  .drawer-links li a:hover {
    color: #fff;
  }

  .drawer-info {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 30px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.2rem;
    color: #9c9c9c;
    line-height: 2;
  }

  .drawer-info>div {
    display: contents;
  }

  .drawer-info .label {
    display: inline-block;
    width: 3rem;
    color: #9c9c9c;
  }

  .drawer-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 180;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }

  .drawer-overlay.is-open {
    opacity: 1;
    visibility: visible;
  }

  /* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
     背景レイヤー群（PC専用）
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

  /* 【レイヤー1】最背面：スライドショー */
  #bg-slideshow {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
  }

  /* PCスライド画像（#bg-slideshow内） */
  #bg-slideshow .slide1 {
    background-image: url('../img/index/Forest-slide1.jpg');
  }

  #bg-slideshow .slide2 {
    background-image: url('../img/index/Forest-slide5.jpg');
  }

  #bg-slideshow .slide3 {
    background-image: url('../img/index/Forest-slide6.jpg');
  }

  #bg-slideshow .slide4 {
    background-image: url('../img/index/Forest-slide7.jpg');
  }

  #bg-slideshow .slide5 {
    background-image: url('../img/index/Forest-slide8.jpg');
  }

  /* 【レイヤー2】固定背景画像 */
  #bg-fixed {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
  }

  .bg-fixed-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
  }

  .bg-fixed-layer.is-active {
    opacity: 1;
  }

  /* 【レイヤー3】すりガラス */
  #frosted-glass {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: rgba(0, 0, 0, 0);
    /* JS で opacity を変化させる */
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
  }

  /* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
     コンテンツレイヤー z-index: 10
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

  #scroll-container {
    position: relative;
    z-index: 10;
  }

  /* 通常スクロール */
  .section-wrap {
    position: relative;
    height: auto;
    overflow: visible;
  }

  /* HEROは透明ボックス（テキストのみ・背景なし） */
  #hero-wrap {
    height: 100vh;
    background: transparent;
    pointer-events: none;
    /* fixed背景レイヤーのクリックを通す */
  }

  /* HEROテキストだけpointer-events復活 */
  #hero-wrap .hero-overlay {
    pointer-events: auto;
  }

  /* clip-pathはすべて解除 */
  #about,
  #index-menu,
  #instagram {
    clip-path: none !important;
  }

  #footer-wrap {
    position: relative;
    z-index: 10;
    background: #090606;
    width: 100%;
  }

  /* HERO */
  #hero {
    width: 100%;
    height: 100vh;
    position: relative;
    background: transparent;
  }

  .scroll-btn {
    right: 5rem;
    bottom: 3rem;
  }

  /* テキストオーバーレイ */
  .hero-overlay {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: absolute;
    inset: 0;
    z-index: 1;
    padding: 4rem;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, transparent 60%);
  }

  .hero-overlay-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 2;
  }

  .hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 6vw, 5rem);
    letter-spacing: 0.1em;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.3rem;
  }

  .hero-tagline {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.5em;
    margin-bottom: 2rem;
  }

  /* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
     PC: ABOUT
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
  #about-wrap {
    width: auto;
    background-image: none;
  }

  #about {
    width: 100%;
    position: relative;
    margin-left: auto;
    padding-bottom: 10rem;
    scroll-margin-top: 5vh;
  }

  .about-box {
    position: relative;
    margin-left: auto;
    margin-right: 4rem;
    max-width: 80%;
    width: min(600px, 90%);
    padding: 6rem 6rem 7rem;
    display: flex;
    flex-direction: row-reverse;
  }


  /* ガラス風背景 */
  .about-box::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 28px;
    box-shadow: inset 0 0 6px -3px rgba(255, 255, 255, 0.7);
    background-color: rgba(109, 109, 109, 0.425);
    z-index: 0;
  }

  .about-heading,
  .about-underline,
  .about-body {
    position: relative;
    z-index: 1;
  }

  .about-heading {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-left: 1em;
    ;
  }

  .about-heading-1,
  .about-heading-2 {
    font-size: clamp(1.4rem, 2vw, 4rem);
    writing-mode: vertical-rl;
    margin-bottom: 0.5rem;
    color: var(--white);
  }

  .about-underline {
    width: 5rem;
    margin-bottom: 2.5rem;
    margin-left: 3rem;
    color: var(--white);
  }

  .about-body {
    display: flex;
    flex-direction: row-reverse;
    /* 右から左へ */
    gap: 2rem;
  }

  .about-body p {
    font-size: 2rem;
    line-height: 2.4;
    font-weight: normal;
    color: var(--white);
    letter-spacing: .3em;
    /* about-body：スクロールアニメーション（PCのみ） */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s ease, transform 1.5s ease;
  }

  .about-body-1,
  .about-body-2,
  .about-body-3,
  .about-body-4,
  .about-body-5,
  .about-body-6 {
    writing-mode: vertical-rl
  }


  .about-body p.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
     PC: MENU
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
  #index-menu-wrap {
    background: transparent;
  }

  #index-menu {
    height: auto;
    padding: 5rem 6rem 5rem;
  }

  .index-menu-heading {
    font-size: 2.5rem;
    color: var(--white);
  }

  .index-menu-cta {
    font-size: 1.7rem;
    color: #2fd44a;
    margin-right: 2rem;
  }

  .index-menu-cards {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 3rem;
    padding-bottom: 5rem;
    scrollbar-color: #2fd44a #ffffff;
  }

  .index-menu-card {
    flex: 0 0 480px;
    gap: 10px;
  }

  .index-menu-name {
    font-size: 2rem;
    font-weight: normal;
    color: var(--white);
  }

  .index-menu-desc {
    font-size: 1.3rem;
    letter-spacing: .1em;
  }

  .index-menu-price {
    font-size: 1.5rem;
    color: var(--white);
  }

  /* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
     PC: INSTAGRAM
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
  #instagram {
    height: 100svh;
    width: 80vw;
    min-height: 80svh;
    aspect-ratio: auto;
    padding: 3rem 6rem 6rem;
    margin-right: auto;
    margin-left: auto;
  }

  .insta-heading {
    font-size: clamp(2.6rem, 5vw, 3.8rem);
    font-weight: normal;
  }

  .insta-cta {
    font-size: 1.5rem;
    padding: 1rem;
  }

  .insta-cta::after {
    transition: transform 0.3s;
  }

  .insta-cta:hover::after {
    transform: translateX(20px);
  }

}

@media(min-height:900px) {
  #index-menu-cards {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media(min-width:1200px) {
  #contents-mw {
    max-width: 1500px;
    margin-right: auto;
    margin-left: auto;
  }
}