/* Beauty Pace サイト
   常にライトモード。淡いブラッシュ×ミストの2トーン、英字はセリフ体（Cormorant Garamond）、本文は細めのゴシックに広めの字間。
   パソコンでは左を固定・右をスクロールする2分割、スマホでは1カラム。動きは site.js（スクロールで表示・メニュー・購入ボタン） */
:root {
  --bg: #fdfbfc;
  --surface: #ffffff;
  --blush: #f9dfe4;
  --blush-deep: #f4cbd4;
  --mist: #e6e8f4;
  --ink: #34323a;
  --muted: #45424f;
  --line: rgba(52, 50, 58, 0.14);
  --rose: #9a3d55;
  --gold: #8c7015;
  --gold-bg: #f6eed6;
  --petal: #f5bfca;
  --shadow: 0 30px 60px -20px rgba(150, 80, 110, 0.24);
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --font: system-ui, -apple-system, 'Hiragino Sans', 'Apple SD Gothic Neo', sans-serif;
  --ease: cubic-bezier(0.1, 0.7, 0.4, 1);
  --gutter: max(24px, env(safe-area-inset-left, 0px));
  /* アプリの背景と同じ「グラデーション + ノイズ」 */
  --grain: url(/assets/img/grain.png) 0 0 / 64px 64px repeat;
  /* アイコンと同じ、色がにじみ合うメッシュ風のグラデーション（グレイッシュなライラック・ローズ・ペールイエロー） */
  --g-blush:
    radial-gradient(38% 46% at 86% 10%, rgba(255, 112, 146, 0.55), transparent 72%),
    radial-gradient(46% 52% at 6% 6%, rgba(206, 190, 206, 0.85), transparent 72%),
    radial-gradient(40% 44% at 12% 64%, rgba(255, 128, 156, 0.42), transparent 70%),
    radial-gradient(34% 38% at 56% 42%, rgba(255, 238, 242, 0.75), transparent 70%),
    radial-gradient(48% 52% at 96% 96%, rgba(234, 228, 168, 0.8), transparent 72%),
    radial-gradient(42% 46% at 40% 100%, rgba(250, 196, 210, 0.7), transparent 72%),
    linear-gradient(160deg, #ecd6de 0%, #f7cdd8 48%, #f1e2d8 100%);
  --g-mist:
    radial-gradient(40% 46% at 90% 8%, rgba(246, 168, 196, 0.45), transparent 72%),
    radial-gradient(48% 52% at 4% 10%, rgba(196, 194, 232, 0.8), transparent 72%),
    radial-gradient(36% 40% at 50% 48%, rgba(244, 244, 252, 0.8), transparent 70%),
    radial-gradient(44% 50% at 8% 92%, rgba(214, 206, 240, 0.85), transparent 72%),
    radial-gradient(46% 50% at 96% 96%, rgba(236, 232, 190, 0.6), transparent 72%),
    linear-gradient(160deg, #e3e2f2 0%, #ebe6f4 50%, #f1ecef 100%);
  color-scheme: light only;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--grain), var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  line-height: 2;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
:lang(ja) { letter-spacing: 0.08em; }
:lang(ja) :is(h1, h2, h3) { word-break: auto-phrase; }
:lang(ko) { letter-spacing: 0.01em; line-height: 1.9; word-break: keep-all; overflow-wrap: anywhere; }
html.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 1.5px solid var(--rose); outline-offset: 4px; border-radius: 4px; }
h1, h2, h3 { font-weight: 500; margin: 0; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 999px; }
.skip:focus { top: 12px; }

/* 英字の見出し（セリフ体） */
.label {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--rose);
  display: flex;
  align-items: center;
  gap: 14px;
}
.label::after { content: ''; width: 40px; height: 1px; background: currentColor; opacity: 0.6; }

