/*
 Theme Name:   Taishin Navi
 Theme URI:    https://taishin-kouji-navi.jp
 Description:  耐震工事ナビ 専用クラシックテーマ
 Author:       Taishin Navi
 Version:      1.0.0
 Text Domain:  taishin-navi
*/

body {
  font-family: -apple-system, "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.7;
  margin: 0;
}

.tn-hero,
.tn-single-contractor,
.tn-area-archive {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.tn-cta-button {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: #d85a30;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
}

.tn-premium-card {
  display: block;
  border: 2px solid #185fa5;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  text-decoration: none;
  color: inherit;
}

.tn-pr-label {
  font-size: 12px;
  color: #888;
}



/* ============================================================
   耐震工事ナビ デザイントークン & 共通パーツスタイル
   ※ style.css 先頭のテーマ情報コメント(Theme Name: 等)より下に追記してください
   ============================================================ */

:root {
  --color-bg: #FFFFFF;
  --color-bg-tint: #F1F9F4;
  --color-bg-tint-strong: #E4F3EA;
  --color-primary: #2F7F5C;
  --color-primary-dark: #1C4B36;
  --color-primary-soft: #6EAE8B;
  --color-accent-line: #BFE3CE;
  --color-text: #1E2924;
  --color-text-muted: #5C6F65;
  --color-border: #DCEBE1;
  --font-display: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --header-height: 72px;
  --max-width: 1120px;
  --color-pr: #B8842E;
  --color-pr-bg: #FBF2E3;
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-primary); }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text);
  margin-right: auto;
}

.logo-mark {
  width: 34px;
  height: 34px;
  color: var(--color-primary);
  flex-shrink: 0;
}
.logo-mark svg { width: 100%; height: 100%; display: block; }

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.main-nav a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover { background: var(--color-primary-dark); }

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}
.mobile-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--color-text);
}

/* ---------- Page title band (プライバシーポリシー等の情報ページ用) ---------- */
.page-title-band {
  position: relative;
  background: var(--color-bg-tint);
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(47,127,92,0.08) 0, rgba(47,127,92,0.08) 1px, transparent 1px, transparent 48px),
    repeating-linear-gradient(90deg, rgba(47,127,92,0.08) 0, rgba(47,127,92,0.08) 1px, transparent 1px, transparent 48px);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent);
}

.seal-watermark {
  position: absolute;
  right: -60px;
  top: -60px;
  width: 260px;
  height: 260px;
  color: var(--color-primary);
  opacity: 0.07;
  transform: rotate(8deg);
}
.seal-watermark svg { width: 100%; height: 100%; }

.page-title-inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 44px;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--color-text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb span[aria-current] { color: var(--color-primary-dark); font-weight: 600; }

.page-title-inner h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  font-weight: 900;
  margin: 0 0 10px;
  letter-spacing: 0.02em;
}

.page-title-sub {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

/* ---------- Content layout (目次+本文の2カラム) ---------- */
.content-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 96px;
  display: grid;
  grid-template-columns: 232px 1fr;
  gap: 56px;
  align-items: start;
}

.toc-nav {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  background: var(--color-bg-tint);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 20px 20px 22px;
}

.toc-heading {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-primary-dark);
  text-transform: uppercase;
}

.toc-nav ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
}

.toc-nav li { margin-bottom: 4px; }

.toc-nav a {
  counter-increment: toc;
  display: block;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  text-decoration: none;
  line-height: 1.5;
  transition: background 0.15s ease, color 0.15s ease;
}
.toc-nav a:hover { background: var(--color-bg-tint-strong); color: var(--color-text); }
.toc-nav a.is-active {
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
}

.policy-content { min-width: 0; }

.lead-paragraph {
  font-size: 0.98rem;
  color: var(--color-text-muted);
  padding-bottom: 28px;
  margin: 0 0 28px;
  border-bottom: 1px solid var(--color-border);
}

.policy-section {
  padding: 30px 0;
  border-bottom: 1px solid var(--color-border);
  scroll-margin-top: calc(var(--header-height) + 20px);
}
.policy-section:last-child { border-bottom: none; }

.policy-section h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--color-text);
}

.section-number {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.82rem;
  color: var(--color-primary);
  background: var(--color-bg-tint-strong);
  border: 1px solid var(--color-accent-line);
  border-radius: 999px;
  padding: 4px 12px;
  letter-spacing: 0.04em;
}

.policy-section p { margin: 0 0 14px; font-size: 0.95rem; }
.policy-section p:last-child { margin-bottom: 0; }

.policy-section ol,
.policy-section ul {
  margin: 0 0 14px;
  padding-left: 1.3em;
  font-size: 0.95rem;
}
.policy-section li { margin-bottom: 8px; }
.policy-section li:last-child { margin-bottom: 0; }

.note-box {
  background: var(--color-bg-tint);
  border: 1px solid var(--color-accent-line);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-top: 16px;
}

/* 比較表(第三者提供など、他ページの比較表にも流用可) */
.table-scroll {
  overflow-x: auto;
  margin: 18px 0 4px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  min-width: 560px;
}

