/* コンサルAI — working-paper look: grid paper, blue for drafting, red for review. */
:root {
  --paper: #f3f5f4;
  --sheet: #ffffff;
  --grid: #e1e8e5;
  --grid-strong: #c8d3cf;
  --ink: #17202b;
  --ink-2: #45515e;
  --muted: #66717d;
  --rule: #d5dcda;
  --field: #87929b;
  --blue: #2440a8;
  --blue-ink: #1a3185;
  --blue-tint: #e8ecf8;
  --on-blue: #ffffff;
  --red: #c2362c;
  --red-tint: #fcebe9;
  --human-bg: #17202b;
  --human-ink: #f3f5f4;
  --f: "IBM Plex Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #10151b;
    --sheet: #151c24;
    --grid: #1c252f;
    --grid-strong: #2a3541;
    --ink: #e6ebf0;
    --ink-2: #b4bec9;
    --muted: #8e99a5;
    --rule: #28323d;
    --field: #66727f;
    --blue: #8fa5ff;
    --blue-ink: #b6c4ff;
    --blue-tint: #1b2340;
    --on-blue: #0c1122;
    --red: #ff8c80;
    --red-tint: #321b1b;
    --human-bg: #e6ebf0;
    --human-ink: #10151b;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.cai { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f); font-size: 16px; line-height: 1.8; -webkit-font-smoothing: antialiased; overflow-wrap: anywhere; }
:where(.cai) :where(h1, h2, h3, p, ul, ol, dl, dd, figure) { margin: 0; }
.cai h1, .cai h2, .cai h3 { font-feature-settings: "palt"; word-break: auto-phrase; text-wrap: balance; }
.cai a { color: var(--blue); text-underline-offset: 3px; }
.cai [hidden] { display: none !important; }
.cai :focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nw { display: inline-block; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--sheet); color: var(--ink); padding: 8px 12px; border: 1.5px solid var(--ink); }
.skip:focus { left: 16px; }

.wrap { max-width: 1080px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 720px) { .wrap { padding-inline: 28px; } }

