/* ═══════════════════════════════════════════════════════
   印刷通販navi  ―  デザインシステム v4  common.css
   落ち着き × 余白 × 微ラウンド  ref: nisshodenkiseigyo.com/chromateach/
   ═══════════════════════════════════════════════════════ */

:root {
  /* ── ブランドカラー ── */
  --navy:        #0D2B5C;   /* ディープネイビー（ブランド軸） */
  --blue:        #e4256f;   /* ロイヤルブルー（落ち着いたアクセント） */
  --blue-bg:     #EEF3FF;
  --blue-mid:    #3B6FE8;
  --red:         #DC2626;
  --red-bg:      #FEF2F2;
  --yellow:      #D97706;   /* アンバー（落ち着き） */
  --yellow-bg:   #FFFBEB;
  --green:       #059669;
  --green-bg:    #ECFDF5;
  --teal:        #0891B2;
  --teal-bg:     #ECFEFF;
  --purple:      #7C3AED;
  --purple-bg:   #F5F3FF;

  /* ── 後方互換エイリアス ── */
  --brand:       var(--navy);
  --brand-light: var(--blue);
  --accent:      var(--blue);
  --accent-bg:   var(--blue-bg);
  --accent-mid:  var(--blue-mid);
  --coral:       var(--red);

  /* ── 競合カラー ── */
  --raksul:      #0066CC;
  --printpac:    #CC0000;
  --graphic:     #475569;

  /* ── テキスト ── */
  --black:       #202020;
  --gray:        #404040;
  --gray-mid:    #666666;
  --light-gray:  #F3F4F6;

  /* ── UI ── */
  --white:       #FFFFFF;
  --border:      #E5E7EB;
  --shadow:      0 1px 6px rgba(0,0,0,.07), 0 2px 16px rgba(0,0,0,.04);
  --shadow-hover: 0 4px 20px rgba(0,0,0,.11), 0 8px 32px rgba(0,0,0,.06);
  --radius:      4px;     /* 微ラウンド：直角に近くしつつ少し丸める */
  --radius-sm:   2px;
  --radius-md:   6px;     /* ミディアム（カード等に使う場合） */
  --font:        'Hiragino Sans','Hiragino Kaku Gothic ProN','Noto Sans JP',sans-serif;

  /* ── セクション背景 ── */
  --bg-body:     #FFFFFF;
  --bg-section:  #F8FAFF;   /* 極めて淡いブルー */
  --bg-section2: #F6FFFE;   /* 極めて淡いグリーン */
}

/* ── リセット ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* 横スクロール禁止（全ページ） */
}
body {
  font-family: var(--font);
  font-size: 15px; line-height: 1.9;
  color: var(--black);
  background: var(--bg-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* 画像・メディア要素のはみ出し防止 */
img, video, svg, iframe { max-width: 100%; height: auto; display: block; }
/* 長いURLや単語の折り返し */
p, li, td, th { word-break: break-word; overflow-wrap: break-word; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); text-decoration: underline; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }
@media (max-width: 768px) {
  .layout { grid-template-columns: 1fr; gap: 32px; }
  .sidebar { display: none; }
}

/* ══════════════════════════════════
   ヘッダー
   ══════════════════════════════════ */
#site-header {
  background: var(--white);
  border-bottom: 3px solid var(--navy);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.site-logo {
  font-size: 20px; font-weight: 800; color: var(--navy);
  letter-spacing: .04em; display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.site-logo-icon {
  background: var(--navy); color: var(--white);
  width: 34px; height: 34px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 900;
}
.site-logo em { color: var(--blue); font-style: normal; }
.global-nav { display: flex; gap: 4px; }
.global-nav a {
  color: var(--black); font-size: 13px; font-weight: 600;
  padding: 7px 14px; border-radius: var(--radius);
  letter-spacing: .03em;
  transition: background .12s, color .12s;
}
.global-nav a:hover {
  background: var(--blue-bg); color: var(--blue);
  text-decoration: none;
}
/* ── ハンバーガーボタン ── */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  width: 40px; height: 40px; gap: 6px;
  background: none; border: none; cursor: pointer;
  padding: 4px; border-radius: var(--radius);
  transition: background .12s;
  flex-shrink: 0;
}
.nav-hamburger:hover { background: var(--light-gray); }
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--navy); border-radius: 1px;
  transition: transform .22s, opacity .18s;
  transform-origin: center;
}

