@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

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

:root {
  /* メインカラー */
  --red:     #c0392b;
  --red-dark: #962d22;
  --gold:    #c8962a;
  --gold-light: #e8b84b;
  --line-green: #06C755;
  /* ベース */
  --bg:      #ffffff;
  --bg-warm: #fdf8f5;
  --bg-light: #f9f4f0;
  --text:    #1a1a1a;
  --text-mid: #444444;
  --text-light: #777777;
  --white:   #ffffff;
  --border:  #e8e0d8;
  /* 後方互換（削除できない参照用） */
  --pink:    #c0392b;
  --pink-bright: #c0392b;
  --orange:  #c8962a;
  --orange-light: #e8b84b;
  --yellow:  #e8b84b;
  --yellow-light: #e8b84b;
  --teal:    #c0392b;
  --teal-light: #c0392b;
  --blue:    #c0392b;
  --green:   #06C755;
  --dark:    #2c2c2c;
  --dark-2:  #f9f4f0;
  --dark-3:  #f5f0eb;
  --glass:   rgba(255, 255, 255, 0.9);
  --glass-border: #e8e0d8;
  --rainbow: linear-gradient(90deg, #c0392b, #c8962a, #c0392b);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
}

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* 赤のアクセントライン */
.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
  opacity: 1;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: -0.5px;
  color: var(--red);
  white-space: nowrap;
}

.header-tel {
  text-align: right;
}

.header-tel .tel-label {
  font-size: 0.7rem;
  color: var(--text-light);
  letter-spacing: 0.5px;
}

.header-tel .tel-number {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--red);
  text-decoration: none;
  letter-spacing: 1px;
}

.header-cta {
  background: var(--line-green);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(6, 199, 85, 0.35);
  white-space: nowrap;
}

.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(6, 199, 85, 0.5);
  background: #05b34c;
}

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-warm);
  padding: 120px 32px 80px;
}

/* 上部の赤いアクセント */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--red);
}

.hero::after {
  display: none;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.hero-inner {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  text-align: center;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 28px;
  letter-spacing: 1.5px;
  animation: fadeInUp 0.8s ease both;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.8rem);
  font-weight: 900;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 20px;
  animation: fadeInUp 0.8s 0.1s ease both;
}

.hero h1 em {
  font-style: normal;
  color: var(--red);
  -webkit-text-fill-color: var(--red);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-mid);
  margin-bottom: 48px;
  animation: fadeInUp 0.8s 0.2s ease both;
  line-height: 1.9;
}

.hero-sub strong {
  color: var(--red);
  font-weight: 700;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s 0.3s ease both;
}

.btn-primary {
  background: linear-gradient(135deg, var(--pink) 0%, var(--orange) 100%);
  color: var(--white);
  padding: 18px 44px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-block;
  box-shadow: 0 8px 32px rgba(233, 30, 140, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.18), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(233, 30, 140, 0.6);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-secondary {
  background: var(--white);
  color: var(--red);
  padding: 18px 44px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  border: 2px solid var(--red);
  cursor: pointer;
  transition: all 0.3s;
  display: inline-block;
}

.btn-secondary:hover {
  background: var(--red);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(192,57,43,0.3);
}

.btn-line {
  background: #06C755;
  color: var(--white);
  padding: 18px 44px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-block;
  box-shadow: 0 8px 32px rgba(6, 199, 85, 0.4);
}

.btn-line:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(6, 199, 85, 0.55);
  background: #05b34c;
}

/* スクロール誘導 */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  font-size: 0.75rem;
  letter-spacing: 2px;
  animation: fadeInUp 1s 0.6s ease both;
  z-index: 1;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(192,57,43,0.6), transparent);
  animation: scrollLine 1.5s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ヒーロー内 電話番号表示 */
.hero-tel {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  animation: fadeInUp 0.8s 0.4s ease both;
}

.hero-tel a {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  color: var(--red);
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.2s;
}

.hero-tel a:hover {
  color: var(--red-dark);
}

.hero-tel span {
  font-size: 0.82rem;
  color: var(--text-light);
}

/* ========== SECTION COMMON ========== */
section {
  padding: 96px 32px;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 56px;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::after {
  content: '';
  flex: 1;
  max-width: 48px;
  height: 1px;
  background: var(--red);
  opacity: 0.5;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 16px;
  color: var(--text);
}

.section-title em {
  font-style: normal;
  color: var(--red);
  -webkit-text-fill-color: var(--red);
}

.section-desc {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 520px;
  line-height: 1.8;
}

/* ========== REASONS ========== */
.reasons {
  background: var(--bg-warm);
  position: relative;
  overflow: hidden;
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.reason-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

/* カード上部の赤ライン */
.reason-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--red);
}

