:root {
  --primary: #1a6ce0;
  --primary-dark: #1254b4;
  --accent: #ff8c1a;
  --accent-dark: #e07200;
  --bg: #f5f8fc;
  --card: #ffffff;
  --text: #24313f;
  --text-sub: #5b6b7c;
  --line: #dde6f0;
  --success: #0f9d58;
  --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
}

/* ===== ヘッダー ===== */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.site-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}
.site-logo .logo-mark { margin-right: 4px; }
.global-nav { display: flex; gap: 16px; }
.global-nav a {
  color: var(--text-sub);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}
.global-nav a:hover { color: var(--primary); }

/* ===== レイアウト ===== */
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

/* ===== ヒーロー ===== */
.hero {
  text-align: center;
  padding: 40px 16px 32px;
}
.hero h1 {
  font-size: 1.7rem;
  line-height: 1.4;
  margin-bottom: 12px;
}
.hero p {
  color: var(--text-sub);
  max-width: 560px;
  margin: 0 auto;
}

/* ===== カード ===== */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.tool-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}
@media (max-width: 640px) {
  .tool-cards { grid-template-columns: 1fr; }
}
.tool-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow 0.15s, transform 0.15s;
}
.tool-card:hover {
  box-shadow: 0 4px 16px rgba(26, 108, 224, 0.15);
  transform: translateY(-2px);
}
.tool-card .tool-icon { font-size: 2rem; }
.tool-card h2 {
  font-size: 1.1rem;
  margin: 8px 0 4px;
  color: var(--primary);
}
.tool-card p { font-size: 0.88rem; color: var(--text-sub); }

/* ===== フォーム ===== */
.form-group { margin-bottom: 20px; }
.form-group > label.group-label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 0.95rem;
}
.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.radio-row label {
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 0.9rem;
  background: #fff;
  user-select: none;
}
.radio-row input[type="radio"],
.radio-row input[type="checkbox"] { display: none; }
.radio-row input:checked + span,
.radio-row label:has(input:checked) {
  border-color: var(--primary);
  background: #e8f1fd;
  color: var(--primary-dark);
  font-weight: 700;
}
input[type="date"], select {
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 1rem;
  width: 100%;
  max-width: 280px;
  background: #fff;
}

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 32px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--primary-dark); }

/* ===== 結果表示 ===== */
.result-panel {
  display: none;
  background: #f0f7ff;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 24px;
  text-align: center;
}
.result-panel.show { display: block; }
.result-label { font-size: 0.9rem; color: var(--text-sub); }
.result-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 4px 0 8px;
}
.result-price small { font-size: 1rem; font-weight: 600; }
.result-note {
  font-size: 0.8rem;
  color: var(--text-sub);
  text-align: left;
  margin-top: 12px;
}

/* ===== CTA(アフィリエイト枠) ===== */
.cta-box {
  background: #fff7ec;
  border: 1.5px dashed var(--accent);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 20px;
  text-align: center;
}
.cta-box .cta-heading {
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 0.95rem;
}
.btn-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-weight: 700;
  transition: background 0.15s;
}
.btn-cta:hover { background: var(--accent-dark); }
.pr-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-sub);
  margin-top: 6px;
}

/* ===== スケジュール ===== */
.timeline { list-style: none; margin-top: 8px; }
.timeline-phase {
  font-weight: 800;
  color: var(--primary-dark);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 4px;
  margin: 28px 0 12px;
  font-size: 1.02rem;
}
.task-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.task-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 4px;
  accent-color: var(--success);
  cursor: pointer;
  flex-shrink: 0;
}
.task-item.done .task-title { text-decoration: line-through; color: var(--text-sub); }
.task-date {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-dark);
}
.task-title { font-weight: 700; font-size: 0.95rem; }
.task-desc { font-size: 0.83rem; color: var(--text-sub); }
.task-cta {
  font-size: 0.83rem;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

/* ===== 記事 ===== */
.article-body h2 {
  font-size: 1.2rem;
  border-left: 4px solid var(--primary);
  padding-left: 10px;
  margin: 32px 0 12px;
}
.article-body p { margin-bottom: 14px; }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.9rem;
}
.article-body th, .article-body td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
}
.article-body th { background: #eef4fb; }

.breadcrumb {
  font-size: 0.8rem;
  color: var(--text-sub);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--primary); text-decoration: none; }

/* ===== フッター ===== */
.site-footer {
  background: #24313f;
  color: #aebccb;
  text-align: center;
  padding: 32px 16px;
  font-size: 0.8rem;
}
.site-footer a { color: #d7e2ee; }

.disclaimer {
  font-size: 0.75rem;
  color: var(--text-sub);
  margin-top: 16px;
}

@media print {
  .site-header, .site-footer, .cta-box, .btn-primary, #schedule-form { display: none; }
  body { background: #fff; }
}