.policy-table th,
.policy-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.policy-table thead th {
  background: var(--color-primary-dark);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.policy-table tbody tr:last-child th,
.policy-table tbody tr:last-child td { border-bottom: none; }

.policy-table tbody th {
  background: var(--color-bg-tint);
  font-weight: 700;
  width: 160px;
  white-space: nowrap;
}

.contact-box {
  background: var(--color-bg-tint);
  border: 1px solid var(--color-accent-line);
  border-radius: 14px;
  padding: 22px 24px;
  margin-top: 8px;
}
.contact-box p { margin: 0 0 6px; font-size: 0.95rem; }
.contact-box p:last-child { margin-bottom: 0; }
.contact-box .contact-name {
  font-family: var(--font-display);
  font-weight: 700;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary-dark);
  color: #E7F2EB;
}

.footer-top {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 24px 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer-brand .logo-mark { color: #fff; width: 30px; height: 30px; }
.footer-brand .brand-text { color: #fff; font-size: 1rem; }

.footer-tagline {
  font-size: 0.84rem;
  color: #BBD9C7;
  max-width: 26em;
  margin: 0;
}

.footer-col h3 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #BBD9C7;
  margin: 0 0 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: #E7F2EB;
  text-decoration: none;
  font-size: 0.86rem;
}
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-col a.is-current { color: #fff; font-weight: 700; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
}
.footer-bottom-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px;
  font-size: 0.76rem;
  color: #A9CBB6;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .content-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 32px;
  }
  .toc-nav {
    position: static;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 10px 24px 18px;
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { width: 100%; padding: 10px 0; }
  .main-nav a::after { display: none; }
  .header-cta { display: none; }
  .mobile-toggle { display: flex; }
  .header-inner { gap: 14px; }
  .page-title-inner { padding: 32px 20px 34px; }
  .footer-top { grid-template-columns: 1fr 1fr; padding: 44px 20px 24px; }
}

@media (max-width: 480px) {
  .wrap, .content-layout, .header-inner, .page-title-inner { padding-left: 18px; padding-right: 18px; }
  .footer-top { grid-template-columns: 1fr; }
  .policy-table thead th, .policy-table td, .policy-table tbody th { padding: 12px; }
}


/* ============================================================
   耐震工事ナビ トップページ専用パーツ
   (:root のトークンや header/footer は既に style-additions.css 側にあるため重複させないこと)
   ============================================================ */

.btn-block { width: 100%; padding: 13px 20px; font-size: .92rem; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--color-bg-tint); overflow: hidden; border-bottom: 1px solid var(--color-border); }

.hero-inner {
  position: relative; max-width: var(--max-width); margin: 0 auto; padding: 64px 24px 72px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: .78rem; letter-spacing: .06em;
  color: var(--color-primary-dark); background: var(--color-bg-tint-strong);
  border: 1px solid var(--color-accent-line); border-radius: 999px; padding: 6px 14px; margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display); font-weight: 900; letter-spacing: .01em;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.5; margin: 0 0 18px;
}
.hero-title .accent { color: var(--color-primary); }

.hero-sub { font-size: 1rem; color: var(--color-text-muted); max-width: 34em; margin: 0 0 28px; }

.stat-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.stat-chip { background: #fff; border: 1px solid var(--color-border); border-radius: 12px; padding: 12px 16px; min-width: 150px; }
.stat-chip .num { display: block; font-family: var(--font-display); font-weight: 900; font-size: 1.3rem; color: var(--color-primary); }
.stat-chip .label { display: block; font-size: .74rem; color: var(--color-text-muted); margin-top: 2px; }

/* ---------- Search card ---------- */
.search-card { background: #fff; border: 1px solid var(--color-border); border-radius: 20px; padding: 28px 26px 26px; box-shadow: 0 20px 44px -24px rgba(28,75,54,.35); }
.search-card h2 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.search-card h2 .icon { width: 20px; height: 20px; color: var(--color-primary); flex-shrink: 0; }
.search-card-sub { font-size: .82rem; color: var(--color-text-muted); margin: 0 0 20px; }

.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-size: .8rem; font-weight: 700; color: var(--color-text); margin-bottom: 6px; }
.form-field select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--color-border); border-radius: 10px;
  background: var(--color-bg-tint); color: var(--color-text); font-size: .92rem; font-family: inherit;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%235C6F65'%3E%3Cpath d='M5.5 7.5l4.5 4.5 4.5-4.5' stroke='%235C6F65' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.form-field select:disabled { color: var(--color-text-muted); cursor: not-allowed; }

.search-note { font-size: .76rem; color: var(--color-text-muted); text-align: center; margin: 12px 0 0; }

