/* ==========================================================================
   Car Life Planning Office — Stylesheet
   Independent advisory tone. Navy primary with warm-gold accent.
   ========================================================================== */

:root {
  /* Surface */
  --bg: #FFFFFF;
  --bg-soft: #F5F8FA;
  --bg-alt: #EAEFF1;
  --bg-card: #FFFFFF;
  --bg-blue-soft: #ECF1F8;
  --bg-blue-softer: #F5F8FC;
  --bg-dark: #0E1A2E;
  --bg-dark-soft: #14233D;

  /* Text */
  --text: #171523;
  --text-strong: #0F0E1A;
  --text-muted: #42515B;
  --text-mute2: #6E7B86;
  --text-on-dark: #FFFFFF;
  --text-on-dark-muted: rgba(255, 255, 255, 0.66);

  /* Lines */
  --border: #E1E7EB;
  --border-strong: #CDD1D4;
  --border-on-dark: rgba(255, 255, 255, 0.14);

  /* Brand — independent advisory navy */
  --primary: #1A3A5C;
  --primary-dark: #0E2540;
  --primary-soft: #E6ECF4;
  --primary-glow: rgba(26, 58, 92, 0.28);

  /* Accent — warm gold (used sparingly) */
  --accent: #B89968;
  --accent-dark: #9A7D52;
  --accent-soft: #F4ECDF;

  /* Semantic checkmark green (sparingly used) */
  --ok: #1FA84C;

  --shadow-sm: 0 1px 2px rgba(14, 26, 46, 0.04), 0 4px 14px rgba(14, 26, 46, 0.05);
  --shadow: 0 2px 6px rgba(14, 26, 46, 0.06), 0 12px 32px rgba(14, 26, 46, 0.10);
  --shadow-hover: 0 4px 10px rgba(14, 26, 46, 0.08), 0 20px 48px rgba(14, 26, 46, 0.14);
  --shadow-blue: 0 8px 24px rgba(26, 58, 92, 0.32);
  --shadow-red:  0 8px 24px rgba(26, 58, 92, 0.30);

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --maxw: 1200px;
  --maxw-narrow: 760px;

  --font-jp: 'Zen Maru Gothic', 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Yu Gothic Medium', 'Yu Gothic', sans-serif;
  --font-en: 'Montserrat', 'Zen Maru Gothic', sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-jp);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
  background: var(--bg);
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}
p { margin: 0; }

::selection { background: var(--primary); color: #fff; }

/* Layout */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: var(--maxw-narrow); }

.section {
  padding: 110px 0;
  position: relative;
}
@media (max-width: 768px) {
  .section { padding: 72px 0; }
}

.section-head { margin-bottom: 64px; }
.section-head.center { text-align: center; }
.section-head .eyebrow { margin-bottom: 14px; }

.section-title {
  font-family: var(--font-jp);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.35;
  color: var(--text-strong);
}
.section-lead {
  margin-top: 22px;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.95;
}

/* English eyebrow with leading dot — typical Studio.Design accent */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}
.section-head.center .eyebrow { justify-content: center; }

.accent { color: var(--primary); }
.accent-red { color: var(--accent); }

.pc-only { display: inline; }
.sp-only { display: none; }
@media (max-width: 640px) {
  .pc-only { display: none; }
  .sp-only { display: inline; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
  text-align: center;
  position: relative;
}
.btn-sm { padding: 10px 22px; font-size: 0.85rem; border-width: 1.5px; }
.btn-lg { padding: 18px 40px; font-size: 1.02rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: var(--shadow-red);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(26, 58, 92, 0.45);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: var(--shadow-blue);
}
.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(184, 153, 104, 0.45);
}

.btn-ghost {
  background: #fff;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
  transform: translateY(-2px);
}

