/* =========================================================
   Lanai Sounds — Landing Page
   style.css
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --c-base:     #f3eee4;
  --c-surface:  #ffffff;
  --c-ink:      #163840;
  --c-ink-soft: #4f6973;
  --c-accent:   #1f97a6;
  --c-accent2:  #e2587f;
  --c-line:     rgba(22,56,64,0.12);

  --font-head:  "Shippori Mincho", serif;
  --font-body:  "Zen Kaku Gothic New", sans-serif;
  --font-latin: "Cormorant", serif;

  --pad-section: 132px;
  --maxw: 1120px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }

body {
  background: var(--c-base);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.85;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--c-accent2); color: #fff; }
img { display: block; }
a { color: inherit; }

/* ---------- Bilingual switch ---------- */
body:not(.en) [data-lang="en"] { display: none !important; }
body.en      [data-lang="ja"] { display: none !important; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1);
  width: 100%;
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Image placeholder ---------- */
.ph {
  position: relative;
  background-color: color-mix(in oklab, var(--c-accent) 9%, var(--c-surface));
  background-image: repeating-linear-gradient(
    135deg,
    color-mix(in oklab, var(--c-accent) 16%, transparent) 0,
    color-mix(in oklab, var(--c-accent) 16%, transparent) 1px,
    transparent 1px,
    transparent 11px
  );
  display: flex; align-items: center; justify-content: center;
  color: color-mix(in oklab, var(--c-ink) 60%, transparent);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  text-align: center;
}