@media (max-width: 640px) {
  .nav-hamburger { display: flex; }

  /* 通常時はナビ非表示 */
  .global-nav {
    display: none;
    flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 3px solid var(--navy);
    padding: 4px 28px 16px;
    gap: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    z-index: 98;
  }

  /* 開いた状態 */
  #site-header.nav-open .global-nav { display: flex; }
  #site-header.nav-open .global-nav a {
    padding: 15px 4px;
    border-bottom: 1px solid var(--border);
    font-size: 15px; border-radius: 0;
  }
  #site-header.nav-open .global-nav a:last-child { border-bottom: none; }

  /* ハンバーガー → ✕ アニメーション */
  #site-header.nav-open .nav-hamburger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  #site-header.nav-open .nav-hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  #site-header.nav-open .nav-hamburger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ══════════════════════════════════
   パンくず
   ══════════════════════════════════ */
.breadcrumb { padding: 14px 0; font-size: 12px; color: var(--gray-mid); letter-spacing: .02em; }
.breadcrumb a { color: var(--gray-mid); }
.breadcrumb a:hover { color: var(--blue); text-decoration: none; }
.breadcrumb span { margin: 0 8px; opacity: .5; }

/* ══════════════════════════════════
   ヒーロー
   ══════════════════════════════════ */
.hero {
  background: url('img/hero-01.jpg') center center / cover no-repeat;
  color: var(--white);
  padding: 96px 0 108px;
  text-align: center;
  position: relative; overflow: hidden;
}
/* 細かすぎないドット：落ち着き */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
/* 下端ライン */
.hero::after {
  content: "";
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--blue);
}
.hero-eyebrow {
  display: inline-block;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: 5px 20px;
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  margin-bottom: 28px; font-weight: 600;
  color:#000;
  background-color: #FFF;
}
.hero h1 {
  font-size: clamp(22px, 3.8vw, 45px);
  font-weight: 800; line-height: 1.35;
  margin-bottom: 20px; letter-spacing: -.01em;
}
.hero h1 em { color: #F4E721; font-style: normal; }
.hero-sub {
  font-size: 18px; line-height: 1.75;
  margin-bottom: 44px; max-width: 90%; margin-left: auto; margin-right: auto;font-weight: bold;
}
.btn-primary {
  display: inline-block;
  background: var(--white); color: var(--navy);
  font-size: 14px; font-weight: 800; padding: 14px 40px;
  border-radius: var(--radius);
  letter-spacing: .05em;
  transition: background .15s, color .15s, box-shadow .15s;
}
.btn-primary:hover {
  background: var(--blue-bg); color: var(--blue);
  box-shadow: none;
  text-decoration: none;
}

/* ══════════════════════════════════
   セクション共通
   ══════════════════════════════════ */
.section { padding: 80px 0; }
.section-alt    { background: var(--bg-section); }
.section-mint   { background: var(--bg-section2); }
.section-red    { background: #FFF9F9; }
.section-yellow { background: var(--yellow-bg); }
.section-white  { background: var(--white); }

.section-label {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--navy); color: var(--white);
  font-size: 13px; font-weight: 700; padding: 4px 14px;
  border-radius: var(--radius); margin-bottom: 14px;
  letter-spacing: .12em; text-transform: uppercase;
}
.section-label.red    { background: var(--red); }
.section-label.green  { background: var(--green); }
.section-label.yellow { background: var(--yellow); }
.section-label.blue   { background: var(--blue); }

.section-title {
  font-size: 30px; font-weight: 800; color: var(--black);
  margin-bottom: 10px; line-height: 1.3;
  letter-spacing: -.02em;
}
.section-title em { color: var(--blue); font-style: normal; }
.section-desc { color: var(--gray); font-size: 16px; margin-bottom: 40px; line-height: 1.8; }
.section-head { margin-bottom: 44px; }

/* ══════════════════════════════════
   柱ページカードグリッド
   ══════════════════════════════════ */
.pillar-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 600px) { .pillar-grid { grid-template-columns: 1fr; } }

