/* =========================================================
   tripman corporate site — style.css
   Brand: #0085de (logo blue) / #003a6b (deep navy accent)
   Font : Noto Sans JP (JA), Poppins (Latin display)
   ========================================================= */

:root {
  --brand: #0085de;
  --brand-dark: #006cb8;
  --ink: #003a6b;
  --ink-deep: #012a4f;
  --text: #1b2b3a;
  --muted: #5b7288;
  --line: #d9e6f2;
  --bg: #ffffff;
  --bg-alt: #f4f8fc;
  --bg-tint: #eaf3fb;
  --white: #ffffff;
  --maxw: 1120px;
  --gutter: 24px;
  --header-h: 84px;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(3, 42, 79, .06), 0 6px 20px rgba(3, 42, 79, .06);
  --shadow-md: 0 10px 40px rgba(3, 42, 79, .12);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font-ja: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --font-latin: "Poppins", var(--font-ja);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-ja);
  color: var(--text);
  background: var(--bg);
  line-height: 1.9;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ---------- layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: 96px; position: relative; }
.section--alt { background: var(--bg-alt); }
.section--tint { background: var(--bg-tint); }

@media (max-width: 767px) {
  .section { padding-block: 56px; }
}

/* ---------- eyebrow / headings ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 20px;
}
.eyebrow::before {
  content: "";
  width: 2px;
  height: 1.15em;
  background: var(--brand);
  display: inline-block;
}
.section--dark .eyebrow { color: #7cc4f2; }
.section--dark .eyebrow::before { background: #7cc4f2; }

.h2 {
  font-size: clamp(1.55rem, 1.1rem + 1.9vw, 2.3rem);
  line-height: 1.5;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 20px;
  letter-spacing: .01em;
}
.section--dark .h2 { color: #fff; }

.lead {
  font-size: 1.02rem;
  color: var(--muted);
  margin: 0 0 8px;
}
.section--dark .lead { color: rgba(255, 255, 255, .82); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn svg { width: 1em; height: 1em; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn--onDark { background: #fff; color: var(--ink); }
.btn--onDark:hover { background: var(--bg-tint); transform: translateY(-2px); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: height .3s var(--ease), background-color .3s, box-shadow .3s;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
}
/* NOTE: the blurred background lives on a ::before, not on .site-header itself.
   backdrop-filter/filter/transform on .site-header would create a new
   containing block for its fixed-position descendants (the mobile nav drawer),
   which is what caused the drawer to render off-screen once the page scrolled. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .3s;
}
.site-header.is-scrolled {
  height: 64px;
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-scrolled::before { opacity: 1; }

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  flex-shrink: 0;
}
.brand__logo { height: 32px; width: auto; }
.brand__tag {
  font-size: .64rem;
  letter-spacing: .02em;
  line-height: 1.35;
  color: var(--muted);
}
.site-header.is-scrolled .brand { gap: 0; }
.site-header.is-scrolled .brand__logo { height: 27px; }
.site-header.is-scrolled .brand__tag { display: none; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav__links { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-size: .88rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding-block: 6px;
  white-space: nowrap;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }

.lang {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--font-latin);
  font-size: .76rem;
  font-weight: 600;
}
.lang button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 6px 12px;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.lang button[aria-pressed="true"] { background: var(--brand); color: #fff; }

/* header-level copy (same markup, same JS listeners via .lang selector):
   shown instead of the in-drawer one once the drawer becomes off-canvas,
   so JP/EN stays reachable without opening the menu */
.lang--header { display: none; }

.nav__cta { display: inline-flex; }

