/* =========================================================
   言語化と伝達設計 — LP page styles (Kisoutenguys system)
   Relies on colors_and_type.css for tokens + base classes.
   ========================================================= */

:root{
  /* tweakable knobs (Tweaks panel writes these) */
  --lp-lead-font: var(--font-ja-mincho);
  --lp-body-size: 19px;
  --lp-read-w: 760px;
  --lp-accent: var(--accent-magenta);
  --lp-ghost-opacity: 1;
}

html{ scroll-behavior:smooth; }
body{ margin:0; overflow-x:hidden; }
img{ max-width:100%; display:block; }

/* ---------- layout primitives ---------- */
.band{ position:relative; overflow:hidden; }
.band--cream{ background:var(--bg-cream); color:var(--fg); }
.band--white{ background:var(--bg); color:var(--fg); }
.band--navy{ background:var(--bg-navy); color:var(--fg-invert); --fg:var(--fg-invert); --border:var(--fg-invert); }
.band--flash{
  background:linear-gradient(180deg,var(--bg-flash) 8%,var(--bg-flash-deep) 55%,var(--bg-flash) 100%);
  color:var(--fg-invert); --fg:var(--fg-invert); --border:var(--fg-invert);
}
.wrap{ width:100%; max-width:var(--content-w); margin:0 auto; padding:0 var(--gutter); position:relative; z-index:2; }
.pad{ padding-top:152px; padding-bottom:152px; }
.pad-sm{ padding-top:104px; padding-bottom:104px; }

@media (max-width:900px){
  :root{ --gutter:28px; }
  .pad{ padding-top:92px; padding-bottom:92px; }
  .pad-sm{ padding-top:64px; padding-bottom:64px; }
}

/* ---------- ink-drip dividers (real PNG art) ----------
   Each image is a solid colour band that melts into hanging drips with a
   transparent base. The element's inline background-color is the colour of the
   section BELOW, so the transparent gaps blend into it seamlessly; the solid
   band at the top of the art matches the section ABOVE. Aspect ratio is kept
   identical to the source (1567×264) so 100% 100% sizing introduces no
   distortion and every drip stays intact. */
.ink-divider{
  width:100%;
  aspect-ratio:1567 / 264;
  margin:0;
  margin-top:-1px;            /* kill any sub-pixel hairline against the band above */
  position:relative; z-index:2;
  background-repeat:no-repeat;
  background-position:top center;
  background-size:100% 100%;
  pointer-events:none;
}
.ink-divider.is-navy { background-image:url('assets/line_bk.png');  }  /* navy drips  */
.ink-divider.is-cream{ background-image:url('assets/line_wh2.png'); }  /* cream drips */
.ink-divider.is-white{ background-image:url('assets/line_white.png'); }  /* pure-white drips */
.ink-divider.is-flash{ background-image:url('assets/line_pk1.png'); }  /* magenta drips */

@media (max-width:900px){
  /* clamp the height a touch on phones so the drips don't dominate the scroll */
  .ink-divider{ aspect-ratio:1567 / 200; background-size:100% 100%; }
}

/* ---------- section header lockup ---------- */
.sec-head{ display:flex; align-items:center; gap:18px; margin-bottom:26px; }
.sec-num{
  font-family:var(--font-display); font-weight:700; font-size:22px;
  letter-spacing:.06em; color:var(--lp-accent);
  display:inline-flex; align-items:center; gap:18px;
}
.sec-num::after{ content:""; width:56px; height:3px; background:currentColor; display:block; }
.band--navy .sec-num{ color:var(--accent-yellow); }

/* small JP kicker above a list / chip group */
.kicker{
  font-family:var(--font-ja); font-weight:700; font-size:14px; letter-spacing:.04em;
  color:var(--fg-muted); margin-bottom:18px;
}
.kicker--mg{ color:var(--lp-accent); }
.band--navy .kicker{ color:var(--fg-invert); opacity:.7; }