.pillar-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  display: block; color: inherit;
}
.pillar-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  text-decoration: none; color: inherit;
}
.pillar-card-top { height: 4px; }
.pillar-card-top.c1 { background: var(--red); }
.pillar-card-top.c2 { background: var(--green); }
.pillar-card-top.c3 { background: var(--teal); }
.pillar-card-top.c4 { background: var(--blue); }
.pillar-card-inner { padding: 28px 30px 32px; }
.pillar-badge {
  display: inline-block;
  font-size: 13px; font-weight: 700; padding: 2px 10px;
  border-radius: var(--radius); margin-bottom: 14px;
  letter-spacing: .08em; text-transform: uppercase;
  background: var(--blue-bg); color: var(--blue);
}
.pillar-badge.g { background: var(--green-bg); color: var(--green); }
.pillar-badge.t { background: var(--teal-bg);  color: var(--teal); }
.pillar-badge.r { background: var(--red-bg);   color: var(--red); }
.pillar-badge.b { background: var(--blue-bg);  color: var(--blue); }
.pillar-card h3 {
  font-size: 25px; font-weight: 700; color: var(--black);
  line-height: 1.5; margin-bottom: 12px;
}
.pillar-card p { font-size: 15px; color: var(--gray); line-height: 1.75; margin-bottom: 18px; }
.card-link {
  font-size: 15px; font-weight: 700; color: #0483f3;
  display: inline-flex; align-items: center; gap: 4px;
  letter-spacing: .02em;
}
.card-link::after { content: " →"; }

/* ══════════════════════════════════
   サブナビカード（4枚グリッド）
   ══════════════════════════════════ */
