/* barometricpressuretracker.com — one small stylesheet, no framework. Brand: navy #16294F, amber #F2B21B. */
:root {
  --navy: #16294f;
  --amber: #f2b21b;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #eef1f7;
  --text: #18223a;
  --muted: #4a5672;
  --line: #dde2ec;
  --heading: #16294f;
  --link: #1d4fa3;
  --btn-bg: #16294f;
  --btn-ink: #ffffff;
  --soft: #fdf3d7;
  --soft-line: #f2b21b;
  --pro-bg: #16294f;
  --pro-ink: #ffffff;
  --free-bg: #e3f1e6;
  --free-ink: #1f5a2c;
  --chart-line: #16294f;
  --chart-area: rgba(22, 41, 79, 0.08);
  --chart-drop: rgba(242, 178, 27, 0.32);
  --shadow: 0 1px 2px rgba(22, 41, 79, 0.06), 0 8px 24px rgba(22, 41, 79, 0.08);
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1830;
    --surface: #13223f;
    --surface-2: #182a4d;
    --text: #e7ebf4;
    --muted: #b0bad0;
    --line: #2a3e66;
    --heading: #ffffff;
    --link: #f6c955;
    --btn-bg: #f2b21b;
    --btn-ink: #16294f;
    --soft: #1c2f57;
    --pro-bg: #f2b21b;
    --pro-ink: #16294f;
    --free-bg: rgba(120, 200, 140, 0.16);
    --free-ink: #a8e2b6;
    --chart-line: #f2b21b;
    --chart-area: rgba(242, 178, 27, 0.10);
    --chart-drop: rgba(242, 178, 27, 0.30);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  overflow-x: hidden;
}
:lang(ja) body, body:lang(ja) { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif; line-height: 1.8; }
img, svg, picture { max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { color: var(--heading); line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.1rem); margin: 0.2em 0 0.4em; }
h2 { font-size: clamp(1.45rem, 3.4vw, 2rem); margin: 0 0 0.5em; }
h3 { font-size: 1.08rem; margin: 0 0 0.35em; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--btn-bg); color: var(--btn-ink); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* header: row 1 brand + language, row 2 nav + get-the-app on phones; one row from 860px */
.site-header {
  display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap;
  max-width: 1160px; margin: 0 auto; padding: 12px 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--heading); font-weight: 700; text-decoration: none; flex: 1 1 auto; min-width: 0; order: 1; }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand img { border-radius: 9px; flex: none; }
.lang { order: 2; position: relative; }
.nav { order: 3; display: flex; gap: 16px; flex: 1 1 60%; min-width: 0; overflow-x: auto; font-size: 0.95rem; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; white-space: nowrap; padding: 4px 0; }
.nav a:hover { color: var(--link); }
.nav-get { order: 4; background: var(--btn-bg); color: var(--btn-ink); text-decoration: none; font-weight: 600; padding: 8px 14px; border-radius: 999px; font-size: 0.92rem; white-space: nowrap; }
.lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.9rem; color: var(--text); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary .icon { width: 18px; height: 18px; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; min-width: 160px; z-index: 5; }
.lang-menu a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text); text-decoration: none; }
.lang-menu a:hover, .lang-menu a[aria-current] { background: var(--surface-2); }
@media (max-width: 859px) { .lang summary span:last-child { display: none; } }
@media (min-width: 860px) {
  .site-header { flex-wrap: nowrap; padding: 14px 16px; }
  .brand { flex: 0 0 auto; }
  .nav { order: 2; flex: 1 1 auto; margin-left: 24px; overflow: visible; }
  .lang { order: 3; }
}

main { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.kicker { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; font-weight: 700; color: var(--muted); margin: 0 0 0.3em; }
.lead { font-size: 1.15rem; color: var(--text); }
.note { color: var(--muted); font-size: 0.95rem; }
.section { padding: 48px 0; border-top: 1px solid var(--line); }
.section-intro { max-width: 760px; color: var(--muted); }
.tint { background: var(--surface-2); border-radius: var(--radius); padding: 40px 20px; border: 0; margin: 24px 0; }

/* hero */
.hero { display: grid; gap: 28px; padding: 24px 0 40px; align-items: center; }
.hero-copy .lead { max-width: 640px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 18px 0 8px; }
.store-badge { display: inline-block; line-height: 0; border-radius: 10px; }
.store-badge img { height: 50px; width: auto; }
.cta-note { color: var(--muted); font-size: 0.92rem; }
.hero-shot, .side-shot { margin: 0; justify-self: center; }
.hero-shot img, .side-shot img, .shot-strip img {
  border-radius: 22px; box-shadow: var(--shadow); display: block; width: 100%;
}
.hero-shot { max-width: 300px; }
.side-shot { max-width: 260px; }
@media (min-width: 860px) {
  .hero { grid-template-columns: 1.25fr 0.75fr; padding-top: 40px; }
  .hero-shot { max-width: 330px; }
}

.proof { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 8px; }
.proof li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 0.9rem; color: var(--muted); }

