/* ==========================================================
   MEDICREWVE Corporate Site
   ========================================================== */
:root {
  --navy: #0A1628;
  --navy-deep: #06101E;
  --ink: #0F1B2A;
  --body: #34414F;
  --sub: #4A5868;
  --line: #D9DEE5;
  --line-strong: #C3CBD5;
  --bg-alt: #F3F5F8;
  --accent: #1F5BFF;
  --accent-on-dark: #4F80FF;
  --muted-dark: #9FB3C8;
  --text-dark: #C9D4E0;
  --error: #B42318;
  --font-ja: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --font-en: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --header-h: 80px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-ja);
  color: var(--ink);
  background: #FFFFFF;
  line-height: 1.8;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.u-sp-only { display: none; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.section { padding: 128px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--navy); color: #FFFFFF; }
.section--line { border-top: 1px solid var(--line); }
.grid-bg {
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 80px 80px;
}

/* ---------- Typography parts ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-en); font-size: 13px; font-weight: 600; letter-spacing: 0.24em;
  color: var(--accent); line-height: 1.4;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--accent); flex: none; }
.eyebrow--dark { color: var(--muted-dark); }
.section-title { font-size: clamp(26px, 3.2vw, 44px); font-weight: 900; line-height: 1.5; letter-spacing: 0.03em; }
.section-head { display: flex; flex-direction: column; gap: 20px; }
.section-head--split { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 64px; }
.section-head--split > div { display: flex; flex-direction: column; gap: 20px; }
.lead { max-width: 520px; font-size: 15px; line-height: 2; color: var(--sub); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 16px 32px;
  font-size: 15px; font-weight: 700; letter-spacing: 0.04em; line-height: 1.4;
  text-decoration: none; border: 1px solid transparent; border-radius: 0; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, opacity .2s;
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--accent); color: #FFFFFF; }
.btn--primary:hover { background: #164AD9; }
.btn--ghost-light { border-color: rgba(255,255,255,0.4); color: #FFFFFF; background: transparent; }
.btn--ghost-light:hover { background: rgba(255,255,255,0.08); border-color: #FFFFFF; }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: #FFFFFF; }
.btn--ghost:hover { background: var(--ink); color: #FFFFFF; }
.btn--lg { min-height: 64px; padding: 20px 40px; font-size: 16px; }
.text-link {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  min-height: 44px; padding: 10px 0;
  font-size: 14px; font-weight: 700; text-decoration: none; color: var(--ink);
}
.text-link--underline { border-bottom: 2px solid var(--ink); font-size: 15px; }
.text-link svg { width: 16px; height: 16px; transition: transform .2s; }
.text-link:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy); border-bottom: 1px solid rgba(255,255,255,0.12);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: #FFFFFF; padding: 4px 0; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__divider { width: 1px; height: 36px; background: rgba(255,255,255,0.3); flex: none; }
.brand__text { display: flex; flex-direction: column; gap: 5px; line-height: 1; }
.brand__en { font-family: var(--font-en); font-size: 22px; font-weight: 600; letter-spacing: 0.16em; }
.brand__ja { font-size: 9px; font-weight: 500; letter-spacing: 0.5em; color: var(--muted-dark); }
.global-nav__list { display: flex; align-items: center; gap: 8px 32px; }
.global-nav__link {
  display: block; padding: 12px 0; color: var(--text-dark); text-decoration: none;
  font-size: 14px; font-weight: 500; transition: color .2s;
}
.global-nav__link:hover { color: #FFFFFF; }
.global-nav__cta { min-height: 48px; padding: 12px 24px; font-size: 14px; }
.menu-toggle {
  display: none; width: 48px; height: 48px; padding: 0;
  background: transparent; border: 1px solid rgba(255,255,255,0.3); border-radius: 0; cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle__bars { position: relative; width: 22px; height: 14px; }
.menu-toggle__bars span {
  position: absolute; left: 0; width: 100%; height: 2px; background: #FFFFFF; transition: transform .25s, opacity .25s, top .25s;
}
.menu-toggle__bars span:nth-child(1) { top: 0; }
.menu-toggle__bars span:nth-child(2) { top: 6px; }
.menu-toggle__bars span:nth-child(3) { top: 12px; }
.is-menu-open .menu-toggle__bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.is-menu-open .menu-toggle__bars span:nth-child(2) { opacity: 0; }
.is-menu-open .menu-toggle__bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { background-color: var(--navy); color: #FFFFFF; }
.hero__inner {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
  gap: 64px; align-items: end; padding-top: 128px; padding-bottom: 112px;
}
.hero__body { display: flex; flex-direction: column; gap: 32px; }
.hero__eyebrow { font-size: 13px; letter-spacing: 0.28em; }
.hero__eyebrow::before { width: 32px; background: var(--accent-on-dark); }
.hero__title { font-size: clamp(36px, 5.6vw, 80px); font-weight: 900; line-height: 1.3; letter-spacing: 0.02em; }
.hero__text { max-width: 560px; font-size: 16px; line-height: 2; color: var(--text-dark); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.domains { border: 1px solid rgba(255,255,255,0.18); background: rgba(10,22,40,0.7); padding: 32px 36px; }
.domains__title { margin-bottom: 8px; font-family: var(--font-en); font-size: 12px; font-weight: 600; letter-spacing: 0.28em; color: var(--muted-dark); }
.domains__item { display: flex; align-items: center; gap: 20px; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.domains__item:last-child { border-bottom: 0; }
.domains__num { width: 28px; font-family: var(--font-en); font-size: 14px; font-weight: 600; color: var(--muted-dark); }
.domains__name { flex: 1; font-size: 17px; font-weight: 700; line-height: 1.5; }
.domains__en { font-family: var(--font-en); font-size: 11px; letter-spacing: 0.16em; color: var(--muted-dark); }

/* ---------- Mission ---------- */
.mission__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 48px 80px; align-items: start;
}
.mission__head { display: flex; flex-direction: column; gap: 24px; }
.mission__body { display: flex; flex-direction: column; gap: 24px; padding-top: 8px; }
.mission__body p { font-size: 16px; line-height: 2.1; color: var(--body); }
.mission__visual { grid-column: 1 / -1; position: relative; margin-top: 16px; }
.mission__visual img { width: 100%; height: 440px; object-fit: cover; }
.mission__visual::after { content: ""; position: absolute; left: 0; bottom: 0; width: 160px; height: 6px; background: var(--accent); }

