/* ============================================================
   corporate-service.css — shared parts for corporate /service/* pages
   Section head / P5 flow / P8 CTA / P9 trust strip.
   Blueprint: 2026-07-05_fable5_business_service_blueprint/01 (§3, §5).
   Navy faces are reserved for hero + CTA; these parts stay on paper
   except .c-corp-cta.
   ============================================================ */

/* ---- corporate page design tokens v0.1 ----
   These are page-family aliases over core.css/home DNA. Individual
   service pages should compose with --corp-* before adding page-specific
   exceptions, so the group stays visually connected to the top page. */
.p-service-hub,
.p-corporate-service {
  --corp-navy: var(--navy);
  --corp-navy-deep: var(--navy-deep);
  --corp-navy-soft: var(--navy-pale);
  --corp-paper: var(--paper);
  --corp-paper-plain: #fffdf9;
  --corp-neutral: var(--neutral);
  --corp-surface: rgba(255, 255, 255, 0.82);
  --corp-surface-strong: var(--white);
  --corp-ink: var(--heading);
  --corp-ink-body: var(--ink);
  --corp-muted: var(--muted);
  --corp-gold: var(--gold);
  --corp-ibis-accent: var(--ibis);
  --corp-line: var(--hairline);
  --corp-line-gold: rgba(185, 135, 47, 0.22);
  --corp-shadow-soft: var(--shadow-soft);
  --corp-shadow-card: var(--shadow-card);
  --corp-shadow-panel: var(--shadow-panel);
  --corp-radius-card: var(--radius-card);
  --corp-radius-panel: var(--radius-panel);
  --corp-radius-soft: var(--radius-soft);
  --corp-section-y: var(--section-y);
  --corp-section-y-tight: var(--section-y-tight);
  --corp-hero-min-block: clamp(420px, 48vw, 540px);
  --corp-hero-copy-width: min(560px, 100%);
  --corp-hero-overlay-desktop: linear-gradient(
    90deg,
    rgba(255, 253, 249, 0.96) 0%,
    rgba(255, 253, 249, 0.9) 40%,
    rgba(255, 253, 249, 0.58) 58%,
    rgba(255, 253, 249, 0.1) 76%,
    rgba(255, 253, 249, 0) 100%
  );
  --corp-hero-overlay-mobile: linear-gradient(
    180deg,
    rgba(255, 253, 249, 0.98) 0%,
    rgba(255, 253, 249, 0.94) 46%,
    rgba(255, 253, 249, 0.68) 68%,
    rgba(255, 253, 249, 0.12) 100%
  );

  /*
   * Corporate detail page family.
   * Salary calculation and employment rules now prove these meanings across
   * two thick service pages. Page CSS may keep compatibility aliases while
   * section renderers are migrated independently.
   */
  --corp-detail-paper: #fbf7ef;
  --corp-detail-paper-strong: #fffdf9;
  --corp-detail-ink: var(--corp-ink);
  --corp-detail-body: var(--corp-ink-body);
  --corp-detail-muted: var(--corp-muted);
  --corp-detail-accent: var(--corp-gold);
  --corp-detail-line: rgba(29, 59, 114, 0.15);
  --corp-detail-line-strong: rgba(29, 59, 114, 0.26);
  --corp-detail-action-duration: 0.2s;
  --corp-detail-action-ease: ease;
  --corp-detail-action-lift: -2px;
  --corp-detail-action-arrow-shift: 3px;

  --corp-detail-hero-ink: var(--corp-navy-deep);
  --corp-detail-hero-body: var(--corp-ink-body);
  --corp-detail-hero-muted: var(--corp-muted);
  --corp-detail-hero-accent: var(--corp-gold);
  --corp-detail-hero-paper-start: var(--corp-paper-plain);
  --corp-detail-hero-paper-mid: #fbf6ec;
  --corp-detail-hero-paper-end: #f8efe1;
  --corp-detail-hero-title-size: clamp(2.9rem, 4.3vw, 4.15rem);
  --corp-detail-hero-title-leading: 1.23;
  --corp-detail-hero-lead-size: clamp(0.88rem, 0.96vw, 0.97rem);
  --corp-detail-hero-content-width: 1260px;
  --corp-detail-hero-visual-width: 495px;
  --corp-detail-hero-min-block: clamp(690px, 52vw, 748px);
  --corp-detail-hero-window-radius: 50% 50% 30px 30px / 44% 44% 30px 30px;
  --corp-detail-hero-window-shadow: 0 22px 54px rgba(23, 49, 95, 0.11);

  --corp-detail-editorial-ink: var(--corp-detail-hero-ink);
  --corp-detail-editorial-body: var(--corp-detail-body);
  --corp-detail-editorial-muted: var(--corp-detail-muted);
  --corp-detail-editorial-accent: var(--corp-detail-accent);
  --corp-detail-editorial-paper: var(--corp-detail-paper);
  --corp-detail-editorial-surface: var(--corp-detail-paper-strong);
  --corp-detail-editorial-blue-surface: #e4f0f4;
  --corp-detail-editorial-line: var(--corp-detail-line);
  --corp-detail-editorial-line-strong: var(--corp-detail-line-strong);
  --corp-detail-editorial-title-size: clamp(2.35rem, 3.2vw, 3.2rem);
  --corp-detail-editorial-title-leading: 1.38;
  --corp-detail-editorial-content-width: 1240px;
  --corp-detail-editorial-section-y-start: clamp(142px, 12vw, 188px);
  --corp-detail-editorial-section-y-end: clamp(104px, 9vw, 142px);

  /* Corporate detail concern records. */
  --corporate-concerns-ink: var(--corp-navy-deep);
  --corporate-concerns-body: var(--corp-ink-body);
  --corporate-concerns-muted: var(--corp-muted);
  --corporate-concerns-accent: var(--corp-gold);
  --corporate-concerns-paper: var(--corp-paper);
  --corporate-concerns-surface: var(--corp-paper-plain);
  --corporate-concerns-line: rgba(23, 49, 95, 0.14);
  --corporate-concerns-wash: #eaf3f7;
  --corporate-concerns-content-width: 1260px;
  --corporate-concerns-section-y-start: clamp(112px, 9vw, 150px);
  --corporate-concerns-section-y-end: clamp(94px, 7vw, 124px);

  /* Corporate detail three-feature triptych. */
  --corp-detail-features-ink: var(--corp-detail-editorial-ink);
  --corp-detail-features-copy: var(--corp-detail-editorial-body);
  --corp-detail-features-muted: var(--corp-detail-editorial-muted);
  --corp-detail-features-accent: var(--corp-detail-editorial-accent);
  --corp-detail-features-paper: #f7f2e9;
  --corp-detail-features-surface: var(--corp-detail-editorial-surface);
  --corp-detail-features-blue-surface: #e4f0f4;
  --corp-detail-features-cream-surface: #f3e7c8;
  --corp-detail-features-coral-surface: #f4ddd3;
  --corp-detail-features-line: var(--corp-detail-editorial-line);
  --corp-detail-features-content-width: 1380px;
  --corp-detail-features-title-size: var(--corp-detail-editorial-title-size);
  --corp-detail-features-title-leading: var(--corp-detail-editorial-title-leading);
  --corp-detail-features-section-y-start: clamp(112px, 9vw, 148px);
  --corp-detail-features-section-y-end: clamp(88px, 7vw, 116px);
  --corp-detail-features-shadow: 0 26px 60px rgba(23, 52, 95, 0.075);

  /* Corporate detail three-step contract flow. */
  --corp-detail-flow-ink: var(--corp-detail-editorial-ink);
  --corp-detail-flow-copy: var(--corp-detail-editorial-body);
  --corp-detail-flow-muted: var(--corp-detail-editorial-muted);
  --corp-detail-flow-accent: var(--corp-detail-editorial-accent);
  --corp-detail-flow-paper: var(--corp-detail-editorial-paper);
  --corp-detail-flow-surface: var(--corp-detail-editorial-surface);
  --corp-detail-flow-blue-soft: #e3f0f6;
  --corp-detail-flow-gold-soft: #f4e7c7;
  --corp-detail-flow-coral-soft: #f5ddd2;
  --corp-detail-flow-blue: #698ba8;
  --corp-detail-flow-coral: #c87862;
  --corp-detail-flow-line: var(--corp-detail-editorial-line);
  --corp-detail-flow-content-width: 1320px;
  --corp-detail-flow-title-size: var(--corp-detail-editorial-title-size);
  --corp-detail-flow-title-leading: var(--corp-detail-editorial-title-leading);
  --corp-detail-flow-title-weight: 500;
  --corp-detail-flow-card-title-weight: 600;
  --corp-detail-flow-section-y-start: clamp(116px, 10vw, 164px);
  --corp-detail-flow-section-y-end: clamp(108px, 9vw, 148px);
}

