/* ==========================================================
 style.css（整理・安定版／モーダル保持）
========================================================== */

/* ---------- 基本変数 ---------- */
:root{
  --bg:#ffffff;
  --ink:#111827;
  --muted:#4b5563;
  --topbar:#1f1f22;
  --line:rgba(17,24,39,.12);
  --radius:18px;
  --shadow:0 10px 22px rgba(17,24,39,.12);
  --shadow-2:0 14px 30px rgba(17,24,39,.16);
  --container:980px;
  --font:system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,
          "Noto Sans JP","Hiragino Sans","Yu Gothic",sans-serif;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  color:var(--ink);
  background:var(--bg);
}

/* ---------- 画像の共通指定 ----------
 * width:100% は事故るため max-width のみに制限
 */
img{
  max-width:100%;
  height:auto;
  display:block;
}

/* ---------- レイアウト ---------- */
.page{padding:18px 0 0}
.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 18px;
}

/* =========================
 TOP BAR
========================= */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background:var(--topbar);
}
.topbar__inner{
  max-width:var(--container);
  margin:0 auto;
  padding:10px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.topbar__logo img{filter:brightness(1.2)}

/* =========================
 PANELS / HERO
========================= */
.panel.panel--hero > div{
  display:flex;
  justify-content:center;
}
.panel.panel--hero > div > div{
  max-width:1200px;
  width:100%;
}
.panel.panel--hero img{
  margin:0 auto;
  width:100%;
  height:auto;
}

/* =========================
 CTA
========================= */
.static-box-wrap{
  max-width:1200px;
  margin:20px auto;
  padding-right:20px;
  display:flex;
  justify-content:flex-end;
}
.static-box{
  display:flex;
  justify-content:center;
}
.static-box img{
  width:350px;
  max-width:100%;
}

/* ==========================================================
 通常の動画埋め込み（モーダルなし）
========================================================== */
.video-embed,
.video-wrap{
  max-width:800px;
  margin:0 auto;
}
.video-embed iframe,
.video-wrap iframe{
  width:100%;
  aspect-ratio:16 / 9;
  border:0;
  display:block;
}

/* ==========================================================
 Video Modal（★削除せず保持）
========================================================== */
.video-modal[aria-hidden="true"]{
  display:none;
}
.video-modal{
  position:fixed;
  inset:0;
  z-index:9999;
}
.video-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.65);
}
.video-modal__panel{
  position:relative;
  width:min(960px, calc(100% - 32px));
  margin:6vh auto 0;
  background:#fff;
  border-radius:12px;
  box-shadow:0 20px 60px rgba(0,0,0,.35);
  overflow:hidden;
}
.video-modal__close{
  position:absolute;
  top:8px;
  right:10px;
  width:40px;
  height:40px;
  border:0;
  background:rgba(0,0,0,.06);
  border-radius:999px;
  cursor:pointer;
  font-size:22px;
  line-height:1;
}
.video-modal__frame{
  width:100%;
  aspect-ratio:16 / 9;
  background:#000;
}
.video-modal__iframe{
  width:100%;
  height:100%;
  border:0;
  display:block;
}

/* HTML Video for Modal */
.video-modal__video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

/* =========================
 FOOTNOTES
========================= */
.footnotes{
  background:#a8b6c6;
  padding:22px 0 30px;
  margin-top:24px;
}
.footnotes__list{
  margin-top:20px;
  padding-left:18px;
  font-size:11px;
  line-height:1.8;
}

/* =========================
 SP
========================= */
@media (max-width:720px){
  .static-box-wrap{
    justify-content:center;
    padding-right:0;
  }
}

.video-modal[aria-hidden="false"] {
  display: block;
}

/* Section Heading */
.section-heading {
  margin: 30px 0; /* 上下30px */
}

.section-heading__inner {
  text-align: center; /* センター揃え */
}

.section-heading h2 {
  margin: 0;          /* デフォルト余白をリセット */
  font-size: 24px;    /* 既存デザインに合わせて調整可 */
  font-weight: 700;
}

/* CTA section (centered) */
.section-cta {
  margin: 30px 0;          /* 上下30px */
}

.section-cta__inner {
  text-align: center;     /* 中央寄せ */
}

.section-cta__inner img {
  display: inline-block; /* 画像を中央に */
  max-width: 100%;
  height: auto;
}