/* ---------- Steps ---------- */
.steps-section { padding: 64px 0; }
.section-heading { text-align: center; max-width: 40em; margin: 0 auto 40px; }
.section-heading h2 { font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 900; margin: 0 0 10px; }
.section-heading p { font-size: .92rem; color: var(--color-text-muted); margin: 0; }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.step-item { text-align: center; padding: 8px 12px; }
.step-number { width: 46px; height: 46px; border-radius: 50%; background: var(--color-primary); color: #fff; font-family: var(--font-display); font-weight: 900; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.step-item h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin: 0 0 8px; }
.step-item p { font-size: .86rem; color: var(--color-text-muted); margin: 0; }

/* ---------- Ranking ---------- */
.ranking-section { background: var(--color-bg-tint); padding: 64px 0 72px; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.ranking-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

.area-tabs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; margin: 0 0 28px; }
.area-tab { flex-shrink: 0; background: #fff; border: 1px solid var(--color-border); border-radius: 999px; padding: 10px 20px; font-size: .88rem; font-weight: 700; color: var(--color-text-muted); cursor: pointer; }
.area-tab.is-active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

.area-panel { display: none; }
.area-panel.is-active { display: block; }

.area-empty-state {
  background: #fff; border: 1px dashed var(--color-border); border-radius: 14px;
  padding: 32px 24px; text-align: center; color: var(--color-text-muted); font-size: .92rem;
}

.pr-card { display: flex; gap: 16px; align-items: center; background: var(--color-pr-bg); border: 1px solid #EBD4A8; border-radius: 16px; padding: 16px; margin-bottom: 18px; }
.pr-card--recruiting { border-style: dashed; }
.pr-badge { flex-shrink: 0; background: var(--color-pr); color: #fff; font-family: var(--font-display); font-weight: 900; font-size: .72rem; letter-spacing: .06em; border-radius: 999px; padding: 5px 12px; }
.company-thumb {
  flex-shrink: 0; width: 64px; height: 64px; border-radius: 12px;
  background: linear-gradient(155deg, var(--color-bg-tint-strong), #fff);
  border: 1px solid var(--color-border); color: var(--color-primary-soft);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.company-thumb svg { width: 30px; height: 30px; }
.company-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pr-card .pr-body { flex: 1; min-width: 0; }
.pr-card .pr-name { font-family: var(--font-display); font-weight: 700; font-size: .98rem; margin: 0 0 4px; }
.pr-card .pr-copy { font-size: .82rem; color: var(--color-text-muted); margin: 0; }
.pr-card .btn { flex-shrink: 0; }

.pr-caption { font-size: .74rem; color: var(--color-text-muted); margin: -6px 0 24px; }

.ranking-table { width: 100%; border-collapse: collapse; font-size: .86rem; min-width: 680px; }
.ranking-table th, .ranking-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--color-border); vertical-align: middle; }
.ranking-table tbody tr:last-child td { border-bottom: none; }
.ranking-table thead th { background: var(--color-primary-dark); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: .78rem; letter-spacing: .03em; white-space: nowrap; }
.ranking-table thead th:first-child { border-top-left-radius: 14px; }
.ranking-table thead th:last-child { border-top-right-radius: 14px; }

.rank-cell { display: flex; align-items: center; gap: 6px; }
.rank-badge { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 900; font-size: .84rem; border: 1.5px solid var(--color-primary); color: var(--color-primary); }
.rank-badge.is-first { background: var(--color-primary); color: #fff; }

.company-cell { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.company-cell .company-thumb { width: 44px; height: 44px; border-radius: 10px; }
.company-cell .company-thumb svg { width: 20px; height: 20px; }
.company-name { font-family: var(--font-display); font-weight: 700; font-size: .88rem; margin: 0 0 3px; }
.company-copy { font-size: .76rem; color: var(--color-text-muted); margin: 0; }

.badge-list { display: flex; flex-wrap: wrap; gap: 6px; }
.cert-badge { font-size: .72rem; background: var(--color-bg-tint-strong); border: 1px solid var(--color-accent-line); color: var(--color-primary-dark); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }

.table-cta { white-space: nowrap; }

.ranking-more { text-align: center; margin-top: 24px; }
.ranking-more a { font-size: .9rem; font-weight: 700; text-decoration: none; }
.ranking-more a:hover { text-decoration: underline; }

/* ---------- Area grid ---------- */
.area-section { padding: 64px 0 76px; }
.area-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: var(--max-width); margin: 0 auto 32px; padding: 0 24px; }
.area-tile { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--color-bg-tint); border: 1px solid var(--color-border); border-radius: 14px; padding: 16px 18px; text-decoration: none; color: var(--color-text); }
.area-tile:hover { background: var(--color-bg-tint-strong); border-color: var(--color-accent-line); }
.area-tile-name { font-family: var(--font-display); font-weight: 700; font-size: .92rem; }
.area-tile-count { display: block; font-size: .72rem; color: var(--color-text-muted); margin-top: 3px; }
.area-tile-arrow { color: var(--color-primary); flex-shrink: 0; }
.area-tile-arrow svg { width: 16px; height: 16px; }

.area-all-link { text-align: center; }
.area-all-link a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .92rem; text-decoration: none; border: 1px solid var(--color-primary); color: var(--color-primary); border-radius: 999px; padding: 11px 26px; }
.area-all-link a:hover { background: var(--color-primary); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; max-width: 420px; }
  .area-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .hero-inner { padding: 40px 20px 48px; }
  .steps-section { padding: 48px 0; }
  .ranking-section { padding: 48px 0 56px; }
  .area-section { padding: 48px 0 56px; }
}
@media (max-width: 480px) {
  .hero-inner, .ranking-inner, .area-grid, .steps-grid { padding-left: 18px; padding-right: 18px; }
  .area-grid { grid-template-columns: 1fr 1fr; }
  .pr-card { flex-wrap: wrap; }
  .pr-card .btn { width: 100%; }
  .company-cell { min-width: 160px; }
}

/* ============================================================
   耐震工事ナビ 施工会社向けページ専用パーツ
   (terms / company / for-contractors / plans)
   ※ style-additions.css → style-additions-frontpage.css の下に、続けて追記してください
   ============================================================ */

.btn-outline {
  background: #fff;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.btn-outline:hover { background: var(--color-bg-tint-strong); }

/* ---------- page-title-band 内のCTAボタン群(マーケティング系ページ用) ---------- */
.page-title-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- シンプルな1カラムページ(運営会社情報など) ---------- */
.simple-page { max-width: 760px; margin: 0 auto; padding: 48px 24px 96px; }
.simple-page .lead-paragraph { border-bottom: none; padding-bottom: 0; }

/* ---------- 一番の強みセクション(耐震から複合工事へ) ---------- */
.strength-section { padding: 64px 0; }
.strength-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.strength-copy h2 {
  font-family: var(--font-display); font-weight: 900; letter-spacing: .01em;
  font-size: clamp(1.5rem, 2.8vw, 2rem); line-height: 1.5; margin: 14px 0 18px;
}
.strength-copy p { font-size: .92rem; color: var(--color-text-muted); margin: 0 0 14px; }
.strength-copy .btn { margin-top: 8px; }

.strength-diagram {
  background: var(--color-bg-tint); border: 1px solid var(--color-border); border-radius: 20px;
  padding: 36px 28px; text-align: center;
}
.diagram-origin { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; }
.diagram-origin-icon {
  width: 64px; height: 64px; border-radius: 50%; background: var(--color-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.diagram-origin-icon svg { width: 30px; height: 30px; }
.diagram-origin-label { font-family: var(--font-display); font-weight: 700; font-size: .9rem; }

.diagram-connector { width: 2px; height: 30px; background: var(--color-accent-line); margin: 6px auto 0; position: relative; }
.diagram-connector::after {
  content: ""; position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%);
  border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid var(--color-accent-line);
}

.diagram-branches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 10px; }
.diagram-node {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--color-border); border-radius: 14px; padding: 16px 8px;
}
.diagram-node-icon {
  width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid var(--color-accent-line);
  background: var(--color-bg-tint-strong); color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
}
.diagram-node-icon svg { width: 20px; height: 20px; }
.diagram-node span:last-child { font-size: .76rem; font-weight: 700; color: var(--color-text); }

/* ---------- ベネフィットカード ---------- */
.benefit-section { padding: 64px 0; background: var(--color-bg-tint); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.benefit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.benefit-card { background: #fff; border: 1px solid var(--color-border); border-radius: 16px; padding: 24px 22px; }
.benefit-icon {
  width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--color-accent-line);
  background: var(--color-bg-tint-strong); color: var(--color-primary);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.benefit-icon svg { width: 22px; height: 22px; }
.benefit-card h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin: 0 0 8px; }
.benefit-card p { font-size: .86rem; color: var(--color-text-muted); margin: 0; }

/* ---------- CTAバナー ---------- */
.cta-banner {
  max-width: var(--max-width); margin: 0 auto; padding: 48px 40px;
  background: var(--color-primary-dark); border-radius: 24px; text-align: center;
}
.cta-banner h2 { font-family: var(--font-display); color: #fff; font-size: clamp(1.3rem, 2.4vw, 1.6rem); font-weight: 900; margin: 0 0 10px; }
.cta-banner p { color: #BBD9C7; font-size: .92rem; margin: 0 0 24px; }
.cta-banner-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cta-banner .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.cta-banner .btn-outline:hover { background: rgba(255,255,255,.1); }

.cta-banner-section { padding: 0 0 76px; }

/* ---------- 料金プランカード ---------- */
.pricing-section { padding: 56px 0 24px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; align-items: stretch; }

.plan-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--color-border);
  border-radius: 20px; padding: 28px 24px; position: relative;
}
.plan-card--featured { border: 2px solid var(--color-primary); box-shadow: 0 20px 44px -28px rgba(28,75,54,.4); }

.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--color-primary); color: #fff; font-family: var(--font-display);
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: 5px 16px; border-radius: 999px;
  white-space: nowrap;
}

.plan-name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin: 6px 0 4px; text-align: center; }
.plan-tagline { font-size: .78rem; color: var(--color-text-muted); text-align: center; margin: 0 0 18px; min-height: 2.4em; }