/* ---- shared section head (japanese heading + gold english caption) ---- */
.c-corp-head {
  margin-bottom: clamp(28px, 4vw, 44px);
}
.c-corp-head__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0;
  font-weight: var(--fw-label);
  color: var(--corp-gold, var(--gold));
}
.c-corp-head__eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--corp-gold, var(--gold));
}
.c-corp-head__title {
  margin-top: 10px;
  font-size: var(--fs-section-title);
  line-height: var(--lh-heading);
  color: var(--corp-ink, var(--heading));
  /* phrase-aware wrap on supporting browsers; harmless fallback elsewhere */
  word-break: auto-phrase;
  text-wrap: balance;
}
.c-corp-head__lead {
  margin-top: 14px;
  max-width: 40em;
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  color: var(--corp-muted, var(--muted));
}

/* ---- P5 flow (numbered steps, on paper) ---- */
.c-corp-flow {
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 8vw, 100px);
  background: var(--corp-paper, var(--paper));
}

.c-corp-flow .c-corp-head {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.c-corp-flow .c-corp-head__eyebrow {
  justify-content: center;
  gap: 14px;
  letter-spacing: 0;
}

.c-corp-flow .c-corp-head__eyebrow::after {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--corp-gold, var(--gold));
}

.c-corp-flow .c-corp-head__title {
  font-family: var(--font-serif);
  letter-spacing: 0;
}

