/* ==========================================================
   サク読みガジェット 共通CSS
   配色: 背景 #F8FAFC / カード #FFFFFF / メイン #1E293B
         サブ #E2E8F0 / アクセント #0284C7
   ========================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #F8FAFC;
  color: #334155;
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}

a {
  color: #0284C7;
}

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

h1,
h2,
h3 {
  color: #1E293B;
}

/* ---------- レイアウト ---------- */

.container {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 600px) {
  .container {
    padding: 0 20px;
  }
}

/* ---------- マストヘッド（全ページ共通） ---------- */

.site-masthead {
  position: relative;
  overflow: hidden;
  background: #0F172A;
}

/* 背景画像。高さはページ種別ごとに指定 */
.masthead {
  background-color: #0F172A;
  background-image: url("masthead.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* トップページ：スマホ約200px / PC約280px */
.masthead--top {
  height: 200px;
}

/* 記事ページ：スマホ約120px / PC約160px */
.masthead--article {
  height: 120px;
}

@media (min-width: 600px) {
  .masthead--top {
    height: 280px;
  }

  .masthead--article {
    height: 160px;
  }
}

/* 左下のロゴ・サイト名・タグライン。下部に濃紺の半透明グラデーション */
.masthead-brand {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 0 14px;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.85) 0%,
    rgba(15, 23, 42, 0.55) 55%,
    rgba(15, 23, 42, 0) 100%
  );
  color: #FFFFFF;
}

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

.masthead-logo {
  display: block;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.masthead-text {
  min-width: 0;
  line-height: 1.3;
}

.brand-name {
  display: block;
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: #FFFFFF;
  text-decoration: none;
}

a.brand-name:hover,
a.brand-name:focus-visible {
  text-decoration: underline;
}

.masthead-tagline {
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.8);
}

@media (min-width: 600px) {
  .brand-name {
    font-size: 28px;
  }

  .masthead-tagline {
    font-size: 15px;
  }
}

/* ---------- 共通アイコン（インラインSVG） ---------- */

.ico {
  display: inline-block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

.ico-fill {
  fill: currentColor;
  stroke: none;
}

/* ---------- メイン ---------- */

main {
  padding: 16px 0 24px;
}

/* 白いカード（記事本文エリアも同じ扱い） */
.card,
.paper {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
}

.paper {
  padding: 20px;
  margin-bottom: 16px;
}

@media (min-width: 600px) {
  .paper {
    padding: 28px;
  }
}

/* ---------- トップページ：サイト紹介 ---------- */

.intro {
  margin-bottom: 16px;
  overflow: hidden;
}

.intro-body {
  padding: 20px;
}

.intro-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.intro p {
  margin: 0;
  font-size: 15px;
}

/* ---------- カテゴリピル（横スクロール） ---------- */

.pills {
  display: flex;
  gap: 8px;
  margin: 0 0 16px;
  padding: 4px 0 8px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.pills::-webkit-scrollbar {
  display: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 16px;
  gap: 6px;
  border: 1px solid #E2E8F0;
  border-radius: 999px;
  background: #FFFFFF;
  color: #334155;
  font-size: 14px;
  line-height: 1.4;
}

.pill .ico {
  width: 16px;
  height: 16px;
  color: #0284C7;
}

.pill.is-active {
  background: #1E293B;
  border-color: #1E293B;
  color: #FFFFFF;
}

.pill.is-active .ico {
  color: #FFFFFF;
}

/* ---------- 記事カード（一覧） ---------- */

.article-card {
  display: block;
  margin-bottom: 16px;
  overflow: hidden;
  color: #334155;
  text-decoration: none;
  transition: box-shadow 0.2s ease;
}

.article-card:hover {
  box-shadow: 0 2px 8px rgba(30, 41, 59, 0.08);
}

.article-card:focus-visible {
  outline: 2px solid #0284C7;
  outline-offset: 2px;
}

.card-body {
  padding: 16px 20px 20px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  color: #64748B;
  line-height: 1.4;
}

.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: #E2E8F0;
  color: #334155;
  font-size: 13px;
}

.card-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: #1E293B;
}

.rating-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px 4px 8px;
  border-radius: 999px;
  background: #0284C7;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.badge .ico {
  width: 14px;
  height: 14px;
}

.card-summary {
  margin: 0;
  font-size: 15px;
}

/* ---------- 画像プレースホルダー ---------- */

.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  width: 100%;
  padding: 16px;
  background: #E2E8F0;
  color: #64748B;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  line-height: 1.4;
}

.thumb {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: #E2E8F0;
}

.eyecatch {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin: 16px 0 0;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  background: #E2E8F0;
}

/* ---------- 記事ページ：パンくず ---------- */