.plan-price { text-align: center; margin: 0 0 22px; }
.plan-price .amount { font-family: var(--font-display); font-weight: 900; font-size: 1.9rem; color: var(--color-text); }
.plan-price .period { font-size: .8rem; color: var(--color-text-muted); margin-left: 2px; }

.plan-feature-list { list-style: none; margin: 0 0 24px; padding: 0; flex: 1; }
.plan-feature-list li {
  display: flex; align-items: flex-start; gap: 8px; font-size: .84rem; color: var(--color-text);
  padding: 8px 0; border-top: 1px solid var(--color-border);
}
.plan-feature-list li:first-child { border-top: none; }
.plan-feature-list li .check { flex-shrink: 0; width: 16px; height: 16px; color: var(--color-primary); margin-top: 2px; }

.plan-card .btn { width: 100%; }

.plans-note { max-width: var(--max-width); margin: 0 auto; padding: 8px 24px 56px; }
.plans-note p { font-size: .8rem; color: var(--color-text-muted); background: var(--color-bg-tint); border: 1px solid var(--color-accent-line); border-radius: 12px; padding: 14px 18px; }

.strength-section { padding: 64px 0; border-bottom: 1px solid var(--color-border); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .benefit-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
  .plan-card--featured { order: -1; }
  .strength-inner { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .benefit-section { padding: 44px 0; }
  .strength-section { padding: 44px 0; }
  .diagram-branches { grid-template-columns: repeat(2, 1fr); }
  .pricing-section { padding: 44px 0 16px; }
  .cta-banner { margin: 0 20px; padding: 36px 24px; }
  .page-title-actions { flex-direction: column; }
  .page-title-actions .btn { width: 100%; }
}

/* ============================================================
   耐震工事ナビ 施工会社詳細ページ(single-contractor.php)専用パーツ
   ※ これまでの style-additions*.css の下に、続けて追記してください
   ============================================================ */

/* ---------- 古い .tn-single-contractor の余白をリセット ----------
   このクラスに前から残っていたpadding/max-widthが、ヒーロー帯が窮屈に見える問題と、
   ページ下部に余分な白帯が残る問題の両方の原因と考えられるため、ここで無効化する。 */
.tn-single-contractor { max-width: none; padding: 0; margin: 0; }

/* ---------- ヒーロー(会社名・写真・対応エリア) ---------- */
.contractor-hero-band {
  border-bottom: 1px solid var(--color-border);
  width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
}
.contractor-hero-band.is-premium { border-bottom: 3px solid var(--color-primary); }

.contractor-hero-content { display: flex; gap: 28px; align-items: flex-start; margin-top: 6px; }

.contractor-hero-photo {
  flex-shrink: 0; width: 120px; height: 120px; border-radius: 20px; overflow: hidden;
  background: linear-gradient(155deg, var(--color-bg-tint-strong), #fff);
  border: 1px solid var(--color-border); color: var(--color-primary-soft);
  display: flex; align-items: center; justify-content: center;
}
.contractor-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.contractor-hero-photo svg { width: 52px; height: 52px; }

.contractor-hero-text h1 {
  font-family: var(--font-display); font-weight: 900; font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin: 0 0 8px; letter-spacing: .01em;
}
.contractor-catch { font-size: .95rem; color: var(--color-text-muted); margin: 0 0 14px; }

.contractor-areas { margin-bottom: 20px; }
.contractor-areas-label { display: block; font-size: .78rem; font-weight: 700; color: var(--color-text-muted); margin-bottom: 8px; }
.area-group-list { display: flex; flex-direction: column; gap: 8px; }
.area-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.area-group-pref {
  font-family: var(--font-display); font-weight: 700; font-size: .82rem; color: var(--color-primary-dark);
  background: var(--color-bg-tint-strong); border: 1px solid var(--color-accent-line);
  border-radius: 8px; padding: 3px 10px; flex-shrink: 0;
  text-decoration: none; display: inline-block;
}
a.area-group-pref:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

.cert-badge--link { text-decoration: none; cursor: pointer; }
.cert-badge--link:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

/* ---------- 施工事例(Repeaterフィールド: case_studies) ---------- */
.case-study-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.case-study-card { background: var(--color-bg-tint); border: 1px solid var(--color-border); border-radius: 14px; padding: 20px; }
.case-study-card h3 { font-family: var(--font-display); font-weight: 700; font-size: .95rem; margin: 0 0 8px; }
.case-study-card p { font-size: .88rem; color: var(--color-text-muted); margin: 0; line-height: 1.8; }

/* ---------- よくある質問(Repeaterフィールド: faqs) ---------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--color-border); border-radius: 14px; padding: 4px 20px; background: #fff; }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px;
  padding: 16px 0; font-weight: 700; font-size: .92rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q-label {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--color-primary); color: #fff;
  font-family: var(--font-display); font-weight: 900; font-size: .78rem;
  display: flex; align-items: center; justify-content: center;
}
.faq-question { flex: 1; }
.faq-chevron { flex-shrink: 0; width: 18px; height: 18px; color: var(--color-text-muted); transition: transform .2s ease; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-answer { display: flex; gap: 12px; padding: 0 0 18px; }
.faq-a-label {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--color-bg-tint-strong); color: var(--color-primary-dark);
  border: 1px solid var(--color-accent-line);
  font-family: var(--font-display); font-weight: 900; font-size: .78rem;
  display: flex; align-items: center; justify-content: center;
}
.faq-answer p { margin: 0; font-size: .88rem; color: var(--color-text-muted); line-height: 1.8; flex: 1; }

/* ---------- 本文コンテンツ ---------- */
.contractor-content { max-width: 880px; margin: 0 auto; padding: 48px 24px 8px; }
.contractor-content .policy-section:first-child { padding-top: 0; }
.tn-prose { font-size: .95rem; line-height: 1.9; color: var(--color-text); white-space: pre-line; }

/* ---------- お問い合わせフォームカード(独立した目立つ帯) ---------- */
.contact-section {
  position: relative; overflow: hidden;
  background: var(--color-bg-tint); border-top: 1px solid var(--color-border);
  padding: 64px 24px 76px;
  width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
}
.contact-section .grid-pattern { mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.9), transparent 75%); }
.contact-section-inner { position: relative; max-width: 880px; margin: 0 auto; }
.contact-card { max-width: 100%; }

