/* Praxive — site styles */
:root {
  --navy: #0B1F3A;
  --navy-2: #12294A;
  --navy-3: #1C3A66;
  --footer: #081629;
  --blue: #1F63D6;
  --accent: #2E7CF6;
  --ink: #0B1F3A;
  --body: #3D4A5C;
  --muted: #5B6472;
  --faint: #9AA6B6;
  --bg-soft: #F4F5F7;
  --tint: #EAF1FE;
  --line: #E3E7ED;
  --on-navy-label: #8DB8FF;
  --on-navy-body: #D5DCE6;
  --on-navy-muted: #A9B4C4;
  --radius: 12px;
  --radius-btn: 8px;
  --content: 1120px;
  --gutter: 24px;
  --section-y: clamp(72px, 10vw, 112px);
  --font: "Plus Jakarta Sans", "Noto Sans JP", "Noto Sans CJK JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #FFFFFF;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--blue); }
a:hover { color: var(--ink); }
h1, h2, h3, p, ul { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  padding: 8px 16px; background: var(--navy); color: #FFF; border-radius: var(--radius-btn);
}
.skip-link:focus { top: 12px; color: #FFF; }

.container { max-width: var(--content); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.section > .container { display: flex; flex-direction: column; gap: 48px; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: #FFF; }

.br-pc { display: inline; }
.br-sp { display: none; }
@media (max-width: 640px) { .br-pc { display: none; } .br-sp { display: inline; } }
.nw { display: inline-block; }
h1, h2, h3, .cause__text, .flow__step strong { word-break: auto-phrase; }
p, li { text-wrap: pretty; word-break: auto-phrase; }
.service__head h3 { overflow-wrap: anywhere; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 32px; border-radius: var(--radius-btn);
  font: inherit; font-size: 16px; font-weight: 600; text-decoration: none;
  transition: background-color .2s, border-color .2s, transform .2s;
}
.btn--primary { background: var(--blue); color: #FFF; }
.btn--primary:hover { background: #1A55B8; color: #FFF; }
.btn--ghost { border: 1px solid #5A6C86; color: #FFF; }
.btn--ghost:hover { border-color: #FFF; color: #FFF; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  min-height: 72px;
}
.logo { display: flex; align-items: center; color: var(--ink); }
.logo svg { width: 120px; height: 28px; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 500; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--blue); }
.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0; border: 0; background: none;
  color: var(--ink); cursor: pointer; border-radius: var(--radius-btn);
}
.nav-toggle .bar { display: block; width: 22px; height: 2px; margin: 5px auto; background: currentColor; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .site-header .container { min-height: 64px; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px; background: #FFF; border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(11,31,58,.08);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav .btn { margin-top: 20px; min-height: 52px; font-size: 16px; }
}

/* ---------- Section heading ---------- */
.heading { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.heading .lead { margin-top: 4px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .16em; color: var(--blue); }
.section--navy .eyebrow { color: var(--on-navy-label); }
h2 { font-size: clamp(26px, 4vw, 36px); line-height: 1.5; font-weight: 700; }
.lead { font-size: 16px; color: var(--body); text-wrap: pretty; }
.section--navy .lead { color: var(--on-navy-body); }

/* ---------- Icon tile ---------- */
.ico {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px; background: var(--tint); color: var(--blue);
}
.ico svg { width: 24px; height: 24px; }
.ico--sm { width: 40px; height: 40px; border-radius: 10px; }
.ico--sm svg { width: 20px; height: 20px; }
.ico--lg { width: 56px; height: 56px; border-radius: 14px; background: var(--navy); color: var(--on-navy-label); }
.ico--lg svg { width: 28px; height: 28px; }
.ico--navy { background: var(--navy-3); color: var(--on-navy-label); }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--300 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--420 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.card {
  border: 1px solid var(--line); border-radius: var(--radius); background: #FFF;
  padding: 32px; display: flex; flex-direction: column; gap: 16px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card--hover:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(11,31,58,.08); border-color: #D6DEEA; }
.card h3 { font-size: 20px; line-height: 1.6; font-weight: 700; }
.card p { font-size: 15px; color: var(--body); }
@media (max-width: 640px) { .card { padding: 28px 24px; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #FFF; }
.hero .container {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
  align-items: center; gap: 48px 56px;
  padding-top: clamp(80px, 11vw, 112px); padding-bottom: clamp(88px, 12vw, 128px);
}
.hero__text { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.hero__eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .24em; color: var(--on-navy-label); }
.hero h1 { font-size: clamp(44px, 7.4vw, 80px); line-height: 1.2; font-weight: 700; letter-spacing: .02em; }
.hero__lead { max-width: 600px; font-size: clamp(16px, 2.2vw, 18px); line-height: 2; color: var(--on-navy-body); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; }
.hero__visual { width: 100%; }
.kv { display: block; width: 100%; height: auto; overflow: visible; }

/* KV animation: 設計図 → 斜線が走って完成画面へ → グラフが描かれ、点が脈打つ */
.kv-wire { animation: kv-fade .9s ease both; }
.kv-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: kv-draw 1.1s 1.3s cubic-bezier(.4,0,.2,1) forwards; }
.kv-area { animation: kv-fade .8s 1.8s ease both; }
.kv-bar { transform-box: fill-box; transform-origin: 50% 100%; animation: kv-grow .7s calc(1.3s + var(--i) * .09s) cubic-bezier(.2,.7,.2,1) both; }
.kv-dot { animation: kv-fade .3s 2.3s both; }
.kv-pulse { opacity: 0; transform-box: fill-box; transform-origin: center; animation: kv-pulse 2.4s 2.6s ease-out infinite; }
.kv-label--1 { animation: kv-fade .6s .2s both; }
.kv-label--2 { animation: kv-fade .6s 1.5s both; }
/* 動かす：進捗バーが伸び、マイルストーンが順に完了していく */
.kv-drive { animation: kv-fade .6s 2.1s both; }
.kv-progress { stroke-dasharray: 1; stroke-dashoffset: 1; animation: kv-draw 1.6s 2.5s cubic-bezier(.45,0,.25,1) forwards; }
.kv-ms { transform-box: fill-box; transform-origin: center; animation: kv-pop .4s calc(2.75s + var(--i) * .5s) cubic-bezier(.2,.9,.3,1.4) both; }
.kv-arrow { animation: kv-fade .3s 4s both; }
@keyframes kv-pop { from { opacity: 0; transform: scale(.4); } }
@keyframes kv-fade { from { opacity: 0; } }
@keyframes kv-draw { to { stroke-dashoffset: 0; } }
@keyframes kv-grow { from { transform: scaleY(0); } }
@keyframes kv-pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3.4); opacity: 0; } }

@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero__visual { max-width: 560px; }
}
@media (max-width: 640px) {
  .hero__cta .btn { flex: 1 1 100%; }
}

/* ---------- Problem ---------- */
.problem-card__top { display: flex; align-items: center; justify-content: space-between; }
.num { font-size: 14px; font-weight: 700; color: var(--faint); }
.cause {
  padding: 44px 32px; border-radius: var(--radius); background: var(--bg-soft);
  display: flex; flex-direction: column; align-items: center; gap: 32px;
}
.cause__text { font-size: clamp(16px, 2.2vw, 18px); font-weight: 700; line-height: 1.8; text-align: center; }
.cause__diagram { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px 32px; }
.cause__group { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.chips { display: flex; gap: 12px; }
.chip-dash {
  padding: 10px 22px; border-radius: 999px; border: 1px dashed var(--faint); background: #FFF;
  font-size: 15px; font-weight: 700; color: var(--muted);
}
.chain { display: flex; align-items: center; padding: 4px; border-radius: 999px; background: var(--navy); }
.chain span:not(.link) { padding: 8px 18px; font-size: 15px; font-weight: 700; color: #FFF; }
.chain .link { width: 16px; height: 2px; background: var(--accent); }
.cause__caption { font-size: 13px; color: var(--muted); }
.cause__caption--strong { font-weight: 700; color: var(--blue); }
@media (max-width: 640px) {
  .cause { padding: 32px 20px; }
  .cause__arrow { transform: rotate(90deg); }
  .chip-dash { padding: 8px 16px; font-size: 14px; }
  .chain span:not(.link) { padding: 8px 12px; font-size: 14px; }
}

/* ---------- Approach ---------- */
.approach__body { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.steps { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.step { display: flex; gap: 20px; }
.step__text { display: flex; flex-direction: column; gap: 4px; }
.step h3 { font-size: 22px; font-weight: 700; }
.step h3 small { margin-left: 12px; font-size: 12px; font-weight: 600; letter-spacing: .16em; color: var(--muted); }
.step p { font-size: 15px; color: var(--body); }
.loop { flex: 0 1 520px; width: 100%; max-width: 520px; margin: 0 auto; }
.loop svg { display: block; width: 100%; height: auto; overflow: visible; }
.loop .node rect { fill: #FFF; stroke: #D6DEEA; }
.loop .node-title { font-size: 20px; font-weight: 700; fill: var(--ink); }
.loop .node-sub, .loop .center-label { font-size: 11px; font-weight: 600; letter-spacing: .16em; fill: var(--muted); }
.loop .center-label { font-weight: 700; fill: var(--blue); }
.loop .arc { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }
.loop.is-visible .arc { animation: draw .9s ease forwards; }
.loop.is-visible .arc--2 { animation-delay: .5s; }
.loop.is-visible .arc--3 { animation-delay: 1s; }
@keyframes draw { 0% { opacity: 1; stroke-dashoffset: 1; } 100% { opacity: 1; stroke-dashoffset: 0; } }
.no-js .loop .arc { stroke-dashoffset: 0; opacity: 1; }
.feature { background: #FFF; border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.feature h3 { font-size: 18px; font-weight: 700; }
.feature p { font-size: 15px; color: var(--body); }

/* ---------- Service ---------- */
.service { padding: 36px 32px; gap: 20px; }
.service__head { display: flex; align-items: center; gap: 16px; }
.service__head .num { color: var(--blue); font-size: 13px; }
.service__head h3 { font-size: 22px; line-height: 1.5; }
.service__block { display: flex; flex-direction: column; gap: 4px; }
.label { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.service ul { padding-left: 20px; font-size: 15px; color: var(--ink); }
.service__foot { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 4px 12px; border-radius: 999px; background: var(--bg-soft); font-size: 13px; color: var(--ink); }
.service__visual {
  margin: -36px -32px 4px; padding: 16px 20px;
  background: var(--bg-soft); border-bottom: 1px solid var(--line);
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
}
.service__visual svg { display: block; width: 100%; height: auto; max-width: 360px; margin: 0 auto; }
/* 3枚のカードで「図・見出し・こんなときに・主な支援・成果物の例」の高さを揃える */
@supports (grid-template-rows: subgrid) {
  .grid--300 > .service { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 20px; align-content: start; }
  .grid--300 > .service .service__foot { margin-top: 0; }
}
.visual-note { margin-top: -24px; font-size: 13px; color: var(--muted); }
@media (max-width: 640px) {
  .service { padding: 28px 24px; }
  .service__visual { margin: -28px -24px 4px; padding: 14px 16px; }
}

/* ---------- Industries ---------- */
.industry { background: var(--navy-2); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.industry h3 { font-size: 20px; font-weight: 700; }
.industry p { font-size: 15px; color: var(--on-navy-body); }
.note-navy { font-size: 15px; color: var(--on-navy-muted); }

/* ---------- Works ---------- */
.work { flex-direction: row; gap: 20px; padding: 28px; }
.work__text { display: flex; flex-direction: column; gap: 6px; }
.work h3 { font-size: 18px; line-height: 1.6; }
@media (max-width: 640px) { .work { padding: 24px; gap: 16px; } }

/* ---------- About ---------- */
.profile { background: #FFF; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 5vw, 48px); display: flex; flex-direction: column; gap: 24px; }
.profile__role { font-size: 14px; font-weight: 600; color: var(--muted); }
.profile__name { font-size: 28px; font-weight: 700; }
.profile__name span { margin-left: 16px; font-size: 16px; font-weight: 600; color: var(--muted); }
.profile__bio { max-width: 820px; font-size: 15px; color: var(--body); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; padding-top: 28px; border-top: 1px solid var(--line); }
.stat { display: flex; align-items: center; gap: 16px; }
.stat__value { font-size: 28px; font-weight: 700; line-height: 1.3; }
.stat__value small { font-size: 16px; }
.stat__value--text { font-size: 17px; line-height: 1.6; }
.stat__label { font-size: 13px; color: var(--muted); }
.origin { display: flex; flex-wrap: wrap; gap: 12px 48px; align-items: center; padding: 8px 0; }
.origin h3 { flex: none; font-size: 18px; font-weight: 700; }
.origin p { flex: 999 1 480px; font-size: 15px; color: var(--body); }

/* ---------- Engagement ---------- */
.plan { padding: 36px 32px; gap: 14px; }
.plan h3 { font-size: 22px; }
.plan--main { background: var(--navy); border-color: var(--navy); color: #FFF; }
.plan--main p { color: var(--on-navy-body); }
.plan--main .plan__note { font-size: 14px; color: var(--on-navy-muted); }
.plan__top { display: flex; align-items: center; justify-content: space-between; }
.badge { padding: 2px 12px; border-radius: 999px; background: var(--blue); font-size: 12px; font-weight: 700; color: #FFF; }
.flow { display: flex; flex-direction: column; gap: 24px; }
.flow h3 { font-size: 20px; font-weight: 700; }
.flow ol { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; gap: 12px; }
.flow li { flex: 1 1 0; display: flex; align-items: stretch; gap: 12px; }
.flow__step { flex: 1; padding: 24px 20px; border-radius: var(--radius); background: var(--bg-soft); display: flex; flex-direction: column; gap: 8px; }
.flow__num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 999px; background: var(--blue); color: #FFF; font-size: 14px; font-weight: 700; }
.flow__step strong { font-size: 16px; }
.flow__step span:last-child { font-size: 14px; color: var(--body); }
.flow__chev { flex: none; align-self: center; width: 20px; height: 20px; color: var(--faint); }
@media (max-width: 960px) {
  .flow ol { flex-direction: column; }
  .flow li { flex-direction: column; }
  .flow__chev { transform: rotate(90deg); }
  .flow__step { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 14px; row-gap: 4px; }
  .flow__step span:last-child { flex-basis: 100%; padding-left: 46px; }
}

/* ---------- FAQ ---------- */
.faq .container { max-width: 880px; gap: 40px; }
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: #FFF; border-radius: var(--radius); padding: 24px 28px; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 16px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 20px; height: 20px; color: var(--muted); transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { margin-top: 12px; font-size: 15px; color: var(--body); }
@media (max-width: 640px) { .faq details { padding: 20px; } .faq summary { font-size: 15px; } }

/* ---------- Contact ---------- */
.contact .container { flex-direction: row; flex-wrap: wrap; gap: 48px 64px; }
.contact__intro { flex: 1 1 360px; display: flex; flex-direction: column; gap: 16px; }
.contact__intro p { color: var(--on-navy-body); }
.checks { list-style: none; padding: 0; margin-top: 12px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.checks li { display: flex; align-items: center; gap: 12px; }
.checks svg { flex: none; width: 20px; height: 20px; color: var(--on-navy-label); }
.contact__form { flex: 999 1 480px; min-width: 0; background: #FFF; color: var(--ink); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.contact__form iframe { display: block; width: 100%; min-height: 560px; border: 0; }
.form-fallback { display: flex; flex-direction: column; gap: 16px; }
.form-fallback p { color: var(--body); font-size: 15px; }
.form-privacy { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: var(--on-navy-muted); }
.site-footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 56px; padding-bottom: 56px; }
.site-footer .logo { color: #FFF; }
.footer__links { display: flex; flex-direction: column; gap: 12px; }
.footer__links a, .footer__meta a { color: var(--on-navy-body); font-size: 14px; }
.footer__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: 13px; }

/* ---------- Sub pages (privacy / 404) ---------- */
.page { padding: clamp(56px, 8vw, 96px) 0; }
.page .container { max-width: 820px; display: flex; flex-direction: column; gap: 32px; }
.page h1 { font-size: clamp(28px, 4vw, 36px); line-height: 1.5; }
.page h2 { font-size: 20px; margin-top: 8px; }
.page p, .page li { font-size: 15px; color: var(--body); }
.page ul, .page ol { padding-left: 1.4em; display: flex; flex-direction: column; gap: 4px; }
.page section { display: flex; flex-direction: column; gap: 12px; }
.page .meta { font-size: 14px; color: var(--muted); }
.page dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0; font-size: 15px; color: var(--body); }
.page dt { font-weight: 700; color: var(--ink); }
.page dd { margin: 0; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .loop .arc { stroke-dasharray: none; stroke-dashoffset: 0; opacity: 1; animation: none !important; }
  .card--hover:hover { transform: none; }
  .kv * { animation: none !important; }
  .kv-line { stroke-dashoffset: 0; }
  .kv-pulse { display: none; }
}