.sec-title{
  font-family:var(--font-ja); font-weight:700;
  font-size:clamp(30px,4.4vw,54px); line-height:1.32; letter-spacing:.005em;
  margin:0 0 40px; text-wrap:balance;
}
.sec-title .mg{ color:var(--lp-accent); }
.band--flash .sec-title .mg,.band--navy .sec-title .mg{ color:var(--accent-yellow); }

/* ---------- body copy ---------- */
.prose{ max-width:var(--lp-read-w); }
.prose p{
  font-family:var(--font-ja); font-size:var(--lp-body-size); line-height:2.0;
  color:inherit; margin:0 0 1.55em; text-wrap:pretty;
}
.band--navy .prose p,.band--flash .prose p{ color:var(--fg-invert); }
.prose p:last-child{ margin-bottom:0; }
.prose .em{ font-weight:700; }
.prose .mk{
  font-weight:700; box-shadow:inset 0 -.5em 0 color-mix(in srgb,var(--lp-accent) 22%, transparent);
}

/* lead statement (mincho, large) */
.lead{
  font-family:var(--lp-lead-font); font-weight:700;
  font-size:clamp(24px,3.1vw,38px); line-height:1.66; letter-spacing:.01em;
  text-wrap:balance; margin:0;
}
.lead .mg{ color:var(--lp-accent); }
.band--flash .lead .mg{ color:var(--accent-yellow); }

/* ---------- ghost wordmark behind content ---------- */
.ghost{
  position:absolute; font-family:var(--font-display); font-weight:700;
  font-size:clamp(140px,26vw,400px); line-height:.8; letter-spacing:-.02em;
  color:var(--accent-magenta-ghost); opacity:calc(.14 * var(--lp-ghost-opacity));
  pointer-events:none; user-select:none; white-space:nowrap; z-index:1;
  top:50%; left:50%; transform:translate(-50%,-50%);
}
.band--navy .ghost{ color:var(--accent-magenta); opacity:calc(.16 * var(--lp-ghost-opacity)); }
.band--flash .ghost{ color:var(--accent-magenta-soft); opacity:calc(.5 * var(--lp-ghost-opacity)); }
.ghost.tl{ top:5%; left:-3%; transform:none; }
.ghost.tr{ top:4%; left:auto; right:-3%; transform:none; text-align:right; }
.ghost.bl{ top:auto; bottom:4%; left:-3%; transform:none; }
.ghost.br{ top:auto; bottom:5%; left:auto; right:-3%; transform:none; text-align:right; }
/* CONCEPT ghost — centred and sized so the outer C and T are each cropped
   roughly in half by the viewport edges, instead of the C dropping off */
.ghost--concept{
  top:3%; left:50%; right:auto; bottom:auto;
  transform:translateX(-50%);
  font-size:clamp(150px,25.5vw,365px);
  text-align:center;
}

/* ---------- pull quote ---------- */
.pull{
  font-family:var(--font-ja); font-weight:700;
  font-size:clamp(26px,3.8vw,46px); line-height:1.5; text-wrap:balance;
  margin:0; position:relative;
}
.pull .mg{ color:var(--lp-accent); }
.pull--bar{ border-left:5px solid var(--lp-accent); padding-left:34px; }
.band--flash .pull--bar,.band--navy .pull--bar{ border-left-color:var(--accent-yellow); }

/* ---------- enumerated symptom / value lists ---------- */
.stack{ display:flex; flex-direction:column; }
.divlist{ list-style:none; margin:0; padding:0; }
.divlist li{
  font-family:var(--font-ja); font-size:clamp(20px,2.2vw,26px); font-weight:500;
  padding:26px 4px; border-top:1px solid currentColor; display:flex; gap:20px; align-items:baseline;
}
.divlist li:last-child{ border-bottom:1px solid currentColor; }
.divlist .idx{
  font-family:var(--font-display); font-weight:700; font-size:16px; opacity:.55;
  min-width:34px;
}
.divlist .ar{ margin-left:auto; font-family:var(--font-display); font-weight:700; opacity:.5; }