/* ヘッダー */
.hd {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--gutter);
  pointer-events: none;
}
.hd > * { pointer-events: auto; }
.hd-right { display: flex; align-items: center; gap: 8px; }
.hd-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
/* スマホのヘッダー：すりガラス + ロゴと DL ボタンを横並び */
.hd-dl {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--ink);
  font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-decoration: none; line-height: 1.4;
}
.hd-dl svg { width: 13px; height: 13px; fill: currentColor; }
a.hd-dl { background: var(--ink); color: var(--bg); }
.hd-dl[aria-disabled='true'] { border-color: var(--line); color: var(--muted); background: color-mix(in srgb, var(--surface) 70%, transparent); }
@media (min-width: 1024px) { .hd-dl { display: none; } }

/* 開いたときに一瞬、アプリ名を大きく（スマホのみ） */
.intro {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-content: center; text-align: center; gap: 8px;
  background: var(--grain), var(--g-blush);
  pointer-events: none;
  animation: intro-out 2.2s var(--ease) both;
}
.intro-mark { font-family: var(--serif); font-weight: 500; font-size: clamp(56px, 16vw, 80px); line-height: 1; white-space: nowrap; animation: rise 1.2s var(--ease) both; }
.intro-mark:lang(ko) { font-family: var(--font); letter-spacing: -0.02em; font-size: clamp(48px, 13vw, 64px); }
.intro-display { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--rose); animation: rise 1.2s var(--ease) 0.15s both; }
@keyframes intro-out { 0%, 62% { opacity: 1; visibility: visible; } 100% { opacity: 0; visibility: hidden; } }
@media (min-width: 1024px) { .intro { display: none; } }
@media (prefers-reduced-motion: reduce) { .intro { display: none; } }
/* 言語の切り替え（ヘッダー） */
.hd-lang {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px -8px rgba(150, 80, 110, 0.28);
}
.hd-lang a { white-space: nowrap; text-decoration: none; font-size: 12px; letter-spacing: 0.04em; padding: 6px 12px; border-radius: 999px; color: var(--muted); line-height: 1.4; }
.hd-lang a[aria-current='true'] { background: var(--ink); color: var(--bg); }
/* 韓国語のアプリ名（뷰티 페이스）はセリフ体にハングルがないので本文の書体で */
.side-mark:lang(ko), .ft-mark:lang(ko), .hd-logo:lang(ko), .marquee b:lang(ko) { font-family: var(--font); font-weight: 500; letter-spacing: -0.02em; }
.side-mark:lang(ko) { font-size: clamp(44px, 12vw, 72px); }
.ft-mark:lang(ko) { font-size: clamp(40px, 10vw, 72px); }
.hd-logo:lang(ko) { font-size: 20px; }
.hd-logo {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  line-height: 1;
  transition: opacity 0.6s var(--ease);
}
.page-home .hd-logo { opacity: 0; }
.page-home .hd.is-scrolled .hd-logo, html.menu-open .hd-logo { opacity: 1; }
.hd-menu {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px -8px rgba(150, 80, 110, 0.28);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
  position: relative;
}
.hd-menu i { position: absolute; left: 15px; right: 15px; height: 1.5px; background: currentColor; transition: transform 0.6s var(--ease), top 0.6s var(--ease); }
.hd-menu i:nth-of-type(1) { top: 20px; }
.hd-menu i:nth-of-type(2) { top: 27px; }
.hd-menu[aria-expanded='true'] i:nth-of-type(1) { top: 23.5px; transform: rotate(40deg); }
.hd-menu[aria-expanded='true'] i:nth-of-type(2) { top: 23.5px; transform: rotate(-40deg); }

