/* =============================================================
   日本舌協会 協会HP (hp.blade.php)
   前半 = シネマティック・スクロール（場面積層 / クロスディゾルブ / 縦書き）
   後半 = 明るい情報パート
   末尾 = エンディングロール（実質のフッター兼CTA）
   ============================================================= */

.hpw {
  --ink: #26333d;
  --muted: #5c6b76;
  --coral: #f0563c;
  --coral-deep: #d94328;
  --coral-soft: #ffd7c9;
  --peach: #fff1ea;
  --teal: #0e8d7c;
  --teal-deep: #0a6c60;
  --mint: #e7f6f1;
  --mint-deep: #cdeee4;
  --sun: #ffb928;
  --sun-soft: #fff3d9;
  --cream: #fff8f2;
  --line: #f0e5dd;
  --film-ink: #f3eee4;
  --r-lg: 36px;
  --r-md: 26px;
  --shadow: 0 22px 55px rgba(120, 76, 56, .13);
  --shadow-soft: 0 10px 30px rgba(120, 76, 56, .08);
  --f-mincho: "Zen Old Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --f-round: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
  --f-en: "Quicksand", "Zen Maru Gothic", sans-serif;
  --f-body: "Zen Maru Gothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  position: relative;
  overflow-x: clip;
  background: #05070a;
  color: var(--ink);
  font-family: var(--f-body);
  font-feature-settings: "palt" 1;
  line-height: 1.85;
  text-rendering: optimizeLegibility;
}

.hpw *, .hpw *::before, .hpw *::after { box-sizing: border-box; }
.hpw ::selection { background: var(--coral-soft); color: #1b1207; }
.hpw a:focus-visible, .hpw button:focus-visible, .hpw input:focus-visible { outline: 3px solid #7fd4c6; outline-offset: 3px; border-radius: 6px; }
.hpw h1, .hpw h2, .hpw h3, .hpw h4 { overflow-wrap: normal; word-break: auto-phrase; text-wrap: balance; margin: 0; font-family: var(--f-round); }
.hpw p, .hpw li, .hpw blockquote { overflow-wrap: break-word; text-wrap: pretty; }
.hpw img { max-width: 100%; height: auto; }
.hpw-wrap { width: min(1160px, 100% - 44px); margin-inline: auto; }

.hpw-sp-br { display: none; }
.hpw-pc-br { display: none; }
@media (max-width: 720px) { .hpw-sp-br { display: inline; } }
@media (min-width: 721px) { .hpw-pc-br { display: inline; } }

/* =============================================================
   1. FILM ── 場面積層
   ============================================================= */
.hpw-film { position: relative; z-index: 0; background: #05070a; }

/* 既定（JS無効・reduced-motion）= 場面がそのまま縦に並ぶ */
.hpw-film-stage { position: relative; }
.hpw-scene { position: relative; height: 100svh; overflow: hidden; opacity: 1; }

/* JS有効 = ステージをpinし、全場面を同じ枠へ重ねて不透明度だけ動かす。
   （sticky個別pinだと、切替中の後続シーンが未pinでコピーがずり下がる） */
.hpw.js-film .hpw-film-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.hpw.js-film .hpw-scene { position: absolute; inset: 0; height: auto; opacity: 0; }

.hpw-scene-bg { position: absolute; inset: 0; background: #05070a; }
.hpw-scene-bg .hpw-art,
.hpw-scene-bg .hpw-scene-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.08);
  transition: transform 2s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}
.hpw-scene.on .hpw-scene-bg .hpw-art,
.hpw-scene.on .hpw-scene-bg .hpw-scene-img { transform: scale(1); }

/* 実写は50人超のコンタクトシート。素のままだと情報量が勝ってコピーが沈む */
.hpw-scene-people .hpw-scene-img { filter: saturate(.55) brightness(.42) contrast(1.1); }
/* コピー側に片流れのスクリム。文字だけ確実に浮かせる */
.hpw-scene-people .hpw-scene-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(255deg, rgba(4, 5, 8, .96) 4%, rgba(4, 5, 8, .72) 32%, rgba(4, 5, 8, .1) 74%);
}

/* ヴィネット。写真・図版どちらでも文字が乗る */
.hpw-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 100% at 42% 45%, transparent 34%, rgba(4, 5, 8, .86) 100%);
}

.hpw-scene-copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
  padding: 0 clamp(24px, 8vw, 110px);
  pointer-events: none;
  /* 背景より急峻に消す。でないと切替の中間で前後のコピーが重なって潰れる */
  opacity: var(--copy, 1);
}

.hpw-tate {
  writing-mode: vertical-rl;
  text-orientation: upright;
  margin: 0;
  max-height: 70svh;
  font-family: var(--f-mincho);
  font-weight: 600;
  font-size: clamp(1.35rem, 3.6vw, 2.15rem);
  line-height: 2.15;
  letter-spacing: .3em;
  color: var(--film-ink);
  text-shadow: 0 2px 24px rgba(0, 0, 0, .92);
}
.hpw-tate-lead { font-size: clamp(1.5rem, 4vw, 2.5rem); font-weight: 900; }
/* 語の泣き別れ防止（「未来がある。」を1列に保つ） */
.hpw-tate .hpw-keep { white-space: nowrap; }
.hpw-scene.on .hpw-tate { animation: hpw-tate-in 1.5s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes hpw-tate-in { from { opacity: 0; transform: translateY(-26px); } to { opacity: 1; transform: none; } }

.hpw-scene-en {
  writing-mode: vertical-rl;
  margin: 0;
  align-self: center;
  font-family: var(--f-en);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .34em;
  color: rgba(243, 238, 228, .48);
}
.hpw-scene.on .hpw-scene-en { animation: hpw-fade-in 1.8s .35s ease both; }
@keyframes hpw-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* 映画字幕風の説明（1シーン=1行。抽象画の「何の絵か」を言葉で補う） */
.hpw-scene-sub {
  position: absolute;
  left: 50%;
  bottom: clamp(88px, 13svh, 140px);
  transform: translateX(-50%);
  margin: 0;
  width: max-content;
  max-width: min(90vw, 860px);
  text-align: center;
  font-size: clamp(17px, 2.2vw, 27px);
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.9;
  color: rgba(243, 238, 228, .94);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .9), 0 2px 22px rgba(0, 0, 0, .95);
}
.hpw-scene.on .hpw-scene-sub { animation: hpw-sub-in 1.6s .7s ease both; }
@keyframes hpw-sub-in {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* シーン内の動き：タイトル「日本舌協会」の立ち上がり */
.hpw-title-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3svh, 30px);
  padding: 0 20px;
  text-align: center;
  opacity: var(--copy, 1);
  pointer-events: none;
}
.hpw-title-org {
  margin: 0;
  font-size: clamp(13px, 1.8vw, 19px);
  font-weight: 700;
  letter-spacing: .55em;
  text-indent: .55em;
  color: rgba(243, 238, 228, .62);
}
.hpw-title-main {
  margin: 0;
  font-family: var(--f-mincho);
  font-weight: 700;
  font-size: clamp(56px, 13vw, 184px);
  line-height: 1.1;
  letter-spacing: .06em;
  text-indent: .06em;
  white-space: nowrap;
  color: #f5efe4;
  text-shadow: 0 2px 70px rgba(0, 0, 0, .65);
}
.hpw-title-en {
  margin: 0;
  font-family: var(--f-en);
  font-size: clamp(10px, 1.2vw, 13px);
  font-weight: 600;
  letter-spacing: .5em;
  text-indent: .5em;
  color: rgba(240, 180, 143, .78);
}
.hpw-scene.on .hpw-title-org { animation: hpw-fade-in 1.6s .9s ease both; }
.hpw-scene.on .hpw-title-main { animation: hpw-title-in 2.1s .15s cubic-bezier(.22, .7, .3, 1) both; }
.hpw-scene.on .hpw-title-en { animation: hpw-fade-in 1.6s 1.3s ease both; }
@keyframes hpw-title-in {
  from { opacity: 0; letter-spacing: .3em; text-indent: .3em; filter: blur(8px); }
  to { opacity: 1; letter-spacing: .06em; text-indent: .06em; filter: blur(0); }
}