.btn-arrow::after {
  content: '→';
  font-family: var(--font-en);
  font-weight: 600;
  margin-left: 0.3em;
  transition: transform 0.3s var(--ease);
}
.btn-arrow:hover::after { transform: translateX(4px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 28px;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
  border-bottom: 2px solid currentColor;
  padding-bottom: 3px;
  transition: gap 0.3s var(--ease), color 0.2s;
}
.link-arrow:hover { gap: 0.85em; color: var(--primary-dark); }

.link-underline { color: var(--primary); border-bottom: 1px solid currentColor; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 rgba(23, 21, 35, 0.04), 0 4px 14px rgba(23, 21, 35, 0.04);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 80px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 12px rgba(26, 58, 92, 0.28);
}
.brand-name { display: flex; flex-direction: column; line-height: 1.2; }
.brand-en {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-strong);
}
.brand-jp {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  font-weight: 500;
}

.nav-list {
  display: flex;
  gap: 30px;
  font-size: 0.9rem;
  font-weight: 500;
}
.nav-list a {
  color: var(--text);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav-list a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s var(--ease);
}
.nav-list a:hover { color: var(--primary); }
.nav-list a:hover::after { width: 100%; }

.header-cta { display: inline-flex; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 42px;
  height: 42px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 49;
  padding: 24px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a {
  display: block;
  padding: 16px 4px;
  border-bottom: 1px solid var(--border);
  font-size: 0.98rem;
  font-weight: 500;
}
.mobile-nav .btn { margin-top: 16px; border-bottom: 0; }

@media (max-width: 960px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .header-inner { height: 72px; }
  .mobile-nav { top: 72px; max-height: calc(100vh - 72px); }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: 88px 0 120px;
  background:
    radial-gradient(ellipse 60% 50% at 90% 0%,  rgba(26, 58, 92, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(26, 58, 92, 0.10) 0%, transparent 60%),
    linear-gradient(165deg, #FFFFFF 0%, #F5F8FC 50%, #ECF1F8 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -180px;
  right: -120px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(26, 58, 92, 0.20) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(20px);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(180deg, transparent 0%, var(--bg) 100%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-copy { max-width: 620px; }
.hero-title {
  font-family: var(--font-jp);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.22;
  letter-spacing: -0.04em;
  margin: 18px 0 30px;
  font-weight: 900;
  color: var(--text-strong);
}
.hero-title .accent {
  color: var(--primary);
  position: relative;
  display: inline-block;
}
.hero-title .accent::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -6px;
  height: 8px;
  background: var(--primary-soft);
  border-radius: 8px;
  z-index: -1;
}
.hero-lead {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 2.05;
  margin-bottom: 40px;
  font-weight: 500;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 52px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-meta li {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.5;
}
.hero-meta strong {
  display: block;
  font-family: var(--font-en);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
  line-height: 1;
}

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 3;
}
.hero-photo {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: 0 28px 70px rgba(14, 37, 64, 0.22), 0 6px 16px rgba(23, 21, 35, 0.06);
  background: var(--bg-alt);
}
.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 21, 35, 0) 60%, rgba(23, 21, 35, 0.18) 100%);
  pointer-events: none;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease);
}
.hero-visual:hover .hero-photo img { transform: scale(1.04); }

.hero-badge {
  position: absolute;
  left: -22px;
  bottom: 28px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 26px 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 14px 36px rgba(23, 21, 35, 0.18);
}
.hero-badge-eyebrow {
  font-family: var(--font-en);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 4px;
}
.hero-badge-num {
  font-family: var(--font-en);
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--text-strong);
  line-height: 1;
  letter-spacing: -0.03em;
}
.hero-badge-num small {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-left: 4px;
  font-weight: 600;
}
.hero-badge-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-top: 6px;
  font-weight: 500;
}

.hero-tag {
  position: absolute;
  top: 24px;
  right: -16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-red);
}
.hero-tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}