/* 全画面メニュー */
.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--grain), var(--g-blush);
  display: grid;
  place-items: center;
  padding: 96px var(--gutter) 48px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.6s var(--ease), visibility 0s linear 0.6s;
}
.menu.is-open { visibility: visible; opacity: 1; transition: opacity 0.6s var(--ease); }
.menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; text-align: center; }
.menu li { opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.menu.is-open li { opacity: 1; transform: none; }
.menu.is-open li:nth-child(2) { transition-delay: 0.08s; }
.menu.is-open li:nth-child(3) { transition-delay: 0.16s; }
.menu a { text-decoration: none; display: grid; gap: 2px; }
.menu a b { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 9vw, 64px); line-height: 1.1; letter-spacing: 0.01em; transition: color 0.3s; }
.menu a span { font-size: 12px; color: var(--muted); }
.menu a:hover b, .menu a[aria-current='page'] b { color: var(--rose); }
.lang { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.lang a { text-decoration: none; font-size: 13px; padding: 6px 18px; border-radius: 999px; border: 1px solid var(--line); letter-spacing: 0.06em; }
.lang a[aria-current='true'] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* 2分割（ホーム） */
.side {
  position: relative;
  background: var(--grain), var(--g-blush);
  text-align: center;
  padding: 120px var(--gutter) 24px;
}
.side-in { display: grid; justify-items: center; gap: 0; }
.side-eyebrow { font-size: 12px; letter-spacing: 0.2em; color: var(--muted); }
.side-mark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(52px, 15vw, 96px);
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  margin-top: 10px;
  color: var(--ink);
  animation: rise 1.6s var(--ease) both;
}
.side-display {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--rose);
  margin-top: 14px;
  animation: rise 1.6s var(--ease) 0.15s both;
}
.side-cta { margin-top: 32px; display: grid; justify-items: center; gap: 10px; animation: rise 1.6s var(--ease) 0.3s both; }
.side-cta small { font-size: 12px; color: var(--muted); }
.side-index { display: none; }

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}
.store-btn svg { width: 18px; height: 18px; fill: currentColor; }
a.store-btn:hover { background: var(--ink); color: var(--bg); }
.store-btn[aria-disabled='true'] { border-color: var(--line); color: var(--muted); }

