:root {
  --bg: #f4f3ef;
  --ink: #2b2927;
  --link: #234a66;
  --accent: #b14a2b;
  --line: #d9d6cf;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--ink); font-family: "Noto Sans JP", sans-serif; font-size: 16px; line-height: 1.9; }
a { color: inherit; }
.container { width: min(100% - 96px, 1120px); margin-inline: auto; }
.reading-width { max-width: 1120px; }

.site-header { min-height: 96px; padding: 0 4.5vw; border-bottom: 1px solid var(--line); background: rgba(244, 243, 239, .96); display: flex; align-items: center; position: relative; z-index: 20; }
.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--ink); text-decoration: none; font-family: "Noto Serif JP", serif; font-size: 15px; letter-spacing: .08em; }
.brand-mark { width: 38px; height: 38px; border: 1px solid currentColor; display: grid; place-items: center; font-size: 21px; line-height: 1; }

.hero { min-height: 730px; padding: clamp(120px, 13vw, 188px) 0 120px; }
.hero-inner { padding-left: 0; }
@media (min-width: 821px) {
  .hero-inner {
    width: min(calc(100% - 48px), 1180px);
    margin-left: max(48px, calc((100vw - 1120px) / 2));
    margin-right: 0;
  }
}
.eyebrow { margin: 0 0 22px; font-size: 22px; letter-spacing: .08em; }
.hero h1 { margin: 0; font-family: "Noto Serif JP", serif; font-size: clamp(42px, 4.2vw, 64px); font-weight: 400; line-height: 1.28; letter-spacing: .015em; }
.hero-copy { margin: 62px 0 0; font-family: "Noto Serif JP", serif; font-size: clamp(24px, 2.3vw, 34px); line-height: 1.65; letter-spacing: .055em; }

.section-pad, .content-section { border-top: 1px solid var(--line); }
.intro { padding: 138px 0 150px; }
.content-section { padding: 158px 0 170px; }
.section-label { margin: 0 0 34px; display: flex; align-items: center; gap: 20px; }
.section-label h2 { margin: 0; font-family: "Noto Serif JP", serif; font-size: clamp(33.6px, 3vw, 45.6px); font-weight: 400; line-height: 1.4; letter-spacing: .05em; }
.section-number { font-family: "Montserrat", "Noto Sans JP", sans-serif; font-size: clamp(32.4px, 2.64vw, 40.8px); line-height: 1; letter-spacing: .02em; white-space: nowrap; }
.section-label--intro .section-number { font-size: 25px; }
.divider { flex: 0 0 1px; width: 1px; height: 34px; background: currentColor; opacity: .72; }
.lead-copy, .feature-copy { margin: 0; font-family: "Noto Serif JP", serif; font-size: clamp(25px, 2vw, 32px); line-height: 1.75; letter-spacing: .035em; }
.lead-copy { margin-top: 34px; }
.body-copy { max-width: 1080px; margin-top: 66px; font-size: clamp(16px, 1.28vw, 19px); line-height: 1.9; letter-spacing: .025em; }
.body-copy p { margin: 0 0 27px; }
.body-copy p:last-child { margin-bottom: 0; }

/* 屋根技術ページ固有：図版とキャプション */
.figure { margin: 96px auto 0; text-align: center; }
.figure img { display: block; max-width: 100%; height: auto; margin-inline: auto; }
.figure figcaption { margin-top: 20px; font-size: 14px; line-height: 1.7; letter-spacing: .05em; }
.figure-plan { max-width: 880px; }
.figure-wide { max-width: 1120px; }
.figure-platform { max-width: 1080px; }
.figure-pair { margin-top: 96px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.figure-pair .figure { margin-top: 0; }
.figure-pair .figure img { width: 100%; aspect-ratio: 1.55 / 1; object-fit: contain; }

@media (max-width: 820px) {
  body { font-size: 16px; line-height: 1.85; }
  .container { width: min(100% - 44px, 680px); }
  .site-header { min-height: 76px; padding: 0 22px; }
  .brand { gap: 10px; font-size: 12px; letter-spacing: .04em; }
  .brand-mark { width: 34px; height: 34px; font-size: 18px; }
  .hero { min-height: 610px; padding: 105px 0 96px; }
  .hero-inner { padding-left: 0; }
  .eyebrow { margin: 0 0 24px; font-size: 18px; }
  .hero h1 { max-width: 330px; font-size: clamp(37px, 11.5vw, 50px); line-height: 1.3; }
  .hero-copy { margin-top: 58px; font-size: clamp(22px, 6.2vw, 28px); line-height: 1.72; letter-spacing: .035em; }
  .pc-only { display: none; }
  .intro, .content-section { padding: 100px 0 112px; }
  .section-label { margin-bottom: 31px; align-items: center; flex-wrap: wrap; gap: 14px; }
  .section-label h2 { width: 100%; margin-top: 5px; font-size: clamp(29px, 8vw, 34px); }
  .section-number { font-size: clamp(28px, 7.5vw, 31px); }
  .section-label--intro .section-number { font-size: 25px; }
  .lead-copy, .feature-copy { margin: 0; overflow-wrap: anywhere; font-size: clamp(21px, 5.65vw, 25px); line-height: 1.75; }
  .body-copy { margin-top: 51px; max-width: 1020px; font-size: 16px; line-height: 2; letter-spacing: .015em; }
  .body-copy p { margin-bottom: 26px; }
  .figure { margin-top: 64px; }
  .figure figcaption { margin-top: 16px; font-size: 13px; }
  .figure-pair { margin-top: 64px; grid-template-columns: 1fr; gap: 56px; }
  .figure-pair .figure img { aspect-ratio: auto; object-fit: fill; }
}

@media (min-width: 821px) {
  .section-label--two-line { align-items: flex-start; }
  .section-label--two-line .section-number,
  .section-label--two-line .divider { margin-top: 8px; }
}

@media (max-width: 390px) {
  .container { width: calc(100% - 36px); }
  .brand > span:last-child { max-width: 138px; line-height: 1.35; }
  .hero h1 { font-size: 36px; }
  .section-label { gap: 11px; }
  .section-label h2 { font-size: 29px; }
  .section-label--intro h2 { font-size: 26px; letter-spacing: .03em; }
  .section-number { font-size: 28px; }
  .lead-copy, .feature-copy { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
