/* ==========================================================
   ワタシプラン スタイル
   色を変えたいときは :root の値だけ変えればOK
   ========================================================== */
:root {
  --ink: #1f3437;      /* 文字・濃い背景 */
  --paper: #f6f7f4;    /* 基本の背景 */
  --mist: #e4ebe6;     /* 薄い面 */
  --sage: #5f8676;     /* メインカラー */
  --gold: #b3862a;     /* 羅針盤の針・線のアクセント */
  --white: #ffffff;
  --line: #cfd9d3;

  --mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --gothic: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;

  --wrap: 1080px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--gothic);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 3px;
}
strong { font-weight: 700; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--white); padding: 8px 12px; z-index: 100; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 247, 244, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { text-decoration: none; color: var(--ink); line-height: 1.3; }
.logo small { display: block; font-size: 11px; color: var(--sage); letter-spacing: 0.08em; }
.logo span { font-family: var(--mincho); font-size: 22px; font-weight: 700; letter-spacing: 0.12em; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-size: 14px; }
.nav a:hover { color: var(--sage); }
.nav .nav-cta a {
  background: var(--sage); color: var(--white); padding: 10px 18px; border-radius: var(--radius);
}
.nav .nav-cta a:hover { background: var(--ink); color: var(--white); }

.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; }

@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; }
  .nav li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .nav-cta a { text-align: center; margin-top: 12px; border: 0; }
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 16px 32px; border-radius: var(--radius);
  background: var(--sage); color: var(--white); border: 2px solid var(--sage);
  transition: background .2s, color .2s;
  font-family: inherit; font-size: 16px; cursor: pointer;
}
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn.ghost { background: transparent; color: var(--sage); }
.btn.ghost:hover { background: var(--sage); color: var(--white); }

/* ---------- ヒーロー ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 104px; }
.hero .wrap { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.hero-lead { font-size: 15px; color: var(--sage); margin: 0 0 20px; }
.hero h1 {
  font-family: var(--mincho); font-weight: 600; margin: 0 0 28px;
  font-size: clamp(34px, 5.6vw, 60px); line-height: 1.45; letter-spacing: 0.08em;
}
.hero p.hero-text { max-width: 30em; margin: 0 0 40px; }
.hero-vertical {
  writing-mode: vertical-rl; font-family: var(--mincho);
  font-size: clamp(48px, 6vw, 72px); letter-spacing: 0.22em; color: var(--ink);
  line-height: 1; margin: 0; font-weight: 700;
  border-right: 2px solid var(--gold); padding-right: 20px;
}
.hero-vertical small { display: block; font-size: 15px; letter-spacing: 0.3em; color: var(--sage); font-weight: 400; margin-right: 1.2em; }

@media (max-width: 720px) {
  .hero { padding: 56px 0 72px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-vertical { writing-mode: horizontal-tb; border-right: 0; border-left: 2px solid var(--gold); padding: 0 0 0 16px; font-size: 40px; letter-spacing: 0.12em; order: -1; }
  .hero-vertical small { margin: 8px 0 0; }
}

/* ---------- セクション共通 ---------- */
section { padding: 96px 0; }
section.tint { background: var(--mist); }
section.dark { background: var(--ink); color: var(--paper); }
section.dark a { color: var(--paper); }
.sec-title {
  font-family: var(--mincho); font-weight: 600;
  font-size: clamp(24px, 3.4vw, 34px); line-height: 1.5; letter-spacing: 0.08em;
  margin: 0 0 48px;
}
.sec-title.center { text-align: center; }
@media (max-width: 720px) { section { padding: 72px 0; } .sec-title { margin-bottom: 36px; } }

/* ---------- 羅針盤（コンセプト） ---------- */
.concept { text-align: center; }
.concept h2 { font-family: var(--mincho); font-weight: 600; font-size: clamp(22px, 3vw, 30px); line-height: 1.7; margin: 0 0 32px; letter-spacing: 0.06em; }
.concept p { margin: 0 auto 1em; max-width: 32em; }
.concept .compass { font-family: var(--mincho); font-size: 1.25em; color: var(--gold); font-weight: 700; }

/* ---------- こんな方へ ---------- */
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 48px; }
.checks li { padding: 20px 0 20px 40px; border-bottom: 1px solid var(--line); position: relative; }
.checks li::before {
  content: ""; position: absolute; left: 4px; top: 28px; width: 16px; height: 9px;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg);
}

