/* ===== Base ===== */
:root{
  --primary:#5b898c; --secondary:#32526b;
  --ink:#333; --bg:#fff; --bg-soft:#F6F6FF;
  --maxw:1000px;
}
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; background:var(--bg); color:var(--ink);
  font-family:system-ui,-apple-system,"Hiragino Kaku Gothic ProN","Yu Gothic","Segoe UI",Roboto,"Noto Sans JP",sans-serif; }
img{ display:block; max-width:100%; height:auto; }
a{ color:inherit; text-decoration:none; }

/* ===== Layout ===== */
.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 16px; }
.section{ padding:48px 0; }
.section.soft{ background:var(--bg-soft); }
.grid-2{ display:grid; grid-template-columns:1fr; gap:16px; }
@media(min-width:840px){ .grid-2{ grid-template-columns:1fr 1fr; } }

/* ===== Header ===== */
.site-header{ position:sticky; top:0; background:#fff; border-bottom:1px solid #eee; z-index:10; }
.header-inner{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 0; }
.brand{ font-weight:700; color:var(--secondary); letter-spacing:.02em; }
.main-nav{ display:flex; gap:14px; font-size:14px; }

/* ===== FV（ボタンの重なり回避：SPは下に移動） ===== */
.mv{ position:relative; }
.mv-cta{
  position:absolute; right:12px; top:12px; max-width:360px;
  z-index:2; filter:drop-shadow(0 4px 12px rgba(0,0,0,.2));
}
.mv-cta img{ width:100%; }
@media(max-width:768px){
  .mv-cta{ position:static; display:block; margin:12px auto 0; max-width:78vw;
    filter:drop-shadow(0 3px 8px rgba(0,0,0,.18)); }
}

/* ===== Videos ===== */
.video{
  position:relative; aspect-ratio:16/9; background:#000; border-radius:12px; overflow:hidden;
  max-width:800px; margin:0 auto;
}
.video iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }

/* ===== CTA ボタン統一 ===== */
.cta-box{ text-align:center; }
.cta-img{ margin:0 auto; max-width:360px; width:100%; }

/* ===== 画像セクション：中央寄せ ===== */
.section .wrap > img{ margin:0 auto; }