.hamburger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}
.hamburger span, .hamburger span::before, .hamburger span::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform .25s var(--ease), opacity .2s;
}
.hamburger span::before { position: absolute; top: -6px; }
.hamburger span::after { position: absolute; top: 6px; }
.is-menu-open .hamburger span { background: transparent; }
.is-menu-open .hamburger span::before { transform: translateY(6px) rotate(45deg); }
.is-menu-open .hamburger span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1040px) {
  .brand__tag { display: none; }
  .hamburger { display: inline-flex; margin-left: 0; }
  .nav > .lang { display: none; }
  .lang--header { display: inline-flex; margin-left: auto; }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(82vw, 340px);
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: calc(var(--header-h) + 20px) 28px 40px;
    box-shadow: var(--shadow-md);
    transform: translateX(100%);
    transition: transform .35s var(--ease);
    overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__links { flex-direction: column; gap: 4px; }
  .nav__links a {
    /* .nav__links's flex items are the <li>s, not these <a>s — an <a> stays
       display:inline by default, so its padding paints but reserves no
       vertical space and margin-bottom is ignored outright. That silently
       broke every spacing fix attempted here until this line was added:
       without it the active item's highlight visually overlapped its
       neighbor regardless of how large the margin was set. */
    display: block;
    padding: 14px 4px 2px 14px;
    margin-bottom: 48px;
    border-bottom: 1px solid var(--line);
    border-left: 3px solid transparent;
    font-size: 1rem;
  }
  /* the hover underline is tuned for the inline desktop nav; in the stacked
     mobile drawer it sat detached from the text, which read as "misaligned" */
  .nav__links a::after { display: none; }
  .nav__links a[aria-current="page"] {
    border-left-color: var(--brand);
    color: var(--brand);
    font-weight: 700;
    background: var(--bg-tint);
  }
  .nav__tagline {
    display: block;
    font-size: .78rem;
    color: var(--muted);
    margin: 8px 0 20px;
  }
  .lang { align-self: flex-start; margin-top: 22px; }
  .nav__cta { margin-top: 18px; }
  .nav__cta .btn { width: 100%; justify-content: center; }
}
@media (min-width: 1041px) {
  .nav__tagline { display: none; }
}

.nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(1, 42, 79, .35);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s;
  z-index: 99;
}
.is-menu-open .nav-scrim { opacity: 1; visibility: visible; }

/* =========================================================
   Hero + date-change-line animation
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 78% 0%, #eaf4fd 0%, rgba(234, 244, 253, 0) 60%),
    linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
}

/* left / right faint brightness split (yesterday / tomorrow) — pivots on the main line (~22%) */
.hero__split {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(3, 42, 79, .028) 0%, rgba(3, 42, 79, .022) 21.5%, rgba(255, 255, 255, 0) 22.5%, rgba(255, 255, 255, 0) 100%);
  opacity: 1;
}
.hero.anim-ready .hero__split { animation: splitIn 1s ease .5s both; }
.hero.is-revealed .hero__split { animation: none; }
@keyframes splitIn { from { opacity: 0; } to { opacity: 1; } }

/* the descending lines */
.dateline {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.dateline span {
  position: absolute;
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 133, 222, 0) 0%, rgba(0, 133, 222, .5) 18%, rgba(0, 133, 222, .5) 82%, rgba(0, 133, 222, 0) 100%);
  transform-origin: top;
  /* resting state = visible (thumbnail / no-JS shows the full hero) */
  transform: scaleY(1);
  opacity: .16;
}

/* main line: the International Date Line, drawn as a real zig-zag */
.dateline__idl {
  position: absolute;
  top: 0;
  height: 100%;
  width: 190px;              /* viewBox 100 wide → 1.9x */
  left: calc(16% - 38px);    /* vertical body (x≈20) lands near 16% of the viewport */
  overflow: visible;
}
.dateline__idl path {
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.75;
  stroke-linejoin: miter;
  vector-effect: non-scaling-stroke;
  opacity: .42;   /* resting state = fully drawn, sits behind the type */
}

/* animation plays only once JS marks the hero ready (v1.1: slowed down per review feedback) */
.hero.anim-ready .dateline span { animation: lineDrop 1.5s var(--ease) both; }
.hero.anim-ready .dateline span:nth-of-type(1) { animation-delay: .16s; }
.hero.anim-ready .dateline span:nth-of-type(2) { animation-delay: .36s; }
.hero.anim-ready .dateline span:nth-of-type(3) { animation-delay: .56s; }
.hero.anim-ready .dateline span:nth-of-type(4) { animation-delay: .76s; }
.hero.anim-ready .dateline__idl path {
  stroke-dasharray: 1900;
  animation: idlDraw 1.9s var(--ease) 0s both;
}
.hero.is-revealed .dateline span { animation: none; }
.hero.is-revealed .dateline__idl path { animation: none; stroke-dashoffset: 0; }