/* ---------- できること ---------- */
.services { display: grid; gap: 72px; }
.service { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.service:nth-child(even) .service-img { order: 2; }
.service-img { aspect-ratio: 3 / 2; background: var(--mist); border-radius: var(--radius); overflow: hidden; }
.service-img img { width: 100%; height: 100%; object-fit: cover; }
.service h3 { font-family: var(--mincho); font-size: 24px; font-weight: 600; margin: 0 0 16px; letter-spacing: 0.06em; }
.service p { margin: 0; }
@media (max-width: 720px) {
  .services { gap: 56px; }
  .service { grid-template-columns: 1fr; gap: 24px; }
  .service:nth-child(even) .service-img { order: 0; }
}

/* ---------- ご利用の流れ（1本の線でつなぐ） ---------- */
.flow { list-style: none; margin: 0; padding: 0; counter-reset: step; position: relative; }
.flow li { counter-increment: step; position: relative; padding: 0 0 44px 80px; }
.flow li:last-child { padding-bottom: 0; }
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 23px; top: 48px; bottom: 0; width: 2px; background: var(--gold); }
.flow li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--gold); color: var(--ink);
  font-family: var(--mincho); font-size: 20px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
section.tint .flow li::before { background: var(--mist); }
.flow h3 { font-size: 18px; margin: 8px 0 8px; }
.flow p { margin: 0; }

/* ---------- 相談事例 ---------- */
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
@media (max-width: 760px) { .cases { grid-template-columns: 1fr; } }
.case { background: var(--white); border-radius: var(--radius); padding: 32px; }
.case-who { font-weight: 700; margin: 0 0 20px; color: var(--sage); font-size: 15px; }
.case h3 { font-size: 14px; margin: 0 0 8px; }
.case ul { margin: 0 0 20px; padding-left: 1.2em; font-size: 15px; line-height: 1.8; }
.case ul:last-child { margin-bottom: 0; }
.case .after h3 { color: var(--gold); }
.case .after { border-top: 1px dashed var(--line); padding-top: 20px; }

