@charset "UTF-8";
/* ==========================================================================
   凪空はりきゅう院 - common.css
   全ページ共通
     1. デザイントークン
     2. リセット / ベース
     3. ユーティリティ
     4. ボタン
     5. 波 / 雲 / 装飾
     6. ローダー
     7. ヘッダー / ナビゲーション
     8. フッター
     9. 固定CTA / ページトップ
    10. スクロール演出（リビール）
    11. モーション低減
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. デザイントークン
   -------------------------------------------------------------------------- */
:root {
  /* ベース：白 */
  --c-white: #ffffff;
  --c-base: #f8fcfe;

  /* サブ：ロゴの水色 */
  --sky-50:  #f4fafd;
  --sky-100: #e6f3fa;
  --sky-200: #cde8f5;
  --sky-300: #a8d6ee;
  --sky-400: #8cc7e6;
  --sky-500: #6db3da;
  --sky-600: #4b91bb;
  --sky-700: #326d92;
  --sky-800: #275574;
  --sky-900: #1f455c;

  /* アクセント：ゴールド */
  --gold-100: #f8f2e4;
  --gold-200: #eee0c2;
  --gold-300: #e0c993;
  --gold-400: #d0b173;
  --gold-500: #bd9d59;
  --gold-600: #a08346;

  /* 文字色 */
  --ink: #3b4952;
  --ink-soft: #62737d;
  --ink-pale: #8c9ba4;

  /* フォント */
  --f-serif: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --f-sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --f-en: "Cormorant Garamond", "Times New Roman", serif;

  /* レイアウト */
  --header-h: 80px;
  --container: 1140px;
  --radius: 20px;

  /* 余白リズム */
  --sp-sec: clamp(78px, 8.6vw, 132px);
  --sp-sec-sm: clamp(56px, 6.4vw, 96px);

  /* イージング */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 2px 6px rgba(39, 85, 116, .04), 0 8px 24px rgba(39, 85, 116, .06);
  --shadow-md: 0 4px 12px rgba(39, 85, 116, .05), 0 16px 44px rgba(39, 85, 116, .1);
  --shadow-lg: 0 8px 20px rgba(39, 85, 116, .06), 0 30px 72px rgba(39, 85, 116, .15);
}

@media (max-width: 980px) {
  :root { --header-h: 64px; }
}

/* --------------------------------------------------------------------------
   2. リセット / ベース
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--c-white);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 2;
  letter-spacing: .05em;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, p, figure, dl, dd, blockquote, address { margin: 0; }
address { font-style: normal; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; transition: color .35s var(--ease), opacity .35s var(--ease); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-style: normal; }
small { font-size: inherit; }

:focus-visible {
  outline: 2px solid var(--sky-600);
  outline-offset: 3px;
  border-radius: 3px;
}

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.anchor { display: block; position: relative; top: 0; height: 0; }

/* 本文へスキップ */
.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 1000;
  transform: translate(-50%, -160%);
  padding: 10px 24px;
  border-radius: 999px;
  background: var(--sky-800);
  color: #fff;
  font-size: 14px;
  letter-spacing: .08em;
  box-shadow: var(--shadow-md);
  transition: transform .3s var(--ease);
}
.skip-link:focus-visible { transform: translate(-50%, 0); }

/* --------------------------------------------------------------------------
   3. ユーティリティ
   -------------------------------------------------------------------------- */
.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}
.container--narrow { max-width: 900px; }

@media (max-width: 600px) {
  .container { width: calc(100% - 40px); }
}

.sp-only { display: none; }
.pc-only { display: inline; }
@media (max-width: 700px) {
  .sp-only { display: inline; }
  .pc-only { display: none; }
}

.dot { color: var(--gold-500); }
.nowrap { white-space: nowrap; }

/* 行マスク（見出し用の共通パーツ） */
.line { display: block; overflow: hidden; padding-bottom: .1em; }
.line__in { display: inline-block; }

