/* こもれび LP — 配色はアプリのアイコンと画面(lib/main.dart)の値 */
:root {
  --paper: #faf8f1;
  --leaf-bg: #edf1e6;
  --leaf: #7c977c;
  --leaf-deep: #5f7a60;
  --ink: #32443b;
  --ink-soft: #5b6b61;
  --muted: #84908a;
  --sun: #d6b48a;
  --sun-light: #f3e4c8;
  --card: #ffffff;
  --line: rgba(50, 68, 59, 0.14);
  --mincho: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --gothic: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --wrap: 1040px;
  --sec: 96px;
  --gap-label: 16px;
  --gap-lead: 20px;
  --gap-block: 32px;
  --pad: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: var(--gothic); font-size: 16px; line-height: 1.9; letter-spacing: 0.04em; background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf-deep); text-underline-offset: 0.2em; }
a:focus-visible, button:focus-visible { outline: 2px dashed var(--leaf); outline-offset: 4px; }
h1, h2, h3 { font-family: var(--mincho); font-weight: 600; letter-spacing: 0.08em; line-height: 1.5; text-wrap: balance; margin: 0; }
p { margin: 0; }
.nw { display: inline-block; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; z-index: 30; }

.label { display: flex; align-items: center; gap: 12px; color: var(--leaf-deep); font-size: 14px; font-weight: 600; letter-spacing: 0.2em; margin-bottom: var(--gap-label); }
.label::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px rgba(214, 180, 138, 0.25); flex: none; }
.label::after { content: ""; flex: 1; max-width: 100px; border-top: 1.5px solid var(--leaf); opacity: 0.4; }

section { padding: var(--sec) 0; }
.section-title { font-size: clamp(24px, 4.2vw, 34px); }
.lead { color: var(--ink-soft); margin-top: var(--gap-lead); max-width: 36em; }
.note { font-size: 13px; color: var(--muted); margin-top: var(--gap-lead); }
.hint { margin-top: var(--gap-lead); font-size: 13px; color: var(--muted); }

/* 押せない情報: 枠なし、左の線だけ */
.facts { list-style: none; margin: var(--gap-block) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px 24px; }
.facts li { font-size: 14px; color: var(--ink-soft); padding-left: 14px; border-left: 2px solid var(--sun); line-height: 1.6; }
.facts b { color: var(--ink); }

/* ---- ヘッダー ---- */
.site-header { padding: 20px 0; position: relative; z-index: 2; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand span { font-family: var(--mincho); font-size: 20px; letter-spacing: 0.2em; }
.status-pill { font-size: 13px; color: var(--ink-soft); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--leaf); }

/* ---- ヒーロー: 木もれ日 ---- */
.hero { position: relative; overflow: hidden; padding: 32px 0 var(--sec); background: linear-gradient(180deg, var(--leaf-bg), var(--paper)); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-tagline { color: var(--leaf-deep); font-weight: 600; letter-spacing: 0.24em; font-size: 14px; }
.hero h1 { font-size: clamp(34px, 6vw, 56px); margin-top: var(--gap-label); }
.hero h1 em { font-style: normal; color: var(--leaf-deep); }
.hero-sub { color: var(--ink-soft); margin-top: var(--gap-lead); max-width: 28em; }
.light { position: absolute; inset: 0; pointer-events: none; }
.light i { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(255, 244, 214, 0.9), rgba(255, 244, 214, 0) 70%); animation: sway 9s ease-in-out infinite alternate; }
.light i:nth-child(1) { width: 260px; height: 260px; left: -60px; top: -40px; }
.light i:nth-child(2) { width: 160px; height: 160px; left: 38%; top: 8%; animation-delay: -3s; }
.light i:nth-child(3) { width: 220px; height: 220px; right: -40px; top: 30%; animation-delay: -5s; }
.light i:nth-child(4) { width: 120px; height: 120px; left: 20%; bottom: 6%; animation-delay: -2s; }
.light i:nth-child(5) { width: 90px; height: 90px; right: 30%; bottom: 18%; animation-delay: -7s; }
.light i:nth-child(6) { width: 70px; height: 70px; left: 55%; top: 55%; animation-delay: -4s; }
@keyframes sway { from { transform: translate(0, 0) scale(1); opacity: 0.55; } to { transform: translate(18px, 12px) scale(1.12); opacity: 1; } }

