:root {
  --bg: #f6f1e8;
  --ink: #231f1a;
  --muted: #6b625a;
  --accent: #e0623f;
  --accent-soft: #f7d2c8;
  --good: #1e7c5a;
  --fair: #6b625a;
  --high: #b23a30;
  --card: #fffaf3;
  --shadow: 0 18px 40px rgba(35, 31, 26, 0.12);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  background: radial-gradient(circle at top left, #fff3db 0%, #f6f1e8 50%, #efe8df 100%);
  color: var(--ink);
  line-height: 1.5;
}

.page {
  padding: 32px 24px 64px;
  max-width: 1200px;
  margin: 0 auto;
}

.noscript {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(35, 31, 26, 0.1);
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 16px;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
  padding: 28px;
  background: linear-gradient(135deg, #fdf6ea 0%, #fbe0c4 65%, #f7c8a3 100%);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 12px;
}

.hero__title {
  font-family: "Playfair Display", serif;
  font-size: 38px;
  margin: 0 0 12px;
}

.hero__lead {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.hero__meta {
  display: grid;
  gap: 16px;
}

.meta-card {
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(35, 31, 26, 0.08);
}

.meta-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 8px;
}

.meta-value {
  font-weight: 700;
  font-size: 20px;
}

.update-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.update-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(35, 31, 26, 0.12);
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink);
}

.update-chip--muted {
  color: var(--muted);
  background: rgba(35, 31, 26, 0.03);
}

.update-chip--warning {
  color: #7a4f00;
  background: rgba(255, 211, 106, 0.28);
  border-color: rgba(122, 79, 0, 0.18);
}

