/* ==========================================================================
   スマぞう (Sumazou) — サイト共通スタイル
   正本: /dist/assets/css/site.css  設計ルール: ../../DESIGN_GUIDELINES.md
   構成: 1) Tokens  2) Base  3) Layout  4) Components  5) Sections  6) Utilities  7) Responsive
   ========================================================================== */

/* 1) Design tokens ------------------------------------------------------- */
:root {
  /* brand */
  --c-teal: #00BAB2;
  --c-teal-dark: #00958F;
  --c-teal-deep: #007A75;
  --c-teal-deeper: #00625E;
  --c-input-line: #6F8093;
  --c-mint: #E5F7F6;
  --c-mint-2: #F3FBFA;
  --c-navy: #14356B;
  --c-navy-deep: #0E2750;
  /* neutrals */
  --c-ink: #22314A;
  --c-muted: #5C6B82;
  --c-line: #DDE6EC;
  --c-bg: #FFFFFF;
  --c-bg-soft: #F5F8FA;
  /* status */
  --c-warn: #C2410C;
  --c-warn-bg: #FFF4EC;
  --c-ok-bg: #E5F7F6;
  --c-req: #D2434A;
  /* effects */
  --shadow-sm: 0 4px 14px -6px rgba(20, 53, 107, .14);
  --shadow-md: 0 16px 40px -20px rgba(20, 53, 107, .22);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  /* type */
  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic Medium", Meiryo, system-ui, sans-serif;
  --fs-body: 16px;
  --lh-body: 1.85;
  /* layout */
  --maxw: 1120px;
  --gutter: 24px;
  --header-h: 72px;
  --sec-y: 88px;
}

/* 2) Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  font-family: var(--font); font-size: var(--fs-body); line-height: var(--lh-body);
  color: var(--c-ink); background: var(--c-bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  line-break: strict; overflow-wrap: anywhere;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--c-navy); outline-offset: 3px; box-shadow: 0 0 0 6px #fff;
}
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--c-navy); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); z-index: 200; }
.skip-link:focus { top: 8px; }

/* 3) Layout -------------------------------------------------------------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--sec-y) 0; }
.section--soft { background: var(--c-bg-soft); }
.section--mint { background: var(--c-mint); }
.section--navy { background: var(--c-navy); color: #fff; }
.section + .section:not(.section--navy):not(.section--soft):not(.section--mint) { border-top: 1px solid var(--c-line); }
/* FV直下の境界: trustバー(紺)を外したことで、白で終わるヘログラデーションと次のセクションの境目が消えるため、
   背景色の切り替え(白→soft)に加えて罫線でも境界を明示する(Yuhei指示 2026-09-09) */
.hero + .section { border-top: 1px solid var(--c-line); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* section heading system: kicker (JA) + title (JA) + lead */
.title { text-wrap: balance; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.35; font-weight: 800; color: var(--c-navy); letter-spacing: .01em; }
.section--navy .title { color: #fff; }
.lead { margin-top: 16px; color: var(--c-muted); font-size: 16px; max-width: 760px; }
.section--navy .textlink--onnavy { color: #8FE3DE; }
.section--navy .lead { color: #C7D6E6; }
.head + .grid, .head + .steps, .head + .flow { margin-top: 48px; }

/* 4) Components ---------------------------------------------------------- */
/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 15px; line-height: 1; padding: 15px 28px; border-radius: var(--r-pill);
  border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s;
  white-space: normal; text-align: center; min-height: 48px; line-height: 1.5;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--c-teal-deep); color: #fff; }
.btn--primary:hover { background: var(--c-teal-deeper); }

/* text link */
.textlink { color: var(--c-teal-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.textlink:hover { color: var(--c-navy); }

/* cards */
.card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md); padding: 30px; box-shadow: var(--shadow-sm); }
.card h3 { text-wrap: balance; font-size: 18px; color: var(--c-navy); font-weight: 800; line-height: 1.5; margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--c-muted); }
.card .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--c-mint); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: var(--c-teal-deep); }
.card .ic svg { width: 26px; height: 26px; }

/* chips */

/* checklist */