/* アプリの紹介動画(ヒーロー) */
.hero-visual { justify-self: center; width: min(100%, 272px); }
@keyframes bob { 50% { transform: translateY(-6px); } }
.demo { margin: 0; }
.demo-phone { position: relative; border-radius: 40px; padding: 9px; background: var(--card); box-shadow: 0 24px 60px rgba(50, 68, 59, 0.18), 0 0 0 1px var(--line); }
.demo-video { display: block; width: 100%; height: auto; aspect-ratio: 432 / 940; border-radius: 32px; background: var(--paper); object-fit: cover; }
.demo-toggle { position: absolute; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(50, 68, 59, 0.72); display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18); }
.demo-toggle span { width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #fff; margin-left: 3px; }
.demo.playing .demo-toggle span { width: 12px; height: 14px; border: 0; margin: 0; border-left: 4px solid #fff; border-right: 4px solid #fff; }
.demo-toggle:focus-visible, .demo-bar button:focus-visible { outline: 2px dashed var(--leaf); outline-offset: 3px; }
.demo-cap { margin-top: 16px; min-height: 2.9em; font-family: var(--mincho); font-weight: 600; font-size: 17px; line-height: 1.45; text-align: center; color: var(--ink); }
.demo-cap.on { animation: capIn 0.45s ease both; }
@keyframes capIn { from { opacity: 0; transform: translateY(6px); } }
.demo-bar { display: flex; gap: 6px; margin-top: 6px; }
.demo-bar button { flex: 1; height: 24px; padding: 10px 0; border: 0; background: none; cursor: pointer; }
.demo-bar i { display: block; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; position: relative; }
.demo-bar i::after { content: ""; position: absolute; inset: 0; background: var(--leaf-deep); transform: scaleX(var(--p, 0)); transform-origin: left; }
.demo-note { margin-top: 6px; font-size: 11px; color: var(--muted); text-align: center; }

/* ---- 作った理由 ---- */
.story { background: var(--card); }
.story-body { margin: var(--gap-block) 0 0; max-width: 40em; padding: 4px 0 4px 24px; border-left: 3px solid var(--sun); }
.story-body p { font-family: var(--mincho); font-size: clamp(17px, 2.2vw, 19px); line-height: 2.1; color: var(--ink); }

/* ---- 名前のこと ---- */
.name-diagram { margin-top: var(--gap-block); display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px; }
.nd { display: grid; justify-items: center; gap: 4px; padding: 18px 22px; background: var(--card); border-radius: 18px; box-shadow: 0 0 0 1px var(--line); min-width: 92px; }
.nd b { font-family: var(--mincho); font-size: 40px; font-weight: 600; line-height: 1.1; color: var(--leaf-deep); }
.nd span { font-size: 13px; color: var(--muted); }
.nd:nth-child(2) b { color: var(--sun); }

/* ---- 記念日の道のり ---- */
.days { background: linear-gradient(180deg, var(--paper), var(--leaf-bg)); }
.road { list-style: none; margin: var(--gap-block) 0 0; padding: 8px 0 20px; display: grid; grid-auto-flow: column; grid-auto-columns: 168px; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; position: relative; -webkit-overflow-scrolling: touch; }
.road::before { content: ""; position: absolute; left: 0; right: 0; top: 140px; border-top: 2px dashed var(--leaf); opacity: 0.45; min-width: 1650px; }
.road li { scroll-snap-align: start; position: relative; display: grid; justify-items: center; align-content: start; text-align: center; gap: 4px; padding: 16px 12px 18px; background: var(--card); border-radius: 22px; box-shadow: 0 0 0 1px var(--line), 0 8px 20px rgba(50, 68, 59, 0.06); }
.road img { width: auto; height: 110px; object-fit: contain; margin-bottom: 10px; }
.road b { font-family: var(--mincho); font-size: 16px; }
.road span { font-size: 12px; color: var(--muted); line-height: 1.6; }
.road li.last { background: var(--sun-light); }
.road-hint { display: flex; align-items: center; gap: 8px; }
.road-hint::after { content: ""; width: 28px; border-top: 1.5px solid var(--muted); }
.road + .facts { margin-top: var(--gap-lead); }
.road { margin-top: 12px; scrollbar-width: thin; }

/* ---- 生後日数 ---- */
.count .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.count-cards { display: grid; gap: 16px; }
.cc { background: var(--card); border-radius: 22px; padding: 22px 26px; box-shadow: 0 0 0 1px var(--line); display: grid; gap: 2px; }
.cc span { font-size: 13px; color: var(--leaf-deep); font-weight: 600; }
.cc b { font-family: var(--mincho); font-size: 22px; font-weight: 500; }
.cc b i { font-style: normal; font-size: 46px; margin: 0 6px; letter-spacing: 0; }
.cc small { font-size: 13px; color: var(--muted); }
.cc em { font-style: normal; color: var(--ink); font-weight: 600; margin: 0 2px; }

/* ---- イラスト(切り替え) ---- */
.art { background: var(--card); }
.art .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; grid-template-areas: "head stage" "ctrl stage"; column-gap: 48px; align-items: center; }
.art-head { grid-area: head; align-self: end; }
.art-ctrl { grid-area: ctrl; align-self: start; }
.art-stage { grid-area: stage; }
.chips { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips-sub { margin-top: 10px; }
.chips button {
  font: inherit; font-size: 14px; letter-spacing: 0.04em; color: var(--ink); cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px 8px 12px;
  background: var(--card); border: 1.5px solid rgba(50, 68, 59, 0.3); border-radius: 10px;
  box-shadow: 0 3px 0 rgba(50, 68, 59, 0.18); transition: transform 0.12s, box-shadow 0.12s, background 0.2s, border-color 0.2s;
}
.chips button::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--muted); flex: none; }
.chips button:hover { border-color: var(--leaf); }
.chips button:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(50, 68, 59, 0.18); }
.chips button[aria-pressed="true"] { background: var(--leaf); border-color: var(--leaf-deep); color: #fff; font-weight: 600; transform: translateY(2px); box-shadow: 0 1px 0 rgba(50, 68, 59, 0.25); }
.chips button[aria-pressed="true"]::before { border-color: #fff; background: #fff; box-shadow: inset 0 0 0 2px var(--leaf); }
.art-stage { margin: 0; aspect-ratio: 1 / 1; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, var(--sun-light), var(--leaf-bg) 70%); border-radius: 50%; padding: 12%; }
.art-stage img { max-height: 100%; width: auto; object-fit: contain; transition: opacity 0.25s ease, transform 0.25s ease; }
.art-stage img.is-swap { opacity: 0; transform: scale(0.96); }

/* ---- ウィジェット ---- */
.widgets { background: var(--leaf-bg); }
.widget-row { display: grid; grid-template-columns: 170px 1fr; gap: 20px; margin-top: var(--gap-block); max-width: 560px; }
.widget { background: var(--card); border-radius: 26px; padding: 16px; box-shadow: 0 10px 24px rgba(50, 68, 59, 0.12); }
.widget.small { aspect-ratio: 1 / 1; display: grid; grid-template-columns: 54px 1fr; align-items: end; gap: 8px; }
.widget.small img { height: 100%; max-height: 112px; width: auto; object-fit: contain; }
.w-days { font-family: var(--mincho); font-size: 13px; line-height: 1.3; }
.w-days b { display: block; font-size: 30px; font-weight: 500; }
.w-name { font-size: 12px; color: var(--muted); }
.widget.medium { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.w-kid { min-width: 0; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 8px; align-items: center; background: var(--paper); border-radius: 16px; padding: 10px; }
.w-kid img { height: 72px; width: auto; object-fit: contain; justify-self: center; }
.w-next { font-size: 12px; line-height: 1.5; }
.w-next b { font-size: 18px; color: var(--leaf-deep); margin: 0 2px; }

/* ---- ウィジェットのカルーセル(実際のウィジェットの画面写真) ---- */
.wg-carousel { margin-top: var(--gap-block); }
.wg-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(100%, 380px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 2px 20px; scrollbar-width: none; overscroll-behavior-x: contain; }
.wg-track::-webkit-scrollbar { display: none; }
.wg-track:focus-visible { outline: 2px dashed var(--leaf); outline-offset: 4px; }
.wg-slide { margin: 0; scroll-snap-align: start; display: grid; align-content: center; justify-items: center; gap: 14px; }
.wg-slide figcaption { text-align: center; display: grid; gap: 2px; }
.wg-slide figcaption b { font-family: var(--mincho); color: var(--ink); font-weight: 600; font-size: 15px; }
.wg-slide figcaption span { font-size: 13px; color: var(--muted); }
.wg-shot { display: block; height: auto; box-shadow: 0 14px 34px rgba(50, 68, 59, 0.22); }
.wg-shot.wg-l { width: 100%; max-width: 364px; border-radius: 6.3% / 6%; }
.wg-shot.wg-m { width: 100%; max-width: 364px; border-radius: 6.3% / 13.4%; }
.wg-shot.wg-s { width: min(100%, 170px); border-radius: 13.4%; }
.wg-nav { display: flex; align-items: center; justify-content: center; gap: 18px; }
.wg-nav button { width: 48px; height: 48px; border-radius: 12px; border: 1.5px solid rgba(50, 68, 59, 0.3); background: var(--card); color: var(--leaf-deep); cursor: pointer; display: grid; place-items: center; box-shadow: 0 3px 0 rgba(50, 68, 59, 0.18); }
.wg-nav button:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(50, 68, 59, 0.18); }
.wg-nav button:disabled { opacity: 0.35; cursor: default; }
.wg-nav .wg-prev .arr { transform: rotate(-135deg); }
.wg-count-ind { font-size: 13px; color: var(--muted); min-width: 4em; text-align: center; }
.wg-count-ind b { color: var(--leaf-deep); font-size: 16px; }

/* ---- 写真とデータ ---- */
.keep-list { list-style: none; margin: var(--gap-block) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.keep-list li { display: grid; gap: 4px; padding: 22px 24px; background: var(--card); border-radius: 20px; box-shadow: 0 0 0 1px var(--line); }
.keep-list b { font-family: var(--mincho); font-size: 18px; }
.keep-list span { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ---- 締め ---- */
.closing { background: linear-gradient(180deg, var(--paper), var(--leaf-bg)); }
.closing .wrap { display: grid; grid-template-columns: 1fr minmax(0, 460px); gap: 48px; align-items: end; }
.closing-art { width: 96px; margin-bottom: var(--gap-lead); }
.closing h2 { font-size: clamp(26px, 4.2vw, 38px); }

/* ---- ヘッダーの導線 ---- */
.header-link { font-size: 13px; font-weight: 700; color: var(--leaf-deep); text-decoration: none; padding: 8px 14px; border-radius: 10px; border: 1.5px solid rgba(95, 122, 96, 0.5); background: var(--card); box-shadow: 0 2px 0 rgba(50, 68, 59, 0.15); white-space: nowrap; }

/* ---- 記念日の計算 ---- */
.kinenbi { background: var(--card); }
.k-form { margin-top: var(--gap-block); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; max-width: 760px; padding: calc(var(--pad) + 4px); background: var(--leaf-bg); border-radius: 24px; }
.k-field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.k-field label, .k-field legend { font-size: 14px; font-weight: 600; color: var(--ink); padding: 0; }
.k-field small { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 4px; }
.k-field input[type="text"], .k-field input[type="date"], .k-field select { font: inherit; font-size: 16px; color: var(--ink); width: 100%; min-height: 50px; padding: 10px 14px; background: var(--card); border: 1.5px solid rgba(50, 68, 59, 0.3); border-radius: 12px; -webkit-appearance: none; appearance: none; }
.k-field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%), linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.k-field input:focus, .k-field select:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(124, 151, 124, 0.25); }
.k-seg { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.k-seg legend { width: 100%; margin-bottom: 6px; }
.k-seg label { cursor: pointer; }
.k-seg input { position: absolute; opacity: 0; pointer-events: none; }
.k-seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 10px; border: 1.5px solid rgba(50, 68, 59, 0.3); background: var(--card); box-shadow: 0 3px 0 rgba(50, 68, 59, 0.15); font-size: 14px; font-weight: 400; }
.k-seg input:checked + span { background: var(--leaf); border-color: var(--leaf-deep); color: #fff; font-weight: 600; transform: translateY(2px); box-shadow: 0 1px 0 rgba(50, 68, 59, 0.25); }
.k-seg input:focus-visible + span { outline: 2px dashed var(--leaf); outline-offset: 3px; }
.k-submit { grid-column: 1 / -1; }
.k-msg { grid-column: 1 / -1; min-height: 1.4em; font-size: 13px; color: var(--leaf-deep); text-align: center; }
.k-privacy { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
.k-result { margin-top: var(--gap-block); max-width: 760px; display: grid; gap: 12px; }
.k-result[hidden] { display: none; }
.k-card { background: var(--paper); border-radius: 24px; padding: calc(var(--pad) + 4px); box-shadow: 0 0 0 1px var(--line); }
.k-card h3 { font-size: 22px; }
.k-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; }
.k-list li { display: grid; grid-template-columns: 11.5em 1fr auto; gap: 4px 14px; align-items: baseline; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.k-list li.past { opacity: 0.45; }
.k-list li.next { background: var(--sun-light); border-radius: 10px; padding-inline: 10px; border-bottom-color: transparent; }
.k-date { font-size: 13px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.k-title { font-family: var(--mincho); font-weight: 600; }
.k-left { font-size: 13px; color: var(--leaf-deep); font-weight: 600; white-space: nowrap; }
.k-col { grid-column: 2 / -1; font-size: 12px; justify-self: start; }
.k-note { margin-top: 12px; font-size: 12px; color: var(--muted); }
/* 計算結果の下: アプリへの導線 */
.k-app { margin-top: 20px; position: relative; display: grid; grid-template-columns: 1fr minmax(0, 300px); gap: 28px; align-items: center; padding: calc(var(--pad) + 4px); border-radius: 28px; background: linear-gradient(160deg, var(--sun-light), var(--leaf-bg) 70%); box-shadow: 0 0 0 1.5px rgba(124, 151, 124, 0.45), 0 18px 44px rgba(50, 68, 59, 0.14); overflow: hidden; }
.k-app::before { content: ""; position: absolute; width: 220px; height: 220px; right: -60px; top: -80px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 70%); pointer-events: none; }
.k-app > * { position: relative; }
.k-app-kicker { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; color: var(--leaf-deep); letter-spacing: 0.08em; }
.k-app-kicker img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 2px 8px rgba(50, 68, 59, 0.18); }
.k-app-title { margin-top: 14px; font-family: var(--mincho); font-size: 26px; line-height: 1.5; letter-spacing: 0.06em; }
.k-app-next { display: block; margin-bottom: 6px; font-size: 16px; color: var(--leaf-deep); letter-spacing: 0.04em; }
.k-app-next:empty { display: none; }
.k-app-points { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.k-app-points li { position: relative; padding-left: 26px; font-size: 14px; line-height: 1.7; color: var(--ink-soft); }
.k-app-points li::before { content: ""; position: absolute; left: 2px; top: 0.42em; width: 14px; height: 14px; border-radius: 50%; background: var(--leaf); box-shadow: inset 0 0 0 3.5px var(--card); outline: 1.5px solid var(--leaf); }
.k-app-points b { display: block; color: var(--ink); font-size: 15px; }
.k-app-cv { margin-top: 22px; display: grid; gap: 10px; justify-items: start; }
.k-app-cv .btn { width: 100%; max-width: 380px; min-height: 58px; font-size: 17px; }
.k-app-meta { margin-left: 12px; font-weight: 500; color: var(--ink-soft); }
.k-app-note { font-size: 12px; color: var(--ink-soft); }
.k-app-visual { margin: 0; display: grid; justify-items: center; gap: 10px; }
.k-app-visual .wg-shot { transform: rotate(-2deg); }
.k-app-visual figcaption { font-size: 11px; color: var(--muted); }
@media (max-width: 820px) {
  .k-app { grid-template-columns: 1fr; gap: 22px; }
  .k-app-visual { order: -1; }
  .k-app-title { font-size: 22px; }
  .k-app-cv { justify-items: stretch; }
  .k-app-cv .btn { max-width: none; }
}

/* ---- お祝いの仕方・よくある質問 ---- */
.col-list { list-style: none; margin: var(--gap-block) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.col-list a { display: grid; gap: 4px; height: 100%; padding: 18px 20px 20px; background: var(--card); border-radius: 18px; text-decoration: none; color: var(--ink); box-shadow: 0 0 0 1.5px rgba(124, 151, 124, 0.45), 0 3px 0 rgba(50, 68, 59, 0.12); transition: transform 0.15s, box-shadow 0.15s; }
.col-list a:hover { transform: translateY(-2px); box-shadow: 0 0 0 1.5px var(--leaf), 0 6px 0 rgba(50, 68, 59, 0.12); }
.col-list b { font-family: var(--mincho); font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.col-list b::after { content: ""; width: 7px; height: 7px; border-top: 2px solid var(--leaf); border-right: 2px solid var(--leaf); transform: rotate(45deg); flex: none; }
.col-list span { font-size: 13px; color: var(--muted); line-height: 1.7; }
.faq-list { margin: var(--gap-block) 0 0; display: grid; gap: 12px; max-width: 760px; }
.faq-list div { background: var(--card); border-radius: 18px; padding: 18px 22px; box-shadow: 0 0 0 1px var(--line); }
.faq-list dt { font-weight: 700; color: var(--ink); }
.faq-list dd { margin: 6px 0 0; color: var(--ink-soft); font-size: 15px; }

/* ---- コラムのページ ---- */
.crumbs { font-size: 13px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: var(--gap-label); }
.crumbs a { color: var(--muted); }
.col-lead { margin-top: var(--gap-lead); font-family: var(--mincho); font-size: 18px; line-height: 1.9; }
.column .doc-body h2 { font-size: 20px; }
.column .doc-body p { line-height: 2; }
.col-note { margin-top: 28px !important; font-size: 13px; color: var(--muted) !important; }
.col-src { font-size: 13px; }
.col-cta { margin-top: var(--gap-block); padding: calc(var(--pad) + 4px); background: var(--leaf-bg); border-radius: 24px; display: grid; gap: 10px; justify-items: start; }
.col-cta-title { font-family: var(--mincho); font-size: 20px; font-weight: 600; }
.col-cta p { color: var(--ink-soft); }
.col-more { padding: var(--gap-block) 0 0; }
.col-more h2 { font-size: 18px; }
.col-more ul { margin: 12px 0 0; padding-left: 1.2em; display: grid; gap: 6px; }

/* ---- 配信情報(CV) ---- */
.cv { background: var(--card); border-radius: 24px; box-shadow: 0 0 0 1.5px rgba(124, 151, 124, 0.5), 0 16px 40px rgba(50, 68, 59, 0.14); }
.cv img { border-radius: 14px; }
.cv-name { font-family: var(--mincho); font-size: 20px; letter-spacing: 0.16em; line-height: 1.4; }
.cv-meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.cv-meta span { margin: 0 4px; }
.cv-status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--leaf-deep); font-weight: 600; white-space: nowrap; }
.cv-status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }
.cv-mini { margin-top: var(--gap-block); padding: 22px 24px 24px; display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; max-width: 460px; }
.cv-mini img { width: 56px; height: 56px; }
.cv-mini .btn { grid-column: 1 / -1; }
.cv-big { padding: calc(var(--pad) + 12px); }
.cv-head { display: flex; align-items: center; gap: 18px; }
.cv-big .cv-head img { width: 72px; height: 72px; }
.cv-big .cv-name { font-size: 24px; }
.cv-big .cv-status { margin-top: var(--gap-lead); font-size: 15px; }
.cv-note { margin-top: 12px; color: var(--ink-soft); }

/* 押せるボタン: 四角・影・矢印 */
.btn { font: inherit; font-weight: 700; letter-spacing: 0.08em; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 22px; border-radius: 12px; transition: transform 0.12s, box-shadow 0.12s, filter 0.2s; }
.btn-main { color: #fff; background: linear-gradient(180deg, #8ba98b, var(--leaf-deep)); border: 0; box-shadow: 0 4px 0 #46604a, 0 10px 24px rgba(95, 122, 96, 0.3); }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #46604a; }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 13px; border-radius: 10px; box-shadow: 0 3px 0 #46604a; white-space: nowrap; }
.arr { width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); flex: none; }
.arr.down { transform: rotate(135deg) translate(-2px, 2px); }
.btn-main .arr:not(.down) { animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { translate: 3px 0; } }

/* 登録欄 */
.notify { margin-top: var(--gap-lead); display: grid; gap: 10px; }
.notify label { font-size: 13px; color: var(--muted); }
.notify input[type="email"] { font: inherit; font-size: 16px; color: var(--ink); width: 100%; min-height: 52px; padding: 12px 16px; background: var(--paper); border: 1.5px solid rgba(50, 68, 59, 0.3); border-radius: 12px; }
.notify input[type="email"]::placeholder { color: #b5bcb7; }
.notify input[type="email"]:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(124, 151, 124, 0.25); }
.notify .btn { width: 100%; }
.notify .btn:disabled { opacity: 0.6; cursor: wait; }
.notify .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notify .check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--ink-soft); line-height: 1.6; cursor: pointer; padding: 4px 0; }
.notify .check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--leaf); }
.notify-msg { min-height: 1.6em; font-size: 13px; color: #b0553f; text-align: center; }
.notify-msg.is-ok { color: var(--leaf-deep); }
.notify.is-done input, .notify.is-done .btn, .notify.is-done .check { display: none; }
.notify-small { font-size: 12px; color: var(--muted); line-height: 1.7; }

/* 追従バー */
.sticky-cv { position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 20; width: min(100% - 24px, 520px); transform: translate(-50%, 140%); opacity: 0; display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 18px; text-decoration: none; color: var(--ink); background: rgba(255, 255, 255, 0.95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px var(--line), 0 12px 30px rgba(50, 68, 59, 0.2); transition: transform 0.45s cubic-bezier(.2,.8,.2,1), opacity 0.3s; }
.sticky-cv.is-on { transform: translate(-50%, 0); opacity: 1; }
.sticky-cv img { width: 36px; height: 36px; border-radius: 9px; }
.sc-text { display: grid; line-height: 1.3; }
.sc-text b { font-family: var(--mincho); font-weight: 600; font-size: 15px; letter-spacing: 0.12em; }
.sc-text small { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--leaf-deep); }
.sc-text i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }

