:root {
  --ink: #13202a;
  --muted: #657681;
  --line: #dce8ed;
  --ice: #eaf8fc;
  --blue: #2097b7;
  --blue-deep: #087391;
  --silver: #f5f7f8;
  --white: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f7fcfe 0, #fff 32rem);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.75;
}

a { color: inherit; }

.site-header {
  border-bottom: 1px solid rgba(19, 32, 42, .08);
  background: rgba(255,255,255,.88);
}

.header-inner {
  width: min(1080px, calc(100% - 40px));
  margin: auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { font-weight: 750; text-decoration: none; letter-spacing: .02em; }
.location { color: var(--muted); font-size: .9rem; }

main, footer { width: min(980px, calc(100% - 40px)); margin-inline: auto; }

.intro { padding: 72px 0 38px; }
.eyebrow, .section-number { margin: 0 0 10px; color: var(--blue-deep); font-weight: 800; letter-spacing: .16em; font-size: .78rem; }
h1 { margin: 0; max-width: 900px; font-size: clamp(2.35rem, 5vw, 4rem); line-height: 1.14; letter-spacing: -.04em; }
h1 span { color: var(--blue-deep); }
.lead { max-width: 700px; margin: 24px 0 0; color: var(--muted); font-size: 1.06rem; }

.summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 74px;
}

.summary article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 16px 42px rgba(29, 79, 95, .06);
}

.summary span { color: var(--muted); font-weight: 700; }
.summary strong { display: block; font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1.15; letter-spacing: -.04em; }
.summary strong small { margin-left: 4px; color: var(--blue-deep); font-size: .38em; }
.summary p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }

.viewer, .comparison, .method { padding: 42px 0 70px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
h2 { margin: 0; font-size: clamp(1.65rem, 4vw, 2.45rem); line-height: 1.25; letter-spacing: -.02em; }

.tabs { display: flex; padding: 4px; border-radius: 999px; background: var(--silver); }
.tab { min-width: 82px; border: 0; border-radius: 999px; padding: 10px 18px; background: transparent; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; }
.tab.active { background: var(--ink); color: #fff; }
.tab:focus-visible, .links a:focus-visible, .cta a:focus-visible { outline: 3px solid #6bd3ea; outline-offset: 3px; }

.chart-note { color: var(--muted); margin: 22px 0 28px; }
.chart { display: grid; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 70px 1fr 54px; align-items: center; gap: 14px; }
.bar-label { color: var(--muted); font-weight: 700; }
.bar-track { height: 34px; border-radius: 8px; background: var(--silver); overflow: hidden; }
.bar-fill { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #8ed9e9, var(--blue)); transition: width .45s ease; }
.bar-value { text-align: right; font-weight: 800; }

.comparison-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.comparison-grid article { padding: 25px; border-left: 3px solid var(--blue); background: var(--silver); }
.comparison-grid strong { font-size: 2.5rem; line-height: 1; }
.comparison-grid span { margin-left: 3px; color: var(--muted); }
.comparison-grid p { margin: 9px 0 0; font-weight: 700; }
.comparison-grid small { color: var(--blue-deep); font-weight: 800; }

.method > p { max-width: 780px; color: var(--muted); }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.links a { padding: 10px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--blue-deep); font-weight: 700; text-decoration: none; }

.cta { margin: 14px 0 72px; padding: 44px; border-radius: 24px; background: var(--ink); color: #fff; }
.cta p { margin: 0 0 6px; color: #b8dce6; }
.cta a { display: inline-block; margin-top: 22px; padding: 13px 22px; border-radius: 10px; background: #fff; color: var(--ink); font-weight: 800; text-decoration: none; }

footer { padding: 28px 0 54px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
footer p { margin: 2px 0; }

@media (max-width: 700px) {
  .header-inner, main, footer { width: min(100% - 28px, 980px); }
  .intro { padding-top: 48px; }
  h1 { font-size: clamp(1.75rem, 8.5vw, 2.35rem); }
  .summary, .comparison-grid { grid-template-columns: 1fr; }
  .summary { margin-bottom: 46px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .bar-row { grid-template-columns: 54px 1fr 44px; gap: 9px; }
  .bar-track { height: 28px; }
  .cta { padding: 30px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .bar-fill { transition: none; }
}