/* --------------------------------------------------------------------------
   5. ボタン
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 14px 44px 15px;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  font-family: var(--f-sans);
  line-height: 1.4;
  text-align: center;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, .42) 50%, transparent 68%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease);
}
.btn:hover { transform: translateY(-3px); }
.btn:hover::before { transform: translateX(120%); }
.btn:active { transform: translateY(-1px); }

.btn__sub {
  font-size: 11px;
  letter-spacing: .16em;
  opacity: .92;
}
.btn__main {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .08em;
}
.btn__main::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 12px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .4s var(--ease);
}
.btn:hover .btn__main::after { transform: translate(5px, -2px) rotate(45deg); }

/* ゴールド（メインCTA） */
.btn--gold {
  background: linear-gradient(118deg, var(--gold-300) 0%, var(--gold-400) 42%, var(--gold-600) 100%);
  color: #fff;
  box-shadow: 0 10px 26px rgba(160, 131, 70, .3);
}
.btn--gold:hover { box-shadow: 0 18px 38px rgba(160, 131, 70, .38); }

/* 白（濃色背景の上） */
.btn--white {
  background: var(--c-white);
  color: var(--sky-800);
  box-shadow: 0 12px 30px rgba(31, 69, 92, .26);
}
.btn--white .btn__sub { color: var(--sky-600); }
.btn--white:hover { box-shadow: 0 20px 44px rgba(31, 69, 92, .34); }

.btn--lg {
  padding: 18px 60px 20px;
  min-width: 322px;
}
.btn--lg .btn__main { font-size: 20px; }
.btn--lg .btn__sub { font-size: 12px; }

@media (max-width: 600px) {
  .btn--lg { min-width: 0; width: 100%; padding: 15px 24px 17px; }
  .btn--lg .btn__main { font-size: 17px; }
}

/* --------------------------------------------------------------------------
   6. 波 / 雲 / 装飾
   -------------------------------------------------------------------------- */
.wave {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 200%;
  max-width: none; /* リセットの max-width:100% を打ち消す（2倍幅で横スクロールさせるため） */
  height: 100%;
  animation: waveSlide 18s linear infinite;
}
.wave use { fill: currentColor; }

.wave--1 { color: var(--sky-100); opacity: .85; animation-duration: 24s; }
.wave--2 { color: var(--sky-200); opacity: .7;  animation-duration: 17s; animation-direction: reverse; }
.wave--3 { color: var(--c-white); animation-duration: 13s; }

@keyframes waveSlide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.cloud {
  position: absolute;
  width: 120px;
  height: auto;
  max-width: none;
  fill: rgba(255, 255, 255, .88);
  animation: cloudDrift 40s linear infinite;
  will-change: transform;
}
.cloud use { fill: inherit; }

@keyframes cloudDrift {
  0%   { transform: translate3d(-16vw, var(--py, 0px), 0); }
  50%  { transform: translate3d(8vw, calc(var(--py, 0px) - 12px), 0); }
  100% { transform: translate3d(32vw, var(--py, 0px), 0); }
}

@keyframes softFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

/* 単体の装飾雲 */
.deco-cloud {
  position: absolute;
  pointer-events: none;
  opacity: .8;
  transform: translateY(var(--py, 0px));
}
.deco-cloud svg { width: 100%; height: auto; fill: var(--sky-100); }

