/* =============================================
   BLUE MASTER — グローバルスタイル v5
   ============================================= */

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

/* ─── Design Tokens ─── */
:root {
  /* Primary palette */
  --c-deep:   #001f3f;
  --c-navy:   #003566;
  --c-ocean:  #0077b6;
  --c-sky:    #00b4d8;
  --c-mist:   #90e0ef;
  --c-foam:   #caf0f8;
  --c-ice:    #f5fbfd;
  --c-paper:  #ffffff;
  --c-ink:    #0a1828;
  --c-mute:   #5b6b7a;
  --c-line:   #dce8ef;

  /* Fonts */
  --f-sans:   "Noto Sans JP", system-ui, sans-serif;
  --f-mincho: "Shippori Mincho", serif;
  --f-en:     "Inter", sans-serif;

  /* Layout */
  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 24px;
  --radius-xl: 999px;
  --max-w:     1280px;
  --gutter:    clamp(20px, 4vw, 64px);

  --transition:   0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-card:  0 10px 30px -12px rgba(0,31,63,.2);
  --shadow-glow:  0 4px 24px rgba(0,119,182,.25);

  /* ── Backwards-compat aliases (existing page inline styles) ── */
  --blue-deepest:  #001228;
  --blue-deep:     var(--c-deep);
  --blue-dark:     var(--c-deep);
  --blue-mid:      var(--c-ocean);
  --blue-bright:   var(--c-sky);
  --blue-light:    var(--c-mist);
  --blue-pale:     var(--c-ice);
  --blue-vivid:    var(--c-ocean);
  --white:         var(--c-paper);
  --off-white:     var(--c-ice);
  --ink:           var(--c-ink);
  --ink-mid:       #1a3a5c;
  --text-primary:  var(--c-ink);
  --text-secondary:var(--c-mute);
  --text-muted:    var(--c-mute);
  --border:        var(--c-line);
  --gold:          #ba7517;
  --gold-light:    #fac775;
  --line-green:    #06c755;

  --font-display: var(--f-mincho);
  --font-body:    var(--f-sans);
  --font-mono:    var(--f-en);
  --font-main:    var(--f-sans);
  --font-en:      var(--f-en);

  --radius-none:   var(--radius-sm);
  --radius-md:     var(--radius-sm);
  --radius-lg:     var(--radius-lg);

  --shadow-card:   0 10px 30px -12px rgba(0,31,63,.2);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--f-sans);
  background: var(--c-paper);
  color: var(--c-ink);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; margin: 0; }

/* ─── Typography ─── */
h1, h2, h3, h4, h5 {
  font-family: var(--f-mincho);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: 0.04em;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.7rem); }
h4 { font-size: 1.1rem; }
body h1, body h2, body h3, body h4, body h5 { color: var(--c-ink); }
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4,
.page-hero h1, .page-hero h2 { color: #fff; }

.en { font-family: var(--f-en); }
.blue-text { color: var(--c-ocean); }
.gold-text { color: var(--gold); }
.muted     { color: var(--c-mute); }

/* ─── Layout ─── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section    { padding: clamp(80px, 10vw, 140px) 0; position: relative; }
.section-sm { padding: 64px 0; }

/* ─── Background utilities ─── */
.bg-white { background: var(--c-paper); }
.bg-off   { background: var(--c-ice); }
.bg-pale  { background: var(--c-ice); }
.bg-dark  { background: var(--c-deep); color: #fff; }
.bg-dark p { color: rgba(255,255,255,.75); }

/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  height: 72px;
  color: #fff;
  transition: background .35s ease, box-shadow .35s ease;
}
.nav.scrolled {
  background: rgba(10,24,40,.93);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 8px 32px rgba(0,0,0,.28);
}
.nav .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-en);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.logo-mark {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: conic-gradient(from 200deg, var(--c-deep), var(--c-ocean), var(--c-mist), var(--c-ocean), var(--c-deep));
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.5);
  flex-shrink: 0;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 13px;
  letter-spacing: 0.05em;
}
.nav-links li { list-style: none; }
.nav-links a {
  position: relative;
  padding: 6px 0;
  opacity: .8;
  transition: opacity .2s;
}
.nav-links a:hover { opacity: 1; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { opacity: 1; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--c-ink);
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: background .3s, transform .3s;
  white-space: nowrap;
  border: none;
}
.nav-cta .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #06c755;
  flex-shrink: 0;
}
.nav-cta:hover { background: var(--c-foam); transform: translateY(-1px); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  width: 26px; height: 2px;
  background: #fff;
  border-radius: 1px;
  display: block;
  transition: 0.3s;
}

