
/* === css/style.css === */
/* ===== Scroll Animation ===== */
.anim-ready {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.anim-in {
  opacity: 1;
  transform: translateY(0);
}

/* 子要素を順番に遅延させる */
.stance-grid .stance:nth-child(2),
.prod-grid .prod:nth-child(2),
.stat-grid .stat:nth-child(2),
.stats-foot .badge2:nth-child(2),
.flow .step:nth-child(2),
.strengths .strength:nth-child(2),
.access-grid .access:nth-child(2) { transition-delay: 0.1s; }

.stance-grid .stance:nth-child(3),
.stat-grid .stat:nth-child(3),
.stats-foot .badge2:nth-child(3),
.flow .step:nth-child(3),
.strengths .strength:nth-child(3) { transition-delay: 0.2s; }

.stat-grid .stat:nth-child(4),
.flow .step:nth-child(4),
.strengths .strength:nth-child(4) { transition-delay: 0.3s; }

/* アニメーション無効設定を尊重 */
@media (prefers-reduced-motion: reduce) {
  .anim-ready {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== CSS Variables ===== */
:root {
  /* Colors */
  --c-primary: #3F639E;
  --c-primary-dark: #2F4E80;
  --c-navy: #12324A;
  --c-blue2: #1F6F9F;
  --c-accent: #F28C28;
  --c-bg: #FFFFFF;
  --c-bg-alt: #F5F7FA;
  --c-text: #1F2933;
  --c-text-sub: #5B6770;
  --c-line: #E1E7EE;

  /* Layout */
  --maxw: 1140px;
  --pad-x: 32px;
  --sec-y: 104px;

  /* Typography */
  --fs-h1: 46px;
  --fs-h2: 34px;
  --fs-h3: 21px;
  --fs-body: 17px;
  --fs-small: 14px;
  --fs-eyebrow: 13px;

  /* Decoration */
  --radius: 14px;
  --shadow: 0 10px 34px rgba(18, 50, 74, 0.10);
  --shadow-sm: 0 4px 16px rgba(18, 50, 74, 0.07);
}

/* ===== Reset & Base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Sans JP", system-ui, sans-serif;
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.85;
  font-size: var(--fs-body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* ===== Utilities ===== */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }
.eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--c-primary);
}

/* ===== Header ===== */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 24px; }
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 26px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--c-navy); white-space: nowrap; }
.nav-links a:hover { color: var(--c-primary); }
.nav-links a.active { color: var(--c-primary); font-weight: 700; }
.nav-cta { background: var(--c-accent); color: #fff; font-weight: 700; font-size: 14.5px; padding: 11px 20px; border-radius: 9px; white-space: nowrap; flex-shrink: 0; }
.nav-cta:hover { background: #e07f1d; }

/* ===== Hamburger button ===== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-navy);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Drawer (mobile menu) ===== */
.nav-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(320px, 85vw);
  height: 100dvh;
  background: #fff;
  box-shadow: -4px 0 24px rgba(18,50,74,0.15);
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 80px 32px 40px;
  gap: 0;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}
.nav-drawer.open { transform: translateX(0); }

.nav-drawer .drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--c-line);
}
.nav-drawer .drawer-links a {
  display: block;
  padding: 16px 4px;
  font-size: 16px;
  font-weight: 500;
  color: var(--c-navy);
  border-bottom: 1px solid var(--c-line);
}
.nav-drawer .drawer-links a:hover,
.nav-drawer .drawer-links a.active { color: var(--c-primary); }
.nav-drawer .drawer-cta {
  margin-top: 28px;
  display: block;
  background: var(--c-accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 20px;
  border-radius: 9px;
  text-align: center;
}
.nav-drawer .drawer-cta:hover { background: #e07f1d; }

/* オーバーレイ */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18,50,74,0.4);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }

