/* ===========================================
   国土戦略行政書士事務所 共通スタイル
   業務別ページ用デザインシステム
   =========================================== */

:root {
  --navy: #0d2240;
  --navy-deep: #081730;
  --gold: #b08d3c;
  --gold-light: #d4b56a;
  --cream: #f5f3ee;
  --cream-light: #faf8f3;
  --text: #2c2c2c;
  --text-mute: #6b6b6b;
  --line: #d9d4c7;
  --error: #c84a3a;
  --success: #2d7a4f;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Serif JP", "游明朝", "Yu Mincho", serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== Header ===== */
.header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 38px; height: 38px;
  border: 1.5px solid var(--gold); color: var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-size: 20px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.brand-name { font-size: 17px; font-weight: 600; letter-spacing: 0.1em; color: var(--navy); }
.brand-sub { font-size: 10px; letter-spacing: 0.25em; color: var(--text-mute); font-family: "Cormorant Garamond", serif; }
.back-link { font-size: 13px; color: var(--navy); letter-spacing: 0.08em; }
.back-link:hover { color: var(--gold); }
.header-cta { display: flex; gap: 14px; align-items: center; }
.cta-btn {
  display: inline-block;
  background: var(--gold);
  color: #fff !important;
  padding: 10px 18px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.1em;
  border: 1px solid var(--gold);
  transition: all 0.2s;
}
.cta-btn:hover { background: var(--navy); border-color: var(--navy); }
.cta-btn.outline { background: transparent; color: var(--navy) !important; }
.cta-btn.outline:hover { background: var(--navy); color: #fff !important; }
.cta-btn.large { padding: 16px 32px; font-size: 14px; }

/* ===== Breadcrumb ===== */
.crumb {
  background: var(--cream-light);
  padding: 12px 24px;
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--line);
}
.crumb-inner { max-width: 1100px; margin: 0 auto; }
.crumb a { color: var(--text-mute); }
.crumb a:hover { color: var(--gold); }
.crumb span { margin: 0 8px; color: var(--line); }

/* ===== Page Hero ===== */
.page-hero {
  background:
    linear-gradient(135deg, rgba(13,34,64,0.94), rgba(8,23,48,0.92));
  background-color: var(--navy);
  color: #fff;
  padding: 80px 24px 90px;
  text-align: center;
  position: relative;
}
.page-hero::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.page-hero-eyebrow {
  font-family: "Cormorant Garamond", serif;
  font-size: 13px; letter-spacing: 0.4em;
  color: var(--gold-light);
  display: block; margin-bottom: 14px;
}
.page-hero h1 {
  font-size: clamp(24px, 3.6vw, 36px);
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 22px;
  line-height: 1.5;
}
.page-hero h1 em { color: var(--gold-light); font-style: normal; }
.page-hero .lead {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.06em;
  line-height: 2;
  max-width: 720px;
  margin: 0 auto 28px;
}
.page-hero-meta {
  display: flex; justify-content: center; gap: 20px; flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.12em;
}
.page-hero-meta span { padding: 0 12px; border-left: 1px solid rgba(255,255,255,0.25); }
.page-hero-meta span:first-child { border-left: none; }

/* ===== Sections ===== */
section { padding: 70px 24px; }
.section-inner { max-width: 980px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-eyebrow {
  font-family: "Cormorant Garamond", serif;
  font-size: 13px; letter-spacing: 0.4em;
  color: var(--gold);
  display: block; margin-bottom: 10px;
}
.section-title {
  font-size: clamp(22px, 2.8vw, 28px);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--navy);
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
}
.section-title::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  width: 40px; height: 1px; background: var(--gold);
  transform: translateX(-50%);
}

