:root {
  --ink: #0a1628;
  --ink-soft: #1a2f4a;
  --muted: #4a6280;
  --line: rgba(26, 58, 102, 0.12);
  --surface-solid: #ffffff;
  --accent: #1a6b8a;
  --accent-deep: #0d4a63;
  --ok: #1a6b4a;
  --warn: #8a4a1a;
  --radius: 20px;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "DM Sans", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background: #e8f0f6;
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

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

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 48px;
  width: 100%;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  gap: 12px;
}

.logo-area {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.85rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}

.logo span {
  font-style: italic;
  color: var(--accent);
}

.legal-badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(26, 107, 138, 0.1);
  padding: 5px 11px;
  border-radius: 6px;
  color: var(--accent-deep);
}

.header-legal {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-deep);
  margin: 8px 0 20px;
  transition: opacity 0.15s;
}

.back-link:hover {
  opacity: 0.75;
}

.back-link svg {
  width: 16px;
  height: 16px;
}

.detail-hero {
  position: relative;
  margin: 0 0 36px;
  padding: 40px 20px 44px;
  overflow: hidden;
  isolation: isolate;
  width: 100%;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 70% at 10% 30%, rgba(26, 107, 138, 0.2), transparent 55%),
    radial-gradient(ellipse 60% 50% at 95% 15%, rgba(13, 74, 99, 0.14), transparent 50%),
    linear-gradient(165deg, #d4e4ef 0%, #eef4f8 45%, #f5f8fb 100%);
}

.detail-hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}

.detail-logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 88px;
  background: var(--surface-solid);
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(10, 40, 70, 0.06);
  margin-bottom: 18px;
  padding: 12px 16px;
}

.detail-logo-box img {
  max-height: 52px;
  max-width: 130px;
  object-fit: contain;
}

.detail-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 10px;
}

.detail-tagline {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 20px;
}

.detail-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.meta-chip {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(26, 107, 138, 0.08);
  color: var(--accent-deep);
  border: 1px solid var(--line);
}

.meta-chip.rating {
  background: var(--ink);
  color: #f0f6fa;
  border-color: var(--ink);
}

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

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  transition: background 0.15s, transform 0.15s, border-color 0.15s, color 0.15s;
}

.btn-primary {
  background: var(--ink);
  color: #f0f6fa;
  border: 1px solid var(--ink);
}

.btn-primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-deep);
  border: 1px solid rgba(26, 107, 138, 0.4);
}

.btn-secondary:hover {
  background: rgba(26, 107, 138, 0.08);
}

.score-card {
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px 28px;
  min-width: 220px;
  box-shadow: 0 12px 32px rgba(10, 40, 70, 0.06);
}

.score-card .big-score {
  font-family: var(--font-display);
  font-size: 3.2rem;
  line-height: 1;
  color: var(--accent-deep);
  margin-bottom: 4px;
}

.score-card .score-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.score-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.score-bar-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  font-size: 0.78rem;
  color: var(--muted);
}

.score-bar-row strong {
  color: var(--ink-soft);
  font-weight: 600;
}

.bar-track {
  grid-column: 1 / -1;
  height: 5px;
  background: rgba(26, 58, 102, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  border-radius: 4px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
}

.detail-main {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.section-card {
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: 0 4px 18px rgba(10, 40, 70, 0.03);
}

.section-card h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: var(--ink);
}

.section-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 18px 0 8px;
  color: var(--ink-soft);
}

.section-card p {
  color: var(--muted);
  margin-bottom: 12px;
}

.section-card p:last-child {
  margin-bottom: 0;
}

.section-card ul {
  padding-left: 1.15em;
  color: var(--muted);
  margin-bottom: 12px;
}

.section-card li {
  margin-bottom: 6px;
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pros,
.cons {
  border-radius: 14px;
  padding: 18px 18px 14px;
  border: 1px solid var(--line);
}

.pros {
  background: rgba(26, 107, 74, 0.05);
}

.cons {
  background: rgba(138, 74, 26, 0.05);
}

.pros h3,
.cons h3 {
  margin-top: 0;
  font-size: 0.95rem;
}

.pros li,
.cons li {
  font-size: 0.9rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 8px 0;
}

table.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.spec-table th {
  font-weight: 600;
  color: var(--ink-soft);
  background: rgba(26, 107, 138, 0.04);
  width: 40%;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tag {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 6px;
  background: rgba(26, 107, 138, 0.07);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.faq-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-q {
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.faq-a {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.detail-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 20px;
}

.aside-card {
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}

.aside-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 12px;
}

.aside-card p {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.aside-card .btn-primary,
.aside-card .btn-secondary {
  width: 100%;
  margin-bottom: 8px;
}

.aside-card .btn-secondary:last-child,
.aside-card .btn-primary:last-child {
  margin-bottom: 0;
}

.aside-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aside-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background 0.15s, border-color 0.15s;
}

.aside-list a:hover {
  background: rgba(26, 107, 138, 0.06);
  border-color: rgba(26, 107, 138, 0.3);
}

.aside-list img {
  width: 36px;
  height: 28px;
  object-fit: contain;
}

.disclaimer-mini {
  font-size: 0.8rem;
  color: var(--muted);
  background: rgba(26, 107, 138, 0.06);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  line-height: 1.5;
}

.footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding: 28px 0 16px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.footer-legal {
  background: rgba(26, 107, 138, 0.08);
  padding: 10px 16px;
  border-radius: 10px;
  display: inline-block;
  margin-bottom: 16px;
  font-weight: 500;
}

.footer-disclaimer {
  background: var(--surface-solid);
  padding: 18px 22px;
  border-radius: 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  margin: 16px 0 24px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0 20px;
}

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

  .score-card {
    max-width: 100%;
    width: 100%;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-aside {
    position: static;
  }

  .pros-cons {
    grid-template-columns: 1fr;
  }

  .detail-meta-row {
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px 36px;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 0;
  }

  .logo {
    font-size: 1.55rem;
  }

  .header-legal {
    font-size: 0.72rem;
    word-break: break-word;
  }

  .detail-hero {
    padding: 28px 16px 32px;
    margin-bottom: 24px;
  }

  .detail-logo-box {
    width: 132px;
    height: 76px;
  }

  .detail-title {
    font-size: clamp(1.9rem, 9vw, 2.4rem);
  }

  .detail-tagline {
    font-size: 0.95rem;
  }

  .detail-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .section-card {
    padding: 18px 16px;
    border-radius: 16px;
  }

  .section-card h2 {
    font-size: 1.35rem;
  }

  .spec-table th,
  .spec-table td {
    padding: 10px 12px;
    font-size: 0.85rem;
  }

  .spec-table th {
    width: 38%;
  }

  .aside-card {
    padding: 16px;
  }

  .footer-disclaimer {
    padding: 14px 16px;
    font-size: 0.85rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 400px) {
  .meta-chip {
    font-size: 0.75rem;
    padding: 5px 10px;
  }

  .table-wrap {
    margin: 0 -4px;
    -webkit-overflow-scrolling: touch;
  }
}