@media (max-width: 960px) {
  .hero { padding: 56px 0 80px; }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { aspect-ratio: 4 / 3; max-width: 560px; margin: 0 auto; width: 100%; }
  .hero-badge { left: 16px; bottom: 16px; padding: 14px 20px; }
  .hero-badge-num { font-size: 1.85rem; }
  .hero-tag { right: 16px; top: 16px; }
}
@media (max-width: 480px) {
  .hero-meta { gap: 28px; }
  .hero-meta li { font-size: 0.92rem; }
  .hero-meta strong { font-size: 1.75rem; }
  .hero-badge { padding: 12px 18px 10px; }
  .hero-badge-num { font-size: 1.6rem; }
  .hero-badge-label { font-size: 0.7rem; }
  .hero-tag { font-size: 0.72rem; padding: 8px 14px; }
}

/* ==========================================================================
   Pain Points
   ========================================================================== */
.pain { background: var(--bg-soft); }
.pain-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.pain-list li {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.pain-list li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--primary-soft);
}
.pain-num {
  flex-shrink: 0;
  font-family: var(--font-en);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
  line-height: 1;
}
.pain-list p {
  font-size: 0.96rem;
  color: var(--text);
  line-height: 1.85;
  font-weight: 500;
}
.pain-bridge {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  line-height: 1.7;
}
@media (max-width: 768px) {
  .pain-list { grid-template-columns: 1fr; gap: 14px; }
  .pain-list li { padding: 22px; gap: 18px; }
  .pain-num { font-size: 1.7rem; }
}

/* ==========================================================================
   About
   ========================================================================== */
.about {
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--bg-blue-softer) 100%);
}
.about-inner {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-text p {
  margin-top: 22px;
  color: var(--text);
  line-height: 2.05;
  font-weight: 500;
  font-size: 0.98rem;
}
.about-text strong {
  color: var(--text-strong);
  font-weight: 700;
  background: linear-gradient(transparent 60%, var(--primary-soft) 60%);
  padding: 0 2px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  background: transparent;
}
.stat {
  background: var(--bg-card);
  padding: 36px 24px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.stat:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.stat-num {
  display: block;
  font-family: var(--font-en);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.stat-num small {
  font-size: 1rem;
  color: var(--text-muted);
  margin-left: 4px;
  font-weight: 600;
}
.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  font-weight: 500;
}

@media (max-width: 880px) {
  .about-inner { grid-template-columns: 1fr; gap: 44px; }
}

/* ==========================================================================
   Services
   ========================================================================== */
.services { background: var(--bg); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  padding: 38px 28px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-soft);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 22px;
  transition: background 0.3s, color 0.3s;
}
.service-card:hover .service-icon {
  background: var(--primary);
  color: #fff;
}
.service-icon svg { width: 30px; height: 30px; }
.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 14px;
  letter-spacing: -0.03em;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text-strong);
}
.service-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.85;
  font-weight: 500;
}
@media (max-width: 880px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Strengths
   ========================================================================== */
.strengths {
  background: var(--bg-blue-soft);
  position: relative;
  overflow: hidden;
}
.strengths::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -120px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(26, 58, 92, 0.16) 0%, transparent 70%);
  pointer-events: none;
}
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
  z-index: 1;
}
.strength {
  padding: 44px 32px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.strength:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.strength::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 5px;
  height: 100%;
  background: var(--primary);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}
.strength:hover::before { transform: scaleY(1); }
.strength-num {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-en);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 18px;
  position: relative;
}
.strength-num::before {
  content: 'POINT';
  position: absolute;
  top: -14px;
  left: 0;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: var(--accent);
}
.strength h3 {
  font-size: 1.25rem;
  line-height: 1.55;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--text-strong);
}
.strength p {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.95;
  font-weight: 500;
}
@media (max-width: 880px) {
  .strengths-grid { grid-template-columns: 1fr; gap: 18px; }
}

/* ==========================================================================
   Flow
   ========================================================================== */
.flow { background: var(--bg); }
.flow-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.flow-step {
  position: relative;
  padding: 32px 32px 30px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease);
}
.flow-step:hover {
  border-color: var(--primary-soft);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.flow-num {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  padding: 6px 16px;
  background: var(--primary);
  border-radius: 999px;
  margin-bottom: 18px;
  box-shadow: 0 4px 10px rgba(26, 58, 92, 0.28);
}
.flow-step h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-strong);
}
.flow-step p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.95;
  font-weight: 500;
}
.flow-step strong { color: var(--primary); font-weight: 700; }
@media (max-width: 768px) { .flow-list { grid-template-columns: 1fr; } }