.sub-nav-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 700px) { .sub-nav-grid { grid-template-columns: repeat(2, 1fr); } }
.sub-nav-card {
  background: var(--white);
  border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 28px 16px; text-align: center;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: block; color: var(--black);
}
.sub-nav-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--blue);
  text-decoration: none;
}
.sub-nav-icon { font-size: 30px; margin-bottom: 12px; display: block; }
.sub-nav-card h3 { font-size: 23px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.sub-nav-card p { font-size: 15px; color: var(--gray); line-height: 1.6; }

/* ══════════════════════════════════
   比較テーブル
   ══════════════════════════════════ */
.comp-table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  margin: 28px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;             /* ← hidden を削除：スマホ横スクロール有効化 */
  overflow-y: hidden;           /* 上下はクリップしてborder-radiusを維持 */
  box-shadow: var(--shadow);
}
.comp-table {
  width: 100%; min-width: 600px;
  border-collapse: collapse; font-size: 13px;
}
.comp-table th, .comp-table td {
  padding: 15px 18px; border: 1px solid var(--border);
  vertical-align: middle;
}
.comp-table thead th { font-size: 15px; font-weight: 700; text-align: center; letter-spacing: .04em; }
.comp-table th.col-item  { background: #9FB0BE;     color: var(--white); }
.comp-table th.col-pa    { background: #1C8B6A;     color: var(--white); }
.comp-table th.col-raksul{ background: #000;   color: var(--white); }
.comp-table th.col-pp    { background: var(--printpac); color: var(--white); }
.comp-table th.col-gra   { background: #004fb5;  color: var(--white); }
.comp-table tbody tr:nth-child(even) td { background: #FAFBFC; }
.comp-table .td-pa    { background: var(--blue-bg) !important; color: var(--blue); font-weight: 700; text-align: center; }
.comp-table .td-oth   { text-align: center; color: var(--gray); }
.comp-table .td-label { font-weight: 600; }
.note {
  font-size: 12px; color: var(--gray);
  margin-top: 12px; padding: 12px 16px;
  background: var(--light-gray); border-radius: var(--radius);
  border-left: 3px solid var(--border);
  line-height: 1.75;
}

/* ══════════════════════════════════
   記事カードリスト
   ══════════════════════════════════ */
.article-list { display: flex; flex-direction: column; gap: 14px; }
.article-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--border);
  display: flex; gap: 16px; padding: 20px 24px;
  border-left: 8px solid #00b5fc;
  transition: border-left-color .15s, box-shadow .15s;
  color: inherit;
}
.article-card:hover {
  border-left-color: var(--blue);
  box-shadow: var(--shadow-hover);
  text-decoration: none; color: inherit;
}
.article-card-body { flex: 1; }
.article-card-cat {
  font-size: 13px; font-weight: 700; color: var(--blue);
  text-transform: uppercase; letter-spacing: .12em; margin-bottom: 5px;
}
.article-card h3 { font-size: 20px; font-weight: 700; color: var(--black); margin-bottom: 6px; line-height: 1.5; }
.article-card p { font-size: 15px; color: var(--gray); line-height: 1.65; }

/* ══════════════════════════════════
   ポイントボックス
   ══════════════════════════════════ */
.point-box {
  background: var(--green-bg); border: 1px solid #A7F3D0;
  border-radius: var(--radius); padding: 22px 26px; margin: 24px 0;
}
.point-box ul { list-style: none; }
.point-box li { padding: 5px 0 5px 26px; position: relative; font-size: 14px; line-height: 1.75; }
.point-box li::before { content: "✅"; position: absolute; left: 0; }

/* ══════════════════════════════════
   CTAボックス
   ══════════════════════════════════ */
.cta-box {
  background: var(--navy);
  border-radius: var(--radius); padding: 40px 48px; text-align: center; margin: 40px 0;
}
.cta-box p { font-size: 20px; font-weight: 800; color: var(--white); margin-bottom: 8px; letter-spacing: -.01em; }
.cta-box small { font-size: 13px; color: rgba(255,255,255,.6); display: block; line-height: 1.75; }
.cta-box .btn-cta {
  display: inline-block; margin-top: 24px;
  background: #93C5FD; color: var(--navy);
  font-size: 14px; font-weight: 800; padding: 13px 40px;
  border-radius: var(--radius); letter-spacing: .05em;
  transition: background .15s, color .15s;
}
.cta-box .btn-cta:hover {
  background: var(--white); color: var(--navy);
  text-decoration: none;
}

/* ══════════════════════════════════
   サイドバー
   ══════════════════════════════════ */
.sidebar { position: sticky; top: 76px; }
.sidebar-box {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--border);
  padding: 22px 24px; margin-bottom: 20px;
}
.sidebar-title {
  font-size: 17px; font-weight: 700; color: var(--navy);
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px; margin-bottom: 14px;
  letter-spacing: .1em; text-transform: uppercase;
}
.toc-list { list-style: none; }
.toc-list li { border-bottom: 1px solid var(--border); }
.toc-list a { display: block; padding: 8px 0; font-size: 15px; color: var(--black); line-height: 1.5; }
.toc-list a:hover { color: var(--blue); text-decoration: none; }
.toc-list .toc-num { color: var(--blue); font-weight: 700; margin-right: 6px; }
.sidebar-link-list { list-style: none; }
.sidebar-link-list li { padding: 6px 0; border-bottom: 1px solid var(--border); }
.sidebar-link-list a { font-size: 15px; color: var(--black); display: flex; align-items: center; gap: 8px; }
.sidebar-link-list a::before { content: "›"; color: var(--blue); font-size: 16px; line-height: 1; }

/* ══════════════════════════════════
   本文スタイル（記事ページ共通）
   ══════════════════════════════════ */
.article-body {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--border);
  padding: 48px 52px;
}
@media (max-width: 600px) { .article-body { padding: 24px 20px; } }

.article-body h1 {
  font-size: 25px; font-weight: 800; color: var(--black);
  line-height: 1.4; margin-bottom: 24px; padding-bottom: 18px;
  border-bottom: 2px solid var(--border);
  letter-spacing: -.01em;
}
.article-body .article-meta {
  font-size: 12px; color: var(--gray-mid); margin-bottom: 28px;
  display: flex; gap: 16px; flex-wrap: wrap;
}

/* H2 ── 落ち着いたスタイル：左ボーダー＋薄い背景 */
.article-body h2 {
  font-size: 18px; font-weight: 800; color: #202020;
  background: var(--bg-section);
  padding: 14px 20px 14px 18px;
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 52px 0 20px;
  letter-spacing: -.01em;
}
.article-body h2.accent-h2 {
  background: var(--blue-bg);
  border-left-color: var(--navy);
}
.article-body h2.h2-red    { background: var(--red-bg);    border-left-color: var(--red); }
.article-body h2.h2-green  { background: var(--green-bg);  border-left-color: var(--green); }
.article-body h2.h2-teal   { background: var(--teal-bg);   border-left-color: var(--teal); }
.article-body h2.h2-purple { background: var(--purple-bg); border-left-color: var(--purple); }

.article-body h3 {
  font-size: 16px; font-weight: 700; color: var(--navy);
  border-left: 3px solid var(--blue); padding-left: 14px;
  margin: 36px 0 14px;
}
.article-body p { margin-bottom: 16px; line-height: 1.9; }
.article-body ul { list-style: none; margin: 14px 0 18px 0; }
.article-body ul li { padding: 5px 0 5px 22px; position: relative; }
.article-body ul li::before {
  content: "–"; position: absolute; left: 0;
  color: var(--blue); font-weight: 700;
}
.article-body .note {
  font-size: 12px; color: var(--gray); padding: 12px 16px;
  background: var(--light-gray); border-radius: var(--radius);
  margin-top: 10px; border-left: 3px solid var(--border);
  line-height: 1.75;
}
.article-body .caution { color: var(--red); font-size: 13px; }

/* ══════════════════════════════════
   ランキングカード（旧スタイル・互換）
   ══════════════════════════════════ */
.ranking-section { padding: 80px 0; }
.ranking-section .container { position: relative; }
.ranking-list { display: flex; flex-direction: column; gap: 24px; }

.rank-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--border);
  overflow: hidden;
  display: grid; grid-template-columns: 96px 1fr auto;
  align-items: stretch;
  transition: box-shadow .2s, transform .2s;
}
.rank-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
@media (max-width: 640px) {
  .rank-card { grid-template-columns: 1fr; }
  .rank-num { flex-direction: row; align-items: center; gap: 12px; padding: 16px 20px; }
}