@keyframes lineDrop {
  0%   { transform: scaleY(0); opacity: .9; }
  70%  { transform: scaleY(1); opacity: .7; }
  100% { transform: scaleY(1); opacity: .16; }
}
@keyframes idlDraw {
  from { stroke-dashoffset: 1900; opacity: .8; }
  to   { stroke-dashoffset: 0; opacity: .42; }
}

/* giant faint circle mark echo */
.hero__mark {
  position: absolute;
  right: -8vw;
  top: 50%;
  transform: translateY(-50%);
  width: min(52vw, 620px);
  aspect-ratio: 1;
  border: 2px solid rgba(0, 133, 222, .12);
  border-radius: 50%;
  z-index: 0;
}

.hero__inner { position: relative; z-index: 3; padding-block: 120px; max-width: 760px; }

.hero__eyebrow {
  font-family: var(--font-latin);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .8rem;
  color: var(--brand);
  margin: 0 0 26px;
}
.hero__title {
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: clamp(2.2rem, 1.2rem + 4.6vw, 4rem);
  line-height: 1.16;
  color: var(--ink-deep);
  margin: 0 0 18px;
  letter-spacing: .005em;
  text-wrap: balance;
}
.hero__title em {
  display: block;
  font-family: var(--font-ja);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(.92rem, .8rem + .6vw, 1.15rem);
  line-height: 1.8;
  color: var(--muted);
  margin-top: 16px;
  letter-spacing: .04em;
}
.hero__sub {
  font-size: clamp(1.05rem, .95rem + .7vw, 1.4rem);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 40px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* enhancement: fade-up runs once when JS adds .anim-ready; resting state is fully visible */
/* v1.1追加修正: 日付変更線アニメーション後に続けて表示される文章が
   早送りに見えるとの指摘を受け、表示速度を0.8倍（時間を1.25倍）に調整 */
.hero.anim-ready .hero__eyebrow { animation: heroUp .75s var(--ease) 1.56s both; }
.hero.anim-ready .hero__title   { animation: heroUp .88s var(--ease) 1.73s both; }
.hero.anim-ready .hero__sub     { animation: heroUp .88s var(--ease) 1.9s both; }
.hero.anim-ready .hero__actions { animation: heroUp .88s var(--ease) 2.05s both; }
.hero.is-revealed .hero__eyebrow,
.hero.is-revealed .hero__title,
.hero.is-revealed .hero__sub,
.hero.is-revealed .hero__actions { animation: none; }

@keyframes heroUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  font-family: var(--font-latin);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero__scroll::after {
  content: "";
  width: 1px; height: 40px;
  background: linear-gradient(var(--brand), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(.4); opacity: .4; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
}

@media (max-width: 767px) {
  .hero { min-height: 90svh; }
  .hero__inner { padding-block: 104px 72px; }
  .hero__mark { width: 62vw; right: -16vw; top: 30%; }
  .dateline span:nth-of-type(n+3) { display: none; }
  .dateline__idl { width: 150px; left: calc(13% - 30px); opacity: .8; }
  .hero__eyebrow { margin-bottom: 20px; font-size: .72rem; }
  .hero__sub { margin-bottom: 32px; }
  .hero__actions { gap: 10px; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__split { opacity: 1; transition: none; }
  .hero .dateline span,
  .hero.anim-ready .dateline span { animation: none; transform: scaleY(1); }
  .hero.anim-ready .dateline__idl path { animation: none; stroke-dashoffset: 0; }
  .hero.anim-ready .hero__eyebrow,
  .hero.anim-ready .hero__title,
  .hero.anim-ready .hero__sub,
  .hero.anim-ready .hero__actions { animation: none; }
  .hero__scroll::after { animation: none; }
}

/* =========================================================
   Generic content blocks
   ========================================================= */
.block-head { max-width: 720px; margin-bottom: 48px; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }

.stack > * + * { margin-top: 1.1em; }

/* top-page Partner block: the right column's plain paragraph sat visually
   higher than the left eyebrow+heading's text baseline — nudge it down to
   align both columns' top edges */
#partner .split > .stack { padding-top: 6px; }

/* pv/value panel */
.pv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  position: relative;
  overflow: hidden;
}
.pv::before {
  content: "";
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 1px;
  background: repeating-linear-gradient(180deg, var(--brand) 0 6px, transparent 6px 14px);
  opacity: .5;
}
.pv h3 {
  font-family: var(--font-latin);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 14px;
}
.pv p { margin: 0; }
.pv .pv__main { font-size: 1.12rem; font-weight: 700; color: var(--ink); line-height: 1.7; }
.pv .pv__note { margin-top: 10px; font-size: .92rem; color: var(--muted); }
@media (max-width: 860px) {
  /* v1.1: the old absolute-positioned divider assumed both columns were the
     same height and cut through the VALUE text when they weren't. Using a
     normal border between the stacked blocks keeps a fixed, predictable gap. */
  .pv { grid-template-columns: 1fr; gap: 0; }
  .pv::before { display: none; }
  .pv > div:first-child { padding-bottom: 28px; }
  .pv > div + div { padding-top: 28px; border-top: 1px dashed rgba(0, 133, 222, .4); }
}

/* service cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

/* exactly-2 service cards (top page): center as a balanced pair instead of
   sitting in a 3-column track with empty space on the right */
.cards--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; margin-inline: auto; }
@media (max-width: 860px) { .cards--pair { grid-template-columns: 1fr; max-width: none; } }
@media (min-width: 861px) { .cards--pair .card__ttl > span { white-space: nowrap; } }

/* exactly-4 cards (partner "What we bring"): 2x2 instead of 3+1 */
.cards--2x2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .cards--2x2 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card__ttl {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px;
}
.card__ttl small {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-family: var(--font-latin);
  margin-bottom: 4px;
}
.card p { margin: 0 0 20px; font-size: .95rem; color: var(--text); }
.card__link {
  margin-top: auto;
  font-weight: 700;
  font-size: .9rem;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: .4em;
}
.card:hover .card__link { gap: .7em; }

/* case list — the JP card titles don't reliably fit a 1fr-of-3 column, so
   cards get a guaranteed minimum width and titles never wrap; once 3 of them
   no longer fit the row at that width, the row scrolls horizontally instead
   of wrapping the title text */
.cases {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 440px;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}
.cases::-webkit-scrollbar { height: 6px; }
.cases::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.case {
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  background: #fff;
}
.case__tag {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--brand);
  background: var(--bg-tint);
  border-radius: 999px;
  padding: 4px 12px;
  display: inline-block;
  margin-bottom: 14px;
}
.case h3 { font-size: 1.05rem; color: var(--ink); margin: 0 0 10px; line-height: 1.6; white-space: nowrap; }

