/* ============================================================================
 * 下層ページを新しいトップにそろえる CSS（DS 2026-09-18・オーナー指示「各種ページもトップページに合わせたデザインに」）
 * 依頼元: AI（秘書経由）／実装: MK
 * 使い方: 各ページの `style.css` の後に読み込む（`<link rel="stylesheet" href="/ai/assets/css/sub.css?v=…">`）。
 *         中身（文章・料金・項目）は変えない。見た目だけをそろえる
 * 対象: business／works／pricing／company／contact／diagnosis／privacy／terms／404
 *       （news は WordPress 側なので別扱い・指針の「10-4」参照）
 * 決まり: 明るい色の上に白文字を置かない／ベタ塗りの帯に白文字を置かない／12px 未満なし／
 *         押せる場所 44px 以上／文字と背景の明暗の差 4.5:1 以上／動きを減らす設定に対応
 * ========================================================================== */

/* ---------------------------------------------------------------- 1. 色と書体（トップと同じ） */
:root {
  --ink: #1f2321;
  --ink-2: #565b58;
  --paper: #ffffff;
  --paper-warm: #fbf8f1;
  --line: #e7e5e0;
  --lemon: #ffc233;
  --mikan: #ff8f3f;
  --accent: #c74309;
  --night: #16110c;
  --font-disp: "M PLUS 2", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-body: "IBM Plex Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --pad-x: clamp(20px, 5.6vw, 88px);
  --max: 1200px;
  --hdr-h: 72px;
  --fs-small: 13px;
  --fs-body: 16px;
  --fs-title: 20px;
  --fs-sec: 30px;
  --ease-out: cubic-bezier(0.16, 0.84, 0.3, 1);
}
@media (max-width: 699px) { :root { --hdr-h: 60px; --fs-sec: 24px; } }

body { background: #fff; color: var(--ink); font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.85; letter-spacing: 0.01em; }
main a { color: var(--accent); }

/* ---------------------------------------------------------------- 2. ヘッダー（トップと同じ見え方） */
/* トップのヘッダーは「白い平らな帯＋下に細い線」。下層の「丸い浮いた帯」をやめて同じ形にする */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--hdr-h); padding: 0; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--line); }
.site-header-inner { max-width: none; height: 100%; display: flex; align-items: center; gap: 28px; padding: 0 var(--pad-x); background: transparent; box-shadow: none; border-radius: 0; backdrop-filter: none; }
@media (max-width: 900px) {
  .site-header { padding: 0; }
  .site-header-inner { border-radius: 0; padding: 0 var(--pad-x); background: transparent; }
}
.site-logo { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; min-height: 44px; }
.site-logo-mark { display: none; }                      /* ●は使わない（ロゴ案1） */
.site-logo-text { font-family: var(--font-disp); font-weight: 800; font-size: var(--fs-title); line-height: 1; letter-spacing: 0.01em; color: var(--ink); }
.site-logo-text em { font-style: normal; color: var(--accent); }
/* PC のときだけ横並び。900px 以下は元の「全画面のメニュー」の指定をそのまま生かす */
@media (min-width: 901px) {
  .site-nav { display: flex; align-items: center; gap: 28px; font-size: var(--fs-body); font-weight: 500; }
}
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; }
.site-nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
/* 「無料相談」はボタンをやめて太字＋下線（トップと同じ）。
   .site-nav a { text-decoration: none } の方が指定が強いので、a を付けて強く書く（トップで同じ失敗をしている） */
.site-nav a.site-nav-contact, .site-nav-contact {
  min-height: 44px; padding: 0 !important; border-radius: 0;
  background: none !important; color: var(--ink) !important;
  font-weight: 700; letter-spacing: 0.04em; white-space: nowrap; margin-left: 8px;
  text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px;
}
/* メニューボタンは「出す・出さない」を元のまま（900px 以下だけ）にして、押せる大きさだけ 42→44px にする */
@media (max-width: 900px) {
  .nav-toggle { width: 44px; height: 44px; }
  .nav-toggle span { left: 10px; right: 10px; background: var(--ink); }
  .nav-toggle span:nth-child(1) { top: 17px; }
  .nav-toggle span:nth-child(2) { top: 26px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1),
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; }
}
main { padding-top: var(--hdr-h); }

