/* ============================================================
   PD Tokyo "Clarity" design system (overhaul 2026-06-17, rev2)
   Trust-first Japanese B2B. Readability-first: high contrast,
   larger type, clear section separation. Light theme locked.
   ============================================================ */

:root {
  --max: 1120px;
  --gutter: clamp(18px, 4vw, 40px);

  --ink: #131c25;        /* headings, near-black cool */
  --body: #283340;       /* body text, high contrast on white */
  --ink-2: #45525f;      /* secondary text */
  --muted: #66717d;      /* captions */
  --line: #e2e7ee;
  --line-2: #c7d0da;
  --paper: #ffffff;      /* page + cards: white for max legibility */
  --alt: #eef2f7;        /* alternating section, clearly distinct */
  --navy: #102234;       /* hero base */
  --navy-2: #1d3a56;

  --acc: #2f5fa6;
  --acc-ink: #214579;
  --acc-soft: #eaf1fa;

  --radius: 16px;
  --radius-sm: 10px;
  --pill: 999px;
  --ease: cubic-bezier(.16,1,.3,1);
}

.t-web      { --acc:#bb4126; --acc-ink:#8f3119; --acc-soft:#fbece6; }
.t-facility { --acc:#0c6f7b; --acc-ink:#08515b; --acc-soft:#e6f4f6; }
.t-viz      { --acc:#2f5fa6; --acc-ink:#214579; --acc-soft:#eaf1fa; }
.t-brand    { --acc:#1f3448; --acc-ink:#142533; --acc-soft:#eaeef2; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: "Noto Sans JP", system-ui, -apple-system, sans-serif;
  font-size: 17.5px;
  line-height: 1.95;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
.latin { font-family: "Outfit", "Noto Sans JP", sans-serif; }

/* layout */
.wrap { width: min(var(--max), calc(100% - (var(--gutter) * 2))); margin-inline: auto; }
.section { padding: clamp(52px, 7vw, 92px) 0; }
.section--tight { padding: clamp(36px, 5vw, 60px) 0; }
.section--alt { background: var(--alt); }

/* type */
.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-family: "Outfit", sans-serif; font-size: 13.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--acc-ink);
  padding: 6px 13px; border-radius: var(--pill); background: var(--acc-soft);
}
.h-sec { margin: 0; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.45; font-weight: 800; color: var(--ink); letter-spacing: .01em; }
.h-sec strong { color: var(--acc-ink); }
.lead { margin: 16px 0 0; max-width: 42em; color: var(--ink-2); font-size: clamp(17px, 1.6vw, 19.5px); line-height: 1.95; }
.note { color: var(--muted); font-size: 15px; line-height: 1.8; }

/* ---------- Japanese line-breaking (kinsoku + phrase-aware wrap) ---------- */
body { line-break: strict; word-break: normal; overflow-wrap: anywhere; }
h1, h2, h3, .h-sec, .hero h1, .hero__sub, .lead,
.consult h2, .cta-band h2, .value b, .value p, .use b, .use p,
.step b, .step p, .media-tile .cap b, .media-tile .cap p,
.reframe .x, .reframe .o, .faq summary, .faq details > p, .consult p {
  word-break: auto-phrase;   /* break at natural Japanese phrase boundaries */
}
.hero h1, .h-sec, .consult h2, .cta-band h2 { text-wrap: balance; }
/* clause unit: prefer breaking between 文節, fall back to internal wrap only if a clause cannot fit */
.nobr { display: inline-block; }
.hero__sub, .lead, .value p, .use p, .media-tile .cap p,
.reframe .x, .reframe .o, .step p, .faq details > p, .consult p, p { text-wrap: pretty; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 66px; padding-inline: var(--gutter);
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.nav .brand-name { font-family: "Outfit", "Noto Sans JP", sans-serif; font-weight: 800; font-size: 20px; line-height: 1; color: var(--ink); letter-spacing: .01em; }
.nav .brand-name .jp { font-family: "Noto Sans JP", sans-serif; }
.nav .brand-mark { height: 23px; width: auto; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.nav-links a { font-size: 14.5px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--line-2);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .18s var(--ease), opacity .18s var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-home { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1.5px solid var(--line-2); border-radius: var(--pill); color: var(--ink) !important; font-weight: 700 !important; }
.nav-home::before { content: "\2190"; color: var(--acc); font-weight: 800; }
.nav-home:hover { border-color: var(--acc); color: var(--acc-ink) !important; }
@media (max-width: 700px) {
  .nav { height: 62px; }
  .nav .brand-name { font-size: 18px; }
  .nav-toggle { display: inline-flex; flex: 0 0 auto; }
  .nav-links {
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    top: calc(100% + 8px);
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 18px 42px rgba(16,34,52,.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s var(--ease);
  }
  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links a,
  .nav-links a.hide-sp {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 44px;
    padding: 9px 11px;
    border-radius: 7px;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.35;
  }
  .nav-links a:hover { background: var(--alt); }
  .nav-links .btn {
    width: 100%;
    justify-content: center;
    margin-top: 3px;
    color: #fff;
  }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 26px; border-radius: var(--radius-sm); font-size: 15.5px; font-weight: 700; text-decoration: none; transition: transform .15s var(--ease), background .2s, border-color .2s, color .2s; cursor: pointer; border: 2px solid transparent; }
.btn--primary { background: var(--acc); color: #fff; }
.btn--primary:hover { transform: translateY(-2px); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost { border-color: var(--line-2); color: var(--ink); background: var(--paper); }
.btn--ghost:hover { border-color: var(--acc); color: var(--acc-ink); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { transform: translateY(-2px); }

/* hero (full-bleed BG video + strong left scrim for legibility) */
.hero { position: relative; min-height: min(82vh, 720px); display: flex; align-items: center; overflow: hidden; background: var(--navy); color: #fff; }
.hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(9,17,27,.94) 0%, rgba(9,17,27,.76) 38%, rgba(9,17,27,.34) 72%, rgba(9,17,27,.5) 100%),
    linear-gradient(0deg, rgba(9,17,27,.5) 0%, rgba(9,17,27,0) 44%); }
.hero__inner { position: relative; z-index: 2; width: min(var(--max), calc(100% - (var(--gutter) * 2))); margin-inline: auto; padding-block: clamp(56px, 12vh, 116px); }
.hero__col { max-width: 33em; }
.hero__tag { display: inline-block; margin-bottom: 18px; padding: 6px 16px; border-radius: var(--pill); background: var(--acc); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.hero h1 { margin: 0; font-size: clamp(30px, 4.2vw, 50px); line-height: 1.4; font-weight: 800; color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.5), 0 1px 4px rgba(0,0,0,.45); }
.hero__sub { margin: 20px 0 0; font-size: clamp(17px, 1.7vw, 20px); line-height: 2; color: rgba(255,255,255,.94); max-width: 30em; text-shadow: 0 1px 14px rgba(0,0,0,.55); }
.hero__cta { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

/* value strip */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.value { padding: 22px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.value .n { font-family: "Outfit", sans-serif; font-weight: 700; color: var(--acc); font-size: 13px; letter-spacing: .04em; }
.value b { display: block; margin: 8px 0 6px; font-size: 18.5px; color: var(--ink); }
.value p { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.85; }
@media (max-width: 720px) { .values { grid-template-columns: 1fr; } }

/* generic grid/card */
.grid { display: grid; gap: 16px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 860px) { .cols-3, .cols-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

/* media tiles */
.media-tile { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); display: flex; flex-direction: column; }
.media-tile video, .media-tile > img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--navy); }
.media-tile .cap { padding: 15px 17px 17px; }
.media-tile .cap b { font-size: 16px; color: var(--ink); }
.media-tile .cap p { margin: 5px 0 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.8; }

/* reframe */
.reframe { display: grid; gap: 12px; margin-top: 26px; }
.reframe-row { display: grid; grid-template-columns: 1fr 34px 1.4fr; gap: 12px; align-items: stretch; }
.reframe .x { display: flex; align-items: center; padding: 15px 18px; border-radius: var(--radius-sm); background: var(--alt); color: #4d5763; text-decoration: line-through; text-decoration-color: rgba(77,87,99,.5); font-size: 15.5px; }
.reframe .o { display: flex; align-items: center; padding: 15px 18px; border-radius: var(--radius-sm); background: var(--acc-soft); border: 1px solid var(--acc); color: var(--ink); font-weight: 700; font-size: 15.5px; }
.reframe .to { display: grid; place-items: center; color: var(--acc); font-weight: 800; font-size: 20px; }
@media (max-width: 760px) { .reframe-row { grid-template-columns: 1fr; gap: 6px; } .reframe .x { justify-content: center; } .reframe .to { transform: rotate(90deg); } }

/* consult keystone */
.consult { background: var(--acc-soft); border: 2px solid var(--acc); border-radius: 20px; padding: clamp(28px, 4vw, 46px); display: grid; grid-template-columns: 1.5fr auto; gap: 24px 44px; align-items: center; }
.consult h2 { margin: 0; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.5; font-weight: 800; color: var(--ink); }
.consult h2 em { font-style: normal; color: var(--acc-ink); }
.consult p { margin: 14px 0 0; color: var(--ink-2); font-size: 16.5px; line-height: 1.9; max-width: 40em; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.chip { padding: 8px 16px; border-radius: var(--pill); background: var(--paper); border: 1.5px solid var(--acc); color: var(--acc-ink); font-size: 14px; font-weight: 700; }
.consult__action { display: grid; gap: 12px; align-content: center; }
@media (max-width: 820px) { .consult { grid-template-columns: 1fr; } }

/* price */
.price { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.price > img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.price .body { padding: 17px 19px 19px; }
.price .body b { display: block; font-size: 16px; color: var(--ink); }
.price .yen { display: block; margin-top: 6px; color: var(--acc-ink); font-size: 25px; font-weight: 800; font-family: "Outfit", "Noto Sans JP", sans-serif; }
.price .body small { display: block; margin-top: 5px; color: var(--muted); font-size: 14.5px; line-height: 1.7; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { padding-top: 18px; border-top: 3px solid var(--acc); }
.step .n { font-family: "Outfit", sans-serif; font-size: 13px; font-weight: 700; color: var(--acc); }
.step b { display: block; margin: 8px 0 5px; font-size: 16.5px; color: var(--ink); }
.step p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.8; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr 1fr; } }

/* faq */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 4px; font-weight: 700; font-size: 17px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: 0 0 auto; width: 26px; height: 26px; display: grid; place-items: center; border-radius: var(--pill); background: var(--acc-soft); color: var(--acc-ink); font-weight: 700; transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p { margin: 0 4px 20px; color: var(--ink-2); font-size: 15.5px; line-height: 1.85; }

/* cta band */
.cta-band { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; border-radius: 20px; padding: clamp(32px, 5vw, 56px); text-align: center; }
.cta-band h2 { margin: 0; font-size: clamp(23px, 3vw, 33px); font-weight: 800; color: #fff; }
.cta-band p { margin: 16px auto 0; max-width: 34em; color: rgba(255,255,255,.88); font-size: 16px; }
.cta-band .btn { margin-top: 26px; }

/* BtoB: 社内提案サマリー（決裁者向け 課題→打ち手→成果→概算） */
.summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 24px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.summary > div { padding: 20px; border-left: 1px solid var(--line); }
.summary > div:first-child { border-left: 0; }
.summary .k { font-family: "Outfit", sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--acc); }
.summary h4 { margin: 8px 0 6px; font-size: 15.5px; color: var(--ink); }
.summary p { margin: 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.75; }
@media (max-width: 780px) { .summary { grid-template-columns: 1fr 1fr; } .summary > div:nth-child(3) { border-left: 0; } }
@media (max-width: 480px) { .summary { grid-template-columns: 1fr; } .summary > div { border-left: 0; border-top: 1px solid var(--line); } .summary > div:first-child { border-top: 0; } }

/* BtoB: 段階CTA（購買フェーズ別の導線） */
.pathways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.path { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 22px; }
.path .step { font-family: "Outfit", sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.path h4 { margin: 7px 0 6px; font-size: 17px; color: var(--ink); }
.path p { margin: 0 0 16px; color: var(--ink-2); font-size: 14px; }
.path .btn { margin-top: auto; }
@media (max-width: 780px) { .pathways { grid-template-columns: 1fr; } }

/* footer */
.foot { border-top: 1px solid var(--line); background: var(--paper); padding: 40px 0; color: var(--muted); font-size: 13.5px; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--acc-ink); }
.foot__row { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }

/* reveal motion */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  [data-reveal].in { opacity: 1; transform: none; }
}
:where(a, button, summary, [tabindex]):focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 4px; }

/* === 2026-07-11 LP appeal patch === */
.nav-links a.btn--primary { color: #fff; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.hero__chips span { padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.38); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .02em; backdrop-filter: blur(4px); }
.offer-tag { display: inline-block; margin-bottom: 10px; padding: 5px 14px; border-radius: 999px; background: var(--acc); color: #fff; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; }