/* ヒーローの画面（アーチの中に端末） */
.hero {
  position: relative;
  background: none;
  padding: 8px var(--gutter) 40px;
  overflow: hidden;
}
/* スマホ：ロゴ・DL ボタンはヘッダーに固定し、大きなアプリ名は開いたときの演出（.intro）で見せる */
.side { display: none; }
.hero { padding-top: 76px; }
.hero::before { content: ''; position: absolute; inset: 0 0 46% 0; background: var(--grain), var(--g-blush); }
/* アーチ：上は薄紫、下に向かって消える */
.arch::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--grain), var(--mist);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 61%, transparent 99%);
  mask-image: linear-gradient(180deg, #000 0%, #000 61%, transparent 99%);
}
.arch {
  isolation: isolate;
  position: relative;
  /* 紫のアーチは外して、端末だけを大きく見せる */
  width: min(290px, 72%);
  margin: 0 auto;
  padding: 0;
}
.arch .mock { animation: rise 1.6s var(--ease) 0.7s both; margin-bottom: -12%; }
.arch::before { display: none; }
@keyframes unveil { from { clip-path: inset(100% 0 0 0 round 999px 999px 28px 28px); } to { clip-path: inset(0 0 -40% 0 round 999px 999px 28px 28px); } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* 舞う花びら */
.petals { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.petals i {
  position: absolute;
  top: -6%;
  left: var(--x);
  width: calc(14px * var(--s));
  height: calc(10px * var(--s));
  background: var(--petal);
  border-radius: 80% 0 80% 0;
  opacity: 0.85;
  animation: fall var(--d) linear var(--delay) infinite, sway 3s ease-in-out var(--delay) infinite alternate;
}
@keyframes fall { to { top: 106%; } }
@keyframes sway { from { transform: translateX(-14px) rotate(-40deg); } to { transform: translateX(14px) rotate(50deg); } }

/* 端末の画面 */
.phone { border-radius: 34px; padding: 6px; background: var(--surface); box-shadow: var(--shadow); }
.phone > img { border-radius: 28px; width: 100%; aspect-ratio: 430 / 932; object-fit: cover; }
/* モック：端末 + 手前に浮かせる UI。位置は端末の幅（100cqw）から計算する */
.mock { position: relative; container-type: inline-size; }
.mock.is-clip .mock-clip { -webkit-mask-image: linear-gradient(#000 78%, transparent 100%); mask-image: linear-gradient(#000 78%, transparent 100%); overflow: hidden; height: calc(6px + (100cqw - 12px) * 932 / 430 * var(--clip)); border-radius: 34px 34px 0 0; }
.mock.is-clip .phone { box-shadow: none; }
/* 強調する UI：元の位置を中心に拡大して、端末の外まではみ出させる */
.mock .notice {
  position: absolute;
  left: 50%;
  top: calc(6px + (100cqw - 12px) * 932 / 430 * 0.045);
  width: calc((100cqw - 12px) * 1.08);
  max-width: none;
  aspect-ratio: var(--ar);
  transform: translate(-50%, -50%);
  border-radius: 22px;
  box-shadow: 0 24px 48px -12px rgba(150, 80, 110, 0.36), 0 4px 12px rgba(150, 80, 110, 0.12);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.mock .side-ui {
  position: absolute;
  max-width: none;
  height: auto;
  z-index: 1;
  box-shadow: 0 24px 48px -12px rgba(150, 80, 110, 0.36), 0 4px 12px rgba(150, 80, 110, 0.12);
}
/* 左上：予約どきの通知 / 右下：組み合わせの注意。メインの UI（.pop）より少し奥に */
.mock .side-ui.is-left { width: 100%; left: -46%; top: 0%; border-radius: 18px; animation: rise 1.4s var(--ease) 1s both; }
.mock .side-ui.is-right { width: 74%; right: -56%; top: 50%; border-radius: 20px; z-index: 3; animation: rise 1.4s var(--ease) 1.2s both; }
.mock .pop { z-index: 2; }
@media (max-width: 1023px) {
  .mock .side-ui.is-left { width: 86%; left: -18%; top: 1%; }
  .mock .side-ui.is-right { width: 66%; right: -20%; top: 62%; }
}
.mock .pop {
  position: absolute;
  left: 50%;
  top: calc(6px + (100cqw - 12px) * 932 / 430 * var(--cy));
  width: calc((100cqw - 12px) * var(--w) * var(--pop));
  max-width: none;
  aspect-ratio: var(--ar);
  transform: translate(-50%, -50%);
  border-radius: calc(var(--r) * var(--pop));
  box-shadow: 0 30px 60px -14px rgba(150, 80, 110, 0.38), 0 6px 16px rgba(150, 80, 110, 0.14);
}

/* セクション */
.sec { padding: 88px var(--gutter); }
.concept { position: relative; z-index: 1; text-align: center; max-width: 30em; margin: 0 auto 40px; animation: rise 1.4s var(--ease) 0.1s both; }
.concept .label { justify-content: center; }
.hero .concept { padding-top: 48px; }
.concept .label::before { content: ''; width: 40px; height: 1px; background: currentColor; opacity: 0.6; }
.concept h1 { font-size: clamp(24px, 3.4vw, 32px); line-height: 1.75; margin-top: 20px; letter-spacing: 0.1em; }
:lang(ko) .concept h1 { letter-spacing: 0.01em; line-height: 1.6; }
.concept h1 em { font-style: normal; color: var(--rose); white-space: nowrap; }
.concept p:not(.label) { margin-top: 20px; color: var(--muted); font-size: 14px; }

/* 流れる大きな英字 */
.marquee { overflow: hidden; padding-block: 8px 24px; }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee span {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(72px, 11vw, 140px);
  line-height: 1.1;
  white-space: nowrap;
  padding-right: 0.5em;
  color: var(--rose);
  opacity: 0.9;
  letter-spacing: 0;
}
.marquee span em { font-style: italic; }
.marquee b, .marquee i { font-weight: inherit; font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 機能 */
.features { display: grid; gap: 112px; padding-top: 40px; }
.feat { display: grid; gap: 40px; }
.feat-visual { position: relative; padding: 56px 8% 0; display: flex; justify-content: center; margin-bottom: 48px; }
.feat-visual::before {
  content: '';
  position: absolute;
  inset: -2% -6% 0;
  background: var(--grain), var(--g-blush);
  /* 角丸ではなく、有機的な形（static/img/blob.svg）で切り抜く。セクションごとに向きを変える */
  -webkit-mask: url(/assets/img/blob.svg) center / 100% 100% no-repeat;
  mask: url(/assets/img/blob.svg) center / 100% 100% no-repeat;
}
.feat:nth-child(2) .feat-visual::before { transform: rotate(28deg) scale(1.04); }
.feat:nth-child(3) .feat-visual::before { transform: scaleX(-1) rotate(-18deg); }
.feat:nth-child(even) .feat-visual::before { background: var(--grain), var(--g-mist); }
.feat-visual .mock { width: min(340px, 84%); }
.feat h2 { font-size: 21px; line-height: 1.7; margin-top: 18px; letter-spacing: 0.1em; }
:lang(ko) .feat h2 { letter-spacing: 0.01em; }
.feat p { margin-top: 14px; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--gold); background: var(--gold-bg); padding: 2px 12px; border-radius: 999px; margin-top: 18px; letter-spacing: 0.06em; }

/* ポイント */
.pts { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line); }
.pts li { display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding-block: 24px; border-bottom: 1px solid var(--line); }
.pts .no { font-family: var(--serif); font-size: 28px; line-height: 1.2; color: var(--rose); font-style: italic; letter-spacing: 0; }
.pts h3 { font-size: 16px; line-height: 1.7; }
.pts p { margin-top: 4px; font-size: 14px; color: var(--muted); }

/* プレミアム */
.flow { overflow-x: clip; }
.premium { position: relative; background: none; }
.premium::before {
  content: '';
  position: absolute;
  inset: 4% -4% 0;
  background: var(--grain), var(--g-mist);
  -webkit-mask: url(/assets/img/blob.svg) center / 100% 100% no-repeat;
  mask: url(/assets/img/blob.svg) center / 100% 100% no-repeat;
  transform: rotate(-12deg);
}
.prem { position: relative; }
.prem { background: var(--surface); border-radius: 28px; padding: clamp(32px, 6vw, 56px) clamp(24px, 5vw, 48px); text-align: center; box-shadow: 0 30px 60px -40px rgba(150, 80, 110, 0.3); }
.prem .label { justify-content: center; }
.prem .label::before { content: ''; width: 40px; height: 1px; background: currentColor; opacity: 0.6; }
.prem h2 { font-size: 20px; margin-top: 20px; letter-spacing: 0.1em; }
.prem-price { font-family: var(--serif); font-size: clamp(44px, 7vw, 60px); font-weight: 500; line-height: 1.1; margin-top: 10px; letter-spacing: 0; }
.prem-price small { font-family: var(--font); font-size: 14px; color: var(--muted); margin-right: 6px; letter-spacing: 0.08em; }
.trial { display: inline-block; margin-top: 14px; color: var(--gold); background: var(--gold-bg); padding: 4px 16px; border-radius: 999px; font-size: 13px; }
.prem ul { list-style: none; margin: 28px auto 0; padding: 0; max-width: 26em; text-align: left; display: grid; gap: 10px; }
.prem li { position: relative; padding-left: 22px; }
.prem li::before { content: ''; position: absolute; left: 2px; top: 0.85em; width: 8px; height: 6px; background: var(--petal); border-radius: 80% 0 80% 0; }
.prem .note { margin: 24px auto 0; font-size: 12px; color: var(--muted); max-width: 32em; text-align: left; line-height: 1.9; }

.disclaimer { background: none; padding: 0 var(--gutter) 72px; }
.disclaimer p { font-size: 12px; color: var(--muted); line-height: 1.9; border-top: 1px solid var(--line); padding-top: 24px; }

/* 文書ページ（サポート・プライバシー） */
.doc { padding: 128px var(--gutter) 96px; }
.doc-in { max-width: 720px; margin: 0 auto; }
.doc h1 { font-size: clamp(26px, 4vw, 34px); line-height: 1.5; margin-top: 18px; letter-spacing: 0.1em; }
:lang(ko) .doc h1 { letter-spacing: 0.01em; }
.doc .meta { color: var(--muted); font-size: 13px; margin-top: 10px; }
.doc .lead { margin-top: 24px; }
.doc h2 { font-size: 17px; margin-top: 48px; line-height: 1.7; }
.doc p { margin-top: 12px; }
.doc > .doc-in > h2:first-of-type { margin-top: 56px; }
.contact { margin-top: 40px; background: var(--grain), var(--g-blush); border-radius: 24px; padding: 32px clamp(22px, 4vw, 40px); }
.contact h2 { margin: 0; font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--rose); letter-spacing: 0.02em; }
.contact p { font-size: 14px; }
.mail { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 10px; }
.mail a { font-family: var(--serif); font-size: 24px; font-weight: 500; text-decoration: none; letter-spacing: 0.01em; word-break: break-all; }
.mail button { font: inherit; font-size: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 2px 14px; cursor: pointer; }
.faq { margin-top: 20px; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; display: grid; grid-template-columns: 1fr 20px; gap: 16px; padding-block: 22px; font-weight: 500; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ''; width: 12px; height: 12px; margin-top: 0.6em; border-right: 1px solid var(--muted); border-bottom: 1px solid var(--muted); transform: rotate(45deg); transition: transform 0.6s var(--ease); justify-self: center; }
details[open] summary::after { transform: rotate(225deg); margin-top: 0.9em; }
details p { color: var(--muted); margin: 0 0 22px; font-size: 14px; }

/* フッター */
.ft { background: var(--grain), var(--g-blush); padding: 72px var(--gutter) 40px; text-align: center; }
.ft-mark { font-family: var(--serif); font-weight: 500; font-size: clamp(44px, 12vw, 96px); white-space: nowrap; line-height: 1; letter-spacing: 0; }
.ft nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-top: 32px; font-size: 13px; }
.ft nav a { text-decoration: none; }
.ft nav a:hover { color: var(--rose); }
.ft small { display: block; margin-top: 24px; font-size: 11px; color: var(--muted); letter-spacing: 0.06em; }

/* 右下の購入ボタン */
.fab {
  position: fixed;
  right: 20px;
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), background 0.3s, color 0.3s;
}
.fab svg { width: 16px; height: 16px; fill: currentColor; }
.fab.is-shown { opacity: 1; transform: none; pointer-events: auto; }
a.fab:hover { background: var(--ink); color: var(--bg); }
.fab[aria-disabled='true'] { border-color: var(--line); color: var(--muted); }

/* スクロールで表示（JS が動くときだけ隠しておく） */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal='2'] { transition-delay: 0.12s; }
.js [data-reveal='3'] { transition-delay: 0.24s; }