/* hints that the CASE row scrolls horizontally */
.scroll-hint {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin: 16px 0 0;
  font-family: var(--font-latin);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-hint svg { width: 15px; height: 15px; color: var(--brand); }
.scroll-hint svg:nth-of-type(1) { animation: scrollHintNudge 1.6s ease-in-out infinite; }
.scroll-hint svg:nth-of-type(2) { animation: scrollHintNudge 1.6s ease-in-out infinite .25s; }
@keyframes scrollHintNudge {
  0%, 100% { transform: translateX(0); opacity: .45; }
  50% { transform: translateX(4px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-hint svg { animation: none; }
}
@media (max-width: 640px) {
  .cases { grid-auto-columns: min(90vw, 340px); }
  .case { padding: 24px 18px; }
  .case h3 { font-size: .8rem; }
  .case__tag { font-size: .66rem; padding: 3px 10px; }
  .case p { font-size: .86rem; }
}
.case p { margin: 0; font-size: .9rem; color: var(--muted); }

/* comm highlight strip inside intro */
.comm {
  margin-top: 34px;
  padding: 28px 30px;
  border-radius: var(--radius);
  background: var(--bg-tint);
  border-left: 3px solid var(--brand);
}
.comm h3 {
  margin: 0 0 12px;
  font-size: 1.02rem;
  color: var(--ink);
}
.comm ul { margin: 0; padding-left: 1.2em; }
.comm li { margin: .3em 0; font-size: .94rem; }
/* v1.1: when the card sits beside body text in a two-column grid (about.html
   "Mission"), drop the top margin meant for the stacked (index.html) context
   so its top edge lines up with the heading/body column next to it */
.split > .comm { margin-top: 0; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--ink) 0%, var(--ink-deep) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band .wrap { position: relative; text-align: center; padding-block: 72px; }
.cta-band h2 {
  font-size: clamp(1.4rem, 1rem + 2vw, 2.1rem);
  margin: 0 0 26px;
  color: #fff;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding-block: 64px 30px;
}
.site-footer .f-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 860px) { .site-footer .f-top { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { .site-footer .f-top { grid-template-columns: 1fr; } }

/* v1.1: a dashed rule separates the brand block from the link columns —
   vertical on desktop/tablet, horizontal once it stacks on mobile */
.site-footer .f-brand {
  padding-right: 32px;
  background-image: repeating-linear-gradient(180deg, rgba(0, 133, 222, .5) 0 6px, transparent 6px 12px);
  background-repeat: no-repeat;
  background-position: right top;
  background-size: 1px 100%;
}
@media (max-width: 520px) {
  .site-footer .f-brand {
    padding-right: 0;
    padding-bottom: 28px;
    background-position: left bottom;
    background-size: 100% 1px;
  }
}
.site-footer .f-brand .f-logo { height: 26px; width: auto; margin-bottom: 18px; }
.site-footer .f-brand p { margin: 0; font-size: .86rem; color: var(--muted); }
.site-footer .f-brand .f-purpose { color: var(--ink); font-weight: 500; }
.site-footer h4 {
  font-family: var(--font-latin);
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .5em 0; font-size: .9rem; }
.site-footer li a:hover { color: var(--brand); }

.f-divider {
  height: 1px;
  margin: 40px 0 20px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px);
}
.f-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .78rem;
  color: var(--muted);
}
.f-bottom a:hover { color: var(--brand); }

/* EN preparation banner */
.i18n-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%) translateY(140%);
  z-index: 120;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: .82rem;
  box-shadow: var(--shadow-md);
  transition: transform .4s var(--ease);
  max-width: calc(100vw - 32px);
}
.i18n-banner.is-shown { transform: translateX(-50%) translateY(0); }
.i18n-banner button {
  background: transparent;
  border: 0;
  color: #7cc4f2;
  cursor: pointer;
  margin-left: 10px;
  font-weight: 700;
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Interior pages
   ========================================================= */
.subhead {
  position: relative;
  padding-top: calc(var(--header-h) + 64px);
  padding-bottom: 56px;
  background: linear-gradient(180deg, #f4f9fd 0%, #ffffff 100%);
  overflow: hidden;
}
.subhead .wrap { position: relative; }
.subhead h1 {
  font-size: clamp(1.7rem, 1.2rem + 2.4vw, 2.6rem);
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 14px;
  text-wrap: balance;
}
.subhead .subhead__lead { max-width: 60ch; margin: 0; color: var(--muted); }
.subhead .subhead__comm {
  margin: 14px 0 0;
  font-size: .9rem;
  color: var(--brand-dark);
}

.measure { max-width: 68ch; }
.measure > * + * { margin-top: 1.1em; }

/* generic section heading inside interior pages */
.sec-head { max-width: 720px; margin-bottom: 40px; }
.sec-head .h3 {
  font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem);
  color: var(--ink);
  margin: 8px 0 0;
  font-weight: 700;
}

/* service detail blocks */
.svc-block { padding-block: 64px; border-top: 1px solid var(--line); }
.svc-block:first-of-type { border-top: 0; }
.svc-block__grid { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
@media (max-width: 820px) { .svc-block__grid { grid-template-columns: 1fr; gap: 18px; } }
.svc-block__label { position: sticky; top: 90px; }
@media (max-width: 820px) {
  /* sticky kept the label pinned while the reader scrolled past the list
     text underneath it, so on narrow screens it just scrolls normally */
  .svc-block__label { position: static; top: auto; }
}
.svc-block__label .tag {
  font-family: var(--font-latin);
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--brand);
  font-size: .9rem;
}
.svc-block__label h2 {
  font-size: 1.4rem;
  color: var(--ink);
  margin: 6px 0 0;
  line-height: 1.5;
}
.svc-list { list-style: none; margin: 0; padding: 0; }
.svc-list li {
  position: relative;
  padding-left: 22px;
  margin: .55em 0;
}
.svc-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .7em;
  width: 8px; height: 8px;
  border: 1.5px solid var(--brand);
  border-radius: 50%;
}
.svc-list li strong { color: var(--ink); font-weight: 700; }

