:root {
  --bg-0: #fff5fb;
  --bg-1: #ffe9f3;
  --bg-2: #f6ecff;
  --ink: #2a1f33;
  --ink-soft: #5e4d6c;
  --ink-mute: #8a7896;
  --card: rgba(255, 255, 255, 0.78);
  --card-line: rgba(110, 70, 140, 0.12);
  --shadow: 0 24px 60px -28px rgba(120, 60, 160, 0.35), 0 6px 16px -10px rgba(120, 60, 160, 0.18);

  --pien-low: linear-gradient(135deg, #b9f1ff 0%, #d6ffe7 100%);
  --pien-watch: linear-gradient(135deg, #ffe5f1 0%, #ffd6e9 100%);
  --pien-caution: linear-gradient(135deg, #ffd1a8 0%, #ffb6cf 100%);
  --pien-high: linear-gradient(135deg, #ff8fb6 0%, #b97cff 100%);
  --pien-severe: linear-gradient(135deg, #6a3aff 0%, #ff3d88 60%, #ff7a3d 100%);

  --pien-low-ink: #176d6a;
  --pien-watch-ink: #a23972;
  --pien-caution-ink: #9a3a5a;
  --pien-high-ink: #4a1560;
  --pien-severe-ink: #2a0845;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, #ffd6ec 0%, transparent 60%),
    radial-gradient(900px 600px at -10% 30%, #d8c8ff 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-2) 100%);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
}

.bg-orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55;
  animation: float 14s ease-in-out infinite;
}
.orb-1 { width: 380px; height: 380px; left: -80px; top: 200px; background: #ffb6d5; }
.orb-2 { width: 460px; height: 460px; right: -120px; top: 60px; background: #c5b3ff; animation-delay: -5s; }
.orb-3 { width: 320px; height: 320px; left: 40%; bottom: -120px; background: #ffd9a8; animation-delay: -9s; }
@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); }
  50% { transform: translateY(-30px) translateX(20px) scale(1.06); }
}

.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 40px);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(255, 245, 251, 0.55);
  border-bottom: 1px solid var(--card-line);
}
.brand { display: flex; align-items: baseline; gap: 8px; }
.brand-mark { font-size: 28px; line-height: 1; transform: translateY(2px); }
.brand-text { font-size: 20px; font-weight: 800; letter-spacing: 0.04em; }
.brand-sub { font-size: 10px; letter-spacing: 0.3em; color: var(--ink-mute); }
.site-nav { display: flex; gap: clamp(8px, 2vw, 22px); }
.site-nav a {
  font-size: 13px; font-weight: 600; color: var(--ink-soft); text-decoration: none;
  padding: 6px 10px; border-radius: 999px; transition: background .15s, color .15s;
}
.site-nav a:hover { background: rgba(255, 255, 255, 0.7); color: var(--ink); }

main { position: relative; z-index: 1; padding: 32px clamp(16px, 4vw, 40px) 80px; max-width: 1200px; margin: 0 auto; }

.hero {
  display: grid; gap: 18px; padding: 28px; border-radius: var(--radius-lg);
  background: var(--pien-watch);
  box-shadow: var(--shadow);
  transition: background 600ms ease;
  position: relative; overflow: hidden;
}
.hero[data-level="Low"]      { background: var(--pien-low); color: var(--pien-low-ink); }
.hero[data-level="Watch"]    { background: var(--pien-watch); color: var(--pien-watch-ink); }
.hero[data-level="Caution"]  { background: var(--pien-caution); color: var(--pien-caution-ink); }
.hero[data-level="High"]     { background: var(--pien-high); color: var(--pien-high-ink); }
.hero[data-level="Severe"]   { background: var(--pien-severe); color: var(--pien-severe-ink); }

.hero::before {
  content: ""; position: absolute; inset: -40%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,255,255,0.5), transparent 70%);
  filter: blur(20px); opacity: 0.6;
  animation: pulse 6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); opacity: .55; } 50% { transform: scale(1.08); opacity: .7; } }

.hero-meta {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-size: 13px; opacity: 0.9; font-weight: 700; letter-spacing: 0.04em;
  position: relative; z-index: 1; flex-wrap: wrap;
}
.hero-meta-right { display: flex; align-items: center; gap: 8px; }

/* === city picker (production-quality) === */
.region { position: relative; display: flex; align-items: center; }

