/* みんなの不動産 — 共通スタイル
   モバイルファースト（想定トラフィックの9割以上がLINE内ブラウザ）
   見出しは明朝、本文はゴシック。 */

:root {
  --navy:        #14345f;
  --navy-deep:   #0d2544;
  --navy-soft:   #eef2f8;
  --navy-line:   #ccd8e8;
  --ink:         #1c2430;
  --ink-mid:     #4a5666;
  --ink-soft:    #7b8798;
  --bg:          #ffffff;
  --bg-tint:     #f7f9fc;
  --accent:      #a8802c;
  --accent-dark: #8a6a24;
  --accent-soft: #fbf5e9;
  --alert:       #a8341f;
  --alert-soft:  #fdeeeb;
  --radius:      8px;
  --maxw:        1080px;
  --readw:       720px;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "MS PMincho", serif;
  --sans:  "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "Yu Gothic", Meiryo, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }

body {
  margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.9;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }

/* ---------- 下書き警告 ---------- */
.draft-bar {
  position: relative; z-index: 200; background: var(--alert); color: #fff;
  font-size: 13px; line-height: 1.5; font-weight: 700; padding: 10px 16px; text-align: center;
}
.draft-bar span { display: block; font-weight: 400; opacity: .9; font-size: 12px; }
.tbd {
  background: var(--alert-soft); color: var(--alert);
  border-bottom: 1px dashed var(--alert); padding: 0 3px; font-size: .92em; font-weight: 700;
}

/* ---------- レイアウト ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.wrap.read { max-width: var(--readw); }

section { padding: 64px 0; }
section.tint { background: var(--bg-tint); }
section.navy { background: var(--navy-deep); color: #dbe4f0; }
section.navy h2, section.navy h3 { color: #fff; }
section.navy .lead { color: #b9c8dd; }

h1, h2, h3 { margin: 0 0 16px; font-weight: 600; letter-spacing: .01em; }
h1, h2 { font-family: var(--serif); line-height: 1.45; }
h2 { font-size: 25px; color: var(--navy-deep); }
h3 { font-size: 18px; color: var(--navy); line-height: 1.55; }
p { margin: 0 0 18px; }
p:last-child { margin-bottom: 0; }

.lead { font-size: 16.5px; color: var(--ink-mid); }
.small { font-size: 13px; color: var(--ink-soft); line-height: 1.8; }
.center { text-align: center; }

.eyebrow {
  display: block; font-family: var(--sans); font-size: 11.5px; font-weight: 700;
  letter-spacing: .18em; color: var(--accent); margin-bottom: 10px;
}
.sec-head { margin-bottom: 28px; }

/* ---------- ヘッダー ---------- */
.site-head { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97);
             border-bottom: 1px solid var(--navy-line); backdrop-filter: saturate(180%) blur(8px); }
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.logo .mark { width: 30px; height: 30px; flex: none; }
.logo .txt { font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--navy); line-height: 1.25; }
.logo .txt small { display: block; font-family: var(--sans); font-size: 9.5px; font-weight: 400;
                   color: var(--ink-soft); letter-spacing: .08em; }

