@charset "utf-8";

/* ---------- 1. トークン -------------------------------------- */
:root {
  --bg:          #FFFFFF;   /* ページの地 */
  --card:        #FFFFFF;   /* カードの面 */
  --ink:         #000000;   /* on white 21.00 */
  --ink-sub:     #333333;   /* on white 12.63 */
  --ink-mute:    #666666;   /* on white  5.74 */
  --line:        #CCCCCC;   /* 細罫 */
  --line-strong: #666666;   /* 入力欄の枠 on white 5.74 */

  --brand:       #CC0000;
  --chip-bg:     #E6E6E6;
  --link:        #CC0000;

  --hero-bg:     #FFFFFF;
  --hero-fg:     #000000;
  --hero-sub:    #333333;
  --hero-note:   #666666;
  --hero-accent: #CC0000;
  --hero-rule:   #000000;

  --cta-bg:      #FFCC33;
  --cta-fg:      #000000;   /* on cta 13.94 */
  --cta-edge:    #000000;   /* 白地では黄が浮かない（1.51）ため縁で境界を担保 */

  --endcta-bg:    #FFFFFF;
  --endcta-fg:    #000000;
  --endcta-sub:   #333333;
  --endcta-accent:#CC0000;
  --endcta-rule:  #000000;
  --endcta-focus: #CC0000;

  --bar-bg:      #FFFFFF;   /* 固定ボトムバーの地 */
  --bar-fg:      #333333;

  --footer-bg:   #FFFFFF;
  --footer-fg:   #000000;
  --footer-sub:  #333333;
  --footer-link: #CC0000;

  --error:       #B3261E;   /* 機能色（装飾の赤とは別値にしている） */
  --error-bg:    #FFF5F4;
  --on-error:    #FFFFFF;
  --placeholder: #666666;
  --focus:       #CC0000;
  --focus-hero:  #CC0000;

  /* 書体 — 日本語Webフォントは使わない */
  --font-sans:
    system-ui, -apple-system,
    "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "BIZ UDPGothic", "Yu Gothic UI", "Yu Gothic", Meiryo,
    "Noto Sans JP", "Noto Sans CJK JP",
    sans-serif;

  /* 寸法 — モダン版は余白と角丸を大きく取る */
  --wrap:   720px;
  --gutter: 20px;
  --tap:    44px;
  --r-card: 16px;
  --r-btn:  12px;
  --r-chip: 999px;
  --shadow:    0 1px 2px rgba(16,19,26,.06), 0 8px 24px rgba(16,19,26,.06);
  --shadow-up: 0 -1px 0 var(--line), 0 -8px 24px rgba(16,19,26,.08);
  --bar-h:  112px;
}

/* ---------- 2. リセット -------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: anywhere;
  word-break: normal;
  line-break: strict;
}
img, video, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--link); }
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}
.hero :focus-visible   { outline-color: var(--focus-hero); }
.endcta :focus-visible { outline-color: var(--endcta-focus); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 8px; top: 8px; z-index: 100;
  padding: .65rem 1rem; background: var(--card); color: var(--ink);
  border-radius: var(--r-btn); font-weight: 700; text-decoration: none;
  transform: translateY(-200%);          /* display:none にしない */
}
.skip-link:focus { transform: translateY(0); }

.num { font-weight: 800; font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; letter-spacing: -.02em; }
.note { font-size: .875rem; color: var(--ink-mute); line-height: 1.8; }

.bullets > li,
ul.note > li { position: relative; padding-left: 1.1em; }
.bullets > li::before,
ul.note > li::before { content: "・"; position: absolute; left: 0; }
.bullets > li + li { margin-top: .25rem; }
.lead { font-size: 1.0625rem; color: var(--ink-sub); }

/* ---------- 4. ヘッダー -------------------------------------- */
.site-header {
  position: sticky; top: calc(-1 * var(--headrow-h)); z-index: 40;
  background: var(--card);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 60px;
}
.brand { display: inline-flex; align-items: center; }

