/* トップページ(2026-11-25 作り直し): 読ませる文を減らし、製品の画面の見本と動きで見せる。
   世界観は DESIGN.md の「綴じ込みファイルと見出しシール」のまま。グラデーション・方眼の背景・片側だけの線は使わない */

/* 表示されたら下からふわっと出す(JS が動くときだけ。動きを減らす設定では出さない) */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- 一番上: 明るい地にイラスト ---------- */
.h-hero { background: #fff; padding: 64px 0 40px; overflow: hidden; border-bottom: 1px solid var(--line); }
.h-hero > .lp-wrap:first-child { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 32px; align-items: center; max-width: 1240px; }
.h-copy { animation: rise .8s cubic-bezier(.16, 1, .3, 1) both; }
.h-hero h1 { font-size: clamp(2.3rem, 4vw, 3.4rem); line-height: 1.2; letter-spacing: -.025em; font-weight: 800; margin: 0 0 20px; }
.h-lead { font-size: 1.2rem; line-height: 1.8; color: var(--muted); margin: 0; max-width: 30em; }
.h-hero .hero-btns { margin: 32px 0 16px; }
.h-hint { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .94rem; margin: 0; }
.h-hint .ic { color: var(--ok); flex: none; }
@keyframes rise { from { opacity: .001; transform: translateY(18px); } }

/* イラスト */
.h-art { width: 100%; height: auto; display: block; overflow: visible; font-family: var(--f-body); animation: rise 1s .1s cubic-bezier(.16, 1, .3, 1) both; }
.h-art .ta { fill: #fff; font-size: 15px; font-weight: 800; text-anchor: middle; }
.h-art .tb { fill: #151a36; font-size: 20px; font-weight: 800; }
.h-art .tv { fill: #2f43b0; font-size: 13px; font-weight: 800; text-anchor: middle; }
.h-art .tc { fill: #2f43b0; font: 700 12px var(--f-mono); }
.h-art .cb { fill: #151a36; font-size: 15px; font-weight: 800; }
.h-art .cs { fill: #8a90a6; font-size: 13px; font-weight: 700; }
.h-art .cy { fill: #151a36; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.h-art .cp { fill: #17733f; font-size: 12px; font-weight: 800; text-anchor: middle; }
.h-art .st { fill: #e0582f; font-size: 22px; font-weight: 900; text-anchor: middle; }
.h-art .hc { filter: drop-shadow(0 14px 22px rgba(27, 35, 80, .16)); }
.h-art .fl { animation: float 6s ease-in-out infinite; transform-box: fill-box; }
.h-art .f1 { animation-delay: -1.5s; } .h-art .f2 { animation-delay: -3s; } .h-art .f3 { animation-delay: -4.5s; }
.h-art .f0 { animation-duration: 8s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.h-art .row { animation: slide .6s calc(var(--i) * 140ms + 500ms) cubic-bezier(.16, 1, .3, 1) both; }
.h-art .tabg { animation: tabin .5s calc(var(--i) * 90ms + 300ms) cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes tabin { from { transform: translateX(-30px); opacity: 0; } }
.h-art .stampg { transform-box: fill-box; transform-origin: center; animation: stampin .6s 1.4s cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes stampin { from { opacity: 0; transform: scale(1.8) rotate(-20deg); } }
.h-art .mv { animation: mv 4s 1s ease-in-out infinite; }
@keyframes mv { 0%, 30% { transform: none; } 50%, 80% { transform: translateX(46px); } 100% { transform: none; } }

/* 5つの領域へのボタン */
.h-areas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.h-area { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--area-soft); color: var(--area); font-weight: 800; text-decoration: none; transition: transform .16s, background .16s, color .16s; }
.h-area:hover { background: var(--area); color: #fff; transform: translateY(-2px); }

/* ---------- 見本の紙(どの見本にも使う) ---------- */
.mk { min-width: 0; background: var(--surface); border: 1.5px solid var(--area); border-radius: 14px; overflow: hidden; box-shadow: 0 2px 4px rgba(21, 26, 54, .05), 0 24px 50px -24px rgba(27, 35, 80, .35); }
.mk .sheet-head span { background: var(--area-soft); color: var(--area); padding: 2px 10px; border-radius: 999px; font-size: .78rem; }
.mk .sheet-row { background: var(--surface); }
.sheet-row em.bad { color: var(--bad); }
.gen { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 12px 16px 16px; border-top: 1px solid var(--line); }
.gen-l { color: var(--muted); font-size: .78rem; font-weight: 700; margin-right: 4px; }
.gen-c { padding: 4px 10px; border-radius: 7px; background: var(--area); color: #fff; font: 600 .76rem var(--f-mono); }
.tdef { padding: 10px 14px 14px; display: grid; gap: 4px; }
.tdef-row { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 8px; border: 1px solid var(--line); font-size: .84rem; }
.tdef-row code { font: 600 .8rem var(--f-mono); color: var(--fg); overflow: hidden; text-overflow: ellipsis; }
.tdef-row code:first-child { color: var(--area); }
.tdef-row.th { border: 0; background: var(--surface2); color: var(--muted); font-size: .74rem; font-weight: 750; }
.in .tdef-row:not(.th) { animation: slide .55s calc(var(--d, 0) * 110ms + 150ms) cubic-bezier(.16, 1, .3, 1) both; }
.kan { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 14px; }
.kcol { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 10px; background: var(--surface2); min-height: 150px; }
.kh { font-size: .74rem; font-weight: 750; color: var(--muted); padding: 0 2px 2px; }
.kcard { display: block; padding: 9px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: .8rem; font-weight: 600; line-height: 1.5; }
.kcard.move { border-color: var(--area); box-shadow: 0 8px 18px -10px rgba(21, 26, 54, .5); }
.kcard.wait { border-color: var(--warn); background: var(--warn-soft); }
.kcard em { display: block; font-style: normal; font-size: .72rem; color: var(--warn); margin-top: 3px; }
.bar { height: 8px; margin: 14px 14px 0; border-radius: 4px; background: var(--surface2); overflow: hidden; }
.bar span { display: block; height: 100%; width: 87.5%; background: var(--area); border-radius: 4px; transform-origin: left; }
.inv { position: relative; padding: 10px 18px 16px; }
.inv-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .86rem; }
.inv-row small { display: block; color: var(--muted); font-size: .74rem; }
.inv-row.sub { color: var(--muted); }
.inv-row.total { border-bottom: 0; font-size: 1.02rem; padding-top: 12px; }
.inv-row.total b { font-size: 1.2rem; color: var(--area); }
.stamp { position: absolute; left: 34%; bottom: 14px; padding: 6px 12px; border: 2.5px solid var(--area); border-radius: 8px; color: var(--area); font-weight: 800; font-size: .9rem; transform: rotate(-9deg); background: color-mix(in srgb, var(--surface) 85%, transparent); }
.runlist { list-style: none; margin: 0; padding: 12px 16px 18px; display: grid; gap: 8px; }
.runlist li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; font-size: .86rem; font-weight: 600; }
.tick { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--area); color: #fff; flex: none; }
.runlist li:last-child .tick { background: var(--surface2); color: transparent; box-shadow: inset 0 0 0 2px var(--area); }

/* 見本の中の動き: 見えたとき(.in)・選ばれたとき(.on)に始める */
.in .sheet-row, .on .sheet-row, .in .inv-row, .on .inv-row, .in .runlist li, .on .runlist li { animation: slide .55s calc(var(--d, 0) * 110ms + 150ms) cubic-bezier(.16, 1, .3, 1) both; }
.in .gen-c, .on .gen-c { animation: pop .4s calc(var(--d, 0) * 90ms + 600ms) cubic-bezier(.34, 1.56, .64, 1) both; }
.in .bar span, .on .bar span { animation: grow 1.1s .2s cubic-bezier(.16, 1, .3, 1) both; }
.in .stamp, .on .stamp { animation: stamp .5s .9s cubic-bezier(.34, 1.56, .64, 1) both; }
.in .kcard.move, .on .kcard.move { animation: lift 3.2s 1s ease-in-out infinite; }
.in .tick, .on .tick { animation: pop .35s calc(var(--d, 0) * 300ms + 400ms) cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes slide { from { opacity: 0; transform: translateX(-12px); } }
@keyframes pop { from { opacity: 0; transform: scale(.6); } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes stamp { from { opacity: 0; transform: rotate(-9deg) scale(1.8); } }
@keyframes lift { 0%, 100% { transform: none; } 50% { transform: translate(4px, -4px) rotate(-1.2deg); } }

/* ---------- 区切り ---------- */
.h-sec { padding: 112px 0; }
.h-sec + .h-sec { border-top: 1px solid var(--line); }
.h-h { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.3; letter-spacing: -.02em; margin: 0 0 48px; }
.h-sub { color: var(--muted); font-size: 1.06rem; margin: -32px 0 40px; }

/* 5つの見出し: 左に短い文、右に画面 */
#areas { padding-top: 120px; }
.shows { display: grid; gap: 104px; }
.show { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: center; }
.show.flip .show-copy { order: 2; }
.show-copy h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.35; letter-spacing: -.015em; margin: 18px 0 22px; }
.pts { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
.pts li { display: flex; gap: 10px; align-items: flex-start; font-size: 1.04rem; font-weight: 600; }
.pts .ic { color: var(--area); flex: none; margin-top: 4px; }
.more { display: inline-flex; align-items: center; gap: 4px; color: var(--area); font-weight: 700; text-decoration: none; }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }
.show-vis { padding: 44px; border-radius: 24px; background: var(--area-soft); }
.show-vis .mk { transform: rotate(-.6deg); }
.show.flip .show-vis .mk { transform: rotate(.6deg); }

/* ひと綴りに */
.merge { background: var(--surface); }
.merge-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.merge-copy p { font-size: 1.12rem; color: var(--muted); margin: -28px 0 0; line-height: 1.8; }
.merge-vis { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 18px; }
.scatter { position: relative; height: 230px; }
.paper { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line2); font-size: .86rem; font-weight: 650; color: var(--muted); box-shadow: 0 10px 22px -14px rgba(21, 26, 54, .4); white-space: nowrap; }
.paper.p0 { left: 0; top: 6px; transform: rotate(-6deg); } .paper.p1 { right: 0; top: 58px; transform: rotate(5deg); }
.paper.p2 { left: 8%; top: 118px; transform: rotate(3deg); } .paper.p3 { right: 6%; top: 176px; transform: rotate(-4deg); }
.in .paper { animation: drift 4s ease-in-out infinite alternate; } .in .paper.p1 { animation-delay: -1s; } .in .paper.p2 { animation-delay: -2s; } .in .paper.p3 { animation-delay: -3s; }
@keyframes drift { to { translate: 0 -6px; } }
.merge-arrow { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: #fff; }
.mini-binder .binder-tabs { padding-left: 8px; gap: 3px; }
.mini-binder .btab { padding: 6px 8px; font-size: .72rem; }
.mini-sheet { display: grid; gap: 10px; padding: 18px; background: var(--surface); border: 1.5px solid var(--accent); border-radius: 12px; box-shadow: 0 24px 40px -22px rgba(27, 35, 80, .45); }
.mini-sheet i { display: block; height: 10px; border-radius: 5px; background: var(--surface2); }
.mini-sheet i:nth-child(3) { width: 78%; } .mini-sheet i:nth-child(4) { width: 56%; }
.in .mini-binder { animation: pop .6s .3s cubic-bezier(.34, 1.56, .64, 1) both; }

/* お客さまとの流れ: 4つの丸を線でつなぐ */
.hsteps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; position: relative; }
.hsteps::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 34px; height: 2px; background: var(--line2); }
.hsteps li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.step-ic { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--accent); color: #fff; margin-bottom: 10px; box-shadow: 0 0 0 8px var(--bg); }
.hsteps li:nth-child(2) .step-ic { background: var(--a-flow); } .hsteps li:nth-child(3) .step-ic { background: var(--a-quality); } .hsteps li:nth-child(4) .step-ic { background: var(--a-money); }
.hsteps b { font-size: 1.12rem; }
.hsteps li > span:last-child { color: var(--muted); }
.hsteps.in li { animation: rise .6s calc(var(--i, 0) * 120ms) cubic-bezier(.16, 1, .3, 1) both; }
.hsteps li:nth-child(2) { --i: 1; } .hsteps li:nth-child(3) { --i: 2; } .hsteps li:nth-child(4) { --i: 3; }

/* 安全: 6枚のタイル */
.sec-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { padding: 26px 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.tile h3 { font-size: 1.08rem; margin: 0 0 6px; }
.tile p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.7; }
.roles { margin-top: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.roles summary { padding: 18px 22px; font-weight: 700; cursor: pointer; }
.role-mx { width: 100%; border-collapse: collapse; font-size: .92rem; }
.role-mx th, .role-mx td { padding: 11px 10px; border-top: 1px solid var(--line); text-align: center; }
.role-mx th[scope="row"] { text-align: left; padding-left: 22px; font-weight: 650; }
.role-mx thead th { color: var(--muted); font-size: .82rem; }
.role-mx .yes { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); vertical-align: middle; }
.role-mx .no { color: var(--muted); }

/* 料金 */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.pl { position: relative; display: flex; flex-direction: column; padding: 30px 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.pl h3 { font-size: 1.12rem; margin: 0 0 12px; }
.plan-n { display: flex; align-items: baseline; gap: 6px; margin: 0 0 22px; }
.plan-n b { font: 800 2.4rem/1.1 var(--f-display); letter-spacing: -.02em; }
.plan-n span { color: var(--muted); }
.pl ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pl li { display: flex; gap: 9px; align-items: flex-start; font-size: .95rem; }
.pl li .ic { color: var(--ok); flex: none; margin-top: 4px; }
.pl.team { background: var(--shell); color: #fff; border-color: var(--shell); box-shadow: 0 30px 60px -30px rgba(27, 35, 80, .6); }
.pl.team h3, .pl.team .plan-n b { color: #fff; }
.pl.team .plan-n span { color: #aab1d6; }
.pl.team li .ic { color: #7fd6ac; }
.pop { position: absolute; top: -13px; right: 24px; padding: 4px 12px; border-radius: 999px; background: var(--a-money); color: #fff; font-size: .8rem; font-weight: 750; }
.tier { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; margin: 0 0 18px; border-radius: 11px; background: rgba(255, 255, 255, .08); }
.tier button { min-height: 40px; border: 0; border-radius: 8px; background: transparent; color: #c9cfe8; font: 700 .92rem var(--f-body); cursor: pointer; }
.tier button[aria-checked="true"] { background: #fff; color: var(--shell); }
.tier button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.price-note { margin-top: 24px; }

/* 目的から探す */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-link { display: inline-flex; align-items: center; gap: 9px; padding: 12px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--fg); font-weight: 650; text-decoration: none; transition: border-color .16s, transform .16s; }
.chip-link .ic { color: var(--area); flex: none; }
.chip-link:hover { border-color: var(--area); color: var(--fg); transform: translateY(-2px); }

.about-h { font-size: 1.1rem; margin: 56px 0 8px; }
.about { color: var(--muted); font-size: .95rem; line-height: 1.9; margin: 0; }

/* 最後の呼びかけ: 上に見出しシールを5枚 */
.h-cta { position: relative; padding-top: 104px; }
.cta-tabs { position: absolute; top: 0; left: 50%; translate: -50% 0; display: flex; gap: 6px; }
.cta-tabs span { width: 46px; height: 16px; border-radius: 0 0 8px 8px; background: var(--area); }

/* ---------- スマホ・タブレット ---------- */
@media (max-width: 1020px) {
  .h-hero > .lp-wrap:first-child { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .h-art { max-width: 560px; margin: 0 auto; }
  .show, .show.flip, .merge-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .show.flip .show-copy { order: 0; }
  .sec-tiles, .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pl.team { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .h-hero { padding: 36px 0 32px; }
  .h-hero h1 { font-size: 2.2rem; }
  .h-lead { font-size: 1.06rem; }
  .h-hero .hero-btns .btn { width: 100%; }
  .h-areas { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 16px; }
  .h-area { flex-direction: column; gap: 4px; padding: 10px 4px; border-radius: 14px; font-size: .82rem; }
  .h-sec, #areas { padding: 72px 0; }
  .h-h { margin-bottom: 32px; }
  .h-sub { margin: -20px 0 28px; }
  .shows { gap: 72px; }
  .show-vis { padding: 18px 12px; border-radius: 18px; margin: 0 -4px; }
  .show-vis .mk, .show.flip .show-vis .mk { transform: none; }
  .kan { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 10px; }
  .kcol:last-child { grid-column: 1 / -1; min-height: 0; }
  .kcol { min-height: 0; }
  .merge-copy p { margin-top: -20px; }
  .merge-vis { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 12px; }
  .scatter { width: 100%; height: 200px; }
  .merge-arrow { rotate: 90deg; width: 44px; height: 44px; }
  .mini-binder { width: 100%; }
  .hsteps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; }
  .hsteps::before { display: none; }
  .step-ic { width: 60px; height: 60px; }
  .sec-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { padding: 18px 16px; border-radius: 14px; }
  .tile-ic { width: 42px; height: 42px; margin-bottom: 12px; }
  .tile h3 { font-size: 1rem; }
  .tile p { font-size: .88rem; }
  .role-mx { font-size: .8rem; }
  .role-mx th, .role-mx td { padding: 10px 4px; }
  .role-mx th[scope="row"] { padding-left: 14px; }
  .plans { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .pl { padding: 24px 20px; }
  .chip-link { padding: 10px 14px; font-size: .92rem; }
  .stamp { left: 18%; }
}

@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; transition: none; }
  .h-copy, .h-art, .h-art *, .in *, .hsteps.in li { animation: none !important; }
}