/* 追従バーが狭い画面ではみ出さないように */
.sticky-cv .sc-text { min-width: 0; }
.sticky-cv .sc-text small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.sticky-cv .sc-text small i { display: inline-block; margin-right: 6px; vertical-align: middle; }
@media (max-width: 400px) { .sticky-cv { gap: 10px; padding: 9px 10px; } .sticky-cv .btn-sm { padding: 8px 12px; font-size: 12px; letter-spacing: 0.04em; } }

/* ---- フッター ---- */
.site-footer { padding: 40px 0 110px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { color: var(--muted); }

/* ---- 下層ページ ---- */
.doc { padding: 40px 0 var(--sec); }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(26px, 4.4vw, 34px); }
.doc .updated { color: var(--muted); font-size: 13px; margin-top: var(--gap-label); }
.doc-body { margin-top: var(--gap-block); padding: calc(var(--pad) * 1.5); background: var(--card); border-radius: 24px; box-shadow: 0 0 0 1px var(--line); }
.doc-body h2 { font-size: 19px; margin: 36px 0 12px; color: var(--leaf-deep); }
.doc-body h2:first-child { margin-top: 0; }
.doc-body p, .doc-body li, .doc-body dd { color: var(--ink-soft); }
.doc-body p + p { margin-top: 12px; }
.doc-body ul { padding-left: 1.3em; margin: 10px 0 0; }
.doc-body dl { margin: 0; }
.doc-body dt { color: var(--ink); font-weight: 600; margin-top: 18px; }
.doc-body dd { margin: 4px 0 0; }
.back { display: inline-block; margin-top: var(--gap-block); }

