:root {
  --white: #FFFFFF;
  --paper: #FFFFFF;
  --bg-alt: #FFF6EA;
  --navy: #273584;
  --navy-mid: #4152B0;
  --navy-deep: #232D63;
  --stamp: #FF5F44;
  --stamp-soft: #FFB199;
  --gold: #FFB627;
  --teal: #12B3A4;
  --gray: #5C564E;
  --gray-deep: #3D3931;
  --ink: #332C22;
  --ink-soft: #7A6A5C;
  --line: rgba(39, 53, 132, 0.12);
  --line-stamp: rgba(255, 95, 68, 0.32);
  --success: #4C7A4F;
  --error: #D6483A;
  --max-width: 1080px;
  --font-display: "Shippori Mincho", "Noto Serif JP", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-body: "Noto Sans JP", "Hiragino Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
}

a { color: var(--navy); }
a:hover { color: var(--stamp); }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: 0.01em;
  font-weight: 700;
  color: var(--navy);
}

/* Flag-motif accent bar — JP (white/navy) merging into PH (navy/white/coral) */
.flag-accent { height: 4px; display: flex; }
.flag-accent span { flex: 1; }
.flag-accent span:nth-child(1) { background: #FFFFFF; border-bottom: 4px solid var(--gold); box-sizing: border-box; }
.flag-accent span:nth-child(2) { background: var(--navy); }
.flag-accent span:nth-child(3) { background: var(--stamp); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.site-header .logo img { height: 26px; }

.site-nav { display: flex; gap: 30px; }
.site-nav a {
  text-decoration: none;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--stamp); border-bottom-color: var(--stamp); }

.nav-cta {
  display: inline-block;
  padding: 9px 20px;
  border-radius: 2px;
  border: 1.5px solid var(--navy);
  background: var(--navy);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  font-family: var(--font-mono);
  box-shadow: 3px 3px 0 var(--stamp);
  transition: transform .15s ease, box-shadow .15s ease;
}
.nav-cta:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--stamp); color: #fff !important; }
@media (max-width: 780px) { .nav-cta { display: none; } }

/* Hero — vivid sunrise gradient, boarding-pass card floats on top */
.hero {
  position: relative;
  padding: 84px 0 96px;
  background: linear-gradient(125deg, var(--stamp) 0%, #FF7A4D 45%, var(--gold) 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 110%, rgba(255,255,255,0.22), transparent 55%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 48px;
  align-items: center;
  text-align: left;
}
.hero-copy .eyebrow { justify-content: flex-start; color: #fff; }
.hero-copy .eyebrow::before { background: #fff; }
.hero h1 {
  font-size: clamp(1.7rem, 3.1vw, 2.5rem);
  line-height: 1.6;
  margin: 18px 0 22px;
  color: #fff;
  white-space: normal;
}
.hero p.sub {
  font-size: clamp(0.96rem, 1.3vw, 1.05rem);
  max-width: 520px;
  margin: 0 0 34px;
  color: rgba(255,255,255,0.92);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-primary { background: #fff; color: var(--navy) !important; border-color: #fff; box-shadow: 3px 3px 0 var(--navy-deep); }
.hero .btn-primary:hover { background: #fff; box-shadow: 1px 1px 0 var(--navy-deep); }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: left; }
  .route-card { max-width: 420px; }
}

/* Route card — the hero's signature graphic: JP <-> PH boarding-pass stub */
.route-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 30px 28px 26px;
  box-shadow: 6px 6px 0 rgba(35,45,99,0.28);
}
.route-card::before {
  content: "";
  position: absolute;
  left: -1px; right: -1px; top: 96px;
  border-top: 1.5px dashed var(--line);
}
.route-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.route-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.route-city { font-family: var(--font-mono); font-weight: 700; font-size: 0.92rem; letter-spacing: 0.03em; }
.route-city.jp { color: var(--navy); }
.route-city.ph { color: var(--stamp); }
.route-line { position: relative; flex: 1 1 auto; height: 1px; background: var(--line); margin: 0 12px; }
.route-line::before, .route-line::after {
  content: "";
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: 50%;
}
.route-line::before { left: -2px; background: var(--navy); }
.route-line::after { right: -2px; background: var(--stamp); }
.route-coords { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-soft); margin-bottom: 26px; }
.route-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 22px; }
.route-stats div { text-align: center; }
.route-stats strong { display: block; font-family: var(--font-display); font-size: 1.15rem; color: var(--navy); font-weight: 700; }
.route-stats small { display: block; font-size: 0.68rem; color: var(--ink-soft); margin-top: 3px; }

.entry-stamp {
  position: absolute;
  top: -18px;
  right: -14px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 5px double #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(-9deg);
  background: rgba(35,45,99,0.35);
  color: #fff;
  font-family: var(--font-mono);
  text-align: center;
}
.entry-stamp-code { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.02em; }
.entry-stamp-sub { font-size: 0.42rem; letter-spacing: 0.1em; margin-top: 2px; }
@media (max-width: 480px) { .entry-stamp { width: 76px; height: 76px; top: -14px; right: -10px; } .entry-stamp-code { font-size: 0.68rem; } }

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 2px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  font-family: var(--font-mono);
  border: 1.5px solid var(--navy);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--navy); color: #fff; box-shadow: 3px 3px 0 var(--stamp); }
.btn-primary:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--stamp); }
.btn-outline { background: transparent; color: var(--navy) !important; box-shadow: 3px 3px 0 var(--line); }
.btn-outline:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--line); background: rgba(27,42,74,0.04); }
.btn-secondary { background: #fff; color: var(--navy) !important; box-shadow: 3px 3px 0 var(--line); }
.btn-secondary:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--line); }
.hero .btn-outline { border-color: #fff; color: #fff !important; box-shadow: 3px 3px 0 var(--navy-deep); }
.hero .btn-outline:hover { background: rgba(255,255,255,0.14); transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--navy-deep); }

