/* responsive.css — SKILL.md §6 のモバイル絶対ルール。</head>直前で最後に読み込む。
   検証端末: 390×844。★末尾の3ブロックを削除しない★ */

@media (max-width: 980px) {
  .header-inner { min-height: 84px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
  .site-nav { width: 100%; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { flex-shrink: 0; }
  .hero-stage { height: 540px; }
  .hero-slide-inner { width: min(calc(100% - 56px), 1160px); }
  .hero-slide-copy { max-width: 560px; }
  .hero-slide h1, .hero-slide h2 { font-size: clamp(2.35rem, 5.5vw, 3.75rem); }
  .category-gateway-inner { grid-template-columns: repeat(2, 1fr); }
  .category-gateway a:nth-child(2n) { border-right: 1px solid var(--line); }
  .category-gateway a:nth-child(n+3) { border-top: 1px solid var(--line); }
  .featured-story { grid-template-columns: 1fr 1fr; }
  .featured-body { padding: 34px; }
  .story-grid { gap: 24px 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-legal { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .wrap { width: min(100% - 32px, 1160px); }
  main { padding-top: 28px; padding-bottom: 64px; }
  .site-name { font-size: 1.65rem; }
  .site-brand-note { font-size: .62rem; }
  .hero-carousel { margin-top: -28px; padding-top: 0; }
  .hero-stage { width: 100%; height: 570px; box-shadow: none; }
  .hero-slide > img { object-position: 64% center; }
  .hero-slide-shade { background: linear-gradient(180deg, rgba(250,247,242,.18) 0%, rgba(250,247,242,.6) 43%, rgba(250,247,242,.98) 72%, rgba(250,247,242,1) 100%); }
  .hero-slide-inner { align-items: flex-end; width: min(calc(100% - 40px), 1160px); padding-bottom: 42px; }
  .hero-slide-copy { max-width: 620px; padding: 0; }
  .hero-slide h1, .hero-slide h2 { margin-bottom: 12px; font-size: clamp(2.2rem, 9.5vw, 3rem); line-height: 1.34; }
  .hero-slide-copy > p:not(.hero-kicker) { max-width: 520px; margin-bottom: .85em; font-size: .88rem; line-height: 1.75; }
  .hero-cta { min-height: 46px; padding: 8px 16px; }
  .carousel-bar { width: min(calc(100% - 32px), 1160px); }
  .category-gateway-inner { width: min(calc(100% - 32px), 1160px); grid-template-columns: repeat(2, 1fr); }
  .category-gateway a { min-height: 86px; }
  .category-gateway a:nth-child(3) { border-right: 0; }
  .category-gateway a:nth-child(n+3) { border-top: 1px solid var(--line); }
  .category-gateway a:nth-child(even) { border-right: 1px solid var(--line); }
  .home-section { margin-top: 68px; }
  .featured-story { grid-template-columns: 1fr; }
  .featured-visual, .featured-placeholder { min-height: 330px; }
  .featured-body { min-height: 0; padding: 30px 28px 34px; }
  .featured-desc { -webkit-line-clamp: 3; }
  .story-grid { grid-template-columns: repeat(2, 1fr); }
  .story-grid .story-card:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: calc(50% - 9px); }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-grid li:nth-child(odd) { border-right: 0; }
  .editorial-note { grid-template-columns: 1fr; gap: 26px; margin-top: 80px; padding: 42px 34px; }
  .article { padding: 38px 30px 48px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .archive-list { gap: 36px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-legal { grid-column: auto; }
}

@media (max-width: 600px) {
  body { letter-spacing: .012em; }
  .wrap { width: min(100% - 28px, 1160px); }
  .ad-disclosure { padding: 6px 12px; font-size: .76rem; }
  .header-inner { min-height: 0; gap: 8px; padding-top: 11px; padding-bottom: 8px; }
  .site-brand { width: 100%; }
  .site-name { font-size: 1.5rem; }
  .site-brand-note { margin-top: 6px; }
  .site-nav { gap: 0 18px; width: 100%; padding-bottom: 1px; font-size: .74rem; }
  .site-nav .nav-archive { padding: 6px 11px; }
  h1 { font-size: 1.86rem; }
  h2 { font-size: 1.4rem; }
  .hero-stage { height: 550px; }
  .hero-slide > img { object-position: 68% top; }
  .hero-slide-inner { width: min(calc(100% - 32px), 1160px); padding-bottom: 28px; }
  .hero-slide h1, .hero-slide h2 { font-size: clamp(2rem, 10.8vw, 2.7rem); }
  .hero-kicker { max-width: 260px; font-size: .6rem; }
  .hero-slide-copy > p:not(.hero-kicker) { font-size: .82rem; line-height: 1.68; }
  .hero-cta { min-height: 44px; margin-top: 3px; font-size: .76rem; }
  .carousel-note { display: none; }
  .carousel-controls { justify-content: space-between; width: 100%; gap: 16px; }
  .carousel-toggle { font-size: .66rem; }
  .category-gateway-inner { width: 100%; }
  .category-gateway a { gap: 9px; min-height: 78px; padding: 13px 10px; }
  .gateway-label strong { font-size: .78rem; }
  .gateway-label small { font-size: .5rem; }
  .section-heading { align-items: flex-end; margin-bottom: 20px; }
  .section-title { font-size: 1.72rem; }
  .section-link { max-width: 96px; font-size: .71rem; line-height: 1.45; }
  .featured-visual, .featured-placeholder { min-height: 260px; }
  .featured-mark { left: 24px; bottom: 20px; font-size: 2.7rem; }
  .featured-body { padding: 26px 22px 28px; }
  .featured-body h3 { font-size: 1.3rem; }
  .story-grid { grid-template-columns: 1fr; gap: 34px; }
  .story-grid .story-card:last-child:nth-child(odd) { grid-column: auto; max-width: none; }
  .story-card h3 { font-size: 1.08rem; }
  .cat-grid a { grid-template-columns: 34px 1fr auto; gap: 11px; min-height: 86px; padding: 18px 12px; }
  .cat-arrow { display: none; }
  .cat-label { font-size: 1rem; }
  .editorial-note { margin-inline: calc(50% - 50vw); padding: 40px 22px; }
  .editorial-note h2 { font-size: 1.9rem; }
  .breadcrumb { margin-bottom: 12px; }
  .article { margin-inline: calc(50% - 50vw); padding: 32px 20px 42px; border-right: 0; border-left: 0; box-shadow: none; }
  .article-head h1 { font-size: 1.72rem; }
  .article > .lead { padding: 18px 16px; font-size: 1.02rem; }
  .article h2 { margin-top: 48px; font-size: 1.33rem; }
  .point-box { padding: 18px 18px 8px; box-shadow: 5px 5px 0 var(--soft); }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .product-card { padding: 9px; font-size: .8rem; }
  .card-thumb { width: 82px; height: 82px; }
  .k-review { padding: 16px; }
  .archive-list { grid-template-columns: 1fr; gap: 38px; }
  .archive-body h2 { font-size: 1.15rem; }
  .list-header { margin-bottom: 34px; padding-top: 18px; }
  .site-footer { padding-top: 48px; }
  .footer-nav { grid-template-columns: 1fr; }
  .footer-bottom { align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide, .hero-slide > img, .carousel-dot span { animation: none !important; transition: none !important; }
}

/* ★ブロック1: 横スクロール防止と sticky ヘッダーの両立（overflow-x:hidden だけだと sticky が壊れる） */
html, body {
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
}
.site-header { position: sticky !important; top: 0 !important; z-index: 100 !important; }

/* ★ブロック2: 早見表は横スクロール＋折り返し禁止（詳細度を上げて全テーブル一括ルールに勝つ） */
.spec-table-wrap, .table-scroll, .table-wrap {
  overflow-x: auto !important; -webkit-overflow-scrolling: touch; max-width: 100%;
}
.spec-table-wrap table, table.spec-table, table.cmp-table {
  display: table !important; width: auto !important;
  min-width: 680px !important; max-width: none !important; border-collapse: collapse;
}
.spec-table-wrap table th, .spec-table-wrap table td,
table.spec-table th, table.spec-table td {
  white-space: nowrap !important;
  max-width: none !important; word-break: normal !important;
}
table.spec-table td:first-child {
  white-space: normal !important; min-width: 170px; text-align: left;
}

/* ★ブロック3: CTAボタンは横並び固定（縦積み禁止） */
.btn-row, .cta-pair, .sticky-cta {
  display: flex !important; flex-wrap: nowrap !important;
  gap: 8px !important; align-items: stretch !important;
}
.btn-row > a, .cta-pair > a, .sticky-cta > a {
  flex: 1 1 0 !important; min-width: 0 !important;
  display: inline-flex !important; align-items: center !important;
  justify-content: center !important; gap: 6px !important;
  padding: 12px 8px !important; font-size: .95rem !important;
  white-space: nowrap !important; overflow: hidden !important;
  box-sizing: border-box !important;
}
.btn-ico { flex-shrink: 0 !important; width: 18px !important; height: 18px !important;
           border-radius: 4px !important; display: block !important; }
@media (max-width: 480px) {
  .btn-row > a { font-size: .86rem !important; padding: 12px 4px !important; gap: 4px !important; }
  .btn-ico { width: 16px !important; height: 16px !important; }
}