.tn-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 4px; }
.tn-form-field--full { grid-column: 1 / -1; }
.tn-form-field label { display: block; font-size: .8rem; font-weight: 700; color: var(--color-text); margin-bottom: 6px; }
.tn-required {
  display: inline-block; font-size: .68rem; font-weight: 700; color: var(--color-primary);
  background: var(--color-bg-tint-strong); border-radius: 999px; padding: 1px 8px; margin-left: 6px; vertical-align: middle;
}

.tn-input, .tn-textarea, .tn-select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--color-border); border-radius: 10px;
  background: var(--color-bg-tint); color: var(--color-text); font-size: .92rem; font-family: inherit;
}
.tn-textarea { min-height: 140px; resize: vertical; }
.tn-input:focus, .tn-textarea:focus, .tn-select:focus {
  outline: 2px solid var(--color-primary); outline-offset: 1px; border-color: var(--color-primary); background: #fff;
}
.tn-select {
  padding-right: 34px; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%235C6F65'%3E%3Cpath d='M5.5 7.5l4.5 4.5 4.5-4.5' stroke='%235C6F65' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}

.tn-radio-group .wpcf7-list-item {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--color-border); border-radius: 999px;
  padding: 8px 16px 8px 12px; margin: 0 8px 8px 0;
  background: #fff; cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.tn-radio-group .wpcf7-list-item:has(input:checked) {
  border-color: var(--color-primary); background: var(--color-bg-tint-strong);
}
.tn-radio-group .wpcf7-list-item:has(input:focus-visible) { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.tn-radio-group label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; margin: 0; }
.tn-radio-group input[type="radio"] { accent-color: var(--color-primary); width: 16px; height: 16px; margin: 0; cursor: pointer; }
.tn-radio-group .wpcf7-list-item-label { font-size: .86rem; color: var(--color-text-muted); }
.tn-radio-group .wpcf7-list-item:has(input:checked) .wpcf7-list-item-label { color: var(--color-primary-dark); font-weight: 700; }