/* ===== Voice（バニラJSスライダー） ===== */
.voice-ttl{ margin:0 auto 16px; max-width:600px; width:85%; }
.voice-carousel{ position:relative; padding:0 5%; }
.voice-track{ display:flex; overflow:hidden; border-radius:12px; background:#000; }
.voice-slide{ min-width:100%; }
.voice .video{ max-width:100%; }
.voice-arrow{
  position:absolute; top:50%; transform:translateY(-50%); width:32px; height:32px;
  border:none; background:transparent; cursor:pointer; opacity:.8;
  filter:drop-shadow(0 2px 8px rgba(0,0,0,.35));
}
.voice-arrow.prev{
  left:-48px; background:url("http://lp.impactasia.org/kimitabi/studytour-02-2025-summer/assets/images/icon-arrow-left.png") center/contain no-repeat;
}
.voice-arrow.next{
  right:-48px; background:url("http://lp.impactasia.org/kimitabi/studytour-02-2025-summer/assets/images/icon-arrow-right.png") center/contain no-repeat;
}
@media(max-width:640px){
  .voice-arrow{ width:28px; height:28px; }
  .voice-arrow.prev{ left:8px; }
  .voice-arrow.next{ right:8px; }
}

/* ===== FAQ（旧LP風） ===== */
#faq .faq{ max-width:820px; margin:0 auto; }
.faq-item{
  background:#fff; border:2px solid #cfd6ff; border-radius:12px;
  box-shadow:0 2px 0 rgba(207,214,255,.35); margin:20px 0; overflow:hidden;
}
.faq-q{
  position:relative; display:flex; align-items:center; gap:16px;
  padding:22px 56px 22px 72px; font-size:18px; font-weight:700; cursor:pointer;
}
.faq-q::after{
  content:""; position:absolute; right:18px; top:50%; width:18px; height:10px;
  background:url("http://lp.impactasia.org/kimitabi/studytour-02-2025-summer/assets/images/ico_down.svg") center/contain no-repeat;
  transform:translateY(-50%) rotate(0deg); transition:transform .2s ease;
}
.faq-item.open .faq-q::after{ transform:translateY(-50%) rotate(180deg); }
.faq-q > img{
  position:absolute; left:20px; top:50%; transform:translateY(-50%);
  width:44px; height:44px; padding:10px; border-radius:10px;
  background:linear-gradient(135deg,#c7d1ff 0%, #f2ccff 100%);
  box-shadow: inset 0 1px 4px rgba(255,255,255,.6), 0 1px 3px rgba(0,0,0,.08);
}
.faq-a{ display:none; padding:0 24px 22px 72px; color:#333; line-height:1.9; font-size:16px; background:#fff; }
.faq-item.open .faq-a{ display:block; }
@media (max-width:640px){
  .faq-q{ padding:18px 48px 18px 64px; font-size:16px; }
  .faq-q > img{ left:16px; width:38px; height:38px; }
  .faq-a{ padding:0 18px 18px 64px; font-size:15px; }
}

/* ===== Footer ===== */
.site-footer{ background:#4d5657; color:#fff; padding:18px 0; margin-top:40px; }
.footer-links{ display:flex; flex-wrap:wrap; gap:12px; justify-content:center; margin:6px 0 10px; }
.footer-links a{ position:relative; padding:0 8px; }
.footer-links a:not(:last-child)::after{ content:""; position:absolute; right:-6px; top:0; bottom:0; width:1px; background:#ffffff66; }

/* ====== 強制レイアウト（PC中央800px） ====== */
.wrap, .section .wrap { max-width:800px !important; margin:0 auto !important; padding:0 16px !important; }
.section .wrap > img { display:block !important; margin:0 auto !important; max-width:100% !important; height:auto !important; }
.video { max-width:800px !important; margin:0 auto !important; }
.video iframe { position:absolute !important; inset:0 !important; width:100% !important; height:100% !important; border:0 !important; }

/* ====== ヘッダー（シャドウ＋ホバー） ====== */
.site-header{ position:sticky !important; top:0; background:#fff; z-index:50; border-bottom:1px solid #eee;
  box-shadow:0 2px 6px rgba(0,0,0,.06); }
.brand{ font-weight:800; font-size:18px; color:#2d4d6c; letter-spacing:.03em; }
.main-nav a{ padding:6px 10px; border-radius:8px; font-weight:600; transition:all .18s ease; }
.main-nav a:hover{ background:#eaf2ff; color:#0b3d7a; }

/* ====== 右上固定の「学校・法人向け 資料請求」CTA ====== */
.fixed-cta{
  position:fixed !important; top:12px !important; right:16px !important; z-index:1000 !important;
  display:block !important; max-width:220px !important; filter:drop-shadow(0 3px 8px rgba(0,0,0,.25)) !important;
}
.fixed-cta img{ width:100% !important; height:auto !important; }
/* ヘッダーと被りにくくする（スクロール時も右上固定） */
@media (max-width: 820px){
  /* スマホは固定をやめて下に配置（邪魔にならない） */
  .fixed-cta{ position:static !important; margin:12px auto 0 !important; max-width:78vw !important; }
}

/* ====== MV上の旧CTAが残っている場合は非表示（固定CTAに一本化） ====== */
.mv-cta{ display:none !important; }

/* ====== CTA画像の統一サイズ（PCでデカすぎ防止） ====== */
.cta-img{ display:block !important; margin:0 auto !important; max-width:360px !important; width:100% !important; }

/* ====== Voice矢印：顔に被らないようPCは外側へ ====== */
.voice-arrow{ width:32px !important; height:32px !important; top:50% !important; transform:translateY(-50%) !important; opacity:.85 !important; }
.voice-arrow.prev{ left:-48px !important; }
.voice-arrow.next{ right:-48px !important; }
@media (max-width:640px){ .voice-arrow{ width:28px !important; height:28px !important; } .voice-arrow.prev{ left:8px !important; } .voice-arrow.next{ right:8px !important; } }

/* ====== FAQ：開いたら必ず表示 ====== */
.faq-a{ display:none !important; }
.faq-item.open .faq-a{ display:block !important; }

/* 画面全体がフルワイドにならないよう制御 */
.wrap {
  max-width: 1000px;   /* PCでは最大幅 */
  margin: 0 auto;      /* 中央寄せ */
  padding: 0 16px;     /* 左右に余白 */
}

/* セクション直下の画像を中央寄せ & コンテナ幅までに収める */
.section .wrap > img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

/* 動画も同様にコンテナ幅に収める */
.video {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  max-width: 800px;   /* PCでの最大幅（必要に応じて調整） */
  margin: 0 auto;
}
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}