/* 夜5分の瞑想 — サービス紹介HP
   デザインの正本：HP制作/デザイン/カンプ_縦つなぎ_20261023.png（Harukaze式で承認）
   空の色は夕暮れ（01）から夜（04）へ。文字は白の明朝、細い罫線、アクセントは白い星と三日月。 */
:root {
  --indigo: #2b3470;
  --night: #1b2150;
  --violet: #6b5aa6;
  --dusk: #e89aa6;
  --coral: #f4b8a0;
  --rose: #e3304f;
  --white: #ffffff;
  --veil: rgba(255, 255, 255, .78);
  --line: rgba(255, 255, 255, .55);
  --font: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --max: 560px;
  --gutter: 20px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--white);
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .06em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
.br-sp { display: none; }
@media (max-width: 560px) { .br-sp { display: inline; } }

/* ── 空の背景（セクションごとの水彩の空。上下をぼかしてつなぐ） ── */
.scene { position: relative; isolation: isolate; overflow: hidden; }
/* 空：各セクションの空（色のグラデーション＋水彩の画像）を、上隣のセクションへ --seam だけ重ねて
   上端だけをフェードさせる。上のセクションの空は最後まで不透明なので、境目は雲どうしの重ね合わせになる */
:root { --seam: 140px; }
.scene + .scene { margin-top: calc(var(--seam) * -1); }
.scene:nth-child(1) { z-index: 1; } .scene:nth-child(2) { z-index: 2; } .scene:nth-child(3) { z-index: 3; } .scene:nth-child(4) { z-index: 4; }
.sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.scene + .scene .sky {
  -webkit-mask-image: linear-gradient(transparent, #000 var(--seam));
          mask-image: linear-gradient(transparent, #000 var(--seam));
}
.scene + .scene .inner { padding-top: calc(72px + var(--seam)); }
.scene--hero .sky { background: linear-gradient(#1f328b, #7a5ab0 50%, #fc9a85); }
.scene--flow .sky { background: linear-gradient(#faaca3, #b07fa6 45%, #694f83); }
.scene--quiet .sky { background: linear-gradient(#8a6fb9, #5a5aa6 50%, #313f89); }
.scene--close .sky { background: linear-gradient(#3851a1, #18245e 55%, #09133a); }
.sky__plate {
  position: absolute; inset: -16px 0;
  background: center / cover no-repeat;
  transform: translate3d(0, var(--parallax, 0px), 0);
  animation: drift 60s ease-in-out infinite alternate;
  will-change: transform;
}
[data-sky="01"] .sky__plate { background-image: url("../img/bg-01.webp"); }
[data-sky="02"] .sky__plate { background-image: url("../img/bg-02.webp"); }
[data-sky="03"] .sky__plate { background-image: url("../img/bg-03.webp"); }
[data-sky="04"] .sky__plate { background-image: url("../img/bg-04.webp"); }
@keyframes drift {
  from { background-position: 46% 50%; }
  to { background-position: 54% 50%; }
}

/* 星：JSで小さな点を散らし、ゆっくりまたたかせる */
.stars { position: absolute; inset: 0; }
.star {
  position: absolute; width: var(--s, 2px); height: var(--s, 2px); border-radius: 50%;
  background: #fff; box-shadow: 0 0 6px 1px rgba(255, 255, 255, .6);
  opacity: .25; animation: twinkle var(--t, 5s) ease-in-out var(--delay, 0s) infinite;
}
.star--cross { width: 14px; height: 14px; background: none; box-shadow: none; }
.star--cross::before, .star--cross::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: #fff; border-radius: 2px;
  box-shadow: 0 0 6px rgba(255, 255, 255, .8); transform: translate(-50%, -50%);
}
.star--cross::before { width: 1.5px; height: 100%; }
.star--cross::after { width: 100%; height: 1.5px; }
@keyframes twinkle {
  0%, 100% { opacity: .2; transform: scale(.7); }
  50% { opacity: 1; transform: scale(1); }
}

/* ── 共通のレイアウト ── */
.inner {
  max-width: var(--max); margin: 0 auto;
  padding: 72px var(--gutter) 96px;
  text-align: center;
}

/* ── 01 ファーストビュー ── */
.scene--hero .inner { padding-top: 40px; padding-bottom: calc(40px + var(--seam)); }
.logo { margin: 0 auto 18px; width: min(220px, 56vw); }
.lead { word-break: auto-phrase; margin: 0 0 18px; font-size: clamp(13px, 3.6vw, 16px); color: var(--veil); letter-spacing: .1em; line-height: 1.7; }
.headline { margin: 0; font-weight: 500; font-size: clamp(31px, 9.4vw, 48px); line-height: 1.32; letter-spacing: .04em; text-shadow: 0 2px 24px rgba(43, 52, 112, .35); }
.headline__line { display: block; overflow: hidden; padding-bottom: .06em; }
.headline__line > span { display: inline-block; transform: translateY(105%); filter: blur(6px); opacity: 0; animation: rise 1.4s var(--ease) forwards; }
.headline__line:nth-child(1) > span { animation-delay: .45s; }
.headline__line:nth-child(2) > span { animation-delay: .65s; }
.headline__line:nth-child(3) > span { animation-delay: .85s; }
@keyframes rise { to { transform: translateY(0); filter: blur(0); opacity: 1; } }
.moon { display: inline-block; vertical-align: .1em; width: .62em; height: .62em; margin-left: .12em; fill: #f6d3a7; filter: drop-shadow(0 0 10px rgba(246, 211, 167, .8)); animation: glow 4s ease-in-out 2s infinite; }
@keyframes glow { 50% { filter: drop-shadow(0 0 18px rgba(246, 211, 167, 1)); } }
.sub { word-break: auto-phrase; margin: 18px 0 0; font-size: 1em; color: var(--veil); line-height: 1.8; }
.hero-in { opacity: 0; transform: translateY(10px); animation: fade-up 1.2s var(--ease) calc(var(--d) * .15s + .2s) forwards; }
@keyframes fade-up { to { opacity: 1; transform: none; } }

.figure { margin: 18px auto 8px; width: min(420px, 86vw); aspect-ratio: 1; }
.figure img { width: 100%; height: 100%; clip-path: circle(0% at 50% 55%); animation: reveal-circle 2.4s var(--ease) 1.2s forwards, float 9s ease-in-out 3.6s infinite; }
@keyframes reveal-circle { to { clip-path: circle(75% at 50% 55%); } }
@keyframes float { 50% { transform: translateY(-8px); } }

.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 10px 0 22px; padding: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 16px; letter-spacing: .04em; line-height: 1.4;
  background: rgba(255, 255, 255, .06); backdrop-filter: blur(2px);
}
.chip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.scene--hero .chip { opacity: 0; animation: fade-up 1s var(--ease) forwards; }
.scene--hero .chip:nth-child(1) { animation-delay: 2.2s; }
.scene--hero .chip:nth-child(2) { animation-delay: 2.32s; }
.scene--hero .chip:nth-child(3) { animation-delay: 2.44s; }
.scene--hero .chip:nth-child(4) { animation-delay: 2.56s; }

/* ── ボタン ── */
.cta { display: grid; justify-items: center; gap: 12px; }
.scene--hero .cta { opacity: 0; animation: fade-up 1.1s var(--ease) 2.7s forwards; }
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  width: min(100%, 420px); min-height: 58px; padding: 10px 22px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .8);
  font-size: clamp(16px, 4.6vw, 19px); letter-spacing: .03em; text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.btn > span { flex: 1; }
.btn__icon { width: 30px; flex: none; }
.btn__icon--tt { width: 22px; fill: #fff; }
.btn__chev { width: 9px; flex: none; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.btn:hover .btn__chev { transform: translateX(3px); }
.btn--youtube {
  background: linear-gradient(100deg, #d9234a, #ee4a62 55%, #f27a72);
  box-shadow: 0 10px 30px -8px rgba(217, 35, 74, .65), inset 0 0 18px rgba(255, 255, 255, .18);
}
.btn--youtube::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  animation: shine 5.5s ease-in-out 3.5s infinite;
}
@keyframes shine { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.btn--tiktok { width: min(86%, 340px); min-height: 50px; font-size: clamp(15px, 4.2vw, 17px); background: rgba(255, 255, 255, .1); backdrop-filter: blur(4px); }
.btn--dark { background: rgba(20, 22, 60, .45); }
.note { display: flex; align-items: center; gap: 14px; width: 100%; margin: 6px 0 0; font-size: 13px; color: var(--veil); }
.note::before, .note::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.note--plain::before, .note--plain::after { display: none; }
.note--plain { justify-content: center; }

/* ── 02 毎回の流れ ── */
.title { margin: 0 0 8px; font-weight: 400; font-size: clamp(30px, 8.6vw, 42px); letter-spacing: .18em; line-height: 1.5; }
.title::after { content: ""; display: block; width: 48px; height: 1px; margin: 22px auto 0; background: var(--line); }
.title--lg { font-size: clamp(22px, 6.2vw, 30px); letter-spacing: .08em; }
.title--lg::after, .title--xl::after { display: none; }
.title--xl { font-size: clamp(25px, 7.2vw, 36px); letter-spacing: .1em; line-height: 1.6; }
.steps { list-style: none; margin: 26px 0 0; padding: 0; text-align: left; }
.step {
  position: relative; display: grid; grid-template-columns: 52px 1fr 96px; align-items: center; gap: 16px;
  padding: 22px 0;
}
.step::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--ease) .3s; }
.step:last-child::after { display: none; }
.step.is-in::after { transform: scaleX(1); }
.step__num { grid-column: 1; grid-row: 1; width: 52px; height: 52px; fill: none; stroke: #fff; stroke-width: 1.2; transform: rotate(-90deg); }
.step__num circle { stroke-dasharray: 139; stroke-dashoffset: 139; transition: stroke-dashoffset 1.6s var(--ease) .2s; }
.step.is-in .step__num circle { stroke-dashoffset: 0; }
.step__no { grid-column: 1; grid-row: 1; text-align: center; font-size: 20px; letter-spacing: 0; }
.step__text { grid-column: 2; margin: 0; font-size: clamp(17px, 4.8vw, 21px); letter-spacing: .08em; line-height: 1.5; }
.step__text span { white-space: nowrap; }
.step__art { grid-column: 3; justify-self: center; width: auto; max-width: 96px; max-height: 88px; filter: drop-shadow(0 0 8px rgba(255, 255, 255, .35)); }
.step__art--glow { animation: halo-glow 5s ease-in-out infinite; }
@keyframes halo-glow { 50% { filter: drop-shadow(0 0 14px rgba(255, 255, 255, .7)); } }
.step__art--bell { transform-origin: 50% 8%; }
.step.is-in .step__art--bell { animation: ring 6s ease-in-out 1.2s infinite; }
@keyframes ring { 0%, 86%, 100% { transform: rotate(0); } 89% { transform: rotate(10deg); } 92% { transform: rotate(-8deg); } 95% { transform: rotate(4deg); } }
.caption { margin: 34px 0 0; font-size: clamp(16px, 4.4vw, 19px); letter-spacing: .14em; }

/* ── 03 静かな5分 ── */
.scene--quiet .inner { padding-top: calc(96px + var(--seam)); }
.breath { position: relative; width: min(320px, 72vw); aspect-ratio: 1; margin: 40px auto 36px; }
.breath__lottie { position: absolute; inset: 0; opacity: .9; }
.breath__rings { position: absolute; inset: 0; }
.breath__rings i { position: absolute; inset: calc(var(--i) * 11%); border: 1px solid rgba(255, 255, 255, .6); border-radius: 50%; animation: breathe 9.5s ease-in-out calc(var(--i) * -.35s) infinite; }
.breath__rings i:nth-child(1) { --i: 0; }
.breath__rings i:nth-child(2) { --i: 1; }
.breath__rings i:nth-child(3) { --i: 2; }
.breath__rings i:nth-child(4) { --i: 3; }
.has-lottie .breath__rings { display: none; }
@keyframes breathe { 0%, 100% { transform: scale(.82); opacity: .45; } 45%, 55% { transform: scale(1); opacity: 1; } }
.breath__light { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 22px 8px rgba(255, 255, 255, .55); animation: pulse 9.5s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(.7); opacity: .7; } 50% { transform: scale(1.15); opacity: 1; } }
.body { margin: 0; font-size: clamp(17px, 4.8vw, 21px); letter-spacing: .08em; line-height: 1.9; }
.chips--pair { margin-top: 30px; }
.chips--pair .chip { padding: 10px 22px; font-size: 15px; background: none; }

/* ── 04 登録の呼びかけ ── */
.scene--close .inner { padding-top: calc(120px + var(--seam)); padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
.scene--close .cta { margin-top: 44px; }
.shooting-star {
  position: absolute; top: 12%; left: 8%; width: 140px; height: 1.5px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff);
  border-radius: 2px; opacity: 0; transform: rotate(-24deg);
  animation: shoot 11s ease-out 2s infinite;
}
@keyframes shoot {
  0% { opacity: 0; transform: translate(0, 0) rotate(-24deg) scaleX(.2); }
  3% { opacity: 1; }
  9% { opacity: 0; transform: translate(260px, -116px) rotate(-24deg) scaleX(1); }
  100% { opacity: 0; transform: translate(260px, -116px) rotate(-24deg); }
}
.footer { margin-top: 120px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .35); font-size: 12px; color: rgba(255, 255, 255, .8); line-height: 2; }
.footer p { margin: 0; }
.footer a { text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .4); }

/* ── 画面下に浮かぶ登録ボタン ── */
.floating-cta {
  position: fixed; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 10;
  width: min(92vw, 440px); transform: translate(-50%, 140%); opacity: 0;
  transition: transform .7s var(--ease), opacity .5s var(--ease);
  filter: drop-shadow(0 10px 22px rgba(20, 20, 60, .45));
}
.floating-cta.is-on { transform: translate(-50%, 0); opacity: 1; }
.floating-cta img { width: 100%; height: auto; }
.floating-cta::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%) -150% 0 / 200% 100% no-repeat;
  -webkit-mask: url("../img/cta-youtube.webp") center / 100% 100% no-repeat;
          mask: url("../img/cta-youtube.webp") center / 100% 100% no-repeat;
  animation: sweep 5s ease-in-out 1s infinite;
}
@keyframes sweep { 0%, 65% { background-position: -150% 0; } 100% { background-position: 250% 0; } }
body.has-floating main { padding-bottom: 0; }
.scene--flow .inner, .scene--quiet .inner { padding-bottom: calc(64px + var(--seam)); }

/* ── 章の表示（ui-patterns: chapter-reveal 1.0.0） ── */

/* ── PC ── */
@media (min-width: 900px) {
  :root { --max: 640px; }
  .scene--hero .inner { padding-top: 56px; }
  .figure { width: 400px; }
}

/* ── 動きを減らす設定 ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .headline__line > span, .hero-in, .scene--hero .chip, .scene--hero .cta { opacity: 1; transform: none; filter: none; }
  .figure img { clip-path: none; }
  .step::after { transform: none; }
  .step__num circle { stroke-dashoffset: 0; }
  .sky__plate { transform: none; }
  .shooting-star { display: none; }
}
