/* Phase 3 article layout. */
.article-v3 .article-meta {
  margin-bottom: 14px;
}

.article-v3 h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(1.9rem, 4.5vw, 2.65rem);
  letter-spacing: -0.02em;
}

.article-v3 .article-lead-short {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: 1.05rem;
  line-height: 1.9;
}

.article-v3 .phase3-summary {
  margin: 26px 0 22px;
  padding: 24px;
  border: 1px solid #dbe4dd;
  border-radius: 18px;
  background: #fff;
}

.article-v3 .phase3-summary__eyebrow {
  margin: 0 0 6px;
  color: #5f7466;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.article-v3 .phase3-summary h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.article-v3 .phase3-summary > p {
  margin: 0;
}

.article-v3 .phase3-fit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.article-v3 .phase3-fit {
  padding: 14px 15px;
  border-radius: 12px;
  background: #f5f7f4;
}

.article-v3 .phase3-fit strong {
  display: block;
  margin-bottom: 4px;
  color: #2f4537;
  font-size: 0.92rem;
}

.article-v3 .phase3-fit span {
  color: #68736c;
  font-size: 0.84rem;
  line-height: 1.65;
}

.article-v3 .quick-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 34px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #eef3ef;
}

.article-v3 .quick-navigation p {
  margin: 0;
  font-size: 0.9rem;
}

.article-v3 .quick-navigation__link {
  flex: none;
}

.article-v3 #comparison > h2 {
  margin-top: 36px;
}

.article-v3 .comparison-table th:first-child,
.article-v3 .comparison-table td:first-child {
  width: 48%;
}

.article-v3 .product-card {
  box-shadow: 0 3px 14px rgba(27, 45, 34, 0.05);
}

@media (max-width: 720px) {
  .article-v3 main {
    width: min(100% - 28px, 960px);
  }

  .article-v3 h1 {
    font-size: clamp(1.7rem, 8vw, 2.15rem);
  }

  .article-v3 .phase3-summary {
    padding: 20px 18px;
  }

  .article-v3 .phase3-fit-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .article-v3 .quick-navigation {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .article-v3 .quick-navigation__link {
    display: flex;
    justify-content: center;
    min-height: 44px;
    align-items: center;
  }

  .article-v3 .comparison-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .article-v3 .comparison-table {
    display: block;
    min-width: 0;
    background: transparent;
  }

  .article-v3 .comparison-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .article-v3 .comparison-table tbody {
    display: grid;
    gap: 12px;
  }

  .article-v3 .comparison-table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    border: 1px solid #dfe5e0;
    border-radius: 14px;
    background: #fff;
  }

  .article-v3 .comparison-table td {
    display: block;
    min-width: 0;
    padding: 12px 14px;
    border: 0;
    border-top: 1px solid #edf0ed;
  }

  .article-v3 .comparison-table td:first-child {
    grid-column: 1 / -1;
    width: auto;
    border-top: 0;
    padding-top: 15px;
  }

  .article-v3 .comparison-table td[data-label="詳細"] {
    grid-column: 1 / -1;
    padding-top: 6px;
  }

  .article-v3 .comparison-table td:not(:first-child)::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    color: #748078;
    font-size: 0.7rem;
    font-weight: 700;
  }

  .article-v3 .comparison-name {
    min-width: 0;
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .article-v3 .comparison-link {
    width: 100%;
    min-height: 44px;
  }

  .article-v3 .comparison-table-wrap::after {
    content: none;
  }

  .article-v3 .product-card__image {
    max-width: 240px;
  }
}

@media (max-width: 390px) {
  .article-v3 main {
    width: min(100% - 24px, 960px);
  }

  .article-v3 .phase3-summary {
    margin-top: 22px;
    padding: 18px 16px;
  }

  .article-v3 .comparison-table tbody tr {
    grid-template-columns: 1fr;
  }

  .article-v3 .comparison-table td,
  .article-v3 .comparison-table td[data-label="詳細"] {
    grid-column: 1;
  }

  .article-v3 .product-card {
    padding: 16px;
  }

  .article-v3 .product-actions {
    gap: 8px;
  }

  .article-v3 .product-actions a {
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    justify-content: center;
    text-align: center;
  }
}

