:root {
  color-scheme: light;
  --page: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f8f9fc;
  --ink: #101624;
  --ink-soft: #3d4658;
  --muted: #70798b;
  --line: #e2e6ee;
  --line-strong: #cfd5e1;
  --primary: #2f5bea;
  --primary-dark: #2045be;
  --primary-soft: #edf2ff;
  --green: #168665;
  --green-soft: #e8f7f1;
  --amber: #a8650b;
  --amber-soft: #fff4df;
  --red: #bd3e4a;
  --red-soft: #fff0f1;
  --shadow-sm: 0 1px 2px rgba(20, 30, 50, 0.04), 0 8px 24px rgba(20, 30, 50, 0.05);
  --shadow-md: 0 18px 55px rgba(23, 34, 58, 0.10);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  font-family: Inter, "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;
  background: var(--page);
  color: var(--ink);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select { font: inherit; }

button,
select,
label { -webkit-tap-highlight-color: transparent; }

button { cursor: pointer; }

a { color: inherit; text-decoration: none; }

[hidden] { display: none !important; }

.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(226, 230, 238, 0.85);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  display: flex;
  width: min(1180px, calc(100% - 48px));
  min-height: 68px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.brand__mark {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  font-size: 0.77rem;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.site-nav a,
.button { white-space: nowrap; }

.site-nav a {
  position: relative;
  padding: 23px 0 21px;
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active { color: var(--ink); }

.site-nav a.is-active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
  content: "";
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 11px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
}

.menu-button > span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 4px 0;
  border-radius: 2px;
  background: var(--ink);
}

.start-screen {
  width: min(860px, calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0 88px;
}

.start-screen__heading {
  max-width: 720px;
  margin: 0 auto 26px;
  text-align: center;
}

.start-screen__heading h1 {
  margin: 0;
  font-size: clamp(2.15rem, 4.4vw, 3.55rem);
  font-weight: 830;
  letter-spacing: -0.055em;
  line-height: 1.16;
  text-wrap: balance;
}

.headline-segment,
.text-segment { display: inline-block; }
.headline-segment + .headline-segment { margin-left: 0.18em; }

.start-screen__heading > p:last-child {
  margin: 14px auto 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.advisor-form {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.form-group,
.resolution-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-group + .form-group {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.form-group legend,
.resolution-field legend,
.select-field > span {
  display: flex;
  margin: 0 0 13px;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
}

.form-group legend small {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 650;
}

.form-error {
  margin: 9px 0 0;
  color: var(--red);
  font-size: 0.67rem;
  font-weight: 750;
}

.choice-grid { display: grid; gap: 10px; }
.choice-grid--purpose { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.choice-card { position: relative; min-width: 0; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }

.choice-card__body {
  display: flex;
  min-height: 58px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-soft);
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.choice-card__body:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.choice-card input:checked + .choice-card__body {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: inset 0 0 0 1px var(--primary);
}

.choice-card input:focus-visible + .choice-card__body,
.segmented-control input:focus-visible + span,
.quick-budget button:focus-visible,
.button:focus-visible,
.text-button:focus-visible,
.menu-button:focus-visible,
select:focus-visible,
input[type="range"]:focus-visible {
  outline: 3px solid rgba(47, 91, 234, 0.24);
  outline-offset: 2px;
}

.choice-card strong { display: block; font-size: 0.86rem; }
.budget-control {
  padding: 19px 22px 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-soft);
}

.budget-control__value {
  display: flex;
  margin-bottom: 13px;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
}

.budget-control__value output {
  font-size: 2.15rem;
  font-weight: 850;
  letter-spacing: -0.05em;
  line-height: 1;
}

.budget-control__value small { color: var(--muted); font-size: 0.78rem; font-weight: 700; }

input[type="range"] {
  width: 100%;
  height: 5px;
  margin: 6px 0 0;
  border-radius: 999px;
  appearance: none;
  background: linear-gradient(90deg, var(--primary) var(--range-progress, 25%), #d9deea var(--range-progress, 25%));
}

input[type="range"]::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  border: 4px solid #fff;
  border-radius: 50%;
  appearance: none;
  background: var(--primary);
  box-shadow: 0 1px 7px rgba(20, 38, 94, 0.28);
}

input[type="range"]::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 1px 7px rgba(20, 38, 94, 0.28);
}

.budget-control__scale { display: flex; margin-top: 7px; justify-content: space-between; color: #969eae; font-size: 0.63rem; }

.quick-budget {
  display: flex;
  margin-top: 17px;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-budget button {
  min-width: 70px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 0.69rem;
  font-weight: 750;
}

.quick-budget button:hover,
.quick-budget button.is-active { border-color: var(--primary); color: var(--primary); }

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 22px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.form-row--three { grid-template-columns: minmax(0, 1.15fr) minmax(310px, 1.2fr) minmax(120px, 0.65fr); }

.select-field { display: block; }

select {
  width: 100%;
  min-height: 49px;
  padding: 0 42px 0 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
  color: var(--ink);
  outline: 0;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
}

.segmented-control label { position: relative; }
.segmented-control input { position: absolute; opacity: 0; pointer-events: none; }

.segmented-control span {
  display: grid;
  min-height: 47px;
  place-items: center;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.segmented-control label:last-child span { border-right: 0; }
.segmented-control input:checked + span { background: var(--primary); color: #fff; }

.advisor-form__footer {
  display: flex;
  margin-top: 24px;
  padding-top: 0;
  border-top: 0;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.advisor-form__footer p {
  display: flex;
  margin: 0;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.68rem;
}

.button {
  display: inline-flex;
  min-height: 45px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 11px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.79rem;
  font-weight: 820;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.button:hover { transform: translateY(-1px); }
.button--primary { background: var(--primary); color: #fff; box-shadow: 0 8px 22px rgba(47, 91, 234, 0.2); }
.button--primary:hover { background: var(--primary-dark); }
.button--large { min-height: 51px; padding: 0 22px; }
.button--secondary { border-color: var(--line); background: #fff; color: var(--ink); }

.results {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 82px 0 104px;
}

.results__header,
.section-heading {
  display: flex;
  margin-bottom: 26px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.results__header h2,
.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.055em;
  line-height: 1.1;
  text-wrap: balance;
}

.results__header > div > p:last-child,
.section-heading > p { margin: 10px 0 0; color: var(--muted); font-size: 0.83rem; }

.text-button {
  padding: 8px 2px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 750;
}

.build-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
  gap: 34px;
  padding: 32px;
  border: 1px solid #d9e1ff;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.match-badge {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.67rem;
  font-weight: 800;
}

.build-overview__copy h3 { margin: 16px 0 8px; font-size: clamp(1.5rem, 3vw, 2.15rem); letter-spacing: -0.045em; line-height: 1.2; }
.build-overview__copy p { max-width: 620px; margin: 0; color: var(--ink-soft); font-size: 0.82rem; }

.build-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  border: 1px solid rgba(47, 91, 234, 0.11);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
}

.build-stats div { display: flex; padding: 20px 13px; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
.build-stats div + div { border-left: 1px solid var(--line); }
.build-stats dt { color: var(--muted); font-size: 0.64rem; }
.build-stats dd { margin: 6px 0 0; font-size: 1.02rem; font-weight: 850; letter-spacing: -0.025em; }

.component-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }

.component-card {
  min-width: 0;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.component-card__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.component-card__header h3 { margin: 9px 0 4px; font-size: clamp(1.25rem, 2.8vw, 1.65rem); letter-spacing: -0.04em; line-height: 1.15; }
.component-card__header p { margin: 0; color: var(--muted); font-size: 0.7rem; }

.part-label {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 6px;
  background: #edf7ff;
  color: #24649a;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.part-label--gpu { background: #eeeefe; color: #5753b8; }

.timing-badge {
  flex: none;
  padding: 7px 9px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
}

.timing-badge.is-good { background: var(--green-soft); color: var(--green); }
.timing-badge.is-wait { background: var(--amber-soft); color: var(--amber); }

.price-summary {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1px;
  overflow: hidden;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--line);
}

.price-summary > div { padding: 17px; background: var(--surface-soft); }
.price-summary span,
.price-summary small { display: block; color: var(--muted); font-size: 0.64rem; }
.price-summary strong { display: block; margin: 4px 0 2px; font-size: 1.36rem; letter-spacing: -0.035em; }
.price-summary small.is-down { color: var(--green); }
.price-summary small.is-up { color: var(--red); }

.chart-wrap { margin-top: 23px; }
.chart-label { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 0.64rem; font-weight: 750; }
.chart-label span:last-child { color: var(--ink-soft); }
.chart-wrap canvas { display: block; width: 100%; height: 128px; margin-top: 8px; }

.shop-list { display: grid; gap: 8px; margin-top: 18px; }

.shop-row,
.shop-empty {
  display: grid;
  min-height: 48px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  align-items: center;
}

.shop-row { grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; }
.shop-row__name { min-width: 0; }
.shop-row__name strong { display: block; overflow: hidden; font-size: 0.72rem; text-overflow: ellipsis; white-space: nowrap; }
.shop-row__name small { display: block; color: var(--muted); font-size: 0.6rem; }
.shop-row__price { font-size: 0.79rem; font-weight: 850; white-space: nowrap; }
.shop-row__link { color: var(--primary); font-size: 0.66rem; font-weight: 800; white-space: nowrap; }
.shop-row:first-child { border-color: #b9caFE; background: #f8faff; }
.shop-row:first-child .shop-row__name::before { color: var(--primary); content: "最安値  "; font-size: 0.58rem; font-weight: 850; }
.shop-empty { color: var(--muted); font-size: 0.68rem; line-height: 1.55; text-align: center; }

.next-step-card {
  display: flex;
  margin-top: 18px;
  padding: 29px 31px;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #fff;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.next-step-card h3 { margin: 0 0 6px; font-size: 1.35rem; letter-spacing: -0.03em; }
.next-step-card p { max-width: 680px; margin: 0; color: #acb5c6; font-size: 0.76rem; }
.next-step-card .button { flex: none; }

.alternatives { padding-top: 58px; }
.alternative-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

.alternative-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.alternative-card__label { color: var(--primary); font-size: 0.61rem; font-weight: 850; letter-spacing: 0.11em; }
.alternative-card h3 { margin: 11px 0 6px; font-size: 1rem; letter-spacing: -0.025em; line-height: 1.35; }
.alternative-card p { margin: 0; color: var(--muted); font-size: 0.7rem; }
.alternative-card dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 18px 0; }
.alternative-card dl div { padding: 10px; border-radius: 9px; background: var(--surface-soft); }
.alternative-card dt { color: var(--muted); font-size: 0.58rem; }
.alternative-card dd { margin: 3px 0 0; font-size: 0.76rem; font-weight: 800; }
.alternative-card button { padding: 0; border: 0; background: transparent; color: var(--primary); font-size: 0.69rem; font-weight: 800; }

.site-footer {
  display: grid;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 38px 0 46px;
  border-top: 1px solid var(--line);
  grid-template-columns: 1fr auto;
  gap: 28px 40px;
  color: var(--muted);
}

.brand--footer { color: var(--ink); }
.site-footer p { margin: 9px 0 0; font-size: 0.69rem; }
.site-footer nav { display: flex; gap: 22px; align-items: center; font-size: 0.7rem; font-weight: 700; }
.site-footer nav a:hover { color: var(--ink); }
.site-footer > small { grid-column: 1 / -1; font-size: 0.61rem; }

.noscript { margin: 0; padding: 12px; background: var(--amber-soft); color: var(--amber); text-align: center; }

/* Shared inner pages */
.inner-page {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 60px 0 90px;
}

.page-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.55fr);
  gap: 70px;
  margin-bottom: 38px;
  align-items: end;
}

.page-heading h1 {
  margin: 0;
  font-size: clamp(2.3rem, 4.7vw, 3.9rem);
  letter-spacing: -0.058em;
  line-height: 1.06;
  text-wrap: balance;
}

.page-heading > p {
  margin: 0 0 6px;
  color: var(--ink-soft);
  font-size: 0.85rem;
  line-height: 1.85;
  text-wrap: balance;
}

.page-heading--compact { margin-bottom: 32px; }

.panel-heading {
  display: flex;
  margin-bottom: 23px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.panel-heading h2 { margin: 0; font-size: 1.45rem; letter-spacing: -0.04em; }

/* PC simulator */
.imported-build {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  margin-bottom: 18px;
  padding: 13px 16px;
  border: 1px solid #cbd7ff;
  border-radius: 12px;
  background: var(--primary-soft);
  align-items: center;
  color: var(--primary);
  font-size: 0.7rem;
}

.imported-build strong { color: var(--ink); font-size: 0.78rem; }
.imported-build a { font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

.simulator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 18px;
  align-items: start;
}

.parts-panel,
.build-summary,
.price-search-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.part-select-list { display: grid; gap: 10px; }

.part-select-card {
  display: block;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-soft);
}

.part-select-card__body { min-width: 0; }
.part-select-card__body > label { display: flex; margin-bottom: 8px; align-items: baseline; justify-content: space-between; gap: 14px; }
.part-select-card__body > label span { font-size: 0.79rem; font-weight: 850; }
.part-select-card__body > label small { color: var(--muted); font-size: 0.62rem; }
.part-select-card select { display: block; width: 100%; min-width: 0; min-height: 44px; background-color: #fff; font-size: 0.78rem; }
.part-select-card__meta { display: flex; margin-top: 8px; align-items: center; justify-content: space-between; gap: 14px; }
.part-select-card__meta span { overflow: hidden; color: var(--muted); font-size: 0.61rem; text-overflow: ellipsis; white-space: nowrap; }
.part-select-card__meta strong { flex: none; color: var(--ink); font-size: 0.73rem; }

.build-summary {
  position: sticky;
  top: 86px;
}

.build-summary__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.build-summary__top h2 { margin: 0; font-size: 1.45rem; letter-spacing: -0.04em; }

.score-pill { padding: 7px 9px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 0.65rem; font-weight: 850; }

.compatibility-state {
  display: flex;
  margin-top: 22px;
  padding: 14px;
  border-radius: 12px;
  background: var(--surface-soft);
  align-items: center;
  gap: 12px;
}

.compatibility-state > span { width: 11px; height: 11px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 5px #e9ebf0; }
.compatibility-state strong { display: block; font-size: 0.76rem; }
.compatibility-state small { display: block; margin-top: 2px; color: var(--muted); font-size: 0.61rem; }
.compatibility-state.is-good { background: var(--green-soft); }
.compatibility-state.is-good > span { background: var(--green); box-shadow: 0 0 0 5px rgba(22, 134, 101, 0.11); }
.compatibility-state.is-warning { background: var(--amber-soft); }
.compatibility-state.is-warning > span { background: var(--amber); box-shadow: 0 0 0 5px rgba(168, 101, 11, 0.10); }
.compatibility-state.is-error { background: var(--red-soft); }
.compatibility-state.is-error > span { background: var(--red); box-shadow: 0 0 0 5px rgba(189, 62, 74, 0.10); }

.check-list { display: grid; gap: 7px; margin: 18px 0 0; padding: 0; list-style: none; }
.check-list li { display: grid; grid-template-columns: 21px 1fr; gap: 8px; align-items: start; }
.check-list li > span { display: grid; width: 19px; height: 19px; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 0.62rem; font-weight: 900; }
.check-list li.warning > span { background: var(--amber-soft); color: var(--amber); }
.check-list li.error > span { background: var(--red-soft); color: var(--red); }
.check-list p { margin: 1px 0 0; color: var(--ink-soft); font-size: 0.66rem; line-height: 1.45; }

.total-breakdown { display: grid; gap: 9px; margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.total-breakdown div { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.total-breakdown dt { color: var(--muted); font-size: 0.67rem; }
.total-breakdown dd { margin: 0; font-size: 0.77rem; font-weight: 800; }
.total-breakdown__main { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.total-breakdown__main dt { color: var(--ink); font-weight: 750; }
.total-breakdown__main dd { font-size: 1.18rem; }
.total-breakdown dd.is-over { color: var(--red); }
.price-data-note { margin: 15px 0; color: var(--muted); font-size: 0.61rem; line-height: 1.55; }
.button--full { width: 100%; }
.build-summary .button + .button { margin-top: 8px; }

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  padding: 13px 17px;
  border-radius: 11px;
  background: var(--ink);
  color: #fff;
  font-size: 0.72rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible { opacity: 1; transform: translateY(0); }

/* Price search */
.price-search-panel { margin-top: 6px; }
.price-fields { display: grid; grid-template-columns: 0.65fr 0.8fr 1.25fr 0.8fr; gap: 12px; }
.price-fields label { min-width: 0; }
.price-fields label > span { display: block; margin-bottom: 7px; color: var(--ink-soft); font-size: 0.67rem; font-weight: 750; }
.price-fields input,
.price-fields select {
  width: 100%;
  min-height: 47px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 0.76rem;
}
.price-fields input::placeholder { color: #a2a9b7; }
.price-fields input:focus,
.price-fields select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47, 91, 234, 0.12); }

.shop-filter { margin: 25px 0 0; padding: 20px 0 0; border: 0; border-top: 1px solid var(--line); }
.shop-filter legend { padding: 0; color: var(--ink-soft); font-size: 0.67rem; font-weight: 750; }
.shop-filter > div { display: flex; margin-top: 10px; gap: 8px; flex-wrap: wrap; }
.shop-filter label { position: relative; }
.shop-filter input { position: absolute; opacity: 0; pointer-events: none; }
.shop-filter span { display: block; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-soft); color: var(--muted); font-size: 0.67rem; font-weight: 750; }
.shop-filter input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.shop-filter input:focus-visible + span { outline: 3px solid rgba(47, 91, 234, 0.24); outline-offset: 2px; }

.search-actions { display: flex; margin-top: 24px; align-items: center; justify-content: flex-end; gap: 20px; }
.button:disabled { cursor: progress; opacity: 0.66; transform: none; }

.price-results { padding-top: 72px; scroll-margin-top: 76px; }
.result-mode { padding: 8px 11px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 0.65rem; font-weight: 800; }

.best-offer {
  display: flex;
  margin-bottom: 14px;
  padding: 22px 24px;
  border: 1px solid #cbd7ff;
  border-radius: var(--radius-md);
  background: linear-gradient(100deg, #fff, #f0f4ff);
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}
.best-offer > div > span { display: block; color: var(--primary); font-size: 0.64rem; font-weight: 850; }
.best-offer > div > strong { display: block; margin: 4px 0 1px; font-size: 1.8rem; letter-spacing: -0.04em; }
.best-offer > div > small { display: block; color: var(--muted); font-size: 0.65rem; }

.offers-table-wrap { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); }
.offers-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.offers-table th { padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface-soft); color: var(--muted); font-size: 0.61rem; font-weight: 750; text-align: left; }
.offers-table th:nth-child(1) { width: 17%; }
.offers-table th:nth-child(2) { width: 34%; }
.offers-table th:nth-child(3), .offers-table th:nth-child(4), .offers-table th:nth-child(5) { width: 13%; }
.offers-table th:last-child { width: 10%; }
.offers-table td { padding: 15px 14px; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: 0.7rem; vertical-align: middle; }
.offers-table tr:last-child td { border-bottom: 0; }
.offers-table tr.is-best { background: #f8faff; }
.offers-table td strong { display: block; color: var(--ink); font-size: 0.72rem; }
.offers-table td small { display: block; margin-top: 2px; color: var(--muted); font-size: 0.58rem; }
.offer-product-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.offer-money,
.offer-shipping,
.offer-total { white-space: nowrap; }
.offer-total { color: var(--ink) !important; font-weight: 850; }
.offers-table td a { color: var(--primary); font-weight: 800; white-space: nowrap; }

.offers-empty { padding: 52px 24px; text-align: center; }
.offers-empty strong { display: block; font-size: 0.9rem; }
.offers-empty p { max-width: 520px; margin: 8px auto 0; color: var(--muted); font-size: 0.7rem; }

.provider-status { display: flex; margin-top: 12px; gap: 7px; flex-wrap: wrap; }
.provider-status span { padding: 6px 9px; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 0.59rem; }
.provider-status span::before { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #aeb5c1; content: ""; }
.provider-status span.is-ready { color: var(--green); }
.provider-status span.is-ready::before { background: var(--green); }
.provider-status span.is-error { color: var(--red); }
.provider-status span.is-error::before { background: var(--red); }

@media (max-width: 900px) {
  .choice-grid--purpose { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .build-overview { grid-template-columns: 1fr; }
  .component-results { grid-template-columns: 1fr; }
  .alternative-grid { grid-template-columns: 1fr; }
  .page-heading { grid-template-columns: 1fr; gap: 20px; }
  .simulator-layout { grid-template-columns: 1fr; }
  .build-summary { position: static; }
  .price-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-row--three { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .site-header__inner,
  .start-screen,
  .results,
  .inner-page,
  .site-footer { width: min(100% - 28px, 1180px); }

  .site-header__inner { min-height: 62px; }
  .menu-button { display: block; }

  .site-nav {
    position: absolute;
    top: 62px;
    right: 14px;
    left: 14px;
    display: none;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px; border-radius: 8px; }
  .site-nav a.is-active { background: var(--primary-soft); color: var(--primary); }
  .site-nav a.is-active::after { display: none; }

  .start-screen { padding: 46px 0 64px; }
  .start-screen__heading { margin-bottom: 27px; text-align: left; }
  .start-screen__heading h1 { font-size: clamp(2.15rem, 11vw, 3.3rem); }
  .start-screen__heading > p:last-child { font-size: 0.85rem; }
  .advisor-form { padding: 22px 17px; border-radius: 19px; }
  .choice-grid--purpose { grid-template-columns: 1fr 1fr; }
  .choice-card__body { min-height: 58px; padding: 12px; }
  .budget-control { padding: 17px 14px; }
  .quick-budget button { min-width: 62px; padding-inline: 9px; }
  .form-row { grid-template-columns: 1fr; }
  .advisor-form__footer { align-items: stretch; flex-direction: column-reverse; }
  .advisor-form__footer .button { width: 100%; }
  .advisor-form__footer p { justify-content: center; }

  .results { padding: 62px 0 76px; }
  .results__header,
  .section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .build-overview { padding: 22px 18px; }
  .build-stats { grid-template-columns: 1fr; }
  .build-stats div { padding: 13px; flex-direction: row; justify-content: space-between; text-align: left; }
  .build-stats div + div { border-top: 1px solid var(--line); border-left: 0; }
  .build-stats dd { margin: 0; }
  .component-card { padding: 21px 17px; }
  .component-card__header { flex-direction: column; }
  .price-summary { grid-template-columns: 1fr 1fr; }
  .price-summary > div { padding: 13px 11px; }
  .price-summary strong { font-size: 1.08rem; }
  .shop-row { grid-template-columns: minmax(0, 1fr) auto; }
  .shop-row__link { grid-column: 1 / -1; }
  .next-step-card { padding: 24px 20px; align-items: stretch; flex-direction: column; }
  .next-step-card .button { width: 100%; }
  .alternatives { padding-top: 58px; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer nav { align-items: flex-start; flex-direction: column; gap: 9px; }
  .site-footer > small { grid-column: auto; }
  .inner-page { padding: 48px 0 76px; }
  .page-heading { margin-bottom: 27px; }
  .page-heading h1 { font-size: clamp(2.15rem, 11vw, 3.35rem); }
  .page-heading > p { font-size: 0.79rem; }
  .imported-build { grid-template-columns: 1fr; gap: 4px; }
  .parts-panel,
  .build-summary,
  .price-search-panel { padding: 21px 16px; border-radius: 19px; }
  .panel-heading { align-items: flex-start; flex-direction: column; }
  .part-select-card { padding: 13px 11px; }
  .part-select-card__body > label { align-items: flex-start; flex-direction: column; gap: 1px; }
  .part-select-card__meta span { max-width: 65%; }
  .price-fields { grid-template-columns: 1fr; }
  .search-actions { align-items: stretch; flex-direction: column; }
  .search-actions .button { width: 100%; }
  .best-offer { align-items: stretch; flex-direction: column; }
  .best-offer .button { width: 100%; }
  .offers-table thead { display: none; }
  .offers-table,
  .offers-table tbody,
  .offers-table tr,
  .offers-table td { display: block; width: 100%; }
  .offers-table tr { padding: 16px; border-bottom: 1px solid var(--line); }
  .offers-table tr:last-child { border-bottom: 0; }
  .offers-table td { display: flex; padding: 4px 0; border: 0; justify-content: space-between; gap: 18px; }
  .offers-table td:nth-child(1),
  .offers-table td:nth-child(2) { display: block; padding-bottom: 8px; }
  .offer-product-name { white-space: normal; }
  .offers-table td:nth-child(3)::before { content: "商品価格"; color: var(--muted); }
  .offers-table td:nth-child(4)::before { content: "送料"; color: var(--muted); }
  .offers-table td:nth-child(5)::before { content: "合計"; color: var(--muted); }
  .offers-table td:last-child { padding-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