/* Sections */
section { padding: 92px 0; }
section.split-wrap { padding: 0; }
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head { text-align: left; max-width: 640px; margin: 0 0 52px; }
.section-head .eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  color: var(--stamp);
  font-weight: 600;
  margin: 0 0 16px;
  font-family: var(--font-mono);
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--stamp);
  flex-shrink: 0;
}
.section-head h2 { font-size: clamp(1.35rem, 2.4vw, 2rem); margin: 0 0 14px; }
.section-head p { color: var(--ink-soft); margin: 0; }
section[style*="text-align:center"] .section-head,
.wrap[style*="text-align:center"] .eyebrow { justify-content: center; }

/* Ledger list — replaces boxed 3-card grids for enumerated content (pillars) */
.pillars {
  display: block;
  border-top: 1px solid var(--line);
  counter-reset: entry;
}
.pillars .card {
  counter-increment: entry;
  display: grid;
  grid-template-columns: auto auto 1fr;
  column-gap: 20px;
  row-gap: 6px;
  align-items: start;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 30px 4px;
  border-bottom: 1px solid var(--line);
}
.pillars .card::before {
  content: "0" counter(entry);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--stamp);
  letter-spacing: 0.06em;
  padding-top: 14px;
  grid-row: 1 / span 2;
}
.pillars .card .icon-badge { grid-row: 1 / span 2; margin-bottom: 0; }
.pillars .card h3, .pillars .card p { grid-column: 3; }
/* Compact tag-grid variant (cases.html reuses .pillars with an inline grid override, no icons/numbering) */
.pillars[style] { display: grid; border-top: none; gap: 16px; }
.pillars[style] .card {
  display: block;
  border: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 20px;
}
.pillars[style] .card::before { content: none; }
@media (max-width: 780px) {
  .site-nav { display: none; }
  .pillars[style] { grid-template-columns: 1fr !important; }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 32px 28px;
}
.card h3 { margin: 0 0 10px; font-size: 1.02rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; }
.card .card-link { display: inline-block; margin-top: 16px; font-size: 0.85rem; font-weight: 700; text-decoration: none; color: var(--stamp); font-family: var(--font-mono); }

.pillars .card { border-top: none; }
.service-detail .card { border-top: none; border-left: 3px solid var(--stamp); border-radius: 0; }
#faq .card { border-top: none; border-left: 3px solid var(--stamp); border-radius: 0; }

.other-biz { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 640px) { .other-biz { grid-template-columns: 1fr; } }
.other-biz .card { border: none; border-radius: 0; }

/* Icon badges — squared stamp-corner mark, not a filled circle */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 2px;
  margin-bottom: 16px;
  background: transparent;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  flex-shrink: 0;
}
.icon-badge svg { width: 22px; height: 22px; }

