/* リドリAI サービスサイト（公開準備中版）
   外部フォント・外部スクリプトは読み込まない（国内保存の要件のため、閲覧者の通信を国外に出さない） */

:root {
  --ink: #0f1e33;
  --ink-2: #3c4b5f;
  --ink-3: #6b7a8c;
  --line: #dde6ee;
  --surface: #ffffff;
  --subtle: #f4f8fa;
  --brand: #3f7a1e;
  --growth: #129c63;
  --aqua: #0b8fb0;
  --apple: #a6e35a;
  --mint: #3ddc97;
  --sky: #22c3e6;
  --grad-button: linear-gradient(90deg, #c4ef8e 0%, #8fe6bf 55%, #8ddbf0 100%);
  --grad-soft: linear-gradient(120deg, #f1fbe6 0%, #e6f8f1 55%, #e4f5fb 100%);
  --grad-text: linear-gradient(90deg, #4e8a1c 0%, #149a6c 55%, #0b86a6 100%);
  --shadow: 0 1px 2px rgba(15, 30, 51, .04), 0 6px 20px rgba(15, 30, 51, .06);
  --radius: 20px;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
}

/* 公開の切り替え（仕様書 37.6）
   公開前：.only-live を隠す（いま）。公開したら、下の 1 行を「.only-pre { display: none !important; }」に書き換え、
   python3 site/tools/embed_ridori.py で版番号を更新する */
.only-live { display: none !important; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.75; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:hover { color: var(--growth); }
h1, h2, h3, h4 { margin: 0; line-height: 1.4; font-weight: 700; letter-spacing: .01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(1120px, 100% - 40px); margin-inline: auto; }
.section { padding: 96px 0; }
.section--tint { background: var(--subtle); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; color: var(--brand); text-transform: uppercase; }
.section__head { margin-bottom: 40px; }
.section__head--center { text-align: center; }
.section__head h2 { font-size: clamp(24px, 3vw, 32px); margin-top: 10px; }
.section__head p { margin-top: 12px; color: var(--ink-2); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; transition: transform .15s ease, box-shadow .15s ease; }
.btn--primary { background: var(--grad-button); color: var(--ink); box-shadow: 0 6px 18px rgba(34, 195, 230, .18); }
.btn--primary:hover { color: var(--ink); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(34, 195, 230, .24); }
.btn--secondary { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px #a9e6c9; }
.btn--secondary:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--mint); }
.btn--small { padding: 9px 18px; font-size: 14px; }
.btn .arrow { width: 16px; height: 16px; }

/* header */
.header { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid rgba(221, 230, 238, .7); }
.header__inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.header__logo { flex-shrink: 0; }
.header__logo img { width: 118px; height: auto; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 14px; }
.nav a:hover { color: var(--brand); }
.header__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header__login { color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 700; padding: 0 6px; }
.header__login:hover { color: var(--brand); }

/* hero */
.hero { background: var(--grad-soft); padding: 72px 0 88px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: #e3f6d2; color: var(--brand); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--aqua { background: #dff5fb; color: var(--aqua); }
.hero h1 { font-size: clamp(34px, 5vw, 54px); margin-top: 18px; line-height: 1.3; }
.hero h1 .grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { margin-top: 22px; color: var(--ink-2); font-size: 17px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 26px; font-size: 13px; color: var(--ink-2); }
.hero__trust li { display: flex; align-items: center; gap: 6px; }
.check { width: 16px; height: 16px; color: var(--growth); flex: none; }

.hero__visual { position: relative; display: flex; flex-direction: column; align-items: flex-start; }
.hero__ridori { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: flex-end; gap: 4px; width: 100%; margin-top: -10px; }
.hero__mascot { width: 190px; flex: none; filter: drop-shadow(0 18px 30px rgba(18, 156, 99, .16)); }
.bubble { position: relative; max-width: 300px; margin-bottom: 18px; background: #fff; border: 1.5px solid #b9ecd6; border-radius: 18px; padding: 14px 18px; box-shadow: var(--shadow); }
.bubble::after { content: ""; position: absolute; right: -9px; bottom: 26px; width: 16px; height: 16px; background: #fff; border-right: 1.5px solid #b9ecd6; border-top: 1.5px solid #b9ecd6; transform: rotate(45deg); }
.bubble__name { font-weight: 800; font-size: 16px; color: var(--growth); display: flex; align-items: baseline; gap: 8px; }
.bubble__name span { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--ink-3); }
.bubble__text { margin-top: 4px; font-size: 13px; line-height: 1.7; color: var(--ink-2); }
.bubble__link { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 700; }
.bubble__link::after { content: " ↓"; }
.na-card { position: relative; width: min(420px, 100%); background: rgba(255, 255, 255, .92); border: 1.5px solid #b9ecd6; border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.na-card__head { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--brand); }
.na-card__tag { letter-spacing: 0; color: var(--aqua); background: #dff5fb; padding: 2px 10px; border-radius: 999px; }
.na-card h3 { font-size: 19px; margin-top: 10px; }
.na-card__desc { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.na-card__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.stat { background: var(--subtle); border-radius: 12px; padding: 10px 12px; }
.stat span { display: block; font-size: 11px; color: var(--ink-3); }
.stat strong { font-size: 17px; }
.stat strong small { font-size: 11px; font-weight: 400; color: var(--ink-2); margin-left: 2px; }
.stat--good strong { color: var(--growth); }
.na-card__why { margin-top: 12px; font-size: 12px; color: var(--ink-2); border-top: 1px dashed var(--line); padding-top: 10px; }

/* cards */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.card__icon { width: 44px; height: 44px; border-radius: 14px; background: var(--grad-soft); display: grid; place-items: center; color: var(--growth); }
.card__icon svg { width: 22px; height: 22px; }
.step__ridori { width: auto; height: 84px; align-self: flex-start; }
.faq__ridori { width: auto; height: 96px; margin: 0 auto 8px; }
.card h3 { font-size: 19px; }
.card p { color: var(--ink-2); font-size: 15px; }
.card__list { display: grid; gap: 8px; margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.card__list li { display: flex; gap: 8px; align-items: flex-start; }
.card__list .check { margin-top: 4px; }
.card__label { font-size: 12px; font-weight: 700; color: var(--brand); letter-spacing: .08em; }

.step__num { font-size: 13px; font-weight: 700; color: var(--brand); letter-spacing: .1em; }

/* screens */
.screens { display: grid; gap: 40px; }
.screen { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: center; }
.screen:nth-child(even) { grid-template-columns: 1fr 1.35fr; }
.screen:nth-child(even) .screen__img { order: 2; }
.screen__img { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(15, 30, 51, .12); background: #fff; }
.screen__body h3 { font-size: 22px; margin-top: 8px; }
.screen__body p { margin-top: 12px; color: var(--ink-2); }
.note { font-size: 13px; color: var(--ink-3); margin-top: 28px; text-align: center; }

/* ridori intro */
.ridori-intro { background: linear-gradient(180deg, #fff 0%, #f3fbf6 100%); }
.ridori-intro__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.ridori-intro__main { display: grid; place-items: center; }
.ridori-intro__main svg { display: block; width: min(340px, 100%); height: auto; overflow: visible; }
/* 商標出願と同じ図形（装飾・影なし）をそのまま見せる。早期審査の使用証明に使うため、ここには影や軌道を足さない */
.ridori-intro h2 { font-size: clamp(24px, 3vw, 32px); margin-top: 10px; }
.ridori-intro__lead { margin-top: 12px; color: var(--ink-2); }
.ridori-facts { display: grid; gap: 10px; margin: 24px 0 0; }
.ridori-facts div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.ridori-facts dt { font-weight: 700; color: var(--growth); font-size: 14px; }
.ridori-facts dd { margin: 0; color: var(--ink-2); font-size: 14px; }
.ridori-faces { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 20px; }
.ridori-faces li { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: 12px; color: var(--ink-3); }
.ridori-faces img, .ridori-faces svg { display: block; width: 88px; height: 88px; overflow: visible; }

/* pricing */
.price-group + .price-group { margin-top: 48px; }
.price-group__cta { margin-top: 20px; text-align: center; }
.price-group h3 { font-size: 20px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.price { position: relative; }
/* プランごとのリドリとひとこと（カードの下にそろえる） */
.price__ridori { margin-top: auto; padding-top: 12px; display: flex; align-items: center; gap: 10px; }
.price__ridori img { width: auto; height: 80px; flex-shrink: 0; }
.price__say { position: relative; flex: 1; background: var(--subtle); border-radius: 14px; padding: 10px 12px; font-size: 13px; line-height: 1.6; color: var(--ink-2); word-break: auto-phrase; }
.price__say::before { content: ""; position: absolute; left: -6px; top: 50%; margin-top: -6px; border: 6px solid transparent; border-left: 0; border-right-color: var(--subtle); }
.price--featured .price__say { background: #e8f8ef; }
.price--featured .price__say::before { border-right-color: #e8f8ef; }
.price--featured { border: 1.5px solid #9fe3c5; box-shadow: 0 10px 30px rgba(61, 220, 151, .16); }
.price__name { font-size: 18px; font-weight: 700; }
.price__amount { font-size: 34px; font-weight: 800; letter-spacing: -.01em; }
.price__amount small { font-size: 13px; font-weight: 400; color: var(--ink-2); margin-left: 4px; }
.price__who { font-size: 13px; color: var(--brand); font-weight: 700; }
.price__tag { position: absolute; top: 20px; right: 20px; }

/* faq */
.faq { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--growth); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 10px; color: var(--ink-2); font-size: 15px; }

/* register */
.register { background: var(--grad-soft); }
.register__box { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.register__mascot { width: 220px; margin-bottom: 12px; }
.register__box h2 { font-size: clamp(24px, 3vw, 32px); }
.register__box > div > p { margin-top: 12px; color: var(--ink-2); }
.register__contact .btn { margin-top: 20px; }
/* 公開後の申し込み欄（37 章） */
.trial__mascot { width: 160px; margin: 0 auto 8px; }
.trial__grid { max-width: 880px; margin-inline: auto; }
.trial__card h3 { font-size: 20px; }
.trial__days { font-size: 15px; font-weight: 700; color: var(--brand); }
.trial__card .btn { margin-top: auto; align-self: flex-start; }
.trial__note { margin-top: 24px; text-align: center; font-size: 14px; color: var(--ink-2); }
.form { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); border: 1px solid var(--line); display: grid; gap: 20px; }
.field label, .field legend { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.field fieldset { border: 0; padding: 0; margin: 0; }
.field input[type="email"] { width: 100%; padding: 13px 16px; border-radius: 12px; border: 1.5px solid #c8d4df; font-size: 16px; font-family: inherit; }
.field input[type="email"]:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(34, 195, 230, .15); }
.choices { display: flex; gap: 10px; flex-wrap: wrap; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: inline-block; padding: 9px 18px; border-radius: 999px; border: 1.5px solid #c8d4df; font-size: 14px; cursor: pointer; }
.choice input:checked + span { border-color: #8fd46b; background: #eefadf; color: var(--brand); font-weight: 700; }
.choice input:focus-visible + span { box-shadow: 0 0 0 4px rgba(34, 195, 230, .2); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.consent input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--growth); }
.form__note { font-size: 13px; color: var(--ink-3); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* footer */
.footer { background: var(--ink); color: #c7d2de; padding: 40px 0; font-size: 14px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer a { color: #e6eef6; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__links { display: flex; flex-wrap: wrap; gap: 20px; }

/* simple pages (thanks / error) */
.simple { min-height: 100vh; display: grid; place-items: center; background: var(--grad-soft); padding: 40px 20px; text-align: center; }
.simple__box { max-width: 520px; background: #fff; border-radius: var(--radius); padding: 40px 32px; box-shadow: var(--shadow); }
.simple__box img.mascot { width: 160px; margin: 0 auto 12px; }
.simple__box h1 { font-size: 24px; }
.simple__box p { margin-top: 12px; color: var(--ink-2); }
.simple__box .btn { margin-top: 24px; }

/* responsive */
@media (max-width: 960px) {
  /* スマホ・タブレットでは、ページ内リンクをロゴの下に 1 列で出し、横にスワイプできるようにする */
  html { scroll-padding-top: 120px; }
  .header__inner { flex-wrap: wrap; height: auto; min-height: 68px; row-gap: 4px; }
  .header__inner:has(> .nav) { padding-top: 12px; }
  .nav { order: 3; width: 100%; margin-left: 0; gap: 20px; overflow-x: auto; padding: 6px 0 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; font-size: 13px; font-weight: 700; }
  .header__actions { margin-left: auto; }
  .hero__grid, .register__box, .ridori-intro__grid { grid-template-columns: 1fr; }
  .ridori-intro__main svg { width: 240px; }
  .grid--3 { grid-template-columns: 1fr; }
  .screen, .screen:nth-child(even) { grid-template-columns: 1fr; }
  .screen:nth-child(even) .screen__img { order: 0; }
}
@media (max-width: 720px) {
  .header__actions { gap: 8px; }
  .header__login { display: none; }
  .header__actions .btn--small { padding: 8px 14px; }
  .section { padding: 64px 0; }
  .grid--2, .faq { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 64px; }
  .hero__ridori { margin-top: 4px; }
  .hero__mascot { width: 130px; }
  .bubble { max-width: none; flex: 1; margin-bottom: 10px; padding: 12px 14px; }
  .ridori-facts div { grid-template-columns: 1fr; gap: 2px; }
  .ridori-faces { grid-template-columns: repeat(3, 1fr); }
  .form { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* =========================================================
   動き（CSS だけ。スクリプトは使わない）
   リドリの SVG は site/tools/embed_ridori.py がページに埋め込み、部品にクラス（r-body など）を付けている。
   端末で「動きを減らす」を選んでいる人には、最後の @media ですべて止める。
   ========================================================= */
.ridori { display: block; overflow: visible; }

/* リドリの部品の基本の動き（ふわっと浮く・葉が揺れる・AI の光がまたたく・まばたき） */
.ridori .r-body { animation: rd-bob 3.2s ease-in-out infinite; }
.ridori .r-shadow { transform-box: fill-box; transform-origin: center; animation: rd-shadow 3.2s ease-in-out infinite; }
.ridori .r-leaf { transform-box: view-box; transform-origin: 200px 120px; animation: rd-sway 3.2s ease-in-out infinite; }
.ridori .r-leaf-r { animation-delay: -.3s; }
.ridori .r-light { transform-box: fill-box; transform-origin: center; animation: rd-twinkle 1.6s ease-in-out infinite; }
.ridori .r-eye { transform-box: fill-box; transform-origin: center; animation: rd-blink 4.6s ease-in-out infinite; }
.ridori .r-orbit { animation: rd-orbit 2s linear infinite; }
.ridori .r-node { animation: rd-float 3.4s ease-in-out infinite; }
.ridori .r-node2 { animation-delay: -1.1s; }
.ridori .r-node3 { animation-delay: -2.2s; }
@keyframes rd-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes rd-shadow { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.86); opacity: .7; } }
@keyframes rd-sway { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(4deg); } }
@keyframes rd-twinkle { 0%, 100% { opacity: .5; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.25); } }
@keyframes rd-blink { 0%, 93%, 100% { transform: scaleY(1); } 95.5% { transform: scaleY(.1); } }
@keyframes rd-orbit { to { stroke-dashoffset: -32; } }
@keyframes rd-float { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(-7px); opacity: .55; } }

/* ファーストビュー：リドリが Next Action のカードを運んでくる（ページを開いたときに 1 回） */
.hero-ridori { position: relative; aspect-ratio: 1; }
.hero-ridori .ridori { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-ridori .ridori--deliver { animation: rd-hide .35s ease 1.5s both; }
.hero-ridori .ridori--deliver .r-light { animation-duration: .7s; }             /* 考えている間は光が速くまたたく */
.hero-ridori .ridori--deliver .r-card { transform-box: view-box; animation: rd-handoff .5s cubic-bezier(.5, 0, .75, 0) .9s both; }
.hero-ridori .ridori--idle { animation: rd-show .35s ease 1.5s both; }
/* カードを渡したあと、ぴょんと 1 回跳ねてから、ふわふわ浮く */
.hero-ridori .ridori--idle .r-body { transform-box: view-box; transform-origin: 200px 354px; animation: rd-hop .8s cubic-bezier(.3, .6, .4, 1) 1.9s 1 both, rd-bob 3.2s ease-in-out 2.7s 8; }
.hero-ridori .ridori--idle .r-shadow { animation: rd-shadow-hop .8s cubic-bezier(.3, .6, .4, 1) 1.9s 1 both, rd-shadow 3.2s ease-in-out 2.7s 8; }
/* 画面の外に出てまた入ると、最初から動く（motion.js が .is-in を付け外しする） */
.watch-hero:not(.is-in) .ridori--idle * { animation: none; }
/* リドリにマウスを乗せる・タップすると、ぴょんと跳ねる（motion.js が .is-hop を付ける） */
.ridori-tap { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ridori-tap.is-hop .ridori .r-body { transform-box: view-box; transform-origin: 200px 354px; animation: rd-hop .7s cubic-bezier(.3, .6, .4, 1) 1 both; }
.ridori-tap.is-hop .ridori .r-shadow { animation: rd-shadow-hop .7s cubic-bezier(.3, .6, .4, 1) 1 both; }
.ridori-tap.is-hop .ridori .r-leaf { animation: rd-sway .35s ease-in-out 2; }
/* 跳ねたあとは、最初の「跳ねる」をくり返さず、ふわふわ浮くだけにする */
.ridori-tap.hopped .ridori .r-body { animation: rd-bob 3.2s ease-in-out 8; }
.ridori-tap.hopped .ridori .r-shadow { animation: rd-shadow 3.2s ease-in-out 8; }
.hero .na-card { transform-origin: 85% 100%; animation: rd-card-in .55s cubic-bezier(.2, .8, .2, 1) 1.1s both; }
.hero .na-card h3 { animation: rd-type .9s steps(15, end) 1.45s both; }               /* AI が書いているように左から現れる */
.hero .na-card__desc { animation: rd-rise .45s ease 2.2s both; }
.hero .na-card__stats .stat { animation: rd-pop .4s cubic-bezier(.3, 1.4, .5, 1) 2.35s both; }
.hero .na-card__stats .stat:nth-child(2) { animation-delay: 2.5s; }
.hero .na-card__stats .stat:nth-child(3) { animation-delay: 2.65s; }
.hero .na-card__why { animation: rd-rise .45s ease 2.8s both; }
.hero .na-card__tag { animation: rd-tag-glow 1.2s ease-in-out 2.2s 2; }
.hero .bubble { animation: rd-rise .5s ease 1.9s both; }
@keyframes rd-hide { from { opacity: 1; } to { opacity: 0; visibility: hidden; } }
@keyframes rd-show { from { opacity: 0; } to { opacity: 1; } }
@keyframes rd-handoff { from { transform: none; opacity: 1; } to { transform: translate(-150px, -300px) scale(.5); opacity: 0; } }
@keyframes rd-card-in { from { opacity: 0; transform: translate(24px, 36px) scale(.86); } to { opacity: 1; transform: none; } }
@keyframes rd-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes rd-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes rd-pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes rd-tag-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(34, 195, 230, 0); } 50% { box-shadow: 0 0 0 6px rgba(34, 195, 230, .18); } }

/* 登録完了：リドリが 2 回跳ねて喜び、そのあとはふわふわ浮く */
.thanks-ridori { width: 160px; aspect-ratio: 1; margin: 0 auto 12px; }
.thanks-ridori .ridori { width: 100%; height: 100%; }
.thanks-ridori .r-body { transform-box: view-box; transform-origin: 200px 354px; animation: rd-hop .8s cubic-bezier(.3, .6, .4, 1) .3s 2 both, rd-bob 3.2s ease-in-out 1.9s infinite; }
.thanks-ridori .r-shadow { animation: rd-shadow-hop .8s cubic-bezier(.3, .6, .4, 1) .3s 2 both, rd-shadow 3.2s ease-in-out 1.9s infinite; }
.thanks-ridori .r-sparkle { transform-box: fill-box; transform-origin: center; animation: rd-sparkle 1.6s ease-in-out .5s infinite both; }
.thanks-ridori .r-sparkle2 { animation-delay: .9s; }
.thanks-ridori .r-sparkle3 { animation-delay: 1.3s; }
.thanks-ridori .r-sparkle4 { animation-delay: 1.7s; }
@keyframes rd-hop {
  0%, 100% { transform: none; }
  18% { transform: scale(1.06, .92); }
  50% { transform: translateY(-34px) scale(.97, 1.04); }
  80% { transform: scale(1.04, .95); }
}
@keyframes rd-shadow-hop { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.7); opacity: .5; } }
@keyframes rd-sparkle { 0%, 100% { opacity: .25; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.15); } }

/* 動きを減らす設定の人には、すべて止めて最初から完成した状態を見せる */
@media (prefers-reduced-motion: reduce) {
  .ridori *, .hero-ridori .ridori, .hero .na-card, .hero .na-card *, .hero .bubble { animation: none !important; }
  .hero-ridori .ridori--deliver { display: none; }
}

/* ファーストビューの背景：AI のネットワーク（六角形の点と線、光の粒が流れる） */
.hero { position: relative; }
.hero__grid { position: relative; z-index: 1; }
.hero__net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero__net .net-lines line { stroke: #22c3e6; stroke-opacity: .2; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.hero__net .net-pulse { stroke: #22c3e6; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 6 200; stroke-dashoffset: 6; opacity: 0; animation: net-pulse 4s linear infinite; }
.hero__net .net-p2, .hero__net .net-p5, .hero__net .net-p8 { stroke: #7cc94a; }
.net-p1 { animation-duration: 4.2s; animation-delay: 0s; }
.net-p2 { animation-duration: 3.6s; animation-delay: 1.1s; }
.net-p3 { animation-duration: 4.4s; animation-delay: 2s; }
.net-p4 { animation-duration: 3.8s; animation-delay: .6s; }
.net-p5 { animation-duration: 4s; animation-delay: 2.8s; }
.net-p6 { animation-duration: 5s; animation-delay: 1.6s; }
.net-p7 { animation-duration: 4.6s; animation-delay: 3.2s; }
.net-p8 { animation-duration: 3.4s; animation-delay: .3s; }
.hero__net .net-node { fill: #e6fbff; stroke: #22c3e6; stroke-width: 1.5; vector-effect: non-scaling-stroke; opacity: .5; transform-box: fill-box; transform-origin: center; animation: net-node 4.8s ease-in-out infinite; }
.hero__net .net-n2 { animation-delay: -1s; }
.hero__net .net-n3 { animation-delay: -2s; }
.hero__net .net-n4 { animation-delay: -3s; }
.hero__net .net-n5 { animation-delay: -4s; }
@keyframes net-pulse {
  0% { stroke-dashoffset: 6; opacity: 0; }
  8% { opacity: .9; }
  60% { stroke-dashoffset: -100; opacity: .9; }
  61%, 100% { stroke-dashoffset: -100; opacity: 0; }
}
@keyframes net-node { 0%, 100% { opacity: .35; transform: scale(.9); } 50% { opacity: .85; transform: scale(1.15); } }
@media (max-width: 900px) { .hero__net { opacity: .6; } }

@media (prefers-reduced-motion: reduce) {
  .hero__net * { animation: none !important; }
  .hero__net .net-pulse { opacity: 0; }
}

/* 事前登録の送信中：画面の中央にリドリ（assets/js/register.js が表示する。0.3 秒たってから見える） */
.sending { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(246, 249, 248, .9); animation: rd-show .3s ease .3s both; }
.sending[hidden] { display: none; }
.sending__box { width: min(420px, 100%); text-align: center; }
.sending__ridori { position: relative; width: 180px; aspect-ratio: 1; margin: 0 auto 8px; }
.sending__ridori .ridori { position: absolute; inset: 0; width: 100%; height: 100%; }
.sending .ridori--offline { display: none; }
.sending[data-state="offline"] .ridori--loading { display: none; }
.sending[data-state="offline"] .ridori--offline { display: block; }
.sending .ridori--loading .r-light { animation-duration: .9s; }
.sending .ridori--offline .r-body { animation: none; }
.sending .ridori--offline .r-leaf, .sending .ridori--offline .r-light, .sending .ridori--offline .r-orbit, .sending .ridori--offline .r-node, .sending .ridori--offline .r-shadow { animation: none; }
.sending__title { font-size: 20px; font-weight: 700; }
.sending__sub { margin-top: 6px; color: var(--ink-2); font-size: 15px; }
.sending__actions { display: none; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.sending[data-state="slow"] .sending__actions, .sending[data-state="offline"] .sending__actions { display: flex; }
.btn--ghost { background: transparent; color: var(--brand); border: 1.5px solid transparent; }
.btn:disabled { opacity: .6; cursor: wait; }
@media (prefers-reduced-motion: reduce) { .sending { animation: none; } }

/* 読み上げ専用（画面には出さない） */
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.sending__box:focus { outline: none; }

/* 登録できなかったページ：困った顔のリドリ（ほぼ静止） */
.error-ridori { width: 140px; aspect-ratio: 1; margin: 0 auto 8px; }
.error-ridori .ridori { width: 100%; height: 100%; }
.error-ridori .r-body { animation-duration: 5s; }
.error-ridori .r-leaf, .error-ridori .r-light, .error-ridori .r-node, .error-ridori .r-orbit, .error-ridori .r-shadow { animation: none; }

/* ---- レビューでの修正（2026-10-08） ---- */
/* カードの中の段落の指定（.card p）に負けていた、料金・手順・ラベルの文字の大きさと色 */
.card .price__name { font-size: 18px; font-weight: 700; color: var(--ink); }
.card .price__amount { font-size: 34px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.card .price__who { font-size: 13px; color: var(--brand); font-weight: 700; }
.card .step__num { font-size: 13px; font-weight: 700; color: var(--brand); letter-spacing: .1em; }
.card .card__label { font-size: 12px; font-weight: 700; color: var(--brand); letter-spacing: .08em; }
/* フォームの「ご利用の予定」の枠線を消す（fieldset 自身に .field が付いている） */
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
/* 画面イメージの既定の余白を消す（スマホで狭くなっていた） */
.screen__img { margin: 0; }
/* 文字のコントラストを WCAG AA（4.5:1）以上に */
:root { --ink-3: #5a6878; }
.na-card__tag { color: #08708a; }
.ridori-facts dt, .bubble__name, .stat--good strong { color: #0e7d4f; }
/* 見出しの末尾 1〜2 文字だけが次の行に落ちないように */
h1, h2, h3 { word-break: auto-phrase; text-wrap: balance; }
.price-group h3 { flex-wrap: wrap; }
/* スマホでは背景のネットワークを下側だけにして、見出しに重ならないように */
@media (max-width: 720px) {
  .hero__net { -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent 58%, #000 78%); mask-image: linear-gradient(to bottom, transparent 0, transparent 58%, #000 78%); }
}
/* 動き続ける飾りは、しばらくしたら止める（WCAG 2.2.2。止まっても絵は完成した状態で残る） */
.hero__net * { animation-iteration-count: 4; }
.hero .ridori--idle * { animation-iteration-count: 8; } /* リドリは少し長く（約 25 秒）動かす */
.thanks-ridori .r-body, .thanks-ridori .r-shadow { animation-iteration-count: 2, 4; }
.thanks-ridori .r-sparkle, .thanks-ridori .r-light, .thanks-ridori .r-eye, .thanks-ridori .r-node, .thanks-ridori .r-orbit, .thanks-ridori .r-leaf { animation-iteration-count: 4; }

/* 「はじめまして、リドリです」のリドリ：画面に入ったら動き出し（motion.js が .is-in を付ける）、しばらくしたら止まる。
   画面の外に出てまた入ると、最初から動く。スクリプトが動かないときは、止まった絵のまま */
.watch:not(.is-in) .ridori * { animation: none; }
.watch .ridori * { animation-iteration-count: 5; }
.intro-ridori .r-body { transform-box: view-box; transform-origin: 200px 354px; animation: rd-hop .8s cubic-bezier(.3, .6, .4, 1) .2s 1 both, rd-bob 3.2s ease-in-out 1s 5; }
.intro-ridori .r-shadow { animation: rd-shadow-hop .8s cubic-bezier(.3, .6, .4, 1) .2s 1 both, rd-shadow 3.2s ease-in-out 1s 5; }
.ridori--face .r-body { animation-duration: 3.6s; }
.ridori-faces li:nth-child(3) .r-body, .ridori-faces li:nth-child(3) .r-leaf { animation-delay: -.9s; }
.ridori-faces li:nth-child(4) .r-body, .ridori-faces li:nth-child(4) .r-leaf { animation-delay: -1.8s; }
.ridori-faces li:nth-child(5) .r-body { animation-duration: 5s; } /* 困っているときは、ゆっくり */
.ridori--face .r-sparkle { transform-box: fill-box; transform-origin: center; animation: rd-sparkle 1.8s ease-in-out 9; }
.ridori--face .r-sparkle2 { animation-delay: -.6s; }
.ridori--face .r-sparkle3 { animation-delay: -1.2s; }
.ridori--face .r-card { transform-box: fill-box; animation: rd-float 2.4s ease-in-out 7; }

/* 「使うほど、あなたの会社に合っていく」の 6 つの図（同じ部品で描く）
   - 画面に入ったときに assets/js/motion.js が .is-in を付け、4 秒の流れを 3 回くり返して止まる
   - スクリプトが動かないときや、動きを減らす設定の人には、止まった完成図だけを見せる */
.fig-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.fig { margin-top: auto; padding-top: 4px; } /* カードの下端にそろえる */
.fig svg { display: block; width: 100%; height: auto; overflow: visible; }
.fig__track { fill: none; stroke: #cfe3ea; stroke-width: 1.5; stroke-dasharray: 3 5; }
.fig__pulse { fill: none; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 10 200; stroke-dashoffset: -100; opacity: 0; }
.fig__pulse-g { stroke: #7cc94a; }
.fig__pulse-a { stroke: #22c3e6; }
.fig__halo { opacity: 0; transform-box: fill-box; transform-origin: center; }
.fig__halo-g { fill: #c4ef8e; }
.fig__halo-a { fill: #8ddbf0; }
.fig__star { fill: #fff; transform-box: fill-box; transform-origin: center; }
.fig__label { font-size: 12px; fill: var(--ink-3); text-anchor: middle; }
.fig__label--start { text-anchor: start; }
.fig__names { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.fig__names span { width: 38%; text-align: center; }
.fig__names span:first-child { margin-left: -4%; }
.fig__names span:last-child { margin-right: -4%; }
/* 部品 */
.fig__chip rect { fill: #f1f9ea; stroke: #c9e9b0; }
.fig__chip text, .fig__tile text { font-size: 10.5px; font-weight: 700; fill: var(--ink-2); text-anchor: middle; }
.fig__tile rect { fill: #fff; stroke: #cfe3ea; stroke-width: 1.5; }
.fig__tile text { font-size: 11px; }
.fig__stack rect { fill: #fff; stroke: #b9ecd6; stroke-width: 1.5; }
.fig__stack .fig__line { fill: #c4ef8e; stroke: none; }
.fig__stack .fig__line-s { fill: #dceef4; }
.fig__badge circle { fill: #7cc94a; stroke: #fff; stroke-width: 2; }
.fig__badge path { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fig__pop { transform-box: fill-box; transform-origin: center; }
.fig__db path, .fig__db ellipse { fill: #e8f9fd; stroke: #22c3e6; stroke-width: 1.5; }
.fig__db .fig__db-line { fill: none; stroke-opacity: .5; }
.fig__zone { fill: rgba(34, 195, 230, .04); stroke: #22c3e6; stroke-opacity: .35; stroke-width: 1.5; stroke-dasharray: 6 6; }
.fig__person .fig__person-bg { fill: #eef8f2; stroke: #b9ecd6; stroke-width: 1.5; }
.fig__person circle:not(.fig__person-bg), .fig__person path { fill: #6cc64a; }

/* 動き（.is-in が付いたときだけ。4 秒 × 3 回） */
.fig.is-in .fig__pulse { animation: fig-go 4s ease-in-out 3; }
.fig.is-in .fig__pulse.p-back { animation-name: fig-back; }
.fig.is-in .d1 { animation-delay: .2s; }
.fig.is-in .d2 { animation-delay: .4s; }
.fig.is-in .d3 { animation-delay: .6s; }
.fig.is-in .fig__halo.t-end { animation: fig-halo-end 4s ease-out 3; }
.fig.is-in .fig__halo.t-back { animation: fig-halo-back 4s ease-out 3; }
.fig.is-in .fig__star { animation: rd-twinkle 1.6s ease-in-out 8; }
.fig.is-in .fig__chip { animation: fig-chip 4s ease-in-out 3; }
.fig.is-in .fig__tile rect { animation: fig-tile 4s ease-in-out 3; }
.fig.is-in .fig__tile.d1 rect { animation-delay: .15s; }
.fig.is-in .fig__tile.d2 rect { animation-delay: .3s; }
.fig.is-in .fig__pop { animation: fig-pop 4s ease-out 3; }
.fig.is-in .fig__zone { animation: fig-zone 4s ease-in-out 3; }
@keyframes fig-go {
  0% { stroke-dashoffset: 10; opacity: 0; }
  4% { opacity: 1; }
  34% { stroke-dashoffset: -100; opacity: 1; }
  36%, 100% { stroke-dashoffset: -100; opacity: 0; }
}
@keyframes fig-back {
  0%, 48% { stroke-dashoffset: 10; opacity: 0; }
  52% { opacity: 1; }
  84% { stroke-dashoffset: -100; opacity: 1; }
  86%, 100% { stroke-dashoffset: -100; opacity: 0; }
}
@keyframes fig-halo-end { 0%, 32% { opacity: 0; transform: scale(.8); } 40% { opacity: .7; transform: scale(1); } 56%, 100% { opacity: 0; transform: scale(1.12); } }
@keyframes fig-halo-back { 0%, 82% { opacity: 0; transform: scale(.8); } 90% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.12); } }
@keyframes fig-chip { 0%, 100% { opacity: 1; } 4% { opacity: .45; } 14% { opacity: 1; } }
@keyframes fig-tile { 0%, 30%, 62%, 100% { fill: #fff; stroke: #cfe3ea; } 40%, 52% { fill: #e8f9fd; stroke: #22c3e6; } }
@keyframes fig-pop { 0%, 34%, 52%, 100% { transform: scale(1); } 42% { transform: scale(1.14); } }
@keyframes fig-zone { 0%, 100% { stroke-opacity: .35; } 50% { stroke-opacity: .75; } }
@media (prefers-reduced-motion: reduce) {
  .fig * { animation: none !important; }
}

/* 体験デモへの入口 */
.screens__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 20px; }

/* AI メモ帳の紹介 */
.memo-sec { background: linear-gradient(180deg, #fff 0%, #f3fbf6 100%); }
.memo-sec__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.memo-sec h2 { font-size: clamp(24px, 3vw, 32px); margin-top: 10px; }
.memo-sec__lead { margin-top: 12px; color: var(--ink-2); }
.memo-sec__points { display: grid; gap: 10px; margin-top: 20px; }
.memo-sec__points li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: start; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.memo-sec__points b { display: inline-flex; justify-content: center; padding: 3px 0; border-radius: 999px; background: #eefadf; color: #0e7d4f; font-size: 13px; }
.memo-sec__points span { color: var(--ink-2); font-size: 14px; }
.memo-sec__note { margin-top: 14px; font-size: 13px; color: var(--ink-3); }
.memo-mock { position: relative; padding: 8px 0 40px; }
.memo-mock__card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; box-shadow: var(--shadow); }
.memo-mock__meta { font-size: 12px; color: var(--ink-3); }
.memo-mock__title { margin-top: 4px; font-weight: 800; font-size: 17px; }
.memo-mock__body { margin-top: 10px; display: grid; gap: 4px; padding-left: 1.1em; list-style: disc; font-size: 14px; color: var(--ink); }
.memo-mock__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 16px; padding: 10px 12px; border-radius: 14px; background: var(--subtle); }
.memo-mock__ai { font-size: 13px; font-weight: 700; margin-right: 4px; }
.memo-mock__btn { font-size: 13px; font-weight: 700; padding: 5px 14px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px #a9e6c9; }
.memo-mock__btn.is-on { background: var(--grad-button); box-shadow: none; }
.memo-mock__result { position: relative; margin: -14px 0 0 40px; padding: 16px 18px; border-radius: 18px; background: var(--grad-soft); border: 1.5px solid #b9ecd6; box-shadow: var(--shadow); }
.memo-mock__rhead { font-weight: 800; font-size: 14px; }
.memo-mock__label { margin-top: 8px; font-size: 12px; color: var(--ink-3); }
.memo-mock__todo { margin-top: 4px; display: grid; gap: 4px; font-size: 13px; }
.memo-mock__todo li::before { content: "□ "; color: var(--ink-3); }
.memo-mock__add { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--brand); padding: 4px 12px; border-radius: 999px; background: #fff; border: 1.5px solid #b9e48f; }
@media (max-width: 900px) { .memo-sec__grid { grid-template-columns: 1fr; gap: 28px; } .memo-mock__result { margin-left: 16px; } }
/* 整理の結果が、あとから浮かび上がる（1 回だけ） */
.memo-mock.fig { margin-top: 0; padding-top: 8px; }
.memo-mock.is-in .memo-mock__result { animation: rd-rise .6s ease .6s both; }
.memo-mock.is-in .memo-mock__btn.is-on { animation: rd-pop .4s cubic-bezier(.3, 1.4, .5, 1) .2s both; }
@media (prefers-reduced-motion: reduce) { .memo-mock * { animation: none !important; } }
.memo-sec__cta { margin-top: 20px; }

/* あなたのダッシュボード（AI メモ帳と同じ組み方。図は左、スマホでは文章の下） */
.dash-sec { background: linear-gradient(180deg, #f3fbf6 0%, #fff 100%); }
.dash-sec__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.dash-sec h2 { font-size: clamp(24px, 3vw, 32px); margin-top: 10px; }
.dash-sec__lead { margin-top: 12px; color: var(--ink-2); }
.dash-sec__points { display: grid; gap: 10px; margin-top: 20px; }
.dash-sec__points li { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: start; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.dash-sec__points b { display: inline-flex; justify-content: center; padding: 3px 0; border-radius: 999px; background: #e4f5fb; color: #0a6f89; font-size: 13px; }
.dash-sec__points span { color: var(--ink-2); font-size: 14px; }
.dash-sec__note { margin-top: 14px; font-size: 13px; color: var(--ink-3); }
.dash-sec__cta { margin-top: 20px; }
.dash-mock.fig { position: relative; margin-top: 0; padding: 8px 0 40px; }
.dash-mock__card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; box-shadow: var(--shadow); }
.dash-mock__meta { font-size: 12px; color: var(--ink-3); }
.dash-mock__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.dash-mock__kpis div { display: grid; align-content: space-between; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--subtle); }
.dash-mock__kpis span { font-size: 11px; color: var(--ink-3); }
.dash-mock__kpis b { font-size: 17px; }
.dash-mock__label { margin-top: 14px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.dash-mock__bars { display: flex; align-items: flex-end; gap: 10px; height: 64px; margin-top: 6px; padding: 0 4px; border-bottom: 1px solid var(--line); }
.dash-mock__bars i { flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, #8fe6bf 0%, #c4ef8e 100%); transform-origin: bottom; }
.dash-mock__bars .h1 { height: 22%; } .dash-mock__bars .h2 { height: 46%; } .dash-mock__bars .h3 { height: 72%; } .dash-mock__bars .h4 { height: 100%; }
.dash-mock__cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 6px; }
.dash-mock__cal span { position: relative; display: grid; place-items: center; height: 34px; border-radius: 9px; background: var(--subtle); font-size: 12px; color: var(--ink-2); }
.dash-mock__cal .is-off { background: #e7edf2; color: var(--ink-3); }
.dash-mock__cal .is-done { background: #eefadf; color: #2f5f14; font-weight: 700; }
.dash-mock__cal .is-done::after { content: ""; position: absolute; bottom: 4px; width: 6px; height: 6px; border-radius: 50%; background: #5c9a22; }
.dash-mock__cal .is-note::after { box-shadow: 8px 0 0 #22c3e6; transform: translateX(-4px); }
.dash-mock__result { position: relative; margin: -14px 40px 0 0; padding: 16px 18px; border-radius: 18px; background: var(--grad-soft); border: 1.5px solid #b9ecd6; box-shadow: var(--shadow); }
.dash-mock__rhead { font-weight: 800; font-size: 14px; }
.dash-mock__text { margin-top: 4px; font-size: 13px; color: var(--ink-2); }
@media (max-width: 900px) { .dash-sec__grid { grid-template-columns: 1fr; gap: 28px; } .dash-mock.fig { order: 2; } .dash-mock__result { margin-right: 16px; } }
@media (max-width: 420px) { .dash-mock__card { padding: 18px 16px; } .dash-mock__kpis b { font-size: 15px; } .dash-sec__points li { grid-template-columns: 1fr; gap: 6px; } .dash-sec__points b { justify-self: start; padding: 3px 12px; } }
/* 棒が伸び、印がつき、提案が浮かび上がる（画面に入るたびに 1 回） */
@keyframes dash-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.dash-mock.is-in .dash-mock__bars i { animation: dash-grow .5s cubic-bezier(.3, 1.2, .5, 1) both; }
.dash-mock.is-in .dash-mock__bars .h2 { animation-delay: .12s; } .dash-mock.is-in .dash-mock__bars .h3 { animation-delay: .24s; } .dash-mock.is-in .dash-mock__bars .h4 { animation-delay: .36s; }
.dash-mock.is-in .dash-mock__cal .is-done { animation: rd-pop .4s cubic-bezier(.3, 1.4, .5, 1) .5s both; }
.dash-mock.is-in .dash-mock__result { animation: rd-rise .6s ease .9s both; }
@media (prefers-reduced-motion: reduce) { .dash-mock * { animation: none !important; } }

/* 料金表の「？」（押すと説明が開く。スクリプトなしで動く） */
.price__seats { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.hint { display: contents; }
.hint summary { list-style: none; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #e3f6d2; color: var(--brand); font-size: 12px; font-weight: 800; cursor: pointer; }
.hint summary::-webkit-details-marker { display: none; }
.hint summary:hover { background: #c4ef8e; }
.hint summary:focus-visible { outline: 3px solid #8ddbf0; outline-offset: 2px; }
.hint[open] summary { background: var(--brand); color: #fff; }
.hint__body { flex-basis: 100%; margin-top: 6px; padding: 14px 16px; border-radius: 14px; background: var(--subtle); border: 1px solid var(--line); color: var(--ink-2); font-weight: 400; font-size: 13px; line-height: 1.7; animation: rd-rise .25s ease both; }
.hint__title { font-weight: 800; color: var(--ink); font-size: 14px; }
.hint__body dl { margin: 8px 0 0; display: grid; gap: 8px; }
.hint__body dt { font-weight: 700; color: #0e7d4f; }
.hint__body dd { margin: 2px 0 0; }
.hint__note { margin-top: 8px; font-size: 12px; color: var(--ink-3); }
@media (prefers-reduced-motion: reduce) { .hint__body { animation: none; } }
.card .hint__title { font-size: 14px; color: var(--ink); }
.card .hint__note { font-size: 12px; color: var(--ink-3); }

/* 幅の狭いスマホでも、ロゴと 2 つのボタンが 1 行に収まるようにする */
@media (max-width: 380px) {
  .header__inner { gap: 12px; }
  .header__logo img { width: 96px; }
  .header__actions .btn--small { padding: 8px 12px; }
}

/* ---------- リドリに聞く（右下に常に出すシナリオチャット。assets/js/chat.js） ---------- */
.rchat { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.rchat > * { pointer-events: auto; }
.rchat-fab { position: relative; width: 68px; height: 68px; padding: 0; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 8px 24px rgba(15, 30, 51, .18), inset 0 0 0 2px #bfeedd; cursor: pointer; display: grid; place-items: center; transition: transform .15s ease, box-shadow .15s ease; }
.rchat-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15, 30, 51, .22), inset 0 0 0 2px var(--mint); }
.rchat-fab:focus-visible, .rchat-close:focus-visible, .rchat-choice:focus-visible, .rchat-link:focus-visible { outline: 3px solid #8ddbf0; outline-offset: 2px; }
/* ボタンのリドリは、ずっと動かす（ふわふわ浮いて、ときどき小さく跳ねる）。動きを減らす設定の人には止める（下の prefers-reduced-motion） */
.rchat-fab__face { width: 46px; height: auto; transform-origin: 50% 90%; animation: rchat-float 6s ease-in-out infinite; }
@keyframes rchat-float {
  0%, 40%, 100% { transform: none; }
  20% { transform: translateY(-5px); }
  55% { transform: translateY(-4px); }
  68% { transform: none; }
  76% { transform: translateY(-11px) rotate(-6deg); }
  84% { transform: translateY(0) rotate(4deg) scale(1.04, .96); }
  90% { transform: translateY(-3px) rotate(-1deg); }
}
.rchat-tip { position: absolute; right: 8px; bottom: 80px; white-space: nowrap; padding: 8px 14px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); font-size: 13px; font-weight: 700; color: var(--ink); opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .25s ease; pointer-events: none; }
.rchat-tip::after { content: ""; position: absolute; right: 22px; bottom: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: #fff; }
.rchat-tip.is-show { opacity: 1; transform: none; }
.rchat.is-open .rchat-tip { display: none; }
.rchat-panel { width: 360px; max-height: min(600px, calc(100vh - 120px)); display: flex; flex-direction: column; border-radius: 20px; background: #fff; box-shadow: 0 18px 48px rgba(15, 30, 51, .22); overflow: hidden; animation: rd-rise .25s ease both; }
.rchat-panel[hidden] { display: none; }
.rchat-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--grad-soft); border-bottom: 1px solid var(--line); }
.rchat-head__face { width: 36px; height: auto; }
.rchat-head__text { flex: 1; display: grid; line-height: 1.4; }
.rchat-head__text b { font-size: 15px; }
.rchat-head__text small { font-size: 12px; color: var(--ink-3); }
.rchat-close { width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .8); color: var(--ink-2); font-size: 20px; line-height: 1; cursor: pointer; }
.rchat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 12px; background: #fbfdfc; }
.rchat-msg { display: flex; align-items: flex-start; gap: 8px; }
.rchat-msg__face { flex: none; width: 34px; height: auto; margin-top: 2px; }
.rchat-msg__body { max-width: 270px; padding: 10px 12px; border-radius: 4px 14px 14px 14px; background: #fff; border: 1px solid var(--line); font-size: 14px; line-height: 1.7; color: var(--ink); }
.rchat-msg__body p + p { margin-top: 6px; }
.rchat-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rchat-link { display: inline-block; padding: 6px 12px; border-radius: 999px; background: #e8f8ef; color: var(--brand); font-size: 13px; font-weight: 700; text-decoration: none; }
.rchat-link:hover { background: #d6f2e3; color: var(--brand); }
.rchat-you { align-self: flex-end; max-width: 250px; padding: 8px 12px; border-radius: 14px 4px 14px 14px; background: var(--grad-button); font-size: 13px; font-weight: 700; color: var(--ink); }
.rchat-typing { display: inline-flex; gap: 5px; margin-left: 42px; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); width: fit-content; }
.rchat-typing i { width: 7px; height: 7px; border-radius: 50%; background: #9fb0c0; animation: rchat-dot 1s ease-in-out infinite; }
.rchat-typing i:nth-child(2) { animation-delay: .15s; }
.rchat-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes rchat-dot { 0%, 100% { opacity: .3; transform: none; } 50% { opacity: 1; transform: translateY(-3px); } }
.rchat-choices { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 4px; border-top: 1px solid var(--line); }
.rchat-choice { padding: 7px 12px; border: 1.5px solid #bfe3d0; border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; text-align: left; }
.rchat-choice:hover { border-color: var(--mint); background: #f2fbf6; }
.rchat-note { padding: 4px 14px 10px; font-size: 11px; color: var(--ink-3); }
@media (max-width: 720px) {
  .rchat { right: 12px; bottom: 12px; left: 12px; }
  .rchat-panel { width: 100%; max-height: 72vh; }
  .rchat-fab { width: 60px; height: 60px; }
  .rchat-fab__face { width: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .rchat-fab__face, .rchat-panel, .rchat-typing i { animation: none; }
  .rchat-tip { transition: none; }
}
/* 印刷（商標の証拠の画面の写しなど）には出さない */
@media print { .rchat { display: none !important; } }

/* 文書のページ（外部送信について など） */
.doc { max-width: 760px; }
.doc h1 { font-size: clamp(24px, 3vw, 30px); }
.doc h2 { margin-top: 36px; font-size: 20px; }
.doc p { margin-top: 14px; color: var(--ink-2); }
.doc dl { margin-top: 14px; display: grid; gap: 10px; }
.doc dl div { display: grid; grid-template-columns: 9em 1fr; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font-size: 15px; }
.doc dt { font-weight: 700; }
.doc dd { margin: 0; color: var(--ink-2); }
.doc__note { font-size: 14px; }
@media (max-width: 600px) { .doc dl div { grid-template-columns: 1fr; gap: 4px; } }
.doc__meta { font-size: 14px; }
.doc ol { margin: 14px 0 0; padding-left: 1.6em; display: grid; gap: 8px; color: var(--ink-2); }
.doc li > dl { margin-top: 10px; }
