/* 株式会社日本教育工学研究所 コーポレートサイト 共通スタイル */

:root{
  --navy:#1a3a5c;
  --navy-d:#12293f;
  --ink:#1c1c1c;
  --sub:#5a6570;
  --line:#dde3e9;
  --bg-soft:#f4f7fa;
  --accent:#b8860b;
  --max:1040px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Hiragino Kaku Gothic ProN","Yu Gothic UI","Yu Gothic","Meiryo",sans-serif;
  color:var(--ink);
  line-height:1.9;
  font-size:16px;
  background:#fff;
  -webkit-text-size-adjust:100%;
}
img{max-width:100%;height:auto}
a{color:var(--navy);text-underline-offset:3px}
a:hover{color:var(--accent)}

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

/* ---------- ヘッダー ---------- */
header.site{
  border-bottom:1px solid var(--line);
  background:#fff;
  position:sticky;top:0;z-index:50;
}
.head-inner{
  max-width:var(--max);margin:0 auto;padding:14px 24px;
  display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;
}
.logo{display:flex;flex-direction:column;text-decoration:none;color:var(--navy);line-height:1.35}
.logo b{font-size:17px;letter-spacing:.04em;font-weight:700}
.logo span{font-size:11px;color:var(--sub);letter-spacing:.12em}
nav.site ul{list-style:none;display:flex;gap:22px;margin:0;padding:0;flex-wrap:wrap}
nav.site a{text-decoration:none;font-size:14px;color:var(--ink);padding:4px 0;border-bottom:2px solid transparent}
nav.site a:hover,nav.site a[aria-current="page"]{border-bottom-color:var(--navy);color:var(--navy)}

