/* ============================================
   KEGAMI ─ HOME CSS（ブランドフィルム型 v2）
   HERO=フルスクリーン動画（SyuRoパターン）
   スマホ縦画面はレターボックス上映（黒い劇場）
   ============================================ */

/* --------------------------------------------
   HEADER：HERO上では透明・白文字
   -------------------------------------------- */
header.site-header.over-hero{
  background:transparent;
  border-bottom:none;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
header.site-header.over-hero .logo,
header.site-header.over-hero .nav-list a{
  color:rgba(247,244,236,0.95);
  text-shadow:0 1px 12px rgba(0,0,0,.55), 0 0 3px rgba(0,0,0,.4);
}
header.site-header.over-hero .hamburger{
  filter:drop-shadow(0 1px 4px rgba(0,0,0,.55));
}
header.site-header.scrolled .logo,
header.site-header.scrolled .nav-list a{
  text-shadow:none;
}
header.site-header.scrolled .hamburger{filter:none}
header.site-header.over-hero .header-cta{
  background:rgba(247,244,236,0.14);
  border:1px solid rgba(247,244,236,0.4);
  color:rgba(247,244,236,0.95);
}
header.site-header.over-hero .hamburger span{
  background:rgba(247,244,236,0.92);
}
/* スクロール後：通常ヘッダーに戻す */
header.site-header.scrolled{
  background:rgba(250,248,246,0.92);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  border-bottom:1px solid var(--border);
}
header.site-header.scrolled .logo{color:var(--accent-dark)}
header.site-header.scrolled .nav-list a{color:var(--text-sub)}
header.site-header.scrolled .header-cta{
  background:var(--accent-dark);
  border:1px solid transparent;
  color:#fff;
}
header.site-header.scrolled .hamburger span{background:var(--text)}

/* --------------------------------------------
   HERO：ブランドフィルム
   -------------------------------------------- */
.hero{
  position:relative;
  height:100vh;
  height:100svh;
  background:#000;
  overflow:hidden;
}
.hero video{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
/* 上下の薄い黒幕：白飛びした映像上でもロゴ・SOUNDトグルが読める */
.hero::before{
  content:'';
  position:absolute;
  top:0;left:0;right:0;
  height:22%;
  background:linear-gradient(to bottom, rgba(0,0,0,.38), rgba(0,0,0,0));
  z-index:2;
  pointer-events:none;
}
.hero::after{
  content:'';
  position:absolute;
  bottom:0;left:0;right:0;
  height:16%;
  background:linear-gradient(to top, rgba(0,0,0,.30), rgba(0,0,0,0));
  z-index:2;
  pointer-events:none;
}
/* スマホ縦：縦型動画（9:16）に自動切替のため常にcover（main.js参照） */

/* SOUND ON/OFF（SyuRoパターン・左下） */
.sound-toggle{
  position:absolute;
  left:24px;
  bottom:28px;
  z-index:5;
  display:flex;
  align-items:center;
  gap:10px;
  color:rgba(247,244,236,0.85);
  font-family:var(--accent-font);
  font-size:12px;
  letter-spacing:.22em;
  padding:8px 4px;
  transition:color .3s;
}
.sound-toggle:hover{color:#fff}
.sound-bars{display:flex;align-items:flex-end;gap:2px;height:14px}
.sound-bars i{
  width:2px;
  background:currentColor;
  height:4px;
  transition:height .3s;
}
/* OFF時：バーは低く静止。ON時：波打つ */
.sound-toggle.on .sound-bars i{animation:soundWave 1s ease-in-out infinite}
.sound-toggle.on .sound-bars i:nth-child(1){animation-delay:0s}
.sound-toggle.on .sound-bars i:nth-child(2){animation-delay:.15s}
.sound-toggle.on .sound-bars i:nth-child(3){animation-delay:.3s}
.sound-toggle.on .sound-bars i:nth-child(4){animation-delay:.45s}
.sound-toggle.on .sound-bars i:nth-child(5){animation-delay:.6s}
@keyframes soundWave{
  0%,100%{height:4px}
  50%{height:14px}
}

/* スクロールキュー（下中央） */
.scroll-cue{
  position:absolute;
  left:50%;
  bottom:24px;
  transform:translateX(-50%);
  z-index:4;
}
.scroll-cue span{
  display:block;
  width:1px;
  height:44px;
  background:linear-gradient(to bottom, rgba(247,244,236,0) 0%, rgba(247,244,236,0.7) 100%);
  animation:cueDrop 2.4s ease-in-out infinite;
  transform-origin:top;
}
@keyframes cueDrop{
  0%{transform:scaleY(0);opacity:0}
  40%{transform:scaleY(1);opacity:1}
  100%{transform:scaleY(1);opacity:0}
}

/* --------------------------------------------
   KEGAMI とは（確定コピー）
   -------------------------------------------- */
.intro{
  padding:140px 0 120px;
  background:var(--bg);
}
.intro-inner{text-align:center}
.intro-rule{
  font-family:var(--serif);
  font-size:15px;
  letter-spacing:.3em;
  color:var(--accent);
  margin-bottom:36px;
}
.intro-copy{
  font-family:var(--serif);
  font-size:19px;
  line-height:2.6;
  color:var(--text);
}

/* --------------------------------------------
   PRODUCT
   -------------------------------------------- */
.product{
  padding:110px 0 120px;
  background:var(--bg-alt);
}
.product-grid{
  display:grid;
  grid-template-columns:1.1fr 1fr;
  gap:64px;
  align-items:center;
  margin-top:24px;
}
.product-photo img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
}
.product-title{
  font-family:var(--serif);
  font-size:30px;
  font-weight:500;
  line-height:1.7;
  margin-bottom:24px;
  color:var(--text);
}
.product-text{
  font-size:16px;
  line-height:2.2;
  color:var(--text-sub);
  margin-bottom:36px;
}
.product-lineup{margin-bottom:40px}
.product-item{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:16px;
  padding:16px 0;
  border-top:1px solid var(--border);
}
.product-item:last-child{border-bottom:1px solid var(--border)}
.product-item dt{
  font-size:15px;
  font-weight:400;
  color:var(--text);
  letter-spacing:.04em;
}
.product-item dt small{
  display:block;
  font-size:12px;
  color:var(--text-light);
  margin-top:2px;
}
.product-item dd{white-space:nowrap}
.product-item dd strong{
  font-size:20px;
  font-weight:500;
  color:var(--text);
  letter-spacing:.02em;
}
.product-item dd span{
  font-size:12px;
  color:var(--text-light);
  margin-left:6px;
}

/* --------------------------------------------
   STUDIO / 京都
   -------------------------------------------- */
.studio{
  padding:130px 0;
  background:var(--bg);
  text-align:center;
}
.studio-title{
  font-family:var(--serif);
  font-size:26px;
  font-weight:500;
  margin-bottom:28px;
  color:var(--text);
}
.studio-text{
  font-size:16px;
  line-height:2.4;
  color:var(--text-sub);
  margin-bottom:44px;
}
.studio-links{
  display:flex;
  justify-content:center;
  gap:20px;
  flex-wrap:wrap;
}

/* --------------------------------------------
   FOOTER 追記（産地表記）
   -------------------------------------------- */
.footer-place{
  font-family:var(--accent-font);
  font-size:12px;
  letter-spacing:.4em;
  color:var(--text-light);
  margin:-30px 0 40px;
}

/* --------------------------------------------
   Reveal on scroll
   -------------------------------------------- */
.reveal-on-scroll{
  opacity:0;
  transform:translateY(24px);
  transition:opacity .9s ease, transform .9s ease;
}
.reveal-on-scroll.visible{
  opacity:1;
  transform:translateY(0);
}

/* --------------------------------------------
   レスポンシブ
   -------------------------------------------- */
@media (max-width:768px){
  .intro{padding:96px 0 84px}
  .intro-copy{font-size:16px;line-height:2.4}
  .pc-br{display:none}

  .product{padding:80px 0 90px}
  .product-grid{grid-template-columns:1fr;gap:36px}
  .product-title{font-size:24px}

  .studio{padding:90px 0}
  .studio-title{font-size:22px}
  .studio-links{flex-direction:column;align-items:center}
  .studio-links .btn{width:100%;max-width:320px}

  .sound-toggle{left:16px;bottom:20px}
}
