
/* === 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: 20px 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 { display: none; }
  section.block { padding: 60px 0; }
}

/* === css/news.css === */
/* Loading */
  .news-loading {
    padding: 48px 0;
    text-align: center;
    color: var(--c-text-sub);
    font-size: 15px;
  }

/* Source note */
  .src-note {
    margin: 40px 0 8px;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 16px;
    background: var(--c-bg-alt);
    border: 1px solid var(--c-line);
    border-radius: 12px;
    padding: 18px 24px;
  }
  .src-note .t { font-size: 14.5px; color: var(--c-text-sub); line-height: 1.7; }
  .src-note .t b { color: var(--c-navy); font-weight: 700; }
  .src-btn { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--c-primary); white-space: nowrap; }
  .src-btn:hover { gap: 12px; }

  /* Filters */
  .filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 40px 0 8px; }
  .filter {
    font-family: inherit; font-size: 14px; font-weight: 700;
    color: var(--c-text-sub); background: #fff;
    border: 1.5px solid var(--c-line); border-radius: 999px;
    padding: 9px 18px; cursor: pointer; transition: all .15s ease;
  }
  .filter:hover { border-color: var(--c-primary); color: var(--c-primary); }
  .filter.on { background: var(--c-navy); border-color: var(--c-navy); color: #fff; }

  /* News list */
  .news { margin: 28px 0 90px; border-top: 1px solid var(--c-line); }
  .item {
    display: grid;
    grid-template-columns: 132px 150px 1fr auto;
    gap: 28px;
    align-items: center;
    padding: 30px 8px;
    border-bottom: 1px solid var(--c-line);
    transition: background .15s ease;
  }
  .item:hover { background: var(--c-bg-alt); }
  .item .date { font-size: 15px; font-weight: 700; color: var(--c-navy); letter-spacing: 0.02em; }
  .item .date.tbd { color: var(--c-accent); font-size: 13px; font-weight: 700; }
  .cat {
    justify-self: start;
    font-size: 12.5px; font-weight: 700; letter-spacing: 0.03em;
    padding: 6px 14px; border-radius: 7px; white-space: nowrap;
  }
  .cat.event { background: #e9f0fa; color: var(--c-primary); }
  .cat.notice { background: #eef1f5; color: var(--c-text-sub); }
  .cat.update { background: #fdeede; color: #c9761c; }
  .cat.case { background: #e8f5ee; color: #1f7a4d; }
  .item .ttl { font-size: 17px; font-weight: 700; color: var(--c-text); line-height: 1.6; }
  .item .ttl .ex { display: block; font-size: 14px; font-weight: 400; color: var(--c-text-sub); margin-top: 6px; line-height: 1.7; }
  .item .go { color: var(--c-primary); font-weight: 900; font-size: 18px; justify-self: end; }
  .ext { font-size: 11px; font-weight: 700; color: var(--c-text-sub); border: 1px solid var(--c-line); border-radius: 5px; padding: 1px 6px; margin-left: 8px; vertical-align: middle; }

  /* Footer */

  @media (max-width: 920px) {
    .item { grid-template-columns: 1fr; gap: 10px; padding: 24px 4px; }
    .item .go { display: none; }
    .cat { justify-self: start; }
  }

/* === 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); }

/* ドロワー閉じるボタン */
.drawer-close {
  align-self: flex-end;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: none;
  border: 1.5px solid var(--c-line);
  border-radius: 50%;
  font-size: 18px;
  color: var(--c-navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
  line-height: 1;
  margin-bottom: 16px;
}
.drawer-close:hover {
  background: var(--c-bg-alt);
  border-color: var(--c-primary);
  color: var(--c-primary);
}