/* feature cards */
.cards { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.card-icon { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 12px; background: var(--soft); color: var(--heading); margin-bottom: 10px; }
.tier { display: inline-block; vertical-align: middle; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.03em; padding: 2px 8px; border-radius: 999px; margin-left: 4px; white-space: nowrap; }
.tier-free { background: var(--free-bg); color: var(--free-ink); }
.tier-pro { background: var(--pro-bg); color: var(--pro-ink); }
.tier-both { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }

/* pattern split */
.split { display: grid; gap: 28px; align-items: start; }
@media (min-width: 860px) { .split { grid-template-columns: 1.3fr 0.7fr; } }
.steps { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.steps p { margin: 0; color: var(--muted); }
.step-n { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--amber); color: #16294f; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.research p { max-width: 780px; }

/* screenshots */
.shot-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 2px 12px; }
.shot-strip figure { margin: 0; scroll-snap-align: start; }
.shot-strip figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 8px; text-align: center; }

/* plans */
.plans { display: grid; gap: 14px; margin-top: 20px; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.plan-pro { border: 2px solid var(--amber); }
.plan ul { margin: 0; padding-left: 1.2em; }
.plan li { margin-bottom: 6px; }

/* privacy */
.privacy { display: grid; gap: 16px; }
@media (min-width: 760px) { .privacy { grid-template-columns: 64px 1fr; } }
.privacy-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--soft); display: flex; align-items: center; justify-content: center; color: var(--heading); }
.privacy p { max-width: 780px; }