/* ---------------------------------------------------------------- 3. ページの見出し（英語の飾りは使わない） */
.page-title-en { display: none; }
.page-hero { padding: clamp(48px, 7vw, 88px) 0 0; background: #fff; }
.page-hero-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad-x); }
.page-title-ja {
  position: relative; display: inline-block;
  font-family: var(--font-disp); font-weight: 700; font-size: var(--fs-sec); line-height: 1.4; letter-spacing: 0.04em;
  padding-bottom: 16px; color: var(--ink);
}
.page-title-ja::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 4px; border-radius: 2px; background: var(--mikan); }
.page-lead { margin-top: 20px; max-width: 34em; font-size: var(--fs-body); line-height: 1.95; color: var(--ink); word-break: keep-all; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- 4. 区画（トップと同じ余白・見出し） */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad-x); }
/* 英語の飾り見出しは見せない。ただし .section-en は <h2>（区画の見出し）なので display:none にすると
   区画から見出しが無くなる。画面の外へ出して読み上げには残す。
   MK: HTML を直せるときは「<h2 class="section-en">…</h2> を消し、<p class="section-ja"> を <h2 class="section-ja"> に変える」。
   ページ上部の <p class="page-title-en" aria-hidden="true"> は飾りなので display:none で問題ない（h1 は .page-title-ja） */
.section-en { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.section-head > h2.section-ja { margin: 0; }
.section-head { display: block; }
.section-ja {                                            /* 日本語の一言を区画の見出しに格上げ（HTML では h2 にする） */
  position: relative; display: inline-block;
  font-family: var(--font-disp); font-weight: 700; font-size: var(--fs-sec); line-height: 1.4; letter-spacing: 0.04em;
  padding-bottom: 16px; color: var(--ink);
}
.section-ja::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 4px; border-radius: 2px; background: var(--mikan); }
.svc-copy, .svc-detail .svc-copy { max-width: 34em; line-height: 1.95; }
/* style.css 側に ".svc-detail .svc-copy"(詳しさ2つ分)があり、単純な ".svc-copy"(1つ分)だと
   そちらに負けて36em(15px)のまま残ってしまうため、同じ強さで書き直した（2026-09-18 実測で発見・MK） */

/* ---------------------------------------------------------------- 5. ボタンとリンク */
.btn-pill, .btn, .cta-btn, a.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: 999px;
  background: var(--ink) !important; color: #fff !important; border: 0;
  font-weight: 700; letter-spacing: 0.04em; text-decoration: none;
}
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; color: var(--accent) !important; text-decoration: none; }
.text-link:hover span { text-decoration: underline; text-underline-offset: 5px; }

/* ---------------------------------------------------------------- 6. カード（トップと同じ形: 白地・枠・角丸18px） */
.plan, .member-card, .svc-detail, .diag-q {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: none;
}
.plan-plate, .svc-plate, .foot-lines, .svc-line { display: none; }   /* 旧デザインの飾り（板・曲線）は使わない */
.plan { padding: 0; overflow: hidden; }
.plan-inner { padding: clamp(24px, 3vw, 36px); }
.plan-name { font-family: var(--font-disp); font-weight: 700; font-size: clamp(20px, 2vw, 24px); letter-spacing: 0.04em; }
.plan-for { margin-top: 6px; font-size: var(--fs-small); color: var(--accent); font-weight: 700; letter-spacing: 0.06em; }
.plan-price { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.pp-num { font-family: var(--font-disp); font-weight: 700; font-size: clamp(28px, 3vw, 36px); }
.pp-unit, .pp-tax { font-size: var(--fs-small); color: var(--ink-2); }
.plan-list { margin-top: 16px; }
.plan-list li { display: flex; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.plan-list li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--mikan); transform: translateY(-2px); }
.plan-step { margin-top: 16px; font-size: var(--fs-small); color: var(--ink-2); }