/* ==========================================================================
   Pricing
   ========================================================================== */
.price { background: var(--bg-soft); }
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.price-card {
  position: relative;
  padding: 44px 32px 36px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.price-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.price-card-featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, #FFFFFF 0%, #F5F8FC 100%);
  transform: translateY(-14px);
  box-shadow: 0 28px 60px rgba(26, 58, 92, 0.22), 0 6px 14px rgba(26, 58, 92, 0.10);
}
.price-card-featured:hover {
  transform: translateY(-18px);
  box-shadow: 0 32px 70px rgba(26, 58, 92, 0.30);
}
.price-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 999px;
  box-shadow: var(--shadow-red);
}
.price-name {
  font-family: var(--font-en);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text-strong);
}
.price-desc {
  margin-top: 6px;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}
.price-amount {
  margin: 26px 0 28px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border);
}
.price-num {
  font-family: var(--font-en);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-strong);
}
.price-amount small { font-size: 0.85rem; color: var(--text-muted); margin-left: 6px; }
.pro-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 0 0 22px;
  padding: 12px;
  background: var(--primary-soft);
  border-radius: 14px;
}
.pro-tier {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  background: #fff;
  border-radius: 10px;
  text-align: center;
  border: 1.5px solid transparent;
}
.pro-tier strong {
  font-family: var(--font-en);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
}
.pro-tier-price {
  display: block;
  font-family: var(--font-en);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-strong);
  margin-top: 4px;
  letter-spacing: -0.02em;
}
.pro-tier-mid {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(26, 58, 92, 0.28);
}
.pro-tier-mid strong { color: rgba(255, 255, 255, 0.78); }
.pro-tier-mid .pro-tier-price { color: #fff; }

.price-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
  flex-grow: 1;
}
.price-features li {
  font-size: 0.92rem;
  color: var(--text);
  padding-left: 28px;
  position: relative;
  line-height: 1.7;
  font-weight: 500;
}
.price-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-soft);
}
.price-features li::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 12px;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}
.price-note {
  text-align: center;
  margin-top: 36px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}
@media (max-width: 880px) {
  .price-grid { grid-template-columns: 1fr; gap: 20px; }
  .price-card-featured { transform: none; }
  .price-card-featured:hover { transform: translateY(-3px); }
}

/* ==========================================================================
   Voice
   ========================================================================== */