/* chips / tag row (touchpoints, media) */
.chips{ display:flex; flex-wrap:wrap; gap:14px; }
.chip{
  font-family:var(--font-ja); font-weight:700; font-size:clamp(15px,1.7vw,19px);
  padding:13px 24px; border:2px solid currentColor; border-radius:var(--radius-pill-sm);
  background:transparent;
}
.band--flash .chip{ border-color:var(--fg-invert); }

/* ---------- impact grid (section 4) ---------- */
.impact{ display:grid; grid-template-columns:repeat(2,1fr); gap:0; border-top:2px solid var(--fg); }
.impact .cell{
  padding:40px 44px 40px 0; border-bottom:2px solid var(--fg);
  display:flex; flex-direction:column; gap:14px;
}
.impact .cell:nth-child(odd){ padding-right:56px; border-right:2px solid var(--fg); padding-left:0; }
.impact .cell:nth-child(even){ padding-left:56px; }
.impact .k{
  font-family:var(--font-display); font-weight:700; font-size:15px; letter-spacing:.06em;
  color:var(--lp-accent); white-space:nowrap;
}
.impact .t{ font-family:var(--font-ja); font-weight:700; font-size:clamp(22px,2.4vw,30px); }
.impact .d{ font-family:var(--font-ja); font-size:var(--fs-body); line-height:1.8; color:var(--fg-default); }
.impact .cell--wide{ grid-column:1 / -1; border-right:none !important; padding-right:0 !important; align-items:center; text-align:center; padding-top:48px; padding-bottom:8px; border-bottom:none; }
.impact .cell--wide .big{ font-family:var(--lp-lead-font); font-weight:700; font-size:clamp(24px,3vw,36px); }

/* ---------- contrast "vs" block (section 2) ---------- */
.vs{ display:grid; grid-template-columns:1fr auto 1fr; gap:0; align-items:stretch; }
.vs .col{ padding:8px 44px; }
.vs .col:first-child{ padding-left:0; }
.vs .col:last-child{ padding-right:0; }
.vs .vline{ width:2px; background:currentColor; opacity:.25; }
.vs .col-h{
  font-family:var(--font-display); font-weight:700; font-size:15px; letter-spacing:.06em;
  margin-bottom:22px; padding-bottom:10px; border-bottom:2px solid currentColor;
}
.vs .col--ask .col-h{ opacity:.6; }
.vs .col--real .col-h{ color:var(--lp-accent); border-bottom-color:var(--lp-accent); }
.vs ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:18px; }
.vs li{ font-family:var(--font-ja); font-size:clamp(17px,1.9vw,21px); line-height:1.6; }
.vs .col--ask li{ color:var(--fg-muted); }
.vs .col--ask li .strike{ text-decoration:line-through; text-decoration-color:var(--lp-accent); text-decoration-thickness:2px; }
.vs .col--real li{ font-weight:700; }

/* ---------- definition cards (section 3 — flash) ---------- */
.defgrid{ display:grid; grid-template-columns:repeat(2,1fr); gap:20px; }
.defcard{
  background:rgba(255,255,255,.10); border:2px solid var(--fg-invert);
  border-radius:var(--radius-card); padding:34px 34px 38px;
}
.defcard .n{ font-family:var(--font-display); font-weight:700; font-size:16px; opacity:.7; }
.defcard .h{ font-family:var(--font-ja); font-weight:700; font-size:clamp(22px,2.5vw,30px); margin:10px 0 12px; }
.defcard .p{ font-family:var(--font-ja); font-size:16px; line-height:1.8; color:var(--fg-invert); opacity:.9; }

/* ---------- checklist (section 9) ---------- */
.checks{ display:grid; grid-template-columns:repeat(2,1fr); gap:0 64px; }
.checks .row{
  display:flex; gap:20px; align-items:flex-start; padding:26px 0; border-bottom:1px solid var(--border-muted);
}
.checks .mark{
  flex:none; width:30px; height:30px; border:2px solid var(--lp-accent); border-radius:6px;
  display:grid; place-items:center; color:var(--lp-accent); font-family:var(--font-display);
  font-weight:700; font-size:18px; margin-top:2px;
}
.checks .txt{ font-family:var(--font-ja); font-size:clamp(17px,1.9vw,21px); font-weight:500; line-height:1.55; }