/* Teaser cards (hub page -> detail pages) */
.teaser-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 780px) { .teaser-grid { grid-template-columns: 1fr; } }
.teaser-grid > .teaser-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.teaser-card {
  display: block;
  text-decoration: none;
  background: #fff;
  padding: 30px 28px;
  transition: background-color .18s ease;
}
.teaser-card:hover { background: var(--bg-alt); }
.teaser-card h3 { margin: 0 0 10px; font-size: 1.08rem; color: var(--navy) !important; }
.teaser-card p { margin: 0 0 14px; color: var(--ink-soft); font-size: 0.92rem; }
.teaser-card .teaser-link { font-size: 0.8rem; font-weight: 700; color: var(--stamp); font-family: var(--font-mono); letter-spacing: 0.02em; }
.teaser-card .teaser-link::after { content: " \2192"; }

/* Icon row: masthead-style strip, divided by hairlines instead of repeated cards */
.icon-row { display: grid; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 780px) { .icon-row { grid-template-columns: repeat(2, 1fr); } }
.icon-row-item { text-align: center; padding: 0 20px; border-left: 1px solid var(--line); }
.icon-row-item:first-child { border-left: none; }
@media (max-width: 780px) { .icon-row-item:nth-child(2n+1) { border-left: none; } }
.icon-row-item .icon-badge { margin: 0 auto 14px; }
.icon-row-item h3 { font-size: 0.88rem; margin: 0; font-family: var(--font-mono); letter-spacing: 0.01em; font-weight: 600; }

/* Split section: photo duotone (navy) with paper scrim, text on the light side */
.split-section {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(380px, 32vw, 620px);
  overflow: hidden;
}
.split-media { position: absolute; inset: 0; z-index: 0; }
.split-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(112%) contrast(1.03);
}
.split-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(255,246,234,0.97) 0%, rgba(255,246,234,0.9) 58%, rgba(255,95,68,0.1) 100%);
  pointer-events: none;
}
.split-section.reverse::after {
  background: linear-gradient(270deg, rgba(255,246,234,0.97) 0%, rgba(255,246,234,0.9) 58%, rgba(255,95,68,0.1) 100%);
}
.split-text {
  position: relative;
  z-index: 2;
  width: 60%;
  box-sizing: border-box;
  padding: 64px 40px 64px max(24px, calc((100vw - 1080px) / 2 + 24px));
}
.split-section.reverse .split-text {
  margin-left: auto;
  padding: 64px max(24px, calc((100vw - 1080px) / 2 + 24px)) 64px 40px;
}
@media (max-width: 860px) {
  .split-section { min-height: 0; }
  .split-section::after { background: linear-gradient(0deg, rgba(255,246,234,0.97) 0%, rgba(255,246,234,0.93) 65%, rgba(255,246,234,0.85) 100%) !important; }
  .split-text { width: 100%; padding: 220px 28px 32px; margin-left: 0 !important; }
}
.split-text .eyebrow { display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.7rem; color: var(--stamp); font-weight: 600; margin: 0 0 14px; font-family: var(--font-mono); }
.split-text .eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--stamp); flex-shrink: 0; }
.split-text h2 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); margin: 0 0 16px; color: var(--navy); text-wrap: balance; }
.split-text p { color: var(--ink-soft); margin: 0 0 16px; text-wrap: pretty; }
.split-text ul { margin: 0 0 20px; padding-left: 1.2em; color: var(--ink-soft); }
.split-text li { margin-bottom: 8px; text-wrap: pretty; }
.split-text strong { color: var(--ink); }

/* Value strip: flat panels, top hairline instead of card box */
.value-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
@media (max-width: 780px) { .value-strip { grid-template-columns: 1fr; } }
.value-item { text-align: center; padding: 30px 20px; background: #fff; }
.value-item .icon-badge { margin: 0 auto 18px; }
.value-item h3 { font-size: 1rem; margin: 0 0 10px; }
.value-item p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }

/* Flow steps — genuine sequence, so numbering stays; restyled as stamped stubs */
.flow-steps { display: flex; align-items: stretch; gap: 4px; }
.flow-steps .card { flex: 1; border-radius: 0; box-shadow: none; }
.flow-arrow { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; color: var(--stamp); }
.flow-arrow svg { width: 22px; height: 22px; }
@media (max-width: 860px) {
  .flow-steps { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); padding: 2px 0; }
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 2px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.86rem;
  margin-bottom: 14px;
  transform: rotate(-4deg);
}