/* Mobile Nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,21,42,.97);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 1rem;
  color: #fff;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: rgba(255,255,255,.75);
  letter-spacing: 0.05em;
  transition: color .2s;
  font-size: 1rem;
}
.nav-mobile a:hover { color: var(--c-mist); }
.nav-mobile .btn-line {
  margin-top: 12px;
  background: var(--c-ocean);
  color: #fff;
  padding: 14px 36px;
  border-radius: 999px;
  font-weight: 500;
  transition: background .3s;
}
.nav-mobile .btn-line:hover { background: var(--c-sky); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), background .3s, color .3s, box-shadow .3s, border-color .3s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--c-ink);
  color: #fff;
  box-shadow: 0 10px 30px -12px rgba(0,31,63,.4);
}
.btn-primary:hover { background: var(--c-ocean); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-line);
}
.btn-outline:hover { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }

.btn-ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-line);
}
.btn-ghost:hover { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }

.btn-light { background: #fff; color: var(--c-ink); }
.btn-light:hover { background: var(--c-foam); }

.btn-line {
  background: #06c755;
  color: #fff;
  border-color: #06c755;
}
.btn-line:hover { background: #05b34a; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(6,199,85,.35); }

.btn-gold {
  background: var(--gold);
  color: #fff;
}
.btn-gold:hover { background: #9a6012; transform: translateY(-1px); }

.btn-lg { padding: 18px 40px; font-size: 15px; }
.btn-full { width: 100%; justify-content: center; }

/* Ghost white for dark sections */
.btn-ghost-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.35);
  border-width: 1px;
  border-style: solid;
}
.btn-ghost-white:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); }

/* Dark section button overrides */
.page-hero .btn-outline,
.cta-section .btn-outline,
.bg-dark .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,.35);
}
.page-hero .btn-outline:hover,
.cta-section .btn-outline:hover,
.bg-dark .btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.6);
}

/* ─── Section Header ─── */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

/* Eyebrow label */
.eyebrow {
  font-family: var(--f-en);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--c-ocean);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
  display: inline-block;
  flex-shrink: 0;
}

/* Legacy section-tag → eyebrow-compatible */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-en);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-ocean);
  margin-bottom: 12px;
}
.section-tag::before {
  content: "";
  width: 24px; height: 1px;
  background: currentColor;
  display: inline-block;
  flex-shrink: 0;
}
.bg-dark .section-tag,
.page-hero .section-tag { color: var(--c-mist); }

.section-title {
  font-family: var(--f-mincho);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.3;
  letter-spacing: 0.02em;
  margin: 8px 0 0;
  color: var(--c-ink);
}
.section-title .en {
  display: block;
  font-family: var(--f-en);
  font-size: clamp(48px, 6.5vw, 88px);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--c-ocean);
  opacity: 0.12;
  margin-bottom: -0.25em;
}
.bg-dark .section-title,
.page-hero .section-title { color: #fff; }

.section-desc {
  color: var(--c-mute);
  max-width: 600px;
  margin: 12px auto 0;
  font-size: 1.05rem;
}

.lead {
  font-size: 16px;
  color: var(--c-mute);
  max-width: 60ch;
  text-wrap: pretty;
  line-height: 1.8;
}

.blue-divider {
  width: 36px; height: 1px;
  background: var(--c-ocean);
  margin: 16px auto 0;
}

/* ─── Page Hero (sub-pages) ─── */
.page-hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 80% 20%, rgba(144,224,239,.2), transparent 60%),
    radial-gradient(60% 80% at 10% 90%, rgba(0,180,216,.25), transparent 60%),
    linear-gradient(180deg, #001228 0%, #003566 50%, #004e8f 100%);
  color: #fff;
}
.page-hero-bg { display: none; }
.page-hero-content { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin-bottom: 24px; }
.page-hero p  { color: rgba(255,255,255,.78); }
.page-hero .section-tag { color: var(--c-mist); }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-en);
  font-size: 0.75rem;
  color: rgba(255,255,255,.45);
  margin-bottom: 24px;
  justify-content: center;
}
.breadcrumb a { color: var(--c-mist); }
.breadcrumb-sep { color: rgba(255,255,255,.35); }

/* ─── Cards ─── */
.card {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 40px;
  transition: var(--transition);
}
a.card:hover {
  border-color: var(--c-ocean);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}
.card-glass {
  background: rgba(245,251,253,.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 40px;
}

/* ─── Highlight Box ─── */
.highlight-box {
  background: rgba(0,119,182,.06);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 32px 40px;
  position: relative;
  overflow: hidden;
}
.highlight-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 3px; height: 100%;
  background: var(--c-ocean);
}
.highlight-box h4,
.highlight-box p strong { color: var(--c-ocean); }

