/* =========================================================
   町田駅前法律事務所  共通スタイル（デザイン案5「見やすさ重視」2026年11月12日）
   文字を大きく、色の差をはっきりさせ、電話番号を目立たせる
   色を変えたいときは :root の変数を書き換えてください
   ========================================================= */
:root {
  --navy: #173a6b;
  --navy-dark: #0f2a4f;
  --blue-soft: #eef3f9;
  --accent: #b0702a;
  --accent-dark: #93591c;
  --accent-light: #fbf3e8;
  --accent-on-dark: #e8b878; /* 紺色の地の上で使うゴールド（明るめ） */
  --text: #1f2328;
  --muted: #555b63;
  --line: #cfd8e3;
  --radius: 8px;
  --max: 1100px;
  --mincho: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  font-size: 18px;
  line-height: 1.9;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: 3px; }
a { transition: color .15s, background-color .15s, border-color .15s; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 3px solid #f0b400; outline-offset: 2px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- ヘッダー ---------- */
.site-header { background: #fff; border-top: 6px solid var(--navy); position: relative; z-index: 10; }
.header-inner { max-width: var(--max); margin: 0 auto; padding: 16px 20px; display: flex; align-items: center; gap: 20px; }
.logo { display: flex; align-items: center; text-decoration: none; color: var(--navy); margin-right: auto; }
.logo:hover { color: var(--accent); }
.logo-text { display: flex; flex-direction: column; line-height: 1.35; }
.logo-name { font-family: var(--mincho); font-size: 30px; font-weight: bold; letter-spacing: .04em; }
.logo-sub { font-size: 14px; color: var(--muted); }

/* ヘッダーの電話番号：枠を付けず控えめに（2026年11月12日） */
.header-tel { display: block; text-decoration: none; color: var(--navy); line-height: 1.35; text-align: right; }
.header-tel:hover { color: var(--accent); }
.header-tel-label { display: none; }
.header-tel-num { display: block; font-size: 24px; font-weight: bold; letter-spacing: .03em; }
.header-tel-num::before { content: "☎ "; color: var(--accent); font-size: 20px; }
.header-tel-hours { display: block; font-size: 13px; color: var(--muted); }

.menu-toggle { display: none; }

.global-nav { background: var(--navy); }
.global-nav ul { max-width: var(--max); margin: 0 auto; padding: 0 20px; list-style: none; display: flex; flex-wrap: wrap; }
.global-nav li { flex: 1 1 auto; }
.global-nav a { display: block; padding: 14px 6px; color: #fff; text-decoration: none; text-align: center; font-size: 17px; font-weight: bold; }
.global-nav a[aria-current="page"] { background: var(--navy-dark); color: #fff; text-decoration: underline; }
.global-nav a:hover { background: var(--accent); color: #fff; text-decoration: none; }
.global-nav .nav-contact a { background: var(--accent); }
.global-nav .nav-contact a:hover, .global-nav .nav-contact a[aria-current="page"] { background: var(--accent-dark); }
.global-nav .has-sub:hover > a { background: var(--accent); color: #fff; text-decoration: none; }
/* プルダウン（弁護士紹介） */
.global-nav .has-sub { position: relative; }
.global-nav .has-sub > a::after { content: " ▾"; font-size: 13px; }
.global-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 100%; padding: 0; margin: 0; list-style: none; background: var(--navy-dark); box-shadow: 0 6px 14px rgba(0,0,0,.2); z-index: 20; }
.global-nav .has-sub:hover .sub-menu, .global-nav .has-sub:focus-within .sub-menu { display: block; }
.global-nav .sub-menu li { flex: none; }
.global-nav .sub-menu a { padding: 12px 18px; text-align: left; white-space: nowrap; border-top: 1px solid rgba(255,255,255,.15); }
.global-nav .sub-menu a:hover, .global-nav .sub-menu a[aria-current="page"] { background: var(--accent); }

/* ---------- ページ見出し ---------- */
.page-head { background: var(--blue-soft); border-bottom: 1px solid var(--line); padding: 28px 0 26px; }
.page-head h1 { margin: 4px 0 0; font-family: var(--mincho); font-size: 34px; color: var(--navy); line-height: 1.4; }
.breadcrumb { font-size: 15px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span + span::before { content: "›"; margin: 0 8px; }
.post-date { margin: 6px 0 0; font-size: 15px; color: var(--muted); }

/* ---------- 本文 ---------- */
.content { padding-top: 44px; padding-bottom: 60px; max-width: 900px; }
.content h2 {
  margin: 52px 0 20px; padding: 4px 0 4px 16px; font-size: 26px; line-height: 1.45; color: var(--navy);
  border-left: 8px solid var(--navy);
}
.content h2:first-child { margin-top: 0; }
.content h3 { margin: 38px 0 14px; padding-bottom: 6px; font-size: 21px; color: var(--navy); border-bottom: 2px solid var(--line); }
.content p { margin: 0 0 1.2em; }
.content ul, .content ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.content li { margin-bottom: .35em; }
.content blockquote { margin: 0 0 1.2em; padding: 18px 22px; background: var(--accent-light); border-radius: var(--radius); }
.content blockquote ul { margin: 0; }
.note { font-size: 16px; color: var(--muted); }
.lead { font-size: 19px; }

.figure-right { float: right; width: 260px; margin: 0 0 20px 28px; }
.figure-right img { display: block; border-radius: var(--radius); }
.figure-right figcaption { font-size: 15px; color: var(--muted); margin-top: 6px; }
.clear { clear: both; }

/* 表 */
.table { width: 100%; border-collapse: collapse; margin: 0 0 1.6em; font-size: 17px; }
.table th, .table td { border: 1px solid var(--line); padding: 14px 16px; vertical-align: top; text-align: left; }
.table th { width: 28%; background: var(--blue-soft); color: var(--navy); font-weight: bold; }
.table td p:last-child { margin-bottom: 0; }

/* ボタン・リンク一覧 */
.btn { display: inline-block; padding: 14px 26px; background: var(--navy); color: #fff; text-decoration: none; border-radius: var(--radius); border: 2px solid var(--navy); font-weight: bold; }
.btn:hover { background: #fff; color: var(--navy); }
.btn-outline { background: #fff; color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.link-list { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.link-list li { margin: 0; }
.link-list a, .link-list span {
  display: block; padding: 14px 18px; border: 2px solid var(--line); border-radius: var(--radius);
  text-decoration: none; background: #fff; font-weight: bold;
}
.link-list a::after { content: "›"; float: right; color: var(--accent); font-size: 22px; line-height: 1.3; }
.link-list a:hover { border-color: var(--accent); background: var(--accent-light); color: var(--accent); }
.link-list span { color: var(--muted); background: var(--blue-soft); font-weight: normal; }

/* 情報ボックス */
.box { padding: 20px 24px; border: 2px solid var(--navy); border-radius: var(--radius); background: #fff; margin: 0 0 1.6em; }
.box p:last-child { margin-bottom: 0; }
.box-tel { display: inline-block; white-space: nowrap; font-size: 32px; font-weight: bold; color: var(--navy); text-decoration: none; letter-spacing: .03em; }
.box-tel::before { content: "☎ "; color: var(--accent); }

/* ご相談の流れ */
.steps { list-style: none; padding: 0 !important; counter-reset: step; }
.steps > li { position: relative; padding: 22px 24px 10px 92px; margin-bottom: 30px; border: 2px solid var(--line); border-radius: var(--radius); }
.steps > li::before {
  counter-increment: step; content: "STEP\A" counter(step); white-space: pre; text-align: center; line-height: 1.2;
  position: absolute; left: 16px; top: 22px; width: 58px; padding: 9px 0; background: var(--navy); color: #fff; font-size: 15px; font-weight: bold; border-radius: var(--radius);
}
.steps > li + li::after { content: ""; position: absolute; left: 36px; top: -30px; border: 10px solid transparent; border-top-color: var(--accent); }
.steps h2 { margin: 0 0 10px !important; padding: 0 !important; background: none !important; border: 0 !important; font-size: 22px !important; }

/* ご依頼者の声 */
.voice-meta { list-style: none; padding: 16px 20px !important; background: var(--blue-soft); border-radius: var(--radius); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; list-style: none; padding: 0 !important; }
.cards li { margin: 0; }
.cards a { display: block; height: 100%; padding: 18px 20px; border: 2px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); background: #fff; }
.cards a:hover { border-color: var(--accent); background: var(--accent-light); color: var(--accent); }
.cards a:hover .card-title { color: var(--accent); }
.cards .tag { display: inline-block; font-size: 14px; padding: 2px 12px; border-radius: 999px; background: var(--navy); color: #fff; margin-bottom: 6px; }
.cards .card-title { display: block; font-weight: bold; color: var(--navy); }

/* 弁護士紹介 */
.h1-kana { display: block; font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif; font-size: 15px; font-weight: normal; color: var(--muted); letter-spacing: .1em; }
.lawyer-cards { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 300px)); gap: 24px; }
.lawyer-cards li { margin: 0; }
.lawyer-cards a { display: block; height: 100%; padding: 26px 16px; border: 2px solid var(--line); border-top: 6px solid var(--navy); border-radius: var(--radius); text-decoration: none; color: var(--text); text-align: center; background: #fff; }
.lawyer-cards a:hover { border-color: var(--accent); background: var(--accent-light); }
.lawyer-cards a:hover .lawyer-cards-name { color: var(--accent); }
.lawyer-cards-role { display: block; font-size: 15px; color: var(--accent); font-weight: bold; letter-spacing: .1em; }
.lawyer-cards-name { display: block; font-family: var(--mincho); font-size: 26px; font-weight: bold; color: var(--navy); line-height: 1.5; }
.lawyer-cards-kana { display: block; font-size: 15px; color: var(--muted); }

/* お知らせ一覧 */
.news-list { list-style: none; padding: 0 !important; margin: 0 0 16px; border-top: 2px solid var(--line); }
.news-list li { margin: 0; padding: 14px 4px; border-bottom: 2px solid var(--line); display: flex; gap: 16px; flex-wrap: wrap; }
.news-list time { color: var(--muted); min-width: 8em; }

/* 地図 */
.map { position: relative; padding-top: 66%; margin-bottom: 1.2em; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 2px solid var(--line); border-radius: var(--radius); }

/* ---------- トップページ ---------- */
/* トップの最初の部分：写真は置かず、左に紹介文、右に事務所のご案内（2026年11月12日） */
.home-hero { background: var(--blue-soft); padding: 56px 0 60px; }
.home-hero .container { display: grid; grid-template-columns: 1fr 400px; gap: 56px; align-items: center; }
.hero-eyebrow { margin: 0 0 8px; font-weight: bold; color: var(--accent); }
.home-hero h1 { margin: 0 0 16px; font-family: var(--mincho); font-size: 44px; line-height: 1.5; color: var(--navy); }
.home-hero p { margin: 0 0 22px; }
.hero-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 !important; }
.hero-links .btn { padding: 12px 22px; }
.office-panel { background: #fff; border-radius: var(--radius); padding: 24px 28px; box-shadow: 0 2px 10px rgba(15,42,79,.08); border-top: 6px solid var(--navy); }
.office-panel h2 { margin: 0 0 8px; font-family: var(--mincho); font-size: 22px; color: var(--navy); }
.office-panel dl { margin: 0 0 18px; }
.office-panel dt { margin-top: 10px; font-size: 15px; font-weight: bold; color: var(--accent); }
.office-panel dd { margin: 0; line-height: 1.6; }
.office-panel .btn { display: block; text-align: center; }

.section { padding: 60px 0; }
.section-alt { background: var(--blue-soft); }
.section-title { margin: 0 0 28px; font-size: 30px; color: var(--navy); padding-left: 16px; border-left: 8px solid var(--navy); line-height: 1.4; }
.home-two .section-title { font-size: 24px; }

.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.services a, .services span {
  position: relative; display: block; padding: 18px 56px 18px 22px; border: 2px solid var(--line); border-radius: var(--radius);
  background: #fff; text-decoration: none; color: var(--navy); font-size: 21px; font-weight: bold;
}
.services a::after { content: "›"; position: absolute; right: 20px; top: 50%; transform: translateY(-55%); font-size: 34px; color: var(--accent); }
.services a:hover { border-color: var(--accent); background: var(--accent-light); color: var(--accent); }
.services small { display: block; font-size: 16px; font-weight: normal; color: var(--muted); }
.center { text-align: center; }

.home-two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

/* ---------- ご予約案内帯・フッター ---------- */
/* ページ下の案内：大きな白い枠はやめ、落ち着いた見た目に（2026年11月12日） */
.cta { background: var(--blue-soft); color: var(--text); text-align: center; padding: 40px 0; border-top: 1px solid var(--line); }
.cta-lead { margin: 0; font-weight: bold; font-size: 19px; color: var(--navy); }
.cta-tel { display: inline-block; margin: 4px 0; font-size: 34px; font-weight: bold; color: var(--navy); text-decoration: none; letter-spacing: .03em; }
.cta-tel:hover { color: var(--accent); }
.cta-tel::before { content: "☎ "; color: var(--accent); font-size: 26px; }
.cta-note { margin: 0; font-size: 16px; color: var(--muted); }

.site-footer { background: var(--navy-dark); color: #e3e9f1; font-size: 16px; padding-top: 44px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.footer-name { font-size: 20px; font-weight: bold; color: #fff; margin-top: 0; }
.footer-nav { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; align-content: start; }
.site-footer a:hover, .footer-nav a:hover { color: var(--accent-on-dark); }
.copyright { text-align: center; margin: 32px 0 0; padding: 16px; border-top: 1px solid rgba(255,255,255,.15); font-size: 14px; }

/* スマホだけ画面の下に常に出す電話ボタン */
.sp-call { display: none; }

/* ---------- スマホ ---------- */
@media (max-width: 860px) {
  body { font-size: 17px; padding-bottom: 68px; }
  .header-tel { display: none; }
  .logo-name { font-size: 22px; }
  .logo-sub { font-size: 12px; }
  .menu-toggle { display: block; flex: none; padding: 6px 10px 4px; border: 2px solid var(--navy); border-radius: var(--radius); background: #fff; color: var(--navy); cursor: pointer; line-height: 1.2; }
  .menu-toggle span:not(.sr-only) { display: block; width: 26px; height: 3px; background: var(--navy); margin: 4px auto; }
  .menu-toggle .sr-only { position: static; width: auto; height: auto; overflow: visible; clip: auto; display: block; margin-top: 3px; font-size: 12px; font-weight: bold; }
  .global-nav { display: none; }
  .global-nav.is-open { display: block; }
  .global-nav ul { display: block; padding: 0; }
  .global-nav a { text-align: left; padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,.15); }
  .global-nav .has-sub > a::after { content: ""; }
  .global-nav .sub-menu { display: block; position: static; box-shadow: none; background: rgba(0,0,0,.15); }
  .global-nav .sub-menu a { padding: 12px 20px 12px 40px; border-top: 0; font-size: 16px; }
  .global-nav .sub-menu a::before { content: "└ "; opacity: .6; }

  .home-hero { padding: 28px 0 36px; }
  .home-hero .container { grid-template-columns: 1fr; gap: 24px; }
  .home-hero h1 { font-size: 30px; }
  .office-panel { padding: 20px 18px; }
  .box-tel { font-size: 26px; }

  .section { padding: 48px 0; }
  .section-title { font-size: 26px; }
  .services, .home-two, .footer-grid { grid-template-columns: 1fr; }
  .services a, .services span { font-size: 19px; }
  .page-head h1 { font-size: 26px; }
  .content h2 { font-size: 22px; }
  .figure-right { float: none; width: 200px; margin: 0 auto 20px; }
  .table th, .table td { display: block; width: 100%; }
  .table th { border-bottom: 0; }
  .steps > li { padding: 86px 18px 8px; }
  .cta-tel { font-size: 30px; }
  .cta-tel::before { font-size: 22px; }

  .sp-call { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; align-items: center; justify-content: center; gap: 10px; padding: 12px; background: var(--accent); color: #fff; text-decoration: none; font-weight: bold; font-size: 20px; box-shadow: 0 -2px 10px rgba(0,0,0,.2); }
  .sp-call:hover { color: #fff; background: var(--accent-dark); }
  .sp-call small { font-size: 13px; font-weight: normal; }
}

/* 印刷するときは電話ボタンなどを出さない */
@media print {
  .global-nav, .menu-toggle, .sp-call, .cta { display: none !important; }
}