.voice { background: var(--bg); }
.voice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.voice-card {
  padding: 36px 30px 28px;
  background: var(--bg-blue-softer);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.voice-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.voice-card::before {
  content: '“';
  position: absolute;
  top: 12px;
  left: 22px;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 4.2rem;
  color: var(--primary);
  line-height: 1;
  opacity: 0.30;
  font-weight: 700;
}
.voice-quote {
  font-size: 0.96rem;
  line-height: 2;
  margin-bottom: 24px;
  position: relative;
  padding-top: 16px;
  font-weight: 500;
  color: var(--text);
}
.voice-meta {
  padding-top: 22px;
  border-top: 1px solid var(--border-strong);
}
.voice-name {
  display: block;
  font-weight: 700;
  font-size: 0.96rem;
  margin-bottom: 4px;
  color: var(--text-strong);
}
.voice-attr {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}
@media (max-width: 880px) {
  .voice-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { background: var(--bg-soft); }
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.faq-item[open] {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 60px 24px 64px;
  font-weight: 700;
  font-size: 1rem;
  position: relative;
  letter-spacing: -0.02em;
  transition: color 0.2s;
  color: var(--text-strong);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: 'Q';
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-en);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0;
}
.faq-item summary:hover { color: var(--primary); }
.faq-item summary::after {
  content: '';
  position: absolute;
  right: 28px;
  top: 50%;
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s var(--ease), border-color 0.2s;
}
.faq-item[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
  border-color: var(--primary);
}
.faq-item p {
  position: relative;
  padding: 0 28px 26px 64px;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 2;
  font-weight: 500;
}
.faq-item p::before {
  content: 'A';
  position: absolute;
  left: 24px;
  top: -2px;
  font-family: var(--font-en);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0;
}

/* ==========================================================================
   CTA Banner
   ========================================================================== */
.cta-banner {
  background:
    radial-gradient(ellipse 70% 60% at 80% 30%, rgba(184, 153, 104, 0.18) 0%, transparent 65%),
    radial-gradient(ellipse 60% 60% at 20% 80%, rgba(26, 58, 92, 0.55) 0%, transparent 65%),
    linear-gradient(135deg, #0A1530 0%, #142B4D 50%, #1A3A5C 100%);
  color: var(--text-on-dark);
  text-align: center;
  padding: 110px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 700px;
  height: 700px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(184, 153, 104, 0.18) 0%, transparent 60%);
  pointer-events: none;
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  margin-bottom: 22px;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: #fff;
  line-height: 1.45;
}
.cta-banner .accent {
  color: #D9C28E;
  position: relative;
  display: inline-block;
}
.cta-banner .accent::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -4px;
  height: 6px;
  background: rgba(184, 153, 104, 0.4);
  border-radius: 6px;
  z-index: -1;
}
.cta-banner p {
  margin-bottom: 40px;
  color: var(--text-on-dark-muted);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.95;
}
.cta-banner .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: var(--shadow-red);
}
.cta-banner .btn-primary:hover {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
  box-shadow: 0 12px 32px rgba(255, 255, 255, 0.30);
}

/* ==========================================================================
   Contact form (light card on light bg)
   ========================================================================== */
