/* 建設業許可研究所 共通スタイル */
:root {
  --navy: #14284b;
  --navy-2: #1f3a68;
  --amber: #e8a317;
  --amber-soft: #fdf3dc;
  --ink: #1d2433;
  --muted: #5b6474;
  --line: #dfe3ea;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --ok: #1f8a55;
  --warn: #c98a00;
  --ng: #c23b33;
  --radius: 10px;
  --max: 1080px;
  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.85;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; }
a { color: var(--navy-2); }
a:hover { color: var(--amber); }

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

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--navy);
  font-family: var(--serif); font-weight: 700; font-size: 1.2rem; letter-spacing: .04em;
}
.logo-mark {
  width: 34px; height: 34px; border-radius: 6px;
  background: var(--navy); color: var(--amber);
  display: grid; place-items: center;
  font-size: .95rem; font-family: var(--serif);
}
.logo small { display: block; font-family: var(--font); font-size: .62rem; color: var(--muted); font-weight: 400; letter-spacing: .08em; line-height: 1.2; }

.nav { display: flex; gap: 22px; align-items: center; }
.nav a { text-decoration: none; color: var(--ink); font-size: .92rem; font-weight: 500; }
.nav a:hover { color: var(--amber); }
.nav .btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; text-align: center; border-bottom: 0; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  background: var(--navy); color: #fff; border: 2px solid var(--navy);
  padding: 10px 22px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  font-family: inherit; transition: .15s;
}
.btn:hover { background: var(--navy-2); color: #fff; }
.btn-amber { background: var(--amber); border-color: var(--amber); color: var(--navy); }
.btn-amber:hover { background: #f2b53a; color: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-lg { padding: 15px 34px; font-size: 1.05rem; }

/* ---------- hero ---------- */
.hero {
  background:
    linear-gradient(135deg, rgba(20,40,75,.97), rgba(31,58,104,.92)),
    repeating-linear-gradient(45deg, transparent 0 22px, rgba(232,163,23,.06) 22px 24px);
  color: #fff; padding: 84px 0 92px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
  background: repeating-linear-gradient(-45deg, var(--amber) 0 18px, var(--navy) 18px 36px);
}
.hero-eyebrow { color: var(--amber); font-weight: 700; letter-spacing: .12em; font-size: .85rem; margin: 0 0 10px; }
.hero h1 {
  font-family: var(--serif); font-size: clamp(1.8rem, 4.6vw, 2.9rem);
  line-height: 1.45; margin: 0 0 20px; letter-spacing: .03em;
}
.hero h1 em { font-style: normal; color: var(--amber); }
.hero p.lead { font-size: 1.05rem; max-width: 640px; opacity: .92; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.hero .btn-ghost:hover { background: #fff; color: var(--navy); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 44px; }
.hero-stats div { border-left: 3px solid var(--amber); padding-left: 12px; }
.hero-stats b { display: block; font-size: 1.5rem; font-family: var(--serif); }
.hero-stats span { font-size: .82rem; opacity: .85; }

/* ---------- sections ---------- */
section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head .en { color: var(--amber); font-weight: 700; letter-spacing: .18em; font-size: .78rem; text-transform: uppercase; }
.section-head h2 { font-family: var(--serif); color: var(--navy); font-size: clamp(1.45rem, 3.4vw, 2rem); margin: 6px 0 10px; line-height: 1.5; }
.section-head p { color: var(--muted); margin: 0 auto; max-width: 680px; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px;
}
.card h3 { margin: 0 0 8px; color: var(--navy); font-size: 1.1rem; line-height: 1.5; }
.card p { margin: 0; color: var(--muted); font-size: .94rem; }
.card .num {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--amber-soft); color: var(--navy); font-weight: 700; margin-bottom: 12px;
}
a.card { text-decoration: none; display: block; transition: .15s; }
a.card:hover { border-color: var(--amber); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(20,40,75,.08); }
.card .more { display: inline-block; margin-top: 14px; color: var(--navy-2); font-weight: 700; font-size: .9rem; }

/* compare table */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; background: #fff; font-size: .94rem; min-width: 520px; }
.tbl th, .tbl td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
.tbl thead th { background: var(--navy); color: #fff; font-weight: 700; }
.tbl tbody th { background: var(--bg-alt); color: var(--navy); width: 26%; }

/* 29 trades chips */
.trades { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.trades span {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-size: .88rem;
}
.trades span.ichishiki { background: var(--navy); color: #fff; border-color: var(--navy); }

/* CTA band */
.cta-band {
  background: var(--navy); color: #fff; border-radius: 14px;
  padding: 40px 32px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  border-left: 8px solid var(--amber);
}
.cta-band h2 { font-family: var(--serif); margin: 0 0 6px; font-size: 1.45rem; }
.cta-band p { margin: 0; opacity: .88; }

/* FAQ */
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 12px; padding: 0 20px;
}
.faq summary {
  cursor: pointer; font-weight: 700; color: var(--navy); padding: 18px 28px 18px 0;
  list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q."; color: var(--amber); margin-right: 8px; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.4rem; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* contact */
.contact-box { display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; }
@media (max-width: 820px) { .contact-box { grid-template-columns: 1fr; } }
.contact-info dl { margin: 0; }
.contact-info dt { font-weight: 700; color: var(--navy); margin-top: 14px; }
.contact-info dd { margin: 0; color: var(--muted); }
.form label { display: block; font-weight: 700; font-size: .9rem; margin: 14px 0 6px; color: var(--navy); }
.form input, .form select, .form textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; background: #fff;
}
.form textarea { min-height: 130px; resize: vertical; }
.form .note { font-size: .8rem; color: var(--muted); margin-top: 10px; }

/* article pages */
.page-hero { background: var(--navy); color: #fff; padding: 48px 0 40px; border-bottom: 6px solid var(--amber); }
.page-hero h1 { font-family: var(--serif); margin: 0; font-size: clamp(1.5rem, 4vw, 2.2rem); line-height: 1.5; }
.page-hero p { margin: 10px 0 0; opacity: .88; }
.breadcrumb { font-size: .8rem; opacity: .8; margin-bottom: 8px; }
.breadcrumb a { color: #fff; }

.article { max-width: 800px; margin: 0 auto; padding: 48px 16px 72px; }
.article h2 {
  font-family: var(--serif); color: var(--navy); font-size: 1.45rem;
  border-left: 6px solid var(--amber); padding-left: 14px; margin: 52px 0 18px; line-height: 1.5;
}
.article h2:first-child { margin-top: 0; }
.article h3 { color: var(--navy); font-size: 1.1rem; margin: 30px 0 10px; }
.article ul, .article ol { padding-left: 1.4em; }
.article li { margin-bottom: 6px; }
.toc { background: var(--bg-alt); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 36px; }
.toc b { color: var(--navy); }
.toc ol { margin: 8px 0 0; }
.point {
  background: var(--amber-soft); border-left: 4px solid var(--amber);
  padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin: 20px 0;
}
.point b:first-child { color: var(--navy); }
.disclaimer { font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 48px; padding-top: 16px; }

/* footer */
.site-footer { background: #0e1c36; color: #c9d1e0; padding: 48px 0 28px; font-size: .88rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
@media (max-width: 820px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; margin: 0 0 10px; font-size: .95rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #c9d1e0; text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.site-footer .copy { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 18px; text-align: center; font-size: .78rem; opacity: .7; }

.placeholder { background: #fff3c4; color: #7a5a00; padding: 0 4px; border-radius: 3px; }
.center { text-align: center; }
.mt-32 { margin-top: 32px; }