/* --------------------------------------------------------------------------
   7. ローダー
   -------------------------------------------------------------------------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--c-white) 0%, var(--sky-50) 100%);
  transition: opacity .9s var(--ease), visibility .9s var(--ease);
}
.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  transform: translateY(-18px);
}

.loader__logo {
  width: 112px;
  height: 112px;
  margin: 0 auto 24px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(75, 145, 187, .3);
  animation: loaderPop 1.05s var(--ease-out) both, softFloat 3.4s ease-in-out 1.05s infinite;
}
.loader__logo img { width: 100%; height: 100%; object-fit: cover; }

.loader__name {
  font-family: var(--f-serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .24em;
  text-indent: .24em;
  color: var(--sky-900);
  animation: loaderFade .9s var(--ease) .3s both;
}
.loader__en {
  font-family: var(--f-en);
  font-size: 13px;
  letter-spacing: .44em;
  text-indent: .44em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-top: 4px;
  animation: loaderFade .9s var(--ease) .46s both;
}

.loader__bar {
  display: block;
  width: 118px;
  height: 2px;
  margin: 26px auto 0;
  border-radius: 2px;
  background: var(--sky-100);
  overflow: hidden;
  animation: loaderFade .9s var(--ease) .6s both;
}
.loader__bar i {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--sky-300), var(--gold-300));
  animation: loaderBar 1.5s var(--ease) .7s infinite;
}

.loader__waves {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 200px;
  overflow: hidden;
  z-index: 1;
}
.loader__waves .wave--1 { color: var(--sky-200); opacity: .55; }
.loader__waves .wave--2 { color: var(--sky-300); opacity: .45; }
.loader__waves .wave--3 { color: var(--sky-400); opacity: .35; }

@keyframes loaderPop {
  from { opacity: 0; transform: scale(.8); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes loaderFade {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes loaderBar {
  0%   { transform: translateX(-110%); }
  100% { transform: translateX(260%); }
}

/* --------------------------------------------------------------------------
   8. ヘッダー / ナビゲーション
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, .74);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(168, 214, 238, .28);
  transition: background-color .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.header.is-scrolled {
  background: rgba(255, 255, 255, .95);
  border-bottom-color: rgba(168, 214, 238, .5);
  box-shadow: 0 2px 24px rgba(39, 85, 116, .07);
}

.header__inner {
  width: min(100% - 40px, 1340px);
  margin-inline: auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: height .45s var(--ease);
}

/* スクロール進捗バー */
.header__progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
  background: linear-gradient(90deg, var(--sky-400), var(--gold-400));
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.header.is-scrolled .header__progress { opacity: 1; }

/* ロゴ配置エリア */
.logo {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-shrink: 0;
}
.logo__mark {
  display: block;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(75, 145, 187, .24);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.logo__mark img { width: 100%; height: 100%; object-fit: cover; }
.logo:hover .logo__mark { transform: scale(1.06) rotate(-4deg); box-shadow: 0 8px 22px rgba(75, 145, 187, .34); }
.logo__mark--lg { width: 82px; height: 82px; }

.logo__text { display: flex; flex-direction: column; line-height: 1.28; }
.logo__ja {
  font-family: var(--f-serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--sky-900);
}
.logo__en {
  font-family: var(--f-en);
  font-size: 11px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold-500);
}

/* グローバルナビ */
.gnav { display: flex; align-items: center; gap: 24px; }
.gnav__list { display: flex; align-items: center; gap: 21px; }
.gnav__list a {
  position: relative;
  display: block;
  padding: 4px 0;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .05em;
  color: var(--sky-800);
  white-space: nowrap;
}
.gnav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold-400);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.gnav__list a:hover::after,
.gnav__list a.is-active::after { transform: scaleX(1); transform-origin: left; }
.gnav__list a.is-active { color: var(--gold-600); }

.gnav__cta { padding: 9px 24px 10px; }
.gnav__cta .btn__sub { font-size: 10px; }
.gnav__cta .btn__main { font-size: 13.5px; }
.gnav__cta .btn__main::after { width: 6px; height: 6px; margin-left: 8px; }