.reason-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

.reason-number {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 16px;
  color: var(--red);
  opacity: 0.15;
}

.reason-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.reason-card p {
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.85;
}

/* ========== FLOW ========== */
.flow {
  background: var(--bg);
  position: relative;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 0;
  position: relative;
}

.flow-steps::before {
  content: '';
  position: absolute;
  top: 52px;
  left: calc(12.5%);
  right: calc(12.5%);
  height: 2px;
  background: var(--border);
  opacity: 1;
  z-index: 0;
}

.flow-step {
  text-align: center;
  padding: 0 16px 0;
  position: relative;
  z-index: 1;
}

.step-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  transition: transform 0.3s;
}

/* 各ステップ - 統一カラー */
.flow-step:nth-child(1) .step-icon {
  background: var(--red);
  box-shadow: 0 8px 24px rgba(192,57,43,0.3);
}
.flow-step:nth-child(2) .step-icon {
  background: var(--red);
  box-shadow: 0 8px 24px rgba(192,57,43,0.3);
}
.flow-step:nth-child(3) .step-icon {
  background: var(--red);
  box-shadow: 0 8px 24px rgba(192,57,43,0.3);
}
.flow-step:nth-child(4) .step-icon {
  background: var(--red);
  box-shadow: 0 8px 24px rgba(192,57,43,0.3);
}

.flow-step:hover .step-icon {
  transform: scale(1.08);
}

.step-num {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.flow-step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.flow-step p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ========== ITEMS ========== */
.items {
  background: var(--bg-warm);
  position: relative;
  overflow: hidden;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.items-grid--8 {
  grid-template-columns: repeat(4, 1fr);
}

.item-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  border-radius: 12px;
  padding: 28px 16px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: default;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.item-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.10);
}

.item-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
  display: block;
}

.item-card h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.item-card p {
  font-size: 0.78rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ========== TESTIMONIALS ========== */
.testimonials {
  background: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: linear-gradient(145deg, #fafafa, #f5f5f8);
  border-radius: 20px;
  padding: 36px 32px;
  position: relative;
  border: 1px solid #ebebf0;
  transition: all 0.3s;
  overflow: hidden;
}

/* カード上部のアクセントライン */
.testimonial-card:nth-child(1)::before,
.testimonial-card:nth-child(2)::before,
.testimonial-card:nth-child(3)::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--red);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.08);
}

.quote-mark {
  font-size: 4rem;
  color: var(--gold);
  opacity: 0.35;
  line-height: 1;
  font-family: Georgia, serif;
  margin-bottom: -8px;
  display: block;
}

.stars {
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 20px;
  color: var(--text-mid);
}

.testimonial-author {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.testimonial-author::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--red);
  display: inline-block;
}

/* ========== FOOTER CTA ========== */
.footer-cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 100px 32px;
  background: #7b1f1a;
}

.footer-cta::before {
  display: none;
}

.footer-cta::after {
  display: none;
}

.footer-cta-inner {
  position: relative;
  z-index: 1;
}

.footer-cta h2 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.4;
}

.footer-cta h2 em {
  font-style: normal;
  color: var(--gold-light);
  -webkit-text-fill-color: var(--gold-light);
}

.footer-cta p {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 48px;
}

.footer-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
  padding: 18px 44px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.05rem;
  transition: all 0.3s;
  display: inline-block;
  box-shadow: 0 8px 24px rgba(200,150,42,0.4);
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(200,150,42,0.6);
}

/* フッターCTA内のLINEボタン */
.btn-gold--line {
  background: var(--line-green);
  box-shadow: 0 8px 24px rgba(6,199,85,0.4);
}

.btn-gold--line:hover {
  background: #05b34c;
  box-shadow: 0 12px 36px rgba(6,199,85,0.6);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  padding: 18px 44px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  border: 2px solid rgba(255,255,255,0.6);
  transition: all 0.3s;
  display: inline-block;
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.15);
}

.footer-cta-divider {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.2);
  margin: 0 auto 32px;
}

.footer-cta-tel {
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: 2px;
}