.header-sns { display: flex; align-items: center; gap: .5rem; }
.header-sns a {
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--tap); height: var(--tap);          /* 指で押せる大きさを確保する */
  border-radius: var(--r-chip);
  background: var(--chip-bg); color: var(--brand);
  text-decoration: none;
}
.header-sns svg { display: block; }

/* 横スクロールのチップ型ナビ（モダン版の要素） */
.navscroll {
  background: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 6px rgb(0 0 0 / 6%);
}
:root { --nav-h: 58px; --headrow-h: 60px; }
[id] { scroll-margin-top: calc(var(--nav-h) + 8px); }
.navscroll ul {
  display: flex; gap: .5rem; overflow-x: auto; padding: .625rem 0;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.navscroll ul::-webkit-scrollbar { display: none; }
.navscroll li { flex: 0 0 auto; }
.navscroll a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 .9em;
  border: 1px solid var(--line); border-radius: var(--r-chip);
  color: var(--ink-sub); font-size: .875rem; font-weight: 700; text-decoration: none;
  white-space: nowrap;
}
.navscroll a[aria-current="page"],
.navscroll a[aria-current="true"] { border-color: var(--brand); color: var(--brand); }

@media (hover: hover) and (pointer: fine) {
  :root { --nav-h: 69px; }   /* 実測68px（1280px・Chromium、バー10px） */
  .navscroll ul { scrollbar-width: thin; scrollbar-color: #767676 transparent; }
  .navscroll ul::-webkit-scrollbar { display: block; height: 6px; }
  .navscroll ul::-webkit-scrollbar-thumb { background: #767676; border-radius: 3px; }
}

/* ---------- 5. ヒーロー -------------------------------------- */
.hero { background: var(--hero-bg); color: var(--hero-fg); padding-block: 1.75rem 2rem; }
.hero a { color: var(--hero-accent); }
.hero .lead { color: var(--hero-sub); }
.hero .note { color: var(--hero-note); }

.eyebrow {
  font-size: .6875rem; font-weight: 700; letter-spacing: .2em;
  color: var(--hero-accent); margin-bottom: .5rem;
}
.hero h1 { font-size: clamp(1.75rem, 8vw, 2.5rem); font-weight: 800; line-height: 1.24; letter-spacing: -.02em; }
.hero .lead { margin-top: .5rem; }

/* 事実チップ */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.chips li {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 .8em;
  border: 1px solid var(--hero-rule); border-radius: var(--r-chip);
  font-size: .8125rem; font-weight: 700; color: var(--hero-fg);
}

/* ---------- 6. CTA ------------------------------------------- */
.cta-btn {
  display: flex; align-items: center; justify-content: center; gap: .5em;
  width: 100%; min-height: 56px; padding: .75rem 1.25rem;
  background: var(--cta-bg); color: var(--cta-fg);
  border: 2px solid var(--cta-edge); border-radius: var(--r-btn);
  font-size: 1.0625rem; font-weight: 800; text-decoration: none;
}
.cta-btn::after { content: "→"; font-weight: 700; }
.hero .cta-btn, .endcta .cta-btn { color: var(--cta-fg); }
.cta { margin-top: 1.25rem; }
.hero .cta { display: none; }

/* ---------- 7. 固定ボトムCTAバー（モダン版の中心要素） -------- */
.bottom-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--bar-bg); box-shadow: var(--shadow-up);
  padding: .625rem var(--gutter) calc(.625rem + env(safe-area-inset-bottom, 0px));
}
.bottom-cta__inner { width: 100%; max-width: var(--wrap); margin-inline: auto; }
.bottom-cta .cta-btn { min-height: 52px; }
.bottom-cta__sub {
  display: block; margin-top: .25rem; text-align: center;
  font-size: .75rem; color: var(--bar-fg);
}
body { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px)); }

