﻿:root {
  --primary: #0284c7;
  --primary-dark: #0369a1;
  --primary-light: #e0f2fe;
  --accent-orange: #ea580c;
  --accent-orange-hover: #c2410c;
  --bg-main: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-sub: #475569;
  --border: #e2e8f0;
  --success-bg: #f0fdf4;
  --success-border: #bbf7d0;
  --success-text: #166534;
}

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

body {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  background-color: #f1f5f9;
  color: var(--text-main);
  line-height: 1.7;
  padding-bottom: 90px;
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px;
}

/* PR表記バー */
.pr-notice-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 8px;
  padding: 0 4px;
}

.pr-tag {
  background: #cbd5e1;
  color: #334155;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
}

/* アニメーション */
.scroll-animate {
  opacity: 1;
  transform: none;
}

@media (min-width: 768px) {
  .js-ready .scroll-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  }
  .js-ready .scroll-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ヘッダー画像ラッパー */
.main-header-img-wrap {
  margin-bottom: 20px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  background: #ffffff;
  position: relative;
}

.hero-custom-img {
  width: 101%;
  height: auto;
  display: block;
  border-radius: 20px;
  transform: scale(1.01);
  transform-origin: center left;
  clip-path: inset(0 0.8% 0 0);
}

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

/* カード共通 */
.card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.section-tag {
  display: inline-block;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.section-tag-accent {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.libe-h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 16px;
  line-height: 1.45;
  border-bottom: 2px solid #e0f2fe;
  padding-bottom: 8px;
}

/* VDSL解説 */
.vdsl-expl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
}

.expl-card {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
  font-size: 0.85rem;
}

.expl-card.warn-border {
  border-color: #fdba74;
  background: #fff7ed;
}

.expl-card.alert-border {
  border-color: #fca5a5;
  background: #fef2f2;
}

.expl-icon {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.expl-card p {
  font-size: 0.78rem;
  color: var(--text-sub);
  margin-top: 4px;
  line-height: 1.45;
}

.check-box {
  background: #f0fdf4;
  border: 2px dashed #86efac;
  border-radius: 12px;
  padding: 14px;
  margin-top: 14px;
}

.check-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #166534;
  margin-bottom: 8px;
}

.check-list {
  list-style: none;
  font-size: 0.88rem;
}

.check-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
  color: #14532d;
}

.check-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #16a34a;
  font-weight: 900;
}

/* 吹き出しチャットUI */
.chat-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 14px 0;
}

.chat-msg {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.chat-avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: #e2e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.chat-bubble {
  position: relative;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.5;
  max-width: 85%;
}

.chat-user .chat-bubble {
  background: #f1f5f9;
  color: #1e293b;
  border-top-left-radius: 2px;
}

.chat-bot .chat-bubble {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #0f172a;
  border-top-left-radius: 2px;
}

/* イラスト画像コンテナ */
.diagram-image-container {
  margin: 18px 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  background: #ffffff;
}

.diagram-custom-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

/* 体験談ストーリー */
.story-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 10px;
}

.story-block {
  position: relative;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 16px;
}

.story-badge {
  display: inline-block;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.story-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
  line-height: 1.4;
}

.story-text {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.65;
  margin-bottom: 8px;
}

.story-text:last-child { margin-bottom: 0; }

.story-highlight-box {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 12px;
  font-size: 0.88rem;
  color: #9a3412;
  margin: 8px 0;
  line-height: 1.55;
}

.story-dialogue {
  background: #eff6ff;
  border-left: 3px solid #3b82f6;
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  font-size: 0.88rem;
  margin: 8px 0;
}

.story-dialogue p { margin-bottom: 4px; }
.story-dialogue p:last-child { margin-bottom: 0; }

/* 簡易診断フォーム */
.diag-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
}

.diag-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: bold;
  margin-bottom: 4px;
}

.diag-group select {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.92rem;
  background: #ffffff;
}

.diag-result-box {
  margin-top: 14px;
  background: #ffffff;
  border: 2px solid #bae6fd;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.05);
}

