
/* === 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/company.css === */
h2.sec-title { font-size: 32px; font-weight: 900; color: var(--c-navy); letter-spacing: 0.01em; margin-top: 12px; line-height: 1.4; }

  /* 代表者あいさつ */
  .greet-grid { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; }
  .greet-portrait { position: sticky; top: 100px; }
  .greet-portrait img { width: 100%; height: 450px; object-fit: cover; object-position: center top; box-shadow: var(--shadow); }
  .greet-portrait .cap { margin-top: 18px; }
  .greet-portrait .cap .role { font-size: 13px; color: var(--c-text-sub); font-weight: 500; }
  .greet-portrait .cap .name { font-size: 22px; font-weight: 900; color: var(--c-navy); margin-top: 4px; letter-spacing: 0.04em; }
  .greet-body .lead { font-size: 22px; font-weight: 700; color: var(--c-navy); line-height: 1.7; margin: 18px 0 28px; letter-spacing: 0.01em; }
  .greet-body p { margin-bottom: 22px; color: var(--c-text); }
  .greet-body p:last-of-type { margin-bottom: 0; }
  .greet-sign { margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--c-line); }
  .greet-sign .co { font-size: 15px; color: var(--c-text-sub); }
  .greet-sign .who { font-size: 19px; font-weight: 900; color: var(--c-navy); margin-top: 4px; letter-spacing: 0.06em; }

  /* 強み */
  .strengths { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 48px; }
  .strength { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 26px 28px; display: flex; gap: 16px; align-items: flex-start; }
  .strength .ic { width: 40px; height: 40px; border-radius: 10px; background: #e9f0fa; color: var(--c-primary); font-weight: 900; font-size: 20px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .strength h4 { font-size: 17px; font-weight: 700; color: var(--c-navy); margin-bottom: 4px; }
  .strength p { font-size: 14.5px; color: var(--c-text-sub); line-height: 1.7; }

  /* 会社概要 table */
  .ov-table { width: 100%; border-collapse: collapse; margin-top: 48px; font-size: 15.5px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; }
  .ov-table th, .ov-table td { text-align: left; padding: 18px 26px; vertical-align: top; border-bottom: 1px solid var(--c-line); line-height: 1.8; }
  .ov-table tr:last-child th, .ov-table tr:last-child td { border-bottom: none; }
  .ov-table th { width: 230px; background: var(--c-bg-alt); color: var(--c-navy); font-weight: 700; }
  .ov-table td { color: var(--c-text); }
  .ov-table td a { color: var(--c-primary); font-weight: 500; }
  .ov-table td a:hover { text-decoration: underline; }
  .req { color: var(--c-accent); font-weight: 700; font-size: 12px; }

  /* アクセス */
  .access-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
  .access { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 30px 32px; }
  .access .lbl { font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; color: #fff; background: var(--c-primary); display: inline-block; padding: 5px 14px; border-radius: 7px; }
  .access h4 { font-size: 19px; font-weight: 700; color: var(--c-navy); margin: 16px 0 6px; }
  .access .addr { font-size: 15.5px; color: var(--c-text); line-height: 1.9; }
  .access .route { font-size: 14px; color: var(--c-text-sub); line-height: 1.85; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--c-line); }
  .access .map { width: 100%; height: 230px; border: 0; border-radius: 12px; margin: 18px 0 2px; display: block; }

  /* CTA */
  .cta { background: var(--c-primary); color: #fff; text-align: center; padding: 78px 0; }
  .cta h2 { font-size: 30px; font-weight: 900; line-height: 1.5; }
  .cta p { margin-top: 14px; font-size: 16.5px; color: rgba(255,255,255,0.88); }
  .cta .btn { display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; background: #1d3d6f; color: #fff; font-weight: 700; font-size: 17px; border-radius: 10px; padding: 17px 34px; box-shadow: 0 8px 22px rgba(29,61,111,0.40); transition: transform .12s ease; }
  .cta .btn:hover { transform: translateY(-2px); }

  /* Footer */

  @media (max-width: 920px) {
    .greet-grid { grid-template-columns: 1fr; gap: 32px; }
    .greet-portrait { position: static; }
    .greet-portrait img { height: 300px; }
    .greet-body .lead { font-size: 19px; }
    .strengths, .access-grid { grid-template-columns: 1fr; }
    .ov-table th { width: 140px; padding: 14px 16px; }
    .ov-table td { padding: 14px 16px; }
  }

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