/* ---------- Service ---------- */
.service__inner { display: flex; flex-direction: column; gap: 56px; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr)); gap: 24px; }
.service-card { background: #FFFFFF; border: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; }
.service-card__visual {
  height: 184px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 0 16px;
}
.service-card__visual svg { width: 320px; height: 160px; }
.service-card__body { padding: 32px 40px 36px; display: flex; flex-direction: column; gap: 20px; flex: 1; }
.service-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.service-card__num { font-family: var(--font-en); font-size: 48px; font-weight: 600; line-height: 1; color: var(--accent); }
.service-card__en { font-family: var(--font-en); font-size: 12px; font-weight: 600; letter-spacing: 0.2em; color: var(--sub); text-align: right; }
.service-card__title { font-size: 22px; font-weight: 700; letter-spacing: 0.04em; line-height: 1.5; }
.service-card__text { font-size: 15px; line-height: 1.95; color: var(--sub); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 12px; line-height: 1.5; padding: 6px 12px; border: 1px solid var(--line-strong); color: var(--body); }
.related { display: flex; flex-direction: column; gap: 24px; padding-top: 24px; }
.related__head { display: flex; align-items: center; gap: 20px; }
.related__head h3 { font-size: 18px; font-weight: 700; letter-spacing: 0.06em; white-space: nowrap; }
.related__head span { font-family: var(--font-en); font-size: 12px; font-weight: 600; letter-spacing: 0.2em; color: var(--sub); white-space: nowrap; }
.related__head::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.related__list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong);
}
.related__item {
  padding: 32px 28px; background: #FFFFFF; display: flex; flex-direction: column; gap: 12px;
  border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong);
}
.related__num { font-family: var(--font-en); font-size: 14px; font-weight: 600; color: var(--accent); }
.related__item h4 { font-size: 17px; font-weight: 700; line-height: 1.5; }
.related__item p { font-size: 14px; line-height: 1.9; color: var(--sub); }

