:root {
  color-scheme: light;
  --ink: #0b2530;
  --ink-2: #17333d;
  --deep: #081d25;
  --deep-2: #0d3440;
  --paper: #ffffff;
  --bg: #f5f7f8;
  --warm: #fbf8f1;
  --muted: #62727a;
  --line: #cfdee2;
  --teal: #18a69a;
  --teal-dark: #08786f;
  --teal-soft: #e5f5f3;
  --indigo: #6676e8;
  --indigo-soft: #eef0ff;
  --amber: #e5ad2f;
  --amber-soft: #fff5d9;
  --rose: #d96a7e;
  --rose-soft: #fff0f3;
  --shadow: 0 12px 32px rgba(8, 29, 37, 0.08);
  --radius: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Meiryo", "メイリオ", system-ui, -apple-system, sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

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

a:focus-visible,
summary:focus-visible,
.table-scroll:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  transform: translateY(-150%);
  border-radius: 6px;
  background: #fff;
  color: var(--deep);
  padding: 10px 14px;
  font-weight: 900;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-nav,
.site-footer {
  background: var(--deep);
  color: #fff;
}

.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 36px));
  min-height: 58px;
  margin: 0 auto;
  gap: 20px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.brand-link img {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 18px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #d8e7ea;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.nav-links .nav-cta {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  padding: 4px 14px;
  color: #fff;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-underline-offset: 5px;
}

.top-main {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 64px;
}

.top-hero {
  padding: 20px 0 42px;
  border-bottom: 1px solid var(--line);
}

.label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--teal);
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  padding: 3px 12px;
  font-size: 0.78rem;
  font-weight: 900;
}

.top-hero h1 {
  max-width: 900px;
  margin: 18px 0 12px;
  font-size: clamp(2.2rem, 6vw, 4.7rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.top-hero .lead {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.notice {
  max-width: 920px;
  margin: 22px 0 0;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 13px 16px;
  color: var(--muted);
  font-size: 0.88rem;
}

.top-section {
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
}

.section-kicker {
  margin: 0 0 7px;
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.top-section h2,
.article-section h2,
.info-hero h1 {
  margin: 0;
  font-size: clamp(1.45rem, 3.2vw, 2.1rem);
  line-height: 1.4;
}

.section-lead {
  max-width: 800px;
  margin: 10px 0 0;
  color: var(--muted);
}

.featured {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  align-items: center;
  gap: 28px;
}

.featured-copy h2 {
  margin-bottom: 12px;
}

.featured-copy p:not(.section-kicker) {
  margin: 0 0 20px;
  color: var(--muted);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--deep);
  border-radius: 8px;
  background: var(--deep);
  color: #fff;
  padding: 9px 16px;
  font-weight: 900;
  text-decoration: none;
}

.button:hover,
.button:focus-visible {
  background: var(--deep-2);
}

.button.secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.button.youtube {
  border-color: #c71414;
  background: #c71414;
}

.entry-visual {
  overflow: hidden;
  aspect-ratio: 1200 / 675;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.entry-visual-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 16%;
  background: var(--deep);
  color: #fff;
  padding: 3% 5%;
  font-size: clamp(0.6rem, 1.1vw, 0.86rem);
  font-weight: 900;
}

.entry-visual-body {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 5%;
  height: 84%;
  padding: 6%;
}

.entry-title {
  align-self: center;
}

.entry-title span {
  display: block;
  margin-bottom: 6%;
  color: var(--teal-dark);
  font-size: clamp(0.56rem, 1.05vw, 0.78rem);
  font-weight: 900;
}

.entry-title strong {
  display: block;
  font-size: clamp(1.05rem, 2.6vw, 2rem);
  line-height: 1.35;
}

.mini-results {
  display: grid;
  align-content: center;
  gap: 4%;
}

.mini-result {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 25%;
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: 7px;
  padding: 4% 5%;
  background: #fff;
}

.mini-result:nth-child(2) {
  border-left-color: var(--amber);
  background: var(--amber-soft);
}

.mini-result strong {
  font-size: clamp(0.58rem, 1.2vw, 0.9rem);
}

.mini-result em {
  color: var(--teal-dark);
  font-size: clamp(0.7rem, 1.6vw, 1.18rem);
  font-style: normal;
  font-weight: 900;
}

.mini-result:nth-child(2) em {
  color: #9a6916;
}

.scene-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.scene-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 18px;
}

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

.scene-card h3 {
  margin: 0;
  font-size: 1.14rem;
  line-height: 1.5;
}

.scene-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.status {
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  padding: 3px 9px;
  font-size: 0.68rem;
  font-weight: 900;
}

.status.planning {
  background: #eff2f3;
  color: var(--muted);
}

.text-link {
  justify-self: start;
  color: var(--teal-dark);
  font-weight: 900;
  text-underline-offset: 4px;
}

.text-link.disabled {
  color: var(--muted);
  text-decoration: none;
}

.policy-grid,
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.policy-card,
.method-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 17px;
}

.policy-card strong,
.method-card strong {
  display: block;
  margin-bottom: 7px;
  color: var(--teal-dark);
}

.policy-card p,
.method-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.channel-panel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--deep);
  color: #fff;
  padding: clamp(20px, 4vw, 32px);
}