.c-corp-flow .c-corp-head__lead {
  margin-inline: auto;
}

.c-corp-flow__steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  gap: clamp(20px, 2.2vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.c-corp-flow__steps::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 7%;
  right: 7%;
  height: 1px;
  background: linear-gradient(90deg, rgba(185, 135, 47, 0.5), rgba(43, 64, 117, 0.3));
  z-index: 0;
}

.c-corp-flow__step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-inline: clamp(4px, 1vw, 12px);
  text-align: center;
}

.c-corp-flow__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--corp-navy-deep, var(--navy-deep));
  color: var(--white);
  box-shadow: 0 8px 18px rgba(29, 45, 86, 0.24), 0 0 0 6px var(--corp-paper, var(--paper));
  font-family: var(--font-serif);
  font-size: 0.94rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0;
  line-height: var(--lh-solid);
}

.c-corp-flow__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-top: 20px;
  border: 1px solid rgba(29, 45, 86, 0.12);
  border-radius: 50%;
  background: var(--corp-surface-strong, var(--white));
  box-shadow: 0 8px 20px rgba(29, 45, 86, 0.07);
  color: var(--corp-navy, var(--navy));
}

.c-corp-flow__icon .tkg-icon {
  width: 28px;
  height: 28px;
}

.c-corp-flow__title {
  margin-top: 16px;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: var(--fw-bold);
  color: var(--corp-ink, var(--heading));
  line-height: 1.6;
  letter-spacing: 0;
}

.c-corp-flow__body {
  margin-top: 10px;
  max-width: 21em;
  font-size: 0.85rem;
  line-height: 1.85;
  color: var(--corp-ink-body, var(--ink));
}

.c-corp-flow__note {
  margin-top: 12px;
  max-width: 22em;
  padding: 7px 12px;
  border: 1px solid rgba(185, 135, 47, 0.3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.76rem;
  line-height: 1.7;
  color: var(--corp-muted, var(--muted));
}

@media (max-width: 900px) {
  .c-corp-flow__steps {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .c-corp-flow__steps::before {
    top: 22px;
    bottom: 22px;
    left: 21px;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, rgba(185, 135, 47, 0.5), rgba(43, 64, 117, 0.3));
  }

  .c-corp-flow__step {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 4px 18px;
    align-items: start;
    padding: 0 0 30px;
    text-align: left;
  }

  .c-corp-flow__step:last-child {
    padding-bottom: 0;
  }

  .c-corp-flow__num {
    grid-row: 1 / span 4;
  }

  .c-corp-flow__icon {
    display: none;
  }

  .c-corp-flow__title {
    margin-top: 8px;
    grid-column: 2;
  }

  .c-corp-flow__body,
  .c-corp-flow__note {
    grid-column: 2;
    max-width: none;
  }
}

/* ---- P8 corporate CTA (split contact panel) ---- */
.c-corp-cta {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 7vw, 88px);
  background: var(--corp-paper, var(--paper));
}

.c-corp-cta__inner {
  max-width: 1160px;
}

.c-corp-cta__panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(29, 45, 86, 0.14);
}

.c-corp-cta__form {
  padding: clamp(30px, 4vw, 48px);
  background: linear-gradient(155deg, var(--corp-navy, var(--navy)) 0%, var(--corp-navy-deep, var(--navy-deep)) 100%);
  color: var(--white);
}