/* ─── Check List ─── */
.check-list { display: flex; flex-direction: column; gap: 12px; }
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--c-mute);
}
.check-list li::before {
  content: '▸';
  font-size: .8rem;
  color: var(--c-ocean);
  margin-top: 4px;
  flex-shrink: 0;
}

/* ─── Two-col / Grid ─── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* ─── Stats (sub-page style) ─── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat-item {
  text-align: center;
  padding: 40px 16px;
  background: var(--c-paper);
}
.stat-num {
  font-family: var(--f-en);
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 200;
  color: var(--c-ink);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-unit { font-size: 1.2rem; color: var(--c-ocean); }
.stat-label {
  font-family: var(--f-en);
  font-size: 0.78rem;
  color: var(--c-mute);
  margin-top: 8px;
  letter-spacing: 0.08em;
}

/* ─── Service Grid (sub-page / legacy) ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.service-card {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 40px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: var(--c-ocean);
  opacity: 0;
  transition: var(--transition);
}
a.service-card:hover {
  border-color: var(--c-ocean);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
a.service-card:hover::before { opacity: 1; }
.service-card.featured {
  border-color: rgba(186,117,23,.4);
  background: linear-gradient(160deg, var(--c-paper), rgba(250,199,117,.07));
}
.service-card.featured::before { background: var(--gold); opacity: 1; }
.service-icon  { font-size: 2.5rem; margin-bottom: 20px; display: block; }
.service-tag {
  font-family: var(--f-en);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-ocean);
  margin-bottom: 12px;
  display: block;
}
.service-card.featured .service-tag { color: var(--gold); }
.service-title {
  font-family: var(--f-mincho);
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--c-ink);
}
.service-desc  { color: var(--c-mute); font-size: .9rem; line-height: 1.9; margin-bottom: 24px; }
.service-price { font-size: .85rem; color: var(--c-mute); margin-bottom: 20px; }
.service-price strong { color: var(--c-navy); }

/* ─── Testimonials ─── */
.testimonial {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 40px;
  position: relative;
}
.testimonial::before {
  content: '❝';
  font-family: Georgia, serif;
  font-size: 4rem;
  color: var(--c-mist);
  position: absolute;
  top: 16px; right: 24px;
  line-height: 1;
  opacity: .7;
}
.testimonial-text   { color: var(--c-mute); font-size: .95rem; line-height: 2; margin-bottom: 24px; }
.testimonial-author { font-family: var(--f-en); font-size: .78rem; color: var(--c-mute); }
.testimonial-result {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--f-en);
  font-size: .75rem;
  font-weight: 500;
  color: var(--c-ocean);
  background: var(--c-foam);
  padding: 4px 14px;
  border-radius: 999px;
}

/* ─── CTA Section ─── */
.cta-section {
  background: linear-gradient(120deg, var(--c-deep) 0%, var(--c-navy) 50%, var(--c-ocean) 100%);
  border-radius: var(--radius-lg);
  padding: clamp(48px, 7vw, 96px);
  text-align: center;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.cta-section::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 40% at 100% 0%, rgba(144,224,239,.3), transparent 60%),
    radial-gradient(40% 50% at 0% 100%, rgba(0,180,216,.25), transparent 60%);
  pointer-events: none;
}
.cta-title {
  color: #fff;
  font-family: var(--f-mincho);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 400;
  margin-bottom: 16px;
  position: relative;
}
.cta-desc {
  color: rgba(255,255,255,.75);
  max-width: 500px;
  margin: 0 auto 40px;
  position: relative;
}
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}
.cta-section .section-tag { color: var(--c-mist); }

/* ─── Flow / Timeline ─── */
.flow-steps { display: flex; flex-direction: column; gap: 0; max-width: 720px; margin: 0 auto; }
.flow-step { display: flex; gap: 32px; position: relative; }
.flow-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 23px; top: 60px; bottom: -32px;
  width: 1px;
  background: linear-gradient(to bottom, var(--c-ocean), transparent);
}
.flow-num {
  width: 48px; height: 48px; min-width: 48px;
  border-radius: var(--radius);
  background: var(--c-navy);
  border: 1px solid var(--c-ocean);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-en);
  font-weight: 500;
  color: #fff;
  font-size: 1rem;
  margin-top: 4px;
}
.flow-body { padding-bottom: 48px; }
.flow-step-title {
  font-family: var(--f-mincho);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--c-ink);
}
.flow-step-desc { color: var(--c-mute); font-size: .9rem; line-height: 1.9; }