.contact { background: var(--bg-blue-softer); }
.contact .section-title { color: var(--text-strong); }
.contact .section-lead { color: var(--text-muted); }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 52px;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 24px; }
.form-row label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 10px;
  color: var(--text-strong);
  letter-spacing: -0.01em;
}
.form-row .req {
  font-family: var(--font-en);
  font-size: 0.7rem;
  color: #fff;
  background: var(--accent);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 15px 18px;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--text);
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: var(--text-mute2); }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(26, 58, 92, 0.16);
}
.form-row textarea { resize: vertical; min-height: 150px; line-height: 1.7; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid .form-row { margin-bottom: 24px; }
.form-row-check { margin: 12px 0 28px; }
.check-label {
  display: flex !important;
  align-items: center;
  gap: 10px !important;
  cursor: pointer;
  font-weight: 500 !important;
  font-size: 0.9rem !important;
  margin: 0 !important;
  color: var(--text);
}
.check-label input { width: 18px; height: 18px; accent-color: var(--primary); margin: 0; }
.check-label .link-underline { color: var(--primary); }
.form-note {
  text-align: center;
  margin-top: 22px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

@media (max-width: 600px) {
  .contact-form { padding: 32px 22px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 80px 0 0;
  border-top: 0;
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}
.site-footer .brand-mark {
  background: var(--primary);
  box-shadow: 0 4px 12px rgba(26, 58, 92, 0.36);
}
.site-footer .brand-en { color: var(--text-on-dark) !important; }
.site-footer .brand-jp { color: var(--text-on-dark-muted) !important; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
  padding-bottom: 52px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-brand .brand-en {
  font-family: var(--font-en);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer-brand .brand-jp { font-size: 0.78rem; }
.footer-brand p { margin: 0; line-height: 1.4; }
.footer-meta {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
}
.footer-nav, .footer-legal {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 0.88rem;
  font-weight: 500;
}
.footer-nav a, .footer-legal a {
  color: var(--text-on-dark-muted);
  transition: color 0.2s;
}
.footer-nav a:hover, .footer-legal a:hover { color: #D9C28E; }
.footer-bottom {
  border-top: 1px solid var(--border-on-dark);
  padding: 24px 0;
}
.footer-bottom small {
  font-size: 0.78rem;
  color: var(--text-on-dark-muted);
  letter-spacing: 0.04em;
  font-family: var(--font-en);
  font-weight: 500;
}
@media (max-width: 880px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-meta { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* ==========================================================================
   Floating CTA (mobile)
   ========================================================================== */
.floating-cta {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  background: var(--accent);
  color: #fff;
  padding: 15px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: var(--shadow-red);
  letter-spacing: 0.04em;
}
.floating-cta:hover { background: var(--accent-dark); }
@media (max-width: 960px) {
  .floating-cta { display: inline-flex; }
}

/* ==========================================================================
   Reveal animation
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Posts (blog index + article)
   ========================================================================== */
.posts-hero {
  background:
    radial-gradient(ellipse 60% 50% at 90% 0%, rgba(26, 58, 92, 0.12) 0%, transparent 60%),
    linear-gradient(165deg, #FFFFFF 0%, #F5F8FC 100%);
  padding: 84px 0 56px;
  position: relative;
  overflow: hidden;
}
.posts-hero h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  letter-spacing: -0.03em;
  margin: 12px 0 14px;
  color: var(--text-strong);
}
.posts-hero p {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.95;
  max-width: 620px;
}
.post-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.post-card {
  display: block;
  padding: 28px 28px 26px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--primary-soft);
}
.post-card-meta {
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.post-card-title {
  font-size: 1.1rem;
  line-height: 1.55;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  margin-bottom: 12px;
}
.post-card-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.85;
  font-weight: 500;
}
.post-card-coming {
  opacity: 0.5;
  pointer-events: none;
}
@media (max-width: 768px) {
  .post-list { grid-template-columns: 1fr; }
}

.article {
  padding: 84px 0 80px;
  background: var(--bg);
}
.article-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}
.article-meta {
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--primary);
  text-transform: uppercase;
}
.article-title {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  line-height: 1.45;
  letter-spacing: -0.03em;
  margin: 16px 0 24px;
  color: var(--text-strong);
}
.article-lead {
  font-size: 1.05rem;
  line-height: 1.95;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}
.article-body h2 {
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  margin: 48px 0 16px;
  padding-top: 16px;
  color: var(--text-strong);
}
.article-body h3 {
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  margin: 32px 0 12px;
  color: var(--text-strong);
}
.article-body p {
  font-size: 1rem;
  line-height: 1.95;
  color: var(--text);
  margin-bottom: 20px;
  font-weight: 500;
}
.article-body strong {
  color: var(--text-strong);
  font-weight: 700;
  background: linear-gradient(transparent 60%, var(--accent-soft) 60%);
  padding: 0 2px;
}
.article-body ul, .article-body ol {
  margin: 0 0 24px;
  padding-left: 1.4em;
}
.article-body li {
  font-size: 0.98rem;
  line-height: 1.9;
  margin-bottom: 8px;
  list-style: disc;
  color: var(--text);
  font-weight: 500;
}
.article-body ol li { list-style: decimal; }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.92rem;
}
.article-body th, .article-body td {
  padding: 12px 14px;
  border: 1px solid var(--border);
  text-align: left;
  line-height: 1.7;
}
.article-body th {
  background: var(--bg-soft);
  font-weight: 700;
  color: var(--text-strong);
}
.article-disclaimer {
  margin-top: 56px;
  padding: 22px 24px;
  background: var(--bg-soft);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.85;
}
.article-cta {
  margin-top: 48px;
  padding: 36px 32px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  text-align: center;
}
.article-cta h3 {
  color: #fff;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.article-cta p {
  color: rgba(255, 255, 255, 0.84);
  margin-bottom: 22px;
  font-size: 0.96rem;
  line-height: 1.85;
}
.article-cta .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
}
.article-cta .btn-primary:hover {
  background: #fff;
  color: var(--accent-dark);
  border-color: #fff;
}
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 40px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
}
.article-back:hover { color: var(--primary); }