.hpw-film-cue {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-en);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .34em;
  color: rgba(243, 238, 228, .55);
  pointer-events: none;
  transition: opacity .6s ease;
}
.hpw-film-cue span { display: block; width: 1px; height: 34px; background: linear-gradient(180deg, transparent, rgba(243, 238, 228, .75)); }
.hpw-film-cue.is-hidden { opacity: 0; }

/* 白丸カーソル（映画パートの上だけ） */
@media (pointer: fine) {
  .hpw-dot {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 200;
    pointer-events: none;
    visibility: hidden;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    border-radius: 50%;
    background: #fff;
    mix-blend-mode: difference;
    transition: width .25s ease, height .25s ease, margin .25s ease;
    will-change: transform;
  }
  body.hpw-cursor-live .hpw-dot { visibility: visible; }
  body.hpw-cursor-live .hpw-film { cursor: none; }
  .hpw-dot.is-grow { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
}
@media (pointer: coarse) { .hpw-dot { display: none; } }

/* =============================================================
   2. BODY ── 明るい情報パート
   ============================================================= */
.hpw-body { position: relative; z-index: 1; background: #fff; border-radius: clamp(24px, 4vw, 46px) clamp(24px, 4vw, 46px) 0 0; }
.hpw-body::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 18px;
  width: 46px;
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  transform: translateX(-50%);
}
.hpw-body section { position: relative; padding: clamp(64px, 9vw, 104px) 0; }
/* フッターの #story / #history / #course が sticky ヘッダーの下に潜らないように */
.hpw-body section[id], .hpw-credits[id] { scroll-margin-top: 72px; }

.hpw-kicker {
  margin: 0 0 14px;
  color: var(--teal-deep);
  font-family: var(--f-en);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .26em;
  line-height: 1.5;
}
.hpw-kicker-light { color: #a9e6d7; }

.hpw-head { max-width: 800px; margin: 0 auto clamp(34px, 5vw, 52px); text-align: center; }
.hpw-head h2, .hpw-check-intro h2 {
  font-size: clamp(25px, 4.3vw, 39px);
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: .02em;
}
.hpw-lead { margin: 16px auto 0; color: var(--muted); font-size: 15.5px; line-height: 2.1; }
.hpw-lead small { display: block; margin-top: 6px; font-size: 11.5px; color: #8a959e; }

.hpw-mark {
  font-style: normal;
  font-weight: inherit;
  background: linear-gradient(transparent 64%, var(--coral-soft) 64%, var(--coral-soft) 94%, transparent 94%);
  padding: 0 .06em;
}

.hpw-note { margin: 28px auto 0; max-width: 760px; text-align: center; color: #8a959e; font-size: 12.5px; line-height: 1.9; }

.hpw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  font-family: var(--f-round);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
  transition: transform .35s cubic-bezier(.2, .8, .3, 1), box-shadow .35s ease;
}
.hpw-btn i { font-style: normal; transition: transform .35s cubic-bezier(.2, .8, .3, 1); }
.hpw-btn:hover { transform: translateY(-2px); }
.hpw-btn:hover i { transform: translateX(4px); }
.hpw-btn-primary { background: linear-gradient(135deg, #ff7d55, var(--coral)); color: #fff; box-shadow: 0 14px 30px rgba(240, 86, 60, .34); }
.hpw-btn-primary:hover { box-shadow: 0 18px 36px rgba(240, 86, 60, .42); }
.hpw-btn-light { background: #fff; color: var(--coral-deep); box-shadow: 0 16px 34px rgba(0, 0, 0, .4); }

/* reveal */
.hpw.js-on [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1.2s cubic-bezier(.2, .65, .25, 1), transform 1.2s cubic-bezier(.2, .65, .25, 1); }
.hpw.js-on [data-reveal].is-visible { opacity: 1; transform: none; }
.hpw.js-on [data-reveal-group] > [data-reveal]:nth-child(2) { transition-delay: .1s; }
.hpw.js-on [data-reveal-group] > [data-reveal]:nth-child(3) { transition-delay: .2s; }
.hpw.js-on [data-reveal-group] > [data-reveal]:nth-child(4) { transition-delay: .3s; }

/* ---- 3つの機能 / 学び方 ---- */
.hpw-functions { padding-top: clamp(52px, 7vw, 92px) !important; background: #fff; }
.hpw-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.hpw-card {
  padding: 32px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-soft);
  transition: transform .4s cubic-bezier(.2, .8, .3, 1), box-shadow .4s ease;
}
.hpw-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.hpw-card h3 { font-size: 20px; font-weight: 800; margin: 6px 0 10px; }
.hpw-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 2; }
.hpw-card-no { margin: 0; font-family: var(--f-en); font-size: 11px; font-weight: 700; letter-spacing: .2em; color: var(--coral); }

.hpw-icon { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 18px; border-radius: 22px; }
.hpw-icon svg { width: 32px; height: 32px; }
.hpw-icon-mint { background: var(--mint); color: var(--teal); }
.hpw-icon-peach { background: var(--peach); color: var(--coral); }
.hpw-icon-sun { background: var(--sun-soft); color: #d9930d; }

/* ---- 舌の変化 ---- */
/* 美容セクション：うすいピーチ地で「美容」の空気だけ変える。中身は共通カード */
.hpw-beauty { background: #fdf1ec; }

.hpw-change { background: var(--cream); }
.hpw-change-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; }
.hpw-change-step {
  position: relative;
  padding: 28px 22px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-soft);
  text-align: center;
}
.hpw-change-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -17px;
  z-index: 1;
  color: var(--coral);
  font-weight: 900;
  font-size: 18px;
  transform: translateY(-50%);
}
.hpw-change-no { display: inline-block; margin: 14px 0 2px; font-family: var(--f-en); font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--coral); }
.hpw-change-step h3 { font-size: 16.5px; font-weight: 800; line-height: 1.6; margin: 2px 0 8px; }
.hpw-change-step p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.95; text-align: left; }

.hpw-tongue-mini { width: 86px; height: 86px; }
.hpw-tongue-mini .t-body { stroke-width: 3; stroke-linejoin: round; }
.hpw-tongue-mini .t-healthy { fill: #ff8f72; stroke: #ef5f43; }
.hpw-tongue-mini .t-dry { fill: #eda28c; stroke: #cf7a60; }
.hpw-tongue-mini .t-weak { fill: #ecb2a1; stroke: #c98a75; }
.hpw-tongue-mini .t-dull { fill: #ddbcb0; stroke: #b28e80; }
.hpw-tongue-mini .t-center { stroke: rgba(255, 255, 255, .75); stroke-width: 3; stroke-linecap: round; }
.hpw-tongue-mini .t-shine { stroke: #ffd9cf; stroke-width: 4; stroke-linecap: round; }
.hpw-tongue-mini .t-crack { stroke: #a05f47; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.hpw-tongue-mini .t-limit { stroke: #d5b7ab; stroke-width: 3.4; stroke-linecap: round; stroke-dasharray: 2 6; }
.hpw-tongue-mini .t-alert { fill: var(--sun); }
.hpw-tongue-mini .t-alert-mark { stroke: #fff; stroke-width: 3.2; stroke-linecap: round; }

/* ---- エビデンス ---- */
.hpw-evidence { background: #fff; }
.hpw-flow { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center; gap: 12px; margin: 0 0 30px; padding: 0; list-style: none; }
.hpw-flow li:not(.hpw-flow-arrow) { flex: 1 1 230px; max-width: 300px; padding: 24px 26px; background: var(--cream); border-radius: var(--r-md); }
.hpw-flow li span { font-family: var(--f-en); font-size: 11.5px; font-weight: 700; letter-spacing: .2em; color: var(--coral); }
.hpw-flow li h3 { margin: 6px 0 8px; font-size: 18.5px; font-weight: 800; }
.hpw-flow li p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.95; }
.hpw-flow-arrow { align-self: center; color: var(--coral); font-weight: 900; font-size: 20px; }

.hpw-research { padding: clamp(28px, 4vw, 42px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-soft); }
.hpw-research-tag { display: inline-block; margin: 0 0 14px; padding: 6px 14px; background: var(--sun-soft); border-radius: 999px; color: #a06c00; font-family: var(--f-en); font-size: 10.5px; font-weight: 700; letter-spacing: .2em; }
.hpw-research h3 { font-size: clamp(17px, 2.4vw, 21px); font-weight: 800; line-height: 1.85; }
.hpw-research > p { margin: 14px 0 0; color: var(--muted); font-size: 14.5px; line-height: 2.1; }
.hpw-research-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hpw-research-links a { padding: 10px 18px; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; transition: border-color .3s ease, color .3s ease, transform .3s ease; }
.hpw-research-links a:hover { border-color: var(--coral); color: var(--coral-deep); transform: translateY(-2px); }

.hpw-medical { margin-top: 22px; padding: 26px 30px; background: var(--mint); border-radius: var(--r-md); }
.hpw-medical b { display: block; margin-bottom: 6px; font-family: var(--f-round); font-size: 15px; font-weight: 800; color: var(--teal-deep); }
.hpw-medical p { margin: 0; font-size: 13.5px; line-height: 2.05; color: #35494f; }

/* ---- ライフタイム ---- */
.hpw-lifetime { background: var(--cream); }
.hpw-life { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin: 0; padding: 0; list-style: none; }
.hpw-life-item { padding-top: 20px; border-top: 5px solid var(--coral-soft); }
.hpw-life-item:nth-child(2) { border-top-color: var(--sun-soft); }
.hpw-life-item:nth-child(3) { border-top-color: var(--mint-deep); }
.hpw-life-item:nth-child(4) { border-top-color: #bfe0da; }
.hpw-life-age { display: inline-flex; align-items: baseline; gap: 3px; font-family: var(--f-en); font-size: clamp(27px, 3vw, 34px); font-weight: 700; color: var(--coral-deep); line-height: 1.2; }
.hpw-life-age small { font-family: var(--f-round); font-size: 13px; font-weight: 800; color: var(--muted); }
.hpw-life-item h3 { margin: 8px 0; font-size: 18.5px; font-weight: 800; }
.hpw-life-item p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 2; }

/* ---- 30秒チェック ---- */
.hpw-check { background: var(--mint); }
.hpw-check-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.hpw-check-intro { text-align: left; }
.hpw-check-intro .hpw-lead { margin-left: 0; }
.hpw-check-count { display: flex; align-items: baseline; gap: 8px; margin: 26px 0 0; }
.hpw-check-count strong { font-family: var(--f-en); font-size: 72px; font-weight: 700; line-height: 1; color: var(--coral); }
.hpw-check-count span { font-family: var(--f-en); font-size: 20px; font-weight: 700; color: var(--muted); }

.hpw-check-list { display: grid; gap: 12px; }
.hpw-check-list label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: border-color .3s ease, transform .3s ease;
}
.hpw-check-list label:hover { transform: translateY(-2px); }
.hpw-check-list label:has(:checked) { border-color: var(--coral); background: #fff8f4; }
.hpw-check-list label:has(:focus-visible) { outline: 3px solid var(--teal); outline-offset: 3px; }
.hpw-check-item { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hpw-check-list i { flex: none; width: 27px; height: 27px; border: 2.5px solid #c6d3d9; border-radius: 9px; background: #fff; transition: background .25s ease, border-color .25s ease; }
.hpw-check-list label:has(:checked) i { background: var(--coral); border-color: var(--coral); }
.hpw-check-list label:has(:checked) i::after { content: ""; display: block; width: 7px; height: 12px; margin: 2px auto 0; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(42deg); }
.hpw-check-list span { font-size: 15px; font-weight: 700; line-height: 1.7; }
.hpw-check-list span b { margin-right: 10px; font-family: var(--f-en); font-size: 12px; font-weight: 700; color: var(--coral); }
.hpw-check-result { margin: 8px 0 0; padding: 16px 20px; background: rgba(255, 255, 255, .75); border-radius: 16px; font-family: var(--f-round); font-size: 14.5px; font-weight: 700; line-height: 1.9; color: var(--teal-deep); }

/* ---- 学び方 ---- */
.hpw-learning { background: #fff; }
.hpw-learning .hpw-card-no { color: var(--teal); letter-spacing: .24em; }
.hpw-forwhom { margin-top: 34px; text-align: center; }
.hpw-forwhom p { margin: 0 0 14px; font-family: var(--f-round); font-size: 15px; font-weight: 800; color: var(--teal-deep); }
.hpw-forwhom ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.hpw-forwhom li { padding: 10px 20px; background: var(--peach); border-radius: 999px; color: #a4482e; font-size: 13.5px; font-weight: 700; }

/* ---- マルチページ化（HPナビ/サブページ扉/入口カード/理念） ---- */
/* PCではヘッダー(appbar)内メニューが担当するため、白いサブナビはスマホ・タブレットのみ */
@media (min-width: 920px) {
  .hpw-nav { display: none; }
}
.hpw-nav {
  position: sticky;
  top: var(--appbar-h, 52px);
  z-index: 55;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #efe7db;
}
.hpw-nav-in {
  display: flex;
  justify-content: center;
  gap: clamp(2px, 1.6vw, 10px);
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.hpw-nav-in::-webkit-scrollbar { display: none; }
.hpw-nav a {
  flex: 0 0 auto;
  padding: 13px 12px;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: .05em;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .25s ease;
}
.hpw-nav a:hover { color: var(--coral-deep); }
.hpw-nav a.is-now { color: var(--coral-deep); border-bottom-color: var(--coral); }

/* サブページの扉（映画パートの世界観を引き継ぐ暗幕） */
.hpw-hero {
  position: relative;
  padding: clamp(76px, 15svh, 140px) 24px clamp(52px, 9svh, 100px);
  background: radial-gradient(120% 90% at 50% 16%, #2a1712 0%, #0a0605 72%);
  text-align: center;
  color: #f3eee4;
}
.hpw-hero-en { margin: 0 0 14px; font-family: var(--f-en); font-size: 11px; font-weight: 700; letter-spacing: .5em; text-indent: .5em; color: rgba(240, 180, 143, .8); }
.hpw-hero-title { margin: 0; font-family: var(--f-mincho); font-size: clamp(30px, 5.4vw, 54px); font-weight: 700; letter-spacing: .1em; text-indent: .1em; color: #f5efe4; }
.hpw-hero-lead { max-width: 660px; margin: 20px auto 0; font-size: clamp(13px, 1.6vw, 15px); font-weight: 700; letter-spacing: .08em; line-height: 2.2; color: rgba(243, 238, 228, .8); }

/* トップ：各ページへの入口カード */
.hpw-menu { background: #fff; }
.hpw-menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.hpw-menu-card {
  display: block;
  position: relative;
  padding: 30px 30px 58px;
  border: 1px solid #efe7db;
  border-radius: var(--r-md);
  text-decoration: none;
  color: inherit;
  transition: transform .35s ease, box-shadow .35s ease;
}
.hpw-menu-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(31, 20, 12, .12); }
.hpw-menu-en { margin: 0 0 10px; font-family: var(--f-en); font-size: 10.5px; font-weight: 700; letter-spacing: .3em; color: var(--coral-deep); }
.hpw-menu-card h3 { margin: 0 0 10px; font-size: clamp(20px, 2.4vw, 25px); font-weight: 900; }
.hpw-menu-card > p:not(.hpw-menu-en) { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 2; }
.hpw-menu-more { position: absolute; left: 30px; bottom: 22px; font-size: 13px; font-weight: 800; color: var(--coral-deep); }
.hpw-menu-chouzetsu { background: #fdf1ec; }
.hpw-menu-courses { background: var(--cream); }
.hpw-menu-activities { background: #e9f6f1; }
.hpw-menu-about { background: #f5f2ec; }

/* 協会について：理念 */
.hpw-mission { background: #fff; }
.hpw-mission-note { max-width: 700px; margin: 0 auto; padding: 26px 30px; background: var(--cream); border-radius: var(--r-md); }
.hpw-mission-note p { margin: 0; font-size: 14px; font-weight: 600; line-height: 2.2; color: var(--muted); }

/* ---- 公式コンテンツ再構成分（問いかけ/調舌とは/実例/講座/FAQ/概要） ---- */
.hpw-ask { padding-top: clamp(52px, 7vw, 92px) !important; background: #fff; }
.hpw-ask-close { margin: 32px 0 0; text-align: center; font-family: var(--f-round); font-size: clamp(15px, 2vw, 18.5px); font-weight: 800; line-height: 2; }
.hpw-what { background: var(--cream); }

/* ビフォーアフター実例 */
.hpw-case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.hpw-case { padding: 26px 28px; background: #fff; border: 1px solid #efe7db; border-radius: var(--r-md); }
.hpw-case-who { margin: 0 0 14px; font-size: 15.5px; font-weight: 800; }
.hpw-case-before, .hpw-case-after { position: relative; margin: 0 0 10px; padding: 11px 16px 11px 76px; border-radius: 10px; font-size: 13.5px; line-height: 1.9; }
.hpw-case-before { background: var(--cream); color: var(--muted); }
.hpw-case-after { margin-bottom: 0; background: #e9f6f1; font-weight: 700; }
.hpw-case-before::before, .hpw-case-after::before { position: absolute; left: 16px; top: 13px; font-family: var(--f-en); font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.hpw-case-before::before { content: "BEFORE"; color: #b3a691; }
.hpw-case-after::before { content: "AFTER"; color: var(--teal); }

/* 講座カードの認定バッジ */
.hpw-course-cert { display: inline-block; margin: 14px 0 0; padding: 8px 14px; background: var(--cream); border-radius: 999px; font-size: 12px; font-weight: 800; color: var(--coral-deep); }

/* FAQ */
.hpw-faq { background: var(--cream); }
.hpw-faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.hpw-faq-list details { padding: 0 22px; background: #fff; border: 1px solid #efe7db; border-radius: var(--r-md); }
.hpw-faq-list summary { display: flex; align-items: center; gap: 12px; padding: 18px 0; cursor: pointer; list-style: none; font-size: 15px; font-weight: 800; }
.hpw-faq-list summary::-webkit-details-marker { display: none; }
.hpw-faq-list summary::before { content: "Q"; flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; background: var(--coral); color: #fff; border-radius: 50%; font-family: var(--f-en); font-size: 13px; font-weight: 700; }
.hpw-faq-list details p { margin: 0; padding: 0 0 18px 40px; color: var(--muted); font-size: 14px; line-height: 2; }

/* 認定ネットワーク・協会概要 */
.hpw-org { background: #fff; }
.hpw-org-areas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 36px; padding: 0; list-style: none; }
.hpw-org-areas li { padding: 10px 20px; background: var(--mint); border-radius: 999px; color: var(--teal-deep); font-size: 13.5px; font-weight: 700; }
.hpw-org-table { max-width: 760px; margin: 0 auto; border-top: 1px solid #efe7db; }
.hpw-org-table > div { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding: 15px 6px; border-bottom: 1px solid #efe7db; }
.hpw-org-table dt { font-size: 13.5px; font-weight: 800; color: var(--teal-deep); }
.hpw-org-table dd { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.9; }

/* ---- 実績 ---- */
.hpw-proof { background: linear-gradient(135deg, #129480 0%, #0a6c60 100%); color: #fff; }
.hpw-proof h2 { color: #fff; }
.hpw-proof .hpw-lead { color: #d9f2ec; }
.hpw-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; }
.hpw-stats > div { padding: 26px 24px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--r-md); }
.hpw-stats dt { font-size: 12.5px; font-weight: 700; color: #a9e6d7; letter-spacing: .06em; }
.hpw-stats dd { display: flex; align-items: baseline; gap: 5px; margin: 8px 0 0; }
.hpw-stats strong { font-family: var(--f-en); font-size: clamp(34px, 3.6vw, 48px); font-weight: 700; line-height: 1; }
.hpw-stats dd span { font-size: 14px; font-weight: 700; color: #d9f2ec; }
.hpw-proof-date { margin: 30px auto 0; text-align: center; color: rgba(255, 255, 255, .55); font-size: 11.5px; }

/* ---- 歩み ---- */
.hpw-history { background: #fff; }
.hpw-history-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.hpw-history-group { padding: 28px 28px 22px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-lg); }
.hpw-history-year { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.hpw-history-year strong { font-family: var(--f-en); font-size: 34px; font-weight: 700; color: var(--coral); line-height: 1; }
.hpw-history-year span { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.hpw-history-list { margin: 0; padding: 0; list-style: none; }
.hpw-history-list li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto auto;
  grid-template-areas: "time event tag detail";
  align-items: center;
  gap: 6px 10px;
  padding: 13px 0;
  border-top: 1px dashed #e8d9cd;
}
.hpw-history-list time { grid-area: time; font-family: var(--f-en); font-size: 15.5px; font-weight: 700; color: var(--coral-deep); }
.hpw-history-event { grid-area: event; min-width: 0; }
.hpw-history-event h3 { font-size: 15px; font-weight: 800; line-height: 1.6; }
.hpw-history-event p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.hpw-history-list .hpw-tag { grid-area: tag; }
.hpw-history-detail { grid-area: detail; }
.hpw-tag { padding: 4px 12px; background: var(--mint); border-radius: 999px; color: var(--teal-deep); font-size: 11px; font-weight: 700; white-space: nowrap; }
.hpw-history-detail { padding: 4px 12px; background: #edf1f3; border-radius: 999px; color: #46545e; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.hpw-history-detail.is-plan { background: var(--sun-soft); color: #9c6a00; }
.hpw-history-series { display: grid; gap: 10px; margin-top: 14px; }
.hpw-history-series article { padding: 14px 18px; background: #fff; border-radius: 16px; }
.hpw-history-series small { font-family: var(--f-en); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; color: var(--muted); }
.hpw-history-series h3 { font-size: 14.5px; font-weight: 800; margin: 2px 0; }
.hpw-history-series b { font-size: 12px; color: var(--coral-deep); }

/* ---- 受講者の声 ---- */
.hpw-voices { background: var(--peach); }
.hpw-voice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hpw-voice { position: relative; margin: 0; padding: 30px 28px 26px; background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow-soft); }
.hpw-voice::before { content: "\201C"; position: absolute; top: 6px; left: 20px; font-family: var(--f-en); font-size: 64px; font-weight: 700; line-height: 1; color: var(--coral-soft); }
.hpw-voice blockquote { margin: 14px 0 0; font-size: 15px; font-weight: 600; line-height: 2.05; }
.hpw-voice figcaption { display: flex; align-items: center; gap: 10px; margin-top: 18px; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.hpw-voice figcaption span { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #ff9a77, var(--coral)); color: #fff; font-family: var(--f-en); font-size: 11.5px; font-weight: 700; }

/* ---- 無料セミナー ---- */
.hpw-course { background: #fff; }
.hpw-board { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.hpw-board-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 22px; padding: clamp(24px, 3vw, 32px) clamp(22px, 3.4vw, 38px); background: linear-gradient(135deg, #ff8b60, var(--coral)); color: #fff; }
.hpw-board-badge { display: inline-block; padding: 7px 15px; background: #fff; border-radius: 999px; color: var(--coral-deep); font-family: var(--f-en); font-size: 10.5px; font-weight: 700; letter-spacing: .16em; white-space: nowrap; }
.hpw-board-title p { margin: 0; font-size: 12.5px; font-weight: 700; color: rgba(255, 255, 255, .9); }
.hpw-board-title h3 { margin: 3px 0 0; font-size: clamp(22px, 3vw, 29px); font-weight: 900; color: #fff; }
.hpw-board-title small { display: block; margin-top: 5px; font-size: 11.5px; color: rgba(255, 255, 255, .85); }
.hpw-board-price { margin: 0; text-align: right; line-height: 1.3; }
.hpw-board-price strong { display: block; font-family: var(--f-round); font-size: clamp(26px, 3vw, 32px); font-weight: 900; }
.hpw-board-price span { font-size: 11.5px; font-weight: 700; color: rgba(255, 255, 255, .85); }

.hpw-board-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: clamp(22px, 3.4vw, 34px); }
.hpw-board-group { padding: 22px 24px; background: #f7fbf9; border: 1px solid #e2efe9; border-radius: var(--r-md); }
.hpw-board-group-head p { margin: 0; font-family: var(--f-en); font-size: 10.5px; font-weight: 700; letter-spacing: .2em; color: var(--teal); }
.hpw-board-group-head h4 { margin: 4px 0 2px; font-size: 20px; font-weight: 900; }
.hpw-board-group-head span { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.hpw-board-dates { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.hpw-board-dates li { display: flex; align-items: baseline; gap: 10px; padding: 12px 18px; background: #fff; border-radius: 14px; box-shadow: 0 4px 14px rgba(120, 76, 56, .06); }
.hpw-board-dates time { display: inline-flex; align-items: baseline; gap: 4px; }
.hpw-board-dates time b { font-family: var(--f-en); font-size: 21px; font-weight: 700; }
.hpw-board-dates time span { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.hpw-board-dates time span::before { content: "（"; }
.hpw-board-dates time span::after { content: "）"; }
.hpw-board-dates em { margin-left: auto; font-style: normal; font-size: 14.5px; font-weight: 800; color: var(--coral-deep); }
.hpw-board-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 20px clamp(22px, 3.4vw, 34px) clamp(22px, 3.4vw, 30px); border-top: 1px solid var(--line); }
.hpw-board-foot p { margin: 0; font-size: 12px; color: var(--muted); }

.hpw-course-card { text-align: center; }
.hpw-course-card h3 { margin: 14px 0 8px; font-size: 21px; }
.hpw-course-card .hpw-board-price { text-align: center; margin: 0 0 16px; }
.hpw-course-card .hpw-board-price strong { color: var(--coral-deep); }
.hpw-course-card .hpw-board-price span { color: var(--muted); }
.hpw-course-card .hpw-board-badge { background: var(--peach); }

.hpw-terms { margin-top: 24px; padding: 26px 30px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-md); }
.hpw-terms-head { display: flex; align-items: baseline; gap: 12px; }
.hpw-terms-head span { font-family: var(--f-en); font-size: 10.5px; font-weight: 700; letter-spacing: .2em; color: var(--coral); }
.hpw-terms-head h3 { font-size: 17px; font-weight: 800; }
.hpw-terms-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 16px; }
.hpw-terms-list article { padding: 16px 18px; background: #fff; border-radius: 16px; box-shadow: var(--shadow-soft); }
.hpw-terms-list small { font-size: 11px; color: var(--muted); }
.hpw-terms-list b { display: block; font-family: var(--f-round); font-size: 15px; font-weight: 800; }
.hpw-terms-list p { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font-size: 13px; font-weight: 700; }
.hpw-terms-list p span { padding: 2px 10px; background: var(--mint); border-radius: 999px; font-size: 10.5px; color: var(--teal-deep); }

/* ---- 3ステップ ---- */
.hpw-steps { background: var(--mint); }
.hpw-join { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.hpw-join li { position: relative; padding: 34px 26px 30px; background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow-soft); text-align: center; }
.hpw-join li:not(:last-child)::after { content: "→"; position: absolute; top: 50%; right: -18px; z-index: 1; transform: translateY(-50%); color: var(--teal); font-size: 20px; font-weight: 900; }
.hpw-join span { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin: 0 auto; background: linear-gradient(135deg, #ff9a77, var(--coral)); border-radius: 50%; color: #fff; font-family: var(--f-en); font-size: 24px; font-weight: 700; box-shadow: 0 10px 22px rgba(240, 86, 60, .3); }
.hpw-join h3 { margin: 18px 0 8px; font-size: 18px; font-weight: 800; }
.hpw-join p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 2; }

/* =============================================================
   3. ENDING ROLL
   ============================================================= */
.hpw-credits { position: relative; z-index: 1; height: 160svh; background: #050505; }
.hpw-credits-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; background: #050505; }
.hpw-credits-sky {
  position: absolute;
  inset: 0;
  opacity: .5;
  background-color: #050505;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 22%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 34% 68%, #d8e8f0, transparent),
    radial-gradient(1.6px 1.6px at 58% 14%, #fff, transparent),
    radial-gradient(1.1px 1.1px at 72% 52%, #cfe3ec, transparent),
    radial-gradient(1.5px 1.5px at 86% 30%, #fff, transparent),
    radial-gradient(1.1px 1.1px at 22% 84%, #e5f0f5, transparent),
    radial-gradient(1.3px 1.3px at 46% 40%, #fff, transparent),
    radial-gradient(1px 1px at 92% 74%, #cfe3ec, transparent),
    radial-gradient(1.2px 1.2px at 8% 56%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 66% 88%, #e5f0f5, transparent),
    radial-gradient(120% 80% at 50% 6%, rgba(240, 86, 60, .16), transparent 62%);
}
.hpw-credits-roll {
  position: absolute;
  left: 0;
  right: 0;
  padding: 0 24px;
  text-align: center;
  font-family: var(--f-mincho);
  line-height: 3;
  color: #ede7da;
  letter-spacing: .24em;
  will-change: transform;
}
.hpw-credits-roll .big { font-size: clamp(1.3rem, 3.6vw, 2.1rem); font-weight: 600; line-height: 2.2; margin: 2.4em 0 1.2em; }
.hpw-credits-roll .small { font-size: .84rem; line-height: 2.4; color: #9c9484; margin: 0 0 1.2em; }
.hpw-credits-en { margin: 0; font-family: var(--f-en); font-size: .68rem; font-weight: 700; letter-spacing: .38em; line-height: 2.6; color: #6f6a5f; }
.hpw-credits-cta { margin: 1.6em 0 3em; }
.hpw-credits-label { margin: 0 0 1em; font-family: var(--f-en); font-size: .6rem; font-weight: 700; letter-spacing: .34em; color: #6f6a5f; }
.hpw-credits-social { display: flex; flex-direction: column; gap: .2em; margin-bottom: 3.4em; }
.hpw-credits-social a { color: #c8c0b0; font-size: .82rem; letter-spacing: .18em; text-decoration: none; transition: color .3s ease; }
.hpw-credits-social a:hover { color: #ff9d7d; }
.hpw-credits-mark { padding-top: 2.6em; border-top: 1px solid #241f19; }
.hpw-credits-mark img { width: 64px; height: 64px; opacity: .9; }
.hpw-credits-mark .big { margin: .8em 0 .4em; }

/* =============================================================
   4. 追従CTA
   ============================================================= */
.hpw-sticky {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px 9px 22px;
  background: rgba(255, 255, 255, .96);
  border-radius: 999px;
  box-shadow: 0 18px 44px rgba(4, 5, 8, .4);
  backdrop-filter: blur(10px);
  transform: translateY(150%);
  opacity: 0;
  pointer-events: none;
  transition: transform 1s cubic-bezier(.2, .8, .3, 1), opacity .8s ease;
}
.hpw-sticky.is-shown { transform: none; opacity: 1; pointer-events: auto; }
.hpw-sticky div { display: grid; line-height: 1.4; min-width: 0; }
.hpw-sticky small { font-size: 10px; font-weight: 700; color: var(--muted); }
.hpw-sticky b { font-family: var(--f-round); font-size: 14px; font-weight: 800; white-space: nowrap; }
.hpw-sticky > a { flex: none; margin-left: auto; padding: 13px 22px; background: linear-gradient(135deg, #ff7d55, var(--coral)); border-radius: 999px; color: #fff; font-family: var(--f-round); font-size: 14.5px; font-weight: 800; text-decoration: none; box-shadow: 0 10px 24px rgba(240, 86, 60, .35); }
@media (min-width: 1000px) { .hpw-sticky { left: auto; right: 26px; bottom: 26px; width: max-content; max-width: 420px; } }

/* =============================================================
   5. appbar / footer
   ============================================================= */
body:has(.hpw) { background: #05070a; }
body:has(.hpw) .appbar {
  background: rgba(255, 255, 255, .93);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(38, 51, 61, .07);
  transition: background .6s ease, box-shadow .6s ease;
}
body:has(.hpw) .appbar .icon-btn { color: #26333d; transition: color .6s ease; }
body:has(.hpw) .appbar .icon-btn:hover { background: rgba(38, 51, 61, .07); color: #26333d; }
/* ヘッダー内メニューも白ヘッダーに追従（zetsu.cssの白文字のままだと溶けて見えない） */
body:has(.hpw) .appbar-hpnav a { color: #5d6b76; transition: color .6s ease, background .6s ease; }
body:has(.hpw) .appbar-hpnav a:hover { color: #26333d; background: rgba(38, 51, 61, .07); }
body:has(.hpw) .appbar-hpnav a.is-now { color: #26333d; }
.brand-jta { align-items: center; gap: 9px; }
.brand-jta img { width: 38px; height: 38px; object-fit: contain; }
.brand-jta span { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; color: #26333d; transition: color .6s ease; }

/* 映画パートの上では極小・透明ヘッダーにする */
body.hpw-over-film .appbar { background: rgba(5, 7, 10, .28); box-shadow: none; }
body.hpw-over-film .appbar .icon-btn { color: #f3eee4; }
body.hpw-over-film .appbar .icon-btn:hover { background: rgba(255, 255, 255, .12); }
body.hpw-over-film .appbar-hpnav a { color: rgba(243, 238, 228, .78); }
body.hpw-over-film .appbar-hpnav a:hover { color: #fff; background: rgba(255, 255, 255, .12); }
body.hpw-over-film .appbar-hpnav a.is-now { color: #fff; }
body.hpw-over-film .brand-jta span { color: #f3eee4; }
body.hpw-over-film .brand-jta img { filter: brightness(1.6) contrast(.9); }

.site-footer-hp { margin-top: 0; padding-top: 44px; background: #050505; color: #6f6a5f; }
.site-footer-hp .cols, .site-footer-hp .copy, .site-footer-hp .hp-footer-social { max-width: 1160px; }
.site-footer-hp .cols a { color: #9c9484; }
.site-footer-hp .cols a:hover { color: #ff9d7d; }
.site-footer-hp .copy { border-top: 1px solid #1b1814; color: #5b564d; }
.site-footer-hp .hp-footer-social { margin: 34px auto 0; padding-top: 24px; border-top: 1px solid #1b1814; }
.site-footer-hp .hp-footer-social > p { margin: 0 0 14px; color: #5b564d; font-size: 9px; font-weight: 800; letter-spacing: .22em; }
.site-footer-hp .hp-footer-social > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.site-footer-hp .hp-footer-social a { min-width: 0; min-height: 70px; margin: 0; padding: 14px 18px; display: grid; grid-template-columns: 32px minmax(0, 1fr) 24px; align-items: center; gap: 14px; background: #0d0c0a; border: 1px solid #241f19; border-radius: 16px; color: #ede7da; transition: border-color .3s ease, background .3s ease, transform .3s ease; }
.site-footer-hp .hp-footer-social a:hover { border-color: #ff7d55; background: #141210; transform: translateY(-2px); }
.site-footer-hp .hp-footer-social svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.site-footer-hp .hp-footer-social .hp-footer-dot { fill: currentColor; stroke: none; }
.site-footer-hp .hp-footer-social span { min-width: 0; display: grid; gap: 3px; }
.site-footer-hp .hp-footer-social small { font-size: 9px; font-weight: 800; letter-spacing: .18em; color: #6f6a5f; }
.site-footer-hp .hp-footer-social b { font-size: 13.5px; font-weight: 800; }
.site-footer-hp .hp-footer-social i { justify-self: end; color: #ff9d7d; font-style: normal; }

/* =============================================================
   6. レスポンシブ
   ============================================================= */
@media (max-width: 1080px) {
  .hpw-change-steps { grid-template-columns: repeat(2, 1fr); }
  .hpw-change-step:nth-child(2)::after { content: none; }
  .hpw-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 999px) {
  .hpw-check-grid { grid-template-columns: 1fr; }
  .hpw-history-cols { grid-template-columns: 1fr; }
  .hpw-card-grid { grid-template-columns: 1fr 1fr; }
  .hpw-life { grid-template-columns: 1fr 1fr; gap: 26px 22px; }
  .hpw-voice-grid { grid-template-columns: 1fr; }
  .hpw-board-groups { grid-template-columns: 1fr; }
  .hpw-join { grid-template-columns: 1fr; gap: 30px; max-width: 520px; margin-inline: auto; }
  .hpw-join li:not(:last-child)::after { content: "↓"; top: auto; right: auto; bottom: -26px; left: 50%; transform: translateX(-50%); }
}

/* 縦画面：コピーは中央寄せ、図版は主題を外さない位置へ */
@media (max-aspect-ratio: 3/4) {
  .hpw-scene-copy { justify-content: center; padding: 0 22px; }
  .hpw-scene::after { background: radial-gradient(130% 92% at 50% 44%, transparent 26%, rgba(4, 5, 8, .9) 100%); }
  .hpw-scene-people .hpw-scene-img { object-position: 52% 50%; }
  /* 縦画面はコピーが中央に来るので、片流れでなく中央を落とす */
  .hpw-scene-people .hpw-scene-bg::after {
    background: radial-gradient(78% 46% at 50% 47%, rgba(4, 5, 8, .94) 18%, rgba(4, 5, 8, .66) 58%, rgba(4, 5, 8, .22) 100%);
  }
  .hpw-scene-en { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); }
}

@media (max-width: 720px) {
  .hpw-body section { padding: 56px 0; }
  .hpw-wrap { width: min(1160px, 100% - 34px); }
  .hpw-tate { font-size: clamp(1.2rem, 6.4vw, 1.7rem); letter-spacing: .26em; line-height: 2; max-height: 62svh; }
  .hpw-tate-lead { font-size: clamp(1.35rem, 7vw, 1.9rem); }
  .hpw-card-grid { grid-template-columns: 1fr; }
  .hpw-case-grid { grid-template-columns: 1fr; }
  .hpw-menu-grid { grid-template-columns: 1fr; }
  .hpw-nav-in { justify-content: flex-start; }
  .hpw-org-table > div { grid-template-columns: 88px 1fr; }
  .hpw-change-steps { grid-template-columns: 1fr; gap: 26px; max-width: 460px; margin-inline: auto; }
  .hpw-change-step { display: grid; grid-template-columns: 86px 1fr; grid-template-areas: "icon no" "icon title" "icon body"; column-gap: 18px; text-align: left; align-items: start; }
  .hpw-change-step .hpw-tongue-mini { grid-area: icon; width: 78px; height: 78px; }
  .hpw-change-step .hpw-change-no { grid-area: no; margin: 0; }
  .hpw-change-step h3 { grid-area: title; margin: 2px 0 6px; }
  .hpw-change-step p { grid-area: body; }
  .hpw-change-step:not(:last-child)::after { content: "↓"; top: auto; bottom: -22px; right: auto; left: 50%; transform: translateX(-50%); }
  .hpw-flow { flex-direction: column; align-items: stretch; }
  .hpw-flow li:not(.hpw-flow-arrow) { max-width: none; }
  .hpw-flow-arrow { transform: rotate(90deg); }
  .hpw-life { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .hpw-check-count strong { font-size: 58px; }
  .hpw-stats { gap: 12px; }
  .hpw-stats > div { padding: 20px 18px; }
  .hpw-history-group { padding: 22px 18px 16px; }
  .hpw-history-list li {
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-areas: "time event" "tag detail";
    row-gap: 8px;
  }
  .hpw-history-list .hpw-tag { justify-self: start; margin-left: 0; }
  .hpw-history-detail { justify-self: start; }
  .hpw-board-head { grid-template-columns: 1fr; }
  .hpw-board-badge { justify-self: start; }
  .hpw-board-price { text-align: left; display: flex; align-items: baseline; gap: 8px; }
  .hpw-board-foot { flex-direction: column; align-items: stretch; text-align: center; }
  .hpw-board-foot .hpw-btn { width: 100%; }
  .hpw-sticky { left: 10px; right: 10px; padding-left: 18px; }
  .hpw-sticky small { font-size: 9px; }
  .hpw-sticky b { font-size: 12.5px; }
  .hpw-sticky > a { padding: 12px 18px; font-size: 13px; }
  .hpw-credits-roll .big { font-size: clamp(1.15rem, 5.6vw, 1.6rem); }
}

/* =============================================================
   7. reduced motion ── 全シーンを普通に縦へ並べる
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hpw *, .hpw *::before, .hpw *::after { animation: none !important; transition: none !important; }
  .hpw-film { height: auto !important; }
  .hpw .hpw-film-stage, .hpw.js-film .hpw-film-stage { position: relative; height: auto; }
  .hpw .hpw-scene, .hpw.js-film .hpw-scene { position: relative; inset: auto; height: 100svh; opacity: 1 !important; }
  .hpw-scene-bg .hpw-art, .hpw-scene-bg .hpw-scene-img { transform: none !important; }
  .hpw.js-on [data-reveal] { opacity: 1; transform: none; }
  .hpw-film-cue { display: none; }
  .hpw-credits { height: auto; }
  .hpw-credits-stage { position: relative; height: auto; padding: 64px 0; }
  .hpw-credits-roll { position: relative; transform: none !important; }
  .hpw-sticky { transform: none; opacity: 1; pointer-events: auto; }
}

/* Apple Design / 公式ホームページ
   ブランドの映画表現は保ち、操作面をアプリと同じsystem font・material・press feedbackへ揃える。 */
body.jta-app-ui:has(.hpw) {
  --app-apple-tint: #f0563c;
  --app-apple-tint-dark: #d94328;
}
body.jta-app-ui .hpw {
  --f-round: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  --f-body: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
}
body.jta-app-ui:has(.hpw) .appbar,
body.jta-app-ui .hpw-nav,
body.jta-app-ui .hpw-sticky {
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
}
body.jta-app-ui .hpw-card,
body.jta-app-ui .hpw-research,
body.jta-app-ui .hpw-history-group,
body.jta-app-ui .hpw-board,
body.jta-app-ui .hpw-check-list label,
body.jta-app-ui .hpw-org-table {
  border-width: .5px;
  box-shadow: 0 12px 36px rgba(38,51,61,.08);
}
body.jta-app-ui .hpw :is(a,button,label,input) {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
body.jta-app-ui .hpw :is(.hpw-btn,.hpw-nav a,.hpw-sticky a,.hpw-research-links a,.hpw-check-list label) {
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, opacity .16s ease, transform .1s ease-out;
}
body.jta-app-ui .hpw :is(.hpw-btn,.hpw-nav a,.hpw-sticky a,.hpw-research-links a,.hpw-check-list label):active {
  transform: scale(.97);
  opacity: .86;
}
@media (hover: none) {
  body.jta-app-ui .hpw :is(.hpw-card,.hpw-btn,.hpw-research-links a,.hpw-check-list label):hover { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  body.jta-app-ui:has(.hpw) .appbar,
  body.jta-app-ui .hpw-nav,
  body.jta-app-ui .hpw-sticky { -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  body.jta-app-ui .hpw :is(.hpw-card,.hpw-research,.hpw-history-group,.hpw-board,.hpw-check-list label,.hpw-org-table) { border-width: 1px; }
}
