/* 海と山のそとあそび計算帳（outdoor.nonblog.net）共通スタイル */
:root {
  --bg: #f4f6f0;
  --card: #ffffff;
  --ink: #1e281a;
  --ink-soft: #53614d;
  --line: #dbe3d4;
  --line-strong: #bcc9b2;
  --accent: #3d6b2c;
  --accent-dark: #27481b;
  --accent-soft: #ebf4e6;
  --warn: #b43828;
  --warn-soft: #fdeeee;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; }
.od-wrap { max-width: 780px; margin: 0 auto; padding: 0 16px; }

.od-header { background: var(--accent-dark); color: #fff; }
.od-header-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 8px 0; }
.od-brand { font-weight: 700; font-size: 1rem; color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.od-logo { background: #89c26b; color: #192d11; font-size: .72rem; font-weight: 800; padding: 3px 7px; border-radius: 4px; letter-spacing: .06em; }
.od-nav { display: flex; gap: 14px; flex-shrink: 0; }
.od-nav a { color: #d6e8ce; text-decoration: none; font-size: .86rem; padding: 6px 0; }
.od-nav a:hover { color: #fff; }

.od-main { padding-top: 18px; padding-bottom: 42px; }
.od-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .8rem; color: var(--ink-soft); margin: 0 0 8px; }
.od-crumbs a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--line-strong); }

.od-article h1 { font-size: 1.45rem; line-height: 1.4; margin: 4px 0 8px; padding-bottom: 10px; border-bottom: 2px solid var(--accent); }
.od-meta { font-size: .8rem; color: var(--ink-soft); margin: 0 0 18px; }
.od-article h2 { font-size: 1.14rem; margin: 28px 0 10px; padding-left: 12px; border-left: 4px solid var(--accent); }
.od-article a { color: var(--accent); }

.od-hero { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: 12px; padding: 20px 18px; margin-bottom: 22px; }
.od-hero h1 { font-size: 1.4rem; margin: 0 0 8px; }
.od-hero p { margin: 0; color: var(--ink-soft); font-size: .92rem; }

.od-tool-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 600px) { .od-tool-grid { grid-template-columns: 1fr 1fr; } }
.od-tool-card { display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; text-decoration: none; color: var(--ink); transition: border-color .15s; }
.od-tool-card:hover, .od-tool-card:focus-visible { border-color: var(--accent); }
.od-cat-pill { display: inline-block; align-self: flex-start; font-size: .74rem; font-weight: 700; background: var(--accent-soft); color: var(--accent-dark); padding: 2px 9px; border-radius: 6px; }
.od-tool-card h2 { font-size: 1.03rem; margin: 2px 0 0; padding: 0; border: 0; }
.od-tool-card p { margin: 0; font-size: .85rem; color: var(--ink-soft); line-height: 1.6; }

.od-panel { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 14px 0 20px; }
.od-grid-2 { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 580px) { .od-panel { padding: 20px; } .od-grid-2 { grid-template-columns: 1fr 1fr; } }
.od-field { display: flex; flex-direction: column; gap: 5px; }
.od-label { font-size: .86rem; font-weight: 700; }
.od-help { margin: 0; font-size: .78rem; color: var(--ink-soft); }
.od-input, .od-select { width: 100%; min-height: 44px; padding: 9px 12px; border: 1.5px solid var(--line-strong); border-radius: 8px; background: var(--bg); color: var(--ink); font-size: 1rem; font-family: inherit; }
.od-input:focus, .od-select:focus { outline: none; border-color: var(--accent); background: var(--card); box-shadow: 0 0 0 3px rgba(61, 107, 44, .15); }
.od-input-num { text-align: right; font-variant-numeric: tabular-nums; }

.od-btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 9px 16px; border-radius: 8px; font-size: .9rem; font-weight: 700; font-family: inherit; cursor: pointer; text-decoration: none; border: 1.5px solid transparent; }
.od-btn-primary { background: var(--accent); color: #fff !important; }
.od-btn-primary:hover { background: var(--accent-dark); }
.od-btn-outline { background: var(--card); color: var(--accent) !important; border-color: var(--accent); }

.od-result-box { background: var(--accent-soft); border: 1px solid #c3dbb8; border-radius: 10px; padding: 14px 16px; margin: 14px 0; }
.od-result-box.is-warn { background: var(--warn-soft); border-color: #ebbaba; color: var(--warn); }
.od-result-big { font-size: 1.25rem; font-weight: 700; margin: 2px 0 4px; font-variant-numeric: tabular-nums; }

.od-tbl { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 10px; background: var(--card); margin: 14px 0 18px; }
.od-tbl table { border-collapse: collapse; min-width: 100%; font-size: .88rem; line-height: 1.6; font-variant-numeric: tabular-nums; }
.od-tbl th, .od-tbl td { border-bottom: 1px solid var(--line); padding: 9px 11px; text-align: left; vertical-align: top; }
.od-tbl tr:last-child th, .od-tbl tr:last-child td { border-bottom: 0; }
.od-tbl th { background: #e8efe3; font-weight: 700; }
.od-tbl tr > * + * { border-left: 1px solid var(--line); }

.od-app-box { margin: 24px 0; padding: 16px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 0 10px 10px 0; }
.od-app-kicker { margin: 0 0 4px; font-size: .8rem; font-weight: 700; color: var(--accent-dark); }
.od-app-pitch { margin: 0 0 8px; font-size: .92rem; }
.od-app-pending { margin: 0; font-size: .82rem; color: var(--ink-soft); }
.od-app-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

.od-sources { margin-top: 26px; padding: 14px 16px; background: #e8efe3; border-radius: 10px; font-size: .84rem; }
.od-sources h2 { margin: 0 0 8px; font-size: .95rem; border: 0; padding: 0; }
.od-sources ul { margin: 0; padding-left: 1.3em; }

.od-footer { border-top: 1px solid var(--line); background: var(--card); padding: 22px 0 36px; font-size: .8rem; color: var(--ink-soft); }
.od-footer-links { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 10px; }
.od-footer-links a { color: var(--ink-soft); text-decoration: none; }
.od-footer-note { margin: 0 0 8px; line-height: 1.65; }
.od-copy { margin: 0; }
