:root {
  color-scheme: light;
  --navy: #0d233d;
  --blue: #1d5b93;
  --gold: #c89d48;
  --ink: #162235;
  --muted: #687386;
  --line: #dce4ed;
  --soft: #f4f7fa;
  --white: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

* { box-sizing: border-box; }

html {
  background: #ffffff;
  color-scheme: light;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
}

.app {
  width: min(100% - 32px, 960px);
  margin: 0 auto;
  padding: 28px 0 48px;
  background: #ffffff;
}

.hero {
  padding: 42px clamp(24px, 6vw, 64px) 38px;
  border-radius: 24px;
  color: var(--white);
  background: linear-gradient(135deg, #0b1e35, #194c78 62%, #2d779b);
  box-shadow: 0 20px 45px rgba(13, 35, 61, .18);
}

.eyebrow { margin: 0 0 10px; color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.hero h1 { margin: 0; font-size: clamp(31px, 6vw, 58px); line-height: 1.15; letter-spacing: -.04em; }
.hero h1 span { color: #f3d38b; }
.hero-copy { max-width: 560px; margin: 20px 0 0; color: #d8e6f2; line-height: 1.8; }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.trust-row span { padding: 7px 11px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; color: #eef7ff; font-size: 12px; }

.search-card, .howto-card, .cta-card, .result-section { margin-top: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 10px 28px rgba(20, 48, 77, .06); }
.search-card { padding: 24px; }
.search-card label { display: block; margin-bottom: 9px; font-size: 14px; font-weight: 800; }
.search-row { display: grid; grid-template-columns: 1fr 180px; gap: 10px; }
input, select { width: 100%; min-height: 48px; border: 1px solid #bdcbd8; border-radius: 10px; background: #fff; color: var(--ink); font: inherit; padding: 0 14px; }
input:focus, select:focus { outline: 3px solid rgba(41, 125, 190, .18); border-color: var(--blue); }
.search-help { margin: 10px 0 0; color: var(--muted); font-size: 12px; }

.result-section { padding: 24px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 16px; }
.section-heading h2, .howto-card h2, .cta-card h2 { margin: 0; font-size: 22px; }
.result-count { color: var(--muted); font-size: 13px; }
.result-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.result-card { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfd; }
.result-card-head { display: flex; justify-content: space-between; gap: 10px; }
.category, .confidence { display: inline-flex; padding: 5px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.category { background: #e6f0f8; color: var(--blue); }
.confidence { background: #fff4d8; color: #765817; white-space: nowrap; }
.result-card h3 { margin: 11px 0 5px; font-size: 18px; }
.spec { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.price-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 17px 0 12px; }
.price-grid div { padding: 12px; border-radius: 10px; background: var(--soft); }
.price-grid span { display: block; color: var(--muted); font-size: 11px; }
.price-grid strong { display: block; margin-top: 5px; color: var(--navy); font-size: 20px; }
.memo { min-height: 40px; margin: 0; color: #4b586b; font-size: 12px; line-height: 1.7; }
.result-card-foot { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.result-card-foot a { color: var(--blue); font-weight: 800; text-decoration: none; }
.result-card-foot a:hover { text-decoration: underline; }
.empty-state { padding: 30px 12px; text-align: center; color: var(--muted); }
.empty-state strong { display: block; color: var(--ink); }
.empty-state p { margin: 8px 0 0; font-size: 13px; }

.howto-card, .cta-card { padding: 24px; }
.howto-card ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
.howto-card li { display: flex; gap: 10px; padding: 14px; border-radius: 12px; background: var(--soft); }
.howto-card li > span { display: grid; place-items: center; flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--navy); color: var(--white); font-size: 12px; font-weight: 800; }
.howto-card strong, .howto-card small { display: block; }
.howto-card strong { font-size: 13px; }
.howto-card small { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.cta-card { background: linear-gradient(135deg, #f9fbfd, #eaf3f8); }
.cta-card p:not(.eyebrow) { max-width: 620px; margin: 10px 0 18px; color: #536276; line-height: 1.7; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.primary-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 0 18px; border-radius: 9px; background: var(--navy); color: #fff; font-weight: 800; text-decoration: none; }
.primary-button:hover { background: var(--blue); }
.line-button { background: #06c755; }
.line-button:hover { background: #05a847; }
.secondary-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 0 18px; border: 1px solid var(--navy); border-radius: 9px; color: var(--navy); font-weight: 800; text-decoration: none; }
.secondary-button:hover { background: #eef3f7; }
.cta-note { margin: 14px 0 0 !important; color: var(--muted) !important; font-size: 12px; }
.footer { padding: 24px 4px 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.footer p { margin: 3px 0; }

@media (max-width: 680px) {
  .app { width: min(100% - 20px, 960px); padding-top: 10px; }
  .hero { padding: 32px 22px 28px; border-radius: 18px; }
  .search-card, .howto-card, .cta-card, .result-section { padding: 18px; border-radius: 15px; }
  .search-row, .result-list, .howto-card ol { grid-template-columns: 1fr; }
  .result-card-foot { align-items: flex-start; flex-direction: column; }
  .cta-actions { align-items: stretch; flex-direction: column; }
  .primary-button, .secondary-button { width: 100%; }
}