.rank-num {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 20px 12px; gap: 6px;
  font-weight: 800; text-align: center;
}
.rank-num.r1 { background: #FFFBEB; }
.rank-num.r2 { background: var(--light-gray); }
.rank-num.r3 { background: var(--blue-bg); }
.rank-num.r4 { background: var(--green-bg); }

.rank-crown { font-size: 24px; line-height: 1; }
.rank-label { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }

.rank-body { padding: 24px 28px; }
.rank-tag {
  display: inline-block;
  font-size: 10px; font-weight: 700; padding: 2px 10px;
  border-radius: var(--radius); margin-bottom: 10px;
  letter-spacing: .06em; text-transform: uppercase;
  background: var(--blue-bg); color: var(--blue);
}
.rank-tag.g  { background: var(--green-bg);  color: var(--green); }
.rank-tag.t  { background: var(--teal-bg);   color: var(--teal); }
.rank-tag.b  { background: var(--blue-bg);   color: var(--blue); }
.rank-tag.gy { background: var(--light-gray); color: var(--gray); }

.rank-name { font-size: 19px; font-weight: 800; color: var(--black); margin-bottom: 2px; line-height: 1.2; }
.rank-url  { font-size: 12px; color: var(--gray-mid); margin-bottom: 14px; }
.rank-features { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.rank-features li {
  font-size: 13px; color: var(--black);
  padding-left: 22px; position: relative; line-height: 1.6;
}
.rank-features li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 900; }
.rank-features li.warn::before { content: "!"; color: var(--red); }
.rank-features li.x::before   { content: "–"; color: var(--gray); }

.rank-cta {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 24px 24px; gap: 10px;
  border-left: 1px solid var(--border); min-width: 160px;
}
@media (max-width: 640px) {
  .rank-cta { border-left: none; border-top: 1px solid var(--border); flex-direction: row; padding: 16px 20px; }
}
.rank-cta .btn-rank {
  display: inline-block;
  background: var(--blue); color: var(--white);
  font-size: 13px; font-weight: 700;
  padding: 10px 20px; border-radius: var(--radius); white-space: nowrap;
  transition: background .15s;
}
.rank-cta .btn-rank:hover {
  background: var(--navy);
  text-decoration: none; color: var(--white);
}
.rank-cta .btn-rank.alt {
  background: var(--white); color: var(--navy);
  border: 1px solid var(--border); box-shadow: none;
}
.rank-cta .btn-rank.alt:hover { background: var(--light-gray); color: var(--navy); }
.rank-cta-note { font-size: 11px; color: var(--gray-mid); text-align: center; }
.rank-card.top1 { border-top: 3px solid var(--yellow); }

/* ══════════════════════════════════
   フッター
   ══════════════════════════════════ */
#site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  padding: 64px 0 28px;
}
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 48px; margin-bottom: 40px;
}
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; gap: 32px; } }
.footer-logo {
  font-size: 20px; font-weight: 800; color: var(--white);
  margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.footer-logo-icon {
  background: var(--blue); color: var(--white);
  width: 30px; height: 30px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 900;
}
.footer-logo em { color: #93C5FD; font-style: normal; }
.footer-desc { font-size: 13px; line-height: 1.85; color: var(--white); }
.footer-col h4 {
  font-size: 15px; font-weight: 700; color: var(--white);
  margin-bottom: 16px; letter-spacing: .14em; text-transform: uppercase;
}
.footer-col ul { list-style: none; }
.footer-col li { padding: 6px 0; }
.footer-col a { font-size: 13px; color:  var(--white); transition: color .15s; }
.footer-col a:hover { color: var(--white); text-decoration: none; }
.footer-bottom {
  text-align: center; font-size: 12px; color: var(--white);
  padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08);
  letter-spacing: .04em;
}
.footer-disclaimer {
  font-size: 13px; color:  var(--white);
  text-align: center; margin-bottom: 12px; line-height: 1.7;
}

/* ══════════════════════════════════
   おすすめカード（グリッド版・ランキングなし）
   ══════════════════════════════════ */
.rec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 640px) { .rec-grid { grid-template-columns: 1fr; } }