/* notice + header */
.notice { background: var(--human-bg); color: var(--human-ink); font-size: 13px; line-height: 1.5; padding: 8px 16px; text-align: center; }
.top { border-bottom: 1px solid var(--rule); }
.top__in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink) !important; text-decoration: none; margin-right: auto; }
.brand svg { width: 30px; height: 30px; flex: none; color: var(--ink); }
.brand span { font-weight: 700; font-size: 18px; letter-spacing: .02em; }
.nav { display: none; gap: 4px; font-size: 14px; }
.nav a { color: var(--ink-2); text-decoration: none; padding: 6px 10px; border-radius: 3px; }
.nav a:hover { color: var(--ink); background: var(--blue-tint); }
@media (min-width: 880px) { .nav { display: flex; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 1.5px solid var(--blue); border-radius: 4px; background: var(--blue); color: var(--on-blue) !important; font: inherit; font-size: 15.5px; font-weight: 700; line-height: 1.3; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--blue-ink); border-color: var(--blue-ink); }
.btn--ghost { background: transparent; color: var(--blue) !important; }
.btn--ghost:hover { background: var(--blue-tint); border-color: var(--blue); }
.btn--small { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* hero */
.hero { padding-block: 36px 0; }
@media (min-width: 720px) { .hero { padding-block: 52px 0; } }
.hero h1 { font-size: clamp(30px, 6.4vw, 54px); line-height: 1.3; font-weight: 700; letter-spacing: .01em; }
.lede { margin-top: 18px; max-width: 36em; color: var(--ink-2); font-size: 16.5px; text-wrap: pretty; word-break: auto-phrase; }
@media (min-width: 720px) { .lede { font-size: 17.5px; } }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* org chart (体制図) */
.org { margin-top: 40px; }
@media (min-width: 720px) { .org { margin-top: 44px; } }
.org__stage {
  position: relative; padding: 32px 56px 36px;
  background-color: var(--sheet);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px; background-position: -1px -1px;
  border: 1px solid var(--grid-strong); border-radius: 4px;
}
.org__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.org__lines path { fill: none; stroke: var(--ink-2); stroke-width: 1.5; }
.org__lines path.is-red { stroke: var(--red); stroke-dasharray: 5 4; }
.org__lines .head { fill: var(--red); stroke: none; }
.org__row { position: relative; z-index: 1; display: flex; justify-content: center; gap: 12px; list-style: none; padding: 0; }
.org__row--lead { margin-top: 30px; }
.org__row--work { margin-top: 52px; }
.node { position: relative; z-index: 1; padding: 10px 14px; background: var(--sheet); border: 1.5px solid var(--ink); border-radius: 4px; text-align: center; line-height: 1.45; }
.node b { display: block; font-size: 15px; font-weight: 700; }
.node span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.node--human { min-width: 250px; background: var(--human-bg); border-color: var(--human-bg); color: var(--human-ink); }
.node--human span { color: inherit; opacity: .78; }
.node--lead { min-width: 270px; border: 2.5px solid var(--blue); }
.node--work { flex: 1 1 0; min-width: 0; border-color: var(--blue); }
.org__review { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; margin-top: 36px; padding: 12px 16px; background: var(--sheet); border: 1.5px dashed var(--red); border-radius: 4px; }
.org__review > b { color: var(--red); font-size: 15px; }
.org__review ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.org__review li { padding: 1px 10px; border: 1px solid var(--red); border-radius: 999px; color: var(--red); font-size: 13px; font-weight: 500; line-height: 1.6; }
.org__back { position: absolute; z-index: 1; visibility: hidden; color: var(--red); font-size: 12.5px; font-weight: 700; line-height: 1.2; background: var(--sheet); padding: 1px 4px; white-space: nowrap; }
.org__stage.is-drawn .org__back { visibility: visible; }
.org figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.legend { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 18px; height: 0; border-top: 2px solid var(--blue); margin-left: 8px; }
.sw:first-child { margin-left: 0; }
.sw--red { border-top: 2px dashed var(--red); }

@media (max-width: 719px) {
  .org__stage { padding: 20px 40px 22px 16px; }
  .org__row { justify-content: stretch; }
  .org__row--top .node, .org__row--lead .node { flex: 1; min-width: 0; text-align: left; }
  .org__row--lead { margin-top: 22px; }
  .org__row--work { flex-direction: column; gap: 10px; margin-top: 22px; margin-left: 30px; }
  .node--work { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 10px; text-align: left; padding: 8px 12px; }
  .node--work span { margin-top: 0; }
  .org__review { justify-content: flex-start; margin-top: 22px; padding: 10px 12px; }
}

@media (prefers-reduced-motion: no-preference) {
  .org .node, .org__review { animation: cai-in .45s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * 110ms + 120ms); }
  @keyframes cai-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* sections */
.sec { padding-block: 72px 0; }
@media (min-width: 720px) { .sec { padding-block: 104px 0; } }
.sec__head { max-width: 44em; margin-bottom: 28px; padding-top: 14px; border-top: 2px solid var(--ink); }
.sec__head h2 { font-size: clamp(24px, 3.6vw, 31px); line-height: 1.4; font-weight: 700; }
.sec__head p { margin-top: 10px; color: var(--ink-2); max-width: 38em; text-wrap: pretty; word-break: auto-phrase; }
.sub-h { margin: 48px 0 14px; font-size: 20px; font-weight: 700; }
.note { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* tables */
.tbl-wrap { overflow-x: auto; }
.cmp, .stages { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
.cmp th, .cmp td, .stages th, .stages td { padding: 12px 14px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.cmp thead th, .stages thead th { font-size: 13px; font-weight: 700; color: var(--muted); border-bottom: 1.5px solid var(--ink); padding-block: 8px; }
.cmp tbody th, .stages tbody th { font-weight: 700; white-space: nowrap; }
.cmp tbody th { width: 9em; }
.cmp td { color: var(--ink-2); }
.cmp thead th:last-child { color: var(--blue); }
.cmp td:last-child { background: var(--blue-tint); color: var(--ink); font-weight: 500; }
.stage-no { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-right: 8px; border: 1.5px solid var(--ink); border-radius: 50%; font-size: 12px; line-height: 1; vertical-align: 1px; }
@media (max-width: 719px) {
  .cmp, .stages { font-size: 14px; }
  .cmp th, .cmp td, .stages th, .stages td { padding: 10px 8px; }
  .cmp tbody th { width: 5.6em; white-space: normal; }
}

/* scope */
.scope__item { padding-block: 24px; border-top: 1px solid var(--rule); }
.scope__item:last-child { border-bottom: 1px solid var(--rule); }
.scope__item h3 { font-size: 20px; line-height: 1.45; font-weight: 700; }
.scope__item h3 small { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--muted); }
.scope__cols { display: grid; gap: 14px; margin-top: 14px; }
.scope__who { font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 4px; }
.scope__who--ai { color: var(--blue); }
.scope ul { list-style: none; padding: 0; font-size: 15px; line-height: 1.65; }
.scope li { position: relative; padding-left: 16px; margin-top: 4px; }
.scope li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 1px; background: var(--ink-2); }
.scope__cols > div:first-child li::before { background: var(--blue); }
@media (min-width: 720px) {
  .scope__item { display: grid; grid-template-columns: 250px 1fr; gap: 24px; }
  .scope__cols { grid-template-columns: 1.3fr 1fr; gap: 28px; margin-top: 4px; }
}

/* roles */
.roles__group { font-size: 16px; font-weight: 700; padding-bottom: 8px; border-bottom: 1.5px solid var(--blue); color: var(--blue); }
.roles__group small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }
.roles__group--red { margin-top: 36px; border-color: var(--red); color: var(--red); }
.roles__list { margin: 0; }
.role { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding-block: 12px; border-bottom: 1px solid var(--rule); }
.role dt { font-weight: 700; }
.role dd { margin: 0; }
.role__do { grid-column: 1 / -1; grid-row: 2; color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.role__out { grid-column: 2; grid-row: 1; font-size: 13px; color: var(--muted); align-self: center; }
.roles__list--red dt { color: var(--red); }
@media (min-width: 720px) {
  .role { grid-template-columns: 190px 1fr 150px; gap: 0 24px; }
  .role__do { grid-column: 2; grid-row: 1; }
  .role__out { grid-column: 3; text-align: right; align-self: start; padding-top: 2px; }
  .roles__list--red .role { grid-template-columns: 190px 1fr; }
}
.points { display: grid; gap: 20px; margin-top: 36px; }
.points > div { padding-left: 14px; border-left: 3px solid var(--ink); }
.points dt { font-weight: 700; }
.points dd { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }
@media (min-width: 720px) { .points { grid-template-columns: 1fr 1fr; gap: 32px; } }

/* plan (gantt) */
.gantt__scale, .gantt__row, .gantt__band { display: grid; grid-template-columns: 1fr; }
.gantt__scale > span, .gantt__band > span { display: none; }
.gantt__scale ol { display: grid; grid-template-columns: repeat(7, 1fr); list-style: none; padding: 0 0 6px; font-size: 12px; color: var(--muted); border-bottom: 1.5px solid var(--ink); }
.gantt__scale li { padding-left: 4px; }
.gantt__rows { list-style: none; padding: 0; }
.gantt__row { padding-block: 14px; border-bottom: 1px solid var(--rule); row-gap: 8px; }
.gantt__head span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.gantt__head b { font-size: 16px; }
.gantt__track { display: grid; grid-template-columns: repeat(7, 1fr); height: 14px; align-self: center; background-image: repeating-linear-gradient(to right, var(--grid-strong) 0 1px, transparent 1px calc(100% / 7)); }
.gantt__track i { grid-row: 1; height: 14px; background: var(--blue); border-radius: 2px; }
.gantt__row--self .gantt__track i { background: transparent; border: 1.5px dashed var(--ink-2); }
.gantt__desc { font-size: 14.5px; color: var(--ink-2); line-height: 1.7; }
.gantt__band { padding-block: 8px 2px; }
.gantt__track--band { height: auto; background: none; }
.gantt__track--band i { grid-column: 1 / 7; height: auto; padding: 2px 8px; background: var(--blue-tint); border-radius: 2px; font-size: 12.5px; font-style: normal; font-weight: 500; line-height: 1.6; color: var(--blue-ink); text-align: center; }
@media (min-width: 720px) {
  .gantt__scale, .gantt__row, .gantt__band { grid-template-columns: 210px 1fr; column-gap: 24px; }
  .gantt__scale > span, .gantt__band > span { display: block; }
  .gantt__scale > span { font-size: 12px; color: var(--muted); align-self: end; padding-bottom: 6px; border-bottom: 1.5px solid var(--ink); }
  .gantt__row { grid-template-areas: "head track" ". desc"; }
  .gantt__row > .gantt__head { grid-area: head; }
  .gantt__row > .gantt__track { grid-area: track; }
  .gantt__row > .gantt__desc { grid-area: desc; }
}

/* faq */
.faq { border-bottom: 1px solid var(--rule); max-width: 52em; }
.faq details { border-top: 1px solid var(--rule); }
.faq summary { position: relative; padding: 16px 36px 16px 0; font-weight: 700; cursor: pointer; list-style: none; line-height: 1.6; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 2px; background: var(--ink-2); }
.faq summary::after { transform: rotate(90deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { padding: 0 0 18px; color: var(--ink-2); max-width: 44em; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* contact */
.sec--contact { padding-bottom: 24px; }
.form, .done { max-width: 640px; }
.f { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.f > label:not(.choice), .f > legend { display: block; padding: 0; margin-bottom: 6px; font-size: 14.5px; font-weight: 700; }
.f em { font-style: normal; display: inline-block; margin-left: 8px; padding: 0 5px; border: 1px solid var(--red); border-radius: 3px; color: var(--red); font-size: 11.5px; font-weight: 700; line-height: 1.6; vertical-align: 1px; }
.opt { margin-left: 8px; font-size: 12.5px; font-weight: 400; color: var(--muted); }
.f input[type="text"], .f input[type="email"], .f input[type="tel"], .f textarea { width: 100%; padding: 11px 12px; border: 1.5px solid var(--field); border-radius: 4px; background: var(--sheet); color: var(--ink); font: inherit; font-size: 16px; line-height: 1.5; }
.f textarea { resize: vertical; min-height: 140px; }
.f input:focus, .f textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.f [aria-invalid="true"] { border-color: var(--red); }
.f ::placeholder { color: var(--muted); opacity: 1; }
.f__err { margin-top: 6px; color: var(--red); font-size: 13.5px; line-height: 1.5; }
.choices { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.choice { display: inline-flex; align-items: flex-start; gap: 8px; font-size: 15px; line-height: 1.6; cursor: pointer; }
.choice input { flex: none; width: 18px; height: 18px; margin: .2em 0 0; accent-color: var(--blue); }
.f--agree { margin-top: 26px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__msg { margin-bottom: 20px; padding: 10px 12px; border-left: 3px solid var(--red); background: var(--red-tint); color: var(--ink); font-size: 14.5px; }
.btn--submit { min-width: 220px; margin-top: 4px; }
.done { padding: 20px 22px; border: 1.5px solid var(--blue); border-radius: 4px; background: var(--blue-tint); }
.done__h { font-size: 18px; font-weight: 700; }
.done p + p { margin-top: 6px; color: var(--ink-2); font-size: 15px; }

/* footer */
.foot { margin-top: 96px; padding-block: 28px 40px; border-top: 1px solid var(--rule); font-size: 13.5px; color: var(--muted); }
.foot__in { display: grid; gap: 10px; }
.brand--foot svg { width: 24px; height: 24px; }
.brand--foot span { font-size: 15px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; padding: 0; }
.foot__links a { color: var(--ink-2); }