/* ===== Article body ===== */
.article { background: #fff; padding: 50px 60px; margin-bottom: 50px; }
.article h2 {
  font-size: 22px; font-weight: 600;
  color: var(--navy); letter-spacing: 0.08em;
  margin: 40px 0 22px;
  padding-left: 16px;
  border-left: 4px solid var(--gold);
  line-height: 1.6;
}
.article h2:first-child { margin-top: 0; }
.article h3 {
  font-size: 17px; font-weight: 600;
  color: var(--navy); letter-spacing: 0.05em;
  margin: 28px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}
.article p { font-size: 15px; line-height: 2; margin-bottom: 18px; }
.article p b, .article p strong { color: var(--navy); }
.article ul, .article ol { margin: 0 0 18px 0; padding-left: 0; list-style: none; }
.article ul li {
  font-size: 14px;
  padding: 8px 0 8px 22px;
  position: relative;
  line-height: 1.9;
}
.article ul li::before {
  content: ""; position: absolute; left: 0; top: 18px;
  width: 10px; height: 1px; background: var(--gold);
}
.article ol { counter-reset: ol-counter; padding-left: 4px; }
.article ol li {
  counter-increment: ol-counter;
  font-size: 14px;
  padding: 8px 0 8px 36px;
  position: relative;
  line-height: 1.9;
}
.article ol li::before {
  content: counter(ol-counter);
  position: absolute; left: 0; top: 4px;
  font-family: "Cormorant Garamond", serif;
  font-size: 18px; color: var(--gold);
  font-weight: 600;
  width: 26px; text-align: center;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}
.article blockquote {
  background: var(--cream-light);
  border-left: 3px solid var(--gold);
  padding: 18px 24px;
  margin: 22px 0;
  font-size: 14px;
  color: var(--text-mute);
  line-height: 2;
}
.article blockquote b { color: var(--navy); }

/* ===== Info box ===== */
.info-box {
  background: var(--cream-light);
  padding: 28px 32px;
  margin: 24px 0;
  border: 1px solid var(--line);
}
.info-box.gold { border-color: var(--gold); border-width: 1px; border-left-width: 3px; }
.info-box-title {
  font-size: 16px; font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}
.info-box dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px 18px;
  font-size: 14px;
}
.info-box dt { color: var(--gold); font-weight: 600; letter-spacing: 0.08em; }
.info-box dd { color: var(--text); }

/* ===== Spec table ===== */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  background: #fff;
  border: 1px solid var(--line);
}
.spec-table th, .spec-table td {
  padding: 14px 18px;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.8;
}
.spec-table th {
  background: var(--navy);
  color: #fff;
  width: 30%;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
.spec-table td b { color: var(--navy); }
.spec-table td .price-tag {
  display: inline-block;
  font-family: "Cormorant Garamond", serif;
  color: var(--gold);
  font-size: 18px;
  font-weight: 600;
  margin-right: 6px;
}

/* ===== Card grid ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.feature-card {
  background: #fff;
  padding: 32px 28px;
  border-top: 3px solid var(--gold);
  box-shadow: 0 2px 12px rgba(13,34,64,0.05);
}
.feature-card h3 {
  font-size: 16px; font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  line-height: 1.6;
}
.feature-card p { font-size: 13px; color: var(--text-mute); line-height: 1.9; }

/* ===== Subsidy index card ===== */
.subsidy-card {
  background: #fff;
  padding: 32px 32px 28px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  transition: all 0.2s;
  display: block;
}
.subsidy-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(13,34,64,0.08);
}
.subsidy-card-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}
.subsidy-card h3 {
  font-size: 19px; font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.06em;
}
.subsidy-card .max-amount {
  font-family: "Cormorant Garamond", serif;
  font-size: 18px; color: var(--gold);
  font-weight: 600;
  white-space: nowrap;
}
.subsidy-card .max-amount small { font-size: 11px; color: var(--text-mute); font-family: "Noto Serif JP", serif; margin-right: 4px; }
.subsidy-card p {
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.9;
  margin-bottom: 16px;
}
.subsidy-card .meta-row {
  display: flex; gap: 16px; flex-wrap: wrap;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.subsidy-card .meta-row span { display: flex; align-items: center; gap: 4px; }
.subsidy-card .meta-row b { color: var(--navy); font-weight: 600; }
.subsidy-card .more {
  text-align: right;
  margin-top: 14px;
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.1em;
}

/* ===== Step list ===== */
.step-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 12px;
}
.step-list .step {
  background: #fff;
  border: 1px solid var(--line);
  padding: 24px 14px;
  text-align: center;
  position: relative;
}
.step .num {
  font-family: "Cormorant Garamond", serif;
  font-size: 26px; color: var(--gold); line-height: 1;
  margin-bottom: 8px;
}
.step .ttl { font-size: 14px; font-weight: 600; color: var(--navy); letter-spacing: 0.04em; margin-bottom: 6px; }
.step .desc { font-size: 11px; color: var(--text-mute); line-height: 1.7; }

