/* ====== CSS Variables ====== */
:root {
  --max-width: 960px;
  --content-padding: 16px;
  --primary-color: #005bac;
  --secondary-color: #0070cc;
  --border-color: #003d7a;
  --text-color: #333;
  --bg-color: #fff;
}

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

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
  margin: 0;
  padding: 0;
  color: var(--text-color);
  background: var(--bg-color);
  word-break: break-word;
  overflow-x: hidden;
}

/* Header */
header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--primary-color) 100%);
  color: white;
  padding: 10px 0;
  box-shadow: 0 4px 8px rgba(0,0,0,.3), 0 2px 4px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.1);
  border-bottom: 3px solid var(--border-color);
  position: relative;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Branding layout: logo + title/slogan */
.branding-box {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.logo {
  max-height: 90px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: filter 0.3s ease;
}

.logo:hover {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.title-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
}

.site-title {
  font-size: 1.5rem;
  margin: 0;
  color: white;
  line-height: 1.2;
  word-break: break-word;
}

.subtitle {
  font-size: 0.9rem;
  color: #f0f0f0;
  line-height: 1.4;
  word-break: break-word;
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

/* Navigation */
.main-nav {
  margin-top: 10px;
}

.main-nav a {
  color: white;
  text-decoration: none;
  padding: 8px 12px;
  background: linear-gradient(135deg, #0070cc 0%, #0088ee 50%, #0070cc 100%);
  border-radius: 6px;
  margin-right: 10px;
  display: inline-block;
  margin-bottom: 5px;
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 1px solid #005bac;
  transition: all 0.3s ease;
  position: relative;
}

.main-nav a:hover {
  background: linear-gradient(135deg, #004e89 0%, #0066cc 50%, #004e89 100%);
  transform: translateY(-2px);
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.main-nav a:active {
  transform: translateY(0);
  box-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.2),
    inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Section */
section {
  padding: 30px 20px;
  max-width: 960px;
  margin: auto;
}

/* 記事ヘッダーセクションの下マージンを小さく */
.article-header {
  margin-bottom: 10px;
}
/* 記事の左右位置に合わせた縦ライン */
:root {
  --side-line-color: #cccccc; /* 薄いグレー */
  --side-line-width: 1px;     /* 太さ調整 */
  --content-max: 960px;       /* 記事最大幅（section/.header-innerと揃える） */
  --content-padding-x: 20px;  /* sectionの左右パディングと揃える */
}

/* 7社比較ページ（.local-container は左右16px）では自動で揃える */
body:has(.local-container) {
  --content-padding-x: 16px;
}

html, body { height: 100%; }

body {
  min-height: 100vh;
}

/* 画面固定で、記事の左右位置にラインを配置 */
body::before,
body::after {
  content: "";
  position: fixed;
  top: 0;
  height: 100vh;
  width: var(--side-line-width);
  background: var(--side-line-color);
  pointer-events: none;
  z-index: 9999;
}

/* パディングの“外側”= セクション外枠に合わせる。
   960px以上: (100vw - 960px)/2 に配置。
   それ未満: 0px を下限として固定（モバイルでは画面端に表示、文字とは20px以上離れる）。 */
body::before {
  left: max(calc((100vw - var(--content-max)) / 2), 0px);
}
body::after {
  right: max(calc((100vw - var(--content-max)) / 2), 0px);
}
/* 見出しの前後のスペースを広く設定 */
h1 {
  margin-top: 40px;
  margin-bottom: 30px;
  font-size: 1.8rem;
  color: #333;
}

h2 {
  font-size: 1.6rem;
  margin-top: 35px;
  margin-bottom: 25px;
  border-bottom: 2px solid #005bac;
  padding-bottom: 8px;
  color: #333;
}

h3 {
  margin-top: 60px;
  margin-bottom: 35px;
  font-size: 1.3rem;
  color: #333;
}

h4 {
  margin-top: 35px;
  margin-bottom: 22px;
  font-size: 1.1rem;
  color: #333;
}

h5 {
  margin-top: 28px;
  margin-bottom: 18px;
  font-size: 1rem;
  color: #333;
}

h6 {
  margin-top: 18px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: #666;
}

p {
  line-height: 1.8;
  margin-bottom: 1em;
}

/* セクション区切り線 */
hr {
  margin: 50px 0;
  border: none;
  border-top: 1px solid #e0e0e0;
}

/* Card Grid (top page items) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.card {
  background: #f9f9f9;
  border: 1px solid #ddd;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

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

.card p {
  margin-top: 8px;
  font-weight: bold;
  color: #333;
}

/* ====== リストアイテム間隔の調整 ====== */
.content-list {
  line-height: 2.0;
}

.content-list li {
  margin-bottom: 20px;
}

/* ====== ロゴ画像のスタイル ====== */
.content-logo {
  float: left;
  width: 120px;
  height: auto;
  margin: 0 16px 8px 0;
}

/* Footer */
footer {
  background-color: #f3f3f3;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  color: #666;
  margin-top: 40px;
}

/* ====== Responsive Header/Nav ====== */
@media (max-width: 768px) {
  .branding-box { flex-wrap: nowrap; }
  .logo { max-height: 80px; }
  .site-title { font-size: 1.2rem; }
  .subtitle { font-size: 0.8rem; }
  .main-nav { display: none; }
  .main-nav.active { display: block; }
  .main-nav a { display: block; margin: 8px 0; }
  .menu-toggle { align-self: flex-start; margin-top: 10px; }
  .title-box { margin-top: 0; }
}

@media (min-width: 769px) {
  .menu-toggle { display: none; }
}

/* ====== ryouhan page styles (7社比較ページ) ====== */

/* コンテナをやや狭め＋左右パディングで視線の往復を短縮 */
.local-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
}

/* ジャンプナビ：小ぶりな“チップ”＋横スクロール可で圧迫感低減 */
.jump-nav {
  display: flex;
  gap: 8px;
  margin: 16px 0 24px;
  flex-wrap: wrap;           /* 表示しきれない分は下の行に回す */
  overflow-x: visible;       /* 横スクロールを無効化 */
  -webkit-overflow-scrolling: auto;
  padding-bottom: 4px;
}
.jump-nav::-webkit-scrollbar { display: none; }
.jump-nav a {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  text-decoration: none;
  font-size: .9rem;
  color: #333;
  white-space: nowrap;       /* 文字の折り返しをしない */
}
.jump-nav a:hover { background: #f7f9ff; border-color: #dbe6ff; }

/* 店舗カード：目立つ外枠で強調 */
.store-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin: 16px 0 8px;
}
.store-card {
  background: #f8f9fa;
  border-left: 4px solid #005bac;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* カードヘッダーの密度調整 */
.store-header { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 8px; }
.store-title { font-size: 1.05rem; font-weight: 700; margin: 0; white-space: nowrap; flex-shrink: 0; }
@media (max-width: 480px) { .store-title { font-size: 1rem; } }
.badge-year {
  font-size: .78rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f2f7ff;
  color: #2b5cab;
  border: 1px solid #e3ecff;
  white-space: nowrap;
  flex-shrink: 0;
  display: block;         /* 店名の下に表示 */
  margin-top: 2px;
}

.badge-stores {
  font-size: .78rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e8f5e8;
  color: #2d5a2d;
  border: 1px solid #d4e6d4;
  white-space: nowrap;
  flex-shrink: 0;
  display: block;         /* 創業年の下に表示 */
  margin-top: 2px;
}

/* KVSテーブル：縦罫線をやめ、行区切りのみで軽量化 */
.kvs {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 6px 0 8px;
}
.kvs th, .kvs td {
  border: none;
  padding: 8px 10px;
  text-align: left;
  font-size: .94rem;
}
.kvs th { width: 36%; color: #445; background: transparent; font-weight: 600; }
.kvs tr + tr th, .kvs tr + tr td { border-top: 1px solid #edf0f3; }

/* 注釈は行間を取り、色を薄める */
.store-note { margin-top: 8px; line-height: 1.7; color: #666; }

/* 会社別プロフィールカード */
.corp-card {
  margin-bottom: 24px;
  border-left: 4px solid #005bac;
  background: #f8f9fa;
}

.corp-card h4 {
  color: #005bac;
  margin: 24px 0 20px 0;
  font-size: 1.1rem;
}

.corp-card h4:first-child {
  margin-top: 0;
}

.corp-card ul {
  margin: 0;
  padding-left: 20px;
}

.corp-card li {
  margin-bottom: 12px;
  line-height: 1.6;
  color: #333;
}

.corp-card strong {
  color: #005bac;
  font-weight: 600;
}

.corp-card u {
  text-decoration: underline;
  text-decoration-color: #005bac;
  text-underline-offset: 2px;
}

/* 店舗カード内の詳細プロフィール */
.corp-profile {
  margin-top: 20px;
  padding: 16px;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}

.corp-profile h5 {
  color: #005bac;
  margin: 0 0 12px 0;
  font-size: 1rem;
  font-weight: 600;
}

.corp-profile ul {
  margin: 0;
  padding-left: 20px;
}

.corp-profile li {
  margin-bottom: 8px;
  line-height: 1.5;
  color: #333;
  font-size: 0.9rem;
}

.corp-profile strong {
  color: #005bac;
  font-weight: 600;
}

.corp-profile u {
  text-decoration: underline;
  text-decoration-color: #005bac;
  text-underline-offset: 1px;
}

/* 比較表（ページ下の2表）を読みやすく */
.local-container > table,
.comparison-table,
.warranty-table,
.satisfaction-table,
.delivery-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 14px;
  font-size: .95rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.local-container > table th,
.local-container > table td,
.comparison-table th,
.comparison-table td,
.warranty-table th,
.warranty-table td,
.satisfaction-table th,
.satisfaction-table td,
.delivery-table th,
.delivery-table td {
  padding: 12px 16px;
  border: none;
  text-align: left;
  vertical-align: top;
}

.local-container > table thead th,
.comparison-table thead th,
.warranty-table thead th,
.satisfaction-table thead th,
.delivery-table thead th {
  position: sticky; 
  top: 0;
  background: linear-gradient(135deg, #005bac 0%, #0070cc 100%);
  color: white;
  font-weight: 700;
  border-bottom: 2px solid #003d7a;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.local-container > table tbody tr:nth-child(even),
.comparison-table tbody tr:nth-child(even),
.warranty-table tbody tr:nth-child(even),
.satisfaction-table tbody tr:nth-child(even),
.delivery-table tbody tr:nth-child(even) {
  background-color: #f8f9fa;
}

.local-container > table tbody tr:nth-child(odd),
.comparison-table tbody tr:nth-child(odd),
.warranty-table tbody tr:nth-child(odd),
.satisfaction-table tbody tr:nth-child(odd),
.delivery-table tbody tr:nth-child(odd) {
  background-color: #ffffff;
}

.local-container > table tbody tr + tr td,
.comparison-table tbody tr + tr td,
.warranty-table tbody tr + tr td,
.satisfaction-table tbody tr + tr td,
.delivery-table tbody tr + tr td {
  border-top: 1px solid #e9ecef;
}

.local-container > table tbody tr:hover td,
.comparison-table tbody tr:hover td,
.warranty-table tbody tr:hover td,
.satisfaction-table tbody tr:hover td,
.delivery-table tbody tr:hover td {
  background: linear-gradient(135deg, #e3f2fd 0%, #f0f8ff 100%);
  transform: scale(1.01);
  transition: all 0.2s ease;
}

/* 各表の列幅最適化 */
.comparison-table { table-layout: fixed; }
.comparison-table th:nth-child(1) { width: 20%; } /* 店舗名 */
.comparison-table th:nth-child(2) { width: 25%; } /* 値引き傾向 */
.comparison-table th:nth-child(3) { width: 25%; } /* ポイント還元率 */
.comparison-table th:nth-child(4) { width: 15%; } /* 店舗数 */
.comparison-table th:nth-child(5) { width: 15%; } /* 立地傾向 */

.delivery-table { table-layout: fixed; }
.delivery-table th:nth-child(1) { width: 18%; } /* 店舗名 */
.delivery-table th:nth-child(2) { width: 22%; } /* 配送料 */
.delivery-table th:nth-child(3) { width: 18%; } /* 設置料 */
.delivery-table th:nth-child(4) { width: 18%; } /* リサイクル料金（170L以下） */
.delivery-table th:nth-child(5) { width: 18%; } /* リサイクル料金（171L以上） */
.delivery-table th:nth-child(6) { width: 18%; } /* 収集運搬料金 */

.warranty-table { table-layout: fixed; }
.warranty-table th:nth-child(1) { width: 20%; } /* 店舗名 */
.warranty-table th:nth-child(2) { width: 15%; } /* 保証年数 */
.warranty-table th:nth-child(3) { width: 20%; } /* 無料/有料 */
.warranty-table th:nth-child(4) { width: 45%; } /* 申し込み方法 */

.satisfaction-table { table-layout: fixed; }
.satisfaction-table th:nth-child(1) { width: 20%; } /* 年度 */
.satisfaction-table th:nth-child(2) { width: 15%; } /* 順位 */
.satisfaction-table th:nth-child(3) { width: 45%; } /* 店舗名 */
.satisfaction-table th:nth-child(4) { width: 20%; } /* スコア */

/* 順位の強調表示 */
.satisfaction-table td:nth-child(2) {
  font-weight: 600;
  color: #005bac;
}

.satisfaction-table .rank-1 {
  color: #d4af37 !important;
  font-weight: 700;
}

.satisfaction-table .rank-2 {
  color: #c0c0c0 !important;
  font-weight: 700;
}

.satisfaction-table .rank-3 {
  color: #cd7f32 !important;
  font-weight: 700;
}

/* 見出し余白の最適化 */
.local-container h3 { 
  margin-top: 50px; 
  margin-bottom: 35px; 
  font-size: 1.3rem;
  color: #333;
}
.local-container h4 { 
  margin: 25px 0 18px; 
  font-size: 1.1rem;
  color: #333;
}

/* 小さめの注記用スタイル */
.note-small {
  font-size: 0.75em;
  font-weight: normal;
  color: #666;
  font-style: italic;
}

/* ヒーロー画像 */
.hero-image {
  text-align: center;
  margin: 20px 0 30px 0;
  padding: 0;
}

.main-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* PC向けの画像サイズ調整 */
@media (min-width: 768px) {
  .main-image {
    max-width: 60%;
  }
}

@media (min-width: 1024px) {
  .main-image {
    max-width: 50%;
  }
}

.main-image:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* 情報ボックス */
.info-box {
  background: #f8f9fa;
  border-left: 4px solid #005bac;
  padding: 16px;
  margin: 24px 0;
  border-radius: 8px;
}

.info-box h5 {
  margin: 18px 0 14px 0;
  color: #005bac;
  font-size: 1.1rem;
}

.info-box h5:first-child {
  margin-top: 0;
}

.info-box p {
  margin: 0;
  line-height: 1.6;
}

.info-box ul {
  margin: 8px 0 0 0;
  padding-left: 20px;
}

.info-box li {
  margin-bottom: 6px;
}

/* タイミングカード */
.timing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.timing-card {
  background: #ffffff;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  border-color: #005bac;
}

.timing-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.timing-card h5 {
  color: #005bac;
  margin: 0 0 16px 0;
  font-size: 1.1rem;
}

.timing-card ul {
  margin: 0;
  padding-left: 20px;
  text-align: left;
}

.timing-card li {
  margin-bottom: 8px;
  line-height: 1.5;
}

/* コピー不可設定 */
* {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* 画像の直リンク防止 */
img {
  pointer-events: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
}

/* リンク内の画像はタップ可能にする */
a img {
  pointer-events: auto;
}

/* テキスト選択を許可する要素（読みやすさのため） */
p, h1, h2, h3, h4, h5, h6, li, td, th, a, span, div, input, textarea {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

/* リンクの選択を許可 */
a {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

/* 印刷禁止設定 */
@media print {
  * {
    display: none !important;
  }
  
  body::before {
    content: "印刷は禁止されています。" !important;
    display: block !important;
    font-size: 24px !important;
    text-align: center !important;
    padding: 50px !important;
    color: #ff0000 !important;
  }
}

/* メリット・デメリットカード */
.pros-cons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.pros-card,
.cons-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pros-card {
  border-left: 4px solid #28a745;
}

.cons-card {
  border-left: 4px solid #ffc107;
}

.pros-icon,
.cons-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.pros-card h5,
.cons-card h5 {
  margin: 0 0 16px 0;
  font-size: 1.1rem;
}

.pros-card h5 {
  color: #28a745;
}

.cons-card h5 {
  color: #856404;
}

.pros-card ul,
.cons-card ul {
  margin: 0;
  padding-left: 20px;
}

.pros-card li,
.cons-card li {
  margin-bottom: 8px;
  line-height: 1.5;
}

/* トップ画像 */
.top-image {
  max-width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  border: none;
  outline: none;
  transition: transform 0.3s ease;
  margin: 0;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* PC向けのトップ画像サイズ調整（fridge.htmlより少し大きく） */
@media (min-width: 768px) {
  .top-image {
    max-width: 70%;
  }
}

@media (min-width: 1024px) {
  .top-image {
    max-width: 60%;
  }
}

.top-image:hover {
  transform: translateY(-2px);
}

/* 目次 */
.table-of-contents {
  max-width: 600px;
  margin: 30px auto;
  padding: 20px;
  background: #f8f9fa;
  border: 2px solid #005bac;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.table-of-contents h3 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.2rem;
  color: #005bac;
  text-align: center;
}

.table-of-contents ol {
  margin: 0;
  padding-left: 24px;
  line-height: 2;
}

.table-of-contents li {
  margin-bottom: 8px;
}

.table-of-contents a {
  color: #005bac;
  text-decoration: none;
  transition: all 0.2s ease;
}

.table-of-contents a:hover {
  color: #0070cc;
  text-decoration: underline;
}

/* 関連リンク */
.related-links {
  margin-top: 24px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #005bac;
}

.related-links h3 {
  margin: 0 0 12px 0;
  font-size: 1.1rem;
  color: #333;
}

.related-links p {
  margin: 0;
  line-height: 1.6;
}

.related-links a {
  color: #005bac;
  text-decoration: none;
  font-weight: 500;
}

.related-links a:hover {
  text-decoration: underline;
}

/* ====== タグスタイル ====== */
.tag {
  font-size: 0.8rem;
  color: #666;
  font-weight: normal;
  margin-left: 8px;
}

/* ====== 延長保証比較表 ====== */
.warranty-comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.warranty-comparison-table th {
  background: #005bac;
  color: white;
  padding: 12px 8px;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid #003d7a;
}

.warranty-comparison-table td {
  padding: 12px 8px;
  border: 1px solid #ddd;
  vertical-align: top;
  line-height: 1.5;
  font-size: 0.85rem;
}

.warranty-comparison-table tr:nth-child(even) {
  background: #f8f9fa;
}

.warranty-comparison-table tr:hover {
  background: #e3f2fd;
}

/* ====== 冷蔵庫レコメンドツール ====== */
.reco-container {
  background: #f8f9fa;
  border: 2px solid #005bac;
  border-radius: 12px;
  padding: 24px;
  margin: 30px 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.reco-header {
  text-align: center;
  margin-bottom: 30px;
}

.reco-header h3 {
  color: #005bac;
  margin: 0 0 12px 0;
  font-size: 1.4rem;
}

.reco-header p {
  color: #666;
  margin: 0;
  line-height: 1.6;
}

.reco-form {
  max-width: 800px;
  margin: 0 auto;
}

.reco-section {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.reco-section h4 {
  color: #005bac;
  margin: 0 0 20px 0;
  font-size: 1.1rem;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 8px;
}

.reco-field {
  margin-bottom: 20px;
}

.reco-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #333;
}

.reco-field select,
.reco-field input[type="number"] {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.reco-field select:focus,
.reco-field input[type="number"]:focus {
  outline: none;
  border-color: #005bac;
  box-shadow: 0 0 0 3px rgba(0, 91, 172, 0.1);
}

.reco-field-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  font-weight: normal;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.checkbox-group label:hover {
  background-color: #f8f9fa;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 8px;
  transform: scale(1.1);
}

.reco-details {
  margin: 20px 0;
}

.reco-details summary {
  background: #005bac;
  color: white;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.reco-details summary:hover {
  background: #004494;
}

.reco-details[open] summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.reco-actions {
  text-align: center;
  margin-top: 30px;
}

.reco-submit,
.reco-reset {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0 8px;
}

.reco-submit {
  background: #005bac;
  color: white;
}

.reco-submit:hover:not(:disabled) {
  background: #004494;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 91, 172, 0.3);
}

.reco-submit:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.reco-reset {
  background: #6c757d;
  color: white;
}

.reco-reset:hover {
  background: #5a6268;
  transform: translateY(-2px);
}

.reco-results {
  margin-top: 30px;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.reco-results h4 {
  color: #005bac;
  margin: 0 0 20px 0;
  font-size: 1.3rem;
  text-align: center;
}

.reco-cards {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}

.reco-card {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 20px;
  background: #f8f9fa;
  transition: all 0.3s ease;
}

.reco-card:hover {
  border-color: #005bac;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.reco-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #dee2e6;
}

.reco-card-header h5 {
  margin: 0;
  color: #005bac;
  font-size: 1.1rem;
}

.reco-price-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.reco-price {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 600;
}

.price-label {
  font-size: 0.9rem;
  color: #666;
  font-weight: normal;
}

.price-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: #28a745;
  cursor: help;
}

.reco-price-check-btn {
  background: #007bff;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.reco-price-check-btn:hover {
  background: #0056b3;
  transform: translateY(-1px);
}

.reco-price-check-btn:active {
  transform: translateY(0);
}

.reco-price-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #666;
}

.reco-spinner-small {
  width: 16px;
  height: 16px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #007bff;
  border-radius: 50%;
  animation: reco-spin 1s linear infinite;
}

.reco-card-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.reco-specs h6,
.reco-features h6,
.reco-reason h6 {
  color: #333;
  margin: 0 0 10px 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.reco-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.reco-spec-table td {
  padding: 4px 0;
  border-bottom: 1px solid #e9ecef;
}

.reco-spec-table td:first-child {
  font-weight: 600;
  color: #666;
  width: 40%;
}

.reco-features p,
.reco-reason p {
  margin: 0 0 8px 0;
  line-height: 1.5;
  font-size: 0.9rem;
}

.reco-notes {
  grid-column: 1 / -1;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #dee2e6;
}

.reco-notes p {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
}

.reco-more {
  text-align: center;
  margin: 20px 0;
}

.reco-show-more {
  background: #6c757d;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.reco-show-more:hover {
  background: #5a6268;
  transform: translateY(-2px);
}

.reco-share {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #dee2e6;
}

.reco-share-btn {
  background: #28a745;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.reco-share-btn:hover {
  background: #218838;
  transform: translateY(-2px);
}

.reco-loading {
  text-align: center;
  padding: 40px 20px;
}

.reco-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #005bac;
  border-radius: 50%;
  animation: reco-spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes reco-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.reco-error {
  text-align: center;
  padding: 40px 20px;
  color: #dc3545;
}

.reco-error h3 {
  color: #dc3545;
  margin: 0 0 15px 0;
}

.reco-error button {
  background: #dc3545;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.reco-error button:hover {
  background: #c82333;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.reco-card-error {
  background: #f8d7da;
  color: #721c24;
  padding: 20px;
  border: 1px solid #f5c6cb;
  border-radius: 8px;
  text-align: center;
  margin: 10px 0;
}

/* ====== 診断ツールリンクボックス ====== */
.diagnosis-link-box {
  background: linear-gradient(135deg, #e3f2fd 0%, #f0f8ff 100%);
  border: 2px solid #005bac;
  border-radius: 12px;
  padding: 24px;
  margin: 30px 0;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 91, 172, 0.1);
}

.diagnosis-link-box h3 {
  color: #005bac;
  margin: 0 0 12px 0;
  font-size: 1.3rem;
}

.diagnosis-link-box p {
  color: #666;
  margin: 0 0 20px 0;
  line-height: 1.6;
}

.diagnosis-link-actions {
  text-align: center;
}

.diagnosis-link-btn {
  display: inline-block;
  background: linear-gradient(135deg, #005bac 0%, #0070cc 100%);
  color: white;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 91, 172, 0.3);
}

.diagnosis-link-btn:hover {
  background: linear-gradient(135deg, #004494 0%, #0066cc 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 91, 172, 0.4);
  color: white;
  text-decoration: none;
}

.diagnosis-link-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 91, 172, 0.3);
}

.diagnosis-link-bottom {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-color: #6c757d;
  margin-top: 40px;
}

.diagnosis-link-bottom h3 {
  color: #495057;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .diagnosis-link-box {
    padding: 20px;
    margin: 20px 0;
  }
  
  .diagnosis-link-box h3 {
    font-size: 1.2rem;
  }
  
  .diagnosis-link-btn {
    padding: 12px 24px;
    font-size: 1rem;
  }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .reco-container {
    padding: 16px;
    margin: 20px 0;
  }
  
  .reco-field-group {
    grid-template-columns: 1fr;
  }
  
  .checkbox-group {
    grid-template-columns: 1fr;
  }
  
  .reco-card-content {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .reco-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .reco-actions {
    margin-top: 20px;
  }
  
  .reco-submit,
  .reco-reset {
    display: block;
    width: 100%;
    margin: 8px 0;
  }
}

/* スマホ最適化 */
@media (max-width: 480px) {
  .store-grid { grid-template-columns: 1fr; gap: 12px; }
  .store-card { padding: 12px; }
  .kvs th, .kvs td { padding: 7px 8px; }
  .related-links { padding: 12px; margin-top: 20px; }
  
  /* 延長保証比較表のスマホ対応 */
  .warranty-comparison-table {
    font-size: 0.75rem;
    margin: 15px 0;
  }
  
  .warranty-comparison-table th,
  .warranty-comparison-table td {
    padding: 8px 6px;
    word-break: break-word;
  }
  
  .warranty-comparison-table th {
    font-size: 0.8rem;
  }
  
  /* 表のスマホ対応 */
  .comparison-table,
  .warranty-table,
  .satisfaction-table,
  .delivery-table {
    font-size: 0.85rem;
    margin-top: 12px;
  }
  
  .comparison-table th,
  .comparison-table td,
  .warranty-table th,
  .warranty-table td,
  .satisfaction-table th,
  .satisfaction-table td,
  .delivery-table th,
  .delivery-table td {
    padding: 8px 10px;
  }
  
  /* 長いテキストの折り返し */
  .warranty-table td:nth-child(4) {
    word-break: break-word;
    hyphens: auto;
  }
  
  /* ヒーロー画像のスマホ対応 */
  .hero-image {
    margin: 15px 0 20px 0;
  }
  
  .main-image {
    border-radius: 8px;
  }
  
  /* 情報ボックスとタイミングカードのスマホ対応 */
  .info-box,
  .timing-card,
  .pros-cons-card {
    margin: 12px 0;
    padding: 12px;
  }
  
  .timing-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .pros-cons-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  /* 目次のスマホ対応 */
  .table-of-contents {
    margin: 20px 0;
    padding: 15px;
  }
  
  .table-of-contents h3 {
    font-size: 1.1rem;
  }
  
  .table-of-contents ol {
    padding-left: 20px;
    line-height: 1.8;
  }
  
  /* レコメンドツールのスマホ対応 */
  .reco-container {
    padding: 12px;
    margin: 15px 0;
  }
  
  .reco-section {
    padding: 15px;
  }
  
  .reco-card {
    padding: 15px;
  }
  
  .reco-card-header h5 {
    font-size: 1rem;
  }
  
  .reco-price-container {
    align-items: flex-start;
  }
  
  .reco-price {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .reco-price-check-btn {
    font-size: 0.75rem;
    padding: 3px 6px;
  }
}
