/* ベース */
* { box-sizing: border-box; }
html { height: auto; }
/* html, body { height: 100%; } */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Arial, sans-serif;
  margin: 0;
  color: #0b203a;
  line-height: 1.6;

  min-height: 100%;
  padding-bottom: var(--footer-h);      /* フッター高さぶんの余白を常に確保 */
  scroll-padding-bottom: var(--footer-h);
}
a { color: #0b4aa6; text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: auto; }
.skip-link:focus { left: 10px; top: 10px; background: #fff; padding: 8px 12px; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }

/* ヘッダー */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.92); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid #e8eef6; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #0b203a; }
.brand-mark { display: grid; place-items: center; width: 28px; height: 28px; background: linear-gradient(135deg, #0b4aa6, #2ec5ff); color: #fff; border-radius: 6px; font-weight: 900; }
.menu-toggle { display: none; background: transparent; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle-bar { display: block; width: 22px; height: 2px; background: #0b203a; margin: 4px 0; border-radius: 1px; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; align-items: center; }
.primary-nav a { color: #0b203a; font-weight: 600; }

/* ボタン */
.button { display: inline-block; padding: 10px 16px; border-radius: 8px; border: 1px solid #cfe0f5; background: #ffffff; color: #0b203a; font-weight: 700; box-shadow: 0 1px 0 rgba(11,74,166,0.05); }
.button:hover { background: #f6faff; text-decoration: none; }
.button-primary { background: #0b4aa6; border-color: #0b4aa6; color: #fff; }
.button-primary:hover { background: #093e8f; }
.button-small { padding: 8px 12px; font-size: 0.95rem; }

/* ヒーロー */
/* .hero { background: linear-gradient(180deg, rgba(11,74,166,0.1), rgba(255,255,255,0)), url('../images/sky.png') center/cover no-repeat; color: #0b203a; padding: 96px 0; }
.hero-inner { text-align: center; }
.hero-title { font-size: 40px; letter-spacing: 0.04em; margin: 0 0 12px; }
.hero-lead { font-size: 18px; color: #244162; margin: 0 0 24px; }
.hero-actions { display: inline-flex; gap: 12px; } */

/* =========================
   Hero（トップ見出し・最終CSS）
   ========================= */
.hero{
  position: relative;
  padding: clamp(72px, 10vw, 128px) 0; /* 画面に応じた余白 */
  color: #08223c;
  background: center/cover no-repeat url('../images/hero_bg.webp'); /* hero_hexagrid.webp を hero_bg.webp にして配置 */
  isolation: isolate; /* ::beforeのブレンドを安定 */
}

/* ヘキサ柄は下側が暗くなりやすいので、読みやすさを担保するオーバーレイ */
.hero::before{
  content:"";
  position:absolute; inset:0;
  background:
    /* 上: 白で見出しを立てる → 中央: 薄 → 下: わずかに暗めで締める */
    linear-gradient(180deg, rgba(255,255,255,.56), rgba(255,255,255,.2) 55%, rgba(10,23,45,.18));
  z-index:0;
}

.hero-inner{
  color: #e8eef6;
  position: relative;
  z-index: 1; /* オーバーレイより前 */
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 小見出し（上のラベル） */
.hero-kicker{
  display:inline-block;
  font-size: clamp(12px, 1.5vw, 14px);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #0b4aa6;
  background: rgba(255,255,255,.68);
  border: 1px solid rgba(11,74,166,.15);
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 16px;
  backdrop-filter: blur(2px);
}

/* メイン見出し */
.hero-title{
  font-weight: 800;
  line-height: 1.2;
  font-size: clamp(28px, 5vw, 48px);
  letter-spacing: .02em;
  margin: 0 0 12px;
}

/* サブコピー */
.hero-sub{
  font-size: clamp(14px, 2.2vw, 18px);
  color: #2a476a;
  max-width: 64ch;
  margin: 0 0 28px;
}

/* CTA */
.hero-cta{
  display:flex; flex-wrap: wrap; gap: 12px;
}
.btn-primary{
  display:inline-block;
  padding: 12px 18px;
  border-radius: 12px;
  background: #0b4aa6;
  color:#fff;
  font-weight: 700;
  border: 1px solid rgba(8,34,60,.06);
  box-shadow: 0 6px 18px rgba(11,74,166,.22);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn-primary:hover{ transform: translateY(-1px); box-shadow: 0 10px 24px rgba(11,74,166,.28); text-decoration:none; }

.btn-secondary{
  display:inline-block;
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(255,255,255,.86);
  color:#0b4aa6;
  border: 1px solid rgba(11,74,166,.22);
  backdrop-filter: blur(2px);
  transition: background .15s ease, border-color .15s ease;
}
.btn-secondary:hover{ background:#fff; text-decoration:none; }

/* アクセシビリティ：キーボードフォーカス */
.btn-primary:focus-visible,
.btn-secondary:focus-visible{
  outline: 3px solid rgba(46,197,255,.65);
  outline-offset: 2px;
  text-decoration: none;
}

/* 省アニメ設定尊重 */
@media (prefers-reduced-motion: reduce){
  .btn-primary, .btn-secondary{ transition: none; }
}

/* 小さめ端末での折返し時の行間最適化 */
@media (max-width: 480px){
  .hero-sub{ line-height: 1.7; }
}


/* セクション */
.section { padding: 72px 0; }
.section-muted { background: #f6f9fe; }
.section-header h2 { margin: 0 0 8px; font-size: 28px; }
.section-header p { margin: 0 0 24px; color: #3d5b81; }

/* グリッド & カード */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: #fff; border: 1px solid #e1eaf6; border-radius: 12px; padding: 16px; box-shadow: 0 2px 10px rgba(9,62,143,0.03); }
.card-title { margin: 0 0 8px; font-size: 18px; }
.card-body { margin: 0 0 8px; color: #3a5579; }
.card-meta { color: #6a86aa; font-size: 12px; }
/* フォーム */
.form-row { display: grid; gap: 6px; margin: 12px 0; }
.form-row label { font-weight: 600; }
input[type="text"], input[type="email"], select, textarea { width: 100%; padding: 10px 12px; border: 1px solid #cfe0f5; border-radius: 8px; font-size: 16px; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(46,197,255,0.2); border-color: #63b3ed; }

/* フィーチャー */
.feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.feature.two-col { grid-template-columns: 1fr 1fr; }
.feature-media { min-height: 220px; border-radius: 12px; border: 1px dashed #b7c9e6; background: linear-gradient(135deg, rgba(46,197,255,0.15), rgba(11,74,166,0.1)); }
.checklist { margin: 0 0 16px; padding-left: 1.2em; }
.checklist li { margin: 0 0 6px; }

/* CTA */
.cta { background: radial-gradient(1200px 400px at 50% 0%, rgba(46,197,255,0.15), rgba(255,255,255,0)); }
.cta-inner { text-align: center; }

/* フッター */
.site-footer {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: #fff; 
  border-top: 1px solid #e8eef6;
  z-index: 1000; 
  padding: 0 !important; 
  text-align: center;
  
}

.footer-inner {
  min-height: 72px; 
  display: flex; 
  justify-content: center; 
  align-items: center;
  padding: 12px 16px;
}

.footer-meta {
  color: #6a86aa;
  font-size: 0.9rem;
}

.card h3 { margin-top: 16px; font-size: 1.1rem; }
.card h4 { margin-top: 8px; font-size: 1rem; color: #244162; }
.card ol { padding-left: 1.25rem; line-height: 1.7; }
.card ol li + li { margin-top: 6px; }


/* レスポンシブ */
@media (max-width: 920px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .feature, .feature.two-col { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .menu-toggle { display: inline-block; }
  .primary-nav { position: absolute; left: 0; right: 0; top: 64px; background: #ffffff; border-bottom: 1px solid #e8eef6; display: none; }
  .primary-nav.open { display: block; }
  .primary-nav ul { flex-direction: column; padding: 12px 20px; align-items: flex-start; }
  .grid-3 { grid-template-columns: 1fr; }
  .hero-title { font-size: 32px; }
}

.feature-media img { width:100%; height:auto; display:block; border-radius:12px; }



/* === 固定フッターの重なり対策・確実版 === */
:root { --footer-h: 80px; } /* 初期値（JSで上書き） */