.c-corp-cta__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0;
  font-weight: var(--fw-label);
  color: #d8b46a;
}

.c-corp-cta__eyebrow-icon,
.c-corp-cta__phone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.c-corp-cta__eyebrow-icon {
  width: 30px;
  height: 30px;
  background: rgba(216, 180, 106, 0.16);
}

.c-corp-cta__eyebrow-icon .tkg-icon {
  width: 15px;
  height: 15px;
}

.c-corp-cta__title {
  margin-top: 16px;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--white);
  word-break: auto-phrase;
  text-wrap: balance;
}

.c-corp-cta__lead {
  margin-top: 14px;
  font-size: 0.9rem;
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.85);
}

.c-corp-cta__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  padding: 16px 24px;
  border-radius: var(--radius-pill);
  background: var(--white);
  box-shadow: 0 12px 28px rgba(3, 24, 77, 0.3);
  color: var(--corp-navy-deep, var(--navy-deep));
  font-size: 1rem;
  font-weight: var(--fw-bold);
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.c-corp-cta__btn .tkg-icon {
  width: 18px;
  height: 18px;
}

.c-corp-cta__btn-arrow {
  transition: transform 0.2s ease;
}

.c-corp-cta__btn:hover {
  transform: translateY(-2px);
  background: var(--corp-navy-soft, var(--navy-pale));
}

.c-corp-cta__btn:hover .c-corp-cta__btn-arrow {
  transform: translateX(3px);
}

.c-corp-cta__note {
  margin-top: 14px;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
}

.c-corp-cta__phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(30px, 4vw, 48px);
  background: var(--white);
  text-align: center;
}

.c-corp-cta__phone-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 0.95rem;
  font-weight: var(--fw-bold);
  color: var(--corp-ink, var(--heading));
}

.c-corp-cta__phone-icon {
  width: 34px;
  height: 34px;
  background: rgba(185, 135, 47, 0.14);
  color: var(--corp-gold, var(--gold));
}

.c-corp-cta__phone-icon .tkg-icon {
  width: 17px;
  height: 17px;
}

.c-corp-cta__tel {
  margin-top: 18px;
}

.c-corp-cta__tel a,
.c-corp-cta__tel span {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0;
  color: var(--corp-navy-deep, var(--navy-deep));
  text-decoration: none;
  white-space: nowrap;
}

.c-corp-cta__tel a:hover {
  color: var(--corp-navy, var(--navy));
}

.c-corp-cta__hours {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 0.86rem;
  color: var(--corp-ink-body, var(--ink));
}

.c-corp-cta__hours-badge {
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  background: var(--corp-navy-soft, var(--navy-pale));
  font-size: 0.76rem;
  font-weight: var(--fw-bold);
  color: var(--corp-navy-deep, var(--navy-deep));
  white-space: nowrap;
}

.c-corp-cta__phone-note {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(29, 45, 86, 0.12);
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--corp-muted, var(--muted));
}

@media (max-width: 860px) {
  .c-corp-cta__panel {
    grid-template-columns: 1fr;
  }

  .c-corp-cta__note {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .c-corp-cta__tel a,
  .c-corp-cta__tel span {
    font-size: 1.5rem;
  }
}

/* ---- P9 trust strip (text-first, before footer) ---- */
.c-corp-trust {
  padding-block: var(--corp-section-y-tight, var(--section-y-tight));
  background: var(--corp-neutral, var(--neutral));
  border-top: 1px solid var(--corp-line, var(--hairline));
}
.c-corp-trust .c-corp-head {
  margin-bottom: clamp(20px, 3vw, 32px);
}
.c-corp-trust__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 22px);
}
.c-corp-trust__item {
  padding: 18px 20px;
  background: var(--corp-surface, var(--surface-panel));
  border: 1px solid var(--corp-line, var(--hairline));
  border-radius: var(--corp-radius-card, var(--radius-card));
}
.c-corp-trust__title {
  font-size: var(--fs-label);
  line-height: var(--lh-card);
  color: var(--corp-ink, var(--heading));
}
.c-corp-trust__body {
  margin-top: 6px;
  font-size: var(--fs-caption);
  line-height: var(--lh-note);
  color: var(--corp-muted, var(--muted));
}

@media (max-width: 1023px) {
  .c-corp-trust__list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 519px) {
  .c-corp-trust__list {
    grid-template-columns: 1fr;
  }
}