.tn-consent-field { font-size: .8rem; color: var(--color-text-muted); }
.tn-consent-field .wpcf7-list-item { margin: 0; }
.tn-consent-field label { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.tn-consent-field input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; accent-color: var(--color-primary); }
.tn-consent-field a { color: var(--color-primary); }

.tn-form-grid input[type="submit"],
.tn-submit-btn {
  width: 100%; padding: 13px 20px; border-radius: 999px; border: none;
  background: var(--color-primary); color: #fff; font-family: inherit; font-size: .95rem; font-weight: 700;
  cursor: pointer; -webkit-appearance: none; appearance: none;
}
.tn-form-grid input[type="submit"]:hover,
.tn-submit-btn:hover { background: var(--color-primary-dark); }
.tn-form-grid input[type="submit"]:disabled,
.tn-submit-btn:disabled,
.tn-form-grid input[type="submit"].is-sent,
.tn-submit-btn.is-sent { background: var(--color-text-muted); cursor: not-allowed; opacity: .7; pointer-events: none; }

/* CF7の完了/エラーメッセージをブランドカラーに寄せる */
.wpcf7-response-output { margin-top: 16px !important; border-radius: 10px !important; font-size: .85rem !important; }
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--color-primary) !important; color: var(--color-primary-dark) !important; }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output { border-color: #C0533E !important; color: #C0533E !important; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .contractor-hero-content { flex-direction: column; align-items: flex-start; }
  .contractor-hero-photo { width: 88px; height: 88px; border-radius: 16px; }
  .tn-form-grid { grid-template-columns: 1fr; }
  .case-study-grid { grid-template-columns: 1fr; }
  .contact-section { padding: 44px 20px 56px; }
}


/* ============================================================
   耐震工事ナビ エリアアーカイブ(taxonomy-area.php)専用パーツ
   ※ これまでの style-additions*.css の下に、続けて追記してください
   ============================================================ */

.area-archive-content { max-width: var(--max-width); margin: 0 auto; padding: 40px 24px 96px; }

/* ---------- 市区町村の絞り込み ---------- */
.child-area-nav {
  background: var(--color-bg-tint); border: 1px solid var(--color-border); border-radius: 14px;
  padding: 18px 20px; margin-bottom: 28px;
}
.child-area-nav-label { display: block; font-size: .78rem; font-weight: 700; color: var(--color-text-muted); margin-bottom: 10px; }
.child-area-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.child-area-pill {
  font-size: .82rem; font-weight: 600; color: var(--color-primary-dark);
  background: #fff; border: 1px solid var(--color-accent-line); border-radius: 999px;
  padding: 6px 14px; text-decoration: none;
}
.child-area-pill:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

/* ---------- 並び替え ---------- */
.sort-bar { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-bottom: 16px; }
.sort-bar label { font-size: .8rem; font-weight: 700; color: var(--color-text-muted); }
.sort-select {
  padding: 8px 34px 8px 14px; border: 1px solid var(--color-border); border-radius: 999px;
  background: #fff; color: var(--color-text); font-size: .86rem; font-family: inherit;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%235C6F65'%3E%3Cpath d='M5.5 7.5l4.5 4.5 4.5-4.5' stroke='%235C6F65' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 14px; cursor: pointer;
}