/* Mobile hotfix: override legacy comparison swipe hints and keep product media visible. */
@media (max-width: 720px) {
  .article-v3 .comparison-table-wrap {
    padding-bottom: 0;
    box-shadow: none;
  }

  .article-v3 .comparison-table-wrap::before,
  .article-v3 .comparison-table-wrap::after {
    content: none !important;
    display: none !important;
  }

  .article-v3 .product-card__image {
    display: block;
    width: min(100%, 220px);
    max-width: 220px;
    margin-inline: auto;
    padding: 8px;
  }

  .article-v3 .product-card__image img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
  }
}

/* Phase 4: mobile reading and tap-target polish. */
.article-v3 {
  overflow-x: hidden;
}

.article-v3 img {
  max-width: 100%;
}

@media (max-width: 720px) {
  .article-v3 main {
    margin-top: 24px;
    margin-bottom: 48px;
  }

  .article-v3 .breadcrumbs {
    margin-bottom: 14px;
  }

  .article-v3 .breadcrumbs ol {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .article-v3 .breadcrumbs ol::-webkit-scrollbar {
    display: none;
  }

  .article-v3 .breadcrumbs li {
    flex: none;
    white-space: nowrap;
    font-size: .72rem;
  }

  .article-v3 .article-meta {
    gap: 6px;
  }

  .article-v3 h1 {
    margin-top: 8px;
    margin-bottom: 16px;
    line-height: 1.35;
  }

  .article-v3 .ad-disclosure {
    margin: 18px 0 22px;
    padding: 12px 13px;
    font-size: .8rem;
    line-height: 1.6;
  }

  .article-v3 .article-lead-short {
    margin-bottom: 18px;
    font-size: 1rem;
    line-height: 1.8;
  }

  .article-v3 .phase3-summary {
    margin-bottom: 18px;
  }

  .article-v3 .phase3-fit {
    padding: 13px 14px;
  }

  .article-v3 .quick-navigation {
    margin-bottom: 24px;
  }

  .article-v3 .decision-assistant,
  .article-v3 .selection-guide,
  .article-v3 .choice-guide {
    border-radius: 14px;
  }

  .article-v3 .decision-assistant__choices {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .article-v3 .decision-assistant__button {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    text-align: left;
  }

  .article-v3 .decision-assistant__result a,
  .article-v3 .comparison-link,
  .article-v3 .review-link,
  .article-v3 .rakuten-link {
    min-height: 46px;
  }

  .article-v3 .product-card {
    margin: 18px 0;
    gap: 12px;
    padding: 15px;
    border-radius: 15px;
    box-shadow: none;
  }

  .article-v3 .product-card h3 {
    font-size: 1rem;
    line-height: 1.55;
  }

  .article-v3 .product-facts {
    margin-bottom: 14px;
    padding: 13px 14px;
  }

  .article-v3 .product-fit-note {
    margin: 14px 0;
    padding: 12px 13px;
  }

  .article-v3 .product-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 14px;
  }

  .article-v3 .product-actions .rakuten-link,
  .article-v3 .product-actions .review-link {
    width: 100%;
    min-width: 0;
    flex: none;
    box-sizing: border-box;
  }

  .article-v3 .related-articles__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .article-v3 .related-article-card {
    padding: 16px;
  }

  .article-v3 .related-article-card h3 {
    font-size: 1rem;
    line-height: 1.55;
  }

  .article-v3 .related-article-card__link {
    display: flex;
    align-items: center;
    min-height: 44px;
    margin-top: 8px;
  }
}

@media (max-width: 390px) {
  .article-v3 h1 {
    font-size: 1.7rem;
  }

  .article-v3 .comparison-table td {
    padding: 11px 12px;
  }

  .article-v3 .product-card__image {
    width: min(100%, 190px);
    max-width: 190px;
  }
}