/* ===== Page Head (subpages) ===== */
.page-head {
  position: relative;
  overflow: hidden;
  background: var(--c-bg-alt);
  border-bottom: 1px solid var(--c-line);
  padding: 80px 0 72px;
}
/* page-head の装飾は hero-a.css / hero-b.css で定義 */
.page-head .wrap { position: relative; z-index: 2; }
.head-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 40%; z-index: 1;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-navy) 100%);
  clip-path: polygon(26% 0, 100% 0, 100% 100%, 0% 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.head-panel .chevs { display: flex; gap: 13px; transform: translateX(20%); }
.head-panel .chevs i {
  width: 30px; height: 96px;
  background: rgba(255,255,255,0.16);
  clip-path: polygon(0 0, 48% 0, 100% 50%, 48% 100%, 0 100%, 52% 50%);
}
.head-panel .chevs i:nth-child(2) { background: rgba(255,255,255,0.28); }
.head-panel .chevs i:nth-child(3) { background: var(--c-accent); opacity: .92; }
.head-panel .chevs i:nth-child(4) { background: rgba(255,255,255,0.16); }
.crumbs { font-size: 13.5px; color: var(--c-text-sub); margin-bottom: 14px; }
.crumbs a:hover { color: var(--c-primary); }
.page-head h1 { font-size: 40px; font-weight: 900; color: var(--c-navy); letter-spacing: 0.01em; margin-top: 8px; }
.page-head p { margin-top: 16px; color: var(--c-text-sub); max-width: 540px; }
section.block { padding: 96px 0; }
section.alt { background: var(--c-bg-alt); }

/* ===== Footer (shared) ===== */
footer.site { background: var(--c-navy); color: #c7d3df; padding: 60px 0 34px; font-size: 14.5px; }
.foot-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.foot-brand img { height: 30px; width: auto; display: block; }
.foot-brand small { display: block; font-size: 12px; font-weight: 500; color: #8fa6bd; margin-top: 12px; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; }
.foot-links a:hover { color: #fff; }
.foot-bottom { margin-top: 22px; font-size: 12.5px; color: #7f96ad; }

/* Footer privacy link */
.foot-privacy {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.10);
  font-size: 13px;
}
.foot-privacy a { color: #8fa6bd; }
.foot-privacy a:hover { color: #fff; }

/* ===== Responsive ===== */
@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-cta  { display: none; }       /* ヘッダーのCTAボタンも非表示（ドロワー内に移動） */
  .nav-toggle { display: flex; }     /* ハンバーガーボタンを表示 */
  .page-head h1 { font-size: 30px; }
  .head-panel { width: 32%; }
  section.block { padding: 60px 0; }
}

/* === css/index.css === */
h2.sec-title {
    font-size: var(--fs-h2);
    font-weight: 900;
    line-height: 1.4;
    letter-spacing: 0.01em;
    color: var(--c-navy);
    margin-top: 14px;
  }

  .sec-lead {
    color: var(--c-text-sub);
    font-size: var(--fs-body);
    margin-top: 18px;
    max-width: 720px;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: inherit;
    font-weight: 700;
    font-size: var(--fs-body);
    border: none;
    border-radius: 10px;
    padding: 16px 28px;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
    line-height: 1.2;
  }
  .btn-primary {
    background: var(--c-accent);
    color: #fff;
    box-shadow: 0 8px 22px rgba(242, 140, 40, 0.32);
  }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(242, 140, 40, 0.4); }
  .btn-ghost {
    background: transparent;
    color: var(--c-navy);
    border: 1.5px solid var(--c-line);
    box-shadow: none;
  }
  .btn-ghost:hover { border-color: var(--c-primary); color: var(--c-primary); }
  .btn .arr { font-size: 1.1em; line-height: 0; }

  /* ===== Hero ===== */
  .hero {
    position: relative;
    overflow: hidden;
    padding: 104px 0 108px;
    background:
      radial-gradient(900px 520px at 16% -10%, rgba(63,99,158,0.10), transparent 60%),
      var(--c-bg);
  }

  /* 装飾は hero-a.css / hero-b.css で定義 */
  /* コンテンツを疑似要素の上に */
  .hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.96fr);
    gap: 56px;
    align-items: center;
  }
  .hero-copy { max-width: 600px; min-width: 0; }
  .hero-visual { position: relative; }
  .hero-visual .frame {
    position: relative; z-index: 2;
    border-radius: 20px; overflow: hidden;
    box-shadow: var(--shadow);
  }
  .hero-visual .frame img { width: 100%; height: 470px; display: block; object-fit: cover; }
  .hero-visual .back {
    position: absolute; right: -24px; bottom: -24px;
    width: 82%; height: 80%; z-index: 1;
    background: linear-gradient(135deg, var(--c-primary), var(--c-navy));
    border-radius: 20px;
  }
  .hero-chev {
    position: absolute; top: -22px; left: -22px; z-index: 3;
    display: flex; gap: 7px;
  }
  .hero-chev i {
    width: 18px; height: 44px;
    background: var(--c-accent);
    clip-path: polygon(0 0, 45% 0, 100% 50%, 45% 100%, 0 100%, 55% 50%);
  }
  .hero-chev i:nth-child(2) { opacity: .7; }
  .hero-chev i:nth-child(3) { opacity: .4; }
  .hero h1 {
    font-size: clamp(28px, 3.2vw, var(--fs-h1));
    font-weight: 900;
    line-height: 1.34;
    letter-spacing: 0.01em;
    color: var(--c-navy);
    margin: 18px 0 0;
    overflow-wrap: break-word;
  }
  .hero h1 span.line { display: block; }
  .hero h1 .hl {
    background: linear-gradient(transparent 64%, rgba(63,99,158,0.18) 0);
  }
  .hero p.sub {
    margin-top: 26px;
    font-size: 18px;
    color: var(--c-text-sub);
    line-height: 1.95;
    max-width: 520px;
  }
  .hero-cta {
    display: flex;
    gap: 14px;
    margin-top: 38px;
    flex-wrap: wrap;
  }
  .hero-meta {
    margin-top: 30px;
    font-size: var(--fs-small);
    color: var(--c-text-sub);
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
  }
  .hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
  .hero-meta span::before {
    content: "";
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--c-primary);
  }
  /* ===== Section base ===== */
  .sec-head { max-width: 760px; }
  .center { text-align: center; margin-left: auto; margin-right: auto; }

  /* ===== 課題 chips ===== */
  .pain-empathy {
    margin: 38px 0 8px;
    font-size: 18px;
    color: var(--c-text);
    line-height: 2;
    max-width: 880px;
  }
  .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
  }
  .chip {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: 999px;
    padding: 11px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--c-navy);
    box-shadow: var(--shadow-sm);
  }
  .chip b { color: var(--c-primary); font-weight: 700; }

  /* Before -> After */
  .ba {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 26px;
    align-items: stretch;
    margin-top: 54px;
  }
  .ba-card {
    border-radius: var(--radius);
    padding: 30px 30px 26px;
  }
  .ba-before { background: #fff; border: 1px solid var(--c-line); }
  .ba-after { background: var(--c-navy); color: #fff; }
  .ba-card .tag {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 5px 12px;
    border-radius: 6px;
    display: inline-block;
  }
  .ba-before .tag { background: var(--c-bg-alt); color: var(--c-text-sub); }
  .ba-after .tag { background: rgba(255,255,255,0.16); color: #fff; }
  .ba-card h4 {
    font-size: 19px;
    font-weight: 700;
    margin: 16px 0 14px;
  }
  .ba-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
  .ba-card li { font-size: 15.5px; line-height: 1.6; display: flex; gap: 10px; }
  .ba-before li::before { content: "−"; color: var(--c-text-sub); font-weight: 700; }
  .ba-after li::before { content: "→"; color: var(--c-accent); font-weight: 700; }
  .ba-arrow {
    align-self: center;
    font-size: 30px;
    color: var(--c-primary);
    font-weight: 900;
  }

  /* ===== 考え方 stance ===== */
  .stance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 52px;
  }
  .stance {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 30px 28px;
  }
  .stance .n {
    font-size: 16.5px;
    font-weight: 900;
    color: var(--c-primary);
    letter-spacing: 0.08em;
  }
  .stance h4 { font-size: 18px; font-weight: 700; color: var(--c-navy); margin: 12px 0 10px; }
  .stance p { font-size: 15px; color: var(--c-text-sub); line-height: 1.8; }

  /* ===== 代表製品 ===== */
  .prod-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 52px;
  }
  .prod {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
  }
  .prod img { width: 100%; height: 210px; object-fit: cover; display: block; }
  .prod-body { padding: 24px; }
  .prod .kicker { font-size: 13px; font-weight: 700; color: var(--c-primary); letter-spacing: 0.06em; }
  .prod h3 { font-size: 25px; font-weight: 900; color: var(--c-navy); margin: 8px 0 4px; }
  .prod h3 .tm { font-size: 0.5em; vertical-align: super; font-weight: 700; }
  .prod .role { font-size: 14px; color: var(--c-text-sub); font-weight: 500; }
  .prod p.desc { font-size: 15.5px; color: var(--c-text); line-height: 1.8; margin: 16px 0 18px; }
  .prod .facts { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; }
  .prod .facts li { font-size: 14.5px; color: var(--c-text-sub); display: flex; gap: 9px; line-height: 1.55; }
  .prod .facts li::before { content: "✓"; color: var(--c-primary); font-weight: 900; }
  .prod .pricing { font-size: 14px; color: var(--c-navy); font-weight: 700; margin-bottom: 18px; }
  .prod .prod-link {
    margin-top: auto;
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--c-primary); font-weight: 700; font-size: 15px;
  }
  .prod .prod-link:hover { gap: 12px; }
  .prod-note { margin-top: 28px; font-size: 14px; color: var(--c-text-sub); text-align: center; }

  /* ===== 実績 navy band ===== */
  .stats {
    background:
      radial-gradient(700px 380px at 12% 0%, rgba(63,99,158,0.45), transparent 62%),
      var(--c-navy);
    color: #fff;
  }
  .stats .eyebrow { color: rgba(255,255,255,0.75); }
  .stats h2.sec-title { color: #fff; }
  .stats ::selection { color: #fff; background: rgba(255,255,255,0.25); }
  .stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-top: 50px;
  }
  .stat .v {
    font-size: 40px;
    font-weight: 900;
    color: var(--c-accent);
    line-height: 1.05;
    letter-spacing: -0.01em;
  }
  .stat .v small { font-size: 0.5em; font-weight: 700; }
  .stat .k {
    margin-top: 12px;
    font-size: 16.5px;
    color: #c7d6e6;
    line-height: 1.6;
  }
  .stats-foot {
    margin-top: 46px;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.16);
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
  }
  .badge2 {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 10px;
    padding: 14px 20px;
    font-size: 14.5px;
    color: #e4edf6;
  }
  .badge2 b { color: #fff; font-weight: 700; }

  /* ===== 導入の流れ ===== */
  .flow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 52px;
    counter-reset: step;
  }
  .step {
    position: relative;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 28px 24px;
  }
  .step .sn {
    width: 38px; height: 38px;
    border-radius: 9px;
    background: var(--c-primary);
    color: #fff;
    font-weight: 900;
    font-size: 17px;
    display: flex; align-items: center; justify-content: center;
  }
  .step h4 { font-size: 17px; font-weight: 700; color: var(--c-navy); margin: 16px 0 8px; }
  .step p { font-size: 14px; color: var(--c-text-sub); line-height: 1.7; }

  /* ===== CTA band ===== */
  .cta {
    background: var(--c-primary);
    color: #fff;
    text-align: center;
    padding: 84px 0;
  }
  .cta h2 { font-size: 33px; font-weight: 900; line-height: 1.5; letter-spacing: 0.01em; }
  .cta p { margin-top: 16px; font-size: 17px; color: rgba(255,255,255,0.88); }
  .cta-actions { margin-top: 36px; display: flex; gap: 18px; justify-content: center; align-items: center; flex-wrap: wrap; }
  .cta .tel { color: #fff; font-weight: 700; font-size: 19px; display: inline-flex; align-items: center; gap: 9px; }
  .cta .tel small { font-weight: 500; font-size: 13px; color: rgba(255,255,255,0.8); }

  /* ===== Footer ===== */
  footer.site {
    background: var(--c-navy);
    color: #c7d3df;
    padding: 70px 0 36px;
    font-size: 14.5px;
  }
  .foot-top {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }
  .foot-logo { font-size: 22px; font-weight: 900; color: #fff; letter-spacing: 0.02em; }
  .foot-logo small { display: block; font-size: 12px; font-weight: 500; color: #8fa6bd; margin-top: 6px; letter-spacing: 0.04em; }
  .foot-col h5 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 14px; letter-spacing: 0.04em; }
  .foot-col p { line-height: 1.85; }
  .foot-col a:hover { color: #fff; }
  .foot-links { display: flex; flex-direction: column; gap: 9px; }
  .info-table { width: 100%; border-collapse: collapse; margin-top: 28px; font-size: 13.5px; }
  .info-table th, .info-table td { text-align: left; padding: 9px 0; vertical-align: top; border-bottom: 1px solid rgba(255,255,255,0.08); line-height: 1.7; }
  .info-table th { width: 150px; color: #8fa6bd; font-weight: 500; }
  .info-table td { color: #dce5ef; }
  .foot-bottom { margin-top: 30px; font-size: 12.5px; color: #7f96ad; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
  .req { color: var(--c-accent); font-weight: 700; font-size: 11px; }

  /* ===== Responsive ===== */
  @media (max-width: 920px) {
    .hero { padding: 64px 0 72px; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual .frame img { height: 280px; }
    .hero-visual .back { display: none; }
    .stance-grid, .prod-grid, .flow { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 22px; }
    .ba { grid-template-columns: 1fr; }
    .ba-arrow { transform: rotate(90deg); justify-self: center; }
    .foot-top { grid-template-columns: 1fr; gap: 30px; }
  }

/* === css/hero-b.css === */
/**
 * Plan B — 有機的な曲線デザイン
 *
 * 切り替え方:
 *   index.html の <link rel="stylesheet" href="css/hero-a.css"> を
 *                 <link rel="stylesheet" href="css/hero-b.css"> に変更
 */

/* Plan A の装飾を無効化 */
.hero::before,
.hero::after { content: none; }

/* Plan B: SVG波形を背景に */
.hero {
  background:
    url('../img/bg-wave.svg') center bottom / cover no-repeat,
    radial-gradient(800px 480px at 14% -8%, rgba(63,99,158,0.08), transparent 55%),
    var(--c-bg);
}

/* page-head の装飾も波形に */
.page-head::before { content: none; }
.page-head {
  background:
    url('../img/bg-wave-page.svg') left bottom / auto 100% no-repeat,
    var(--c-bg-alt);
}