/* ---------- ページネーション ---------- */
.pagination { display: flex; justify-content: center; margin-top: 32px; }
.pagination ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.pagination .page-numbers {
  display: flex; align-items: center; justify-content: center; min-width: 38px; height: 38px;
  padding: 0 10px; border-radius: 10px; border: 1px solid var(--color-border);
  color: var(--color-text); text-decoration: none; font-size: .86rem;
}
.pagination a.page-numbers:hover { background: var(--color-bg-tint-strong); border-color: var(--color-accent-line); }
.pagination .current { background: var(--color-primary); border-color: var(--color-primary); color: #fff; font-weight: 700; }
.pagination .dots { border: none; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .sort-bar { justify-content: flex-start; }
}

/* ============================================================
   耐震工事ナビ エリアアーカイブ(taxonomy-area.php)専用パーツ
   ※ これまでの style-additions*.css の下に、続けて追記してください
   ============================================================ */

.area-archive-content { max-width: var(--max-width); margin: 0 auto; padding: 40px 24px 96px; }

/* ---------- エリアから探す:地方ごとのブロック ---------- */
.region-block { margin-bottom: 40px; }
.region-block:last-child { margin-bottom: 0; }
.region-heading {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  color: var(--color-text); margin: 0 0 16px; padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}
.region-pref-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

@media (max-width: 760px) {
  .region-pref-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 市区町村の絞り込み ---------- */
.child-area-nav {
  background: var(--color-bg-tint); border: 1px solid var(--color-border); border-radius: 14px;
  padding: 18px 20px; margin-bottom: 28px;
}
.child-area-nav-label { display: block; font-size: .78rem; font-weight: 700; color: var(--color-text-muted); margin-bottom: 10px; }
.child-area-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.child-area-pill {
  font-size: .82rem; font-weight: 600; color: var(--color-primary-dark);
  background: #fff; border: 1px solid var(--color-accent-line); border-radius: 999px;
  padding: 6px 14px; text-decoration: none;
}
.child-area-pill:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

/* ---------- 並び替え ---------- */
.sort-bar { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-bottom: 16px; }
.sort-bar label { font-size: .8rem; font-weight: 700; color: var(--color-text-muted); }
.sort-select {
  padding: 8px 34px 8px 14px; border: 1px solid var(--color-border); border-radius: 999px;
  background: #fff; color: var(--color-text); font-size: .86rem; font-family: inherit;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%235C6F65'%3E%3Cpath d='M5.5 7.5l4.5 4.5 4.5-4.5' stroke='%235C6F65' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 14px; cursor: pointer;
}

/* ---------- ページネーション ---------- */
.pagination { display: flex; justify-content: center; margin-top: 32px; }
.pagination ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.pagination .page-numbers {
  display: flex; align-items: center; justify-content: center; min-width: 38px; height: 38px;
  padding: 0 10px; border-radius: 10px; border: 1px solid var(--color-border);
  color: var(--color-text); text-decoration: none; font-size: .86rem;
}
.pagination a.page-numbers:hover { background: var(--color-bg-tint-strong); border-color: var(--color-accent-line); }
.pagination .current { background: var(--color-primary); border-color: var(--color-primary); color: #fff; font-weight: 700; }
.pagination .dots { border: none; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .sort-bar { justify-content: flex-start; }
}

/* ============================================================
   耐震工事ナビ 施工会社詳細ページ(single-contractor.php)専用パーツ
   ※ これまでの style-additions*.css の下に、続けて追記してください
   ============================================================ */

/* ---------- 古い .tn-single-contractor の余白をリセット ----------
   このクラスに前から残っていたpadding/max-widthが、ヒーロー帯が窮屈に見える問題と、
   ページ下部に余分な白帯が残る問題の両方の原因と考えられるため、ここで無効化する。 */
.tn-single-contractor { max-width: none; padding: 0; margin: 0; }

/* ---------- ヒーロー(会社名・写真・対応エリア) ---------- */
.contractor-hero-band {
  border-bottom: 1px solid var(--color-border);
  width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
}
.contractor-hero-band.is-premium { border-bottom: 3px solid var(--color-primary); }

.contractor-hero-content { display: flex; gap: 28px; align-items: flex-start; margin-top: 6px; }

.contractor-hero-photo {
  flex-shrink: 0; width: 120px; height: 120px; border-radius: 20px; overflow: hidden;
  background: linear-gradient(155deg, var(--color-bg-tint-strong), #fff);
  border: 1px solid var(--color-border); color: var(--color-primary-soft);
  display: flex; align-items: center; justify-content: center;
}
.contractor-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.contractor-hero-photo svg { width: 52px; height: 52px; }

.contractor-hero-text h1 {
  font-family: var(--font-display); font-weight: 900; font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin: 0 0 8px; letter-spacing: .01em;
}
.contractor-catch { font-size: .95rem; color: var(--color-text-muted); margin: 0 0 14px; }

.contractor-areas { margin-bottom: 20px; }
.contractor-areas-label { display: block; font-size: .78rem; font-weight: 700; color: var(--color-text-muted); margin-bottom: 8px; }
.area-group-list { display: flex; flex-direction: column; gap: 8px; }
.area-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.area-group-pref {
  font-family: var(--font-display); font-weight: 700; font-size: .82rem; color: var(--color-primary-dark);
  background: var(--color-bg-tint-strong); border: 1px solid var(--color-accent-line);
  border-radius: 8px; padding: 3px 10px; flex-shrink: 0;
  text-decoration: none; display: inline-block;
}
a.area-group-pref:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

.cert-badge--link { text-decoration: none; cursor: pointer; }
.cert-badge--link:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

/* ---------- 施工事例(Repeaterフィールド: case_studies) ---------- */
.case-study-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.case-study-card { background: var(--color-bg-tint); border: 1px solid var(--color-border); border-radius: 14px; padding: 20px; }
.case-study-card h3 { font-family: var(--font-display); font-weight: 700; font-size: .95rem; margin: 0 0 8px; }
.case-study-card p { font-size: .88rem; color: var(--color-text-muted); margin: 0; line-height: 1.8; }

/* ---------- よくある質問(Repeaterフィールド: faqs) ---------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--color-border); border-radius: 14px; padding: 4px 20px; background: #fff; }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px;
  padding: 16px 0; font-weight: 700; font-size: .92rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q-label {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--color-primary); color: #fff;
  font-family: var(--font-display); font-weight: 900; font-size: .78rem;
  display: flex; align-items: center; justify-content: center;
}
.faq-question { flex: 1; }
.faq-chevron { flex-shrink: 0; width: 18px; height: 18px; color: var(--color-text-muted); transition: transform .2s ease; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-answer { display: flex; gap: 12px; padding: 0 0 18px; }
.faq-a-label {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--color-bg-tint-strong); color: var(--color-primary-dark);
  border: 1px solid var(--color-accent-line);
  font-family: var(--font-display); font-weight: 900; font-size: .78rem;
  display: flex; align-items: center; justify-content: center;
}
.faq-answer p { margin: 0; font-size: .88rem; color: var(--color-text-muted); line-height: 1.8; flex: 1; }

/* ---------- 本文コンテンツ ---------- */
.contractor-content { max-width: 880px; margin: 0 auto; padding: 48px 24px 8px; }
.contractor-content .policy-section:first-child { padding-top: 0; }
.tn-prose { font-size: .95rem; line-height: 1.9; color: var(--color-text); white-space: pre-line; }

/* ---------- お問い合わせフォームカード(独立した目立つ帯) ---------- */
.contact-section {
  position: relative; overflow: hidden;
  background: var(--color-bg-tint); border-top: 1px solid var(--color-border);
  padding: 64px 24px 76px;
  width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
}
.contact-section .grid-pattern { mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.9), transparent 75%); }
.contact-section-inner { position: relative; max-width: 880px; margin: 0 auto; }
.contact-card { max-width: 100%; }

.tn-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 4px; }
.tn-form-field--full { grid-column: 1 / -1; }
.tn-form-field label { display: block; font-size: .8rem; font-weight: 700; color: var(--color-text); margin-bottom: 6px; }
.tn-required {
  display: inline-block; font-size: .68rem; font-weight: 700; color: var(--color-primary);
  background: var(--color-bg-tint-strong); border-radius: 999px; padding: 1px 8px; margin-left: 6px; vertical-align: middle;
}

.tn-input, .tn-textarea, .tn-select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--color-border); border-radius: 10px;
  background: var(--color-bg-tint); color: var(--color-text); font-size: .92rem; font-family: inherit;
}
.tn-textarea { min-height: 140px; resize: vertical; }
.tn-input:focus, .tn-textarea:focus, .tn-select:focus {
  outline: 2px solid var(--color-primary); outline-offset: 1px; border-color: var(--color-primary); background: #fff;
}
.tn-select {
  padding-right: 34px; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%235C6F65'%3E%3Cpath d='M5.5 7.5l4.5 4.5 4.5-4.5' stroke='%235C6F65' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}

.tn-radio-group .wpcf7-list-item {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--color-border); border-radius: 999px;
  padding: 8px 16px 8px 12px; margin: 0 8px 8px 0;
  background: #fff; cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.tn-radio-group .wpcf7-list-item:has(input:checked) {
  border-color: var(--color-primary); background: var(--color-bg-tint-strong);
}
.tn-radio-group .wpcf7-list-item:has(input:focus-visible) { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.tn-radio-group label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; margin: 0; }
.tn-radio-group input[type="radio"] { accent-color: var(--color-primary); width: 16px; height: 16px; margin: 0; cursor: pointer; }
.tn-radio-group .wpcf7-list-item-label { font-size: .86rem; color: var(--color-text-muted); }
.tn-radio-group .wpcf7-list-item:has(input:checked) .wpcf7-list-item-label { color: var(--color-primary-dark); font-weight: 700; }

