/* ============================================
   はじめ不動産 LP — Premium Design System
   SBMシート準拠 / SEO最適化 / モバイルファースト
   ============================================ */

/* --- Design Tokens --- */
:root {
  --primary: #1565C0;
  --primary-dark: #0D47A1;
  --primary-light: #E3F2FD;
  --accent: #FF8A00;
  --accent-dark: #E67700;
  --accent-light: #FFF3E0;
  --danger: #D84315;
  --success: #2E7D32;
  --gold: #FFC107;
  --text: #1a1a2e;
  --text-light: #555;
  --text-muted: #888;
  --bg: #ffffff;
  --bg-light: #F8FAFB;
  --bg-dark: #0D1B2A;
  --border: #E8ECF0;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
  --shadow-btn: 0 6px 20px rgba(255,138,0,0.35);
  --radius: 16px;
  --radius-sm: 8px;
  --radius-pill: 100px;
  --font-main: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  color: var(--text);
  line-height: 1.8;
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }
ul { list-style: none; }
address { font-style: normal; }
strong { font-weight: 700; }

/* --- Layout --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.text-center { text-align: center; }
.text-white { color: #fff !important; }
.text-orange { color: var(--accent); }
.text-blue { color: var(--primary); }
.text-accent { color: var(--accent); font-weight: 900; }
.bg-light { background: var(--bg-light); }
.sp-only { display: none; }

/* --- Section Headers --- */
.section-sub {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.section-sub.white { color: rgba(255,255,255,0.7); }
.section-title {
  font-family: var(--font-accent);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 16px;
  color: var(--text);
}
.section-title strong { color: var(--primary); }
.section-lead {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 12px;
}
.section-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-main);
  font-weight: 700;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  text-align: center;
}
.btn small { font-size: 0.75rem; font-weight: 500; opacity: 0.9; }
.btn .arrow { margin-left: 4px; transition: var(--transition); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-sm { padding: 8px 20px; font-size: 0.85rem; }
.btn-large { padding: 16px 36px; font-size: 1.1rem; min-width: 280px; }
.btn-orange {
  background: linear-gradient(135deg, #FF8A00, #FF6D00);
  color: #fff;
}
.btn-orange:hover {
  background: linear-gradient(135deg, #FF6D00, #E65100);
  color: #fff;
  transform: translateY(-2px);
}
.shadow-btn { box-shadow: var(--shadow-btn); }
.shadow-btn:hover { box-shadow: 0 8px 28px rgba(255,138,0,0.45); }
.btn-outline-white {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(4px);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.25);
  color: #fff;
  transform: translateY(-2px);
}
.btn-orange-mobile {
  background: linear-gradient(135deg, #FF8A00, #FF6D00);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  display: block;
  margin-top: 10px;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
  transition: var(--transition);
}
.header-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo a { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 900;
  font-size: 1.2rem;
  border-radius: 10px;
}
.logo-text {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}
.nav-desktop ul { display: flex; gap: 24px; }
.nav-desktop a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-light);
  position: relative;
}
.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}
.nav-desktop a:hover::after { width: 100%; }
.nav-desktop a:hover { color: var(--primary); }
.header-cta { display: flex; }
.hamburger { display: none; }

/* --- Mobile Menu --- */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  width: 100%;
  background: #fff;
  z-index: 999;
  padding: 20px;
  box-shadow: var(--shadow-lg);
}
.mobile-menu.active { display: block; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 16px; }
.mobile-menu a {
  display: block;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  border-radius: var(--radius-sm);
}
.mobile-menu a:hover { background: var(--bg-light); }

/* --- Hero --- */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0D47A1, #1565C0 40%, #1976D2 70%, #42A5F5);
  color: #fff;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,138,0,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { display: flex; align-items: center; gap: 40px; position: relative; z-index: 1; }