/* ===== FAQ ===== */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); background: #fff; }
.faq-q {
  padding: 22px 50px 22px 50px;
  cursor: pointer;
  position: relative;
  font-size: 15px; font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.04em;
  list-style: none;
  line-height: 1.7;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::before {
  content: "Q"; position: absolute; left: 18px; top: 22px;
  font-family: "Cormorant Garamond", serif;
  font-size: 20px; color: var(--gold);
}
.faq-q::after {
  content: "+"; position: absolute; right: 22px; top: 18px;
  font-size: 22px; color: var(--gold); transition: transform 0.2s;
}
details[open] .faq-q::after { content: "−"; }
.faq-a {
  padding: 0 22px 24px 50px;
  font-size: 14px; line-height: 2;
  color: var(--text);
  position: relative;
  background: var(--cream-light);
  padding-top: 18px;
}
.faq-a::before {
  content: "A"; position: absolute; left: 18px; top: 18px;
  font-family: "Cormorant Garamond", serif;
  font-size: 20px; color: var(--navy);
}

/* ===== CTA section ===== */
.cta-section {
  background:
    linear-gradient(135deg, rgba(13,34,64,0.94), rgba(8,23,48,0.94));
  background-color: var(--navy);
  color: #fff;
  text-align: center;
  padding: 80px 24px;
}
.cta-section h2 {
  font-size: 26px;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  font-weight: 500;
}
.cta-section h2 .section-eyebrow { color: var(--gold-light); }
.cta-section p {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 30px;
  line-height: 2;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.cta-section .cta-btn { margin: 0 6px 10px; }
.cta-section .cta-btn.outline { color: #fff !important; border-color: rgba(255,255,255,0.5); }
.cta-section .cta-btn.outline:hover { background: #fff; color: var(--navy) !important; border-color: #fff; }

/* ===== Footer ===== */
.footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 36px 24px;
  font-size: 12px;
  letter-spacing: 0.15em;
}
.footer-links { margin-bottom: 14px; }
.footer-links a { color: rgba(255,255,255,0.7); margin: 0 12px; }
.footer-links a:hover { color: var(--gold-light); }

/* ===== Responsive ===== */
@media (max-width: 800px) {
  .header-cta { gap: 8px; }
  .header-cta .cta-btn { padding: 8px 12px; font-size: 11px; }
  .page-hero { padding: 50px 18px 60px; }
  .page-hero .lead { font-size: 13px; }
  section { padding: 50px 18px; }
  .article { padding: 28px 22px; }
  .article h2 { font-size: 19px; }
  .info-box { padding: 22px 20px; }
  .info-box dl { grid-template-columns: 1fr; gap: 4px 0; }
  .info-box dt { padding-top: 12px; border-top: 1px solid var(--line); }
  .info-box dt:first-child { padding-top: 0; border-top: none; }
  .card-grid, .card-grid.three { grid-template-columns: 1fr; }
  .step-list { grid-template-columns: repeat(2, 1fr); }
  .spec-table th, .spec-table td { display: block; width: 100%; }
  .spec-table th { padding: 10px 14px; }
  .cta-section h2 { font-size: 20px; }
}
