:root {
  --bg: #ffffff;
  --bg-alt: #E7F2F7;
  --text: #19242E;
  --muted: #6A757E;
  --line: #D3DCE1;
  --accent: #0083B1;
  --accent-soft: #E7F2F7;
  --header-bg: rgba(255, 255, 255, 0.9);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1A22;
    --bg-alt: #13242F;
    --text: #e7ebf2;
    --muted: #a3adbd;
    --line: #24394A;
    --accent: #75C4E0;
    --accent-soft: #123445;
    --header-bg: rgba(14, 26, 34, 0.9);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, "游ゴシック Medium", "Yu Gothic Medium", YuGothic, "游ゴシック", "Noto Sans JP", "Hiragino Sans", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

h1, h2, h3 { line-height: 1.45; margin: 0; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; white-space: nowrap; }
.nav { display: flex; gap: 24px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.nav a:hover { color: var(--accent); }

/* hero */
.hero { padding: 112px 0 96px; background: linear-gradient(180deg, var(--accent-soft), var(--bg)); }
.eyebrow { color: var(--accent); font-weight: 700; letter-spacing: 0.12em; font-size: 14px; margin: 0 0 16px; }
.hero h1 { font-size: clamp(28px, 4.4vw, 44px); letter-spacing: 0.02em; }
.lead { max-width: 680px; color: var(--muted); margin: 28px 0 0; }

/* sections */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section h2 { font-size: 26px; margin-bottom: 40px; }
.section h2::after { content: ""; display: block; width: 40px; height: 3px; background: var(--accent); margin-top: 14px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.card-no { color: var(--accent); font-weight: 700; margin: 0 0 8px; }
.card h3 { font-size: 18px; margin-bottom: 12px; }
.card p:last-child { margin: 0; color: var(--muted); font-size: 15px; }

.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.points li { padding-left: 20px; border-left: 3px solid var(--accent); }
.points h3 { font-size: 18px; }
.points p { margin: 6px 0 0; color: var(--muted); }

.works { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.works li { border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.work-tag { display: inline-block; margin: 0 0 10px; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 500; }
.works h3 { font-size: 18px; margin-bottom: 10px; }
.works p { color: var(--muted); font-size: 15px; margin: 0 0 10px; }
.works a { font-size: 14px; }

/* profile */
.profile-head { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.avatar { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--bg); font-size: 28px; font-weight: 700; flex-shrink: 0; }
.role { margin: 0; color: var(--muted); font-size: 14px; }
.section .name { margin: 0; font-size: 26px; }
.section .name::after { display: none; }
.name span { display: block; font-size: 14px; color: var(--muted); font-weight: 400; letter-spacing: 0.06em; }
.profile-lead { max-width: 760px; margin: 0 0 32px; }
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 300px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.timeline span { color: var(--text); font-weight: 500; }
.note { color: var(--muted); font-size: 14px; margin: 20px 0 0; }

/* company */
.company { margin: 0; border-top: 1px solid var(--line); }
.company div { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.company dt { font-weight: 500; }
.company dd { margin: 0; color: var(--muted); }

.site-footer { padding: 32px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.site-footer p { margin: 0; }

/* responsive */
@media (max-width: 860px) {
  .cards, .works { grid-template-columns: 1fr; }
  .nav { display: none; }
  br.pc { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 72px 0 64px; }
  .section { padding: 64px 0; }
  .timeline li, .company div { grid-template-columns: 1fr; gap: 2px; }
}

/* ---- v2: impact ---- */
.hero {
  padding: 128px 0 112px;
  background:
    radial-gradient(circle at 85% 15%, rgba(0, 131, 177, 0.75), transparent 50%),
    radial-gradient(circle at 5% 95%, rgba(117, 196, 224, 0.25), transparent 40%),
    #004058;
  color: #ffffff;
}
.hero .eyebrow { color: #75C4E0; letter-spacing: 0.18em; font-size: 13px; }
.hero h1 { font-size: clamp(30px, 5.2vw, 56px); line-height: 1.35; letter-spacing: 0.01em; }
.hero h1 em { font-style: normal; color: #75C4E0; }
.hero .lead { color: #D6E6EE; max-width: 720px; font-size: 17px; }
.keywords { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.keywords li { padding: 8px 16px; border: 1px solid rgba(117, 196, 224, 0.6); border-radius: 999px; font-size: 14px; font-weight: 500; color: #ffffff; background: rgba(117, 196, 224, 0.12); }

.stats { background: var(--accent); color: #fff; }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-inner > div { padding: 36px 20px; border-left: 1px solid rgba(255,255,255,0.2); }
.stats-inner > div:first-child { border-left: none; padding-left: 0; }
.stat-num { margin: 0; font-size: 40px; font-weight: 700; line-height: 1.1; }
.stat-num span { font-size: 18px; margin-left: 4px; }
.stat-label { margin: 10px 0 0; font-size: 13px; line-height: 1.6; opacity: 0.85; }

.section-eyebrow { margin: 0 0 6px; color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 0.18em; }
.cards { grid-template-columns: repeat(2, 1fr); }
.card-main { grid-column: 1 / -1; background: var(--accent-soft); border-color: transparent; }
.card-main h3 { font-size: 24px; }
.card-en { margin: 0 0 4px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }

.section-dark { background: #004058; color: #fff; }
.section-dark h2::after { background: #C98A1B; }
.section-dark .section-eyebrow { color: #75C4E0; }
.compare { border-top: 1px solid rgba(255,255,255,0.15); }
.compare-row { display: grid; grid-template-columns: 180px 1fr 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,0.15); }
.compare-row p { margin: 0; color: #B8C3CA; }
.compare-row p:first-child { color: #fff; font-weight: 500; }
.compare-row strong { color: #ffffff; font-size: 18px; border-bottom: 2px solid #C98A1B; }
.compare-head p { font-size: 13px; letter-spacing: 0.06em; color: #75C4E0 !important; font-weight: 700; }

@media (prefers-color-scheme: dark) {
  .stats { background: #00658B; }
}
@media (max-width: 860px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stats-inner > div { padding: 24px 16px; border-left: none; border-top: 1px solid rgba(255,255,255,0.2); }
  .stats-inner > div:nth-child(-n+2) { border-top: none; }
  .stats-inner > div:nth-child(odd) { padding-left: 0; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero { padding: 80px 0 72px; }
  .stat-num { font-size: 30px; }
  .compare-row { grid-template-columns: 1fr 1fr; }
  .compare-row p:first-child { grid-column: 1 / -1; }
  .compare-head p:first-child { display: none; }
}

/* ---- v3 ---- */
.stats-inner { grid-template-columns: repeat(3, 1fr); }
.cards { grid-template-columns: repeat(3, 1fr); }
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.process li { position: relative; padding: 24px 20px; border-top: 4px solid var(--accent); background: var(--bg-alt); border-radius: 0 0 12px 12px; }
.process li:last-child { border-top-color: #004058; }
.step-no { margin: 0 0 6px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; }
.process h3 { font-size: 18px; margin-bottom: 10px; }
.process p:last-child { margin: 0; color: var(--muted); font-size: 15px; }
.industries { margin-top: 32px; }
.industries-title { margin: 0 0 12px; font-weight: 500; }
.keywords-light { margin: 0; }
.keywords-light li { color: var(--accent); background: var(--bg); border-color: var(--accent); }
@media (max-width: 860px) {
  .stats-inner { grid-template-columns: 1fr; }
  .stats-inner > div, .stats-inner > div:nth-child(-n+2) { padding: 20px 0; border-left: none; border-top: 1px solid rgba(255,255,255,0.2); }
  .stats-inner > div:first-child { border-top: none; }
  .cards, .process { grid-template-columns: 1fr; }
}

/* ---- v4: sharp copy ---- */
.hero h1 { font-size: clamp(36px, 6.4vw, 68px); }
.hero-sub { margin: 20px 0 0; font-size: clamp(17px, 2.2vw, 22px); font-weight: 700; color: #ffffff; letter-spacing: 0.02em; }
.stat-label { font-size: 14px; }
.card-note { margin: 14px 0 0 !important; font-size: 13px !important; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.card p:not(.card-en):not(.card-no):not(.card-note) { color: var(--muted); font-size: 15px; margin: 0; }
.hero h1 em { white-space: nowrap; }
@media (max-width: 560px) { .hero h1 { font-size: 34px; } }

/* ---- v5: strength ---- */
.strength-lead { max-width: 760px; color: var(--muted); margin: -16px 0 36px; }
.strength { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 16px; }
.strength-item { background: var(--bg); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 12px; padding: 28px; }
.strength-item h3 { font-size: 20px; margin: 0 0 12px; }
.strength-item p:last-child { margin: 0; color: var(--muted); font-size: 15px; }
.strength-x { align-self: center; font-size: 36px; font-weight: 700; color: #C98A1B; line-height: 1; }
@media (max-width: 860px) {
  .strength { grid-template-columns: 1fr; gap: 8px; }
  .strength-x { justify-self: center; font-size: 28px; }
}