/* ---------- 8. セクションとカード ---------------------------- */
main { display: block; }
.section { padding-block: 1.75rem; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-card); box-shadow: var(--shadow);
  padding: 1.25rem;
}
.card + .card { margin-top: 1rem; }
.section.section--doc { padding-top: 1rem; }
.hero.hero--doc { padding-bottom: 1rem; }
.card.card--plain { padding-top: 1.25rem; }
@media (min-width: 600px) {
  .card.card--plain { padding-top: 1.5rem; }
}
h2 { font-size: clamp(1.25rem, 5.4vw, 1.5rem); font-weight: 800; line-height: 1.4; letter-spacing: -.01em; }
h3 { font-size: 1rem; font-weight: 700; line-height: 1.7; margin-top: 1.25rem; }
.card h2 + p, .card h3 + p, .card h2 + ul, .card h3 + ul { margin-top: .75rem; }
.card p + p, .card p + ul, .card p + dl, .card ul + p, .card dl + p, .card figure + p { margin-top: 1rem; }
.card figure, .card picture { margin-top: 1rem; display: block; }
.card img { border-radius: var(--r-btn); }

/* 時系列（順序が情報を持つ箇所だけ） */
.timeline { margin-top: 1rem; border-left: 2px solid var(--line); }
.timeline > li { position: relative; padding: .125rem 0 1.125rem 1rem; }
.timeline > li::before {
  content: ""; position: absolute; left: -5px; top: .8em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
}
.timeline time { color: var(--brand); font-weight: 800; margin-right: .5em; }
.timeline > li:last-child { padding-bottom: 0; }

/* 料金 */
.breakdown { margin-top: 1rem; }
.breakdown > div { display: flex; justify-content: space-between; gap: 1rem; padding-block: .625rem; border-bottom: 1px solid var(--line); }
.breakdown > div:first-child { border-top: 1px solid var(--line); }
.breakdown dt { font-size: .9375rem; }
.breakdown .dt-note {
  display: block; margin-top: .25rem;
  font-size: .8125rem; line-height: 1.7; font-weight: 400;
  color: var(--ink-mute);
}

.breakdown dd { margin: 0; white-space: nowrap; }

.profile { margin-top: 1rem; line-height: 1.7; }
.profile > div { display: flex; gap: .75rem; padding-block: 0; }
.profile dt { flex: 0 0 7.5em; font-weight: 700; }
.profile dd { margin: 0; }

/* NAP */
.nap__name { font-weight: 800; }
.map-figure { margin-top: 1rem; }
.map-embed {
  aspect-ratio: 1 / 1; border-radius: var(--r-btn); overflow: hidden;
  border: 1px solid var(--line-strong); background: var(--chip-bg);
}
@media (min-width: 600px) { .map-embed { aspect-ratio: 4 / 3; } }
.map-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-figure figcaption { margin-top: .625rem; font-size: .875rem; }

.gcal {
  margin-top: 1rem; height: 520px;
  border: 1px solid var(--line-strong); border-radius: var(--r-btn);
  background: var(--card); overflow: hidden;
}
.gcal__frame { display: block; width: 100%; height: 100%; border: 0; }
@media (min-width: 600px) { .gcal { height: 600px; } }

/* FAQ はアコーディオンにする（モダン版の要素） */
.faq > li + li { margin-top: .5rem; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--card); }
.faq summary {
  display: block; position: relative;
  min-height: var(--tap); padding: .75rem 2.75rem .75rem 1rem;
  font-weight: 700; line-height: 1.7; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "＋"; color: var(--brand); font-weight: 800;
  position: absolute; right: 1rem; top: .75rem;
}
.faq details[open] summary::after { content: "－"; }
.faq .faq__a { padding: 0 1rem 1rem; color: var(--ink-sub); }

/* 末尾のCTAブロック */
.endcta {
  background: var(--endcta-bg); color: var(--endcta-fg);
  padding-block: 2rem; border-top: 4px solid var(--endcta-rule);
}
.endcta a { color: var(--endcta-accent); }
.endcta .lead { color: var(--endcta-sub); }
.endcta .alt-cta > li { border-bottom-color: var(--endcta-rule); }

