
/* === 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: #1d3d6f; 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: #152d52; }

/* ===== 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: #1d3d6f;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 20px;
  border-radius: 9px;
  text-align: center;
}
.nav-drawer .drawer-cta:hover { background: #152d52; }

/* オーバーレイ */
.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: #d8e0e9; 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.15); }
.foot-brand img { height: 30px; width: auto; display: block; }
.foot-brand small { display: block; font-size: 12px; font-weight: 500; color: #b1c1d1; 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: #a5b6c6; }
.foot-bottom a { color: #a5b6c6; }
.foot-bottom a:hover { color: #fff; }

/* Footer privacy link */
.foot-privacy {
  margin-top: 20px;
  padding-top: 16px;

  font-size: 13px;
}
.foot-privacy a { color: #b1c1d1; }
.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/inquiry.css === */
/* Layout */
  .contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
    padding: 72px 0 96px;
    align-items: start;
  }

  /* Form */
  form.cf { display: flex; flex-direction: column; gap: 24px; }
  .field { display: flex; flex-direction: column; gap: 9px; }
  .field label { font-size: 14.5px; font-weight: 700; color: var(--c-navy); display: flex; align-items: center; gap: 9px; }
  .req-tag { font-size: 11px; font-weight: 700; color: #fff; background: var(--c-accent); padding: 2px 8px; border-radius: 5px; letter-spacing: 0.04em; }
  .opt-tag { font-size: 11px; font-weight: 500; color: var(--c-text-sub); background: var(--c-bg-alt); border: 1px solid var(--c-line); padding: 2px 8px; border-radius: 5px; }
  .field input, .field select, .field textarea {
    font-family: inherit;
    font-size: 16px;
    color: var(--c-text);
    background: #fff;
    border: 1.5px solid var(--c-line);
    border-radius: 10px;
    padding: 14px 16px;
    width: 100%;
    transition: border-color .15s ease, box-shadow .15s ease;
  }
  .field textarea { min-height: 160px; resize: vertical; line-height: 1.8; }
  .field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(63,99,158,0.14);
  }
  .field .hint { font-size: 13px; color: var(--c-text-sub); }
  .privacy { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; color: var(--c-text-sub); line-height: 1.7; }
  .privacy input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--c-primary); flex-shrink: 0; }
  .submit-row { margin-top: 6px; }
  .btn {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: inherit; font-weight: 700; font-size: 17px;
    border: none; border-radius: 10px; padding: 17px 34px; cursor: pointer;
    transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
    line-height: 1.2;
  }
  .btn-primary { background: #1d3d6f; 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); }
  .form-note { font-size: 13px; color: var(--c-text-sub); margin-top: 16px; line-height: 1.7; }
  .sent { display: none; background: #ecf6f0; border: 1px solid #bfe0cc; color: #1f7a4d; border-radius: 10px; padding: 16px 18px; font-size: 15px; font-weight: 500; }

  /* Aside */
  aside.info { display: flex; flex-direction: column; gap: 20px; }
  .info-card { background: var(--c-bg-alt); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 28px 28px; }
  .info-card.dark { background: var(--c-navy); border-color: transparent; color: #fff; }
  .info-card h3 { font-size: 15px; font-weight: 700; color: var(--c-navy); letter-spacing: 0.04em; margin-bottom: 16px; }
  .info-card.dark h3 { color: #fff; }
  .tel-big { font-size: 30px; font-weight: 900; color: #fff; letter-spacing: 0.01em; line-height: 1.1; }
  .tel-big a { color: #fff; transition: opacity 0.2s; }
  .tel-big a:hover { opacity: 0.75; text-decoration: underline; }
  .info-card.dark .sub { font-size: 13.5px; color: #c7d6e6; margin-top: 10px; line-height: 1.7; }
  .mail-line { font-size: 17px; font-weight: 700; color: var(--c-primary); word-break: break-all; transition: color 0.2s; }
  .mail-line:hover { color: var(--c-navy); text-decoration: underline; }
  .kv { display: flex; flex-direction: column; }
  .kv .row {
    padding: 16px 0;
    border-bottom: 1px solid var(--c-line);
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  .kv .row:first-child { padding-top: 0; }
  .kv .row:last-child { border-bottom: none; padding-bottom: 0; }
  .kv .row .k { font-size: 12px; font-weight: 700; color: var(--c-primary); letter-spacing: 0.06em; }
  .kv .row .v { font-size: 14px; color: var(--c-text); line-height: 1.8; }
  .kv .row .access-note { font-size: 12.5px; color: var(--c-text-sub); line-height: 1.7; }
  .kv .row .map-link { font-size: 12.5px; font-weight: 700; color: var(--c-primary); display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; }
  .kv .row .map-link:hover { text-decoration: underline; }

  /* Footer */
  footer.site { background: var(--c-navy); color: #d8e0e9; padding: 56px 0 34px; font-size: 14.5px; }
  .foot-logo { font-size: 21px; font-weight: 900; color: #fff; }
  .foot-logo small { display: block; font-size: 12px; font-weight: 500; color: #b1c1d1; margin-top: 6px; }

  @media (max-width: 920px) {
    .contact-grid { grid-template-columns: 1fr; gap: 40px; padding: 48px 0 64px; }
  }

/* === 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 center / cover no-repeat,
    var(--c-bg-alt);
}

.foot-trademark { margin-top: 10px; font-size: 11.5px; color: #8fa2b0; }

/* Footer page top */
.foot-pagetop { display: flex; justify-content: flex-end; margin-top: 28px; }
.foot-pagetop a { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; color: #a5b6c6; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-decoration: none; transition: color 0.2s ease; }
.foot-pagetop a:hover { color: #fff; }
.foot-pagetop .arrow { width: 36px; height: 36px; border: 1.5px solid #a5b6c6; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease; }
.foot-pagetop a:hover .arrow { border-color: #fff; background: rgba(255,255,255,0.12); transform: translateY(-3px); }