/* ================================================================
   HEADER
   ================================================================ */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px; color: #fff;
  transition: background .4s ease, box-shadow .4s ease, padding .4s ease, color .4s ease;
}
.hdr.scrolled {
  background: color-mix(in oklab, var(--c-base) 90%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--c-line);
  padding: 13px 32px; color: var(--c-ink);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand img {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.hdr.scrolled .brand img { box-shadow: 0 0 0 1px var(--c-line); }
.brand b {
  font-family: var(--font-latin); font-style: italic; font-weight: 500;
  font-size: 25px; letter-spacing: 0.02em; white-space: nowrap;
}

/* ── PC nav ── */
.hdr-nav { display: flex; align-items: center; gap: 30px; }
.hdr-links { display: flex; gap: 28px; }
.nav-link {
  font-size: 14px; letter-spacing: 0.05em; text-decoration: none;
  opacity: .85; transition: opacity .2s;
}
.nav-link:hover { opacity: 1; }

.lang-btn {
  font-family: var(--font-body); font-size: 12.5px; letter-spacing: 0.08em;
  background: transparent; color: inherit; cursor: pointer;
  border: 1px solid rgba(255,255,255,.5); border-radius: 999px;
  padding: 7px 13px; display: flex; gap: 7px; align-items: center;
}
.hdr.scrolled .lang-btn { border-color: var(--c-line); }
.lang-btn .sep { opacity: .45; }
.lang-btn .on { font-weight: 700; opacity: 1; }
.lang-btn .off { font-weight: 300; opacity: .6; }

/* チャンネル登録ボタン：PC のみ表示 */
.sub-btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-family: var(--font-body); font-weight: 500; font-size: 13.5px; letter-spacing: 0.03em;
  background: var(--c-accent2); color: #fff; padding: 10px 20px; border-radius: 999px;
  box-shadow: 0 10px 26px -12px color-mix(in oklab, var(--c-accent2) 75%, transparent);
}

/* ── ハンバーガーボタン（スマホ専用） ── */
.hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px;
  background: transparent; border: none; cursor: pointer;
  padding: 0; color: inherit;
}
.hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: currentColor; border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
/* open state */
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── スマホメニュードロワー ── */
.mobile-menu {
  display: none; /* JS で制御 */
  position: fixed; inset: 0; z-index: 49;
  background: color-mix(in oklab, var(--c-base) 97%, transparent);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-head); font-size: 22px; letter-spacing: 0.08em;
  text-decoration: none; color: var(--c-ink); opacity: .85; transition: opacity .2s;
}
.mobile-menu a:hover { opacity: 1; }
.mobile-menu .m-sub {
  margin-top: 8px;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 500; font-size: 15px;
  background: var(--c-accent2); color: #fff; padding: 12px 28px; border-radius: 999px;
  text-decoration: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 500; font-size: 15px;
  letter-spacing: 0.04em; text-decoration: none;
  padding: 15px 30px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  transition: transform .25s ease, box-shadow .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid  { background: var(--c-ink); color: var(--c-base); border: 1px solid var(--c-ink); }
.btn-ghost  { background: transparent; color: var(--c-ink); border: 1px solid var(--c-line); }
.btn-accent { background: var(--c-accent); color: #fff; border: 1px solid var(--c-accent); }
.btn-yt     { background: var(--c-accent2); color: #fff; border: 1px solid var(--c-accent2);
              box-shadow: 0 12px 30px -12px color-mix(in oklab, var(--c-accent2) 70%, transparent); }
.ico { width: 15px; height: 15px; fill: currentColor; flex: none; }

/* ---------- Section shell ---------- */
.section { padding: var(--pad-section) 32px; }
.section .inner { max-width: var(--maxw); margin: 0 auto; }
.surface { background: var(--c-surface); }
.bordered { border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.bordered-top { border-top: 1px solid var(--c-line); }

.tag {
  display: inline-block; font-family: var(--font-latin); font-style: italic;
  font-size: 19px; letter-spacing: 0.04em; color: var(--c-accent);
  border-bottom: 1px solid color-mix(in oklab, var(--c-accent) 40%, transparent);
  padding-bottom: 4px; margin-bottom: 26px; white-space: nowrap;
}
.sec-title {
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(28px, 4vw, 46px); line-height: 1.35; letter-spacing: 0.03em;
  margin: 0 0 22px;
}
.lead { margin: 0; font-size: 16px; color: var(--c-ink-soft); line-height: 2; text-align: justify; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 94vh; overflow: hidden; color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.18) 0%, rgba(0,0,0,0) 28%,
              rgba(0,0,0,0) 52%, rgba(0,0,0,.46) 100%);
}
.hero .hero-inner {
  position: relative; max-width: var(--maxw); width: 100%; margin: 0 auto;
  padding: 0 32px 8.5vh;
}
.eyebrow {
  font-family: var(--font-latin); font-style: italic; font-size: 17px;
  letter-spacing: 0.18em; text-transform: uppercase; opacity: .92; margin-bottom: 22px;
}
.hero-h {
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(34px, 6vw, 76px); line-height: 1.18; letter-spacing: 0.04em;
  margin: 0; text-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.hero-sub {
  max-width: 520px; margin-top: 26px; font-size: 16.5px; line-height: 2; font-weight: 300;
  white-space: pre-line; text-shadow: 0 1px 16px rgba(0,0,0,.4);
}
.scroll-cue {
  position: absolute; right: 34px; bottom: 30px; display: flex; flex-direction: column;
  align-items: center; gap: 12px; opacity: .85;
}
.scroll-cue span.txt {
  writing-mode: vertical-rl; font-family: var(--font-latin); font-style: italic;
  letter-spacing: 0.3em; font-size: 13px;
}
.scroll-cue span.bar { width: 1px; height: 46px; background: linear-gradient(#fff, transparent); }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: center; }
.split.rev { grid-template-columns: 1fr 1.05fr; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* featured video */
.video-wrap {
  aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--c-line);
  box-shadow: 0 30px 60px -28px color-mix(in oklab, var(--c-ink) 50%, transparent);
}
.video-wrap iframe { width: 100%; height: 100%; border: 0; }
.video-cap {
  font-size: 12.5px; color: var(--c-ink-soft); margin-top: 12px; letter-spacing: 0.04em;
  font-family: var(--font-latin); font-style: italic;
}

/* recommended videos */
.rec-head { display: flex; align-items: baseline; gap: 16px; margin: 78px 0 26px; }
.rec-head h3 { font-family: var(--font-head); font-weight: 500; font-size: 22px; margin: 0; letter-spacing: 0.04em; }
.rec-head .rule { flex: 1; height: 1px; background: var(--c-line); }
.yt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.vcard { text-decoration: none; color: inherit; display: block; }
.vthumb { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; position: relative; }
.vthumb .ph { position: absolute; inset: 0; transition: transform .5s ease; }
.vcard:hover .vthumb .ph { transform: scale(1.03); }
.vthumb .play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.vthumb .play b {
  width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.92);
  display: flex; align-items: center; justify-content: center; color: var(--c-accent2);
  box-shadow: 0 6px 18px rgba(0,0,0,.2);
}
.vtitle { font-family: var(--font-head); font-weight: 500; font-size: 15.5px; margin-top: 13px; line-height: 1.5; }
.vsub { font-size: 12.5px; color: var(--c-ink-soft); margin-top: 3px; letter-spacing: 0.04em; }

/* LINE stickers */
/* 1枚画像ラッパー（スタンプ・グッズ共用） */
.single-img-wrap {
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 26px 56px -32px color-mix(in oklab, var(--c-ink) 50%, transparent);
  border: 1px solid var(--c-line);
}
.single-img-wrap img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.single-ph {
  aspect-ratio: 3 / 2;   /* 横長 3:2 */
  width: 100%;
}
/* グッズ画像は少し余白をもたせる */
.goods-img-wrap {
  margin-bottom: 40px;
}
.note {
  font-size: 12.5px; color: var(--c-ink-soft); line-height: 1.85; margin: 24px 0 30px;
  padding: 14px 18px; background: color-mix(in oklab, var(--c-accent) 7%, transparent);
  border-radius: 12px; border-left: 2px solid var(--c-accent);
}

.ship-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 0; }
.ship-note { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--c-ink-soft); letter-spacing: 0.03em; }
.ship-note .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-accent); }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  color: var(--c-ink);
  padding: 84px 32px 46px;
}
/* 背景画像を薄く（::before）、その上にクリームのベース（::after）を重ねる */
.footer::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--c-base);
  z-index: 0;
}
.footer::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url(../images/footer.png);
  background-size: cover;
  background-position: center;
  opacity: 0.28;   /* 0.0〜1.0 で画像の濃さを調整 */
  z-index: 1;
}
.footer .inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; }
.footer-top { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; align-items: flex-start; }
.footer-brand { max-width: 380px; }
.footer-brand .row { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.footer-brand img { width: 46px; height: 46px; border-radius: 50%; }
.footer-brand .row b { font-family: var(--font-latin); font-style: italic; font-size: 28px; color: var(--c-ink); }
.footer-brand p { font-family: var(--font-head); font-size: 17px; line-height: 1.8; margin: 0; color: var(--c-ink); opacity: .85; }
.footer-links h4 {
  font-family: var(--font-latin); font-style: italic; font-size: 15px;
  color: var(--c-ink-soft);
  margin: 0 0 16px; letter-spacing: 0.1em; font-weight: 400;
}
.footer-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.footer-links a {
  text-decoration: none; font-size: 15px; letter-spacing: 0.04em;
  color: var(--c-ink); display: inline-flex; gap: 10px; align-items: center;
  transition: color .2s, opacity .2s;
}
.footer-links a:hover { color: var(--c-accent); }
/* フッターアイコン */
.footer-ico {
  width: 18px; height: 18px; fill: currentColor; flex: none;
  color: var(--c-accent);
}
.footer-bottom {
  margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--c-line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 12px; letter-spacing: 0.06em; color: var(--c-ink-soft);
}
.footer-bottom i { font-family: var(--font-latin); font-style: italic; }

/* ================================================================
   RESPONSIVE
   ================================================================ */

/* 860px 以下 */
@media (max-width: 860px) {
  .yt-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  /* split を flex 縦並びに */
  .split,
  .split.rev {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  /* split-text を「透明な入れ物」にして中身を split の直接の子として扱う
     → sp-order-* の order が split-media と同階層で効くようになる
     ※ sp-order-* を持つセクション（スタンプ・グッズ）のみに適用 */
  .split:has(.sp-order-head) .split-text,
  .split.rev:has(.sp-order-head) .split-text {
    display: contents;
  }

  /* display:contents にすると width が効かないため、
     sp-order-* と split-media に明示的に 100% を指定 */
  .sp-order-head,
  .sp-order-img,
  .sp-order-btn,
  .split-media {
    width: 100%;
    box-sizing: border-box;
  }

  /* 見出し(1)→画像(2)→ボタン(3) の順 */
  .sp-order-head { order: 1; }
  .sp-order-img  { order: 2; }
  .sp-order-btn  { order: 3; margin-top: 8px; }
}

/* 720px 以下：PCナビを隠してハンバーガーを出す */
@media (max-width: 720px) {
  .hdr-links { display: none; }
  .sub-btn    { display: none; }   /* チャンネル登録ボタンも非表示 */
  .hamburger  { display: flex; }
}

/* 600px 以下 */
@media (max-width: 600px) {
  :root { --pad-section: 72px; }

  /* おすすめの一本 → 1列 */
  .yt-grid { grid-template-columns: 1fr !important; gap: 20px; }


  /* スタンプを見る・ストアを見る → 幅100%・中央揃え */
  .btn-accent,
  .btn-solid {
    width: 100%;
    justify-content: center;
  }

  /* その他ボタンも全幅にする場合はこちら
  .btn { width: 100%; justify-content: center; } */

  /* btn-row を縦並び・中央揃え・全幅に */
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; justify-content: center; }

  /* ヒーローのパディング調整 */
  .hero .hero-inner { padding: 0 20px 10vh; }

  /* フッター */
  .footer { padding: 60px 20px 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }

  /* セクション余白 */
  .section { padding: var(--pad-section) 20px; }
}

/* ── 別トーン案 ── */
body.tone-sunrise {
  --c-base:#fbf2e8; --c-surface:#fffaf3; --c-ink:#43281d; --c-ink-soft:#7c5746;
  --c-accent:#e08a4b; --c-accent2:#e16179; --c-line:rgba(67,40,29,0.13);
}
body.tone-mist {
  --c-base:#f6f7f6; --c-surface:#ffffff; --c-ink:#26383a; --c-ink-soft:#5f7376;
  --c-accent:#5ba0a4; --c-accent2:#c386a0; --c-line:rgba(38,56,58,0.12);
}