/* ---------- 9. フッター -------------------------------------- */
.site-footer { background: var(--footer-bg); color: var(--footer-fg); padding-block: 2rem; font-size: .875rem; }
.site-footer a { color: var(--footer-link); }
.site-footer .nap { margin-top: 1rem; color: var(--footer-sub); }
.footer-sns ul { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.footer-sns a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 700; }

.footer-nav { margin-top: 1.25rem; }
.footer-nav li + li { margin-top: .25rem; }
.footer-nav a { display: inline-flex; align-items: center; min-height: var(--tap); }
.copyright { margin-top: 1rem; color: var(--footer-sub); }

/* ---------- 10. フォーム ------------------------------------- */
.field + .field { margin-top: 1.25rem; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: .375rem; }
.req { display: inline-block; margin-left: .5em; padding: 0 .45em; border-radius: 4px; background: var(--error); color: var(--on-error); font-size: .6875rem; font-weight: 700; }
.req[hidden] { display: none; }
.field input[type="text"], .field input[type="email"], .field input[type="date"],
.field input[type="number"], .field select, .field textarea {
  width: 100%; min-height: var(--tap); padding: .625rem .75rem;
  border: 1px solid var(--line-strong); border-radius: var(--r-btn);
  background: var(--card); color: var(--ink); font: inherit;
}
.field textarea { min-height: 7rem; resize: vertical; }
.field select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-sub) 50%),
                    linear-gradient(135deg, var(--ink-sub) 50%, transparent 50%);
  background-position: right 1.15rem center, right .9rem center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
/* 未選択のあいだは、他の欄のプレースホルダと同じ濃さにする */
.field select:has(option[value=""]:checked) { color: var(--placeholder); }
::placeholder { color: var(--placeholder); opacity: 1; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.hint { font-size: .8125rem; color: var(--ink-mute); margin-top: .25rem; }
.error { display: block; margin-top: .375rem; color: var(--error); font-size: .875rem; font-weight: 700; }
fieldset { margin: 0; padding: 0; border: 0; }
.check-row { display: flex; align-items: center; gap: .625rem; min-height: var(--tap); }
.check-row input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--brand); }
.check-row label { margin: 0; font-weight: 400; }
.form-errors { border: 2px solid var(--error); background: var(--error-bg); border-radius: var(--r-btn); padding: 1rem; margin-bottom: 1.25rem; }
.form-errors h3 { margin-top: 0; font-size: 1rem; color: var(--error); }
.form-errors ul { margin-top: .5rem; list-style: disc; padding-left: 1.25rem; }
.form-errors ul:empty { display: none; }
.form-errors li + li { margin-top: .25rem; }
.form-note { margin-bottom: 1.25rem; font-size: .875rem; color: var(--ink-mute); }
.consent { margin-top: 1.25rem; padding: 1rem; background: var(--chip-bg); border-radius: var(--r-btn); }
.consent .check-row { align-items: flex-start; min-height: 0; }
.consent .check-row input { margin-top: .2rem; }
.consent .check-row label { font-weight: 700; }
.consent .check-row input[aria-invalid="true"] { outline: 2px solid var(--error); outline-offset: 2px; }
.consent .error { margin-top: .5rem; }
.alt-cta > li { padding-block: .75rem; border-bottom: 1px solid var(--hero-rule); }
.alt-cta > li:first-child { border-top: 1px solid var(--hero-rule); }
button.cta-btn { cursor: pointer; font-family: inherit; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 11. 加算のみのブレークポイント -------------------- */
@media (min-width: 600px) {
  :root { --gutter: 24px; }
  .section { padding-block: 2.25rem; }
  .card { padding: 1.5rem; }
  .hero { padding-block: 2.5rem 2.75rem; }
  .chips li { min-height: 36px; }
}
@media (min-width: 900px) {
  .hero { padding-block: 3.25rem 3.5rem; }
  .section { padding-block: 3rem; }
  /* 画面が広い端末では固定バーを出さない（本文内のCTAで足りる） */
  .bottom-cta { display: none; }
  body { padding-bottom: 0; }
  .hero .cta { display: block; }
}

/* ---------- 12. 動きを減らす設定を尊重する -------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- 初期表示の画像スペース ---------------------------- */
.hero-media { display: block; margin-top: 1.125rem; }
.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--r-btn);
  background: var(--chip-bg);      /* 読み込み前・読み込み失敗時の面 */
}
@media (min-width: 600px) {
  .hero-media { margin-top: 1.25rem; }
}