/* ---------- ヒーロー ---------- */
.hero{background:linear-gradient(180deg,#f7fafc 0%,#fff 100%);border-bottom:1px solid var(--line);padding:64px 0 56px}
.hero h1{font-size:30px;line-height:1.6;margin:0 0 18px;letter-spacing:.02em;color:var(--navy-d)}
.hero h1 .em{border-bottom:4px solid #ccd9e5;padding-bottom:2px}
.hero p.lead{font-size:16.5px;margin:0 0 28px;max-width:44em;color:#333}
.hero .meta{font-size:13px;color:var(--sub);margin:0}

/* ---------- ページ見出し ---------- */
.pagehead{background:var(--navy);color:#fff;padding:38px 0}
.pagehead h1{margin:0;font-size:23px;letter-spacing:.06em;font-weight:600}
.pagehead p{margin:6px 0 0;font-size:13px;color:#c3d4e3;letter-spacing:.08em}

/* ---------- セクション ---------- */
section{padding:56px 0}
section.soft{background:var(--bg-soft)}
h2.sec{
  font-size:21px;margin:0 0 8px;color:var(--navy-d);letter-spacing:.03em;
  padding-left:14px;border-left:5px solid var(--navy);
}
p.sec-sub{margin:0 0 28px;color:var(--sub);font-size:14px;padding-left:19px}
h3{font-size:17px;color:var(--navy-d);margin:32px 0 10px}
p{margin:0 0 16px}

/* ---------- カード ---------- */
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px}
.card{border:1px solid var(--line);border-radius:6px;padding:24px;background:#fff}
.card h3{margin:0 0 10px;font-size:16.5px}
.card p{margin:0;font-size:14.5px;color:#3a4650}

/* ---------- 手順 ---------- */
ol.flow{list-style:none;counter-reset:f;margin:0;padding:0}
ol.flow li{counter-increment:f;position:relative;padding:0 0 22px 56px;border-left:2px solid var(--line);margin-left:17px}
ol.flow li:last-child{border-left-color:transparent;padding-bottom:0}
ol.flow li::before{
  content:counter(f);position:absolute;left:-18px;top:0;
  width:34px;height:34px;border-radius:50%;background:var(--navy);color:#fff;
  display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700;
}
ol.flow b{display:block;font-size:16px;color:var(--navy-d);margin-bottom:2px}
ol.flow span{font-size:14.5px;color:#3a4650}

/* ---------- 表 ---------- */
table.info{width:100%;border-collapse:collapse;font-size:15px;margin:0 0 20px}
table.info th,table.info td{border:1px solid var(--line);padding:14px 16px;text-align:left;vertical-align:top}
table.info th{background:var(--bg-soft);width:230px;font-weight:600;color:var(--navy-d)}
@media(max-width:640px){
  table.info th,table.info td{display:block;width:auto;border-bottom:none}
  table.info tr:last-child td{border-bottom:1px solid var(--line)}
}

/* ---------- 料金 ---------- */
.price-box{border:2px solid var(--navy);border-radius:8px;padding:32px;text-align:center;max-width:460px;background:#fff}
.price-box .name{font-size:15px;color:var(--sub);margin:0 0 8px;letter-spacing:.08em}
.price-box .amount{font-size:42px;font-weight:700;color:var(--navy-d);line-height:1.2;margin:0}
.price-box .amount small{font-size:16px;font-weight:400;color:var(--sub)}
.price-box .note{font-size:13.5px;color:var(--sub);margin:14px 0 0}

/* ---------- ボタン ---------- */
.btn{
  display:inline-block;background:var(--navy);color:#fff;text-decoration:none;
  padding:14px 32px;border-radius:5px;font-size:15.5px;letter-spacing:.04em;
  border:2px solid var(--navy);transition:.15s;
}
.btn:hover{background:#fff;color:var(--navy)}
.btn.ghost{background:#fff;color:var(--navy)}
.btn.ghost:hover{background:var(--navy);color:#fff}
.btns{display:flex;gap:14px;flex-wrap:wrap;margin-top:8px}

/* ---------- 注記 ---------- */
.notice{border:1px solid #e0cfa0;background:#fdfaf1;padding:18px 22px;border-radius:5px;font-size:14.5px;color:#5c4a1e}
.notice b{color:#7a6122}

/* ---------- 本文（規約・ポリシー） ---------- */
.doc{padding:52px 0 64px;font-size:15px}
.doc h2{font-size:18px;color:var(--navy-d);margin:36px 0 10px;padding-bottom:6px;border-bottom:1px solid var(--line)}
.doc h2:first-of-type{margin-top:0}
.doc ol,.doc ul{padding-left:1.6em;margin:0 0 16px}
.doc li{margin-bottom:8px}
.doc .rev{margin-top:40px;font-size:13.5px;color:var(--sub);text-align:right}

/* ---------- CTA帯 ---------- */
.cta{background:var(--navy);color:#fff;padding:48px 0;text-align:center}
.cta h2{margin:0 0 10px;font-size:21px;letter-spacing:.04em}
.cta p{margin:0 0 24px;color:#cfdcea;font-size:15px}
.cta .btn{background:#fff;color:var(--navy);border-color:#fff}
.cta .btn:hover{background:transparent;color:#fff}

/* ---------- フッター ---------- */
footer.site{background:#16283a;color:#c8d3de;padding:44px 0 28px;font-size:13.5px}
footer.site a{color:#c8d3de;text-decoration:none}
footer.site a:hover{color:#fff;text-decoration:underline}
.foot-grid{display:flex;justify-content:space-between;gap:32px;flex-wrap:wrap;margin-bottom:28px}
.foot-co b{display:block;color:#fff;font-size:15px;margin-bottom:8px;letter-spacing:.03em}
.foot-co p{margin:0;line-height:1.9}
.foot-links{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:6px 32px}
.copy{border-top:1px solid #2b4157;padding-top:18px;text-align:center;font-size:12px;color:#8fa3b6}

/* ---------- 2つの入口 ---------- */
.gates{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.gate{display:block;text-decoration:none;border:2px solid var(--navy);border-radius:8px;padding:30px 28px;background:#fff;transition:.15s}
.gate .k{font-size:11.5px;letter-spacing:.22em;color:var(--sub);display:block}
.gate h3{margin:8px 0 10px;font-size:22px;color:var(--navy-d)}
.gate p{margin:0;font-size:14.5px;color:#3a4650;line-height:1.8}
.gate .go{display:block;margin-top:18px;font-size:14px;font-weight:700;color:var(--navy)}
.gate:hover{background:var(--navy)}
.gate:hover h3,.gate:hover p,.gate:hover .k,.gate:hover .go{color:#fff}
.gate.free{border-color:#2e7d5b}
.gate.free h3,.gate.free .go{color:#1f5c42}
.gate.free:hover{background:#2e7d5b}

/* ---------- 商品一覧 ---------- */
.badge{display:inline-block;font-size:11.5px;padding:3px 11px;border-radius:3px;white-space:nowrap;font-weight:700;letter-spacing:.04em}
.badge.on{background:#1f5c42;color:#fff}
a.badge.on{text-decoration:none;transition:.12s;box-shadow:0 1px 0 rgba(0,0,0,.15)}
a.badge.on:hover{background:#2b7a58;color:#fff;transform:translateY(-1px)}
a.badge.on::after{content:" ›";font-weight:700}
.badge.soon{background:#e7ebef;color:#6b7680}
.badge.freeb{background:#2e7d5b;color:#fff}

.pgroup{border:1px solid var(--line);border-radius:6px;margin-bottom:26px;overflow:hidden;background:#fff}
.pgroup .ph{background:var(--bg-soft);padding:18px 22px;border-bottom:1px solid var(--line);
  display:flex;justify-content:space-between;align-items:baseline;gap:14px;flex-wrap:wrap}
.pgroup .ph b{font-size:17px;color:var(--navy-d)}
.pgroup .ph .pp{font-size:13.5px;color:var(--sub);white-space:nowrap}
.pgroup .ph .pp strong{font-size:22px;color:var(--navy-d);font-weight:700}
.etag{display:inline-block;background:#b8860b;color:#fff;font-size:11px;font-weight:700;
  padding:3px 9px;border-radius:3px;margin-right:8px;letter-spacing:.08em;vertical-align:2px}
.pgroup ul{list-style:none;margin:0;padding:0}
.pgroup li{padding:15px 22px;border-bottom:1px solid #eef2f5;font-size:15px;
  display:flex;justify-content:space-between;gap:14px;align-items:center;flex-wrap:wrap}
.pgroup li:last-child{border-bottom:none}
.pgroup li .nm{flex:1;min-width:200px}
.pgroup li .nm small{display:block;font-size:13px;color:var(--sub);margin-top:2px}

.gradelist{display:flex;flex-wrap:wrap;gap:10px;margin:0;padding:0;list-style:none}
.gradelist li{border:1px solid var(--line);border-radius:4px;padding:8px 16px;font-size:14.5px;background:#fff}

/* ---------- 商品カード（模擬試験 十番勝負） ---------- */
.prods{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;align-items:stretch}
.prod{
  border:1px solid var(--line);border-top:4px solid var(--navy);border-radius:6px;
  background:#fff;padding:26px 24px;display:flex;flex-direction:column;
}
.prod h3{margin:0 0 12px;font-size:17px;line-height:1.55;color:var(--navy-d)}
.prod>p{margin:0 0 16px;font-size:14.5px;color:#3a4650;line-height:1.8}
.prod .spec{list-style:none;margin:0 0 18px;padding:0}
.prod .spec li{font-size:13.5px;color:var(--sub);padding:6px 0;border-bottom:1px dotted var(--line)}
.prod .fee{margin-top:auto;border-top:1px solid var(--line);padding-top:16px}
.prod .fee .lb{display:block;font-size:13px;color:var(--sub);letter-spacing:.1em}
.prod .amt{display:block;font-size:32px;font-weight:700;color:var(--navy-d);line-height:1.3}
.prod .amt small{font-size:14px;font-weight:400;color:var(--sub);margin-left:2px}
.prod .amt.sm{font-size:25px}
.prod .course{border-top:1px solid var(--line);padding-top:14px;margin-top:14px}
.prod .course:first-of-type{margin-top:auto}
.prod .course b{display:block;font-size:15px;color:var(--navy-d)}
.prod .course .dt{display:block;font-size:13px;color:var(--sub);line-height:1.7;margin:2px 0 6px}

@media(max-width:880px){.prods{grid-template-columns:1fr}}
@media(max-width:760px){.gates{grid-template-columns:1fr}}
@media(max-width:700px){
  .hero{padding:44px 0 40px}
  .hero h1{font-size:23px}
  section{padding:44px 0}
  .price-box .amount{font-size:34px}
}


/* =========================================================
   2026-08-14 明るくカラフルなレイアウト刷新
   文章・商品内容・会社情報は変更せず、視覚設計のみ更新
   ========================================================= */
:root{
  --navy:#163b65;
  --navy-d:#102f52;
  --ink:#17324a;
  --sub:#607284;
  --line:#d9e7f1;
  --bg-soft:#f4faff;
  --accent:#f3a51f;
  --brand-blue:#2478d4;
  --brand-cyan:#2cb8d2;
  --brand-green:#2ca66f;
  --brand-yellow:#ffd45a;
  --brand-orange:#ff8b47;
  --brand-pink:#ef6b91;
  --brand-purple:#7559d9;
  --max:1180px;
  --shadow-soft:0 14px 40px rgba(28,84,126,.11);
  --shadow-card:0 12px 30px rgba(30,80,120,.10);
}

body{
  color:var(--ink);
  background:
    radial-gradient(circle at 5% 8%,rgba(44,184,210,.08),transparent 18rem),
    radial-gradient(circle at 96% 22%,rgba(255,212,90,.12),transparent 20rem),
    #fff;
}

.wrap{max-width:var(--max)}

/* ---------- 研究所を前面に出すヘッダー ---------- */
header.site{
  border-bottom:1px solid rgba(32,103,159,.12);
  box-shadow:0 5px 18px rgba(26,76,118,.06);
}
header.site::before{
  content:"";
  display:block;
  height:5px;
  background:linear-gradient(90deg,var(--brand-blue),var(--brand-cyan),var(--brand-green),var(--brand-yellow),var(--brand-orange),var(--brand-pink),var(--brand-purple));
}
.head-inner{padding:14px 24px 13px;gap:22px}
.logo{
  flex-direction:row;
  align-items:center;
  gap:11px;
  min-width:310px;
}
.logo-mark{
  width:54px;
  height:54px;
  object-fit:contain;
  flex:0 0 auto;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.logo-copy{display:flex;flex-direction:column;line-height:1.35}
.logo b{
  font-size:21px;
  color:var(--navy-d);
  letter-spacing:.04em;
  font-weight:800;
}
.logo span span{
  font-size:10.5px;
  color:#668094;
  letter-spacing:.12em;
  margin-top:2px;
}
nav.site ul{gap:7px}
nav.site a{
  border:0;
  border-radius:999px;
  padding:7px 11px;
  font-size:13px;
  line-height:1.4;
  transition:.16s ease;
}
nav.site a:hover{
  background:#edf7ff;
  color:var(--brand-blue);
}
nav.site a[aria-current="page"]{
  background:linear-gradient(135deg,var(--brand-blue),#3768bd);
  color:#fff;
  box-shadow:0 5px 13px rgba(36,120,212,.18);
}

/* ---------- ホーム：研究所名を最初に見せる ---------- */
.home .hero{
  position:relative;
  overflow:hidden;
  border-bottom:0;
  padding:52px 0 58px;
  background:
    radial-gradient(circle at 9% 18%,rgba(44,184,210,.19),transparent 15rem),
    radial-gradient(circle at 88% 18%,rgba(255,212,90,.27),transparent 17rem),
    radial-gradient(circle at 83% 84%,rgba(239,107,145,.12),transparent 18rem),
    linear-gradient(135deg,#f7fcff 0%,#f5fbff 44%,#fffaf1 100%);
}
.home .hero::before,
.home .hero::after{
  content:"";
  position:absolute;
  border-radius:50%;
  pointer-events:none;
}
.home .hero::before{
  width:185px;height:185px;
  right:-58px;top:32px;
  border:30px solid rgba(117,89,217,.08);
}
.home .hero::after{
  width:120px;height:120px;
  left:-42px;bottom:-35px;
  background:rgba(44,166,111,.08);
}
.institute-kicker{
  display:inline-flex;
  align-items:center;
  gap:13px;
  padding:10px 16px 10px 11px;
  margin-bottom:24px;
  background:rgba(255,255,255,.94);
  border:1px solid rgba(36,120,212,.17);
  border-radius:18px;
  box-shadow:var(--shadow-card);
  position:relative;
  z-index:1;
}
.institute-kicker img{width:58px;height:58px;object-fit:contain}
.institute-kicker div{display:flex;flex-direction:column}
.institute-kicker strong{
  color:var(--navy-d);
  font-size:25px;
  line-height:1.35;
  letter-spacing:.04em;
}
.institute-kicker span{
  color:#6a8091;
  font-size:11px;
  letter-spacing:.14em;
  margin-top:2px;
}
.home .hero h1{
  position:relative;
  z-index:1;
  max-width:900px;
  font-size:clamp(30px,4.1vw,48px);
  line-height:1.48;
  letter-spacing:.01em;
  margin-bottom:22px;
}
.home .hero h1 .em{
  border:0;
  background:linear-gradient(transparent 68%,rgba(255,212,90,.72) 68%);
  padding:0 3px 3px;
}
.home .hero p.lead{
  position:relative;z-index:1;
  max-width:900px;
  font-size:17px;
  line-height:2;
  color:#324b5f;
}
.home .hero .meta{
  position:relative;z-index:1;
  display:inline-block;
  margin-top:2px;
  padding:7px 13px;
  border-radius:999px;
  background:#fff;
  color:#4a6477;
  border:1px solid #dcebf4;
  box-shadow:0 4px 14px rgba(30,80,120,.07);
}

/* ---------- 2つの入口を大きく・同格に ---------- */
.home section:first-of-type{
  padding:48px 0 62px;
  background:#fff;
}
.home section:first-of-type h2.sec{
  font-size:25px;
}
.gates{
  gap:22px;
  margin-top:8px;
}
.gate{
  min-height:290px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  border:0;
  border-radius:22px;
  padding:34px 32px 30px;
  box-shadow:var(--shadow-card);
  position:relative;
  overflow:hidden;
  transform:translateY(0);
  transition:transform .18s ease,box-shadow .18s ease;
}
.gate::before,
.gate::after{
  content:"";
  position:absolute;
  border-radius:50%;
  pointer-events:none;
}
.gate::before{
  width:190px;height:190px;
  right:-68px;top:-72px;
  background:rgba(255,255,255,.13);
}
.gate::after{
  width:95px;height:95px;
  right:42px;bottom:-42px;
  border:18px solid rgba(255,255,255,.12);
}
.gate:not(.free){
  background:linear-gradient(135deg,#176fc6 0%,#258bd6 50%,#2bb8d1 100%);
}
.gate.free{
  border:0;
  background:linear-gradient(135deg,#218b67 0%,#36aa70 50%,#8abd5a 100%);
}
.gate:hover{
  transform:translateY(-5px);
  box-shadow:0 20px 44px rgba(27,84,127,.19);
}
.gate:hover,.gate.free:hover{background-position:0 0}
.gate h3,.gate.free h3{
  position:relative;z-index:1;
  margin:0 0 15px;
  color:#fff;
  font-size:clamp(23px,2.6vw,31px);
  line-height:1.55;
  letter-spacing:.02em;
}
.gate p,.gate.free p{
  position:relative;z-index:1;
  color:rgba(255,255,255,.94);
  font-size:15px;
  line-height:1.9;
}
/* 入口カードの1行目。白い紙の上に置く小さな見出しの色のままだと、
   色つきのカードの上で読めなくなるので、カードの中の色にそろえる。 */
.gate .k,.gate.free .k{
  position:relative;z-index:1;
  display:block;
  margin:0 0 8px;
  color:rgba(255,255,255,.94);
  font-size:15.5px;
  font-weight:700;
  letter-spacing:.06em;
}
.gate .go,.gate.free .go{
  position:relative;z-index:1;
  display:inline-flex;
  align-items:center;
  margin-top:22px;
  padding:9px 15px;
  border-radius:999px;
  background:#fff;
  color:#1767aa;
  font-size:14px;
  font-weight:800;
}
.gate.free .go{color:#247653}
.gate:hover h3,.gate:hover p,.gate:hover .k,.gate:hover .go,
.gate.free:hover h3,.gate.free:hover p,.gate.free:hover .k,.gate.free:hover .go{color:inherit}
.gate:hover h3,.gate:hover p,.gate:hover .k,
.gate.free:hover h3,.gate.free:hover p,.gate.free:hover .k{color:#fff}

/* ---------- セクション / カード ---------- */
section{padding:60px 0}
section.soft{
  background:
    linear-gradient(180deg,#f6fbff 0%,#f9fcff 100%);
  border-top:1px solid #e9f2f8;
  border-bottom:1px solid #e9f2f8;
}
h2.sec{
  font-size:23px;
  border-left:0;
  padding-left:0;
  display:flex;
  align-items:center;
  gap:10px;
}
h2.sec::before{
  content:"";
  width:12px;height:12px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--brand-orange),var(--brand-pink));
  box-shadow:18px 0 0 rgba(44,184,210,.85);
  margin-right:18px;
  flex:0 0 auto;
}
p.sec-sub{padding-left:0;margin-top:3px;font-size:14.5px}
.cards{gap:18px}
.card{
  border:1px solid #e0edf5;
  border-radius:16px;
  box-shadow:0 7px 22px rgba(30,80,120,.06);
  padding:25px;
  position:relative;
  overflow:hidden;
}
.card::before{
  content:"";
  position:absolute;left:0;right:0;top:0;height:4px;
  background:linear-gradient(90deg,var(--brand-blue),var(--brand-cyan),var(--brand-green),var(--brand-yellow));
}
.card h3{font-size:17px}

/* ---------- ページ見出し ---------- */
.pagehead{
  position:relative;
  overflow:hidden;
  background:linear-gradient(115deg,#1e6fc4 0%,#2a92cb 45%,#6e5bd0 100%);
  padding:43px 0;
}
.pagehead::after{
  content:"";
  position:absolute;
  width:210px;height:210px;
  border-radius:50%;
  right:-55px;top:-80px;
  border:34px solid rgba(255,255,255,.10);
}
.pagehead h1{font-size:27px;font-weight:800;position:relative;z-index:1}
.pagehead p{color:rgba(255,255,255,.82);position:relative;z-index:1}

/* ---------- ボタン ---------- */
.btn{
  border:0;
  border-radius:999px;
  padding:13px 26px;
  background:linear-gradient(135deg,var(--brand-blue),#4967cb);
  box-shadow:0 7px 18px rgba(36,120,212,.18);
  font-weight:700;
}
.btn:hover{
  background:linear-gradient(135deg,#1768b6,#3f5dbd);
  color:#fff;
  transform:translateY(-1px);
}
.btn.ghost{
  border:2px solid #cfe1ee;
  color:var(--navy);
  box-shadow:none;
}
.btn.ghost:hover{
  border-color:var(--brand-blue);
  background:#eef7ff;
  color:var(--brand-blue);
}

/* ---------- 商品一覧 / 商品カード ---------- */
.pgroup{
  border:1px solid #dceaf3;
  border-radius:15px;
  box-shadow:0 7px 22px rgba(30,80,120,.06);
}
.pgroup .ph{
  background:linear-gradient(90deg,#edf7ff,#f8fbff);
  padding:19px 22px;
}
.pgroup .ph b{font-size:17px}
.etag{background:linear-gradient(135deg,#f2a11d,#e9872a);border-radius:999px}
.badge{border-radius:999px;padding:4px 12px}
.badge.on{background:linear-gradient(135deg,#218c63,#34ad78)}
.prod{
  border:1px solid #dceaf3;
  border-top:0;
  border-radius:16px;
  box-shadow:0 8px 24px rgba(30,80,120,.07);
  overflow:hidden;
  position:relative;
}
.prod::before{
  content:"";
  position:absolute;left:0;right:0;top:0;height:5px;
  background:linear-gradient(90deg,var(--brand-blue),var(--brand-cyan),var(--brand-green));
}

/* ---------- 手順 ---------- */
ol.flow li::before{
  background:linear-gradient(135deg,var(--brand-blue),var(--brand-purple));
  box-shadow:0 5px 12px rgba(36,120,212,.18);
}
ol.flow li{border-left-color:#d9e9f4}

/* ---------- 表・規約 ---------- */
table.info{box-shadow:0 7px 22px rgba(30,80,120,.05)}
table.info th{background:#f0f8fd;color:var(--navy-d)}
.doc h2{border-bottom:2px solid #e4eef6}

/* ---------- CTA / フッター ---------- */
.cta{
  background:
    radial-gradient(circle at 18% 20%,rgba(255,212,90,.18),transparent 14rem),
    linear-gradient(120deg,#145caa,#207fc0 55%,#5d55bd);
}
footer.site{
  background:linear-gradient(135deg,#12324f,#183f5e);
}
.copy{border-top-color:rgba(255,255,255,.12)}

/* ---------- モバイル ---------- */
@media(max-width:1040px){
  .head-inner{align-items:flex-start}
  .logo{min-width:0}
  nav.site{width:100%;overflow-x:auto;padding-bottom:2px}
  nav.site ul{flex-wrap:nowrap;width:max-content}
  nav.site a{white-space:nowrap}
}
@media(max-width:760px){
  .logo b{font-size:18px}
  .logo-mark{width:48px;height:48px}
  .institute-kicker{display:flex;width:100%;padding:10px 12px}
  .institute-kicker img{width:50px;height:50px}
  .institute-kicker strong{font-size:20px}
  .home .hero{padding:38px 0 44px}
  .home .hero h1{font-size:29px}
  .home .hero p.lead{font-size:15.5px}
  .gates{grid-template-columns:1fr}
  .gate{min-height:0}
}
@media(max-width:520px){
  .wrap{padding:0 18px}
  .head-inner{padding:11px 16px}
  .logo{gap:8px}
  .logo b{font-size:16px}
  .logo span span{font-size:9px}
  .logo-mark{width:44px;height:44px}
  .institute-kicker strong{font-size:18px}
  .institute-kicker span{font-size:9px}
  .gate{padding:28px 23px 26px;border-radius:18px}
  .gate h3,.gate.free h3{font-size:23px}
}


/* ---------------------------------------------------------
   2026-08-18 商品カードの「研究協力価格」を3枚とも同じ形にそろえる
   公立高校のカードだけ「研究協力価格　5,500円」と同じ大きさで
   1行に並んでいたため、1・2枚目と同じ「小さいラベル＋大きい金額」に
   統一した。色は1・2枚目のラベルと同じものを使っている。
   --------------------------------------------------------- */
.prod .course .lb{
  display:block;
  font-size:13px;
  color:var(--sub);
  letter-spacing:.1em;
  margin-top:4px;
}


/* ---------------------------------------------------------
   2026-08-18 スマホで商品シリーズの価格が見切れていた件の修正
   .pgroup .ph の価格（.pp）に white-space:nowrap が掛かっており、
   枠（overflow:hidden）からはみ出して「本体9,000円）」などが
   読めなくなっていた。狭い画面では見出しの下へ回して折り返す。
   PC（901px以上）の見た目はこれまでどおり変わらない。
   --------------------------------------------------------- */
@media(max-width:900px){
  .pgroup .ph{
    flex-direction:column;
    align-items:flex-start;
    gap:9px;
  }
  .pgroup .ph .pp{
    white-space:normal;
    line-height:1.8;
    max-width:100%;
  }
}


/* ---------------------------------------------------------
   2026-08-18 お申し込みボタン（商品一覧・お申し込みページ）
   Stripeの決済画面へ進むためのボタン。既存の配色をそのまま使う。
   --------------------------------------------------------- */
.pgroup li .buybox{
  flex:0 0 100%;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:12px;
  padding-top:13px;
  border-top:1px dashed var(--line);
}
.buy{
  flex:1 1 auto;
  min-width:250px;
  min-height:54px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  font:inherit;
  font-size:15px;
  font-weight:700;
  line-height:1.5;
  text-align:center;
  color:#fff;
  cursor:pointer;
  border:0;
  border-radius:999px;
  padding:13px 24px;
  background:linear-gradient(135deg,#218c63,#34ad78);
  box-shadow:0 7px 18px rgba(33,140,99,.20);
  transition:.15s;
}
.buy:hover{background:linear-gradient(135deg,#1c7a56,#2d9a69);transform:translateY(-1px)}
.buy:focus-visible{outline:3px solid #9fd9bd;outline-offset:2px}
.buy[disabled],.buy-off{
  background:#e7ecf1;
  color:#6b7a88;
  box-shadow:none;
  cursor:default;
  transform:none;
}
.buy-off:hover{background:#e7ecf1;color:#6b7a88;transform:none}
.buy .yen{font-size:17px;font-weight:800;white-space:nowrap}
.buy .sub{font-size:12.5px;font-weight:700;opacity:.92}
.buy-note{
  flex:0 0 100%;
  margin:2px 0 0;
  font-size:12.5px;
  line-height:1.8;
  color:var(--sub);
}
.buy-error{
  flex:0 0 100%;
  margin:8px 0 0;
  padding:11px 14px;
  border-radius:10px;
  background:#fbe6e4;
  border:1px solid #f0b7b2;
  color:#8c1f18;
  font-size:13px;
  font-weight:700;
  line-height:1.8;
}
@media(max-width:640px){
  .buy{flex:1 1 100%;min-width:0;font-size:14.5px;padding:13px 18px}
  .buy .yen{font-size:16px}
}

/* 準備中（リンクなし）の項目。2026-11-25 田中さん：オリジナル教材は準備中 */
nav.site .nav-soon{display:inline-block;color:#8a96a3;cursor:default;font-size:14px;padding:4px 0}
nav.site .nav-soon small,footer .nav-soon small{font-size:.85em;margin-left:2px}
footer .nav-soon{color:#8a96a3;cursor:default}
.gate.gate--soon{cursor:default;border-style:dashed;opacity:.75}
.gate.gate--soon:hover{background:#fff}
.gate.gate--soon:hover h3,.gate.gate--soon:hover .k{color:inherit}
.gate.free.gate--soon:hover h3{color:#1f5c42}
.gate.gate--soon .go{color:#8a96a3}
.is-soon{color:#8a96a3;cursor:default}

/* ホームのカードの右上の「？ 説明」（2026-11-30 田中さん：サインイン前でも解説ページを開ける） */
.gate-box{position:relative;display:flex}
.gate-box>.gate{flex:1 1 auto}
.gate-help{position:absolute;top:16px;right:16px;z-index:3;display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 14px 0 6px;border-radius:999px;background:#fff;color:#155a9c;font-size:14px;font-weight:700;text-decoration:none;box-shadow:0 4px 12px rgba(0,0,0,.15)}
.gate-help .q{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:#155a9c;color:#fff;font-size:15px;font-weight:900;line-height:1}
.gate-box:has(.gate.free) .gate-help{color:#1f6b48}
.gate-box:has(.gate.free) .gate-help .q{background:#1f6b48}
.gate-help:hover{background:#f1f6fb}
/* 2026-12-01：「？ …とは」ボタンが長くなったので、狭い画面ではカードの上に余白をとって小見出しと重ならないようにする */
@media (max-width:560px){.gate-box .gate{padding-top:64px}}
