/* ==========================================================================
   もしもしコール 共通スタイルシート
   構成：変数 / リセット / 共通部品 / ヘッダー / 各セクション / フッター /
        固定CTAバー / サブページ用 / レスポンシブ
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. カスタムプロパティ（カラーパレット等）
   -------------------------------------------------------------------------- */
:root {
  --color-primary: #4CAF72;        /* メイン：グリーン */
  --color-primary-dark: #3d9560;   /* グリーン（濃） */
  --color-accent: #F5A623;         /* アクセント：オレンジ */
  --color-accent-dark: #d98e0f;    /* オレンジ（濃） */
  --color-bg: #FFFFFF;             /* 背景：白 */
  --color-bg-green: #F0FAF4;       /* 背景：薄いグリーン */
  --color-text: #333333;           /* テキスト：ダークグレー */
  --color-text-light: #666666;     /* テキスト：補助 */
  --color-line: #06C755;           /* LINEブランドカラー */
  --color-border: #e0e8e2;         /* 罫線 */
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.08);
  --radius-card: 16px;
  --radius-btn: 999px;
  --header-height: 64px;
}

/* --------------------------------------------------------------------------
   2. リセット・ベース
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* stickyヘッダー分、アンカー位置をずらす */
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  word-break: auto-phrase;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

a {
  color: var(--color-primary-dark);
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   3. 共通レイアウト・部品
   -------------------------------------------------------------------------- */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  max-width: 820px;
}

.section {
  padding: 80px 0;
}

.section-green {
  background: var(--color-bg-green);
}

.section-title {
  font-size: 30px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* 見出し下の緑のアクセントライン */
.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: var(--color-primary);
  margin: 16px auto 0;
}

/* セクション上部の小さいラベル（例：「SERVICE」） */
.section-eyebrow {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--color-primary-dark);
  margin-bottom: 12px;
}

.section-lead {
  text-align: center;
  margin-bottom: 40px;
  color: var(--color-text-light);
}

.section-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 16px;
  margin-top: 40px;
}

.note-text {
  text-align: center;
  font-size: 14px;
  color: var(--color-text-light);
  margin-top: 32px;
}

/* スマホでのみ表示する改行など */
.sp-only {
  display: none;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.btn-large {
  padding: 16px 40px;
  font-size: 18px;
}

.btn-small {
  padding: 10px 20px;
  font-size: 14px;
}

/* LINE相談（メインCTA・緑） */
.btn-line {
  background: var(--color-line);
  color: #fff;
}

.btn-line:hover {
  background: #05b34c;
}

/* サービスカラーのボタン */
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
}

/* 白抜きボタン */
.btn-outline {
  background: #fff;
  color: var(--color-primary-dark);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-bg-green);
}

/* 電話ボタン（オレンジ） */
.btn-tel {
  background: var(--color-accent);
  color: #fff;
}

.btn-tel:hover {
  background: var(--color-accent-dark);
}

/* ---------- カードグリッド ---------- */
.card-grid {
  display: grid;
  gap: 24px;
}

.card-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

/* ---------- スクロールで浮き上がるアニメーション ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   4. ヘッダー・ナビゲーション
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

/* スクロール後：背景を不透明にして影を付ける */
.site-header.is-scrolled {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
}

.site-logo span {
  color: var(--color-primary);
}

.global-nav ul {
  display: flex;
  align-items: center;
  gap: 24px;
}

.global-nav a {
  color: var(--color-text);
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.global-nav a:hover {
  color: var(--color-primary);
}

.nav-cta a {
  color: #fff; /* LINEボタンは白文字を維持 */
}

.nav-cta a:hover {
  color: #fff;
}

/* ハンバーガーボタン（デフォルト非表示、モバイルで表示） */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: var(--color-primary);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* 開いたときは×印に変形 */
.hamburger.is-open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   5. ヒーロー
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, #F0FAF4 0%, #DFF3E7 60%, #d2eede 100%);
  padding: 72px 0;
  overflow: hidden;
}

/* 装飾円：大（右上） */
.hero::before {
  content: "";
  position: absolute;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  background: rgba(76, 175, 114, 0.13);
  top: -180px;
  right: -120px;
  pointer-events: none;
}

/* 装飾円：小（左下） */
.hero::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  bottom: -80px;
  left: -60px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;       /* 装飾円の上にコンテンツを表示 */
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-text {
  flex: 1.1;
}