/* ---------- Strength ---------- */
.strength__inner { display: flex; flex-direction: column; gap: 64px; }
.strength-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 0 48px; border-top: 1px solid rgba(255,255,255,0.2);
}
.strength-item { padding: 40px 0; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.strength-item img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 8px; }
.strength-item__num { font-family: var(--font-en); font-size: 72px; font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--muted-dark); }
.strength-item h3 { font-size: 21px; font-weight: 700; letter-spacing: 0.04em; line-height: 1.5; }
.strength-item p { font-size: 15px; line-height: 2; color: var(--text-dark); }

/* ---------- Flow ---------- */
.flow__inner { display: flex; flex-direction: column; gap: 56px; }
.flow-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; counter-reset: flow; }
.flow-item { background: #FFFFFF; border-top: 3px solid var(--accent); padding: 28px 24px 32px; display: flex; flex-direction: column; gap: 14px; }
.flow-item__step { font-family: var(--font-en); font-size: 12px; font-weight: 600; letter-spacing: 0.2em; color: var(--sub); }
.flow-item h3 { font-size: 18px; font-weight: 700; line-height: 1.5; }
.flow-item p { font-size: 14px; line-height: 1.9; color: var(--sub); }

/* ---------- Target ---------- */
.target__inner { display: flex; flex-direction: column; gap: 56px; }
.target-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 16px; }
.target-card { background: #FFFFFF; border: 1px solid var(--line); padding: 32px 24px; display: flex; flex-direction: column; gap: 16px; }
.target-card svg { width: 44px; height: 44px; flex: none; }
.target-card h3 { font-size: 17px; font-weight: 700; line-height: 1.5; }
.target-card p { font-size: 14px; line-height: 1.9; color: var(--sub); }

/* ---------- Message ---------- */
.message__inner { display: flex; flex-wrap: wrap; gap: 56px 80px; align-items: flex-start; }
.message__photo { flex: 1 1 340px; max-width: 460px; position: relative; }
.message__photo img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; position: relative; z-index: 1; }
.message__photo::after {
  content: ""; position: absolute; left: -16px; bottom: -16px; width: 120px; height: 120px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
}
.message__body { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.message__title { font-size: clamp(24px, 3vw, 40px); font-weight: 900; line-height: 1.6; letter-spacing: 0.02em; }
.message__body > p { font-size: 16px; line-height: 2.1; color: var(--body); }
.signature { display: flex; flex-direction: column; gap: 20px; border-top: 1px solid var(--line); padding-top: 28px; }
.signature__name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; }
.signature__role { font-size: 13px; color: var(--sub); }
.signature__ja { font-size: 28px; font-weight: 700; letter-spacing: 0.16em; line-height: 1.4; }
.signature__en { font-family: var(--font-en); font-size: 12px; font-weight: 600; letter-spacing: 0.24em; color: var(--sub); }
.profile { background: var(--bg-alt); padding: 20px 24px; display: flex; flex-direction: column; gap: 10px; }
.profile__label { font-family: var(--font-en); font-size: 11px; font-weight: 600; letter-spacing: 0.24em; color: var(--sub); }
.profile p { font-size: 14px; line-height: 1.95; color: var(--body); }