.nav-toggle { border: 1px solid var(--navy-line); background: #fff; border-radius: 6px;
              width: 42px; height: 38px; display: flex; flex-direction: column; gap: 4px;
              align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle i { display: block; width: 18px; height: 1.5px; background: var(--navy); transition: .2s; }
.nav-toggle[aria-expanded="true"] i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.nav { display: none; }
.nav.open { display: block; position: absolute; left: 0; right: 0; top: 100%;
            background: #fff; border-bottom: 1px solid var(--navy-line); box-shadow: 0 8px 20px rgba(0,0,0,.07); }
.nav ul { list-style: none; margin: 0; padding: 8px 20px 18px; }
.nav a { display: block; padding: 13px 0; font-size: 15px; text-decoration: none;
         color: var(--ink); border-bottom: 1px solid var(--navy-soft); }
.nav a[aria-current="page"] { color: var(--accent-dark); font-weight: 700; }
.nav .nav-cta { margin-top: 14px; }
.head-tel { display: none; }

/* ---------- ヒーロー ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--navy-deep); }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9,25,46,.72) 0%, rgba(9,25,46,.60) 45%, rgba(9,25,46,.82) 100%);
}
.hero .wrap { position: relative; padding-top: 56px; padding-bottom: 52px; }
.hero .eyebrow { color: #e3c98a; }
.hero h1 { font-size: 29px; color: #fff; line-height: 1.5; margin-bottom: 14px;
           text-shadow: 0 1px 14px rgba(0,0,0,.35); }
.hero .sub { font-size: 15.5px; color: #dfe7f2; margin-bottom: 26px; line-height: 1.9; }

.fee-badge {
  display: block; width: fit-content; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.34);
  border-radius: var(--radius); padding: 14px 20px; margin-bottom: 24px; backdrop-filter: blur(4px);
}
.fee-badge .label { font-size: 11.5px; letter-spacing: .12em; color: #cfdcec; }
.fee-badge .value { font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1.3; color: #fff; }
.fee-badge .note { font-size: 11px; color: #b9c8dd; }

/* 会社概要など、下層ページ用の低めのヒーロー */
.hero.slim .wrap { padding-top: 46px; padding-bottom: 42px; }
.hero.slim h1 { font-size: 25px; margin-bottom: 8px; }

/* ---------- ボタン ---------- */
.btn {
  display: block; width: 100%; background: var(--accent); color: #fff;
  text-align: center; text-decoration: none; font-size: 16.5px; font-weight: 700;
  padding: 17px 20px; border: 0; border-radius: var(--radius); cursor: pointer; line-height: 1.4;
  box-shadow: 0 2px 0 rgba(0,0,0,.14); transition: background .15s;
}
.btn:hover { background: var(--accent-dark); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn.navy { background: var(--navy); }
.btn.navy:hover { background: var(--navy-deep); }
.btn.ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.7); box-shadow: none; }
.btn.ghost:hover { background: rgba(255,255,255,.12); }
.btn.sm { font-size: 14px; padding: 11px 18px; }
.btn-note { font-size: 12.5px; color: var(--ink-soft); text-align: center; margin-top: 9px; }
.hero .btn-note { color: #c3d1e3; }

/* ---------- 写真つきブロック ---------- */
.figure { margin: 0 0 26px; border-radius: var(--radius); overflow: hidden; }
.figure img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.figure figcaption { font-size: 12px; color: var(--ink-soft); padding: 8px 2px 0; }

.split { display: grid; gap: 22px; align-items: center; }
.split .ph img { border-radius: var(--radius); aspect-ratio: 3/2; object-fit: cover; width: 100%; }

.band { position: relative; color: #fff; overflow: hidden; }
.band .bg { position: absolute; inset: 0; }
.band .bg img { width: 100%; height: 100%; object-fit: cover; }
.band .bg::after { content: ""; position: absolute; inset: 0; background: rgba(10,28,52,.76); }
.band .wrap { position: relative; padding: 54px 20px; }
.band h2 { color: #fff; }
.band p { color: #d5e0ee; }

/* ---------- 表 ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 14px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 340px; background: #fff; }
th, td { padding: 12px 10px; text-align: right; border-bottom: 1px solid var(--navy-line); }
th:first-child, td:first-child { text-align: left; }
thead th { background: var(--navy); color: #fff; font-size: 12.5px; font-weight: 700; border-bottom: 0; white-space: nowrap; }
tbody tr:nth-child(even) { background: var(--bg-tint); }
td.hilite { color: var(--alert); font-weight: 700; font-size: 16px; }

/* 会社概要の定義表 */
.spec { width: 100%; border-top: 1px solid var(--navy-line); font-size: 15px; }
.spec div { display: grid; grid-template-columns: 1fr; gap: 2px;
            padding: 14px 2px; border-bottom: 1px solid var(--navy-line); }
.spec dt { font-size: 12.5px; font-weight: 700; color: var(--accent-dark); letter-spacing: .06em; }
.spec dd { margin: 0; color: var(--ink); }

/* ---------- 理由カード ---------- */
.reasons { list-style: none; margin: 0; padding: 0; counter-reset: r; display: grid; gap: 12px; }
.reasons li { counter-increment: r; background: #fff; border: 1px solid var(--navy-line);
              border-radius: var(--radius); padding: 20px 20px 20px 58px; position: relative; }
.reasons li::before {
  content: counter(r, decimal-leading-zero); position: absolute; left: 18px; top: 19px;
  font-family: var(--serif); font-size: 17px; font-weight: 600; color: var(--accent); letter-spacing: .02em;
}
.reasons b { display: block; color: var(--navy-deep); font-size: 16.5px; margin-bottom: 5px; font-family: var(--serif); }
.reasons span { font-size: 14.5px; color: var(--ink-mid); line-height: 1.85; }

/* ---------- チェックリスト ---------- */
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { padding: 11px 0 11px 30px; position: relative; border-bottom: 1px dotted var(--navy-line); font-size: 15px; }
.checks li::before { content: ""; position: absolute; left: 6px; top: 20px; width: 10px; height: 5px;
                     border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
                     transform: rotate(-45deg); }

/* ---------- 流れ ---------- */
.flow { list-style: none; margin: 0; padding: 0; counter-reset: f; }
.flow li { counter-increment: f; position: relative; padding: 0 0 26px 44px; }
.flow li::before { content: counter(f); position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff;
  font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.flow li::after { content: ""; position: absolute; left: 13.5px; top: 32px; bottom: 4px;
                  width: 1px; background: var(--navy-line); }
.flow li:last-child::after { display: none; }
.flow b { display: block; color: var(--navy-deep); font-size: 16.5px; font-family: var(--serif); }
.flow span { font-size: 14.5px; color: var(--ink-mid); }

/* ---------- 担当者 ---------- */
.staff { display: grid; gap: 16px; }
.staff-card { border: 1px solid var(--navy-line); border-radius: var(--radius); padding: 20px; background: #fff; }
.staff-card .ph { width: 92px; height: 92px; border-radius: 50%; background: var(--navy-soft);
                  margin-bottom: 14px; display: flex; align-items: center; justify-content: center;
                  font-size: 11px; color: var(--ink-soft); text-align: center; line-height: 1.4; overflow: hidden; }
.staff-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.staff-card .role { font-size: 11.5px; color: var(--accent); font-weight: 700; letter-spacing: .1em; }
.staff-card .nm { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--navy-deep); margin-bottom: 8px; }
.staff-card .bio { font-size: 14.5px; color: var(--ink-mid); margin: 0; }

/* ---------- FAQ ---------- */
details { border: 1px solid var(--navy-line); border-radius: var(--radius);
          padding: 15px 17px; margin-bottom: 10px; background: #fff; }
details[open] { background: var(--bg-tint); }
summary { cursor: pointer; font-weight: 700; color: var(--navy-deep); font-size: 15px;
          list-style: none; padding-right: 26px; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "＋"; position: absolute; right: 0; top: 0; color: var(--accent); font-weight: 700; }
details[open] summary::after { content: "−"; }
details p { margin: 12px 0 0; font-size: 14.5px; color: var(--ink-mid); }

/* ---------- フォーム ---------- */
.form-box { background: #fff; border: 1px solid var(--navy-line); border-top: 4px solid var(--navy);
            border-radius: var(--radius); padding: 26px 20px; box-shadow: 0 2px 18px rgba(13,37,68,.06); }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 14px; font-weight: 700; color: var(--navy-deep); margin-bottom: 7px; }
.req { background: var(--alert); color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 3px; margin-left: 6px; vertical-align: 2px; }
.opt { background: var(--navy-soft); color: var(--ink-soft); font-size: 10px; padding: 2px 6px; border-radius: 3px; margin-left: 6px; vertical-align: 2px; }
.field input, .field select, .field textarea {
  width: 100%; font-size: 16px; /* 16px未満だとiOSで自動ズームする */
  font-family: inherit; color: var(--ink); padding: 13px;
  border: 1px solid var(--navy-line); border-radius: 6px; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.field textarea { min-height: 96px; resize: vertical; }
.field .hint { font-size: 12.5px; color: var(--ink-soft); margin-top: 6px; }
.field.err input, .field.err select, .field.err textarea { border-color: var(--alert); background: var(--alert-soft); }
.field .err-msg { display: none; font-size: 12.5px; color: var(--alert); margin-top: 6px; font-weight: 700; }
.field.err .err-msg { display: block; }

.ref-badge { background: var(--accent-soft); border: 1px solid #e6d4ab; color: var(--accent-dark);
             padding: 10px 13px; border-radius: 6px; margin-bottom: 18px; font-size: 13px; }

.form-result { display: none; margin-top: 18px; padding: 18px; border-radius: var(--radius); font-size: 14.5px; line-height: 1.85; }
.form-result.ok { display: block; background: var(--navy-soft); border: 1px solid var(--navy-line); }
.form-result.ng { display: block; background: var(--alert-soft); border: 1px solid var(--alert); color: var(--alert); }
.form-result .no { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--navy); letter-spacing: .05em; }

/* ---------- フッター ---------- */
.site-foot { background: var(--navy-deep); color: #b9c8dd; padding: 44px 0 96px; font-size: 13.5px; line-height: 1.95; }
.foot-grid { display: grid; gap: 26px; margin-bottom: 28px; }
.foot-logo { font-family: var(--serif); font-size: 19px; color: #fff; margin-bottom: 6px; }
.foot-nav { list-style: none; margin: 0; padding: 0; }
.foot-nav li { border-bottom: 1px solid rgba(255,255,255,.13); }
.foot-nav a { display: block; padding: 10px 0; color: #cfdaea; text-decoration: none; font-size: 14px; }
.foot-nav h4 { font-size: 12px; letter-spacing: .12em; color: #8fa6c4; margin: 0 0 6px; font-weight: 700; }
.lic { border: 1px solid rgba(255,255,255,.22); border-radius: 6px; padding: 16px; margin-bottom: 16px; }
.lic b { color: #fff; display: block; font-size: 15px; margin-bottom: 5px; font-family: var(--serif); }
.copy { border-top: 1px solid rgba(255,255,255,.13); padding-top: 16px; font-size: 11.5px; color: #7f96b5; }

/* ---------- 追従CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: rgba(255,255,255,.97); border-top: 1px solid var(--navy-line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -2px 14px rgba(0,0,0,.09);
}
.sticky-cta .wrap { padding: 0; }

/* ---------- タブレット以上 ---------- */
@media (min-width: 768px) {
  body { font-size: 16.5px; }
  section { padding: 88px 0; }
  h2 { font-size: 31px; }
  .sec-head { margin-bottom: 36px; }

  .nav-toggle { display: none; }
  .nav { display: block !important; position: static !important; box-shadow: none !important; border: 0 !important; }
  .nav ul { display: flex; align-items: center; gap: 26px; padding: 0; }
  .nav a { border: 0; padding: 6px 0; font-size: 14.5px; position: relative; }
  .nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0;
                                       height: 2px; background: var(--accent); }
  .nav .nav-cta { margin: 0; }
  .nav .nav-cta a { color: #fff; }
  .head-tel { display: block; font-size: 12px; color: var(--ink-soft); text-align: right; line-height: 1.5; }
  .head-tel strong { display: block; font-family: var(--serif); font-size: 19px; color: var(--navy); }

  .hero .wrap { padding-top: 108px; padding-bottom: 104px; max-width: var(--maxw); }
  .hero h1 { font-size: 44px; }
  .hero .sub { font-size: 17px; max-width: 34em; }
  .hero.slim .wrap { padding-top: 76px; padding-bottom: 70px; }
  .hero.slim h1 { font-size: 36px; }
  .fee-badge .value { font-size: 34px; }

  .btn { width: auto; min-width: 320px; margin: 0 auto; }
  .btn.sm { min-width: 0; }
  .hero .btn, .hero .btn-note { margin-left: 0; text-align: left; }
  .hero .btn { display: inline-block; }

  .staff { grid-template-columns: 1fr 1fr; }
  .reasons { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr 1fr; gap: 40px; }
  .split.rev .ph { order: 2; }
  .spec div { grid-template-columns: 200px 1fr; gap: 16px; align-items: baseline; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .sticky-cta { display: none; }
  .site-foot { padding-bottom: 44px; }
}

/* ============================================================
   コーポレートサイト（7ページ構成）で追加した部品
   ============================================================ */

/* ---------- ヒーロー内の見出し（改行を活かす） ---------- */
.hero h1 { white-space: pre-line; }

/* ---------- 会社の身元の帯（トップ・物語の直後） ---------- */
.identity-band { background: var(--navy-deep); color: #cfdaea; padding: 26px 0; }
.identity { display: grid; gap: 18px; }
.identity dl { margin: 0; display: grid; gap: 10px; }
.identity dl > div { display: grid; gap: 2px; }
.identity dt { font-size: 11px; letter-spacing: .12em; color: #8fa6c4; }
.identity dd { margin: 0; font-size: 15px; color: #fff; }
.identity .btn.ghost { border-color: rgba(255,255,255,.55); color: #fff; }

/* ---------- サービスカード（トップ） ---------- */
.services { display: grid; gap: 16px; }
.svc {
  border: 1px solid var(--navy-line); border-radius: var(--radius);
  background: #fff; overflow: hidden; display: flex; flex-direction: column;
}
.svc img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.svc .in { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.svc h3 { margin: 0; font-family: var(--serif); font-size: 20px; color: var(--navy-deep); }
.svc p { margin: 0; font-size: 14.5px; color: var(--ink-mid); flex: 1; }
.svc .go { font-size: 14px; font-weight: 700; color: var(--accent-dark); text-decoration: none; }
.svc .go::after { content: " →"; }
.svc.soon { background: var(--bg-tint); }
.svc.soon .in { color: var(--ink-soft); }

/* ---------- ページ内ナビ（売買ページ） ---------- */
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.jump a {
  flex: 1 1 auto; text-align: center; text-decoration: none;
  border: 1px solid var(--navy-line); border-radius: var(--radius);
  padding: 12px 14px; font-size: 14.5px; font-weight: 700; color: var(--navy);
  background: #fff;
}
.jump a:hover { border-color: var(--accent); color: var(--accent-dark); }

/* ---------- 注意書きボックス ---------- */
.callout {
  border-left: 4px solid var(--navy); background: var(--bg-tint);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 20px; margin: 22px 0; font-size: 15px; line-height: 1.85;
}
.callout.gold { border-left-color: var(--accent); background: var(--accent-soft); }
.callout h3 { margin: 0 0 6px; font-size: 16.5px; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- 約束のリスト ---------- */
.promise { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.promise li {
  position: relative; padding: 14px 16px 14px 46px;
  border: 1px solid var(--navy-line); border-radius: var(--radius);
  background: #fff; font-size: 15px;
}
.promise li::before {
  content: ""; position: absolute; left: 18px; top: 22px; width: 11px; height: 6px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- お問い合わせのご用件選択 ---------- */
.usage { margin-bottom: 24px; }
.usage > span.lbl { display: block; font-size: 14px; font-weight: 700; color: var(--navy-deep); margin-bottom: 10px; }
.usage .opts { display: grid; gap: 10px; }
.usage label {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  border: 1px solid var(--navy-line); border-radius: var(--radius);
  padding: 14px 16px; background: #fff; font-size: 15.5px;
}
.usage input { width: 20px; height: 20px; flex: none; accent-color: var(--accent); }
.usage label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.usage.err label { border-color: var(--alert); }
.usage .err-msg { display: none; font-size: 12.5px; color: var(--alert); margin-top: 8px; font-weight: 700; }
.usage.err .err-msg { display: block; }

.form-result pre {
  font-size: 12px; overflow: auto; background: #fff; padding: 12px;
  border-radius: 6px; margin: 10px 0 0; line-height: 1.6;
}

/* ---------- プライバシーポリシー等の条文 ---------- */
.terms { counter-reset: t; }
.terms h2 { font-size: 19px; margin-top: 36px; }
.terms h2:first-of-type { margin-top: 0; }
.terms ul { padding-left: 22px; }
.terms li { margin-bottom: 6px; }

/* ---------- 準備中の表示 ---------- */
.soon-note {
  border: 1px dashed var(--navy-line); border-radius: var(--radius);
  padding: 18px; background: var(--bg-tint); font-size: 14.5px; color: var(--ink-mid);
}

@media (min-width: 768px) {
  .services { grid-template-columns: repeat(3, 1fr); }
  .identity { grid-template-columns: 1fr auto; align-items: center; }
  .identity dl { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px 32px; }
  .usage .opts { grid-template-columns: repeat(2, 1fr); }
  .jump a { flex: 0 1 auto; min-width: 180px; }
}

/* ============================================================
   スマートフォンの詰め（想定トラフィックの9割以上）
   ============================================================ */
@media (max-width: 767px) {
  /* 見出しが1行に収まらない端末でも崩れないように */
  .hero h1 { font-size: 27px; line-height: 1.5; }
  .hero.slim h1 { font-size: 23px; }
  h2 { font-size: 22px; }
  .hero .sub { font-size: 15px; }

  /* 4列の表は横スクロールさせる。本文は絶対に横に流さない */
  .table-scroll { margin-left: -20px; margin-right: -20px; padding: 0 20px; }
  .table-scroll table { min-width: 460px; }
  thead th { font-size: 11.5px; padding: 10px 8px; }
  th, td { padding: 11px 8px; font-size: 14px; }
  td.hilite { font-size: 15px; }
  /* 横に続きがあることを示す */
  .table-scroll { position: relative; }
  .table-scroll::after {
    content: "→ 横にスクロールできます";
    display: block; font-size: 11.5px; color: var(--ink-soft);
    padding: 6px 0 0; text-align: right;
  }

  /* 会社の身元の帯 */
  .identity dl { gap: 12px; }
  .identity dd { font-size: 14.5px; line-height: 1.6; word-break: break-word; }
  .identity .btn.ghost { width: 100%; }

  /* サービスカード：画像を低くして一覧性を上げる */
  .svc img { aspect-ratio: 2/1; }
  .svc .in { padding: 18px; }
  .svc h3 { font-size: 18px; }

  /* ページ内ナビは2列に */
  .jump { gap: 8px; }
  .jump a { flex: 1 1 calc(50% - 4px); padding: 11px 8px; font-size: 13.5px; }

  /* ヘッダーの電話番号は畳む（ドロワー内に出す） */
  .head-in { gap: 8px; }
  .logo .txt { font-size: 16.5px; }
  .logo .txt small { font-size: 9px; }

  /* ドロワーを開いたときのスクロール対策 */
  .nav.open ul { max-height: calc(100dvh - 140px); overflow-y: auto; }

  /* 追従CTAの分だけ本文の下に余白を足す */
  .site-foot { padding-bottom: 104px; }

  /* 長い未確定値・URLで横に溢れないように */
  .tbd, .lic, .spec dd { word-break: break-word; overflow-wrap: anywhere; }

  /* 定義表を読みやすく */
  .spec div { padding: 13px 2px; }
  .spec dt { margin-bottom: 3px; }

  /* フォームの押しやすさ */
  .usage label { padding: 15px 16px; }
  .btn { padding: 18px 20px; }
}

/* 小さめの端末（iPhone SE など） */
@media (max-width: 380px) {
  .hero h1 { font-size: 25px; }
  h2 { font-size: 20.5px; }
  .wrap { padding: 0 16px; }
  .table-scroll { margin-left: -16px; margin-right: -16px; padding: 0 16px; }
}

/* タップ領域を確保する（指で押す前提） */
.nav-toggle { width: 46px; height: 44px; }
.svc .go { display: inline-flex; align-items: center; min-height: 44px; }
.jump a { min-height: 46px; display: flex; align-items: center; justify-content: center; }
.foot-nav a { padding: 13px 0; }
.logo { min-height: 44px; align-items: center; }
summary { padding-top: 4px; padding-bottom: 4px; }

/* iOSでフォーム送信後に画面が跳ねないように */
@media (max-width: 767px) {
  .form-box { padding: 22px 16px; }
  .field input, .field select, .field textarea { padding: 14px 13px; }
}

/* ---------- 料金比較：スマホはカード、PCは表 ---------- */
.fee-cards { display: none; }
@media (max-width: 767px) {
  .fee-cards { display: grid; gap: 12px; margin-bottom: 14px; }
  .fee-table { display: none; }
  .fee-card {
    border: 1px solid var(--navy-line); border-radius: var(--radius);
    background: #fff; padding: 16px 18px;
  }
  .fee-card .px {
    font-family: var(--serif); font-size: 20px; font-weight: 600;
    color: var(--navy-deep); margin-bottom: 10px;
    padding-bottom: 10px; border-bottom: 1px solid var(--navy-line);
  }
  .fee-card .ln {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 12px; font-size: 14px; color: var(--ink-mid); padding: 5px 0;
  }
  .fee-card .ln b { font-size: 16px; color: var(--ink); white-space: nowrap; }
  .fee-card .ln.save {
    margin-top: 8px; padding-top: 10px; border-top: 2px solid var(--accent);
    color: var(--navy-deep); font-weight: 700;
  }
  .fee-card .ln.save b { font-size: 22px; color: var(--alert); font-family: var(--serif); }
}

/* 手数料の説明のうち、経済メリットの一文だけ少し強める */
.fee-point {
  display: block; margin-top: 14px; padding: 14px 16px;
  background: var(--accent-soft); border: 1px solid #e6d4ab; border-radius: var(--radius);
  font-size: 15px; line-height: 1.85; color: var(--ink);
}
@media (max-width: 767px) { .fee-point { font-size: 14.5px; padding: 13px 14px; } }


/* 先行期間のお知らせ（config.js の pilot.on で出し分け） */
.pilot-note {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  padding: 14px 16px;
  border-radius: 6px;
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--navy);
}
.pilot-note .hint { display: block; margin-top: 6px; font-size: 13px; color: var(--ink-soft, #6b6b6b); }
@media (max-width: 767px) { .pilot-note { font-size: 14.5px; padding: 13px 14px; } }

/* 入力欄より前に置く開示（規約 第7条・個人情報保護法 第21条） */
.before-note {
  font-size: 13.5px; line-height: 1.8; color: var(--ink);
  background: var(--navy-soft); border-radius: var(--radius);
  padding: 12px 14px; margin: 0 0 20px;
}
.before-note b { color: var(--navy); }
.area-warn { color: var(--alert); margin-top: 6px; }

/* ===== 公式LINEの導線 ===== */
.line-cta{margin-top:28px;padding-top:24px;border-top:1px solid var(--line,#e3e8ef)}
.btn.line{background:#06c755;border-color:#06c755;color:#fff}
.btn.line:hover{background:#05b34c;border-color:#05b34c}

/* ===== 担当者のご紹介 ===== */
.staff{display:flex;gap:24px;align-items:flex-start;margin-top:28px}
.staff h3{margin-bottom:4px}
.staff-photo{width:160px;height:160px;border-radius:10px;object-fit:cover;flex:none}
.staff-photo.none{display:flex;align-items:center;justify-content:center;
  background:#eef2f8;color:#8a99ad;font-size:13px;border:1px dashed #c6d2e2}
@media(max-width:640px){.staff{flex-direction:column;gap:14px}
  .staff-photo{width:120px;height:120px}}

/* ===== 紹介文のひな型 ===== */
.tpl{margin-top:28px;padding-top:24px;border-top:1px solid var(--line,#e3e8ef)}
.tpl h3{margin-bottom:4px}
.tpl-body{white-space:pre-wrap;font-family:inherit;font-size:15px;line-height:1.9;
  background:#fff;border:1px solid #dbe3ee;border-radius:10px;padding:18px;margin:12px 0 14px}
.note-box{background:var(--accent-soft,#fbf5e9);border:1px solid #e6d4ab;
  border-radius:10px;padding:18px;margin-top:20px}

/* お客様の声 */
.voice{margin:0 0 20px;padding:24px 28px;background:var(--soft,#eef2f8);border-left:4px solid var(--gold,#a8802c);border-radius:4px}
.voice p{margin:0 0 10px}
.voice footer{margin:0;font-size:.9em}

/* 本番送信ができない間の、フォームの代わり */
.form-closed{padding:32px;background:var(--soft,#eef2f8);border-radius:6px;text-align:center}
.form-closed .btn{margin:6px 4px}