/* 「定期会話サービス」バッジ */
.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: var(--radius-btn);
  background: rgba(76, 175, 114, 0.15);
  color: var(--color-primary-dark);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 24px;
  color: #2d2d2d;
}

/* タイトルの2行目をグリーンに */
.hero-title-accent {
  color: var(--color-primary-dark);
}

.hero-sub {
  font-size: 16px;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.hero-note {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}


.hero-image {
  flex: 0.9;
  text-align: center;
}

.hero-image img {
  max-width: 460px;
  width: 100%;
  border-radius: 24px;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   6. Section 2: 課題提起（吹き出し）
   -------------------------------------------------------------------------- */
/* ① 吹き出し群 */
.worries-bubbles {
  max-width: 680px;
  margin: 0 auto 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.worry-bubble {
  position: relative;
  max-width: 75%;
  padding: 18px 24px;
  border-radius: var(--radius-card);
  background: var(--color-bg-green);
  font-weight: 700;
  box-shadow: var(--shadow-card);
}

/* 吹き出しのしっぽ */
.worry-bubble::after {
  content: "";
  position: absolute;
  bottom: -10px;
  border-style: solid;
}

.worry-left {
  align-self: flex-start;
}

.worry-left::after {
  left: 28px;
  border-width: 10px 12px 0 0;
  border-color: var(--color-bg-green) transparent transparent transparent;
}

.worry-right {
  align-self: flex-end;
  background: #FDF3E0;
}

.worry-right::after {
  right: 28px;
  border-width: 10px 0 0 12px;
  border-color: #FDF3E0 transparent transparent transparent;
}

/* ② 吹き出し→カードへのブリッジ文 */
.worries-bridge {
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text-light);
  margin-bottom: 28px;
}

/* ③ お悩み：2×2グリッド */
.worries-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

/* お悩みカード：グリーン丸ドット＋テキスト */
.worry-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 24px 28px;
  box-shadow: var(--shadow-card);
}

.worry-card::before {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  margin-top: 7px;
}

.worry-card p {
  font-size: 16px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   7. Section 3: サービス紹介
   -------------------------------------------------------------------------- */
.feature-card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 36px 32px;
  text-align: left;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
}

/* アイコン：角丸正方形の背景付き */
.feature-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: #E8EFF5;
  margin-bottom: 20px;
}

.feature-icon-wrap img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 12px;
  line-height: 1.5;
}

.feature-card p {
  font-size: 15px;
  color: var(--color-text-light);
}

/* --------------------------------------------------------------------------
   8. Section 4: 価値（カード + コネクター + Before/After）
   -------------------------------------------------------------------------- */

/* 2列：親カード | 家族カード */
.value-body {
  max-width: 720px;
  margin: 0 auto;
}

.value-body p {
  margin-bottom: 1.6em;
  line-height: 1.9;
}

.value-body p:last-child {
  margin-bottom: 0;
}


/* --------------------------------------------------------------------------
   9. Section 5: 比較表
   -------------------------------------------------------------------------- */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 24px;
}

.compare-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  font-size: 15px;
}

.table-caption {
  caption-side: top;
  text-align: left;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 12px;
  color: var(--color-text);
}

.compare-table th,
.compare-table td {
  padding: 14px 18px;
  border: 1px solid #b0c8b8;
  text-align: left;
  vertical-align: middle;
  line-height: 1.6;
}

.compare-table thead th {
  background: var(--color-primary);
  color: #fff;
  white-space: nowrap;
  font-size: 14px;
}

.compare-table tbody th {
  background: #D6EDE2;
  white-space: nowrap;
  font-weight: 700;
  color: var(--color-text);
}

/* もしもしコール列：グリーン系で統一 */
.compare-table .col-highlight {
  background: #E8F6EE;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.compare-table thead .col-highlight {
  background: var(--color-primary-dark);
  color: #fff;
  font-size: 15px;
}


/* ── テーブル間のインサイトコメント ── */
.compare-comment {
  margin: 0 auto 48px;
}

.table-scroll--vs {
  margin-top: 64px;
}

/* ── マーカーハイライトアニメーション ── */
.marker-text {
  background: linear-gradient(transparent 55%, rgba(255, 220, 50, 0.55) 55%);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  background-position: left center;
  transition: background-size 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.marker-text.is-marked {
  background-size: 100% 100%;
}

/* ── キャラクター吹き出しレイアウト ── */
.character-speech {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin: 0 auto;
  max-width: 820px;
}

.character-speech-img {
  flex-shrink: 0;
  width: 110px;
}

.character-speech-img img {
  width: 100%;
  height: auto;
  display: block;
}

.speech-bubble {
  position: relative;
  background: #fff;
  border: 2px solid var(--color-primary);
  border-radius: 16px;
  padding: 20px 28px;
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text);
  margin-left: 20px;
  margin-top: 20px;
  line-height: 1.8;
}