/* link cards */
.link-cards { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
@media (min-width: 700px) { .link-cards { grid-template-columns: repeat(2, 1fr); } }
.link-cards a { display: block; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: var(--text); }
.link-cards a:hover { border-color: var(--amber); }
.link-cards strong { display: block; color: var(--heading); margin-bottom: 4px; }
.link-cards span { color: var(--muted); font-size: 0.95rem; }
.lang-tag { display: inline-block; font-size: 0.72rem; font-weight: 600; border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; margin-left: 4px; color: var(--muted); vertical-align: middle; }

/* faq */
.faq-list { display: grid; gap: 12px; max-width: 860px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.faq-a { color: var(--muted); }
.faq-a p:last-child { margin-bottom: 0; }

/* final */
.final { text-align: center; padding: 56px 16px; margin: 24px 0 48px; background: var(--navy); color: #fff; border-radius: 24px; }
.final h2 { color: #fff; }
.final p { color: #d7deec; }
.final img { border-radius: 16px; }
.final .cta-row { justify-content: center; }
.final a { color: #f6c955; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 16px 40px; max-width: 1160px; margin: 0 auto; color: var(--muted); font-size: 0.93rem; }
.footer-top { display: grid; gap: 20px; }
@media (min-width: 860px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--heading); text-decoration: none; margin-bottom: 6px; }
.footer-brand img { border-radius: 7px; }
.footer-links, .footer-langs { display: flex; flex-wrap: wrap; gap: 8px 16px; align-content: start; }
.footer-links a, .footer-langs a { color: var(--muted); }
.footer-note { margin-top: 20px; max-width: 820px; }
.copyright { font-size: 0.85rem; }

/* guide + forecast pages */
.crumbs { font-size: 0.9rem; color: var(--muted); padding: 8px 0 0; }
.crumbs a { color: var(--muted); }
.page-head { padding: 16px 0 8px; max-width: 820px; }
.meta { color: var(--muted); font-size: 0.92rem; }
.answer { background: var(--soft); border-left: 4px solid var(--soft-line); border-radius: 12px; padding: 16px 20px; max-width: 820px; margin: 8px 0 24px; }
.answer p:last-child { margin-bottom: 0; }
.answer-label { font-weight: 700; color: var(--heading); margin-bottom: 4px; }
.toc { max-width: 820px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 20px; margin-bottom: 8px; }
.toc p { font-weight: 700; margin: 0 0 6px; color: var(--heading); }
.toc ol { margin: 0; padding-left: 1.2em; columns: 1; }
@media (min-width: 760px) { .toc ol { columns: 2; column-gap: 32px; } }
.prose { max-width: 820px; }
.prose-section { padding-top: 28px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.5em; }
.data-table { border-collapse: collapse; width: 100%; margin: 8px 0 18px; font-size: 0.97rem; background: var(--surface); border-radius: 12px; overflow: hidden; }
.table-wrap { overflow-x: auto; }
.data-table caption { text-align: left; color: var(--muted); font-size: 0.9rem; padding-bottom: 6px; }
.data-table th, .data-table td { border-bottom: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.data-table thead th { background: var(--surface-2); color: var(--heading); }
@media (max-width: 640px) {
  .data-table.stack caption { display: block; width: 100%; padding: 0 0 6px; }
  .data-table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data-table.stack, .data-table.stack tbody, .data-table.stack tr, .data-table.stack th, .data-table.stack td { display: block; width: 100%; }
  .data-table.stack tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .data-table.stack th[scope="row"] { border: 0; padding: 4px 14px; font-size: 1.02rem; }
  .data-table.stack td { border: 0; padding: 4px 14px; }
  .data-table.stack td::before { content: attr(data-label); display: block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
}
.app-box { display: grid; gap: 16px; align-items: center; background: var(--surface); border: 2px solid var(--amber); border-radius: var(--radius); padding: 22px; margin: 40px 0 8px; max-width: 900px; }
@media (min-width: 760px) { .app-box { grid-template-columns: 1fr auto; } }
.app-box p:last-child { margin-bottom: 0; }
.app-links { font-size: 0.95rem; }
.disclaimer { max-width: 820px; background: var(--surface-2); border-radius: 12px; padding: 16px 20px; margin: 8px 0 0; font-size: 0.95rem; }
.disclaimer h2 { font-size: 1rem; margin-bottom: 4px; }
.disclaimer p { margin: 0; color: var(--muted); }
.source-list { font-size: 0.92rem; color: var(--muted); max-width: 900px; padding-left: 1.3em; }
.source-list li { margin-bottom: 8px; overflow-wrap: anywhere; }
.tool-teaser { display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; max-width: 900px; }
.tool-teaser .icon { color: var(--heading); margin-top: 3px; }

/* forecast tool */
.tool { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); margin: 12px 0 24px; }
.tool-controls { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; }
.tool-controls[hidden], .tool-result[hidden], .tool-fallback[hidden], .btn[hidden] { display: none; }
.btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 600; border-radius: 999px; padding: 10px 18px; cursor: pointer; border: 1px solid transparent; }
.btn .icon { width: 20px; height: 20px; }
.btn-primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn-quiet { background: transparent; color: var(--link); border-color: var(--line); margin-top: 8px; }
.city-pick { display: grid; gap: 4px; }
.city-pick label { font-size: 0.85rem; color: var(--muted); }
.city-pick select { font: inherit; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); max-width: 100%; }
.unit-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin-left: auto; }
.unit-toggle button { font: inherit; font-size: 0.9rem; padding: 8px 14px; border: 0; background: transparent; color: var(--text); cursor: pointer; }
.unit-toggle button[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-ink); font-weight: 600; }
.tool-status { color: var(--muted); margin: 12px 0 0; }
.tool-status:empty { display: none; }
.now { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin: 8px 0 4px; }
.now p { margin: 0; }
.now-place { width: 100%; color: var(--muted); font-size: 0.92rem; }
.now-value { font-size: 2.4rem; font-weight: 700; color: var(--heading); }
#now-value { font-variant-numeric: tabular-nums; }
.now-unit { font-size: 1.1rem; font-weight: 600; color: var(--muted); }
.now-trend { font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); }
.trend-falling { background: var(--soft); }
.now-change { color: var(--muted); }
.chart-wrap { margin: 12px 0 0; }
.chart { width: 100%; height: auto; display: block; }
.c-grid { stroke: var(--line); stroke-width: 1; }
.c-tick { stroke: var(--muted); }
.c-midnight { stroke: var(--line); stroke-dasharray: 2 4; }
.c-axis { fill: var(--muted); font: 12px var(--font); }
.c-area { fill: var(--chart-area); }
.c-line { fill: none; stroke: var(--chart-line); stroke-width: 2.6; stroke-linejoin: round; }
.c-ahead { stroke-dasharray: 7 5; }
.c-drop { fill: var(--chart-drop); }
.c-now { stroke: var(--muted); stroke-width: 1.2; stroke-dasharray: 3 3; }
.c-dot { fill: var(--chart-line); stroke: var(--surface); stroke-width: 2; }
.chart-wrap figcaption { font-size: 0.88rem; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.legend-drop, .legend-now { display: inline-block; width: 18px; height: 12px; border-radius: 3px; }
.legend-drop { background: var(--chart-drop); border: 1px solid var(--amber); }
.legend-now { width: 2px; height: 14px; background: var(--muted); margin-left: 10px; }
.chart-summary { margin: 10px 0 0; }
.attribution { font-size: 0.85rem; color: var(--muted); margin: 10px 0 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.attribution img { height: 16px; width: auto; vertical-align: middle; }
.tool-fallback { background: var(--soft); border-left: 4px solid var(--amber); border-radius: 14px; padding: 18px 20px; }
.tool-controls:not([hidden]) + .tool-status:empty + .tool-result[hidden] + .tool-fallback { margin-top: 16px; }
.tool-fallback h3 { margin-bottom: 6px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