/* ハンバーガー */
.menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 46px;
  position: relative;
  z-index: 101; /* ドロワーより前面に置いて閉じられるようにする */
}
.menu-toggle__bars { display: block; width: 24px; height: 15px; position: relative; }
.menu-toggle__bars i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--sky-800);
  border-radius: 2px;
  transition: transform .45s var(--ease), opacity .3s var(--ease);
}
.menu-toggle__bars i:nth-child(1) { top: 0; }
.menu-toggle__bars i:nth-child(2) { top: 6.75px; }
.menu-toggle__bars i:nth-child(3) { top: 13.5px; }
.menu-toggle__label {
  font-family: var(--f-en);
  font-size: 9px;
  letter-spacing: .18em;
  color: var(--sky-700);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:nth-child(1) { transform: translateY(6.75px) rotate(38deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:nth-child(3) { transform: translateY(-6.75px) rotate(-38deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(31, 69, 92, .38);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .45s var(--ease);
}
.nav-overlay.is-open { opacity: 1; }

@media (max-width: 1180px) {
  .gnav__list { gap: 16px; }
  .gnav__list a { font-size: 13px; }
}

@media (max-width: 1040px) {
  .menu-toggle { display: flex; }

  .gnav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 99;
    width: min(85vw, 348px);
    height: 100dvh;
    padding: calc(var(--header-h) + 30px) 30px 46px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    background: linear-gradient(170deg, var(--c-white) 0%, var(--sky-50) 62%, var(--sky-100) 100%);
    box-shadow: -14px 0 46px rgba(39, 85, 116, .18);
    transform: translateX(100%);
    transition: transform .55s var(--ease-out);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .gnav.is-open { transform: translateX(0); }

  .gnav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .gnav__list li { border-bottom: 1px solid rgba(168, 214, 238, .45); }
  .gnav__list a {
    padding: 16px 4px;
    font-size: 15px;
    font-family: var(--f-serif);
    opacity: 0;
    transform: translateX(20px);
    transition: opacity .5s var(--ease), transform .5s var(--ease);
  }
  .gnav.is-open .gnav__list a {
    opacity: 1;
    transform: none;
    transition-delay: calc(.14s + var(--i, 0) * 45ms);
  }
  .gnav__list a::after { display: none; }
  .gnav__list a.is-active { color: var(--gold-600); }

  .gnav__cta {
    margin-top: 32px;
    padding: 14px 20px 16px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .5s var(--ease) .46s, transform .5s var(--ease) .46s, box-shadow .4s var(--ease);
  }
  .gnav.is-open .gnav__cta { opacity: 1; transform: none; }
  .gnav__cta .btn__main { font-size: 15px; }
}

/* --------------------------------------------------------------------------
   9. フッター
   -------------------------------------------------------------------------- */
.footer {
  position: relative;
  background: linear-gradient(170deg, var(--sky-700) 0%, var(--sky-900) 100%);
  color: rgba(255, 255, 255, .9);
  padding: clamp(56px, 6vw, 78px) 0 0;
}

.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 50px;
  padding-bottom: clamp(40px, 4.6vw, 58px);
}

/* ロゴ配置エリア（フッター） */
.footer__brand { text-align: center; flex-shrink: 0; }
.footer__brand .logo__mark { margin: 0 auto 16px; box-shadow: 0 10px 26px rgba(0, 0, 0, .22); }
.footer__name {
  font-family: var(--f-serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .18em;
  text-indent: .18em;
  color: #fff;
}
.footer__en {
  font-family: var(--f-en);
  font-size: 12px;
  letter-spacing: .42em;
  text-indent: .42em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-top: 6px;
}

.footer__meta { text-align: right; }
.footer__addr, .footer__mail { font-size: 14px; letter-spacing: .06em; }
.footer__mail a { color: var(--gold-300); }
.footer__mail a:hover { color: var(--gold-200); }
.footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 24px;
  margin-top: 24px;
}
.footer__nav a {
  font-size: 13px;
  letter-spacing: .06em;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color .35s var(--ease), color .35s var(--ease);
}
.footer__nav a:hover { border-bottom-color: var(--gold-300); color: var(--gold-200); }

.footer__copy {
  border-top: 1px solid rgba(255, 255, 255, .16);
  padding: 20px 0 24px;
  text-align: center;
  font-family: var(--f-en);
  font-size: 12px;
  letter-spacing: .2em;
  color: rgba(255, 255, 255, .66);
}

@media (max-width: 820px) {
  .footer__inner {
    flex-direction: column;
    align-items: center;
    gap: 34px;
  }
  .footer__meta { text-align: center; }
  .footer__nav ul { justify-content: center; }
}

/* --------------------------------------------------------------------------
   10. 固定CTA / ページトップ
   -------------------------------------------------------------------------- */
.fixed-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: none;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--sky-100);
  transform: translateY(110%);
  transition: transform .5s var(--ease-out);
}
.fixed-cta.is-visible { transform: translateY(0); }
.fixed-cta .btn { width: 100%; padding: 11px 20px 13px; }
.fixed-cta .btn__main { font-size: 16px; }

@media (max-width: 1040px) {
  .fixed-cta { display: block; }
  .footer__copy { padding-bottom: 88px; }
}

.to-top {
  position: fixed;
  right: 26px;
  bottom: 30px;
  z-index: 89;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .45s var(--ease), transform .45s var(--ease), visibility .45s var(--ease), background-color .3s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--sky-50); }