.meta-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.meta-key {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.meta-sub {
  font-weight: 700;
  font-size: 13px;
}

.meta-details {
  margin-top: 12px;
}

.meta-details__summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.meta-details__body p {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.status {
  margin: 18px 0 0;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(35, 31, 26, 0.1);
  background: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.status--warning {
  color: #7a4f00;
  background: rgba(255, 211, 106, 0.28);
  border-color: rgba(122, 79, 0, 0.18);
}

.jump-links {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.jump-link {
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(35, 31, 26, 0.12);
  background: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.jump-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(35, 31, 26, 0.12);
}

.controls {
  margin: 28px 0 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}

.controls__left {
  display: grid;
  gap: 6px;
}

.controls__right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.legend {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.legend__item {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(35, 31, 26, 0.1);
}

.legend__item--good {
  color: var(--good);
  background: rgba(30, 124, 90, 0.1);
}

.legend__item--high {
  color: var(--high);
  background: rgba(178, 58, 48, 0.1);
}

.note {
  color: var(--muted);
  font-size: 13px;
}

.segmented {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(35, 31, 26, 0.12);
  gap: 4px;
}

.segmented__item {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.segmented__item.is-active {
  background: rgba(224, 98, 63, 0.14);
  color: var(--ink);
}

.share-button {
  border: 1px solid rgba(35, 31, 26, 0.12);
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  padding: 10px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.share-button:active {
  transform: translateY(1px);
}

.grid-section {
  margin-top: 8px;
}

.info-section {
  margin-top: 28px;
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(35, 31, 26, 0.08);
  box-shadow: 0 12px 30px rgba(35, 31, 26, 0.08);
}

.info-section--muted {
  background: rgba(255, 255, 255, 0.62);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 6px;
}

.section-head h2 {
  margin: 0;
  font-size: 22px;
}

.section-lead {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 520px;
}

.guide-grid,
.source-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.guide-card,
.source-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(35, 31, 26, 0.08);
  padding: 16px;
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(35, 31, 26, 0.08);
}

.guide-card h3,
.source-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.guide-card p,
.source-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.source-meta {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
}

.faq-item {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(35, 31, 26, 0.08);
  background: rgba(255, 255, 255, 0.78);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 14px;
}

.faq-item p {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(35, 31, 26, 0.08);
  border: 1px solid rgba(35, 31, 26, 0.08);
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(224, 98, 63, 0.18) 0%, rgba(224, 98, 63, 0) 70%);
}

.card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 10px;
}

.card__name {
  font-weight: 700;
  font-size: 18px;
  margin: 0;
}

.forecast {
  display: grid;
  gap: 2px;
  text-align: right;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(35, 31, 26, 0.12);
  background: rgba(35, 31, 26, 0.04);
  min-width: 96px;
}

.forecast__label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.forecast__arrow {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.forecast__text {
  font-size: 12px;
  font-weight: 700;
}

.forecast--deal {
  color: var(--good);
  background: rgba(30, 124, 90, 0.12);
}

.forecast--wait {
  color: var(--accent);
  background: rgba(224, 98, 63, 0.12);
}

.forecast--neutral {
  color: var(--fair);
  background: rgba(107, 98, 90, 0.12);
}

.card__now {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
  display: grid;
  gap: 10px;
  border: 1px dashed rgba(35, 31, 26, 0.12);
}

.now__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.now__unitLabel {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}

.now__amount {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.now__yen {
  font-size: 18px;
  font-weight: 800;
}

.now__meta {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}

.now__hint {
  font-size: 13px;
  color: var(--muted);
}

.ranges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.range {
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(35, 31, 26, 0.12);
  background: rgba(35, 31, 26, 0.04);
  display: grid;
  gap: 2px;
}

.range__label {
  font-size: 11px;
  font-weight: 900;
  color: var(--muted);
}

.range__value {
  font-size: 12px;
  font-weight: 900;
  color: var(--ink);
}

.range--buy {
  background: rgba(30, 124, 90, 0.12);
}

.range--buy .range__label,
.range--buy .range__value {
  color: var(--good);
}

.range--high {
  background: rgba(178, 58, 48, 0.12);
}

.range--high .range__label,
.range--high .range__value {
  color: var(--high);
}

.shelf {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.shelf__label {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}

.shelf__field {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(35, 31, 26, 0.04);
  border: 1px solid rgba(35, 31, 26, 0.12);
}

.shelf__field:focus-within {
  border-color: rgba(224, 98, 63, 0.55);
  box-shadow: 0 0 0 3px rgba(224, 98, 63, 0.16);
}

.shelf__input {
  width: 96px;
  font-size: 16px;
  font-weight: 800;
  border: 0;
  padding: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  text-align: right;
}

.shelf__input::-webkit-outer-spin-button,
.shelf__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.shelf__input[type="number"] {
  -moz-appearance: textfield;
}

.shelf__unit {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.judge {
  margin-left: auto;
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(35, 31, 26, 0.12);
  background: rgba(35, 31, 26, 0.04);
  color: var(--muted);
}

.judge__delta {
  font-size: 11px;
  font-weight: 800;
  opacity: 0.85;
}

.judge--idle .judge__delta {
  display: none;
}

.judge--buy {
  color: var(--good);
  background: rgba(30, 124, 90, 0.12);
  border-color: rgba(30, 124, 90, 0.25);
}

.judge--neutral {
  color: var(--ink);
  background: rgba(35, 31, 26, 0.06);
}

.judge--high {
  color: var(--high);
  background: rgba(178, 58, 48, 0.12);
  border-color: rgba(178, 58, 48, 0.22);
}

.card-details {
  margin-top: 2px;
}

.card-details__summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}

.card-details[open] .card-details__summary {
  color: var(--ink);
}

.card__lines {
  display: grid;
  gap: 8px;
}

.line-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(35, 31, 26, 0.05);
  font-size: 12px;
  font-weight: 700;
}

.line-item--good {
  color: var(--good);
  background: rgba(30, 124, 90, 0.12);
}

.line-item--high {
  color: var(--high);
  background: rgba(178, 58, 48, 0.12);
}

.footnote {
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(35, 31, 26, 0.08);
  color: var(--muted);
  font-size: 12px;
}

.footer__row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  margin-bottom: 6px;
}

.footer__label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10px;
}

.footer__value {
  font-size: 14px;
  color: var(--ink);
}

.footer__note {
  margin: 0;
}

.card--skeleton {
  pointer-events: none;
}

.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(35, 31, 26, 0.08);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.55) 45%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-100%);
  animation: shimmer 1.2s ease-in-out infinite;
}

.skeleton--name {
  height: 18px;
  width: 42%;
  border-radius: 10px;
  margin-top: 4px;
}

.skeleton--arrow {
  height: 20px;
  width: 26px;
  justify-self: end;
  border-radius: 10px;
}

.skeleton--text {
  height: 12px;
  width: 74px;
  justify-self: end;
  border-radius: 10px;
}

.skeleton--label {
  height: 12px;
  width: 55%;
  border-radius: 10px;
}

.skeleton--price {
  height: 26px;
  width: 68%;
  border-radius: 12px;
}

.skeleton--hint {
  height: 12px;
  width: 82%;
  border-radius: 10px;
}

.skeleton--line {
  height: 12px;
  width: 52%;
  border-radius: 10px;
}

.skeleton--line-value {
  height: 12px;
  width: 34%;
  border-radius: 10px;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton::after {
    animation: none;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero__title {
    font-size: 30px;
  }
}

@media (max-width: 600px) {
  .page {
    padding: 24px 16px 48px;
  }

  .now__amount {
    font-size: 26px;
  }

  .ranges {
    grid-template-columns: 1fr;
  }
}