/* パソコン：左を固定、右をスクロール */
@media (min-width: 1024px) {
  .split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); }
  .side-mark { font-size: clamp(64px, 6.6vw, 104px); }
  .side { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; padding: 72px 48px; background: var(--grain), var(--bg); }
  .side-index { display: grid; gap: 6px; list-style: none; margin: 56px 0 0; padding: 0; }
  .side-index a { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--serif); font-size: 19px; color: var(--muted); letter-spacing: 0.02em; transition: color 0.3s; }
  .side-index a::before { content: ''; width: 0; height: 1px; background: currentColor; transition: width 0.6s var(--ease); }
  .side-index a.is-current, .side-index a:hover { color: var(--rose); }
  .side-index a.is-current::before { width: 28px; }
  .flow { background: var(--grain), var(--bg); border-left: 1px solid var(--line); min-width: 0; }
  .hero { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; align-content: start; padding: 64px 48px 40px; }
  .side { padding-bottom: 72px !important; }
  .hero { margin-top: 0; }
  .hero .concept { padding-top: 0; }
  .hero::before { display: block; inset: 0 0 42% 0; background: var(--grain), var(--g-blush); }
  /* ファーストビューの高さに収まる大きさ（コンセプトの文章の下に、端末と左右の UI が見切れずに入る） */
  .arch { width: clamp(300px, calc((100svh - 220px) / 1.9), 380px); }
  /* 端末の下は画面の外に出てもよい。左右の UI は見える位置に */
  .mock .side-ui.is-right { top: 55.5%; width: 50%; right: -56%; }
  .mock .side-ui.is-left { left: -26%; }
  /* 文章の上下を詰めて、モックを上に */
  .hero .concept { margin-bottom: 18px; }
  .hero .concept h1 { margin-top: 8px; line-height: 1.6; }
  .hero .concept p:not(.label) { margin-top: 10px; }
  .sec { padding: 120px clamp(48px, 6vw, 96px); }
  .features { gap: 140px; }
  .disclaimer { padding: 0 clamp(48px, 6vw, 96px) 88px; }
  .fab { display: none; }
  .page-home .hd:not(.x) .hd-logo { opacity: 0; }
  html.menu-open .page-home .hd .hd-logo { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .petals { display: none; }
}