/* notice / disclaimer */
.notice { border-radius: var(--r-sm); padding: 14px 18px; font-size: 13.5px; line-height: 1.7; }
.notice--info { background: var(--c-mint); color: var(--c-teal-deep); border: 1px solid #BFEAE7; }
.notice--muted { background: var(--c-bg-soft); color: var(--c-muted); border: 1px solid var(--c-line); }

/* store badges: Apple / Google の公式アートワークを等比表示する(改変・切り抜き禁止。
   出所は 2026-09-09_ストアバッジ素材の出所.md)。
   Apple SVG は余白なしの 108.85×40。Google PNG は 646×250 のうち実画像が 646×192(上下各29pxが公式の余白)なので、
   見た目の高さを Apple と同じ40pxにそろえるには 250÷192×40 = 52px 表示にする。 */
.stores { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.store-badge { display: inline-flex; }
.store-badge img { display: block; width: auto; height: 40px; }
.store-badge--gplay img { height: 52px; }
.stores-note { font-size: 12px; color: var(--c-muted); margin-top: 10px; }

/* table */
.table th, .table td { text-align: left; padding: 15px 18px; font-size: 14.5px; border-bottom: 1px solid var(--c-line); vertical-align: top; white-space: nowrap; }
.table thead th { background: var(--c-navy); color: #fff; font-weight: 700; font-size: 13.5px; }
.table tbody tr:last-child td, .table tbody tr:last-child th { border-bottom: 0; }
.table tbody th { font-weight: 800; color: var(--c-navy); background: var(--c-mint-2); }

/* definition table (company) */
.card--flush { padding: 0; }
.def-table th, .def-table td { text-align: left; padding: 15px 20px; font-size: 14.5px; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.def-table th { width: 32%; background: var(--c-mint-2); color: var(--c-navy); font-weight: 800; white-space: nowrap; }
.def-table tr:last-child th, .def-table tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq-list { max-width: 820px; margin: 44px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-size: 16px; font-weight: 700; color: var(--c-navy); position: relative; line-height: 1.6; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline-offset: -4px; } /* A2: .faq の overflow:hidden で枠が切れないよう内側に */
.faq summary::before { content: "Q"; color: var(--c-teal-deep); font-weight: 800; margin-right: 10px; }
.faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--c-teal-deep); border-bottom: 2px solid var(--c-teal-deep); transform: translateY(-70%) rotate(45deg); transition: transform .25s; }
.faq[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq .faq-body { padding: 0 22px 20px 44px; font-size: 14.5px; color: var(--c-muted); line-height: 1.85; }

/* form */
.form-card { max-width: 760px; margin: 44px auto 0; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 40px; box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 20px; }
.field--full { grid-column: 1 / -1; }
.field label { display: block; font-size: 14px; font-weight: 700; color: var(--c-navy); margin-bottom: 8px; }
.req { color: var(--c-req); font-size: 12px; margin-left: 6px; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--c-ink); padding: 13px 15px;
  border: 1.5px solid var(--c-input-line); border-radius: var(--r-sm); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field ::placeholder { color: #6B7A8F; opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--c-navy); outline-offset: 2px; border-color: var(--c-teal-deep); }
.field textarea { resize: vertical; min-height: 130px; }
.field .hint { font-size: 12.5px; color: var(--c-muted); margin-top: 6px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--c-muted); margin: 6px 0 22px; }
.consent input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--c-teal-deep); }
.consent a { color: var(--c-teal-deep); text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-submit { text-align: center; }
.form-submit .btn { min-width: 300px; font-size: 16px; padding: 17px 30px; }
.form-note { font-size: 12.5px; color: var(--c-muted); text-align: center; margin-top: 14px; }
.form-status { display: block; margin: 0; padding: 0; border: 0; border-radius: var(--r-sm); font-size: 14.5px; font-weight: 600; text-align: center; line-height: 1.7; } /* A4: 空でもツリーに残す(display:none にしない) */
.form-status.is-ok, .form-status.is-err, .form-status.is-info { margin-top: 22px; padding: 16px 18px; }
.form-status.is-info { background: var(--c-bg-soft); color: var(--c-muted); border: 1px solid var(--c-line); }
.form-status.is-ok { background: var(--c-ok-bg); color: var(--c-teal-deep); border: 1px solid #BFEAE7; }
.form-status.is-err { background: #FDECEC; color: #B3261E; border: 1px solid #F4C9C9; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #B3261E; }
.form-status a { text-decoration: underline; }

/* header */
.header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--c-line); transition: box-shadow .25s; }
.header.is-scrolled { box-shadow: 0 8px 26px -16px rgba(20, 53, 107, .3); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 20px; }
/* ヘッダーの余白リズム(Yuhei指示 2026-09-09): ナビ項目どうしの余白を1とし、
   ロゴ↔ナビ先頭 と ナビ末尾↔右のボタン を2にする。余りを 2:1:…:1:2 の比で配りたいので、
   ロゴ・各リンク・右ボタンを1本のグリッドの行に並べ(.nav-links は display:contents で枠を外す)、
   あいだの列を fr で持たせる。列数はリンク数で変わるため nav--6(医療機関向け) / nav--4(利用者向け)を使い分ける。
   ハンバーガーに切り替わる 1180px 以下では従来の flex に戻る。 */
@media (min-width: 1181px) {
.nav--6, .nav--5, .nav--4 { display: grid; gap: 0; align-items: center; }
.nav--6 .nav-links, .nav--5 .nav-links, .nav--4 .nav-links { display: contents; }
.nav--6 > .brand, .nav--5 > .brand, .nav--4 > .brand { grid-column: 1; }
.nav--6 > *, .nav--5 > *, .nav--4 > *, .nav--6 .nav-links > a, .nav--5 .nav-links > a, .nav--4 .nav-links > a { grid-row: 1; }
.nav--6 .nav-links > a:nth-child(1), .nav--5 .nav-links > a:nth-child(1), .nav--4 .nav-links > a:nth-child(1) { grid-column: 3; }
.nav--6 .nav-links > a:nth-child(2), .nav--5 .nav-links > a:nth-child(2), .nav--4 .nav-links > a:nth-child(2) { grid-column: 5; }
.nav--6 .nav-links > a:nth-child(3), .nav--5 .nav-links > a:nth-child(3), .nav--4 .nav-links > a:nth-child(3) { grid-column: 7; }
.nav--6 .nav-links > a:nth-child(4), .nav--5 .nav-links > a:nth-child(4), .nav--4 .nav-links > a:nth-child(4) { grid-column: 9; }
.nav--6 .nav-links > a:nth-child(5), .nav--5 .nav-links > a:nth-child(5) { grid-column: 11; }
.nav--6 .nav-links > a:nth-child(6) { grid-column: 13; }
  .nav--6 { grid-template-columns: max-content 2fr max-content 1fr max-content 1fr max-content 1fr max-content 1fr max-content 1fr max-content 2fr max-content; }
  .nav--6 > .nav-right { grid-column: 15; }
  .nav--5 { grid-template-columns: max-content 2fr max-content 1fr max-content 1fr max-content 1fr max-content 1fr max-content 2fr max-content; }
  .nav--5 > .nav-right { grid-column: 13; }
  .nav--4 { grid-template-columns: max-content 2fr max-content 1fr max-content 1fr max-content 1fr max-content 2fr max-content; }
  .nav--4 > .nav-right { grid-column: 11; }
}
.nav-links a { font-size: 14px; font-weight: 600; color: var(--c-ink); position: relative; padding: 4px 0; white-space: nowrap; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--c-teal-deep); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }
.nav-links a.is-active { color: var(--c-teal-deep); }
.nav-right { display: flex; align-items: center; gap: 12px; flex: none; }

/* audience switch (医療機関 / 患者さん) */
.aud-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 9.8px 18px 8.2px; border-radius: var(--r-pill); background: #fff; border: 2px solid var(--c-navy); color: var(--c-navy); font-size: 14px; font-weight: 700; white-space: nowrap; transition: background .2s, color .2s; } /* 2026-09-10: 文字インク基準で上下中央(Hiraginoの字面が行内で上寄りのため上を+0.8) */
.aud-btn:hover { background: var(--c-navy); color: #fff; }
.aud-btn .aud-sm { display: none; }   /* モバイル(下のメディアクエリ)で .aud-lg と入れ替える */
.hamb { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; padding: 8px; min-width: 44px; min-height: 44px; }
.hamb span { width: 24px; height: 2px; background: var(--c-navy); display: block; border-radius: 2px; }

/* footer */
.footer { background: var(--c-navy-deep); color: #fff; padding: 56px 0 28px; }
.foot-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; padding-bottom: 30px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.foot-brand img { height: 40px; width: auto; }
.foot-brand p { margin-top: 16px; font-size: 13.5px; color: #A9BBD1; max-width: 360px; line-height: 1.8; }
.foot-links { display: flex; gap: 48px; flex-wrap: wrap; }
.foot-col h2 { font-size: 12.5px; letter-spacing: .12em; color: #8FE3DE; margin-bottom: 14px; font-weight: 700; }
.foot-col a { display: block; font-size: 14px; color: #C9D6E5; margin-bottom: 10px; transition: color .2s; }
.foot-col a:hover { color: #fff; }
.foot-col a.foot-alt { margin-top: 22px; font-size: 12.5px; letter-spacing: .12em; color: #8FE3DE; font-weight: 700; } /* 別の閲覧者への入口。見出し(h2)と同じ書体設定 */
.foot-col a.foot-alt:hover { color: #fff; }
.foot-disclaimer { margin-top: 26px; font-size: 12.5px; color: #A9BBD1; line-height: 1.8; }
.foot-disclaimer li { padding-left: 1.2em; text-indent: -1.2em; }
.copyright { padding-top: 22px; font-size: 12.5px; color: #8A9DB5; text-align: center; }

/* floating support button (右下) */
.support-fab { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: inline-flex; align-items: center; gap: 9px; background: var(--c-navy); color: #fff; font-weight: 700; font-size: 14px; padding: 13px 18px 13px 15px; border-radius: var(--r-pill); box-shadow: 0 12px 30px -10px rgba(14, 39, 80, .55); transition: transform .2s, background .2s; }
.support-fab:hover { transform: translateY(-2px); background: var(--c-teal-deep); }
.support-fab { transition: bottom .28s ease, transform .2s ease, background .2s ease; }
.support-fab svg { width: 20px; height: 20px; }
.support-panel { position: fixed; right: 20px; bottom: 78px; z-index: 91; width: min(360px, calc(100vw - 40px)); background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md); box-shadow: var(--shadow-md); padding: 20px; max-height: calc(100dvh - 98px); overflow-y: auto; overscroll-behavior: contain; }
.support-panel h2 { padding-right: 28px; font-size: 15px; color: var(--c-navy); font-weight: 800; margin-bottom: 6px; }
.support-panel p { font-size: 13px; color: var(--c-muted); margin-bottom: 14px; line-height: 1.7; }
.support-panel .opt { display: block; border: 1px solid var(--c-line); border-radius: var(--r-sm); padding: 12px 14px; margin-bottom: 10px; transition: border-color .2s, background .2s; }
.support-panel .opt:hover { border-color: var(--c-teal); background: var(--c-mint-2); }
.support-panel .opt--static:hover { border-color: var(--c-line); background: transparent; }
.support-panel .opt b { display: block; font-size: 14px; color: var(--c-navy); }
.support-panel .opt span { display: block; font-size: 12.5px; color: var(--c-muted); margin-top: 2px; }
.support-panel .close { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; color: var(--c-muted); font-size: 20px; line-height: 1; }
.support-panel .close:hover { background: var(--c-bg-soft); }

/* 5) Sections ------------------------------------------------------------ */
/* hero */
.hero { background: linear-gradient(180deg, var(--c-mint-2) 0%, #fff 100%); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.02fr .98fr; column-gap: 48px; row-gap: 0; align-items: start; padding-top: 76px; padding-bottom: 72px; }
.hero-eyebrow { display: inline-flex; align-items: center; background: #fff; border: 1px solid var(--c-line); color: var(--c-navy); font-size: 13px; font-weight: 700; padding: 7px 16px; border-radius: var(--r-pill); margin-bottom: 30px; }
.hero h1 { font-size: clamp(30px, 3.4vw, 42px); /* 2026-09-09: 医療機関向けh1「院内で受診者のスマホへ。」(12字)を1行に収めるため 50px→42px */ line-height: 1.3; font-weight: 800; color: var(--c-navy); letter-spacing: .01em; }
.hero h1 .hl { color: var(--c-teal-deep); }
.hero .sub { margin-top: 22px; font-size: 17px; color: var(--c-muted); max-width: 540px; }
.hero-cta { margin-top: 30px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-links { margin-top: 18px; font-size: 14px; color: var(--c-muted); }
.hero-stores { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--c-line); }
/* 右カラム(イラスト+ストアバッジ)を、FV(.hero セクション)の上下幅のちょうど中央に置く。
   グリッド行の中央(align-self: center)はコンテンツボックス基準なので、上下パディング差
   (76px / 72px)の半分=2px だけ上へずらすと、セクション box の中央と一致する。
   拡大は縦横同率の scale のみ(内部の間隔・光学中心の比率をそのまま保つ)。Yuhei指示 2026-09-09 */
.hero-right { grid-column: 2; grid-row: 1; align-self: center; transform: translateY(-2px) scale(1.08); transform-origin: 50% 50%; }
/* 中央ぞろえの対象は「見えている絵」であって、素材の枠ではない。イラストPNGは上端に72.8pxの
   透明余白(不透明域の最上端はキオスク側 x=202・幅502px基準)、Google Play公式バッジPNGは下端に6pxの
   透明余白を持つので、レイアウトボックスをそのまま中央に置くと見た目は下寄りになる(実測: FV上端→
   イラスト上端 138px に対し バッジ下端→FV下端 66px)。負のマージンでその2つの透明帯を打ち消し、
   ボックス=見えている範囲にそろえてから中央に置く(Yuhei指示 2026-09-09)。
   マージンの%はグリッドエリアの幅基準なので、列幅が変わっても比率が保たれる。 */
.hero-visual { margin-top: -14.502%; }
.hero-stores { margin-bottom: -6px; }
.hero-visual { position: relative; }
.hero-visual::before { content: ""; position: absolute; inset: -8% -6% -6% -6%; z-index: -1; background: radial-gradient(56% 56% at 55% 45%, rgba(0, 186, 178, .18), rgba(0, 186, 178, 0) 70%); }
.hero-visual img { width: 100%; height: auto; }
/* FVのイラスト: 見えている上端をh1の1行目にそろえる(.hero-inner の align-items:start)。
   hero.png は上端に約19%(376pxに対し73px)の透明余白があるため、追加オフセットなしで光学的に一致する。
   医療機関向けトップは2行グリッドにして、左の「デモを申し込む」と右のストアバッジを同じ高さに置く。 */
.hero-text { grid-column: 1; grid-row: 1; }
/* サブコピー↔CTA の間隔。見た目39.2pxにそろえるため、サブ最終行のインク下端までの余白7.9pxを引いて31px */
.hero-actions { margin-top: 31px; }
.hero-actions .hero-cta { margin-top: 0; }
/* イラストの下に20px(見た目)。Google公式バッジPNGの上下余白6pxを差し引いて14px。
   .hero-right ごと上がるので、イラストとの位置関係は引き上げ前と同じ */
.hero-stores { margin-top: 14px; padding-top: 0; border-top: 0; }
/* ストアバッジ2枚の配置は、削除前の注記「App Store・Google Playから直接ダウンロードいただけます。」の
   文字送り幅を定規にして決めた(Yuhei指示 2026-09-09)。参照スパン=「A」の左端〜「。」の右端で、
   右カラム幅502pxに対し 左端 87.11px(17.361%)/ 幅 345.62px(68.880%)。この幅に space-evenly で
   2枚を置くと「左端〜App Store左端」「App Store右端〜Google Play左端」「Google Play右端〜右端」が
   すべて 34.14px の等間隔になる。バッジは2枚とも不透明域が左右いっぱい(App Storeはボックス=角丸の面、
   Google Play公式PNGの透明余白は上下6pxのみで左右0)なので、ボックス間隔=見た目の間隔。
   「。」は字面枠の左寄りに丸があるためインク右端は7.75px内側だが、そこを定規にすると行の中心が
   イラストの光学中心(=旧 padding-left:3.6% でそろえていた位置)より3.79px左にずれる。ここは
   イラストとの中心一致を優先して字面枠で採った。%指定なので .hero-right の scale と等倍で動く。 */
.hero-stores { text-align: center; }
.hero-stores .stores { width: 68.880%; margin-left: 17.361%; flex-wrap: nowrap; gap: 0; justify-content: space-evenly; }

/* trust strip */

/* steps (静止画ステップガイド) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.steps--6 { grid-template-columns: repeat(3, 1fr); }
.step { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md); padding: 26px 24px 28px; box-shadow: var(--shadow-sm); position: relative; }
.step .no { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--c-navy); color: #fff; font-size: 14px; font-weight: 800; letter-spacing: .02em; }
.step .fig { margin: 18px 0 16px; background: var(--c-mint-2); border-radius: 12px; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.step .fig svg { width: 100%; height: 100%; }
/* Figma書き出し(2026-09-09): ステップ図・アプリ画面モックは実機写真+アプリ実画面の合成PNG/WebP。
   書き出しに焼き込まれていた枠線と白い角は書き出し後に切り落としてあり(各辺10px@2x)、
   残る余白は .fig / .shot と同じ #F3FBFA なので object-fit: contain のレターボックスは目立たない。 */
.step .fig picture, .shot picture { display: block; width: 100%; height: 100%; }
.step .fig img, .shot img { display: block; width: 100%; height: 100%; object-fit: contain; }
.step h3 { text-wrap: balance; font-size: 17px; color: var(--c-navy); font-weight: 800; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--c-muted); }
.step .who { display: inline-block; margin-bottom: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; color: var(--c-teal-deep); background: var(--c-mint); padding: 3px 9px; border-radius: var(--r-pill); }
.steps-meta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; font-size: 13px; color: var(--c-muted); }
.steps-meta b { color: var(--c-navy); }

/* isolation diagram (非接続の説明) */
.iso { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.iso-list { display: flex; flex-direction: column; gap: 14px; }
.iso-item { display: flex; gap: 14px; align-items: flex-start; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; padding: 18px 20px; }
.iso-item .ic { flex: none; width: 42px; height: 42px; border-radius: 12px; background: rgba(0, 186, 178, .18); display: flex; align-items: center; justify-content: center; color: #8FE3DE; }
.iso-item .ic svg { width: 22px; height: 22px; }
.iso-item h3 { font-size: 15.5px; color: #fff; font-weight: 800; margin-bottom: 4px; line-height: 1.5; }
.iso-item p { font-size: 13.5px; color: #B9CADB; line-height: 1.7; }
.iso-fig { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r-lg); padding: 24px; }
.iso-fig img, .iso-fig svg { width: 100%; height: auto; }
.iso-note { margin-top: 26px; font-size: 13px; color: #B9CADB; text-align: center; }

/* flow (導入の流れ) */
.flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; } /* 2026-09-09: 6ステップ。間隔を24pxに広げて矢印を大きく */
.flow-item { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md); padding: 22px 12px; text-align: center; position: relative; }
.flow-item .n { font-size: 12px; font-weight: 800; color: var(--c-teal-deep); letter-spacing: .12em; }
.flow-item h3 { font-size: 14.5px; color: var(--c-navy); font-weight: 800; margin: 8px 0 6px; }
.flow-item p { font-size: 13px; color: var(--c-muted); }
.flow-item:not(:last-child)::after { content: ""; position: absolute; right: -18px; top: 50%; width: 12px; height: 12px; border-top: 2.5px solid var(--c-teal); border-right: 2.5px solid var(--c-teal); transform: translateY(-50%) rotate(45deg); } /* 矢印 8px→12px、間隔24pxの中央に */

/* app features */
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.app-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.shot { background: var(--c-mint-2); border: 1px solid var(--c-line); border-radius: 18px; aspect-ratio: 9 / 16; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.shot svg { width: 100%; height: 100%; }
.shot-caption { text-align: center; font-size: 12.5px; color: var(--c-muted); margin-top: 8px; }
.feature-list { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .ic { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--c-mint); display: flex; align-items: center; justify-content: center; color: var(--c-teal-deep); }
.feature-list .ic svg { width: 20px; height: 20px; }
.feature-list b { display: block; font-size: 15.5px; color: var(--c-navy); }
.feature-list span { font-size: 14px; color: var(--c-muted); }

/* adopters + voice */
.adopters { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; }
.adopter { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md); padding: 18px 22px; min-width: 320px; box-shadow: var(--shadow-sm); }
.adopter .ic { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--c-mint); display: flex; align-items: center; justify-content: center; color: var(--c-teal-deep); }
.adopter .ic svg { width: 24px; height: 24px; }
.adopter b { display: block; font-size: 16px; color: var(--c-navy); }
.adopter span { font-size: 13px; color: var(--c-muted); }
.adopters-note { text-align: center; font-size: 12.5px; color: var(--c-muted); margin-top: 18px; }
.voice { max-width: 820px; margin: 36px auto 0; background: var(--c-mint-2); border: 1px solid #BFEAE7; border-radius: var(--r-lg); padding: 36px 40px; position: relative; }
.voice::before { content: "“"; position: absolute; left: 28px; top: 8px; font-size: 64px; line-height: 1; color: var(--c-teal); opacity: .45; font-weight: 800; }
.voice blockquote { font-size: 16px; line-height: 2; color: var(--c-ink); padding-left: 8px; }
.voice footer { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding-top: 18px; border-top: 1px solid #BFEAE7; }
.voice footer b { display: block; font-size: 14.5px; color: var(--c-navy); }
.voice footer span { font-size: 12.5px; color: var(--c-muted); }
.voice .status { margin-left: auto; font-size: 11.5px; font-weight: 700; color: var(--c-warn); background: var(--c-warn-bg); border: 1px solid #FBD5B5; padding: 4px 10px; border-radius: var(--r-pill); }

/* mission (company) */
.company-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.mission { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md); padding: 32px; box-shadow: var(--shadow-sm); }
.mission h3 { font-size: 21px; color: var(--c-navy); font-weight: 800; line-height: 1.5; margin-bottom: 14px; }
.mission p { font-size: 14.5px; color: var(--c-muted); }
.mission .textlink { display: inline-block; margin-top: 18px; font-size: 14.5px; }

/* guide page(利用者向け)specific */
/* FVのグリッドは両ページ共通(.hero-inner の 1.02fr .98fr)。
   以前あった .p-hero の 1fr/.9fr 指定は、右カラム幅=イラストの大きさと位置が
   医療機関向けとずれる原因だったので削除した(医療機関向けに統一。Yuhei指示 2026-09-09) */

/* 6) Utilities ----------------------------------------------------------- */
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mt-56 { margin-top: 56px; }
.muted { color: var(--c-muted); }
.small { font-size: 13px; }
.mobile-cta { display: none; }

/* reveal on scroll (JSが .js を付けた時だけ動く。reduced-motionでは無効) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s cubic-bezier(.2, .7, .2, 1), transform .6s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn, .support-fab { transition: none; }
  .mobile-cta { transition: none; }
}

/* 7) Responsive ---------------------------------------------------------- */
@media (max-width: 1180px) {
  .nav-links { display: none; }
  .nav-links.is-open { max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; display: flex; position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 18px 18px; gap: 2px; border-bottom: 1px solid var(--c-line); box-shadow: var(--shadow-md); }
  .nav-links.is-open a { padding: 13px 10px; font-size: 16px; border-radius: var(--r-sm); white-space: normal; }
  .nav-links.is-open a::after { display: none; }
  .nav-links.is-open a:hover { background: var(--c-mint-2); }
  .hamb { display: flex; }
}
@media (max-width: 1024px) {
  .flow { grid-template-columns: repeat(3, 1fr); }
  .flow-item:nth-child(3)::after { display: none; }
}
@media (max-width: 900px) {
  :root { --sec-y: 60px; --gutter: 20px; }
  .aud-btn { padding: 8.8px 12px 7.2px; font-size: 13px; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; padding-bottom: 18px; } /* 2026-09-09: 下端の余白を CTA→注記 の間隔(18px)にそろえる */
  .hero-visual { order: -1; max-width: 420px; margin: 0 auto; }
  /* 1カラム時は DOM 順(テキスト→イラスト→CTA→ストア)に戻し、イラストだけ先頭へ */
  .hero-right { display: contents; }
  .hero-text, .hero-visual, .hero-stores { grid-column: 1; grid-row: auto; }
  .hero-stores { margin-top: -10px; margin-bottom: 0; } /* grid gap 28px - 10px = 18px。CTA→注記→ストアバッジ→セクション下端 を等間隔(18px)に */
  /* 1カラム時はイラストが自身の枠内で中央寄せになるため、光学中心の補正は入れない */
  .hero-stores .stores { width: auto; margin-left: 0; flex-wrap: wrap; gap: 16px; justify-content: center; }
  .hero h1 { font-size: clamp(27px, 7vw, 38px); }
  .hero .sub { font-size: 16px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .feature-cta .btn { display: block; width: 100%; text-align: center; } /* 「アプリでできること」のCTAをFVと同じ全幅に */
.grid--3, .steps, .steps--6, .iso, .app-grid, .company-grid { grid-template-columns: 1fr; }
.head + .grid, .head + .steps, .head + .flow { margin-top: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 26px 18px; border-radius: var(--r-md); }
  .form-submit .btn { min-width: 0; width: 100%; }
  .foot-top { flex-direction: column; gap: 26px; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow-item::after { display: none !important; }
  .voice { padding: 28px 22px; }
  .adopter { min-width: 0; width: 100%; }
  .card { padding: 24px 20px; }
  /* 下部固定CTA: 帯は上へ向かって透明になるグラデーション、ボタン自体も不透明度80%で背景がうっすら透ける。
     罫線とベタ塗りをやめてコンテンツを切らないようにした(Yuhei指示 2026-09-09)。
     backdrop-filter は帯全体にかけると透明部分との境目が線として見えるため、ボタンにだけかける。 */
  .mobile-cta { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; padding: 26px 16px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .55) 30%, rgba(255, 255, 255, .88) 68%, rgba(255, 255, 255, .95) 100%); border-top: 0; transition: transform .28s cubic-bezier(.2, .7, .2, 1), opacity .28s cubic-bezier(.2, .7, .2, 1); }
  .mobile-cta .btn { flex: 1; padding: 14px; }
  .mobile-cta .btn--primary { background: var(--c-teal-deep); box-shadow: 0 10px 26px -14px rgba(20, 53, 107, .5); } /* A3: 白文字のコントラスト 5.20:1(半透明 .8 は 3.6:1 で AA 未達だった) */
  .mobile-cta .btn--primary:active { background: #00625E; }
  /* FVのCTAが見えているあいだは固定を解除(下へ引っ込める) */
  .mobile-cta.is-parked { transform: translateY(calc(100% + 16px)); opacity: 0; pointer-events: none; }
  .mobile-cta[hidden] { display: none; } /* A1: アニメーション後に hidden + inert を付け、Tab 順から外す */
  .support-fab { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .support-panel { bottom: calc(134px + env(safe-area-inset-bottom)); max-height: calc(100dvh - 154px - env(safe-area-inset-bottom)); }
  /* 固定CTAが引っ込んだ後(html.cta-parked)はサポートボタンを最下部へ */
  .cta-parked .support-fab { bottom: calc(20px + env(safe-area-inset-bottom)); }
  .cta-parked .support-panel { bottom: calc(78px + env(safe-area-inset-bottom)); max-height: calc(100dvh - 98px - env(safe-area-inset-bottom)); }
}
@media (max-width: 520px) {
  .flow { grid-template-columns: 1fr; }
  .title { text-wrap: balance; font-size: 24px; }
  .app-shots { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .def-table th, .def-table td { display: block; width: 100%; }
  .def-table th { padding-bottom: 2px; border-bottom: 0; font-size: 12.5px; }
  .def-table td { padding-top: 4px; }
  .aud-btn .aud-lg { display: none; }
  .aud-btn .aud-sm { display: inline; }
}

/* legal pages (利用規約 / プライバシーポリシー) */
.legal { max-width: 800px; margin: 0 auto; padding: 56px var(--gutter) 88px; }
.legal h1 { font-size: clamp(26px, 3.2vw, 34px); color: var(--c-navy); font-weight: 800; line-height: 1.4; }
.legal .legal-meta { color: var(--c-muted); font-size: 13.5px; margin-top: 10px; }
.legal .legal-intro { margin-top: 26px; }
.legal h2 { font-size: 18px; color: var(--c-navy); font-weight: 800; margin: 40px 0 12px; padding-top: 24px; border-top: 1px solid var(--c-line); line-height: 1.5; }
.legal p, .legal li { font-size: 15px; line-height: 1.95; }
.legal p + p { margin-top: 10px; }
.legal ol { list-style: decimal; padding-left: 1.6em; margin-top: 8px; }
.legal ol ol { list-style: decimal; padding-left: 1.6em; margin-top: 6px; }
.legal ol li + li { margin-top: 6px; }
.legal .legal-contact { background: var(--c-bg-soft); border: 1px solid var(--c-line); border-radius: var(--r-md); padding: 20px 22px; margin-top: 12px; }
.legal .legal-contact dt { font-weight: 700; color: var(--c-navy); font-size: 14px; margin-top: 8px; }
.legal .legal-contact dd { font-size: 15px; }
.legal a { color: var(--c-teal-deep); text-decoration: underline; text-underline-offset: 3px; }
.legal .back { display: inline-block; margin-top: 40px; }
.crumbs { font-size: 13px; color: var(--c-muted); margin-bottom: 18px; }
.crumbs a { color: var(--c-teal-deep); text-decoration: underline; }

/* PC幅のみ有効な改行(日本語の1文字残り回避)。900px = hero/grid が1カラム化する既存ブレークポイント */
.br-lg { display: inline; }
@media (max-width: 900px) { .br-lg { display: none; } }

/* 日本語の語句は一まとまりにし、狭い画面では自然に折り返す */
.phrase { display: inline-block; max-width: 100%; }
.hero-text, .hero-visual, .app-grid > *, .company-grid > *, .iso > *, .feature-list li > div { min-width: 0; }
@media (max-width: 520px) {
  .nav { gap: 8px; }
  .nav-right { gap: 4px; }
  .brand img { height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media print {
  .js .reveal { opacity: 1; transform: none; }
  .header, .mobile-cta, .support-fab, .support-panel { display: none; }
  body { padding-bottom: 0; }
}

@media (max-width: 1180px) {
  html:not(.js) .nav { height: auto; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
  html:not(.js) .nav-links { display: flex; flex-wrap: wrap; order: 3; flex-basis: 100%; }
  html:not(.js) .hamb { display: none; }
}
@media (max-width: 360px) {
  .header .wrap { padding-left: 12px; padding-right: 12px; }
  .brand img { height: 28px; }
  /* 2026-09-10 A1: 320px でロゴ・切替ボタン・メニューを1行に収める(利用者向けが約14pxはみ出していた) */
  .aud-btn { padding: 7.8px 8px 6.2px; font-size: 12px; white-space: nowrap; }
  .hamb { min-width: 40px; padding: 8px 6px; }
}