.to-top span {
  width: 9px;
  height: 9px;
  border-top: 1.5px solid var(--sky-700);
  border-right: 1.5px solid var(--sky-700);
  transform: translateY(2px) rotate(-45deg);
  transition: transform .35s var(--ease);
}
.to-top:hover span { transform: translateY(-1px) rotate(-45deg); }

@media (max-width: 1040px) {
  .to-top { right: 14px; bottom: 96px; width: 42px; height: 42px; }
}

/* --------------------------------------------------------------------------
   11. スクロール演出（リビール）
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transition:
    opacity .95s var(--ease) var(--delay, 0ms),
    transform 1.05s var(--ease-out) var(--delay, 0ms);
}
[data-reveal="up"]    { transform: translateY(32px); }
[data-reveal="left"]  { transform: translateX(-38px); }
[data-reveal="right"] { transform: translateX(38px); }
[data-reveal="scale"] { transform: scale(.93); }
[data-reveal="mask"]  { transform: translateY(18px); }
[data-reveal="lines"] { opacity: 1; }

/* 行マスクの中身を持ち上げる演出。
   監視対象を overflow:hidden の外側（見出し自体）に置くこと。
   translateY で枠外へ出した要素を直接監視すると交差判定が0になり発火しない。 */
[data-reveal="lines"] .line__in {
  transform: translateY(110%);
  transition: transform 1.05s var(--ease-out) var(--delay, 0ms);
}
[data-reveal="lines"].is-visible .line__in { transform: none; }

[data-reveal].is-visible { opacity: 1; transform: none; }

/* マスク（下から開く）演出。
   clip-path は監視対象そのものに掛けると IntersectionObserver の交差判定が
   ゼロになり発火しなくなるため、必ず子要素側に掛ける。 */
[data-reveal="mask"] > * {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.15s var(--ease-out) var(--delay, 0ms);
}
[data-reveal="mask"].is-visible > * { clip-path: inset(0 0 0 0); }

/* ヒーローの入場アニメーション（ローダー完了後に起動） */
.hero__anim {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 1s var(--ease) calc(var(--d, 0) * 105ms),
    transform 1.1s var(--ease-out) calc(var(--d, 0) * 105ms);
}
.hero__title .hero__anim { opacity: 1; transform: translateY(108%); }
.hero__anim--visual { transform: translateY(28px) scale(.95); }

body.is-ready .hero__anim { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   12. モーション低減
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
  }
  [data-reveal], .hero__anim, [data-reveal="mask"] > *, [data-reveal="lines"] .line__in {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
}