/* FAQ — ledger Q/A rows (avatars hidden, chat-bubble shape flattened) */
.faq-thread { display: flex; flex-direction: column; }
.faq-msg { display: block; border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq-msg:first-child { padding-top: 0; }
.faq-avatar { display: none; }
.faq-bubble {
  padding: 0;
  border-radius: 0;
  max-width: 100%;
  font-size: 0.95rem;
  border: none !important;
  background: none !important;
}
.faq-bubble p { margin: 0; padding-left: 30px; position: relative; }
.faq-bubble::before {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.76rem;
  position: absolute;
  left: 0;
  top: 1px;
}
.faq-bubble-q { color: var(--navy); font-weight: 700; }
.faq-bubble-q p::before { content: "Q"; font-family: var(--font-mono); font-weight: 700; font-size: 0.76rem; position: absolute; left: 0; top: 3px; color: var(--navy); }
.faq-bubble-a { color: var(--ink); }
.faq-bubble-a p::before { content: "A"; font-family: var(--font-mono); font-weight: 700; font-size: 0.76rem; position: absolute; left: 0; top: 3px; color: var(--stamp); }
@media (max-width: 560px) { .faq-bubble { max-width: 100%; } }

/* Long-form content pages */
.content-page { max-width: 760px; position: relative; z-index: 1; }
.ph-map-bg { position: absolute; top: 10px; right: 0; width: 260px; height: auto; pointer-events: none; z-index: 0; opacity: 0.1; }
@media (max-width: 1100px) { .ph-map-bg { display: none; } }
.content-page h2 { font-size: 1.4rem; margin: 48px 0 16px; }
.content-page h2:first-child { margin-top: 0; }
.content-page h3 { font-size: 1.1rem; margin: 28px 0 10px; }
.content-page p { margin: 0 0 16px; }
.content-page ul, .content-page ol { margin: 0 0 16px; padding-left: 1.3em; }
.content-page li { margin-bottom: 8px; }
.content-page table { width: 100%; border-collapse: collapse; margin: 0 0 20px; background: #fff; border: 1px solid var(--line); }
.content-page th, .content-page td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.content-page th { background: var(--bg-alt); color: var(--ink-soft); font-weight: 600; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }
.callout {
  background: var(--bg-alt);
  border-left: 3px solid var(--stamp);
  border-radius: 0;
  padding: 20px 24px;
  margin: 0 0 24px;
  font-size: 0.92rem;
  color: var(--ink);
}
.callout strong { color: var(--navy); }

.info-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--stamp); }
.info-table th, .info-table td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.info-table th { width: 160px; color: var(--ink-soft); font-weight: 600; background: var(--bg-alt); font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.03em; text-transform: uppercase; }

