/* ===== SCHOOL DEMO CSS ===== */
:root {
  --blue: #1565c0;
  --blue-m: #1e88e5;
  --blue-lt: #e3f2fd;
  --orange: #e65100;
  --orange-m: #f57c00;
  --orange-lt: #fff3e0;
  --text: #1a237e;
  --text-m: #37474f;
  --text-lt: #78909c;
  --bg: #f5f9ff;
  --white: #fff;
  --r: 12px;
  --rr: 20px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans JP', sans-serif; color: var(--text-m); background: var(--bg); line-height: 1.75; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--white); border-bottom: 2px solid var(--blue-lt);
  box-shadow: 0 2px 12px rgba(21,101,192,.08);
}
.nav-in {
  max-width: 1080px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 62px;
}
.brand { font-size: 1.1rem; font-weight: 900; color: var(--blue); display: flex; align-items: center; gap: .5rem; }
.brand i { color: var(--orange-m); }
.nav-list { display: flex; align-items: center; gap: 1.5rem; }
.nav-list a { font-size: .86rem; font-weight: 600; color: var(--text-m); transition: color .2s; }
.nav-list a:hover { color: var(--blue); }
.nav-cta {
  background: var(--orange-m); color: #fff !important;
  padding: .4rem 1rem; border-radius: 999px; font-weight: 800 !important;
  transition: background .2s !important;
}
.nav-cta:hover { background: var(--orange) !important; }
.hbg { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hbg span { display: block; width: 23px; height: 2.5px; background: var(--blue); border-radius: 2px; transition: all .3s; }

/* HERO */
.hero {
  min-height: 90vh; padding: 100px 0 60px;
  background: linear-gradient(135deg, #e3f2fd 0%, #f5f9ff 50%, #fff3e0 100%);
  position: relative; overflow: hidden;
  display: flex; align-items: center;
}
.hero-shapes { position: absolute; inset: 0; pointer-events: none; }
.hs { position: absolute; border-radius: 50%; }
.hs1 { width: 400px; height: 400px; top: -150px; right: -100px; background: rgba(30,136,229,.1); }
.hs2 { width: 300px; height: 300px; bottom: -100px; left: 5%; background: rgba(245,124,0,.08); }
.hs3 { width: 200px; height: 200px; top: 30%; right: 15%; background: rgba(21,101,192,.05); }
.hero-body { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--orange-lt); color: var(--orange);
  border: 1px solid rgba(230,81,0,.2); border-radius: 999px;
  font-size: .78rem; font-weight: 800; padding: .3rem .9rem;
  margin-bottom: 1.2rem;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; color: var(--text); line-height: 1.25; margin-bottom: 1.1rem; }
.hero h1 em { font-style: normal; color: var(--orange-m); }
.hero-lead { font-size: 1rem; color: var(--text-m); margin-bottom: 1.8rem; max-width: 620px; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.btn-orange {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--orange-m); color: #fff;
  padding: .78rem 1.6rem; border-radius: 999px;
  font-weight: 800; font-size: .9rem;
  box-shadow: 0 4px 18px rgba(245,124,0,.4); transition: all .22s;
}
.btn-orange:hover { background: var(--orange); transform: translateY(-2px); }
.btn-outline-blue {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 2px solid var(--blue); color: var(--blue);
  padding: .78rem 1.6rem; border-radius: 999px;
  font-weight: 800; font-size: .9rem; transition: all .22s;
}
.btn-outline-blue:hover { background: var(--blue-lt); }
.hero-tags { display: flex; flex-wrap: wrap; gap: .6rem; }
.hero-tags span {
  display: inline-flex; align-items: center; gap: .3rem;
  background: rgba(21,101,192,.08); color: var(--blue);
  font-size: .78rem; font-weight: 700; padding: .28rem .7rem; border-radius: 999px;
}
.hero-tags span i { color: var(--orange-m); font-size: .7rem; }

/* RESULTS */
.results { background: var(--blue); padding: 40px 0; }
.res-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.res-card { text-align: center; padding: 1rem; }
.res-num { display: block; font-size: 2.2rem; font-weight: 900; color: #fff; line-height: 1.1; }
.res-num small { font-size: 1rem; }
.res-label { display: block; font-size: .76rem; color: rgba(255,255,255,.7); margin-top: .3rem; }

/* FEATURES */
.features { padding: 80px 0; background: var(--white); }
.sec-label { font-size: .7rem; font-weight: 800; letter-spacing: .14em; color: var(--blue); text-transform: uppercase; margin-bottom: .5rem; display: block; }
.sec-h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 900; color: var(--text); margin-bottom: .8rem; }
.sec-p { color: var(--text-lt); margin-bottom: 2.5rem; font-size: .9rem; }
.feat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; margin-top: 1.5rem; }
.feat-card {
  padding: 1.6rem; border-radius: var(--rr); border: 2px solid var(--blue-lt);
  background: var(--white); transition: all .25s;
}
.feat-card:hover { border-color: var(--blue); box-shadow: 0 8px 24px rgba(21,101,192,.12); transform: translateY(-4px); }
.feat-ico {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin-bottom: .9rem;
}
.feat-ico.orange { background: var(--orange-lt); color: var(--orange-m); }
.feat-ico.blue { background: var(--blue-lt); color: var(--blue); }
.feat-card h3 { font-size: .92rem; font-weight: 800; color: var(--text); margin-bottom: .45rem; }
.feat-card p { font-size: .84rem; color: var(--text-lt); line-height: 1.75; }