/* 吹き出しの三角（外枠） */
.speech-bubble::before {
  content: '';
  position: absolute;
  left: -18px;
  top: 50%;
  transform: translateY(-50%);
  border: 9px solid transparent;
  border-right-color: var(--color-primary);
}

/* 吹き出しの三角（白塗り） */
.speech-bubble::after {
  content: '';
  position: absolute;
  left: -13px;
  top: 50%;
  transform: translateY(-50%);
  border: 7px solid transparent;
  border-right-color: #fff;
}

/* --------------------------------------------------------------------------
   10. Section 3: 孤独死統計
   -------------------------------------------------------------------------- */
.stats-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

.stat-card {
  background: #fff;
  border-radius: var(--radius-card);
  border: 1.5px solid var(--color-primary);
  padding: 40px 32px;
  text-align: center;
}

.stat-number {
  margin-bottom: 16px;
  line-height: 1;
}

.stat-num {
  font-size: 64px;
  font-weight: 700;
  color: var(--color-primary-dark);
  line-height: 1;
}

.stat-unit {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.stat-desc {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 8px;
}

.stat-source {
  font-size: 13px;
  color: var(--color-text-light);
}

.stats-body {
  max-width: 720px;
  margin: 0 auto;
}

.stats-body p {
  margin-bottom: 16px;
  line-height: 1.9;
}

.stats-body p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   11. Section 6: レポートのモックアップ
   -------------------------------------------------------------------------- */
.report-mock {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.report-mock-header {
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  padding: 14px 24px;
}

.report-mock-body {
  padding: 24px;
}

/* 通話日時などのメタ情報 */
.report-meta {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
}

.report-meta > div {
  display: flex;
  border-bottom: 1px solid var(--color-border);
}

.report-meta > div:last-child {
  border-bottom: none;
}

.report-meta dt {
  flex: 0 0 100px;
  background: var(--color-bg-green);
  padding: 10px 14px;
  font-weight: 700;
  font-size: 14px;
}

.report-meta dd {
  padding: 10px 14px;
  font-size: 14px;
}

.report-block {
  margin-bottom: 16px;
}

.report-block:last-child {
  margin-bottom: 0;
}

.report-block h3 {
  font-size: 15px;
  color: var(--color-primary-dark);
  border-left: 4px solid var(--color-primary);
  padding-left: 10px;
  margin-bottom: 8px;
}

.report-block p {
  font-size: 15px;
  color: var(--color-text-light);
}

/* --------------------------------------------------------------------------
   12. Section 8: 料金プラン
   -------------------------------------------------------------------------- */
.campaign-banner {
  max-width: 640px;
  margin: 0 auto 40px;
  padding: 20px 28px;
  text-align: center;
  background: #FDF3E0;
  border: 2px dashed var(--color-accent);
  border-radius: var(--radius-card);
}

.campaign-banner-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--color-accent-dark);
  margin-bottom: 6px;
}

.campaign-banner-sub {
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.7;
}

.plan-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 340px));
  justify-content: center;
  gap: 24px;
  align-items: stretch;
}

.plan-card {
  position: relative;
  background: #fff;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

/* おすすめプランの強調 */
.plan-card-recommended {
  border-color: var(--color-accent);
  border-width: 3px;
}

.plan-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 4px 20px;
  border-radius: var(--radius-btn);
  white-space: nowrap;
}

.plan-name {
  font-size: 19px;
  margin-bottom: 12px;
}

.plan-price {
  margin-bottom: 20px;
  color: var(--color-primary-dark);
  font-weight: 700;
}

.plan-price-num {
  font-size: 38px;
  line-height: 1.2;
}

.plan-price-unit {
  font-size: 14px;
  color: var(--color-text-light);
  font-weight: 400;
}

.plan-details {
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
  text-align: left;
  display: inline-block;
}

.plan-details li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
}

.plan-details li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

.price-note {
  text-align: center;
  font-size: 14px;
  color: var(--color-text-light);
  margin-top: 24px;
}

/* ── 2ヶ月お試し 3ステップフロー ── */
.trial-steps {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  margin: 40px auto 0;
  max-width: 860px;
  list-style: none;
}