/* Data charts — framed as attached exhibits (reinforces the dossier concept) */
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0 0 8px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 780px) { .chart-grid { grid-template-columns: 1fr; } }
.chart-block { position: relative; background: #fff; border: none; border-radius: 0; padding: 30px 26px 22px; box-shadow: none; }
.chart-block::before {
  content: "EXHIBIT";
  position: absolute;
  top: 14px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  padding: 2px 6px;
}
.chart-block h3 { margin: 0 0 4px; font-size: 1rem; padding-right: 70px; }
.chart-block .chart-note { font-size: 0.82rem; color: var(--ink-soft); margin: 0 0 16px; }
.chart-legend { display: flex; gap: 18px; margin-bottom: 10px; font-size: 0.82rem; color: var(--ink-soft); flex-wrap: wrap; font-family: var(--font-mono); }
.chart-legend .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.chart-svg-wrap { overflow-x: auto; }
.chart-source { font-size: 0.76rem; color: var(--ink-soft); margin: 10px 0 0; }
.chart-value-label { font-family: var(--font-mono); font-weight: 700; }
.chart-axis-label { font-family: var(--font-mono); }

/* Stat tiles */
.stat-tile { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 0; padding: 32px 26px; text-align: center; box-shadow: none; }
.stat-tile::before {
  content: "EXHIBIT";
  position: absolute;
  top: 12px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}
.stat-icon { width: 48px; height: 48px; border-radius: 2px; border: 1.5px solid var(--navy); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.stat-icon svg { width: 24px; height: 24px; }
.stat-value { font-size: 2.1rem; font-weight: 700; color: var(--navy); line-height: 1.2; font-family: var(--font-display); }
.stat-label { font-size: 0.88rem; color: var(--ink-soft); margin: 4px 0 14px; }
.stat-delta { display: inline-flex; align-items: center; gap: 4px; font-size: 0.85rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: rgba(76,122,79,0.1); color: var(--success); font-family: var(--font-mono); }
.stat-delta svg { width: 12px; height: 12px; }
.stat-delta-note { font-size: 0.78rem; color: var(--ink-soft); margin-top: 10px; }
.stat-sparkline { margin: 16px 0 4px; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: none; }

.service-detail { display: grid; gap: 1px; margin-bottom: 28px; background: var(--line); border: 1px solid var(--line); }
.service-detail .card { display: flex; gap: 26px; align-items: flex-start; text-align: left; border-left: 3px solid var(--stamp); }
.service-detail .card .icon-badge { flex: 0 0 auto; margin-bottom: 0; }
@media (max-width: 640px) { .service-detail .card { flex-direction: column; } }

/* Pitfall rows — ledger warnings with stamp-red rule, no boxed card */
.pitfall-grid { display: block; border-top: 1px solid var(--line); }
.pitfall-card {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 18px;
  row-gap: 4px;
  align-items: start;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid var(--stamp);
  border-radius: 0;
  padding: 22px 22px;
  box-shadow: none;
}
.pitfall-card .icon-badge { grid-row: 1 / span 2; border-color: var(--stamp); color: var(--stamp); width: 40px; height: 40px; margin-bottom: 0; }
.pitfall-card h3, .pitfall-card p { grid-column: 2; }
.pitfall-card .icon-badge svg { width: 20px; height: 20px; }
.pitfall-card h3 { margin: 0 0 6px; font-size: 0.95rem; color: var(--stamp); }
.pitfall-card p { margin: 0; color: var(--ink-soft); font-size: 0.88rem; }

/* Page hero (non-top pages) — paper ground, duotone photo strip instead of dark scrim */
.page-hero {
  position: relative;
  background: linear-gradient(120deg, #FFF6EA 0%, #FFE7D8 100%);
  color: var(--navy);
  padding: 56px 0 64px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, transparent 0%, transparent 92%, var(--stamp) 92%, var(--stamp) 100%);
  pointer-events: none;
}
.page-hero::after {
  content: "";
  position: absolute;
  top: -34px; right: 6%;
  width: 108px; height: 108px;
  border-radius: 50%;
  border: 4px double rgba(255,95,68,0.35);
  transform: rotate(10deg);
}
.page-hero .wrap { position: relative; }
.page-hero h1 { margin: 0 0 14px; font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--navy); text-wrap: balance; }
.page-hero p { margin: 0; color: var(--ink-soft); max-width: 560px; }
@media (max-width: 640px) { .page-hero::after { width: 76px; height: 76px; top: -20px; right: 20px; } }

/* Contact form */
.contact-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 780px) { .contact-layout { grid-template-columns: 1fr; } }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .contact-form .form-row { grid-template-columns: 1fr; } }

.contact-form label { display: flex; flex-direction: column; gap: 8px; font-size: 0.9rem; color: var(--ink-soft); }
.contact-form .req { color: var(--stamp); font-size: 0.72rem; font-weight: 700; }