/* COURSES */
.courses { padding: 80px 0; background: var(--bg); }
.course-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.6rem; margin-top: 1.5rem; }
.course-card {
  background: var(--white); border-radius: var(--rr); overflow: hidden;
  border: 2px solid var(--blue-lt); position: relative;
  transition: transform .25s, box-shadow .25s;
}
.course-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(21,101,192,.14); }
.featured-card { border-color: var(--orange-m); }
.course-badge {
  position: absolute; top: .8rem; right: .8rem;
  background: var(--orange-m); color: #fff; font-size: .7rem; font-weight: 800;
  padding: .22rem .65rem; border-radius: 999px;
}
.course-head {
  height: 100px; display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
}
.elem { background: linear-gradient(135deg, #81c784, #43a047); color: #fff; }
.middle { background: linear-gradient(135deg, #42a5f5, #1565c0); color: #fff; }
.high { background: linear-gradient(135deg, #f57c00, #e65100); color: #fff; }
.course-body { padding: 1.3rem; }
.grade-tag {
  display: inline-block; font-size: .7rem; font-weight: 800;
  background: var(--blue-lt); color: var(--blue);
  padding: .18rem .6rem; border-radius: 4px; margin-bottom: .6rem;
}
.course-body h3 { font-size: .95rem; font-weight: 800; color: var(--text); margin-bottom: .4rem; }
.course-body p { font-size: .82rem; color: var(--text-lt); line-height: 1.7; margin-bottom: .8rem; }
.course-price { font-size: .9rem; color: var(--text-m); }
.course-price strong { color: var(--orange); font-size: 1.05rem; }

/* SIMULATOR */
.sim-section { padding: 80px 0; background: var(--white); }
.sim-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: start; margin-top: 1rem; }
.sim-controls { display: flex; flex-direction: column; gap: 1.6rem; }
.sim-group { background: var(--bg); border-radius: var(--rr); padding: 1.4rem; border: 1px solid var(--blue-lt); }
.sim-group h4 { font-size: .9rem; font-weight: 800; color: var(--text); margin-bottom: 1rem; display: flex; align-items: center; gap: .4rem; }
.sim-group h4 i { color: var(--blue); }
.radio-grid { display: flex; flex-wrap: wrap; gap: .6rem; }
.radio-card {
  flex: 1; min-width: 80px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.radio-card input { display: none; }
.radio-card span {
  display: block; width: 100%; text-align: center;
  padding: .55rem .5rem; border-radius: 10px;
  border: 2px solid var(--blue-lt); background: var(--white);
  font-size: .84rem; font-weight: 700; color: var(--text-m);
  transition: all .18s; cursor: pointer;
}
.radio-card input:checked + span {
  background: var(--blue); border-color: var(--blue); color: #fff;
}
.radio-card span:hover { border-color: var(--blue-m); }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.check-card { display: flex; align-items: center; cursor: pointer; }
.check-card input { display: none; }
.check-card span {
  display: flex; align-items: center; gap: .4rem;
  width: 100%; padding: .5rem .65rem; border-radius: 8px;
  border: 2px solid var(--blue-lt); background: var(--white);
  font-size: .8rem; font-weight: 600; color: var(--text-m);
  transition: all .18s; cursor: pointer;
}
.check-card span i { color: var(--orange-m); font-size: .8rem; }
.check-card input:checked + span {
  background: var(--orange-lt); border-color: var(--orange-m); color: var(--orange);
}

.sim-result-box {
  position: sticky; top: 80px;
}
.sim-result-inner {
  background: linear-gradient(135deg, var(--blue) 0%, #0d47a1 100%);
  border-radius: var(--rr); padding: 2rem; color: #fff; text-align: center;
  box-shadow: 0 8px 32px rgba(21,101,192,.3);
}
.sim-res-title { font-size: .82rem; font-weight: 700; color: rgba(255,255,255,.7); margin-bottom: .5rem; letter-spacing: .08em; }
.sim-total { font-size: 3rem; font-weight: 900; color: #fff; line-height: 1; margin: .3rem 0; }
.sim-res-sub { font-size: .82rem; color: rgba(255,255,255,.6); margin-bottom: 1.2rem; }
.sim-breakdown { margin: 1rem 0; display: flex; flex-direction: column; gap: .4rem; }
.breakdown-row { display: flex; justify-content: space-between; font-size: .8rem; padding: .3rem .5rem; border-radius: 6px; background: rgba(255,255,255,.1); }
.breakdown-row.total-row { background: rgba(255,255,255,.2); font-weight: 800; font-size: .9rem; margin-top: .3rem; }
.btn-try {
  display: block; margin: 1.2rem 0 .5rem;
  background: var(--orange-m); color: #fff;
  padding: .8rem 1rem; border-radius: 999px;
  font-weight: 800; font-size: .9rem;
  box-shadow: 0 4px 16px rgba(245,124,0,.45);
  transition: all .2s;
}
.btn-try:hover { background: var(--orange); transform: translateY(-2px); }
.sim-note { font-size: .72rem; color: rgba(255,255,255,.5); line-height: 1.6; }

/* VOICE */
.voice { padding: 80px 0; background: var(--bg); }
.voice-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 1.5rem; }
.voice-card {
  background: var(--white); border-radius: var(--rr); padding: 1.5rem;
  border: 1px solid var(--blue-lt); transition: transform .25s;
}
.voice-card:hover { transform: translateY(-4px); }
.stars { color: var(--orange-m); font-size: .85rem; margin-bottom: .7rem; }
.voice-card p { font-size: .86rem; color: var(--text-m); line-height: 1.8; margin-bottom: .8rem; }
.voice-from { font-size: .76rem; font-weight: 700; color: var(--blue); }

/* TRIAL */
.trial { padding: 80px 0; background: var(--white); }
.trial-box {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
  background: linear-gradient(135deg, var(--blue) 0%, #0d47a1 100%);
  border-radius: 24px; padding: 3rem; color: #fff;
}
.trial-text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; margin-bottom: .8rem; }
.trial-text p { font-size: .9rem; color: rgba(255,255,255,.8); margin-bottom: 1.2rem; }
.trial-list { display: flex; flex-direction: column; gap: .5rem; }
.trial-list li { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: rgba(255,255,255,.9); }
.trial-list li i { color: #ffd54f; }
.trial-form { background: var(--white); border-radius: var(--rr); padding: 1.8rem; }
.tfg { margin-bottom: .85rem; }
.tfg label { display: block; font-size: .8rem; font-weight: 700; color: var(--text-m); margin-bottom: .3rem; }
.req { color: #ef4444; }
.tfg input, .tfg select {
  width: 100%; padding: .62rem .85rem;
  border: 1.5px solid var(--blue-lt); border-radius: 8px;
  font-size: .86rem; color: var(--text-m); background: var(--bg);
  transition: border-color .2s; font-family: inherit;
}
.tfg input:focus, .tfg select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21,101,192,.1); }
.btn-trial-submit {
  width: 100%; padding: .88rem;
  background: var(--orange-m); color: #fff; border: none;
  border-radius: 999px; font-size: .92rem; font-weight: 900;
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: .5rem;
  box-shadow: 0 4px 16px rgba(245,124,0,.35);
  transition: all .2s;
}
.btn-trial-submit:hover { background: var(--orange); transform: translateY(-2px); }

/* FOOTER */
.footer { background: var(--text); padding: 2rem 0; }
.footer-in { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-logo { font-size: 1.1rem; font-weight: 900; color: #fff; display: flex; align-items: center; gap: .4rem; }
.footer-logo i { color: var(--orange-m); }
.footer-copy { font-size: .8rem; color: rgba(255,255,255,.5); }
.demo-note { font-size: .72rem; color: rgba(255,255,255,.3); }

/* TOAST */
.toast {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 9999;
  background: var(--text); color: #fff;
  padding: 1rem 1.4rem; border-radius: 10px;
  font-size: .88rem; font-weight: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,.22);
  display: flex; align-items: center; gap: .6rem;
  border-left: 4px solid var(--orange-m); max-width: 340px;
  transform: translateY(120px); opacity: 0;
  transition: all .45s cubic-bezier(.34,1.56,.64,1);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast i { color: #ffd54f; font-size: 1.1rem; }

/* ANIM */
[data-anim] { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
[data-anim].visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .feat-grid { grid-template-columns: repeat(2,1fr); }
  .course-grid { grid-template-columns: repeat(2,1fr); }
  .sim-grid { grid-template-columns: 1fr; }
  .sim-result-box { position: static; }
  .voice-grid { grid-template-columns: 1fr 1fr; }
  .trial-box { grid-template-columns: 1fr; gap: 1.5rem; }
  .res-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
  .nav-list { display: none; position: fixed; top: 62px; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch; padding: .5rem 1.5rem 1rem; border-bottom: 2px solid var(--blue-lt); box-shadow: 0 8px 20px rgba(21,101,192,.1); }
  .nav-list.open { display: flex; }
  .nav-list li { border-bottom: 1px solid var(--blue-lt); }
  .nav-list a { display: block; padding: .7rem 0; }
  .hbg { display: flex; }
  .feat-grid, .course-grid, .voice-grid { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: 1fr; }
  .course-grid .course-card:last-child { display: block; }
  .footer-in { flex-direction: column; text-align: center; }
}