.footer-cta-tel a {
  color: var(--gold-light);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-cta-tel a:hover {
  color: var(--white);
}

.footer-cta-tel-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  display: block;
  margin-bottom: 8px;
  font-weight: 400;
  letter-spacing: 1px;
}

/* ========== FOOTER ========== */
.footer {
  background: #2c2c2c;
  color: rgba(255,255,255,0.35);
  text-align: center;
  padding: 36px 32px;
  font-size: 0.82rem;
}

.footer-links {
  margin-bottom: 14px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 0;
}

.footer a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  padding: 0 16px;
  border-right: 1px solid rgba(255,255,255,0.12);
  transition: color 0.2s;
}

.footer a:last-child {
  border-right: none;
}

.footer a:hover {
  color: var(--gold-light);
}

/* ========== HERO BADGE DOT ========== */
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #06C755;
  display: inline-block;
  animation: dotPulse 1.5s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.h1-sub {
  display: block;
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 700;
  margin-top: 8px;
  color: var(--text-mid);
  background: none;
  -webkit-text-fill-color: var(--text-mid);
}

/* ========== TRUST BAR ========== */
.trust-bar {
  background: var(--bg-warm);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 32px;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 32px;
  list-style: none;
  max-width: 1000px;
  margin: 0 auto;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.trust-icon {
  font-size: 1.1rem;
}

@media (max-width: 600px) {
  .trust-list {
    gap: 10px 20px;
  }
  .trust-item {
    font-size: 0.82rem;
  }
}

/* ========== STATS SECTION ========== */
.stats {
  background: var(--red);
  padding: 56px 32px;
  position: relative;
  overflow: hidden;
}

.stats::before {
  display: none;
}

.stats::after {
  display: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.stat-item {
  text-align: center;
  padding: 24px 16px;
  border-right: 1px solid rgba(255,255,255,0.2);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: -1px;
  color: var(--white);
}

.stat-item:nth-child(1) .stat-number,
.stat-item:nth-child(2) .stat-number,
.stat-item:nth-child(3) .stat-number,
.stat-item:nth-child(4) .stat-number { color: var(--white); }

.stat-unit {
  font-size: 0.6em;
  font-weight: 700;
  vertical-align: baseline;
}

.stat-label {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.5px;
}

/* ========== SCROLL ANIMATION ========== */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== ITEM BADGE ========== */
.item-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--red);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

/* ========== FAQ ========== */
.faq {
  background: var(--bg-warm);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #e5e7eb;
}

.faq-item:first-child {
  border-top: 1px solid #e5e7eb;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  text-align: left;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--red);
}

.faq-icon {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--red);
  flex-shrink: 0;
  transition: transform 0.3s;
  line-height: 1;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 4px;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 20px;
}

.faq-answer p {
  color: var(--text-mid);
  line-height: 1.85;
  font-size: 1rem;
}

/* フッター追加情報 */
.footer-address,
.footer-license {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 6px;
}

/* ========== SCROLL TOP BUTTON ========== */
.scroll-top {
  position: fixed;
  bottom: 100px;
  right: 24px;
  z-index: 190;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--text-mid);
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.scroll-top:hover {
  background: var(--bg-warm);
  transform: translateY(-2px);
}
@media (max-width: 768px) {
  .scroll-top {
    bottom: 80px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* ========== FLOATING LINE BUTTON ========== */
.float-line-btn {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 200;
  background: #06C755;
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 700;
  box-shadow: 0 6px 24px rgba(6,199,85,0.5);
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  transition: opacity 0.3s, transform 0.3s, box-shadow 0.3s;
  pointer-events: none;
}

.float-line-btn::before {
  content: '💬';
  font-size: 1.4rem;
  margin-bottom: 2px;
}

.float-line-btn.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.float-line-btn:hover {
  box-shadow: 0 10px 36px rgba(6,199,85,0.7);
  transform: translateY(-2px) scale(1.05);
}

.float-line-label {
  line-height: 1;
}

/* ========== SUBPAGE ========== */
.subpage-main {
  padding-top: 80px;
  min-height: 80vh;
  background: var(--bg);
}

.subpage-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 56px 32px 80px;
}

.subpage-breadcrumb {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 28px;
}

.subpage-breadcrumb a {
  color: var(--red);
  text-decoration: none;
}

.subpage-breadcrumb a:hover {
  text-decoration: underline;
}

.subpage-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--red);
}