/* ---------- author signature (section 6) ---------- */
.sig{ display:flex; align-items:center; gap:20px; margin-top:46px; }
.sig .ln{ width:54px; height:2px; background:var(--accent-yellow); }
.sig .nm{ font-family:var(--font-ja); font-weight:700; font-size:20px; }
.sig .ro{ font-family:var(--font-display); font-weight:700; font-size:13px; letter-spacing:.05em; opacity:.7; }

/* ---------- service flow (section 11) ---------- */
.phase{ margin-top:60px; }
.phase-label{
  font-family:var(--font-display); font-weight:700; font-size:14px; letter-spacing:.06em;
  color:var(--fg-muted); margin-bottom:6px;
}
.phase-label--mg{ color:var(--lp-accent); }

.flow-step{
  display:grid; grid-template-columns:auto 1fr; gap:30px; align-items:start;
  padding:30px 0; border-bottom:1px solid var(--border-muted);
}
.flow-step:first-of-type{ border-top:2px solid var(--fg); }
.flow-step .sn{
  font-family:var(--font-display); font-weight:700; font-size:clamp(40px,5vw,62px);
  line-height:.85; color:var(--lp-accent);
}
.flow-step h3{
  font-family:var(--font-ja); font-weight:700; font-size:clamp(22px,2.6vw,30px);
  margin:2px 0 12px; display:flex; flex-wrap:wrap; align-items:center;
}
.flow-step p{
  font-family:var(--font-ja); font-size:var(--lp-body-size); line-height:1.85; margin:0;
  color:var(--fg-default); max-width:640px;
}
.flow-step .opt{
  font-family:var(--font-ja); font-weight:700; font-size:13px; letter-spacing:.02em;
  border:2px solid var(--lp-accent); color:var(--lp-accent);
  border-radius:var(--radius-pill-sm); padding:4px 13px; margin-left:12px;
}
.flow-step .opt--ghost{ border-color:var(--border-muted); color:var(--fg-muted); }

.svc-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:18px; }
.svc{ border:2px solid var(--fg); border-radius:var(--radius-card); padding:28px 30px 30px; }
.svc--wide{ grid-column:1 / -1; }
.svc .t{ font-family:var(--font-ja); font-weight:700; font-size:clamp(19px,2.1vw,24px); margin-bottom:11px; }
.svc .d{ font-family:var(--font-ja); font-size:16px; line-height:1.8; color:var(--fg-default); }

/* ======================= HERO ======================= */
.hero{
  position:relative;
  background:var(--bg-cream);          /* shows through the baked-in drip gaps */
  color:var(--fg-invert);              /* (was provided by band--navy) */
  --fg:var(--fg-invert); --border:var(--fg-invert);
  overflow:hidden;
}
/* the artwork PNG sets the section height; its bottom drips melt into the cream
   CONCEPT section below, and the transparent gaps reveal the cream bg above */