/* ---- 現れる動き(JSが動く時だけ隠す) ---- */
.js .reveal, .js .reveal-group > * { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease, transform 0.8s ease; }
.js .reveal.is-in, .js .reveal-group.is-in > * { opacity: 1; transform: none; }
.js .reveal-group.is-in > *:nth-child(2) { transition-delay: 0.1s; }
.js .reveal-group.is-in > *:nth-child(3) { transition-delay: 0.2s; }
.js .reveal-group.is-in > *:nth-child(4) { transition-delay: 0.3s; }
.js .reveal-group.is-in > *:nth-child(5) { transition-delay: 0.4s; }
.js .reveal-group.is-in > *:nth-child(6) { transition-delay: 0.5s; }
.js .reveal-group.is-in > *:nth-child(7) { transition-delay: 0.6s; }
.js .reveal-group.is-in > *:nth-child(8) { transition-delay: 0.7s; }
.js .reveal-group.is-in > *:nth-child(9) { transition-delay: 0.8s; }
.js .label.reveal::after { transform: scaleX(0); transform-origin: left; transition: transform 1.2s ease 0.3s; }
.js .label.reveal.is-in::after { transform: scaleX(1); }
.js .reveal-group.is-in > .chips button { transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .light i, .cv-status i, .btn-main .arr, .demo-cap.on { animation: none !important; }
  .js .reveal, .js .reveal-group > *, .js .label.reveal::after { opacity: 1; transform: none; transition: none; }
  .sticky-cv, .art-stage img { transition: none; }
}

