/* NOTsha freee アプリ（連携ページ・ヘルプ・法的表記）共通スタイル
   正本: NOTsha の LP（https://notsha.co.jp/kenshin/ ・ /mimamori/）の実際の CSS と、Figma「NOTsha-UIUX」のトークン。
   - ブランドイエロー #ffe224（ロゴの矢印実測）＋インク #101820。主ボタンはインク、副ボタンは白
   - 角丸 4px（LP の --r）。影は使わない（ボタンの下だけ LP と同じ 2px の線影）
   - 書体 Noto Sans JP。見出しは 900 の太さ
   - 文字のコントラストは AA（#4a5560 は白の上 7.6:1）
   - 8pt グリッド・タップ 44px 以上 */
:root {
  --c1: #d6e3ff; --c1-line: #416fce;   /* 青の面と文字（LP の c1） */
  --c2: #ffe224;                       /* ブランドイエロー */
  --c2-weak: #fff9d6;
  --ink: #101820; --sub: #4a5560; --line: #e3e6ea; --paper: #f6f7f9;
  --ok: #1e7b34; --ok-bg: #ecf7ef; --warn: #9a6b00; --warn-bg: #fdf6e3; --bad: #c0392b; --bad-bg: #fdeeee;
  --r: 4px; --maxw: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; background: #fff; color: var(--ink); font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif; font-size: 16px; line-height: 1.85; -webkit-font-smoothing: antialiased; }
a { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.hidden { display: none !important; }

/* ── ヘッダー（LP の .hd と同じ）──────────────────────────── */
header.top { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
header.top .wrap { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 13px; }
.brand img { display: block; height: 34px; width: auto; }
.brand .sub { padding-left: 10px; border-left: 1px solid var(--line); color: var(--sub); white-space: nowrap; }
header.top nav { display: flex; align-items: center; gap: 8px; }
header.top nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 14px; font-weight: 700; text-decoration: none; color: var(--ink); border-radius: var(--r); }
header.top nav a:hover { background: var(--paper); }
header.top nav a.cta { background: var(--ink); color: #fff; padding: 0 18px; letter-spacing: .04em; }
header.top nav a.cta:hover { background: #2a3540; }

/* ── ヒーロー（LP の .hero。イエローに透かし文字）────────── */
.hero { position: relative; background: var(--c2); color: var(--ink); overflow: hidden; }
.hero-wm { position: absolute; inset: -4% -6% -8% -6%; z-index: 0; font-size: 150px; font-weight: 900; line-height: .92; letter-spacing: .01em; color: rgba(16,24,32,.07); white-space: pre-wrap; word-break: break-all; overflow: hidden; pointer-events: none; user-select: none; }
.hero-in { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 64px 20px 56px; }
.hero-small { display: inline-block; padding: 8px 20px; background: rgba(255,255,255,.94); border-radius: 999px; font-size: 18px; font-weight: 900; letter-spacing: .04em; }
.hero-flag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; background: var(--ink); color: #fff; border-radius: var(--r); font-size: 13px; font-weight: 900; letter-spacing: .04em; margin-right: 8px; vertical-align: middle; }
.hero h1, .hero-h1 { margin: 16px 0 0; font-size: 76px; font-weight: 900; line-height: 1.05; letter-spacing: -.02em; }
.hero .lead, .hero-lead { margin: 18px 0 0; max-width: 660px; font-size: 16px; font-weight: 700; line-height: 1.9; color: var(--ink); }
.hero-price { display: flex; align-items: flex-end; gap: 6px; margin: 28px 0 0; white-space: nowrap; }
.hero-price i { font-style: normal; font-size: 72px; font-weight: 900; line-height: .9; letter-spacing: -.02em; }
.hero-price b { font-size: 24px; font-weight: 900; }
.hero-price small { font-size: 14px; font-weight: 700; margin-left: 10px; padding-bottom: 6px; }
.hero-note { margin: 12px 0 0; font-size: 13px; font-weight: 700; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 0; }

/* ── ボタン（LP の .btn）──────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 28px; border-radius: var(--r); font-size: 15px; font-weight: 900; letter-spacing: .06em; text-decoration: none; border: none; cursor: pointer; font-family: inherit; line-height: 1.4; }
.btn svg { width: 18px; height: 12px; flex: none; }
.btn.primary, .btn.navy, .btn-dark { background: var(--ink); color: #fff; box-shadow: 0 2px 0 rgba(16,24,32,.3); }
.btn.primary:hover, .btn.navy:hover, .btn-dark:hover { background: #2a3540; }
.btn.ghost, .btn-white { background: #fff; color: var(--ink); box-shadow: 0 2px 0 rgba(16,24,32,.14); border: 1px solid var(--line); }
.btn.ghost:hover, .btn-white:hover { background: #f4f5f6; }
.btn.yellow { background: var(--c2); color: var(--ink); box-shadow: 0 2px 0 rgba(16,24,32,.2); }
.btn[disabled], .btn.disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }

/* ── セクション（LP の .sec）──────────────────────────── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px 64px; }
main.wrap > h2:first-child, main.wrap > .sec-head:first-child { margin-top: 56px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 900; letter-spacing: .16em; color: var(--sub); }
h1 { font-size: 34px; line-height: 1.35; font-weight: 900; margin: 40px 0 8px; letter-spacing: -.01em; }
h2 { font-size: 30px; font-weight: 900; line-height: 1.35; letter-spacing: -.01em; margin: 56px 0 16px; }
h3 { font-size: 18px; font-weight: 900; margin: 24px 0 8px; }
p { margin: 0 0 12px; }
.lead { font-size: 16px; color: var(--sub); font-weight: 500; }

/* ── カード ─────────────────────────────────────────── */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; margin: 16px 0; }
.card.accent, .price-card { border: 2px solid var(--ink); }
.card h3:first-child { margin-top: 0; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid .card { margin: 0; }
.card .num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--c2); font-weight: 900; margin-bottom: 8px; }

/* ── 価格 ──────────────────────────────────────────── */
.price { font-size: 44px; font-weight: 900; color: var(--ink); letter-spacing: -.02em; line-height: 1.1; }
.price small { font-size: 14px; font-weight: 700; color: var(--sub); margin-left: 8px; letter-spacing: 0; }
.price-terms { margin: 12px 0 0; padding: 10px 14px; background: var(--paper); border-radius: var(--r); font-size: 13px; line-height: 1.85; color: var(--sub); }

/* ── タグ・お知らせ ─────────────────────────────────── */
.tag { display: inline-block; font-size: 12px; font-weight: 900; padding: 3px 10px; border-radius: var(--r); background: var(--ink); color: #fff; letter-spacing: .04em; }
.tag.yellow { background: var(--c2); color: var(--ink); }
.note { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--ink); border-radius: var(--r); padding: 12px 16px; margin: 12px 0; font-size: 15px; }
.note.ok { border-left-color: var(--ok); background: var(--ok-bg); }
.note.warn { border-left-color: var(--warn); background: var(--warn-bg); }
.note.ng { border-left-color: var(--bad); background: var(--bad-bg); }

/* ── 表 ────────────────────────────────────────────── */
table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 15px; background: #fff; }
th, td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
th { background: var(--paper); font-weight: 900; }
thead th { text-align: center; }

/* ── 手順 ──────────────────────────────────────────── */
ol, ul { padding-left: 1.4em; margin: 0 0 12px; }
li { margin: 6px 0; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { position: relative; padding-left: 48px; margin: 16px 0; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--c2); color: var(--ink); font-weight: 900; display: flex; align-items: center; justify-content: center; }
.shot { border: 1px solid var(--line); border-radius: var(--r); max-width: 100%; display: block; margin: 8px 0 4px; }
.cap { font-size: 13px; color: var(--sub); margin-bottom: 12px; }

/* ── フォーム ──────────────────────────────────────── */
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.field { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; }
.field label { font-size: 14px; font-weight: 700; }
.field input, .field select { min-height: 48px; border: 1px solid #c9ced4; border-radius: var(--r); padding: 0 12px; font-size: 16px; font-family: inherit; }
.radio { display: flex; gap: 12px; flex-wrap: wrap; margin: 8px 0; }
.radio label { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border: 1px solid #c9ced4; border-radius: var(--r); background: #fff; cursor: pointer; font-weight: 700; }
.radio label:has(input:checked) { border: 2px solid var(--ink); background: var(--c2-weak); }
.radio input { width: 18px; height: 18px; accent-color: var(--ink); }
.kv { display: grid; grid-template-columns: 9em 1fr; gap: 8px 16px; font-size: 15px; margin: 0; }
.kv dt { color: var(--sub); font-weight: 700; } .kv dd { margin: 0; }

/* ── フッター ──────────────────────────────────────── */
footer { border-top: 1px solid var(--line); margin-top: 56px; padding-top: 20px; font-size: 13px; color: var(--sub); display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
footer img { height: 22px; width: auto; margin-right: 8px; }
footer a { color: var(--sub); }

@media (max-width: 720px) {
  header.top nav a:not(.cta) { display: none; }
  .brand .sub { display: none; }
  .brand img { height: 28px; }
  .hero-wm { font-size: 84px; }
  .hero-in { padding: 44px 16px 40px; }
  .hero h1, .hero-h1 { font-size: 44px; }
  .hero-price i { font-size: 52px; }
  .hero-price { flex-wrap: wrap; }
  .hero-price small { flex-basis: 100%; margin-left: 0; padding-bottom: 0; white-space: normal; }
  h1 { font-size: 26px; } h2 { font-size: 24px; }
  .wrap { padding: 0 16px 48px; }
  .kv { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .price { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* 調整（2026-10-22 目視） */
header.top nav a.cta { white-space: nowrap; }
.card .num + h3 { margin-top: 4px; }
.card .num { display: flex; }
@media (max-width: 720px) {
  header.top nav a.cta { padding: 0 12px; font-size: 13px; min-height: 40px; }
}

/* ═════════════════════════════════════════════════════════════════════
   アプリ画面の見た目（2026-10-22 殿「LP とは区分を少しつけたい」）
   LP（notsha.co.jp）は全面イエロー＋巨大見出しの「売る」ページ。こちらは freee と連携して使う「アプリ」なので、
   Figma NOTsha-UIUX のアプリ用トークンに寄せる: 地色 #f1f1f1・白カード角丸14・ボタン h44 角丸10・影なし。
   ブランド（ロゴ・イエロー #ffe224・黒）は共通。イエローは「連携アプリ」の目印と現在の手順だけに使う。
   ═════════════════════════════════════════════════════════════════════ */
:root { --app-bg: #f1f1f1; --app-line: #e5e5e5; --app-muted: #646464; --r-card: 14px; --r-btn: 10px; }
body { background: var(--app-bg); }
header.top { border-bottom-color: var(--app-line); }
.brand .sub { display: inline-flex; align-items: center; gap: 6px; border-left: 0; padding-left: 0; color: var(--ink); }
.brand .sub::before { content: "連携アプリ"; display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--c2); color: #000; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.brand .sub { font-size: 0; } /* 文字は ::before のバッジだけ見せる（読み上げは alt と title で補う） */
header.top nav a.cta { border-radius: var(--r-btn); background: #000; }

/* ヒーロー → 白い角丸パネル（全面イエローと透かしは使わない） */
.hero { background: transparent; overflow: visible; }
.hero-wm { display: none; }
.hero-in { max-width: var(--maxw); margin: 24px auto 0; padding: 32px 32px 28px; background: #fff; border: 1px solid var(--app-line); border-radius: var(--r-card); }
.hero h1, .hero-h1 { font-size: 36px; font-weight: 700; line-height: 1.3; letter-spacing: 0; margin-top: 12px; }
.hero .lead { font-weight: 500; color: var(--sub); font-size: 15px; }
.hero-flag { background: var(--c2); color: #000; border-radius: 999px; font-weight: 700; padding: 4px 12px; font-size: 12px; }
.hero-small { background: var(--app-bg); font-size: 13px; font-weight: 700; padding: 4px 12px; }
.hero-price { margin-top: 20px; }
.hero-price i { font-size: 44px; font-weight: 700; }
.hero-price b { font-size: 18px; font-weight: 700; }
.hero-price small { color: var(--sub); }
.hero-note { color: var(--sub); font-weight: 500; }
.hero-cta { margin-top: 20px; }

/* 手順の帯（アプリらしさ。いまの手順だけイエロー） */
.flow { display: flex; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; flex-wrap: wrap; }
.flow li { margin: 0; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--app-bg); font-size: 13px; font-weight: 700; color: var(--app-muted); }
.flow li b { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: var(--app-muted); font-size: 12px; }
.flow li.now { background: var(--c2); color: #000; }
.flow li.now b { background: #000; color: #fff; }
.flow li.done { color: var(--ink); }
.flow li.done b { background: var(--ink); color: #fff; }

/* ボタン → アプリ用（h44・角丸10・影なし） */
.btn { min-height: 44px; border-radius: var(--r-btn); padding: 10px 20px; font-size: 14px; font-weight: 700; letter-spacing: .02em; box-shadow: none !important; }
.btn.primary, .btn.navy, .btn-dark { background: #000; }
.btn.primary:hover, .btn.navy:hover, .btn-dark:hover { background: #1a1a1a; }
.btn.ghost, .btn-white { background: #f5f5f5; border: 0; color: #171717; }
.btn.ghost:hover, .btn-white:hover { background: #ebebeb; }

/* セクション・カード → 白カード角丸14 */
.wrap { padding-top: 8px; }
h1 { font-size: 28px; font-weight: 700; }
h2 { font-size: 20px; font-weight: 700; margin: 40px 0 12px; }
h3 { font-size: 16px; font-weight: 700; }
.card { border-color: var(--app-line); border-radius: var(--r-card); }
.card.accent, .price-card { border: 1px solid var(--app-line); }
.card .num { width: 28px; height: 28px; font-size: 13px; }
.price { font-size: 36px; font-weight: 700; }
.price-terms { background: var(--app-bg); border-radius: var(--r-btn); }
.note { border-radius: var(--r-btn); }
table { border-radius: var(--r-btn); overflow: hidden; }
th { background: #fafafa; }
.steps li::before { background: var(--app-bg); }
.radio label { border-radius: var(--r-btn); }
.field input, .field select { border-radius: var(--r-btn); }
.tag { border-radius: 999px; font-weight: 700; }
footer { border-top-color: var(--app-line); }
@media (max-width: 720px) {
  .hero-in { margin: 12px 12px 0; padding: 24px 16px 20px; }
  .hero h1, .hero-h1 { font-size: 28px; }
  .hero-price i { font-size: 36px; }
  .brand .sub::before { font-size: 10px; padding: 2px 8px; }
}
@media (max-width: 720px) { .brand .sub { display: none; } }