.hero-img{ display:block; width:100%; height:auto; }
.hero-text{
  position:absolute; z-index:2; top:0; bottom:0; right:0;
  width:min(45%,600px);
  display:flex; flex-direction:column; justify-content:center;
  padding:48px var(--gutter) 11% 28px;     /* lift clear of the drip line */
  box-sizing:border-box;
}
/* small English label — secondary to the JA headline */
.hero-kicker{
  font-family:var(--font-display); font-weight:700;
  font-size:clamp(15px,1.3vw,20px); letter-spacing:.42em;
  text-transform:uppercase; color:var(--accent-magenta);
  padding-left:.42em;
}
/* MAIN headline — the dominant element of the hero */
.hero-main{
  font-family:var(--font-ja-display,var(--font-ja)); font-weight:900;
  font-size:clamp(34px,4.5vw,68px); line-height:1.18; letter-spacing:.02em;
  margin:18px 0 0; color:var(--fg-invert); text-wrap:balance;
}
.hero-main .mg{ color:var(--accent-magenta); }
.hero-main .yl{ color:var(--accent-yellow); }
.hero-jatitle{
  font-family:var(--font-ja); font-weight:700; font-size:clamp(17px,1.55vw,23px);
  margin:26px 0 0; letter-spacing:.04em; color:var(--fg-invert); opacity:.92;
}
.hero-jatitle .mg{ color:var(--accent-magenta); }
.hero-lead{
  font-family:var(--font-ja-mincho); font-weight:700; font-size:clamp(15px,1.25vw,18px);
  line-height:1.9; max-width:520px; margin:24px 0 0; color:var(--fg-invert); opacity:.86;
}
.hero-scroll{
  position:absolute; right:var(--gutter); left:auto; bottom:21%; z-index:3;
  font-family:var(--font-display); font-weight:700; font-size:12px; letter-spacing:.2em;
  color:var(--fg-invert); opacity:.55; display:flex; align-items:center; gap:12px;
}
.hero-scroll::after{ content:""; width:64px; height:1px; background:currentColor; animation:scrollpush 1.8s ease-in-out infinite; transform-origin:left; }
@keyframes scrollpush{ 0%,100%{ transform:scaleX(.4); opacity:.4 } 50%{ transform:scaleX(1); opacity:1 } }

/* drip divider after hero is desktop-hidden (baked into the art) */
.ink-divider.hero-drip{ display:none; }

/* ======================= site header ======================= */
.site-head{
  position:relative; z-index:5; display:flex; align-items:center; justify-content:space-between;
  height:82px; box-sizing:border-box; padding:0 var(--gutter); background:var(--bg-navy); color:var(--fg-invert);
}
.site-head .logo img{ height:51px; filter:invert(1); }
.site-head .tag{ font-family:var(--font-display); font-weight:700; font-size:12px; letter-spacing:.1em; opacity:.7; }

/* ======================= contact / footer ======================= */
.contact{ text-align:center; }
.contact .big{ font-family:var(--font-display); font-weight:700; font-size:clamp(64px,11vw,128px); line-height:1; color:var(--fg-invert); }
.contact p{ font-family:var(--font-ja); font-size:var(--fs-body-lg); line-height:1.95; color:var(--fg-invert); margin:30px auto 0; max-width:620px; }
.contact .cta-row{ display:flex; gap:46px; justify-content:center; margin-top:56px; flex-wrap:wrap; }
.contact .flow{
  display:inline-grid; place-items:center; min-width:320px; height:84px; background:var(--bg-cream);
  border:1px solid var(--border-hair); color:var(--fg); font-family:var(--font-ja); font-weight:500;
  font-size:19px; text-decoration:none;
}

/* ---------- contact form ---------- */
.cform{
  --border:#1D2331; --fg:#1D2331;
  max-width:620px; margin:60px auto 0; text-align:left;
  background:var(--bg-cream); border:2px solid var(--border);
  border-radius:var(--radius-card); padding:46px 48px 50px;
}
.cform-field{ margin-bottom:26px; }
.cform-field label{
  display:flex; align-items:center; gap:10px;
  font-family:var(--font-ja); font-weight:700; font-size:16px; color:var(--fg); margin-bottom:9px;
}
.cform-field .req{
  font-family:var(--font-ja); font-weight:700; font-size:11px; letter-spacing:.02em;
  color:var(--fg-invert); background:var(--accent-magenta); border-radius:var(--radius-pill-sm);
  padding:2px 8px;
}
.cform input, .cform textarea, .cform select{
  width:100%; box-sizing:border-box; font-family:var(--font-ja); font-size:16px; color:var(--fg);
  background:var(--bg); border:1px solid var(--border); border-radius:6px; padding:13px 15px;
  line-height:1.6; -webkit-appearance:none; appearance:none;
}
.cform input::placeholder, .cform textarea::placeholder{ color:var(--fg-subtle); }
.cform input:focus, .cform textarea:focus, .cform select:focus{
  outline:none; border-color:var(--accent-magenta); box-shadow:0 0 0 2px var(--accent-magenta-soft);
}
.cform textarea{ resize:vertical; min-height:84px; }
.cform-select{ position:relative; }
.cform-select::after{
  content:"▾"; position:absolute; right:16px; top:50%; transform:translateY(-50%);
  pointer-events:none; color:var(--fg); font-size:16px;
}
.cform-select select{ padding-right:42px; cursor:pointer; }
/* scoped under .cform so it beats `.contact p` (0,1,1) in the cascade —
   otherwise the note inherits 20px/1.95 and balloons to many lines on mobile */