/* スマホ：ファーストビューにモックまで入るように詰める */
@media (max-width: 1023px) {
  .hero .concept { padding-top: 20px; margin-bottom: 16px; }
  .concept h1 { font-size: 22px; line-height: 1.6; margin-top: 8px; }
  .concept p:not(.label) { margin-top: 10px; font-size: 13px; line-height: 1.8; }
  .arch { padding-top: 0; }
}

/* スマホのヘッダー（ほかのヘッダーの指定より後に置く） */
@media (max-width: 1023px) {
  .hd { padding: 10px 16px; background: color-mix(in srgb, var(--surface) 72%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); pointer-events: auto; }
  .hd-logo { font-size: 21px; white-space: nowrap; flex-shrink: 0; }
  .page-home .hd .hd-logo { opacity: 1; }
  .hd-logo:lang(ko) { font-size: 18px; }
  .hd-left { gap: 8px; }
  .hd-dl { padding: 5px 10px; font-size: 11px; gap: 4px; }
  .hd-menu { width: 40px; height: 40px; box-shadow: none; }
  .hd-menu i { left: 12px; right: 12px; }
  .hd-menu i:nth-of-type(1) { top: 16px; }
  .hd-menu i:nth-of-type(2) { top: 23px; }
  .hd-menu[aria-expanded='true'] i:nth-of-type(1), .hd-menu[aria-expanded='true'] i:nth-of-type(2) { top: 19.5px; }
  .hd-lang { box-shadow: none; }
  .hd-lang a { padding: 5px 8px; font-size: 11px; }
}
@media (max-width: 380px) {
  .hd { padding-inline: 12px; }
  .hd-logo { font-size: 19px; }
  .hd-dl svg { display: none; }
  .hd-right, .hd-left { gap: 6px; }
}

/* 見出しを大きく・グラデーションの上の文字をくっきり */
.concept p:not(.label), .feat p { font-weight: 500; }
@media (max-width: 1023px) {
  .concept h1 { font-size: 27px; line-height: 1.5; }
  .concept p:not(.label) { font-size: 14px; }
}
