:root {
  --bg: #f5f5f3;
  --paper: #ffffff;
  --ink: #151515;
  --muted: #5f646d;
  --line: #e1e3e6;
  --soft: #f7f8f9;
  --accent: #0f766e;
  --link: #174ea6;
  --warn: #a64032;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  line-height: 1.75;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(16px, 3vw, 28px);
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #fff;
  background: #111;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.top-nav a:hover {
  color: var(--accent);
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px clamp(14px, 3vw, 28px) 56px;
}

.page-shell > *,
.article,
.sidebar,
.section-block,
.side-card,
.tool-card,
.ad-slot {
  min-width: 0;
}

.article,
.side-card {
  background: var(--paper);
  border: 1px solid var(--line);
}

.article {
  overflow: hidden;
  animation: page-in 420ms ease-out both;
}

.article-hero {
  padding: clamp(22px, 4vw, 42px);
  border-bottom: 1px solid var(--line);
}

.kicker,
.section-title span,
.ad-slot span,
.side-ad span,
.related-grid span,
.score-box span {
  color: var(--warn);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.article-hero h1 {
  max-width: 860px;
  margin: 10px 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
}

.lead {
  max-width: 74ch;
  margin: 0;
  color: #343b45;
  font-size: 18px;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.hero-media {
  margin: 26px 0 0;
  padding: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
  overflow: hidden;
}

.hero-media img {
  display: block;
  width: min(100%, 760px);
  height: auto;
  margin: 0 auto;
  transform-origin: center;
  animation: hero-drift 9000ms ease-in-out infinite alternate;
}

.hero-media figcaption {
  max-width: 760px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 13px;
}

.ad-slot {
  display: grid;
  gap: 4px;
  min-height: 96px;
  margin: 24px clamp(16px, 4vw, 38px);
  padding: 18px;
  place-items: center;
  color: #39414e;
  background: #fafafa;
  border: 1px solid var(--line);
  text-align: center;
}

.ad-slot strong {
  font-size: 17px;
}

.ad-unit {
  overflow: hidden;
}

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

.ad-unit[data-ad-status="active"] {
  display: block;
  padding: 0;
  background: transparent;
  border-color: transparent;
}

.ad-unit[data-ad-status="active"]::before {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  content: "広告";
  font-size: 11px;
  font-weight: 900;
  text-align: left;
}

.adsbygoogle {
  min-height: 90px;
}

.verdict-box,
.pros-cons,
.controls,
.section-block {
  margin: 24px clamp(16px, 4vw, 38px);
}

.verdict-box {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 20px;
  padding: 22px;
  background: #111;
  color: #fff;
}

.score-box {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 132px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.score-box strong {
  font-size: 48px;
  line-height: 1;
}

.score-box small,
.verdict-box p {
  color: #d7dbe0;
}

.verdict-box h2,
.verdict-box p {
  margin: 0;
}

.verdict-box p {
  margin-top: 8px;
}

.pros-cons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pros-cons > div {
  padding: 20px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.pros-cons h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.pros-cons ul,
.sources ul {
  margin: 0;
  padding-left: 20px;
}

.pros-cons li + li,
.sources li + li {
  margin-top: 8px;
}

.controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

select,
input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  font: inherit;
}

select:focus,
input:focus {
  outline: 3px solid rgba(15, 118, 110, 0.18);
  border-color: var(--accent);
}

.section-title {
  margin-bottom: 16px;
}

.section-title h2 {
  margin: 3px 0 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.22;
  letter-spacing: 0;
}

.cards-grid,
.related-grid,
.spec-grid {
  display: grid;
  gap: 14px;
}

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

.tool-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

@media (min-width: 761px) {
  .tool-card {
    grid-template-columns: 160px minmax(0, 1fr);
    align-items: start;
  }

  .tool-card header {
    align-self: stretch;
    align-content: start;
    justify-content: start;
    flex-direction: column;
  }

  .tool-card .deal-line,
  .tool-card .meta-row,
  .tool-card .cta-row {
    grid-column: 2;
  }
}

.tool-card:hover {
  border-color: #c9cdd3;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
  transform: translateY(-2px);
}

.tool-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.point-label {
  padding: 5px 9px;
  color: var(--warn);
  background: #f2f4f6;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.tool-card h3,
.related-grid h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.tool-card p,
.related-grid p,
.text-section p,
.faq p,
.side-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.deal-line {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.deal-line div {
  padding: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.deal-line span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.deal-line strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
}

.meta-row,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  color: #2a3946;
  background: var(--soft);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 900;
}

.button,
.sub-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  font-weight: 900;
}

.button {
  color: #fff;
  background: #111;
}

.sub-link {
  color: var(--link);
  background: #f2f5fa;
}

.text-section p {
  max-width: 74ch;
}

.text-section p + p {
  margin-top: 14px;
}

.article-photo {
  margin: 22px 0 0;
  overflow: hidden;
  background: var(--soft);
  border: 1px solid var(--line);
}

.article-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 420ms ease;
}

.article-photo:hover img {
  transform: scale(1.025);
}

.article-photo figcaption {
  margin: 0;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
}

table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  padding: 14px 15px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: #475467;
  background: var(--soft);
  font-size: 13px;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.spec-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.spec-grid div,
.related-grid article {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color 180ms ease, transform 180ms ease;
}

.related-grid article:hover {
  border-color: #c9cdd3;
  transform: translateY(-2px);
}

.notice-box {
  margin-bottom: 16px;
  padding: 18px;
  background: #fff8f0;
  border: 1px solid #ead4bd;
  border-left: 5px solid var(--warn);
}

.notice-box strong {
  display: block;
  font-size: 18px;
  line-height: 1.4;
}

.notice-box p {
  margin: 8px 0 0;
  color: #57463b;
}

.spec-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.spec-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sources a,
.toc a,
.popular a {
  color: var(--link);
  font-weight: 800;
  transition: color 160ms ease, transform 160ms ease;
}

.toc a:hover,
.popular a:hover {
  color: var(--accent);
  transform: translateX(2px);
}

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

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

.faq summary {
  cursor: pointer;
  font-weight: 900;
}

.sticky-stack {
  position: sticky;
  top: 76px;
  display: grid;
  gap: 14px;
}

.side-card {
  padding: 18px;
}

.side-card h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.toc,
.popular {
  display: grid;
  gap: 8px;
}

.side-ad {
  display: grid;
  place-items: center;
  min-height: 250px;
  padding: 16px;
  background: #fafafa;
  border: 1px solid var(--line);
  text-align: center;
}

.side-ad strong {
  display: block;
}

.side-ad .adsbygoogle {
  min-height: 250px;
}

.empty {
  grid-column: 1 / -1;
  padding: 18px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(14px, 3vw, 28px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.ad-footer {
  max-width: 1124px;
  margin: 0 auto 24px;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.025) translateY(-3px);
  }
}

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

@media (max-width: 1040px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .sticky-stack {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    width: 100%;
    gap: 8px 12px;
  }

  .article-hero {
    padding: 22px 16px;
  }

  .article-hero h1 {
    font-size: 34px;
  }

  .hero-media {
    padding: 12px;
  }

  .verdict-box,
  .pros-cons,
  .controls,
  .section-block {
    margin-right: 12px;
    margin-left: 12px;
  }

  .verdict-box,
  .pros-cons,
  .controls,
  .related-grid,
  .spec-grid {
    grid-template-columns: 1fr;
  }

  .deal-line {
    grid-template-columns: 1fr;
  }

  .score-box {
    min-height: 104px;
  }

  .ad-slot {
    margin-right: 12px;
    margin-left: 12px;
  }

  .sidebar {
    margin: 0 12px;
  }

  table {
    min-width: 720px;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 12px;
  }

  .brand {
    width: 100%;
  }

  .brand small {
    font-size: 11px;
  }

  .top-nav {
    font-size: 13px;
  }

  .article-hero h1 {
    font-size: 30px;
  }

  .lead {
    font-size: 16px;
  }

  .verdict-box,
  .pros-cons > div,
  .controls,
  .tool-card,
  .notice-box,
  .spec-grid div,
  .related-grid article,
  .side-card {
    padding: 14px;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }
}