.member-card { overflow: hidden; padding: 0 0 24px; }
.member-photo { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 22%; border-radius: 16px 16px 0 0; }
.member-role { margin: 18px 22px 0; font-size: var(--fs-small); font-weight: 700; letter-spacing: 0.06em; color: var(--accent); }
.member-name { margin: 2px 22px 0; font-family: var(--font-disp); font-weight: 700; font-size: var(--fs-title); letter-spacing: 0.04em; }
.member-kana { margin: 0 22px; font-size: var(--fs-small); color: var(--ink-2); }
.member-bio { margin: 6px 22px 0; line-height: 1.85; word-break: keep-all; overflow-wrap: anywhere; }

.svc-detail { overflow: hidden; padding: 0; gap: 0; align-items: stretch; }
.svc-detail-body { padding: clamp(24px, 3vw, 40px); }
.svc-detail-media { position: relative; }
.svc-detail-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-num { font-size: var(--fs-small); font-weight: 700; letter-spacing: 0.06em; color: var(--accent); }
.svc-tag, .svc-detail-media .svc-tag { position: absolute; left: 12px; right: auto; top: auto; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: var(--ink); font-size: var(--fs-small); font-weight: 700; transform: none; box-shadow: none; }
/* style.css 側に ".svc-detail-media .svc-tag"(詳しさ2つ分)があり right:-8px が生きたまま残るため、
   left と right が両方効いて帯のように伸びてしまっていた（実測で発見）。同じ強さで right:auto を書き、
   傾き(transform)と影(box-shadow)も外して「白地・細い枠・角丸」の並びにそろえた（2026-09-18・MK） */
.svc-list li { display: flex; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.svc-list li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--mikan); transform: translateY(-2px); }

/* ---------------------------------------------------------------- 7. 表（会社概要）と長い文章（プライバシー・利用規約） */
.company-table { width: 100%; border-collapse: collapse; margin-top: 28px; border-top: 1px solid var(--ink); }
.company-table th, .company-table td { padding: 16px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.85; }
.company-table th { width: 8.5em; font-weight: 700; color: var(--ink-2); font-size: var(--fs-small); }
.legal h2, .page-body h2 { margin-top: 40px; font-family: var(--font-disp); font-weight: 700; font-size: var(--fs-title); }
.legal p, .page-body p { max-width: 34em; }