/* steps (partner flow) */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  position: relative;
  padding: 0 0 34px 64px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-latin);
  font-weight: 700;
}
.steps li::after {
  content: "";
  position: absolute;
  left: 19px; top: 46px; bottom: 6px;
  width: 2px;
  background: repeating-linear-gradient(180deg, var(--line) 0 6px, transparent 6px 12px);
}
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps li h3 { margin: 8px 0 6px; font-size: 1.05rem; color: var(--ink); }
.steps li p { margin: 0; color: var(--muted); font-size: .95rem; }

/* info table (company) */
.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td {
  text-align: left;
  vertical-align: top;
  padding: 18px 16px;
  border-bottom: 1px solid var(--line);
  font-size: .96rem;
}
.info-table th {
  width: 220px;
  color: var(--ink);
  font-weight: 700;
  background: var(--bg-alt);
}
@media (max-width: 640px) {
  .info-table, .info-table tbody, .info-table tr, .info-table th, .info-table td { display: block; width: 100%; }
  .info-table th { border-bottom: 0; padding-bottom: 4px; }
  .info-table td { padding-top: 4px; }
}

/* prose (privacy) */
.prose { max-width: 74ch; }
.prose h2 {
  font-size: 1.15rem;
  color: var(--ink);
  margin: 2em 0 .6em;
  padding-left: 14px;
  border-left: 3px solid var(--brand);
}
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose a { color: var(--brand-dark); text-decoration: underline; }