.channel-panel img {
  width: 72px;
  height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
}

.channel-panel h2 {
  margin: 0 0 5px;
}

.channel-panel p {
  margin: 0;
  color: #cfe3e6;
  font-size: 0.88rem;
}

.site-footer {
  padding: 28px 18px 36px;
  color: #c5dadd;
  text-align: center;
  font-size: 0.78rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-bottom: 13px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 800;
  text-underline-offset: 4px;
}

.site-footer p {
  margin: 5px 0;
}

/* Comparison article */
.article-hero {
  border-bottom: 6px solid var(--teal);
  background: var(--ink);
  color: #fff;
  padding: 46px 24px 56px;
  text-align: center;
}

.article-hero-inner {
  max-width: 920px;
  margin: 0 auto;
}

.disclosure {
  display: inline-block;
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 4px;
  padding: 3px 12px;
  font-size: 0.76rem;
  font-weight: 900;
}

.article-eyebrow {
  margin: 0 0 10px;
  color: #bce6e2;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.article-hero h1 {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 3.1rem);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.article-hero-copy {
  max-width: 760px;
  margin: 15px auto 0;
  color: #d7ecef;
  font-size: 0.94rem;
}

.editor-meta {
  margin: 13px 0 0;
  color: #bdd5d9;
  font-size: 0.76rem;
}

.editor-meta a {
  font-weight: 800;
  text-underline-offset: 4px;
}

.article-wrap {
  width: min(1080px, calc(100% - 36px));
  margin: 0 auto;
  padding: 0 0 64px;
}

.verdict-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  position: relative;
  z-index: 1;
  margin: -25px 0 34px;
}

.verdict-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 15px 14px;
  box-shadow: var(--shadow);
}

.verdict-card.claude {
  border-top-color: var(--amber);
  background: var(--amber-soft);
}

.verdict-card span {
  display: block;
  color: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 900;
}

.verdict-card.claude span {
  color: #8b5e0f;
}

.verdict-card strong {
  display: block;
  margin-top: 3px;
  font-size: 1.06rem;
}