/* ---------------------------------------------------------------- 8. フッター（トップと同じ・飾りの曲線は使わない） */
.site-footer { border-top: 1px solid var(--line); background: #fff; color: var(--ink); padding: 56px 0 28px; }
.site-footer * { color: inherit; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------------------------------------------------------------- 9. 動きを減らす設定 */
@media (prefers-reduced-motion: reduce) {
  .js-reveal, .plan, .member-card, .svc-detail { transition: none !important; animation: none !important; opacity: 1 !important; transform: none !important; }
}
/* 旧デザインの「現れる動き」は1区画1つに減らす（下層は静止でよい） */
.js-reveal { opacity: 1 !important; transform: none !important; }

/* ---------------------------------------------------------------- 10. 決まりに合わせる直し（実測で見つかった分・DS 2026-09-18） */
.site-footer-copy { font-size: var(--fs-small); color: var(--ink-2); }     /* 11px → 13px（12px 未満を作らない） */
.site-footer a, .site-footer-nav a, .site-footer-links a {                  /* フッターのリンクは押せる高さ 44px */
  display: inline-flex; align-items: center; min-height: 44px;
}
/* 文章の中のリンク（<p> や表の中）は 44px にしない＝行の高さが崩れるため。押しやすさの基準は「文中のリンクを除く」で運用する */
.member-bio, .member-card .text-link, .legal-date { font-size: var(--fs-small); }  /* 12.5px → 13px */

/* ---------------------------------------------------------------- 11. 呼びかけの帯（business／works／pricing／company の最後） */
/* 濃い紺のベタ塗りに白文字＝新しいトップの決まりに反するため、明るい下地＋濃い文字に変える */
.cta-band { background: var(--paper-warm); color: var(--ink); border-top: 1px solid var(--line); }
.cta-band .marquee { display: none; }        /* 流れる飾り文字（読み上げ対象外の飾り）。動きは1区画に1つ */
.cta-band-inner { max-width: var(--max); padding: clamp(40px, 5vw, 64px) var(--pad-x); }
.cta-band-title { font-family: var(--font-disp); font-weight: 700; font-size: var(--fs-sec); letter-spacing: 0.04em; color: var(--ink); }
.cta-band-note { margin-top: 10px; font-size: var(--fs-small); color: var(--ink-2); }
.cta-band .btn-pill, .cta-band .btn-white { background: var(--ink) !important; color: #fff !important; border: 0; }

/* ---------------------------------------------------------------- 12. 1行の長さ（34文字以内）と行間（1.85以上） */
.section-inner.legal-body { max-width: calc(34em + var(--pad-x) * 2); font-size: var(--fs-body); line-height: 1.95; }
.legal-body h2 { margin-top: 40px; font-family: var(--font-disp); font-weight: 700; font-size: var(--fs-title); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.legal-body a { color: var(--accent); }
.pricing-note, .svc-price-note, .form-note, .hero-note, .cta-band-note, .plan-step, .member-bio, .svc-copy { max-width: 34em; }
.company-table { max-width: 38em; }          /* 表の右端が伸びすぎるのを止める（説明の列が約34文字） */
.plan-step { line-height: 1.85; }
.plan-list li, .svc-list li { max-width: 34em; }
.plan-for { line-height: 1.85; }
.form-row .req { font-size: var(--fs-small); }   /* 入力欄の「必須」11px → 13px */
.section-head { margin-bottom: 14px; }   /* 見出しの下線と本文が近すぎるのを避ける */

/* ---------------------------------------------------------------- 13. 細部（実測で見つかった分） */
.contact-aside h2::before { background: var(--mikan); }   /* 小さな飾り棒をみかん色に */
.company-photos img { border-radius: 18px; }
.diag-q { padding: clamp(20px, 3vw, 32px); }              /* 枠を付けたので内側に余白を足す */

/* ==========================================================================
 * 表（会社概要・特定商取引法に基づく表記）がスマホではみ出す不具合の修正
 *   オーナー報告 2026-09-20「特措法ページはスマホだとうまく表示されていません」
 *   原因: style.css の `.company-table th { white-space: nowrap; }`（折り返さない指定）。
 *         特商法ページには「お申込みに関する責任者」のような長い項目名があるため、
 *         見出し列が 455px まで広がり、表全体が 601px（画面 390px）になって右が切れていた。
 *         body に overflow-x: clip があるため横スクロールもできず、内容が見えない状態だった。
 *   直し方: ①項目名を折り返せるようにする ②スマホ（699px以下）では項目名を上・内容を下に積む
 *   実測（画面幅390）: 表の幅 601px→346px ／ はみ出した要素 71→0 ／
 *                      内容の1行 15文字→23文字 ／ 特商法ページの表の高さ 3205px→2914px
 *                      会社概要ページも 15文字→23文字 に改善（崩れなし）
 * ========================================================================== */
.company-table th { white-space: normal; }

@media (max-width: 699px) {
  .company-table,
  .company-table tbody,
  .company-table tr,
  .company-table th,
  .company-table td { display: block; width: auto; }
  .company-table tr { border-bottom: 1px solid var(--line); padding: 14px 0; }
  .company-table th { padding: 0 0 4px; border-bottom: 0; }
  .company-table td { padding: 0; border-bottom: 0; }
}