.breadcrumb {
  margin: 0;
  padding: 8px 0 0;
  font-size: 13px;
  color: #64748B;
  line-height: 1.6;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li + li::before {
  content: "＞";
  padding: 0 6px;
  color: #64748B;
}

.breadcrumb a {
  color: #0284C7;
}

/* ---------- 記事ページ：タイトル・日付 ---------- */

.paper h1 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
}

.post-date {
  margin: 0;
  font-size: 14px;
  color: #64748B;
}

/* ---------- 注意書き（スペック照合ガイドである旨） ---------- */

.notice {
  margin: 16px 0 24px;
  padding: 12px 16px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  background: #F8FAFC;
  font-size: 14px;
  color: #64748B;
  line-height: 1.7;
}

.notice p {
  margin: 0;
}

/* ---------- 結論ボックス ---------- */

.box {
  margin: 0 0 16px;
  padding: 16px 20px;
  border-radius: 8px;
}

.box p {
  margin: 0 0 12px;
}

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

.paper .box h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.paper .box h3:not(:first-child) {
  margin-top: 16px;
}

.box-conclusion {
  border: 2px solid #0284C7;
  background: #F0F9FF;
}

.box-conclusion .summary {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  color: #1E293B;
}

.box-conclusion .score-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.paper .box-conclusion h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ico-badge {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  stroke: none;
}

.stars {
  color: #0284C7;
  font-size: 34px;
  letter-spacing: 3px;
  line-height: 1.1;
}

.score {
  font-size: 22px;
  font-weight: 700;
  color: #0284C7;
}

.box-conclusion .rationale {
  margin-top: 8px;
  font-size: 15px;
}

.box-conclusion ul {
  margin: 0 0 4px;
  padding-left: 1.3em;
}

.box-conclusion li {
  margin-bottom: 8px;
}

.box-conclusion li:last-child {
  margin-bottom: 0;
}

/* ---------- 良い点・気になる点 ---------- */

.box-pros {
  border: 2px solid #16A34A;
  background: #F0FDF4;
}

.box-cons {
  border: 2px solid #D97706;
  background: #FFFBEB;
}

.box-pros h3 {
  color: #16A34A !important;
}

.box-cons h3 {
  color: #D97706 !important;
}

.paper .box h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ico-head {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.box-pros .ico-head {
  color: #16A34A;
}

.box-cons .ico-head {
  color: #D97706;
}

.box ul {
  margin: 0;
  padding-left: 1.3em;
}

.box li {
  margin-bottom: 8px;
}

.box li:last-child {
  margin-bottom: 0;
}

.box-pros ul,
.box-cons ul {
  padding-left: 0;
  list-style: none;
}

.box-pros li,
.box-cons li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.ico-li {
  width: 16px;
  height: 16px;
  margin-top: 0.4em;
}

.box-pros .ico-li {
  color: #16A34A;
}

.box-cons .ico-li {
  color: #D97706;
}

/* ---------- 本文の見出し・段落 ---------- */

.paper h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 48px 0 16px;
  padding: 10px 12px;
  border-left: 4px solid #0284C7;
  border-radius: 0 6px 6px 0;
  background: #F0F9FF;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.ico-h2 {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  color: #0284C7;
}

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

.paper h3 {
  margin: 32px 0 12px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.paper p {
  margin: 0 0 1.5em;
}

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

.paper strong {
  color: #1E293B;
}

/* ---------- スペック表 ---------- */

.spec-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 15px;
  line-height: 1.6;
}

.spec-table caption {
  caption-side: top;
  text-align: left;
  margin-bottom: 8px;
}

.spec-table th,
.spec-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #E2E8F0;
  text-align: left;
  vertical-align: top;
  word-break: break-word;
}

.spec-table thead th {
  background: #E2E8F0;
  color: #1E293B;
  font-weight: 700;
}

.spec-table tbody tr:nth-child(even) {
  background: #F8FAFC;
}

.spec-table th.col-label {
  width: 34%;
  color: #1E293B;
  font-weight: 700;
}

/* ---------- まとめ ---------- */

.summary-card {
  margin-top: 8px;
  padding: 16px 20px;
  border: 1px solid #E2E8F0;
  border-left: 4px solid #0284C7;
  border-radius: 8px;
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(30, 41, 59, 0.06);
}

.summary-logo {
  display: block;
  width: 24px;
  height: 24px;
  margin-bottom: 8px;
  border-radius: 6px;
}

.summary-box {
  margin: 0;
}

/* ---------- フッター ---------- */

.site-footer {
  margin-top: 32px;
  padding: 24px 0 40px;
  border-top: 1px solid #E2E8F0;
  background: #FFFFFF;
  font-size: 14px;
  color: #64748B;
  line-height: 1.7;
}

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

.site-footer .footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #1E293B;
}

.footer-logo img {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

.copyright {
  margin: 16px 0 0 !important;
  font-size: 13px;
}