/* ---------- 想い ---------- */
.message { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: start; }
.message-body p { margin: 0 0 1.6em; font-size: 15.5px; line-height: 2.1; }
.message-body .big { font-family: var(--mincho); font-size: 20px; line-height: 1.9; }
.message-sign { font-family: var(--mincho); font-size: 18px; margin-top: 2em; }
.message-sign small { display: block; font-family: var(--gothic); font-size: 13px; color: var(--sage); }
.profile { position: sticky; top: 100px; }
.profile-photo { aspect-ratio: 4 / 5; background: var(--mist); border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile dl { margin: 0; font-size: 14px; }
.profile dt { font-weight: 700; color: var(--sage); margin-top: 16px; }
.profile dd { margin: 4px 0 0; }
@media (max-width: 820px) {
  .message { grid-template-columns: 1fr; gap: 40px; }
  .profile { position: static; max-width: 420px; }
}

/* ---------- 料金 ---------- */
.campaign { text-align: center; color: var(--gold); font-weight: 700; margin: -24px 0 40px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 28px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--gold); position: relative; }
.plan .badge { position: absolute; top: -14px; left: 28px; background: var(--gold); color: var(--white); font-size: 13px; font-weight: 700; padding: 2px 12px; border-radius: 3px; }
.plan h3 { font-family: var(--mincho); font-size: 22px; margin: 0 0 8px; font-weight: 600; }
.plan .plan-for { font-size: 14px; color: var(--sage); margin: 0 0 20px; line-height: 1.7; }
.price { margin: 0 0 24px; }
.price .was { font-size: 13px; color: #6b7a78; text-decoration: line-through; display: block; }
.price .now { font-family: var(--mincho); font-size: 34px; font-weight: 700; letter-spacing: 0.02em; }
.price .unit { font-size: 13px; margin-left: 4px; }
.plan dl { margin: 0 0 24px; font-size: 14px; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; }
.plan dt { color: var(--sage); font-weight: 700; }
.plan dd { margin: 0; }
.plan .plan-desc { font-size: 14px; line-height: 1.8; margin: 0 0 28px; flex: 1; }
.plan .btn { text-align: center; padding: 14px; }
.themes { text-align: center; font-size: 14px; margin: 40px auto 0; max-width: 44em; color: #4a5c5a; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 24px 40px 24px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 20px; font-size: 24px; color: var(--gold); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 24px; }

/* ---------- お知らせ ---------- */
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a, .news-list .news-item { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 20px 0; color: var(--ink); text-decoration: none; }
.news-list a:hover .news-title { color: var(--sage); text-decoration: underline; }
.news-date { color: var(--sage); font-size: 14px; }
.news-empty { padding: 20px 0; color: #6b7a78; }
.more-link { text-align: right; margin-top: 16px; }
@media (max-width: 560px) { .news-list a, .news-list .news-item { grid-template-columns: 1fr; gap: 4px; } }

.article { padding: 48px 0; border-bottom: 1px solid var(--line); }
.article:first-child { padding-top: 0; }
.article h2 { font-family: var(--mincho); font-size: 24px; font-weight: 600; margin: 4px 0 20px; }
.article p { margin: 0 0 1em; }

/* ---------- お問い合わせ帯 ---------- */
.contact-band { text-align: center; }
.contact-band .sec-title { margin-bottom: 20px; }
.contact-band p { margin: 0 0 40px; }
.contact-band .btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.contact-band .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.contact-band .btn:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }
.contact-band .btn.ghost { background: transparent; color: var(--paper); }
.contact-band .btn.ghost:hover { background: var(--paper); color: var(--ink); }

/* ---------- 下層ページ ---------- */
.page-head { padding: 72px 0 48px; }
.page-head h1 { font-family: var(--mincho); font-weight: 600; font-size: clamp(28px, 4vw, 40px); margin: 0; letter-spacing: 0.08em; }
.page-head p { margin: 16px 0 0; }
.page-body { padding: 0 0 96px; }

/* ---------- フォーム ---------- */
.form { display: grid; gap: 28px; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 8px; font-size: 15px; }
.req { font-size: 12px; background: var(--gold); color: var(--white); padding: 1px 8px; border-radius: 3px; margin-left: 8px; font-weight: 700; vertical-align: 2px; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field textarea, .field select {
  width: 100%; padding: 14px 16px; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.field textarea { min-height: 180px; resize: vertical; }
.field .hint { font-size: 13px; color: #5a6b69; margin: 6px 0 0; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.choices label { font-weight: 400; display: flex; align-items: center; gap: 8px; margin: 0; }
.choices input { width: 18px; height: 18px; accent-color: var(--sage); }
.agree { font-size: 14px; }
.form .btn { justify-self: start; padding: 16px 48px; }

/* ---------- プライバシーポリシー等の本文 ---------- */
.prose h2 { font-size: 20px; margin: 48px 0 12px; }
.prose p, .prose li { font-size: 15px; }

/* ---------- フッター ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding: 48px 0 32px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; }
.site-footer a { color: var(--paper); }
.footer-brand { font-family: var(--mincho); font-size: 20px; letter-spacing: 0.12em; margin: 0 0 4px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; flex-wrap: wrap; }
.copyright { width: 100%; font-size: 12px; opacity: .7; margin: 16px 0 0; }

/* 日本語の見出しを文節で改行（対応ブラウザのみ） */
h1, h2, h3, .concept p, .hero-text { word-break: auto-phrase; text-wrap: pretty; }
@media (max-width: 560px) {
  .hero h1 { font-size: 27px; }
  .concept h2 { font-size: 20px; }
  .concept br { display: none; }
}

/* ==========================================================
   料金シミュレーション
   ========================================================== */
.sim-lead { text-align: center; margin: -24px auto 48px; max-width: 36em; }
.sim { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: start; }
.sim-questions { background: var(--white); border-radius: var(--radius); padding: 8px 36px; }
.sim-q { padding: 28px 0; border-top: 1px solid var(--line); }
.sim-q:first-child { border-top: 0; }
.sim-label { font-weight: 700; margin: 0 0 16px; display: flex; gap: 12px; align-items: baseline; }
.sim-label.small { font-size: 14px; margin-bottom: 10px; }
.sim-no { font-family: var(--mincho); color: var(--gold); letter-spacing: .1em; }

/* プランカード */
.sim-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sim-plan {
  position: relative; display: flex; flex-direction: column; gap: 4px; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 14px 16px;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.sim-plan:hover { border-color: var(--sage); }
.sim-plan input { position: absolute; opacity: 0; pointer-events: none; }
.sim-plan:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 3px; }
.sim-plan.on { border: 2px solid var(--sage); padding: 17px 13px 15px; background: #f3f7f4; transform: translateY(-3px); box-shadow: 0 10px 22px rgba(31,52,55,.1); }
.sim-rank { font-family: var(--mincho); font-size: 28px; line-height: 1.2; color: var(--sage); font-weight: 700; }
.sim-plan.on .sim-rank { color: var(--gold); }
.sim-ptitle { font-weight: 700; font-size: 15px; line-height: 1.5; }
.sim-pcatch { font-size: 12.5px; color: #5a6b69; line-height: 1.6; }
.sim-pprice { font-size: 12.5px; margin-top: 6px; line-height: 1.7; font-variant-numeric: tabular-nums; }
.sim-ptag { align-self: flex-start; font-size: 11px; font-weight: 700; color: var(--white); background: var(--gold); padding: 1px 8px; border-radius: 3px; margin-top: 6px; }

/* テーマ */
.sim-check { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.sim-check:last-child { border-bottom: 0; }
.sim-check input { width: 20px; height: 20px; accent-color: var(--sage); flex: none; }
.sim-add { margin-left: auto; font-size: 14px; color: #5a6b69; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* 回数 */
.sim-count { font-size: 15px; }
.sim-num { font-family: var(--mincho); font-size: 40px; font-weight: 700; color: var(--sage); margin-right: 4px; font-variant-numeric: tabular-nums; }
.sim-range { width: 100%; accent-color: var(--sage); margin: 8px 0 0; height: 28px; }
.sim-scale { display: flex; justify-content: space-between; font-size: 12px; color: #6b7a78; }
.sim-hint { font-size: 14px; color: #5a6b69; margin: 10px 0 0; }
.sim-hint.on { color: var(--gold); font-weight: 700; }

/* 選択ピル */
.sim-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.sim-pill { cursor: pointer; }
.sim-pill input { position: absolute; opacity: 0; pointer-events: none; }
.sim-pill span { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; font-size: 15px; transition: all .2s; }
.sim-pill:hover span { border-color: var(--sage); }
.sim-pill input:checked + span { background: var(--sage); border-color: var(--sage); color: var(--white); }
.sim-pill input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.sim-sub { margin-top: 18px; padding: 16px 18px; border-left: 2px solid var(--gold); background: var(--paper); }

/* 結果 */
.sim-result { position: sticky; top: 92px; background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 32px 30px; }
.sim-rlabel { font-size: 14px; margin: 0; opacity: .8; }
.sim-total { margin: 4px 0 0; display: flex; align-items: baseline; gap: 8px; }
.sim-yen { font-family: var(--mincho); font-size: clamp(36px, 4.4vw, 48px); font-weight: 700; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.sim-tax { font-size: 13px; opacity: .8; }
.sim-delta { height: 1.6em; margin: 0 0 12px; font-size: 14px; font-weight: 700; color: #e7c77a; opacity: 0; }
.sim-delta.minus { color: #a9d4bf; }
.sim-delta.show { animation: simDelta 1.8s ease forwards; }
@keyframes simDelta { 0% { opacity: 0; transform: translateY(4px); } 15% { opacity: 1; transform: none; } 75% { opacity: 1; } 100% { opacity: 0; } }
.sim-lines { list-style: none; margin: 0 0 20px; padding: 16px 0 0; border-top: 1px solid rgba(255,255,255,.18); font-size: 14px; }
.sim-lines li { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; line-height: 1.6; }
.sim-lines li span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.sim-lines small { opacity: .75; }
.sim-lines li.gold { color: #e7c77a; font-weight: 700; }
.sim-note { font-size: 12.5px; opacity: .8; line-height: 1.8; margin: 0 0 20px; }
.sim-cta { display: block; text-align: center; background: var(--gold); border-color: var(--gold); padding: 16px; }
.sim-cta:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }

/* スマホ下部の合計バー */
.sim-bar { display: none; }
@media (max-width: 900px) {
  .sim { grid-template-columns: 1fr; }
  .sim-result { position: static; }
  .sim-questions { padding: 4px 20px; }
  .sim-plans { grid-template-columns: 1fr; }
  .sim-plan { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 12px; }
  .sim-plan.on { transform: none; }
  .sim-pcatch { width: 100%; order: 3; }
  .sim-pprice { width: 100%; order: 4; margin-top: 0; }
  .sim-pprice br { display: none; }
  .sim-ptag { order: 5; }
  .sim-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    align-items: center; gap: 12px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
    background: var(--ink); color: var(--paper); text-decoration: none; font-size: 13px;
    transform: translateY(110%); transition: transform .3s ease;
  }
  .sim-bar.show { transform: none; }
  .sim-bar strong { font-family: var(--mincho); font-size: 22px; font-variant-numeric: tabular-nums; }
  .sim-bar-link { margin-left: auto; color: #e7c77a; font-weight: 700; }
}
@media (prefers-reduced-motion: reduce) {
  .sim-plan, .sim-bar { transition: none; }
  .sim-delta.show { animation: none; opacity: 1; }
}