/* ---------- 配色の上書き -------------------------------------- */
.hero { border-top: 8px solid #CC0000; }
.card { padding-top: 0; overflow: hidden; }
.card h2 {
  background: #E6E6E6; color: #000000;
  border-left: 6px solid #CC0000;
  border-bottom: 2px solid #CC0000;
  margin: 0 -1.25rem 1rem; padding: .8rem 1.25rem;
}
.chips li { border-color: #000000; color: #000000; }
.site-footer { border-top: 8px solid #CC0000; }

/* グレーの面の上は黒文字にする（赤 #CC0000 は 3.67 で不足するため） */
.header-sns a { color: #000000; }

/* 赤 #FF3333 は非文字の装飾にだけ使う（白地に3.64） */
.timeline > li::before { background: #FF3333; }

/* カレンダー枠の罫は #666666（白地に5.74） */
.gcal { border-color: #666666; }

/* ---------- 13. 文書ページ（/terms/ /privacy/）-------- */

.doc-meta {
  display: flex; flex-wrap: wrap; gap: .25rem 1.25rem;
  margin-top: 1rem; font-size: .8125rem; line-height: 1.9;
}
.doc-meta > div { display: flex; align-items: baseline; gap: .5rem; }
.doc-meta dt { font-weight: 700; }
.doc-meta dd { margin: 0; }

.doc-list { margin-top: .75rem; }
.doc-list > div + div { margin-top: .75rem; }
.doc-list dt { font-weight: 700; font-size: .875rem; color: var(--ink-sub); }
.doc-list dd { margin: .125rem 0 0; }
@media (min-width: 600px) {
  .doc-list > div { display: flex; gap: 1rem; }
  .doc-list dt { flex: 0 0 4.5em; font-size: 1rem; color: var(--ink); }
  .doc-list dd { margin-top: 0; }
}
.doc-list.doc-list--stack > div { display: block; }
.doc-list.doc-list--stack dt { font-size: .875rem; color: var(--ink-sub); }
.doc-list.doc-list--stack dd { margin-top: .125rem; }

ol.numbered { counter-reset: numbered; margin-top: .75rem; }
ol.numbered > li {
  position: relative; counter-increment: numbered;
  padding-left: 1.9em;
}
ol.numbered > li + li { margin-top: .5rem; }
ol.numbered > li::before {
  content: counter(numbered) ".";
  position: absolute; left: 0; top: 0;
  width: 1.6em; text-align: right;
  font-weight: 800; font-variant-numeric: tabular-nums;
  color: var(--ink-sub);
}

.print-wrap { margin-top: 1.25rem; }
.print-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 1.25rem;
  border: 1px solid var(--line-strong); border-radius: var(--r-btn);
  background: transparent; color: var(--ink);
  font-family: inherit; font-size: .9375rem; font-weight: 700;
  cursor: pointer;
}

/* ---------- 14. 印刷 ------------------------------------------ */
@media print {
  /* 操作するためのものは紙に出さない */
  .site-header, .site-footer, .skip-link,
  .print-wrap, .bottom-cta, .navscroll { display: none !important; }

  /* 画面用の地色・影・角丸を落とし、インクを使わない見た目にする */
  body { background: #FFFFFF; color: #000000; font-size: 10.5pt; }
  .hero, .card, .section, .endcta {
    background: #FFFFFF !important; color: #000000 !important;
    box-shadow: none !important; border-radius: 0 !important;
  }
  .card { border: none; padding: 0; margin-top: 1.25rem; }
  .wrap { max-width: none; padding: 0; }

  .card { break-inside: avoid; }
  h2 { break-after: avoid; }

  main a[href^="http"]::after { content: "（" attr(href) "）"; font-size: 9pt; word-break: break-all; }
}