.cform .cform-note{
  font-family:var(--font-ja); font-size:13px; line-height:1.7; color:var(--fg-muted);
  margin:10px 0 0; max-width:none; text-align:left;
}
.cform-actions{ margin-top:34px; }
.cform-submit{
  width:100%; height:64px; cursor:pointer;
  background:var(--bg-navy); color:var(--fg-invert); border:2px solid var(--border);
  border-radius:var(--radius-capsule); font-family:var(--font-ja); font-weight:700; font-size:18px;
  transition:background .15s ease-out, transform .1s ease-out;
}
.cform-submit:hover{ background:var(--accent-magenta-deep); }
.cform-submit:active{ transform:translateY(2px); }
.cform-done{
  font-family:var(--font-ja); font-weight:700; font-size:15px; color:var(--fg);
  text-align:center; margin:22px 0 0;
}
.footer{ background:var(--bg-navy); color:var(--fg-invert); padding:96px var(--gutter) 64px; }
.footer .nav{ display:flex; gap:64px; justify-content:center; flex-wrap:wrap; margin-bottom:64px; }
.footer .nav a{ color:var(--fg-invert); font-family:var(--font-display); font-weight:700; font-size:clamp(18px,2.4vw,30px); text-decoration:none; opacity:.92; }
.footer .nav a:hover{ color:var(--accent-magenta); }
.footer .base{ text-align:center; }
.footer .base .co{ font-family:var(--font-ja); font-weight:500; font-size:26px; }
.footer .base .cp{ font-family:var(--font-display); font-weight:700; font-size:14px; margin-top:14px; opacity:.7; }

/* ---------- reveal animation ---------- */
.reveal{ opacity:0; transform:translateY(26px); transition:opacity .7s ease-out, transform .7s ease-out; }
.reveal.in{ opacity:1; transform:none; }
.no-anim .reveal{ opacity:1 !important; transform:none !important; }

/* ---------- responsive collapses ---------- */
@media (max-width:900px){
  /* art is cropped to fill; baked drips are lost, so the .hero-drip divider
     is re-shown below to keep the ink melting into the cream section */
  .hero{ min-height:84vh; }
  .hero-img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:18% top; }
  .hero-text{
    top:auto; bottom:0; right:0; left:0; width:auto;
    justify-content:flex-end;
    padding:120px var(--gutter) 40px;
  }
  .hero-text::before{
    content:""; position:absolute; z-index:-1;
    inset:0; background:linear-gradient(180deg, transparent 0%, color-mix(in srgb,var(--bg-navy) 55%,transparent) 42%, var(--bg-navy) 88%);
  }
  .hero-lead{ max-width:none; }
  .hero-scroll{ display:none; }
  .ink-divider.hero-drip{ display:block; }
}
@media (max-width:820px){
  .impact,.defgrid,.checks,.svc-grid{ grid-template-columns:1fr; }
  .impact .cell:nth-child(odd){ padding-right:0; border-right:none; }
  .impact .cell:nth-child(even){ padding-left:0; }
  .g-2col{ grid-template-columns:1fr !important; }
  .vs{ grid-template-columns:1fr; gap:36px; }
  .vs .vline{ display:none; }
  .vs .col{ padding:0; }
}
