/* 一般社団法人MSフォーラム ホームページ
   字は大きく、行間は締める（牧村さんのご希望）。 */

:root {
  --navy: #14307e;
  --navy-dark: #0c1f55;
  --blue-soft: #eef2fb;
  --green: #17692a;
  --red: #c8161d;
  --red-dark: #a00f15;
  --ink: #1a1a1a;
  --sub: #4a4f5c;
  --line: #cfd6e6;
  --bg: #ffffff;
  --wrap: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 18px; -webkit-text-size-adjust: 100%; }
@media (min-width: 900px) { html { font-size: 19px; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--red); }
p { margin: 0 0 .6em; }
ul, ol { margin: 0 0 .6em; padding-left: 1.3em; }
li { margin: .15em 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

/* ---------- ヘッダー ---------- */
.site-header { background: #fff; border-bottom: 4px solid var(--navy); }
.header-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px;
}
.logo img { width: 300px; }
.header-btns { display: flex; gap: 8px; flex-wrap: wrap; }

.gnav { background: var(--navy); }
.gnav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap;
}
.gnav li { margin: 0; }
.gnav a {
  display: block; padding: .55em .9em; color: #fff; text-decoration: none;
  font-weight: 700;
}
.gnav a:hover { background: var(--navy-dark); color: #fff; }
.gnav a[aria-current] { background: var(--navy-dark); box-shadow: inset 0 -4px 0 var(--red); }

@media (max-width: 700px) {
  .logo img { width: 230px; }
  .header-btns { width: 100%; }
  .header-btns .btn { flex: 1; text-align: center; }
  .gnav .wrap { padding: 0; }
  .gnav ul { display: grid; grid-template-columns: 1fr 1fr; }
  .gnav a { padding: .6em 16px; border-top: 1px solid rgba(255,255,255,.15); font-size: .95rem; }
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-block; padding: .55em 1.2em; border-radius: 6px;
  font-weight: 700; text-decoration: none; line-height: 1.3;
  border: 2px solid transparent;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); color: #fff; }
.btn-line { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-line:hover { background: var(--blue-soft); color: var(--navy); }
.btn-big { font-size: 1.15rem; padding: .7em 1.6em; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; margin: .8em 0; }
.btns.center { justify-content: center; }

/* ---------- 見出しと区切り ---------- */
.section { padding: 2.2rem 0; }
.section.alt { background: var(--blue-soft); }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; }
h1 { font-size: 1.8rem; color: var(--navy); }
h2 {
  font-size: 1.5rem; color: var(--navy);
  padding-bottom: .25em; border-bottom: 3px solid var(--navy);
}
h3 { font-size: 1.2rem; color: var(--green); }
.lead { font-size: 1.1rem; }
.center { text-align: center; }
.red { color: var(--red); }
.small { font-size: .9rem; color: var(--sub); }

.page-title { background: var(--navy); color: #fff; padding: 1.1rem 0; }
.page-title h1 { color: #fff; margin: 0; font-size: 1.6rem; }

/* ---------- トップ ---------- */
.hero { background: #fff; }
.hero img { width: 100%; max-width: 1900px; margin: 0 auto; }

.bosyu {
  border: 3px solid var(--red); border-radius: 10px; background: #fff;
  padding: 1.1rem 1.2rem; margin-top: -1.2rem; position: relative;
  box-shadow: 0 4px 14px rgba(20,48,126,.12);
}
.bosyu .tag {
  display: inline-block; background: var(--red); color: #fff; font-weight: 700;
  padding: .15em .7em; border-radius: 4px; font-size: .95rem; margin-bottom: .4em;
}
.bosyu h2 { border: 0; padding: 0; font-size: 1.6rem; color: var(--ink); margin-bottom: .3em; }
.bosyu dl { display: grid; grid-template-columns: auto 1fr; gap: .2em 1em; margin: .4em 0 .6em; }
.bosyu dt { font-weight: 700; color: var(--navy); }
.bosyu dd { margin: 0; }
.bosyu .big { font-size: 1.25rem; font-weight: 700; }
@media (max-width: 700px) {
  .bosyu { margin-top: 1rem; }
  .bosyu dl { grid-template-columns: 1fr; }
  .bosyu dd { margin-bottom: .3em; }
}

.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.1rem;
}
.card h3 { margin-bottom: .3em; }
.card p:last-child { margin-bottom: 0; }

.subjects { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); }
.subject {
  display: block; text-decoration: none; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 8px; padding: .6rem; text-align: center;
}
.subject:hover { border-color: var(--navy); color: var(--navy); }
.subject img { width: 110px; margin: 0 auto .3em; }
.subject .no { display: block; color: var(--green); font-weight: 700; font-size: .9rem; }
.subject .name { font-weight: 700; line-height: 1.3; }

.two { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 800px) { .two { grid-template-columns: 3fr 2fr; } .two.even { grid-template-columns: 1fr 1fr; } }

.video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 6px; overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.videos { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.videos h3 { margin-bottom: .35em; }

.shots { display: flex; gap: 12px; justify-content: center; }
.shots img { width: 46%; max-width: 220px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.18); }

.program { list-style: none; padding: 0; margin: .5em 0; }
.program li { padding: .35em 0; border-bottom: 1px dashed var(--line); }
.program .who { color: var(--sub); }

.message {
  background: var(--navy); color: #fff; border-radius: 10px; padding: 1.4rem 1.4rem;
}
.message h2 { color: #fff; border-color: rgba(255,255,255,.5); }
.message .strong { font-size: 1.25rem; font-weight: 700; color: #ffd84d; }

/* ---------- 講座の内容 ---------- */
.subject-block {
  display: grid; grid-template-columns: 120px 1fr; gap: 16px;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
}
.subject-block img { width: 120px; }
.subject-block h3 { margin-bottom: .25em; }
.subject-block ol { margin: .3em 0 0; padding-left: 0; list-style: none; }
.subject-block li { margin: .25em 0; }
.subject-block .ttl { font-weight: 700; }
@media (max-width: 600px) {
  .subject-block { grid-template-columns: 72px 1fr; gap: 10px; }
  .subject-block img { width: 72px; }
}
.kai { color: var(--sub); font-size: .9rem; margin-right: .3em; }

/* ---------- 講師陣 ---------- */
.teachers { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.teacher {
  display: grid; grid-template-columns: 110px 1fr; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: .9rem;
}
.teacher img { width: 110px; height: 138px; object-fit: cover; border-radius: 4px; }
.teacher h3 { color: var(--ink); margin-bottom: .1em; font-size: 1.2rem; }
.teacher .tanto { color: var(--green); font-weight: 700; font-size: .95rem; margin-bottom: .3em; }
.teacher p { font-size: .95rem; margin: 0; }
@media (max-width: 400px) {
  .teachers { grid-template-columns: 1fr; }
  .teacher { grid-template-columns: 84px 1fr; }
  .teacher img { width: 84px; height: 106px; }
}

/* ---------- 表・規約 ---------- */
table { border-collapse: collapse; width: 100%; margin: .5em 0 1em; }
th, td { border: 1px solid var(--line); padding: .45em .7em; text-align: left; vertical-align: top; }
th { background: var(--blue-soft); color: var(--navy); white-space: nowrap; }
@media (max-width: 600px) {
  .table-stack th, .table-stack td { display: block; border-top: 0; }
  .table-stack tr:first-child th { border-top: 1px solid var(--line); }
}

.doc h2 { font-size: 1.25rem; margin-top: 1.4em; }
.doc h3 { color: var(--navy); font-size: 1.05rem; margin: 1em 0 .3em; }
.doc ol, .doc ul { padding-left: 1.6em; }

.note {
  border-left: 5px solid var(--navy); background: var(--blue-soft);
  padding: .7rem 1rem; margin: 1em 0;
}
.todo {
  border: 2px dashed var(--red); background: #fff5f5; color: var(--red-dark);
  padding: .6rem .9rem; margin: 1em 0; font-weight: 700;
}

/* ---------- フッター ---------- */
.site-footer { background: var(--navy-dark); color: #fff; margin-top: 2rem; }
.site-footer a { color: #fff; }
.footer-in { display: grid; gap: 20px; grid-template-columns: 1fr; padding-top: 1.6rem; padding-bottom: 1rem; }
@media (min-width: 800px) { .footer-in { grid-template-columns: 1.2fr 1fr; } }
.footer-name { font-weight: 700; font-size: 1.1rem; }
.footer-nav { list-style: none; padding: 0; margin: 0; columns: 2; }
.footer-nav li { margin: 0 0 .35em; break-inside: avoid; }
.copy { text-align: center; font-size: .85rem; margin: 0; padding: .7rem 16px; border-top: 1px solid rgba(255,255,255,.2); }

@media (max-width: 700px) {
  .page-index .two img { max-width: 200px !important; }
  .shots img { max-width: 160px; }
}

/* ---------- TAKERU（明るい若草色の角丸パネル） ---------- */
:root { --tk-bg: #eaf7ee; --tk-green: #1f9d5c; --tk-green-dark: #147a45; --tk-ink: #0f4a2c; }
.takeru-band {
  background: var(--tk-bg); color: var(--ink);
  border-top: 4px solid var(--tk-green); border-bottom: 4px solid var(--tk-green);
  padding: 2rem 0;
}
.takeru-band.tk-panel {
  border: 3px solid var(--tk-green); border-radius: 18px;
  padding: 1.6rem 1.8rem; margin-top: 1.4rem;
  box-shadow: 0 4px 14px rgba(20,90,50,.12);
}
@media (max-width: 700px) { .takeru-band.tk-panel { padding: 1.1rem 1rem; } }
.takeru-in { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 800px) { .takeru-in { grid-template-columns: 3fr 2fr; } }
.takeru-kicker { color: var(--tk-green-dark); font-weight: 700; margin: 0 0 .2em; letter-spacing: .05em; }
.takeru-title {
  display: flex; align-items: center; gap: .4em;
  font-size: 2.1rem; color: var(--tk-ink); border: 0; padding: 0; margin-bottom: .3em;
}
.takeru-title img { width: 72px; height: 72px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 2px var(--tk-green); }
.takeru-catch { font-size: 1.6rem; font-weight: 700; color: var(--tk-green-dark); margin: 0 0 .3em; line-height: 1.3; }
.takeru-lead { font-size: 1.12rem; }
.takeru-lead strong { color: var(--red); }
.takeru-points { list-style: none; padding: 0; margin: .6em 0 .8em; }
.takeru-points li { padding: .35em 0 .35em 1.1em; border-bottom: 1px solid rgba(20,90,50,.18); position: relative; }
.takeru-points li::before { content: ""; position: absolute; left: 0; top: .85em; width: .5em; height: .5em; background: var(--tk-green); border-radius: 50%; }
.takeru-points strong { color: var(--tk-green-dark); }
.takeru-note { color: var(--sub); font-size: .9rem; }
.btn-takeru { background: var(--tk-green); color: #fff; }
.btn-takeru:hover { background: var(--tk-green-dark); color: #fff; }
.btn-takeru-line { background: #fff; color: var(--tk-green-dark); border-color: var(--tk-green); }
.btn-takeru-line:hover { background: #d8f0e1; color: var(--tk-green-dark); }
.takeru-band a:not(.btn) { color: var(--tk-green-dark); }
.takeru-qr { display: none; align-items: center; gap: 14px; margin-top: .6em; }
.takeru-qr img { width: 110px; border-radius: 6px; border: 1px solid rgba(20,90,50,.25); }
.takeru-qr p { margin: 0; font-size: .92rem; color: var(--sub); }
@media (min-width: 800px) { .takeru-qr { display: flex; } }
.takeru-band .shots img { box-shadow: 0 0 0 2px var(--tk-green), 0 6px 16px rgba(0,0,0,.18); }
@media (max-width: 700px) { .takeru-title { font-size: 1.6rem; } .takeru-title img { width: 56px; height: 56px; } .takeru-catch { font-size: 1.3rem; } }

.bosyu-sub { font-weight: 700; color: var(--navy); }
.page-index .bosyu { margin-top: 1.4rem; }

.levels { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.level { border: 1px solid var(--line); border-radius: 8px; padding: .9rem 1rem; background: #fff; }
.level h3 { margin-bottom: .2em; }
.level .state { display: inline-block; font-size: .85rem; font-weight: 700; padding: .05em .6em; border-radius: 4px; background: #e6e8ee; color: var(--sub); }
.level .state.open { background: var(--tk-green-dark); color: #fff; }
.steps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

br.pc { display: none; }
@media (min-width: 801px) { br.pc { display: inline; } }

/* ---------- トップのヒーロー（絵の上に文字を重ねる。狭い画面では絵の下に回す）
   絵の2人は横幅の45%あたりから右にいるので、文字は左の40%に収める。 ---------- */
.hero2 { position: relative; background: #f4f8fc; overflow: hidden; max-width: 1280px; margin: 0 auto; container-type: inline-size; }
.hero2-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.hero2-in {
  position: relative; max-width: none; min-height: 41.6cqw;
  padding-left: max(16px, 5cqw); display: flex; align-items: center;
}
.hero2-copy { width: 40cqw; padding: 1.5cqw 0; }
.hero2-title {
  font-family: "Noto Serif JP", serif; font-weight: 700; color: #16295e;
  font-size: 3.4cqw; line-height: 1.3; margin: 0 0 .45em;
  padding-bottom: .4em; position: relative;
  text-shadow: 0 0 12px rgba(255,255,255,.9), 0 0 3px #fff;
}
.hero2-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 3em; height: 2px; background: #16295e; }
.hero2-lead {
  font-family: "Noto Serif JP", serif; font-weight: 500; color: #222;
  font-size: max(15px, 1.2cqw); line-height: 1.6; letter-spacing: .02em; margin-bottom: 1.1em;
  text-shadow: 0 0 8px #fff, 0 0 2px #fff;
}
.hero2-btns { display: flex; gap: 1cqw; }
.hero2-btn {
  flex: 1; display: flex; align-items: center; gap: .6em;
  padding: .6em .9em; border-radius: 10px; color: #fff; text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
}
.hero2-btn::after { content: "›"; margin-left: auto; padding-left: .6em; border-left: 1px solid rgba(255,255,255,.4); font-size: 1.6em; line-height: 1; }
.hero2-btn svg { width: 2.1em; height: 2.1em; flex: none; }
.hero2-btn span { display: flex; flex-direction: column; font-family: "Noto Serif JP", serif; font-weight: 700; font-size: max(18px, 1.55cqw); line-height: 1.2; white-space: nowrap; }
.hero2-btn small { font-size: .62em; font-weight: 500; letter-spacing: .08em; }
.hb-navy { background: linear-gradient(135deg, #1b3a7a, #13295a); }
.hb-red { background: linear-gradient(135deg, #a8282c, #861c20); }
.hero2-btn:hover { color: #fff; filter: brightness(1.12); }

@media (max-width: 1099px) {
  .hero2 { background: #fff; }
  .hero2-img { position: static; height: auto; aspect-ratio: 1942 / 809; }
  .hero2-in { min-height: 0; display: block; padding: 0 16px; max-width: var(--wrap); margin: 0 auto; }
  .hero2-copy { width: auto; padding: 1.1rem 0 0; }
  .hero2-title { font-size: clamp(1.6rem, 5.5vw, 2.4rem); text-shadow: none; }
  .hero2-lead { font-size: 1rem; text-shadow: none; }
  .hero2-btns { gap: 10px; flex-wrap: wrap; }
  .hero2-btn { flex: 1 1 240px; }
  .hero2-btn span { font-size: 1.3rem; }
}
@media (max-width: 600px) {
  .hero2-img { aspect-ratio: auto; height: 220px; object-position: 80% center; }
  .hero2-lead br { display: none; }
}

/* 新規会員登録は、前のホームページからの青 */
.btn-join { background: #337ab7; color: #fff; }
.btn-join:hover { background: #296292; color: #fff; }

/* TAKERUパネル：締める。「軍事戦略ジュニアコース」は緑の帯で目立たせる */
.takeru-kicker {
  display: inline-block; background: var(--tk-green); color: #fff;
  font-size: 1.15rem; letter-spacing: .08em; padding: .25em .9em; border-radius: 6px; margin-bottom: .45em;
}
.takeru-title { margin-bottom: .15em; }
.takeru-catch { margin-bottom: .15em; line-height: 1.25; }
.takeru-lead { margin-bottom: .3em; line-height: 1.45; }
.takeru-points { margin: .3em 0 .6em; }
.takeru-points li { padding: .18em 0 .18em 1.1em; line-height: 1.4; }
.takeru-points li::before { top: .62em; }
.takeru-band .btns { margin: .5em 0; }
.takeru-qr { margin-top: .3em; }
.takeru-band.tk-panel { padding: 1.3rem 1.8rem; }

/* TAKERUパネル：右の列に写真とQR、左は文字だけ（高さを抑える） */
.takeru-in { align-items: start; }
.takeru-side { display: flex; flex-direction: column; gap: 12px; }
.takeru-side .shots img { max-width: 175px; }
.takeru-qr { display: flex; align-items: center; gap: 12px; margin: 0; background: #fff; border-radius: 10px; padding: .6rem .8rem; }
.takeru-qr img { width: 96px; flex: none; }
.takeru-qr-note { margin: 0 0 .2em; font-size: .85rem; line-height: 1.4; color: var(--sub); }
.takeru-url { margin: 0; font-size: 1.4rem; font-weight: 700; letter-spacing: .02em; }
.takeru-url a { color: var(--tk-green-dark); text-decoration: none; }
@media (max-width: 799px) {
  .takeru-qr img, .takeru-qr-note { display: none; }
  .takeru-qr { justify-content: center; }
}
.hero2 { max-width: 1180px; }
/* QRの台：左にQR、右に説明、下の段いっぱいにアドレス */
.takeru-qr { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; }
.takeru-qr .takeru-url { grid-column: 1 / -1; text-align: center; font-size: 1.55rem; line-height: 1.2; letter-spacing: 0; white-space: nowrap; color: inherit; }
@media (max-width: 799px) { .takeru-qr { display: block; } .takeru-qr .takeru-url { font-size: 1.2rem; } }
.takeru-after { font-size: .88rem; color: var(--sub); margin: .45em 0 0 .3em; }

/* TAKERUの緑を濃く、外枠を強く（2026-09-29 牧村さん） */
:root { --tk-green: #16804a; --tk-green-dark: #0e6336; }
.takeru-band.tk-panel { border-width: 4px; border-color: var(--tk-green-dark); }
.takeru-band { border-top-color: var(--tk-green-dark); border-bottom-color: var(--tk-green-dark); }
.takeru-kicker { background: var(--tk-green-dark); }

/* スマホの上のメニューでは短い名前 */
.sp-label { display: none; }
@media (max-width: 700px) { .pc-label { display: none; } .sp-label { display: inline; } }
/* 緑は濃すぎたので少し戻す（中間） */
:root { --tk-green: #1b9155; --tk-green-dark: #127543; }
.takeru-open { color: #0a6fb5; font-weight: 700; font-size: .9rem; white-space: nowrap; }

/* TAKERUのキャッチ：大きさは元のまま、いちばん太い字と濃いマリンブルーで目立たせる */
.takeru-catch {
  font-family: "Noto Sans JP", "BIZ UDPGothic", sans-serif; font-weight: 900;
  font-size: 1.6rem; line-height: 1.3; color: #0b5394; letter-spacing: .01em; margin: .1em 0 .3em;
}
@media (max-width: 700px) { .takeru-catch { font-size: 1.3rem; } }
.steps { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps { grid-template-columns: 1fr; }
@media (min-width: 700px) { .steps { grid-template-columns: 1fr 1fr; } }
/* 試し：一段細く、入門コースのボタンと同じ赤（2026-09-29） */
.takeru-catch { font-weight: 800; color: #a8282c; }

/* ページの題の帯：メニューと分けるため淡い地に紺の字、左に紺の太い線（案A、2026-09-29） */
.page-title { background: var(--blue-soft); color: var(--navy); padding: .9rem 0; border-bottom: 1px solid var(--line); }
.page-title h1 { color: var(--navy); border-left: 8px solid var(--navy); padding-left: .55em; line-height: 1.25; }

/* ヒーローの「第9期生募集中！」の札（押すと下の9期の枠へ） */
.hero2-badge {
  display: inline-block; margin-bottom: 3.5cqw;
  background: linear-gradient(135deg, #d61f26, #a8121a); color: #fff; text-decoration: none;
  font-weight: 700; font-size: max(20px, 1.9cqw); letter-spacing: .04em; line-height: 1.2;
  padding: .45em 1em; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(168,18,26,.35); border: 2px solid #fff;
}
.hero2-badge:hover { color: #fff; filter: brightness(1.1); }
@media (max-width: 1099px) {
  .hero2-badge { font-size: 1.3rem; margin-bottom: 1.35rem; }
}
html { scroll-behavior: smooth; }

/* 9期の枠の「受講生募集中」を大きく */
.bosyu .tag { font-size: 1.3rem; padding: .2em .9em; border-radius: 6px; margin-bottom: .45em; }