.city-trigger {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.55);
  color: inherit; font: inherit; font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  box-shadow: 0 6px 16px -10px rgba(120,60,160,0.35);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
  max-width: min(72vw, 360px);
}
.city-trigger:hover { background: rgba(255,255,255,0.78); }
.city-trigger:active { transform: translateY(1px); }
.city-trigger:focus-visible {
  outline: 2px solid rgba(255,255,255,0.9);
  outline-offset: 2px;
}
.city-trigger-icon { font-size: 14px; line-height: 1; }
.city-trigger-label {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 240px;
}
.city-trigger-caret { font-size: 11px; opacity: .7; }
.city-trigger[data-geo="true"] {
  background: linear-gradient(135deg, rgba(255,255,255,0.85), rgba(255,232,243,0.85));
  border-color: rgba(255,143,191,0.6);
}

.city-popover-backdrop {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(40, 20, 60, 0.28);
  backdrop-filter: blur(2px);
  animation: cp-fade .18s ease;
}
.city-popover-backdrop[hidden],
.city-popover[hidden] {
  display: none !important;
}
.city-popover {
  position: fixed;
  z-index: 1001;
  width: min(360px, calc(100vw - 32px));
  max-height: min(72vh, 560px);
  display: flex; flex-direction: column;
  background: rgba(255, 250, 253, 0.96);
  border: 1px solid rgba(110, 70, 140, 0.18);
  border-radius: 18px;
  box-shadow:
    0 30px 80px -30px rgba(120, 60, 160, 0.45),
    0 8px 24px -16px rgba(120, 60, 160, 0.25);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  overflow: hidden;
  animation: cp-pop .18s cubic-bezier(.2,.9,.3,1.1);
  color: var(--ink);
}
@keyframes cp-pop {
  from { opacity: 0; transform: translateY(-6px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes cp-fade { from { opacity: 0; } to { opacity: 1; } }

.city-popover-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 14px 8px;
}
.city-popover-title {
  margin: 0; font-size: 14px; font-weight: 900; letter-spacing: 0.06em;
  color: var(--ink);
}
.city-popover-close {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--card-line); background: rgba(255,255,255,0.7);
  font-size: 18px; line-height: 1; color: var(--ink-soft);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.city-popover-close:hover { background: #fff; color: var(--ink); }
.city-popover-close:focus-visible { outline: 2px solid #b97cff; outline-offset: 2px; }

.city-popover-tools {
  padding: 4px 14px 10px;
  display: grid; gap: 8px;
}
.city-search {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 12px;
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--card-line);
}
.city-search:focus-within {
  border-color: #b97cff;
  box-shadow: 0 0 0 3px rgba(185,124,255,0.18);
}
.city-search input {
  flex: 1; min-width: 0;
  border: 0; background: transparent; outline: none;
  font: inherit; font-size: 14px; font-weight: 600;
  color: var(--ink);
}
.city-search input::placeholder { color: var(--ink-mute); font-weight: 500; }

.city-geo-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 12px; border-radius: 12px;
  border: 1px solid rgba(185, 124, 255, 0.35);
  background: linear-gradient(135deg, #fff 0%, #fef0f8 100%);
  color: #6a3aff; font: inherit; font-weight: 800; font-size: 13px;
  cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
}
.city-geo-btn:hover { background: linear-gradient(135deg, #fff, #fde6f3); }
.city-geo-btn:active { transform: translateY(1px); }
.city-geo-btn:focus-visible { outline: 2px solid #b97cff; outline-offset: 2px; }
.city-geo-btn[disabled] { opacity: .55; cursor: progress; }

.city-geo-status {
  margin: 0 14px;
  font-size: 12px; font-weight: 700; line-height: 1.5;
  color: var(--ink-soft); min-height: 0;
}
.city-geo-status:empty { display: none; }
.city-geo-status[data-kind="error"] { color: #b03050; }
.city-geo-status[data-kind="warn"]  { color: #a16500; }
.city-geo-status[data-kind="ok"]    { color: #1f7a52; }
.city-geo-status[data-kind="info"]  { color: #5a3aa0; }

.city-list {
  list-style: none; margin: 6px 0 0; padding: 4px 6px 10px;
  overflow-y: auto; flex: 1;
  scrollbar-width: thin;
}
.city-list::-webkit-scrollbar { width: 8px; }
.city-list::-webkit-scrollbar-thumb { background: rgba(120,80,160,0.2); border-radius: 8px; }

.city-region-head {
  position: sticky; top: 0; z-index: 1;
  margin: 6px 4px 2px;
  padding: 4px 8px;
  font-size: 10px; font-weight: 900; letter-spacing: 0.18em;
  color: var(--ink-mute);
  background: linear-gradient(180deg, rgba(255,250,253,0.96) 0%, rgba(255,250,253,0.96) 70%, rgba(255,250,253,0) 100%);
}

.city-option {
  display: grid; grid-template-columns: 80px 1fr auto; align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin: 2px 4px;
  border-radius: 10px;
  cursor: pointer;
  outline: none;
  transition: background .12s ease;
}
.city-option:hover, .city-option:focus { background: rgba(185,124,255,0.10); }
.city-option:focus-visible { box-shadow: 0 0 0 2px #b97cff inset; }
.city-option.is-selected { background: linear-gradient(135deg, rgba(255,143,191,0.18), rgba(193,79,255,0.14)); }
.city-option-pref { font-size: 12px; color: var(--ink-mute); font-weight: 700; }
.city-option-name { font-size: 14px; color: var(--ink); font-weight: 800; }
.city-option-check { color: #c14fff; font-weight: 900; }

.city-empty {
  padding: 20px 16px; text-align: center;
  font-size: 13px; color: var(--ink-mute); font-weight: 700;
}

@media (max-width: 560px) {
  .city-popover {
    position: fixed;
    inset: auto 0 0 0; top: auto; left: 0;
    width: 100%;
    max-height: 80vh;
    border-radius: 22px 22px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
    animation: cp-sheet .22s cubic-bezier(.2,.9,.3,1);
  }
  .city-trigger-label { max-width: 160px; }
  body.city-picker-open { overflow: hidden; }
}
@keyframes cp-sheet {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .city-popover, .city-popover-backdrop { animation: none !important; }
}

.refresh-btn {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.55); color: inherit;
  font-size: 16px; font-weight: 900; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px); transition: transform .2s, background .15s;
}
.refresh-btn:hover { background: rgba(255,255,255,0.8); }
.refresh-btn:active { transform: scale(0.92); }
.is-spinning .refresh-btn { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-updated {
  position: relative; z-index: 1;
  margin-top: -6px;
  font-size: 11px; font-weight: 700; opacity: 0.75; letter-spacing: 0.05em;
  text-align: right;
}

.hero[data-loading="true"] .hero-emoji { opacity: 0.5; animation: pulseLoad 1.4s ease-in-out infinite; }
.hero[data-loading="true"] .hero-stats > div { background: rgba(255,255,255,0.3); }
@keyframes pulseLoad { 0%,100% { opacity:.4 } 50% { opacity:.85 } }

.error-banner {
  margin: 12px 0; padding: 12px 16px; border-radius: var(--radius-md);
  background: linear-gradient(135deg,#ffd1d1,#ffe5cc);
  color: #8a2a2a; font-size: 13px; font-weight: 700;
  border: 1px solid #ffb0b0;
}
.hero-card {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 40px);
  align-items: center; position: relative; z-index: 1;
}
.hero-emoji {
  font-size: clamp(96px, 16vw, 180px);
  line-height: 1;
  filter: drop-shadow(0 18px 24px rgba(0,0,0,0.12));
  animation: bobble 3.2s ease-in-out infinite;
}
@keyframes bobble {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}
.hero-stack { min-width: 0; }
.hero-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 0.2em; opacity: 0.85; text-transform: uppercase; }
.hero-level {
  font-size: clamp(36px, 7vw, 64px);
  margin: 4px 0 6px; font-weight: 900; line-height: 1.05;
}
.hero-headline { font-size: clamp(15px, 2vw, 18px); font-weight: 700; opacity: 0.92; margin-bottom: 16px; }

.hero-gauge { margin-top: 6px; }
.gauge-track {
  position: relative; height: 14px; border-radius: 999px;
  background: rgba(255,255,255,0.4);
  overflow: hidden; box-shadow: inset 0 1px 3px rgba(0,0,0,0.12);
}
.gauge-fill {
  position: absolute; inset: 0 auto 0 0; width: 0;
  background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0.7) 100%);
  border-radius: 999px;
  transition: width 1.2s cubic-bezier(.2,.8,.2,1);
}
.gauge-marks span { position: absolute; top: -3px; height: 20px; width: 2px; background: rgba(0,0,0,0.18); border-radius: 2px; }
.gauge-labels {
  position: relative; height: 16px;
  margin-top: 6px; font-size: 10px; font-weight: 800; opacity: 0.78; letter-spacing: 0.05em;
}
.gauge-labels span {
  position: absolute; top: 0;
  transform: translateX(-50%);
  white-space: nowrap;
}

.hero-stats {
  margin-top: 18px; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px;
}
.hero-stats > div {
  background: rgba(255,255,255,0.42); padding: 10px 12px; border-radius: var(--radius-sm);
  display: flex; flex-direction: column; gap: 2px; backdrop-filter: blur(6px);
}
.hero-stats span { font-size: 10px; font-weight: 800; letter-spacing: 0.15em; opacity: 0.8; }
.hero-stats b { font-size: 22px; font-weight: 900; line-height: 1; }
.hero-stats i { font-size: 11px; opacity: 0.75; font-style: normal; margin-left: 2px; }

.hero-tip {
  position: relative; z-index: 1;
  background: rgba(255,255,255,0.55);
  padding: 14px 18px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 700; line-height: 1.7;
  backdrop-filter: blur(6px);
}

.section { margin-top: 56px; }
.section-head { margin-bottom: 18px; padding: 0 4px; }
.section-head h2 { font-size: clamp(20px, 3vw, 28px); margin: 0 0 4px; font-weight: 900; letter-spacing: 0.02em; }
.section-head p { margin: 0; color: var(--ink-soft); font-size: 13px; font-weight: 600; }

.forecast-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(140px, 1fr);
  gap: 12px; overflow-x: auto; padding: 4px 4px 12px;
  scroll-snap-type: x mandatory;
}
.forecast-rail::-webkit-scrollbar { height: 8px; }
.forecast-rail::-webkit-scrollbar-thumb { background: rgba(120,80,160,0.25); border-radius: 8px; }

.day-card {
  scroll-snap-align: start;
  border-radius: var(--radius-md); padding: 14px;
  background: var(--card);
  border: 1px solid var(--card-line);
  box-shadow: 0 8px 24px -16px rgba(120,60,160,0.4);
  display: flex; flex-direction: column; gap: 6px;
  transition: transform .2s ease, box-shadow .2s ease;
  cursor: pointer;
}
.day-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -22px rgba(120,60,160,0.55); }
.day-card.is-today {
  outline: 3px solid #ff80ad; outline-offset: 2px;
}
.day-card.is-focused:not(.is-today) {
  outline: 2px dashed #b97cff; outline-offset: 2px;
}
.day-card .dow { font-size: 11px; font-weight: 800; color: var(--ink-mute); letter-spacing: 0.1em; }
.day-card .date { font-size: 16px; font-weight: 900; }
.day-card .face {
  font-size: 56px; line-height: 1; text-align: center; margin: 4px 0 2px;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.1));
}
.day-card .level-pill {
  align-self: flex-start; font-size: 10px; font-weight: 900; letter-spacing: 0.05em;
  padding: 4px 8px; border-radius: 999px; color: white;
}
.day-card .aci-line { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-soft); font-weight: 700; }
.day-card .mini-gauge {
  height: 6px; border-radius: 999px; background: rgba(120,80,160,0.12); overflow: hidden;
}
.day-card .mini-gauge > div { height: 100%; border-radius: 999px; }
.day-card .stats { font-size: 11px; color: var(--ink-mute); font-weight: 700; display: flex; gap: 8px; flex-wrap: wrap; }
.day-card .stats span b { color: var(--ink); }

.level-pill.low      { background: linear-gradient(135deg, #4cc9c0, #6ed8a0); }
.level-pill.watch    { background: linear-gradient(135deg, #ff8fbf, #ffb19a); }
.level-pill.caution  { background: linear-gradient(135deg, #ff6f91, #ff9671); }
.level-pill.high     { background: linear-gradient(135deg, #c14fff, #ff4f8b); }
.level-pill.severe   { background: linear-gradient(135deg, #6a3aff, #ff3d88); }

.weekly-summary {
  margin-top: 14px; padding: 16px 18px; border-radius: var(--radius-md);
  background: var(--card); border: 1px solid var(--card-line);
  font-size: 14px; line-height: 1.7; font-weight: 600; color: var(--ink-soft);
}
.weekly-summary b { color: var(--ink); }

.factor-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px;
}
.factor-card {
  position: relative;
  background: var(--card); border: 1px solid var(--card-line);
  border-radius: var(--radius-md); padding: 18px;
  box-shadow: 0 12px 28px -20px rgba(120,60,160,0.4);
}
.factor-card .head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.factor-card .icon { font-size: 28px; line-height: 1; }
.factor-card h3 { margin: 0; font-size: 15px; font-weight: 900; }
.factor-card .pct {
  font-size: 28px; font-weight: 900; letter-spacing: -0.02em;
}
.factor-card .pct .unit { font-size: 13px; color: var(--ink-mute); margin-left: 4px; }
.factor-card .bar {
  margin-top: 8px; height: 10px; border-radius: 999px; background: rgba(120,80,160,0.14); overflow: hidden;
}
.factor-card .bar > div {
  height: 100%; border-radius: 999px; transition: width 1s cubic-bezier(.2,.8,.2,1);
}
.factor-card .desc { margin-top: 8px; font-size: 12px; color: var(--ink-soft); font-weight: 600; line-height: 1.6; }
.factor-card .weight {
  position: absolute; top: 14px; right: 14px;
  font-size: 10px; font-weight: 900; letter-spacing: 0.1em; color: var(--ink-mute);
  background: rgba(120,80,160,0.08); padding: 3px 8px; border-radius: 999px;
}

.about-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px;
}
.about-card {
  background: var(--card); border: 1px solid var(--card-line);
  border-radius: var(--radius-md); padding: 18px;
  box-shadow: 0 8px 22px -18px rgba(120,60,160,0.35);
}
.about-card .about-emoji { font-size: 32px; line-height: 1; margin-bottom: 8px; }
.about-card h3 { margin: 0 0 6px; font-size: 15px; font-weight: 900; }
.about-card p { margin: 0; font-size: 13px; color: var(--ink-soft); font-weight: 600; line-height: 1.6; }
.about-card.highlight {
  background: linear-gradient(135deg, #ffd6ec 0%, #d8c8ff 100%);
  border: none;
}
.scale-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.scale-list li { font-size: 12px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.badge {
  display: inline-block; padding: 3px 8px; border-radius: 999px;
  color: white; font-size: 10px; font-weight: 900; letter-spacing: 0.05em;
}
.badge.low      { background: linear-gradient(135deg, #4cc9c0, #6ed8a0); }
.badge.watch    { background: linear-gradient(135deg, #ff8fbf, #ffb19a); }
.badge.caution  { background: linear-gradient(135deg, #ff6f91, #ff9671); }
.badge.high     { background: linear-gradient(135deg, #c14fff, #ff4f8b); }
.badge.severe   { background: linear-gradient(135deg, #6a3aff, #ff3d88); }

.disclaimer {
  margin-top: 14px; padding: 14px 18px; border-radius: var(--radius-md);
  background: rgba(255,255,255,0.55); border: 1px solid var(--card-line);
  font-size: 13px; color: var(--ink-soft); line-height: 1.7;
}
.disclaimer + .disclaimer { margin-top: 10px; }
.disclaimer summary { cursor: pointer; font-weight: 800; color: var(--ink); }
.disclaimer summary::marker { color: var(--ink-mute); }
.disclaimer p { margin: 8px 0 0; }
.disclaimer .src a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.disclaimer.tech {
  background: rgba(255,255,255,0.7);
  font-family: "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP", system-ui, sans-serif;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.8;
}
.disclaimer.tech h4 {
  margin: 20px 0 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--card-line);
  padding-bottom: 4px;
}
.disclaimer.tech h4:first-of-type { margin-top: 14px; }
.disclaimer.tech p { margin: 6px 0; }
.disclaimer.tech p > b { color: var(--ink); font-weight: 800; }
.disclaimer.tech code {
  font-family: "SF Mono", "Menlo", "Consolas", "Roboto Mono", ui-monospace, monospace;
  font-size: 12px;
  background: rgba(106, 58, 255, 0.08);
  color: #4a2a8a;
  padding: 1px 6px;
  border-radius: 6px;
}
.disclaimer.tech pre {
  margin: 8px 0 12px;
  padding: 12px 14px;
  background: #1f1530;
  color: #ffe5f1;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 12px;
  line-height: 1.55;
  letter-spacing: 0.02em;
}
.disclaimer.tech pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: inherit;
}
.disclaimer.tech .ref-list {
  margin: 6px 0 0;
  padding-left: 18px;
}
.disclaimer.tech .ref-list li { margin: 4px 0; }
.disclaimer.tech .ref-list a {
  color: #6a3aff;
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-all;
}

.site-footer {
  position: relative; z-index: 1;
  text-align: center; padding: 28px 16px 60px;
  font-size: 12px; color: var(--ink-soft); font-weight: 700;
}
.site-footer .muted { color: var(--ink-mute); margin-top: 4px; font-weight: 600; }

@media (max-width: 720px) {
  .hero-card { grid-template-columns: 1fr; text-align: center; }
  .hero-emoji { margin: 0 auto; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .site-nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .orb, .hero-emoji, .hero::before { animation: none !important; }
}