.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit;
  padding: 12px 14px;
  border-radius: 2px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(122,106,92,0.5); }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,42,74,0.12);
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form button { align-self: flex-start; border: none; cursor: pointer; }
.contact-form button:disabled { opacity: 0.6; cursor: default; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { min-height: 1.4em; font-size: 0.9rem; }
.form-status.is-ok { color: var(--success); }
.form-status.is-error { color: var(--error); }

/* Zoom scheduler embed */
.zoom-scheduler-wrap {
  margin: 0 auto;
  max-width: 750px;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}
.zoom-scheduler-wrap iframe {
  display: block;
  width: 100%;
  height: 620px;
  border: 0;
}
@media (max-width: 560px) {
  .zoom-scheduler-wrap iframe { height: 720px; }
}

/* Footer */
.site-footer { position: relative; background: var(--navy-deep); color: rgba(255,255,255,0.75); padding: 48px 0 28px; font-size: 0.88rem; border-top: 3px solid var(--stamp); }
.site-footer .foot-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; margin-bottom: 28px; }
.site-footer h4 { color: #fff; font-size: 0.74rem; margin: 0 0 12px; letter-spacing: 0.1em; font-family: var(--font-mono); font-weight: 600; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255,255,255,0.75); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .copyright { margin-top: 20px; font-size: 0.78rem; color: rgba(255,255,255,0.4); border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; font-family: var(--font-mono); }
.site-footer img[alt="株式会社FOREVER"] { filter: brightness(0) invert(1); }
.footer-cta-btn {
  display: inline-block;
  margin-top: 6px;
  padding: 8px 16px;
  border-radius: 2px;
  background: var(--stamp);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  text-decoration: none;
}
.footer-cta-btn:hover { background: var(--stamp-soft); }

/* AI chat widget */
.ai-chat-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--navy);
  box-shadow: 3px 3px 0 var(--stamp);
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
}
.ai-chat-fab::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(178,58,46,0.4);
  animation: fabPulse 2.2s ease-out infinite;
}
@keyframes fabPulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.35); opacity: 0; }
}
.ai-chat-fab svg { width: 26px; height: 26px; fill: #fff; }
.ai-chat-fab .ai-chat-fab-close { display: none; color: #fff; font-size: 1.4rem; line-height: 1; }
.ai-chat-fab.is-open .ai-chat-fab-icon { display: none; }
.ai-chat-fab.is-open .ai-chat-fab-close { display: block; }
.ai-chat-fab.is-open::before { display: none; }

.ai-chat-panel {
  position: fixed;
  right: 24px;
  bottom: 92px;
  width: 340px;
  max-width: calc(100vw - 32px);
  height: 460px;
  max-height: calc(100vh - 140px);
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(14, 24, 48, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 199;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.ai-chat-panel.is-open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.ai-chat-panel-head {
  background: var(--navy);
  color: #fff;
  padding: 14px 18px;
  display: flex; align-items: center; gap: 8px;
  font-size: 0.88rem; font-weight: 700;
  flex-shrink: 0;
}
.ai-chat-panel-head .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #3DDC84; box-shadow: 0 0 6px #3DDC84;
  flex-shrink: 0;
}
.ai-chat-panel-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--bg-alt);
}
.ai-chat-msg {
  max-width: 84%;
  padding: 9px 13px;
  border-radius: 4px;
  font-size: 0.86rem;
  line-height: 1.55;
  white-space: pre-wrap;
}
.ai-chat-msg.from-user {
  align-self: flex-end;
  background: var(--navy);
  color: #fff;
}
.ai-chat-msg.from-ai {
  align-self: flex-start;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.ai-chat-msg.is-typing { display: flex; gap: 4px; align-items: center; padding: 12px 14px; }
.ai-chat-msg.is-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-soft);
  animation: aiTypingBounce 1.1s infinite ease-in-out;
}
.ai-chat-msg.is-typing span:nth-child(2) { animation-delay: 0.15s; }
.ai-chat-msg.is-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes aiTypingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}
.ai-chat-panel-foot {
  flex-shrink: 0;
  display: flex; gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.ai-chat-panel-foot input {
  flex: 1 1 auto;
  font: inherit;
  font-size: 0.86rem;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
}
.ai-chat-panel-foot input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,42,74,0.15);
}
.ai-chat-panel-foot button {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--navy);
  color: #fff;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
}
.ai-chat-panel-foot button:disabled { opacity: 0.5; cursor: default; }
.ai-chat-panel-note {
  font-size: 0.68rem;
  color: var(--ink-soft);
  text-align: center;
  padding: 0 12px 10px;
  background: #fff;
}
.ai-chat-cta-btn {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--stamp);
  color: #fff !important;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
}
.ai-chat-cta-btn:hover { background: var(--stamp-soft); }

@media (prefers-reduced-motion: reduce) {
  .ai-chat-fab::before { animation: none; }
  .ai-chat-msg.is-typing span { animation: none; }
}

@media (max-width: 480px) {
  .ai-chat-panel { right: 16px; left: 16px; width: auto; bottom: 84px; }
  .ai-chat-fab { right: 16px; bottom: 16px; }
}