/* ---- スマートフォン ---- */
@media (max-width: 820px) {
  :root { --sec: 64px; --gap-block: 28px; --pad: 24px; }
  .wrap { width: min(100% - 48px, var(--wrap)); }
  .hero { padding-top: 20px; }
  .hero .wrap, .count .wrap, .art .wrap, .closing .wrap { grid-template-columns: 1fr; gap: var(--gap-block); }
  .hero .wrap { gap: 48px; }
  .hero-visual { width: min(70%, 270px); }
  .cv-mini { padding: 20px 22px 22px; grid-template-columns: 48px 1fr; gap: 12px 14px; }
  .cv-mini img { width: 48px; height: 48px; }
  .cv-mini .cv-name { font-size: 17px; }
  .cv-mini .cv-status { grid-column: 1 / -1; justify-self: start; }
  .road { grid-auto-columns: 150px; margin-right: -24px; padding-right: 24px; }
  .art .wrap { grid-template-columns: 1fr; grid-template-areas: "head" "stage" "ctrl"; }
  /* 選ぶボタンより上に絵を置き、押した結果がその場で見えるようにする */
  .art-stage { width: min(64vw, 250px); justify-self: center; margin: var(--gap-lead) 0 4px; }
  .art-ctrl .hint { margin-top: 12px; text-align: center; }
  .art .chips { justify-content: center; }
  .keep-list { grid-template-columns: 1fr; }
  .k-form { grid-template-columns: 1fr; padding: var(--pad) calc(var(--pad) - 4px); }
  .k-list li { grid-template-columns: 1fr auto; }
  .k-date { grid-column: 1 / -1; }
  .k-col { grid-column: 1 / -1; }
  .header-link { padding: 7px 10px; font-size: 12px; }
  .widget-row { grid-template-columns: 1fr; }
  .widget.small { width: 170px; }
  .closing .wrap { align-items: start; }
  .doc-body { padding: var(--pad); }
  .story-body { padding-left: 18px; }
}
@media (max-width: 380px) {
  .wrap { width: min(100% - 40px, var(--wrap)); }
  .section-title, .closing h2 { font-size: 22px; }
  .road { margin-right: -20px; padding-right: 20px; }
  .nd { padding: 14px 14px; min-width: 0; }
  .nd b { font-size: 32px; }
  .cv-big { padding: var(--pad) calc(var(--pad) - 4px); }
}