/* contact form */
.form { max-width: 640px; }
.form__row { margin-bottom: 22px; }
.form__row label {
  display: block;
  font-weight: 700;
  color: var(--ink);
  font-size: .92rem;
  margin-bottom: 8px;
}
.form__row .req { color: #c0392b; font-size: .8em; margin-left: .4em; }
.form__row input[type="text"],
.form__row input[type="email"],
.form__row input[type="tel"],
.form__row select,
.form__row textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 14px;
  font: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.form__row textarea { min-height: 150px; resize: vertical; }
.form__row input:focus,
.form__row select:focus,
.form__row textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0,133,222,.15);
}
.form__consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--text); }
.form__consent input { margin-top: .25em; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__error {
  background: #fdecea;
  border: 1px solid #f5c6c0;
  color: #a5342a;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: .92rem;
}
.form__ok {
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 10px;
  padding: 28px 26px;
}
.form__ok h2 { margin: 0 0 8px; color: var(--ink); font-size: 1.15rem; }
.form__ok p { margin: 0; color: var(--text); }
.field-invalid { border-color: #c0392b !important; }

/* small helpers */
.center { text-align: center; }
.mt-40 { margin-top: 40px; }
.lead-list { list-style: none; margin: 0; padding: 0; }
.lead-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.lead-list li:last-child { border-bottom: 0; }

/* anchored sections clear the fixed header */
[id] { scroll-margin-top: 96px; }

/* v1.1: a few short lead sentences should read as one line down to tablet
   width; only wrap them once the viewport is too narrow to avoid it */
.nowrap-lead { white-space: nowrap; }
@media (max-width: 600px) {
  .nowrap-lead { white-space: normal; }
}

/* English copy is longer than the Japanese it replaces: let the
   Japanese-sized single-line rules wrap instead of overflowing */
html[lang="en"] .nowrap-lead,
html[lang="en"] .case h3,
html[lang="en"] .cards--pair .card__ttl > span,
html[lang="en"] #partner .h2 { white-space: normal !important; }

/* line break shown on desktop/tablet only; treated as a space on mobile */
.br-desktop { display: none; }
@media (min-width: 601px) {
  .br-desktop { display: inline; }
}