.hero-content { flex: 1; }
.hero-visual { flex: 0 0 300px; position: relative; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.badge-pill {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
}
.badge-white { background: rgba(255,255,255,0.2); color: #fff; backdrop-filter: blur(4px); }
.badge-gold { background: var(--gold); color: #333; box-shadow: 0 2px 8px rgba(255,193,7,0.3); }
.hero-title {
  font-family: var(--font-accent);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 16px;
}
.hero-desc {
  font-size: 1.05rem;
  opacity: 0.92;
  line-height: 1.7;
  margin-bottom: 28px;
}
.hero-cta-group { display: flex; flex-wrap: wrap; gap: 12px; }
.tel-btn .tel-time { font-size: 0.8rem; opacity: 0.8; }
.hero-stats-float {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stat-item {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: center;
}
.stat-num { display: block; font-size: 2rem; font-weight: 900; color: var(--gold); }
.stat-label { display: block; font-size: 0.85rem; opacity: 0.9; margin-top: 4px; }
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: 60px; }

/* --- Summary Diagram --- */
.summary-diagram { margin-top: 40px; }
.diagram-items { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.d-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 2px solid var(--border);
}
.d-icon { font-size: 2rem; }
.d-item span { font-size: 0.85rem; font-weight: 700; }
.d-plus { font-size: 1.5rem; font-weight: 900; color: var(--accent); }
.diagram-arrow {
  font-weight: 900;
  color: var(--primary);
  font-size: 1.1rem;
  margin: 16px 0;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}
.diagram-result {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 28px 32px;
  border-radius: var(--radius);
  max-width: 600px;
  margin: 0 auto;
}
.diagram-result h3 { font-size: 1.2rem; margin-bottom: 8px; }
.diagram-result strong { color: var(--gold); }
.diagram-result p { opacity: 0.92; font-size: 0.95rem; margin: 0; }

/* --- Problems Grid --- */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0;
}
.problem-card {
  background: #fff;
  padding: 28px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: var(--transition);
}
.problem-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.problem-icon { font-size: 2.5rem; margin-bottom: 12px; }
.problem-card h3 { font-size: 0.95rem; line-height: 1.6; font-weight: 500; }
.problem-card strong { color: var(--danger); font-weight: 700; }

.solution-bridge { margin-top: 40px; }
.arrow-down {
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 20px solid var(--accent);
  margin: 0 auto 16px;
  animation: bounce 2s infinite;
}
.bridge-title {
  font-family: var(--font-accent);
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.5;
}

/* --- Services --- */
.services { background: var(--bg-light); }
.services-list { display: flex; flex-direction: column; gap: 48px; margin-top: 48px; }
.service-item {
  display: flex;
  align-items: stretch;
  gap: 40px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.service-item.reverse { flex-direction: row-reverse; }
.service-content { flex: 1; padding: 36px; }
.service-number {
  display: inline-block;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: 8px;
}
.service-number.orange { color: var(--accent); }
.service-name {
  font-family: var(--font-accent);
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 16px;
  color: var(--text);
}
.badge-inline {
  display: inline-block;
  background: var(--danger);
  color: #fff;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  vertical-align: middle;
}
.service-desc { color: var(--text-light); margin-bottom: 16px; line-height: 1.8; }
.service-note { font-size: 0.88rem; color: var(--text-muted); margin-top: 12px; }
.service-points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.service-points .point {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}
.service-visual {
  flex: 0 0 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bg-blue-light { background: var(--primary-light); }
.bg-orange-light { background: var(--accent-light); }
.icon-wrap { font-size: 5rem; }
.icon-wrap.orange { color: var(--accent); }

/* --- Comparison Box (inside service) --- */
.comparison-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
}
.compare-col {
  padding: 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.7;
}
.compare-col h4 { font-size: 0.95rem; margin-bottom: 10px; }
.compare-col ul { padding-left: 18px; }
.compare-col li { margin-bottom: 6px; list-style: disc; }
.compare-other { background: #FFF3E0; border-left: 4px solid var(--accent); }
.compare-other h4 { color: var(--danger); }
.compare-us { background: #E3F2FD; border-left: 4px solid var(--primary); }
.compare-us h4 { color: var(--primary-dark); }

/* --- Info Box --- */
.info-box {
  padding: 20px;
  border-radius: var(--radius-sm);
  margin: 16px 0;
  font-size: 0.92rem;
  line-height: 1.7;
}
.info-box.blue {
  background: #E3F2FD;
  border-left: 4px solid var(--primary);
}
.info-box h4 { font-size: 0.95rem; color: var(--primary-dark); margin-bottom: 8px; }
.info-box p { color: var(--text-light); margin: 0; }

/* --- Offer / Comparison Table --- */
.comparison-table-wrap {
  max-width: 800px;
  margin: 40px auto 0;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 0.9rem;
}
.comparison-table th, .comparison-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
}
.comparison-table thead th {
  background: #F0F4F8;
  font-weight: 700;
  font-size: 0.85rem;
}
.comparison-table thead .col-best {
  background: #FFF8F0;
  color: var(--danger);
  border-bottom: 3px solid var(--accent);
}
.comparison-table thead .col-standard {
  background: #E3F2FD;
  color: var(--primary);
  border-bottom: 3px solid var(--primary);
}
.comparison-table td.col-best { background: #FFFDF5; }
.comparison-table td.col-standard { background: #F8FBFF; }
.comparison-table td.highlight { font-weight: 700; color: var(--danger); }
.comparison-table td small, .comparison-table th small {
  display: block;
  font-size: 0.75em;
  font-weight: normal;
  color: var(--text-muted);
}
.total-row td { padding: 16px 10px; border-top: 3px solid var(--border); border-bottom: none; font-weight: 700; }
.total-other { color: #C62828; font-size: 1.1rem; }
.total-best { color: var(--danger); font-size: 1.1rem; border-top-color: var(--accent) !important; }
.total-standard { color: var(--primary); font-size: 1.1rem; border-top-color: var(--primary) !important; }
.table-note { font-size: 0.8rem; color: var(--text-muted); text-align: center; margin-top: 12px; }

/* --- Structure Diagram --- */
.structure-diagram {
  max-width: 600px;
  margin: 48px auto 0;
  text-align: center;
  padding: 32px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 2px dashed var(--border);
}
.structure-diagram h3 { font-size: 1.2rem; color: var(--primary-dark); margin-bottom: 20px; }
.structure-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 1.1rem;
  font-weight: 700;
}
.flow-item { color: var(--primary); }
.flow-arrow { color: var(--accent); font-size: 1.3rem; }
.structure-diagram p { color: var(--text-light); font-size: 0.95rem; }

/* --- Reasons (Dark Section) --- */
.reasons { position: relative; }
.reasons-bg {
  background: linear-gradient(135deg, #0D1B2A 0%, #1B2838 50%, #0D47A1 100%);
  color: #fff;
  padding: 80px 0;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.reason-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: var(--transition);
}
.reason-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}
.reason-num {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.6;
  line-height: 1;
  margin-bottom: 12px;
  display: block;
}
.reason-title {
  font-family: var(--font-accent);
  font-size: 1.2rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.5;
}
.reason-desc { color: rgba(255,255,255,0.8); font-size: 0.92rem; line-height: 1.7; }

.staff-profile {
  margin-top: 16px;
  padding: 16px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 14px;
}
.staff-icon {
  font-size: 2.2rem;
  background: rgba(255,255,255,0.1);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.staff-info h4 { color: var(--gold); font-size: 0.95rem; margin-bottom: 4px; }
.staff-info p { font-size: 0.82rem; color: rgba(255,255,255,0.7); margin: 0; }

.philosophy-box {
  margin-top: 16px;
  padding: 16px;
  background: rgba(255,138,0,0.1);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.philosophy-quote { font-style: italic; color: rgba(255,255,255,0.9); font-size: 0.9rem; margin-bottom: 6px; }
.philosophy-label { font-size: 0.78rem; color: var(--accent); }

.corporate-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.corporate-points span {
  background: rgba(255,255,255,0.1);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85);
}

/* --- Message --- */
.message-inner {
  background: #fff;
  border-radius: 20px;
  padding: 48px;
  display: flex;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow);
}
.message-img { flex: 0 0 200px; text-align: center; }
.message-photo {
  width: 160px;
  height: 160px;
  background: linear-gradient(135deg, var(--primary-light), var(--border));
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}
.message-name { font-weight: 700; color: var(--primary-dark); margin-top: 12px; font-size: 1.1rem; }
.message-title-sub { font-size: 0.85rem; color: var(--text-muted); }
.message-text { flex: 1; }
.message-text h2 {
  font-family: var(--font-accent);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.5;
}
.message-text p { color: var(--text-light); margin-bottom: 14px; }

/* --- Warning --- */
.warning {
  background: var(--bg-dark);
  color: #fff;
}
.warning-inner {
  max-width: 860px;
  margin: 0 auto;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 40px;
  background: rgba(255,255,255,0.04);
}
.warning h2 {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 24px;
}
.warning-icon { font-size: 1.8rem; vertical-align: middle; }
.warning p { color: #E8F4FA; line-height: 1.8; margin-bottom: 16px; font-size: 1rem; }
.warning-tip {
  background: rgba(255,138,0,0.12);
  border-left: 4px solid var(--accent);
  padding: 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 20px;
}
.warning-tip p { margin: 0; font-weight: 600; color: #fff; }

/* --- Voice --- */
.voice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.voice-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--primary);
  transition: var(--transition);
}
.voice-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.voice-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--primary-light);
  color: var(--primary-dark);
}
.tag-save { background: #FFF3E0; color: var(--danger); }
.voice-quote { margin: 0; }
.voice-quote p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.7;
  position: relative;
  padding-left: 0;
}

/* --- Mid CTA --- */
.mid-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  text-align: center;
}
.mid-cta h2 { font-family: var(--font-accent); font-size: 1.6rem; font-weight: 900; margin-bottom: 12px; }
.mid-cta p { opacity: 0.9; margin-bottom: 24px; }

/* --- FAQ --- */
.faq-list { max-width: 800px; margin: 40px auto 0; }
.faq-item {
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  overflow: hidden;
}
.faq-q {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--text);
  list-style: none;
  transition: var(--transition);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { color: var(--primary); }
.q-mark {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  border-radius: 50%;
  font-size: 0.9rem;
}
.faq-a {
  display: flex;
  gap: 12px;
  padding: 0 24px 20px;
  color: var(--text-light);
  line-height: 1.7;
}
.a-mark {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  border-radius: 50%;
  font-size: 0.9rem;
}
.faq-a p { margin: 0; }

/* --- Contact --- */
.contact {
  background: linear-gradient(135deg, var(--primary-dark), #0D1B2A);
  color: #fff;
}
.contact-box {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 48px;
  max-width: 780px;
  margin: 0 auto;
}
.contact-title {
  font-family: var(--font-accent);
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
}
.contact-header p { color: rgba(255,255,255,0.8); margin-bottom: 28px; }
.contact-methods { display: flex; gap: 16px; margin-bottom: 28px; }
.contact-btn {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: var(--transition);
}
.contact-btn:hover { transform: translateY(-3px); }
.method-line { background: #06C755; color: #fff; }
.method-line:hover { background: #05B04C; color: #fff; }
.method-form { background: var(--primary); color: #fff; }
.method-form:hover { background: #1258A0; color: #fff; }
.method-icon { font-size: 2rem; }
.method-text small { display: block; font-size: 0.78rem; color: rgba(255,255,255,0.8); font-weight: 600; margin-bottom: 4px; }
.method-main { font-size: 1.15rem; font-weight: 700; }
.contact-tel { margin-top: 20px; }
.contact-tel p { font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.tel-number { font-size: 1.5rem; font-weight: 900; color: #fff; }
.tel-number:hover { color: var(--gold); }
.tel-time { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-top: 4px; }

/* --- Flow --- */
.flow-steps { display: flex; align-items: flex-start; justify-content: center; gap: 0; margin-top: 48px; }
.flow-step {
  text-align: center;
  flex: 1;
  max-width: 280px;
  padding: 0 20px;
}
.step-num {
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 1.5rem;
  font-weight: 900;
  border-radius: 50%;
  margin-bottom: 16px;
}
.flow-step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; line-height: 1.5; }
.flow-step p { font-size: 0.88rem; color: var(--text-light); }
.flow-connector {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin-top: 28px;
  flex-shrink: 0;
}

/* --- Company --- */
.company-inner {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  display: flex;
  gap: 32px;
  box-shadow: var(--shadow);
}
.company-map { flex: 1; min-width: 0; }
.company-details { flex: 1; min-width: 0; }
.company-details h3 {
  font-size: 1.4rem;
  color: var(--primary-dark);
  border-bottom: 3px solid var(--accent);
  display: inline-block;
  padding-bottom: 8px;
  margin-bottom: 20px;
}
.company-table { width: 100%; border-collapse: collapse; }
.company-table th, .company-table td { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.company-table th { text-align: left; width: 100px; color: var(--text-muted); font-weight: 500; }
.company-table td a { font-weight: 700; }

/* --- Footer --- */
.footer { background: #0A1628; color: rgba(255,255,255,0.7); padding: 48px 0 0; }
.footer-container { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; padding-bottom: 32px; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 8px;
}
.footer-slogan {
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}
.footer-address { font-size: 0.85rem; line-height: 1.7; }
.footer-address a { color: rgba(255,255,255,0.8); }
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.88rem; color: rgba(255,255,255,0.6); }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  padding: 16px 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* --- Floating CTA (Mobile) --- */
.floating-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 900;
  padding: 8px;
  gap: 8px;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
}
.float-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}
.float-line { background: #06C755; color: #fff; }
.float-tel { background: var(--primary); color: #fff; }

/* --- Fade In Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .card-grid, .voice-grid { grid-template-columns: repeat(2, 1fr); }
  .problems-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .sp-only { display: inline; }
  .section { padding: 60px 0; }

  /* Header */
  .nav-desktop, .header-cta { display: none; }
  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
  }
  .hamburger span { display: block; width: 24px; height: 2px; background: var(--text); transition: var(--transition); }
  .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); }

  /* Hero */
  .hero { padding: 100px 0 60px; }
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-visual { display: none; }
  .hero-badges { justify-content: center; }
  .hero-cta-group { flex-direction: column; align-items: center; }
  .btn-large { min-width: 100%; max-width: 360px; }

  /* Grids */
  .problems-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .voice-grid { grid-template-columns: 1fr; }

  /* Services */
  .service-item, .service-item.reverse { flex-direction: column; }
  .service-visual { flex: none; height: 120px; }
  .service-content { padding: 24px; }
  .comparison-box { grid-template-columns: 1fr; }

  /* Message */
  .message-inner { flex-direction: column; padding: 32px 24px; text-align: center; }
  .message-img { flex: none; }

  /* Contact */
  .contact-box { padding: 32px 20px; }
  .contact-methods { flex-direction: column; }

  /* Company */
  .company-inner { flex-direction: column; padding: 24px; }

  /* Flow */
  .flow-steps { flex-direction: column; align-items: center; }
  .flow-connector { width: 2px; height: 40px; background: linear-gradient(180deg, var(--primary), var(--accent)); }

  /* Footer */
  .footer-container { flex-direction: column; gap: 24px; }

  /* Floating CTA */
  .floating-cta { display: flex; }
  body { padding-bottom: 72px; }

  /* Comparison Table */
  .comparison-table { font-size: 0.8rem; }
  .comparison-table th, .comparison-table td { padding: 8px 6px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem; }
  .section-title { font-size: 1.4rem; }
  .d-item { padding: 12px 14px; }
  .d-icon { font-size: 1.5rem; }
  .d-item span { font-size: 0.75rem; }
  .reason-card { padding: 24px 18px; }
}

/* ============================================
   NEW: Additional Styles for v2 Update
   ============================================ */

/* --- Fee Explanation --- */
.fee-explanation {
  margin-top: 48px;
  padding: 40px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.fee-explanation > h3 {
  font-family: var(--font-accent);
  font-size: 1.4rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 28px;
  color: var(--text);
}
.fee-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.fee-card {
  padding: 28px;
  border-radius: var(--radius);
}
.fee-trap {
  background: #FFF5F5;
  border: 2px solid #FFCDD2;
}
.fee-fair {
  background: #E8F5E9;
  border: 2px solid #A5D6A7;
}
.fee-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.5;
}
.fee-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 12px;
  line-height: 1.7;
}
.fee-card ul {
  padding-left: 0;
}
.fee-card li {
  font-size: 0.9rem;
  color: var(--text-light);
  padding: 6px 0 6px 20px;
  position: relative;
  line-height: 1.6;
}
.fee-card li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: var(--text-muted);
  font-weight: bold;
}
.fee-trap li::before { color: var(--danger); }
.fee-fair li::before { color: var(--success); }

/* --- Other Costs --- */
.other-costs {
  margin-top: 28px;
  padding: 24px 28px;
  background: var(--primary-light);
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
}
.other-costs h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary-dark);
}
.other-costs p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.7;
}

/* --- Warning Structure --- */
.warning-structure {
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 24px;
  margin: 20px 0;
  border-left: 4px solid var(--gold);
}
.warning-structure h3 {
  font-size: 1.15rem;
  color: var(--gold);
  margin-bottom: 12px;
}
.warning-structure p {
  color: #E8F4FA;
  line-height: 1.8;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

/* --- Text Utilities --- */
.text-danger { color: var(--danger) !important; font-weight: 700; }
.text-gold { color: var(--gold) !important; }
.text-white-title { color: #fff !important; }
.text-white-title strong { color: var(--gold); }

/* --- Representative Image --- */
.message-photo-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  border: 4px solid var(--primary-light);
}

/* --- Mid CTA Buttons --- */
.mid-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.mid-cta .btn-outline-white {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.6);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
}
.mid-cta .btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

/* --- Contact 3-column --- */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.method-tel {
  background: linear-gradient(135deg, #2E7D32, #1B5E20);
}
.method-tel:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(46,125,50,0.3);
}

/* --- Comparison Table A社 --- */
.comparison-table thead th small {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.85;
  margin-top: 2px;
}

/* --- Responsive Overrides for new elements --- */
@media (max-width: 768px) {
  .fee-grid { grid-template-columns: 1fr; }
  .contact-methods { grid-template-columns: 1fr; }
  .mid-cta-buttons { flex-direction: column; align-items: center; }
  .mid-cta-buttons .btn { width: 100%; max-width: 400px; }
  .fee-explanation { padding: 24px 18px; }
}

/* --- Flow Form Section --- */
.flow-form-section {
  margin-top: 48px;
  padding: 40px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form-header h3 {
  font-family: var(--font-accent);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 8px;
}
.form-header p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 24px;
}
.form-embed {
  max-width: 680px;
  margin: 0 auto;
}
.form-embed iframe {
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
@media (max-width: 768px) {
  .flow-form-section { padding: 24px 16px; }
  .form-embed iframe { height: 700px; }
}