.subpage-lead {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: 40px;
  background: var(--bg-warm);
  padding: 16px 20px;
  border-radius: 8px;
  border-left: 3px solid var(--red);
}

.subpage-body {
  margin-bottom: 48px;
}

.subpage-body h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 36px 0 12px;
  padding-left: 12px;
  border-left: 3px solid var(--red);
}

.subpage-body p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.9;
  margin-bottom: 12px;
}

.subpage-body ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.subpage-body ul li {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: 4px;
}

.subpage-contact-box {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  margin-top: 12px;
}

.subpage-contact-box p {
  margin-bottom: 6px;
}

.subpage-contact-box a {
  color: var(--red);
  text-decoration: none;
}

.subpage-contact-box a:hover {
  text-decoration: underline;
}

.subpage-date {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 40px;
  text-align: right;
}

.subpage-back {
  display: inline-block;
  color: var(--red);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 12px 24px;
  border: 2px solid var(--red);
  border-radius: 50px;
  transition: all 0.2s;
}

.subpage-back:hover {
  background: var(--red);
  color: var(--white);
}

/* 法的情報テーブル */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.legal-table th,
.legal-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  line-height: 1.8;
  vertical-align: top;
}

.legal-table th {
  width: 36%;
  font-weight: 700;
  color: var(--text);
  background: var(--bg-warm);
  white-space: nowrap;
}

.legal-table td {
  color: var(--text-mid);
}

.legal-table td a {
  color: var(--red);
  text-decoration: none;
}

.legal-table td a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .subpage-inner {
    padding: 40px 20px 60px;
  }

  .legal-table th,
  .legal-table td {
    display: block;
    width: 100%;
  }

  .legal-table th {
    background: var(--bg-light);
    padding-bottom: 4px;
    border-bottom: none;
    white-space: normal;
  }

  .legal-table td {
    padding-top: 4px;
  }
}

/* ========== AREA ========== */
.area {
  background: var(--bg);
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.area-card {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  border-radius: 16px;
  padding: 28px 24px;
}

.area-pref {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--red);
  margin-bottom: 16px;
}

.area-list {
  list-style: none;
  padding: 0;
}

.area-list li {
  font-size: 0.88rem;
  color: var(--text-mid);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.6;
}

.area-list li:last-child {
  border-bottom: none;
  color: var(--text-light);
  font-size: 0.82rem;
  font-style: italic;
}

.area-note {
  font-size: 0.8rem;
  color: var(--text-light);
  text-align: center;
}

/* ========== CASES ========== */
.cases {
  background: var(--bg-warm);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.case-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.3s;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.10);
}

.case-icon {
  font-size: 2.4rem;
  display: block;
  margin-bottom: 12px;
}

.case-item {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.5;
}

.case-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-mid);
  margin-bottom: 8px;
}

.case-price span {
  font-size: 2rem;
  font-weight: 900;
  color: var(--red);
}

.case-note {
  font-size: 0.78rem;
  color: var(--text-light);
}

.cases-note {
  font-size: 0.8rem;
  color: var(--text-light);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

/* ========== MOBILE CTA BAR ========== */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: var(--white);
  border-top: 2px solid var(--border);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.12);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.mobile-cta-bar.is-visible {
  transform: translateY(0);
}

.mobile-cta-bar__line,
.mobile-cta-bar__tel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.mobile-cta-bar__line {
  background: var(--line-green);
  color: var(--white);
}

.mobile-cta-bar__tel {
  background: var(--red);
  color: var(--white);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .flow-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .flow-steps::before {
    display: none;
  }

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

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

  .stat-item:nth-child(2) {
    border-right: none;
  }

  .stat-item:nth-child(1),
  .stat-item:nth-child(2) {
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }

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

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

@media (max-width: 640px) {
  section {
    padding: 72px 20px;
  }

  .header-inner {
    padding: 12px 20px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .header-tel {
    display: none;
  }

  .hero {
    padding: 100px 20px 80px;
  }

  .flow-steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-cta {
    padding: 72px 20px;
  }

  .footer-cta-tel {
    font-size: 1.6rem;
  }

  .stats {
    padding: 40px 20px;
  }

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

  .float-line-btn {
    display: none;
  }

  /* スマホCTAバー表示 */
  .mobile-cta-bar {
    display: flex;
  }

  /* バー分の余白 */
  .footer {
    padding-bottom: 80px;
  }

  .area-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cases-grid {
    grid-template-columns: 1fr 1fr;
  }
}