.verdict-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.article-section {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.article-section:first-of-type {
  padding-top: 0;
}

.condition-note {
  margin: 15px 0 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  background: #fff;
  padding: 13px 15px;
  color: var(--muted);
  font-size: 0.82rem;
}

.table-scroll {
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  min-width: 860px;
  border: 1px solid var(--line);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.comparison-table th,
.comparison-table td {
  border-bottom: 1px solid var(--line);
  padding: 13px 10px;
  text-align: center;
  vertical-align: middle;
  font-size: 0.82rem;
}

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

.comparison-table tbody th,
.comparison-table .corner {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 132px;
  background: #dceff1;
  font-size: 0.75rem;
  font-weight: 900;
  white-space: nowrap;
}

.comparison-table .corner {
  z-index: 3;
}

.comparison-table thead th:not(.corner) {
  min-width: 220px;
  background: #fff;
  padding: 18px 12px;
}

.comparison-table thead th.claude-col,
.comparison-table td.claude-col {
  background: var(--amber-soft);
}

.model-badge {
  display: inline-block;
  margin-bottom: 7px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  padding: 3px 10px;
  font-size: 0.65rem;
  font-weight: 900;
}

.model-badge.note {
  background: #ffe8b2;
  color: #85580e;
}

.model-name {
  display: block;
  font-size: 1.02rem;
  line-height: 1.45;
}

.cell-good {
  color: var(--teal-dark);
  font-weight: 900;
}

.cell-caution {
  color: #9a6410;
  font-weight: 900;
}

.cell-muted {
  color: var(--muted);
}

.table-notes {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.72rem;
}

.difference-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 22px;
  align-items: stretch;
  margin-top: 18px;
}

.difference-number {
  display: grid;
  align-content: center;
  border: 1px solid #ecd28f;
  border-radius: var(--radius);
  background: var(--amber-soft);
  padding: 24px;
  text-align: center;
}

.difference-number span {
  color: #8e681b;
  font-size: 0.76rem;
  font-weight: 900;
}

.difference-number strong {
  display: block;
  margin: 5px 0;
  color: #8b5e0f;
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1.1;
}

.difference-number small {
  color: #8e681b;
}

.difference-copy {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 20px;
}

.difference-copy p {
  margin: 0 0 13px;
}

.difference-copy p:last-child {
  margin-bottom: 0;
}

.rule-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.rule-item {
  border-left: 4px solid var(--teal);
  background: var(--paper);
  padding: 16px;
}

.rule-item strong {
  display: block;
  margin-bottom: 6px;
}

.rule-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.fact {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 15px;
}

.fact span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
}

.fact strong {
  display: block;
  margin-top: 3px;
  font-size: 1.08rem;
}

.conclusion {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: clamp(20px, 4vw, 30px);
}

.conclusion p {
  margin: 11px 0 0;
}

.sources {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.78rem;
}

.sources summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

.sources ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.sources li + li {
  margin-top: 6px;
}

/* Trust pages */
.info-main {
  width: min(860px, calc(100% - 36px));
  margin: 0 auto;
  padding: 50px 0 70px;
}

.info-hero {
  margin-bottom: 26px;
}

.info-eyebrow {
  margin: 0 0 8px;
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.info-lead {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--muted);
}

.info-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: clamp(24px, 5vw, 46px);
  box-shadow: var(--shadow);
}

.info-card h2 {
  margin: 2.2em 0 0.6em;
  padding-bottom: 0.35em;
  border-bottom: 1px solid var(--line);
  font-size: 1.3rem;
}

.info-card h2:first-child {
  margin-top: 0;
}

.info-card h3 {
  margin: 1.6em 0 0.5em;
  font-size: 1.04rem;
}

.info-card p,
.info-card ul,
.info-card ol {
  margin-top: 0.7em;
  margin-bottom: 1em;
}

.info-card li + li {
  margin-top: 0.45em;
}

.info-note {
  margin: 1.4em 0;
  border-left: 4px solid var(--teal);
  background: var(--teal-soft);
  padding: 15px 17px;
}

.info-updated {
  margin-top: 34px !important;
  color: var(--muted);
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .featured,
  .difference-panel {
    grid-template-columns: 1fr;
  }

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

  .policy-grid,
  .method-grid,
  .rule-list {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .site-nav-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
    gap: 4px;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

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

  .channel-panel {
    grid-template-columns: auto 1fr;
  }

  .channel-panel .button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .top-main,
  .article-wrap,
  .info-main {
    width: min(100% - 28px, 1120px);
  }

  .top-main {
    padding-top: 24px;
  }

  .top-hero h1 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .entry-visual-body {
    gap: 3%;
    padding: 5%;
  }

  .mini-result {
    border-left-width: 3px;
    padding: 3% 4%;
  }

  .article-hero {
    padding: 36px 18px 49px;
  }

  .article-hero h1 {
    font-size: 1.55rem;
  }

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

  .table-scroll::after {
    content: "横にスクロールして3候補を比較できます";
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.7rem;
    text-align: center;
  }

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

  .channel-panel {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .channel-panel img {
    margin: 0 auto;
  }

  .channel-panel .button {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