/* ---- ファーストビュー: 文章と紹介動画(字幕まで)を1画面に収める ---- */
/* 動画の高さを画面の高さから決める。0.46 は動画の縦横比(432/940) */
/* 字幕と注記は動画より広く取り、行数を減らす */
.hero-visual { width: min(100%, 320px); --phone: clamp(150px, calc((100vh - 350px) * 0.46 + 18px), 272px); --phone: clamp(150px, calc((100svh - 350px) * 0.46 + 18px), 272px); }
.hero .demo-phone, .hero .demo-bar { width: var(--phone); margin-inline: auto; }
@media (min-width: 821px) and (max-height: 720px) { .hero { padding-top: 12px; } }
@media (max-width: 820px) {
  /* スマホ: 見出しの下で、左に説明と字幕、右に動画を並べる */
  .hero .wrap {
    --phone: clamp(118px, min(42vw, calc((100vh - 500px) * 0.46)), 220px);
    --phone: clamp(118px, min(42vw, calc((100svh - 500px) * 0.46)), 220px);
    grid-template-columns: minmax(0, 1fr) var(--phone);
    grid-template-rows: auto auto auto 1fr auto auto auto auto;
    grid-template-areas: "tag tag" "h1 h1" "sub phone" ". phone" "cap phone" "bar phone" "note phone" "cv cv";
    column-gap: 18px; row-gap: 0; align-items: start;
  }
  .hero-copy, .hero-visual, .hero .demo { display: contents; }
  .hero-visual { --phone: inherit; } /* スマホでは .hero .wrap 側の大きさを使う */
  .hero-tagline { grid-area: tag; }
  .hero h1 { grid-area: h1; }
  .hero-sub { grid-area: sub; margin-top: 0; font-size: 15px; line-height: 1.8; }
  .hero .demo-phone { grid-area: phone; width: var(--phone); border-radius: 26px; padding: 6px; }
  .hero .demo-video { border-radius: 21px; }
  .hero .demo-toggle { right: 10px; bottom: 10px; width: 40px; height: 40px; }
  .hero .demo-cap { grid-area: cap; margin-top: 14px; min-height: 0; font-size: 15px; text-align: left; }
  .hero .demo-bar { grid-area: bar; margin-top: 4px; width: auto; }
  .hero .demo-note { grid-area: note; margin-top: 4px; text-align: left; font-size: 11px; line-height: 1.6; }
  .hero .cv-mini { grid-area: cv; margin-top: 20px; }
  .hero h1 { margin-bottom: 18px; }
}