.tn-consent-field { font-size: .8rem; color: var(--color-text-muted); }
.tn-consent-field .wpcf7-list-item { margin: 0; }
.tn-consent-field label { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.tn-consent-field input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; accent-color: var(--color-primary); }
.tn-consent-field a { color: var(--color-primary); }

.tn-form-grid input[type="submit"],
.tn-submit-btn {
  width: 100%; padding: 13px 20px; border-radius: 999px; border: none;
  background: var(--color-primary); color: #fff; font-family: inherit; font-size: .95rem; font-weight: 700;
  cursor: pointer; -webkit-appearance: none; appearance: none;
}
.tn-form-grid input[type="submit"]:hover,
.tn-submit-btn:hover { background: var(--color-primary-dark); }

/* CF7の完了/エラーメッセージをブランドカラーに寄せる */
.wpcf7-response-output { margin-top: 16px !important; border-radius: 10px !important; font-size: .85rem !important; }
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--color-primary) !important; color: var(--color-primary-dark) !important; }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output { border-color: #C0533E !important; color: #C0533E !important; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .contractor-hero-content { flex-direction: column; align-items: flex-start; }
  .contractor-hero-photo { width: 88px; height: 88px; border-radius: 16px; }
  .tn-form-grid { grid-template-columns: 1fr; }
  .case-study-grid { grid-template-columns: 1fr; }
  .contact-section { padding: 44px 20px 56px; }
}