/* ─── Accordion ─── */
.accordion-item {
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 8px;
  transition: var(--transition);
}
.accordion-item.open { border-color: var(--c-ocean); }
.accordion-header {
  padding: 20px 28px;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
  background: var(--c-paper);
  font-weight: 500;
  font-size: .95rem;
  user-select: none;
  transition: var(--transition);
  color: var(--c-ink);
}
.accordion-header:hover { background: var(--c-ice); }
.accordion-icon {
  width: 24px; height: 24px; min-width: 24px;
  border-radius: 50%;
  background: var(--c-foam);
  border: 1px solid var(--c-line);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
  color: var(--c-ocean);
}
.accordion-item.open .accordion-icon {
  transform: rotate(45deg);
  background: var(--c-ocean);
  color: #fff;
  border-color: var(--c-ocean);
}
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
  background: var(--c-ice);
}
.accordion-body-inner { padding: 20px 28px 28px; color: var(--c-mute); line-height: 1.9; font-size: .9rem; }

/* ─── Form ─── */
.form-group { margin-bottom: 24px; }
.form-label {
  display: block;
  font-family: var(--f-en);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--c-mute);
  margin-bottom: 8px;
}
.form-label .required { color: var(--c-ocean); margin-left: 4px; font-size: .7rem; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: var(--c-ink);
  font-family: var(--f-sans);
  font-size: .95rem;
  transition: var(--transition);
  outline: none;
  -webkit-appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--c-ocean);
  box-shadow: 0 0 0 3px rgba(0,119,182,.1);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--c-mute); }
.form-textarea { resize: vertical; min-height: 140px; line-height: 1.7; }
.form-select option { background: var(--c-paper); color: var(--c-ink); }

/* ─── Tag List ─── */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag {
  font-family: var(--f-en);
  font-size: .72rem;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--c-foam);
  border: 1px solid var(--c-line);
  color: var(--c-navy);
}

/* ─── Fade-in (legacy JS) ─── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ─── Scroll Reveal (new) ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1);
}
.reveal.in { opacity: 1; transform: none; }

/* ─── Particles (legacy) ─── */
.particle {
  position: absolute; width: 2px; height: 2px;
  background: var(--c-mist); border-radius: 50%; opacity: 0;
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: .35; }
  90%  { opacity: .15; }
  100% { transform: translateY(-100px) scale(1.5); opacity: 0; }
}

/* ─── LINE Floating CTA ─── */
.line-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #06c755;
  color: #fff;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  box-shadow: 0 6px 24px rgba(6,199,85,.35);
  transition: transform .3s, box-shadow .3s;
}
.line-float:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(6,199,85,.5); }

/* ─── Footer ─── */
.footer {
  background: var(--c-ink);
  color: #fff;
  padding: 80px var(--gutter) 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: var(--max-w);
  margin: 0 auto 64px;
}
.footer h4 {
  font-family: var(--f-en);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-mist);
  margin: 0 0 20px;
  font-weight: 500;
}
.footer ul { font-size: 13px; display: grid; gap: 10px; }
.footer ul a { opacity: .7; transition: opacity .3s; }
.footer ul a:hover { opacity: 1; }
.footer-brand p { font-size: 13px; opacity: .6; line-height: 1.8; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-en);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 16px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255,255,255,.35);
  font-family: var(--f-en);
  font-size: 11px;
  letter-spacing: .1em;
}
.footer-base {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 11px;
  opacity: .5;
  letter-spacing: .1em;
  font-family: var(--f-en);
  flex-wrap: wrap;
  gap: 8px;
}
/* Legacy footer classes */
.footer-copy { font-family: var(--f-en); font-size: .75rem; color: rgba(255,255,255,.35); }
.footer-sns { display: flex; gap: 16px; }
.footer-sns a {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  color: rgba(255,255,255,.55);
  transition: var(--transition);
}
.footer-sns a:hover { background: var(--c-ocean); color: #fff; border-color: var(--c-ocean); }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .nav-right { display: none; }
  .nav-hamburger { display: flex; }
  .two-col, .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 40px; }
  .two-col.reverse { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section { padding: clamp(60px, 8vw, 100px) 0; }
}
@media (max-width: 768px) {
  .cta-buttons { flex-direction: column; align-items: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .line-float .float-text { display: none; }
  .line-float { padding: 14px 18px; }
  /* 長文ボタンが狭い画面で親要素からはみ出すのを防ぐ */
  .btn { padding: 12px 20px; font-size: 13px; }
  .btn-lg { padding: 14px 24px; font-size: 14px; }
}