.rec-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.rec-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

/* 各社カラートップバー（4px・落ち着いた太さ） */
.rec-card-top { height: 8px; }
.rec-card-top.pa   { background: #1C8B6A; }
.rec-card-top.rk   { background: #000; }
.rec-card-top.gra  { background: #004fb5; }
.rec-card-top.pp   { background: var(--printpac); }
.rec-card-top.pnet { background: var(--teal); }
.rec-card-top.tc   { background: var(--purple); }
.rec-card-top.iro  { background: #D35400; }
.rec-card-top.wave { background: #2E86C1; }
.rec-card-top.king { background: var(--green); }

.rec-card-body { padding: 24px 26px; flex: 1; }
.rec-tag {
  display: inline-block;
  font-size: 10px; font-weight: 700; padding: 2px 10px;
  border-radius: var(--radius); margin-bottom: 12px;
  letter-spacing: .08em; text-transform: uppercase;
  background: var(--blue-bg); color: var(--blue);
}
.rec-tag.g    { background: var(--green-bg);  color: var(--green);font-size: 13px; }
.rec-tag.t    { background: var(--teal-bg);   color: var(--teal);font-size: 13px; }
.rec-tag.b    { background: var(--blue-bg);   color: var(--blue);font-size: 13px; }
.rec-tag.gy   { background: var(--light-gray); color: var(--gray);font-size: 13px; }
.rec-tag.pick { background: var(--navy); color: var(--white); font-size: 13px;}

.rec-name { font-size: 28px; font-weight: 800; color: var(--black); margin-bottom: 2px; }
.rec-url  { font-size: 12px; color: var(--gray-mid); margin-bottom: 12px; }
.rec-url a { color: var(--gray-mid); text-decoration: underline; }
.rec-url a:hover { color: var(--blue); }
.rec-features { list-style: none; margin-bottom: 18px; }
.rec-features li {
  font-size: 15px; color: var(--black); padding-left: 20px;
  position: relative; line-height: 1.65; margin-bottom: 5px;
}
.rec-features li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 900; }
.rec-features li.warn::before { content: "!"; color: var(--red); }
.rec-features li.x::before   { content: "–"; color: var(--gray); }

.rec-card-footer {
  padding: 14px 26px; border-top: 1px solid var(--border);
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}
.btn-rec-official {
  display: inline-block;
  background: #00b5fc; color: #ffffff;
  font-size: 15px; font-weight: 700; padding: 8px 20px;
  border-radius: var(--radius);
  transition: background .15s;
}
.btn-rec-official:hover { background: var(--navy); text-decoration: none; color: var(--white); }
.btn-rec-article {
  display: inline-block;
  background: var(--white); color: var(--navy);
  font-size: 15px; font-weight: 600; padding: 7px 16px;
  border-radius: var(--radius); border: 1px solid var(--border);
  transition: background .15s, border-color .15s;
}
.btn-rec-article:hover { background: var(--light-gray); border-color: var(--gray-mid); text-decoration: none; color: var(--navy); }

/* プリントアースはネイビーボーダーで強調 */
.rec-card.featured { border: 4px solid #e5e5e5;  }
.rec-card.featured .rec-card-footer { background: var(--bg-section); }

/* ══════════════════════════════════
   カテゴリアイテム（category.html）
   ══════════════════════════════════ */
.category-item {
  /*border-left: 3px solid var(--blue);
  padding-left: 22px; */
  margin-bottom: 40px;
}
.category-point {
  display: inline-block;
  background: rgb(221, 250, 253); 
  color: black;
  font-size: 13px; font-weight: 700;
  padding: 4px 14px; border-radius: var(--radius);
  margin-top: 10px; letter-spacing: .04em;
}

/* ══════════════════════════════════
   アンカースクロール補正（固定ヘッダー分）
   ══════════════════════════════════ */
[id] { scroll-margin-top: 80px; }

/* ══════════════════════════════════
   業者ページ：サイトキャプチャー画像
   ══════════════════════════════════ */
.vendor-cap {
  margin: 16px 0 24px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: block;
  transition: box-shadow .2s, transform .2s;
}
.vendor-cap:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.vendor-screenshot {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ══════════════════════════════════
   サイドバー：プリントアース CTAカード全体リンク
   ══════════════════════════════════ */
.sidebar-cta-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 5px solid #1C8B6A;
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  margin-bottom: 20px;
  text-decoration: none;
  color: inherit;
  transition: transform .18s, box-shadow .18s;
  cursor: pointer;
}
.sidebar-cta-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  text-decoration: none;
  color: inherit;
}
.sidebar-cta-label {
  font-size: 13px; font-weight: 700;
  color: var(--gray); letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 10px;
}
.sidebar-cta-name {
  font-size: 23px; font-weight: 800; color: var(--navy);
  text-align: center; margin-bottom: 4px; line-height: 1.2;
}
.sidebar-cta-sub {
  font-size: 11px; color: var(--gray-mid); text-align: center;
  margin-bottom: 12px;
}
.sidebar-cta-desc {
  font-size: 15px; color: var(--gray);
  margin-bottom: 16px; line-height: 1.7;
  border-top: 1px solid var(--border); padding-top: 12px;
}
.sidebar-cta-btn {
  display: block; text-align: center;
  background: #1C8B6A; color: var(--white);
  font-size: 13px; font-weight: 700; padding: 11px 18px;
  border-radius: var(--radius); letter-spacing: .04em;
  transition: background .15s;
}
.sidebar-cta-card:hover .sidebar-cta-btn { background: var(--blue); }

/* ══════════════════════════════════
   スマホ対応（全ページ共通）640px以下
   ── negative margin は使わない
   ── グリッドアイテム内でも確実に動作する方式
   ══════════════════════════════════ */
@media (max-width: 640px) {

  /* ── コンテナ余白を縮小 ── */
  .container { padding: 0 16px; }

  /* ── layoutラッパーも端まで広げる ── */
  .layout { gap: 0; }

  /* ── ヒーロー ── */
  .hero { padding: 52px 0 64px; }
  .hero-eyebrow { font-size: 11px; letter-spacing: .1em; margin-bottom: 18px; }
  .hero-sub { font-size: 15px; }
  .btn-primary {
    display: block; width: 100%; max-width: 300px;
    margin-left: auto; margin-right: auto;
    padding: 13px 20px; text-align: center;
  }

  /* ── セクション余白 ── */
  .section         { padding: 48px 0; }
  .ranking-section { padding: 48px 0; }
  .section-title   { font-size: 25px; }
  .section-head    { margin-bottom: 28px; }
  .section-desc    { margin-bottom: 24px; font-size: 13px; }

  /* ── 記事本文エリア
     card装飾を除去してフラットに。
     negative margin は使わない（グリッドアイテム内でオーバーフロー原因になるため）。
     container の 16px padding がサイド余白を担う。 ── */
  .article-body {
    display: contents; /* ボックス自体を消してグリッドに溶け込ませる */
  }
  .article-body h1 {
    font-size: 19px; line-height: 1.5;
    margin-bottom: 16px; padding-bottom: 14px;
  }
  .article-body h2 {
    font-size: 16px;
    padding: 11px 14px;
    margin: 36px 0 16px;
    border-radius: 0;
    /* negative margin 廃止 → overflow-x:hidden で吸収 */
  }
  .article-body h3 {
    font-size: 15px;
    margin: 26px 0 12px;
  }
  .article-body p   { font-size: 14px; line-height: 1.85; }
  .article-body ul li { font-size: 14px; }

  /* ── CTAボックス ── */
  .cta-box {
    padding: 28px 20px; margin: 24px 0;
    border-radius: 0;
  }
  .cta-box p { font-size: 17px; }
  .cta-box .btn-cta { padding: 12px 24px; font-size: 13px; margin-top: 18px; }

  /* ── 比較テーブル ── */
  .comp-table-wrap { margin: 16px 0; }
  .comp-table th, .comp-table td { padding: 8px 9px; font-size: 15px; }
  .comp-table thead th { font-size: 15px; }

  /* ── ランキングカード ── */
  .rank-body { padding: 16px 18px; }
  .rank-name { font-size: 17px; }
  .rank-cta  { padding: 14px 18px; min-width: auto; }
  .rank-cta .btn-rank { font-size: 12px; padding: 9px 16px; }
  .rank-features li { font-size: 12px; }

  /* ── おすすめカード ── */
  .rec-card-body   { padding: 18px 18px; }
  .rec-card-footer { padding: 12px 18px; }
  .rec-name { font-size: 17px; }
  .rec-features li { font-size: 12px; }
  .btn-rec-official, .btn-rec-article { font-size: 12px; padding: 7px 14px; }

  /* ── ポイントボックス ── */
  .point-box { padding: 16px; }
  .point-box li { font-size: 13px; }

  /* ── ピラーカード ── */
  .pillar-card-inner { padding: 18px 18px 22px; }
  .pillar-card h3    { font-size: 15px; }
  .pillar-card p     { font-size: 12px; }

  /* ── サブナビカード ── */
  .sub-nav-card    { padding: 20px 12px; }
  .sub-nav-icon    { font-size: 26px; margin-bottom: 8px; }
  .sub-nav-card h3 { font-size: 13px; }
  .sub-nav-card p  { font-size: 11px; }

  /* ── ベンダーキャプチャ ── */
  .vendor-screenshot { height: 150px; }

  /* ── 記事カードリスト ── */
  .article-card    { padding: 14px 16px; }
  .article-card h3 { font-size: 14px; }
  .article-card p  { font-size: 12px; }
  .article-list    { gap: 10px; }

  /* ── カテゴリアイテム ── */
  .category-item { padding-left: 14px; margin-bottom: 28px; }

  /* ── ノート ── */
  .note { font-size: 11px; padding: 10px 12px; }

  /* ── フッター ── */
  #site-footer       { padding: 44px 0 20px; }
  .footer-logo       { font-size: 17px; }
  .footer-desc       { font-size: 12px; }
  .footer-bottom     { font-size: 11px; }
  .footer-disclaimer { font-size: 10px; }
}

/* ══════════════════════════════════
   モバイルサイドバーアコーディオン（768px以下）
   ══════════════════════════════════ */
@media (max-width: 768px) {
  .mobile-sidebar {
    margin-bottom: 24px;
  }

  /* アコーディオンアイテム */
  .mobile-accordion {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 8px;
    overflow: hidden;
  }

  /* サマリー（タップ領域） */
  .mobile-accordion-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 16px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    background: var(--bg-section);
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-accordion-summary::-webkit-details-marker { display: none; }

  .mobile-accordion-label {
    font-size: 13px; font-weight: 700;
    color: var(--navy); letter-spacing: .04em;
  }

  /* ＋ / − アイコン */
  .mobile-accordion-icon {
    width: 20px; height: 20px; flex-shrink: 0;
    position: relative;
  }
  .mobile-accordion-icon::before,
  .mobile-accordion-icon::after {
    content: '';
    position: absolute;
    background: var(--blue);
    border-radius: 1px;
    transition: transform .2s, opacity .2s;
  }
  .mobile-accordion-icon::before { width: 12px; height: 2px; top: 9px; left: 4px; }
  .mobile-accordion-icon::after  { width: 2px; height: 12px; top: 4px; left: 9px; }
  /* 開いているとき ＋ → − */
  .mobile-accordion[open] .mobile-accordion-icon::after { opacity: 0; }

  /* アコーディオンの中身 */
  .mobile-accordion-body {
    padding: 14px 16px;
    background: var(--white);
  }
  /* 中の toc-list・point-box などは既存スタイルをそのまま使う */
  .mobile-accordion-body .sidebar-title { display: none; } /* 重複タイトル非表示 */
  .mobile-accordion-body .toc-list a  { font-size: 13px; }
  .mobile-accordion-body .point-box   { margin: 0; }

  /* CTAカード（アコーディオン化しない） */
  .mobile-sidebar .sidebar-cta-card {
    display: block;
    margin-top: 8px;
  }
}

/* ── 超小型（380px以下）追加補正 ── */
@media (max-width: 380px) {
  .container { padding: 0 12px; }
  .hero h1   { font-size: 19px; }
  .hero-sub  { font-size: 14px; }
  .section-title { font-size: 20px; }
  .comp-table th, .comp-table td { padding: 6px 7px; font-size: 15px; }
}

/* ── FAQ セクション ── */
.faq-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid var(--border);
}
.faq-section h2 {
  font-size: 1.4rem;
  margin-bottom: 24px;
}
.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 16px;
}
.faq-q {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}
.faq-a {
  font-size: 0.95rem;
  color: var(--text-sub);
  line-height: 1.7;
  margin: 0;
}

/* ── フッター グループラベル ── */
.footer-group-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 10px;
  margin-bottom: 2px;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.12);
  list-style: none;
}
.footer-group-title:first-child { margin-top: 0; border-top: none; }
