/* ==========================================================================
   ウォーターサーバー見直しのススメ - 共通スタイルシート
   完全スマホファースト・水生活見直しデザイン（幅375px完全適合）
   ========================================================================== */

:root {
  --primary: #0284c7;          /* 清潔感あふれるアクアブルー */
  --primary-dark: #0369a1;     /* ディープオーシャンブルー */
  --primary-light: #38bdf8;    /* スカイブルー */
  --primary-bg: #f0f9ff;       /* 清涼ウォーター背景 */
  --accent: #ea580c;           /* 特典・お得のビビッドオレンジ */
  --accent-hover: #c2410c;
  --text-main: #0f172a;        /* 本文ダークスレート */
  --text-muted: #475569;       /* 補足グレー */
  --border-color: #cbd5e1;     /* 境界線 */
  --bg-page: #f8fafc;          /* 全体背景 */
  --bg-card: #ffffff;          /* カード背景 */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.75;
  color: var(--text-main);
  background-color: var(--bg-page);
  word-break: break-word;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* 景品表示法対応 PR表記バー */
.ad-disclosure-bar {
  background-color: #f1f5f9;
  border-bottom: 1px solid var(--border-color);
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  padding: 6px 12px;
}

/* ヘッダー */
.site-header {
  background: #ffffff;
  border-bottom: 2px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 1020px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo a {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-dark);
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.site-logo a span {
  font-size: 11px;
  font-weight: normal;
  color: var(--text-muted);
}

.site-nav {
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.site-nav ul {
  display: flex;
  list-style: none;
  gap: 8px;
}

.site-nav a {
  display: inline-block;
  padding: 6px 12px;
  background: #f1f5f9;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--primary-bg);
  color: var(--primary);
}

/* メインレイアウト */
.container {
  max-width: 1020px;
  margin: 0 auto;
  padding: 20px 16px;
}

/* ヒーローバナー */
.hero-banner {
  background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
  border: 1px solid #bae6fd;
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  margin-bottom: 24px;
  text-align: center;
}

.hero-banner .badge {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.hero-banner h1 {
  font-size: 24px;
  line-height: 1.4;
  color: var(--primary-dark);
  margin-bottom: 12px;
  font-weight: 800;
}

.h1-word {
  display: inline-block;
}

.hero-lead {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 760px;
  margin: 0 auto 20px;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ダイレクトアンサー枠 */
.direct-answer-box {
  background: #ffffff;
  border: 2px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.direct-answer-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.direct-answer-lead {
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 14px;
}

.direct-answer-points ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.direct-answer-points li {
  font-size: 14px;
  line-height: 1.6;
  position: relative;
  padding-left: 20px;
}

.direct-answer-points li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* クイック診断セクション */
.diagnosis-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 18px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-md);
}

.diagnosis-widget-header {
  text-align: center;
  margin-bottom: 20px;
}

.diagnosis-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 6px;
}

.diagnosis-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.diagnosis-desc {
  font-size: 13px;
  color: var(--text-muted);
}

.diag-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.diag-step-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.diag-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.diag-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.diag-opt:hover {
  background: var(--primary-bg);
  border-color: var(--primary-light);
}

.diag-opt input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.diag-opt-text {
  font-size: 14px;
  font-weight: 600;
}

.diag-result-card {
  margin-top: 14px;
  background: #ecfeff;
  border: 2px dashed #06b6d4;
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
}

.diag-result-value {
  font-size: 22px;
  font-weight: 900;
  color: #0891b2;
  margin: 6px 0;
}

.diag-result-advice {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ボタン群 */
.btn {
  display: inline-block;
  font-weight: 700;
  text-align: center;
  padding: 14px 20px;
  font-size: 15px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.2;
}

.btn-primary {
  background: linear-gradient(180deg, #ea580c 0%, #c2410c 100%);
  color: #ffffff !important;
  box-shadow: 0 3px 6px rgba(234, 88, 12, 0.3);
  border: none;
}

.btn-primary:hover {
  opacity: 0.95;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--primary);
  color: #ffffff !important;
  border: none;
}

.btn-secondary:hover {
  background: var(--primary-dark);
  text-decoration: none;
}

.btn-block {
  display: block;
  width: 100%;
}

/* 比較表 */
.comparison-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0 28px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  background: #fff;
}

.comparison-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 14px;
}

.comparison-table th,
.comparison-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
  vertical-align: middle;
}

.comparison-table th {
  background: #f1f5f9;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  position: sticky;
  left: 0;
  background: #ffffff;
  font-weight: 700;
  text-align: left;
  z-index: 2;
  border-right: 2px solid var(--border-color);
}

.comparison-table tr:hover td {
  background-color: #f8fafc;
}

.table-tag {
  display: inline-block;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  margin-top: 4px;
}

.tag-recommend {
  background: #fee2e2;
  color: #dc2626;
}

.tag-cost {
  background: #e0f2fe;
  color: #0284c7;
}

/* コンテンツ見出しと本文 */
.article-body h2 {
  font-size: 21px;
  color: var(--primary-dark);
  border-left: 5px solid var(--primary);
  padding: 6px 12px;
  margin: 36px 0 16px;
  background: #f8fafc;
  border-radius: 0 4px 4px 0;
}

.article-body h3 {
  font-size: 18px;
  color: var(--text-main);
  margin: 24px 0 12px;
  position: relative;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-color);
}

.article-body p {
  margin-bottom: 18px;
  line-height: 1.8;
  font-size: 15px;
}

.article-body ul, .article-body ol {
  margin: 12px 0 20px 24px;
  font-size: 15px;
}

.article-body li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* メリット・デメリットボックス */
.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 20px 0;
}

@media (min-width: 640px) {
  .pros-cons-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.pros-box, .cons-box {
  border-radius: var(--radius-md);
  padding: 18px;
  font-size: 14px;
}

.pros-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.pros-title {
  font-size: 16px;
  font-weight: 800;
  color: #15803d;
  margin-bottom: 10px;
}

.cons-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.cons-title {
  font-size: 16px;
  font-weight: 800;
  color: #b91c1c;
  margin-bottom: 10px;
}

/* 各社紹介カード */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.service-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 10px;
}

.service-card-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-dark);
}

.service-badge {
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.service-spec-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #f8fafc;
  padding: 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 13px;
}

.service-spec-item strong {
  color: var(--text-muted);
  display: block;
  font-size: 11px;
}

/* 注意事項・安心フィルタ枠 */
.notice-box {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  padding: 14px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 18px 0;
  font-size: 14px;
  color: #92400e;
}

.notice-box strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

/* フッター */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 32px 16px 24px;
  margin-top: 48px;
  font-size: 13px;
}

.footer-container {
  max-width: 1020px;
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  list-style: none;
  margin-bottom: 18px;
}

.footer-links a {
  color: #94a3b8;
}

.footer-links a:hover {
  color: #ffffff;
}

.copyright {
  color: #64748b;
  font-size: 12px;
}