/* ---------- Company ---------- */
.split { display: flex; flex-wrap: wrap; gap: 48px 80px; align-items: flex-start; }
.split__head { flex: 1 1 280px; display: flex; flex-direction: column; gap: 20px; }
.split__body { flex: 999 1 560px; min-width: 0; }
.company-table { border-top: 1px solid var(--line-strong); }
.company-table__row { display: flex; flex-wrap: wrap; gap: 8px 32px; padding: 24px 0; border-bottom: 1px solid var(--line-strong); }
.company-table dt { flex: 0 0 160px; font-size: 15px; font-weight: 700; }
.company-table dd { flex: 1 1 320px; font-size: 15px; line-height: 1.9; color: var(--body); }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; background: #2A3D55; color: #FFFFFF; }
.cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta__overlay { position: relative; background-color: rgba(10,22,40,0.82); }
.cta__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 40px 64px; padding-top: 136px; padding-bottom: 136px; }
.cta__body { display: flex; flex-direction: column; gap: 24px; max-width: 680px; }
.cta__title { font-size: clamp(26px, 3.4vw, 48px); font-weight: 900; line-height: 1.5; letter-spacing: 0.02em; }
.cta__text { font-size: 15px; line-height: 2; color: var(--text-dark); }
.cta__eyebrow::before { background: var(--accent-on-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--text-dark); }
.site-footer__inner { display: flex; flex-direction: column; gap: 48px; padding-top: 64px; padding-bottom: 40px; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 32px; }
.site-footer__info { display: flex; flex-direction: column; gap: 16px; }
.site-footer .brand__mark { width: 52px; height: 52px; }
.site-footer .brand__divider { height: 44px; }
.site-footer .brand__en { font-size: 26px; }
.site-footer .brand__ja { font-size: 10px; }
.site-footer__address { font-size: 13px; line-height: 1.9; color: var(--muted-dark); font-style: normal; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 32px; }
.footer-nav a { display: block; padding: 12px 0; color: var(--text-dark); text-decoration: none; font-size: 13px; }
.footer-nav a:hover { color: #FFFFFF; }
.copyright { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px; font-family: var(--font-en); font-size: 12px; letter-spacing: 0.08em; color: var(--muted-dark); }

/* ---------- Sub page heading ---------- */
.page-head { background-color: var(--navy); color: #FFFFFF; }
.page-head__inner { padding-top: 88px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 20px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--muted-dark); }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; }
.breadcrumb a { color: var(--text-dark); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.page-head__title { font-size: clamp(32px, 4vw, 52px); font-weight: 900; letter-spacing: 0.04em; line-height: 1.4; }
.page-head__text { max-width: 640px; font-size: 15px; line-height: 2; color: var(--text-dark); }

/* ---------- Contact form ---------- */
.contact-wrap { max-width: 1120px; margin: 0 auto; padding: 72px 40px 128px; display: flex; flex-direction: column; gap: 56px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.steps li { display: flex; flex-direction: column; gap: 8px; }
.steps li::before { content: ""; height: 4px; background: var(--line); }
.steps li.is-active::before { background: var(--accent); }
.steps__num { font-family: var(--font-en); font-size: 12px; font-weight: 600; letter-spacing: 0.2em; color: var(--sub); }
.steps__label { font-size: 15px; font-weight: 700; }
.contact-layout { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; }
.contact-form { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.field { display: flex; flex-direction: column; gap: 12px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 32px 24px; }
.field__label { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; }
.badge { font-size: 11px; font-weight: 700; line-height: 1.4; padding: 3px 8px; }
.badge--req { color: #FFFFFF; background: var(--accent); }
.badge--opt { color: var(--body); background: #E3E8EE; }
.input, .select, .textarea {
  width: 100%; min-height: 56px; padding: 14px 16px; font-size: 16px; line-height: 1.6;
  background: #FFFFFF; border: 1px solid var(--line-strong); border-radius: 0; appearance: none;
}
.select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M2 5l5 5 5-5' fill='none' stroke='%230F1B2A' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.textarea { min-height: 200px; resize: vertical; line-height: 1.8; }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--error); }
.field__error { font-size: 13px; font-weight: 700; color: var(--error); }
.field__error:empty { display: none; }
.agree { background: var(--bg-alt); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.agree__label { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 15px; font-weight: 500; cursor: pointer; }
.agree__label input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); flex: none; }
.agree p { font-size: 13px; line-height: 1.8; color: var(--sub); }
.form-alert { font-size: 14px; font-weight: 700; color: var(--error); line-height: 1.8; }
.form-alert:empty { display: none; }
.form-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.form-actions .btn { min-width: 280px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consult { flex: 1 1 280px; border: 1px solid var(--line); }
.consult__head { background: var(--navy); color: #FFFFFF; padding: 24px 28px; display: flex; flex-direction: column; gap: 6px; }
.consult__head span { font-family: var(--font-en); font-size: 12px; font-weight: 600; letter-spacing: 0.24em; color: var(--muted-dark); }
.consult__head strong { font-size: 18px; }
.consult ul { padding: 8px 28px 24px; }
.consult li { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.8; }
.consult li:last-child { border-bottom: 0; }
.consult li span { font-family: var(--font-en); font-weight: 600; color: var(--accent); }
.confirm { max-width: 800px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }
.confirm__lead { font-size: 15px; line-height: 2; color: var(--body); }
.confirm-table { border-top: 1px solid var(--line-strong); }
.confirm-table div { display: flex; flex-wrap: wrap; gap: 8px 32px; padding: 22px 0; border-bottom: 1px solid var(--line-strong); }
.confirm-table dt { flex: 0 0 200px; font-size: 15px; font-weight: 700; }
.confirm-table dd { flex: 1 1 320px; font-size: 15px; line-height: 1.9; white-space: pre-wrap; word-break: break-word; }
.done { max-width: 720px; margin: 0 auto; padding: 24px 0 40px; display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.done__icon { width: 72px; height: 72px; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.done__title { font-size: clamp(22px, 3vw, 32px); font-weight: 900; letter-spacing: 0.04em; line-height: 1.5; }
.done p { font-size: 15px; line-height: 2; color: var(--body); }
[hidden] { display: none !important; }

/* ---------- Privacy / legal ---------- */
.legal { max-width: 880px; margin: 0 auto; padding: 72px 40px 128px; display: flex; flex-direction: column; gap: 48px; }
.legal > p { font-size: 15px; line-height: 2.1; color: var(--body); }
.legal section { display: flex; flex-direction: column; gap: 16px; }
.legal h2 { font-size: 20px; font-weight: 700; line-height: 1.6; padding-bottom: 12px; border-bottom: 1px solid var(--line-strong); }
.legal p, .legal li { font-size: 15px; line-height: 2; color: var(--body); }
.legal ol, .legal ul { display: flex; flex-direction: column; gap: 4px; padding-left: 1.5em; }
.legal ol { list-style: decimal; }
.legal ul { list-style: disc; }
.legal__date { text-align: right; font-size: 14px; color: var(--sub); }
.legal__contact { background: var(--bg-alt); padding: 24px; display: flex; flex-direction: column; gap: 4px; }

/* ---------- 404 ---------- */
.notfound { padding: 160px 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.notfound__code { font-family: var(--font-en); font-size: 96px; font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--sub); }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1080px) {
  .global-nav__list { gap: 8px 22px; }
}
@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .menu-toggle { display: inline-flex; }
  .global-nav {
    position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0;
    background: var(--navy); border-top: 1px solid rgba(255,255,255,0.12);
    padding: 8px 24px 40px; overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .is-menu-open .global-nav { visibility: visible; opacity: 1; transform: none; }
  .global-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .global-nav__list li { border-bottom: 1px solid rgba(255,255,255,0.12); }
  .global-nav__list li:last-child { border-bottom: 0; padding-top: 24px; }
  .global-nav__link { display: flex; align-items: center; min-height: 56px; color: #FFFFFF; font-size: 15px; font-weight: 700; }
  .global-nav__cta { display: flex; width: 100%; min-height: 56px; font-size: 15px; }
  body.is-menu-open { overflow: hidden; }
}
@media (max-width: 768px) {
  .u-sp-only { display: inline; }
  .u-pc-only { display: none; }
  .container { padding: 0 24px; }
  .section { padding: 72px 0; }
  .section-head, .section-head--split > div { gap: 16px; }
  .eyebrow { font-size: 12px; }
  .section-title { font-size: 26px; }
  .lead { font-size: 14px; }
  .brand { gap: 12px; }
  .brand__mark { width: 32px; height: 32px; }
  .brand__divider { height: 28px; }
  .brand__en { font-size: 17px; }
  .brand__ja { font-size: 8px; letter-spacing: 0.4em; }

  .hero__inner { padding-top: 64px; padding-bottom: 56px; gap: 40px; }
  .hero__body { gap: 28px; }
  .hero__eyebrow { font-size: 11px; letter-spacing: 0.24em; }
  .hero__text { font-size: 14px; }
  .hero__actions { flex-direction: column; gap: 12px; }
  .hero__actions .btn { width: 100%; }
  .domains { padding: 20px 20px 8px; }
  .domains__item { gap: 14px; padding: 14px 0; }
  .domains__name { font-size: 15px; }
  .domains__en { display: none; }

  .mission__grid { gap: 32px; }
  .mission__body p { font-size: 15px; }
  .mission__visual { margin: 8px -24px 0; }
  .mission__visual img { height: 240px; }
  .mission__visual::after { width: 96px; height: 5px; }

  .service__inner, .flow__inner, .target__inner, .strength__inner { gap: 36px; }
  .service-grid { gap: 16px; }
  .service-card__visual { height: 160px; }
  .service-card__visual svg { width: 100%; max-width: 300px; height: 150px; }
  .service-card__body { padding: 28px 22px; gap: 16px; }
  .service-card__num { font-size: 36px; }
  .service-card__en { font-size: 11px; }
  .service-card__title { font-size: 19px; }
  .service-card__text { font-size: 14px; }
  .related__list { border-left: 0; }
  .related__item { border-right: 0; padding: 22px 4px; flex-direction: row; gap: 16px; background: transparent; }
  .related__item > div { display: flex; flex-direction: column; gap: 8px; }
  .related__item h4 { font-size: 16px; }
  .related__item p { font-size: 13px; }

  .strength-list { gap: 0; }
  .strength-item { padding: 32px 0; border-bottom: 1px solid rgba(255,255,255,0.14); gap: 16px; }
  .strength-item__num { font-size: 48px; }
  .strength-item h3 { font-size: 19px; }
  .strength-item p { font-size: 14px; }

  .flow-list { gap: 0; }
  .flow-item { background: transparent; border-top: 0; border-left: 3px solid var(--accent); padding: 4px 0 28px 20px; gap: 6px; }
  .flow-item h3 { font-size: 17px; }

  .target-card { flex-direction: row; align-items: flex-start; padding: 20px; }
  .target-card > div { display: flex; flex-direction: column; gap: 6px; }
  .target-card h3 { font-size: 16px; }
  .target-card p { font-size: 13px; }

  .message__inner { gap: 40px; }
  .message__photo { flex-basis: 100%; max-width: none; margin-right: 24px; }
  .message__photo::after { left: auto; right: -16px; width: 88px; height: 88px; border-left: 0; border-right: 2px solid var(--accent); }
  .message__body { gap: 22px; }
  .message__body > p { font-size: 15px; }
  .signature__name { flex-direction: column; gap: 6px; }
  .signature__ja { font-size: 24px; }
  .profile { padding: 18px 20px; }
  .profile p { font-size: 13px; }

  .split { gap: 32px; }
  .company-table__row { flex-direction: column; gap: 6px; padding: 18px 0; }
  .company-table dt { flex: none; font-size: 13px; color: var(--sub); }
  .company-table dd { flex: none; }

  .cta__inner { padding-top: 80px; padding-bottom: 80px; gap: 32px; }
  .cta__title { font-size: 26px; }
  .cta__text { font-size: 14px; }
  .cta__actions { width: 100%; }
  .cta__actions .btn { width: 100%; }

  .site-footer__inner { padding-top: 48px; padding-bottom: 32px; gap: 32px; }
  .site-footer .brand__mark { width: 40px; height: 40px; }
  .site-footer .brand__divider { height: 34px; }
  .site-footer .brand__en { font-size: 20px; }
  .site-footer .brand__ja { font-size: 8px; }
  .footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; width: 100%; }
  .copyright { font-size: 11px; }

  .page-head__inner { padding-top: 56px; padding-bottom: 48px; }
  .page-head__title { font-size: 32px; }
  .contact-wrap { padding: 40px 24px 80px; gap: 40px; }
  .contact-form { flex-basis: 100%; }
  .form-actions .btn { width: 100%; min-width: 0; }
  .confirm-table div { flex-direction: column; gap: 6px; padding: 18px 0; }
  .confirm-table dt { flex: none; font-size: 13px; color: var(--sub); }
  .confirm-table dd { flex: none; }
  .legal { padding: 48px 24px 80px; gap: 40px; }
  .legal h2 { font-size: 18px; }
  .legal p, .legal li { font-size: 14px; }
}