.trial-step {
  flex: 1;
  background: var(--color-bg-green);
  border-radius: var(--radius-card);
  padding: 24px 20px;
  text-align: center;
}

.trial-step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.trial-step h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.5;
  color: var(--color-text);
}

.trial-step p {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* 矢印要素 */
.trial-step--arrow {
  flex: 0 0 32px;
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: 20px;
  color: var(--color-primary);
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trial-step--arrow::before {
  content: '▶';
  font-size: 16px;
  color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   13. Section 9: ご利用の流れ
   -------------------------------------------------------------------------- */
.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 32px;
  counter-reset: flow;
}

.flow-step {
  position: relative;
  background: #fff;
  border-radius: var(--radius-card);
  padding: 32px 20px 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

/* ステップ間の矢印 */
.flow-step:not(:last-child)::after {
  content: "▶";
  position: absolute;
  top: 50%;
  right: -26px;
  transform: translateY(-50%);
  color: var(--color-primary);
  font-size: 16px;
}

.flow-step-num {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-step h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.flow-step p {
  font-size: 14px;
  color: var(--color-text-light);
}

/* --------------------------------------------------------------------------
   14. Section 10: 利用者の声（カルーセル）
   -------------------------------------------------------------------------- */
.voice-carousel-wrap {
  position: relative;
}

.carousel-track-wrap {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  align-items: stretch;
  list-style: none;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  flex: 0 0 calc(100% / 3);
  padding: 0 12px;
  display: flex;
  flex-direction: column;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  background: #fff;
  color: var(--color-primary-dark);
  font-size: 26px;
  line-height: 1;
  padding-bottom: 6px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  z-index: 2;
}

.carousel-btn:hover {
  background: var(--color-primary);
  color: #fff;
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

.carousel-btn-prev { left: 0; }
.carousel-btn-next { right: 0; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  min-height: 16px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--color-border);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.carousel-dot.is-active {
  background: var(--color-primary);
  transform: scale(1.4);
}

.voice-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 40px 24px 28px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.voice-card::before {
  content: '\201C';
  position: absolute;
  top: 4px;
  left: 18px;
  font-size: 72px;
  line-height: 1;
  font-family: Georgia, serif;
  color: var(--color-primary);
  opacity: 0.18;
  pointer-events: none;
}

/* バッジ：背景色＋アイコン＋テキストで区別（色のみに依存しない） */
.voice-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-btn);
  margin-bottom: 12px;
}

.voice-badge-user {
  background: #DFF3E7;
  color: #2c7a4d;
}

.voice-badge-family {
  background: #FDF3E0;
  color: #b1750d;
}

.voice-stars {
  color: var(--color-accent);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.voice-text {
  flex: 1;
  font-size: 15px;
  margin-bottom: 16px;
}

.voice-attr {
  font-size: 13px;
  color: var(--color-text-light);
  text-align: right;
}

/* --------------------------------------------------------------------------
   15. FAQ（アコーディオン）
   -------------------------------------------------------------------------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.faq-question:hover {
  background: var(--color-bg-green);
}

.faq-q-mark {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 15px;
  display: flex;；
  align-items: center;
  justify-content: center;
}

/* 開閉アイコン（＋/−）をCSSで描画 */
.faq-icon {
  position: relative;
  flex-shrink: 0;
  margin-left: auto;
  width: 16px;
  height: 16px;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  transition: transform 0.3s ease;
}

.faq-icon::after {
  transform: rotate(90deg);
}

.faq-question[aria-expanded="true"] .faq-icon::after {
  transform: rotate(0deg);
}

/* 回答部分：max-heightはJSで制御 */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 4px 20px 20px 60px;
  font-size: 15px;
  color: var(--color-text-light);
}

/* --------------------------------------------------------------------------
   16. お問い合わせCTAセクション
   -------------------------------------------------------------------------- */
.contact-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 420px;
  margin: 0 auto;
}

.contact-buttons .btn {
  width: 100%;
}

/* --------------------------------------------------------------------------
   17. フッター
   -------------------------------------------------------------------------- */
.site-footer {
  background: #2f4437;
  color: #fff;
  padding: 56px 0 24px;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-logo {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-company {
  font-size: 14px;
  color: #c4d6ca;
}

.footer-company a {
  color: #fff;
  text-decoration: underline;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.footer-nav a {
  color: #c4d6ca;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-copy {
  text-align: center;
  font-size: 13px;
  color: #9db5a5;
  border-top: 1px solid #46604f;
  padding-top: 24px;
}

/* --------------------------------------------------------------------------
   18. モバイル固定CTAバー（モバイルのみ表示）
   -------------------------------------------------------------------------- */
.cta-bar {
  display: none; /* PCでは非表示 */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.12);
}

.cta-bar-btn {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.cta-bar-line {
  background: var(--color-line);
}

.cta-bar-tel {
  background: var(--color-accent);
}

/* --------------------------------------------------------------------------
   19. サブページ共通（ページタイトル帯・ブログ・お問い合わせ等）
   -------------------------------------------------------------------------- */
/* ページ上部のタイトル帯 */
.page-header {
  background: linear-gradient(135deg, #F0FAF4 0%, #DFF3E7 100%);
  padding: 56px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 34px;
}

.page-header .page-lead {
  margin-top: 8px;
  color: var(--color-text-light);
}

/* 上の余白を詰めたセクション（ページタイトル帯の直後用） */
.section-tight {
  padding-top: 48px;
}

/* 料金ページ：注記リスト */
.price-notes-list {
  max-width: 720px;
  margin: 24px auto 0;
  font-size: 14px;
  color: var(--color-text-light);
}

.price-notes-list li {
  margin-bottom: 4px;
}

/* パンくずリスト */
.breadcrumb {
  font-size: 13px;
  color: var(--color-text-light);
  padding: 12px 0;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin: 0 6px;
}

/* FAQカテゴリ見出し（faqページ用） */
.faq-category-title {
  font-size: 22px;
  margin: 48px 0 20px;
  padding-left: 14px;
  border-left: 5px solid var(--color-primary);
}

.faq-category-title:first-of-type {
  margin-top: 0;
}

/* ブログ：カテゴリフィルター */
.blog-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 24px;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-btn);
  background: #fff;
  color: var(--color-primary-dark);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.filter-btn:hover,
.filter-btn.is-active {
  background: var(--color-primary);
  color: #fff;
}

/* ブログ：記事カード */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
}

.blog-card-thumb {
  aspect-ratio: 16 / 9;
  background: var(--color-bg-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.blog-card-body {
  padding: 20px;
}

.blog-card-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--color-primary);
  border-radius: var(--radius-btn);
  padding: 2px 12px;
  margin-bottom: 8px;
}

.blog-card-badge.badge-column {
  background: var(--color-accent);
}

.blog-card-badge.badge-staff {
  background: #6a8caf;
}

.blog-card-title {
  font-size: 17px;
  margin-bottom: 8px;
  line-height: 1.5;
}

.blog-card-date {
  font-size: 13px;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.blog-card-excerpt {
  font-size: 14px;
  color: var(--color-text-light);
}

/* お問い合わせ：Googleフォーム埋め込み */
.gform-wrap {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 16px;
}

.gform-wrap iframe {
  width: 100%;
  min-height: 1923px;
  border: none;
}

/* 会社概要テーブル */
.company-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.company-table th,
.company-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.company-table th {
  width: 30%;
  background: var(--color-bg-green);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   20. 装飾：ウェーブ区切り ＋ ドットパターン
   -------------------------------------------------------------------------- */

/*
 * ウェーブ区切り：各セクションの ::after に SVG ウェーブを描画する
 * ─ 白→緑セクション：グリーンウェーブ（.worries / .value / .flow / .faq）
 * ─ 緑→白セクション：ホワイトウェーブ（.section-green 全般）
 * padding-bottom をウェーブ分だけ増やして、コンテンツとウェーブが重ならないようにする
 */

/* 白セクション（緑セクションへの移行） */
.worries,
.value,
.flow,
.faq {
  position: relative;
  padding-bottom: calc(80px + 52px);
}

.worries::after,
.value::after,
.flow::after,
.faq::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 52px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 52' preserveAspectRatio='none'%3E%3Cpath d='M0,26 C480,52 960,0 1440,26 L1440,52 L0,52 Z' fill='%23F0FAF4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
}

/* 緑セクション（白セクションへの移行） */
.section-green {
  position: relative;
  padding-bottom: calc(80px + 52px);
}

.section-green::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 52px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 52' preserveAspectRatio='none'%3E%3Cpath d='M0,26 C480,0 960,52 1440,26 L1440,52 L0,52 Z' fill='%23ffffff'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
}

/* ドットパターン：.worries と .value に適用 */
.worries,
.value {
  background-image:
    radial-gradient(circle, rgba(76, 175, 114, 0.18) 1.5px, transparent 1.5px),
    none;  /* ウェーブは ::after で描くのでここには不要 */
  background-size: 28px 28px;
  background-position: 0 0;
}

/* --------------------------------------------------------------------------
   21. レスポンシブ（タブレット：768px以下）  ← 旧20（装飾セクション追加で繰り上がり）
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .section {
    padding: 56px 0;
  }

  .section-title {
    font-size: 25px;
  }

  .sp-only {
    display: inline;
  }

  /* ---------- ナビ：ハンバーガーメニュー ---------- */
  .hamburger {
    display: flex;
  }

  .global-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  }

  .global-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .global-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 16px;
  }

  .global-nav li a {
    display: block;
    padding: 14px 24px;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-cta {
    padding: 16px 24px 0;
  }

  .nav-cta a {
    border-bottom: none;
    text-align: center;
  }

  /* ---------- ヒーロー ---------- */
  .hero {
    padding: 48px 0;
  }

  .hero-inner {
    flex-direction: column-reverse;  /* モバイルは画像を上に */
    /* text-align はデフォルト（左寄せ）を維持 */
  }

  /* バッジは inline-block のまま（全幅に広げない） */

  .hero-title {
    font-size: 30px;
  }

  .hero-image img {
    max-width: 100%;
    border-radius: 16px;
  }

  /* ---------- グリッド類を1カラムに ---------- */
  .card-grid-3,
  .card-grid-2,
  .worries-grid,
  .stats-cards,
  .plan-cards,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  /* ---------- 吹き出し ---------- */
  .worry-bubble {
    max-width: 88%;
  }

  .plan-cards {
    max-width: 420px;
    margin: 0 auto;
    gap: 32px;
  }

  /* ---------- 吹き出し ---------- */
  .worry-bubble {
    max-width: 92%;
  }

  /* ---------- ご利用の流れ：縦並び＋下向き矢印 ---------- */
  .flow-steps {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
    gap: 40px;
  }

  .flow-step:not(:last-child)::after {
    content: "▼";
    top: auto;
    right: auto;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
  }

  /* ---------- フッター ---------- */
  .footer-main {
    flex-direction: column;
    gap: 24px;
  }

  /* ---------- 固定CTAバー表示＋フッターが隠れないよう余白 ---------- */
  .cta-bar {
    display: flex;
  }

  body {
    padding-bottom: 70px;
  }

  /* ---------- CTAボタン ---------- */
  .btn-large {
    padding: 14px 28px;
    font-size: 16px;
  }

  .page-header h1 {
    font-size: 27px;
  }

  /* ---------- ウェーブ：モバイルでは高さを縮小 ---------- */
  .worries,
  .value,
  .flow,
  .faq {
    padding-bottom: calc(56px + 36px);
  }

  .worries::after,
  .value::after,
  .flow::after,
  .faq::after,
  .section-green::after {
    height: 36px;
  }

  .section-green {
    padding-bottom: calc(56px + 36px);
  }
}

/* --------------------------------------------------------------------------
   22. レスポンシブ(スマートフォン：480px以下)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .section-title {
    font-size: 22px;
  }

  .character-speech {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .character-speech-img {
    width: 80px;
  }

  .speech-bubble {
    margin-left: 0;
    font-size: 15px;
    padding: 16px 20px;
  }

  .speech-bubble::before {
    left: 50%;
    top: -18px;
    transform: translateX(-50%);
    border: 9px solid transparent;
    border-bottom-color: var(--color-primary);
    border-right-color: transparent;
  }

  .speech-bubble::after {
    left: 50%;
    top: -13px;
    transform: translateX(-50%);
    border: 7px solid transparent;
    border-bottom-color: #fff;
    border-right-color: transparent;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .plan-price-num {
    font-size: 36px;
  }

  .faq-answer p {
    padding-left: 20px;
  }

  .report-meta dt {
    flex-basis: 84px;
  }

  .company-table th {
    width: 100px;
  }

  /* ---------- 利用者の声：カルーセル ボタン縮小 ---------- */
  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  /* ---------- 2ヶ月お試しステップフロー：縦並び ---------- */
  .trial-steps {
    flex-direction: column;
    max-width: 420px;
  }

  .trial-step--arrow {
    flex: 0 0 auto;
    padding: 4px 0;
  }

  .trial-step--arrow::before {
    content: '▼';
  }
}