.diag-score-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.tag-high { background: #dcfce7; color: #166534; }
.tag-mid  { background: #fef3c7; color: #92400e; }
.tag-check { background: #e0f2fe; color: #0369a1; }

.diag-res-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}

.diag-res-text {
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.6;
}

/* 事例グリッド */
.case-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.case-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
}

.case-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.case-badge {
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.case-desc {
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.55;
  margin-bottom: 8px;
}

.case-point {
  background: #ffffff;
  border: 1px dashed #94a3b8;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.82rem;
  color: #1e293b;
}

/* 公式仕様ルールリスト */
.rule-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.rule-item {
  background: #f8fafc;
  border-left: 3px solid var(--primary);
  border-radius: 0 8px 8px 0;
  padding: 12px 14px;
}

.rule-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.rule-text {
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.55;
}

/* 超リッチ・特典案内プレミアムカード */
.campaign-premium-card {
  background: linear-gradient(135deg, #ffffff 0%, #fffbeb 50%, #fff7ed 100%);
  border: 2px solid #fed7aa;
  border-radius: 16px;
  padding: 20px 18px;
  margin-top: 16px;
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.08);
}

.camp-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  border-bottom: 1px dashed #fdba74;
  padding-bottom: 12px;
}

.camp-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.camp-gift-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.camp-header-title {
  font-size: 1.05rem;
  font-weight: 900;
  color: #9a3412;
}

.camp-header-sub {
  font-size: 0.75rem;
  color: #7c2d12;
  font-weight: bold;
}

.camp-badge-live {
  background: linear-gradient(180deg, #ea580c 0%, #c2410c 100%);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 4px rgba(234, 88, 12, 0.25);
  white-space: nowrap;
}

.camp-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.camp-benefit-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.camp-benefit-icon {
  font-size: 1.4rem;
  line-height: 1.2;
}

.camp-benefit-content {
  flex: 1;
}

.camp-benefit-label {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: bold;
  margin-bottom: 2px;
}

.camp-benefit-main {
  font-size: 1rem;
  font-weight: 900;
  color: #ea580c;
  line-height: 1.3;
}

.camp-benefit-desc {
  font-size: 0.72rem;
  color: #475569;
  margin-top: 3px;
  line-height: 1.4;
}

.camp-card-footer {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  padding: 8px 12px;
}

.camp-footer-note {
  font-size: 0.75rem;
  color: #9a3412;
  line-height: 1.45;
  margin: 0;
}

/* FAQ */
.faq-item {
  margin-bottom: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
}

.faq-q {
  font-weight: 800;
  font-size: 0.92rem;
  color: #0f172a;
  margin-bottom: 4px;
}

.faq-a {
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.55;
}

/* ボタン */
.btn {
  display: block;
  text-align: center;
  padding: 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  border: none;
}

.btn-cta {
  background: linear-gradient(180deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  font-size: 1.05rem;
  line-height: 1.4;
  box-shadow: 0 4px 0 #9a3412, 0 8px 16px rgba(234, 88, 12, 0.3);
  transition: transform 0.1s, box-shadow 0.1s;
}

.btn-cta:hover {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #9a3412, 0 4px 8px rgba(234, 88, 12, 0.3);
}

/* 固定CTAフッター */
.sticky-footer-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 2px solid #bae6fd;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 -4px 14px rgba(0,0,0,0.08);
  z-index: 99;
}

.sticky-footer-cta .text { font-size: 0.9rem; font-weight: bold; }
.btn-small {
  background: linear-gradient(180deg, #f97316 0%, #ea580c 100%);
  color: #fff;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: 0 2px 0 #9a3412;
}

.site-footer {
  text-align: center;
  padding: 24px 0 10px 0;
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  margin-top: 30px;
}

@media (max-width: 600px) {
  .vdsl-expl-grid { grid-template-columns: 1fr; }
  .camp-card-grid { grid-template-columns: 1fr; }
  .camp-card-header { flex-direction: column; align-items: flex-start; gap: 8px; }
}
