
:root{
  --primary:#c9889c;
  --primary-dark:#9e6176;
  --accent:#f6ede7;
  --text:#2f2a2a;
  --muted:#6e6666;
  --line:#e8dfe1;
  --bg:#fffaf8;
  --card:#ffffff;
  --shadow:0 10px 30px rgba(149, 112, 126, 0.12);
  --radius:22px;
  --max:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic","Noto Sans JP",sans-serif;
  color:var(--text);
  background:linear-gradient(180deg,#fffaf8 0%,#fff 45%,#fffaf8 100%);
  line-height:1.8;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.container{width:min(calc(100% - 40px), var(--max));margin:0 auto}
.header{
  position:sticky;top:0;z-index:100;
  background:rgba(255,250,248,.86);
  backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(201,136,156,.12);
}
.header-inner{
  display:flex;align-items:center;justify-content:space-between;gap:24px;
  min-height:82px;
}
.brand{display:flex;align-items:center;gap:16px}
.brand img{width:64px;height:64px;object-fit:contain;border-radius:16px;background:#fff;box-shadow:var(--shadow);padding:8px}
.brand-text strong{display:block;font-size:1.15rem;letter-spacing:.03em}
.brand-text span{display:block;font-size:.8rem;color:var(--muted);letter-spacing:.18em;text-transform:uppercase}
.nav-toggle{display:none;background:none;border:0;font-size:28px}
.nav{display:flex;gap:24px;align-items:center;flex-wrap:wrap}
.nav a{font-size:.95rem;color:#4b4040}
.nav a:hover,.nav a.active{color:var(--primary-dark)}
.hero{
  position:relative;
  min-height:calc(100vh - 82px);
  display:grid;align-items:center;
  overflow:hidden;
}
.hero::before{
  content:"";position:absolute;inset:0;
  background:
    linear-gradient(120deg, rgba(255,250,248,.85), rgba(255,255,255,.45)),
    url('..//images/hero-placeholder.jpg') center/cover no-repeat;
  transform:scale(1.02);
}
.hero-grid{position:relative;z-index:1;display:grid;grid-template-columns:1.15fr .85fr;gap:42px;align-items:center;padding:72px 0}
.eyebrow{display:inline-block;padding:8px 14px;border-radius:999px;background:#fff;color:var(--primary-dark);border:1px solid rgba(201,136,156,.25);font-size:.82rem;letter-spacing:.08em}
h1{font-size:clamp(2rem,5vw,4.25rem);line-height:1.18;margin:18px 0 18px;font-weight:800}
.lead{font-size:1.06rem;color:#544a4a;max-width:58ch}
.hero-card{
  background:rgba(255,255,255,.82);border:1px solid rgba(255,255,255,.8);box-shadow:var(--shadow);
  border-radius:28px;padding:28px;display:grid;gap:18px
}
.hero-badges{display:flex;flex-wrap:wrap;gap:10px}
.badge{padding:8px 14px;background:var(--accent);border-radius:999px;color:var(--primary-dark);font-size:.9rem}
.hero-cta{display:flex;flex-wrap:wrap;gap:12px;margin-top:22px}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  padding:13px 20px;border-radius:999px;font-weight:700;transition:.2s ease;
  border:1px solid rgba(201,136,156,.26);
}
.btn-primary{background:var(--primary);color:#fff;border-color:var(--primary)}
.btn-primary:hover{background:var(--primary-dark)}
.btn-secondary{background:#fff}
.section{padding:78px 0}
.section-sm{padding:56px 0}
.section-head{display:flex;justify-content:space-between;gap:24px;align-items:end;margin-bottom:28px}
.section-head h2{margin:0;font-size:clamp(1.6rem,3vw,2.4rem)}
.section-head p{margin:0;color:var(--muted);max-width:54ch}
.grid-3,.grid-2,.grid-4{display:grid;gap:24px}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-2{grid-template-columns:repeat(2,1fr)}
.grid-4{grid-template-columns:repeat(4,1fr)}
.card{
  background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);
  border:1px solid rgba(201,136,156,.12);overflow:hidden
}
.card-body{padding:24px}
.card h3,.card h4{margin:0 0 10px}
.card p{margin:0;color:#564c4c}
.card-media{aspect-ratio:16/10;background:#f7f3f1}
.card-media img{width:100%;height:100%;object-fit:cover}
.feature-list{display:grid;gap:14px;padding:0;margin:0;list-style:none}
.feature-list li{display:flex;gap:12px;align-items:flex-start;background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px}
.feature-list .num{
  width:30px;height:30px;border-radius:999px;background:var(--accent);display:inline-flex;align-items:center;justify-content:center;
  color:var(--primary-dark);font-weight:700;flex:0 0 auto
}
.profile{display:grid;grid-template-columns:160px 1fr;gap:24px;align-items:start}
.profile img{width:160px;height:200px;object-fit:cover;border-radius:24px;box-shadow:var(--shadow)}
.profile small{display:block;color:var(--primary-dark);font-weight:700;margin-bottom:8px}
.profile ul{margin:10px 0 0;padding-left:18px;color:#564c4c}
.hero-stat{
  display:grid;grid-template-columns:repeat(3,1fr);gap:14px
}
.hero-stat .stat{background:#fff7f8;border-radius:20px;padding:18px;text-align:center;border:1px solid rgba(201,136,156,.14)}
.hero-stat strong{display:block;font-size:1.5rem;color:var(--primary-dark)}
.notice{
  background:linear-gradient(135deg,#fff4f6,#fff8f2);border:1px dashed rgba(201,136,156,.45);
  border-radius:22px;padding:22px;color:#5c5151
}
.price-box{
  padding:28px;border-radius:24px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow)
}
.table-wrap{overflow:auto}
table{width:100%;border-collapse:collapse;background:#fff;border-radius:18px;overflow:hidden}
th,td{padding:14px 16px;border-bottom:1px solid #efe6e8;vertical-align:top;text-align:left}
th{background:#fdf4f6;color:var(--primary-dark);font-weight:700}
.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.gallery img{border-radius:22px;box-shadow:var(--shadow);aspect-ratio:4/3;object-fit:cover;width:100%}
.footer{
  background:linear-gradient(180deg,#3f3437,#251f20);color:#fff;padding:44px 0 28px;margin-top:36px
}
.footer-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:24px}
.footer .brand img{background:rgba(255,255,255,.06)}
.footer a{color:#fff}
.muted{color:var(--muted)}
.kv{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}
.kv .card{height:100%}
.taglist{display:flex;flex-wrap:wrap;gap:10px}
.tag{font-size:.82rem;padding:7px 12px;background:#fff2f5;color:var(--primary-dark);border-radius:999px}
.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}
.field{display:grid;gap:8px}
.field input,.field textarea,.field select{
  width:100%;padding:14px 16px;border-radius:16px;border:1px solid var(--line);background:#fff;font:inherit
}
.field textarea{min-height:160px;resize:vertical}
.full{grid-column:1/-1}
.small{font-size:.88rem;color:var(--muted)}
.map-note{font-size:.92rem;color:var(--muted)}
.page-hero{
  padding:76px 0 34px;
  background:radial-gradient(circle at top right, #fdeff3 0, transparent 38%), linear-gradient(180deg,#fff7f8 0%,#fff 100%);
}
.page-hero h1{font-size:clamp(2rem,3.8vw,3.2rem);margin-bottom:10px}
.breadcrumbs{font-size:.9rem;color:var(--muted)}
@media (max-width: 980px){
  .hero-grid,.grid-3,.grid-4,.grid-2,.footer-grid,.profile,.kv,.form-grid,.gallery{grid-template-columns:1fr}
  .hero{min-height:auto}
  .hero-grid{padding:52px 0}
  .hero-stat{grid-template-columns:1fr}
}
@media (max-width: 760px){
  .nav-toggle{display:block}
  .nav{
    display:none;position:absolute;left:20px;right:20px;top:80px;padding:18px;border-radius:22px;
    background:#fff;box-shadow:var(--shadow);border:1px solid rgba(201,136,156,.12);flex-direction:column;align-items:flex-start
  }
  .nav.open{display:flex}
  .section{padding:58px 0}
  .container{width:min(calc(100% - 28px), var(--max))}
}


.teacher-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}
.teacher-card{overflow:hidden;position:relative}
.teacher-card::before{content:"";position:absolute;inset:0 0 auto 0;height:4px;background:linear-gradient(90deg,var(--primary),#f0bfd0)}
.teacher-card-inner{display:grid;grid-template-columns:170px 1fr;gap:22px;padding:24px;align-items:start;min-height:100%}
.teacher-card-inner>img{width:170px;height:220px;object-fit:cover;border-radius:22px;box-shadow:var(--shadow)}
.teacher-summary{display:flex;flex-direction:column;height:100%}
.teacher-summary small{display:block;color:var(--primary-dark);font-weight:700;margin-bottom:8px}
.teacher-summary h3{margin:0 0 10px;font-size:1.35rem}
.teacher-summary p{margin:0;color:#564c4c}
.teacher-summary .detail-btn{margin-top:auto;align-self:flex-start;background:#fff7f9}
.teacher-modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;padding:24px;background:rgba(31,21,24,.52);backdrop-filter:blur(10px);z-index:120}
.teacher-modal.open{display:flex;animation:fadeIn .22s ease}
.teacher-modal-dialog{position:relative;width:min(980px,100%);max-height:min(88vh,860px);overflow:auto;background:linear-gradient(180deg,rgba(255,248,250,.98),rgba(255,255,255,.98));border:1px solid rgba(201,136,156,.18);border-radius:30px;box-shadow:0 30px 80px rgba(45,24,31,.28);padding:30px}
.teacher-modal-dialog::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at top right, rgba(201,136,156,.18), transparent 30%),radial-gradient(circle at bottom left, rgba(246,237,231,.9), transparent 28%);pointer-events:none;border-radius:30px}
.teacher-modal-grid{position:relative;z-index:1;display:grid;grid-template-columns:320px 1fr;gap:30px;align-items:start}
.teacher-modal-photo img{width:100%;aspect-ratio:4/5;object-fit:cover;border-radius:26px;box-shadow:var(--shadow);background:#fff}
.teacher-modal-content h2{margin:8px 0 14px;font-size:clamp(1.9rem,3vw,2.5rem);line-height:1.2}
.teacher-modal-content p{margin:0 0 18px;color:#4f4545}
.modal-kicker{display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border-radius:999px;background:#fff;border:1px solid rgba(201,136,156,.18);color:var(--primary-dark);font-size:.88rem;font-weight:700}
.modal-info-list{display:grid;gap:12px;margin-top:22px}
.modal-info-list div{display:grid;grid-template-columns:84px 1fr;gap:16px;padding:14px 16px;border-radius:18px;background:rgba(255,255,255,.78);border:1px solid rgba(201,136,156,.14)}
.modal-info-list strong{color:var(--primary-dark)}
.teacher-modal-close{position:absolute;right:16px;top:16px;width:44px;height:44px;border-radius:999px;border:0;background:rgba(255,255,255,.92);box-shadow:var(--shadow);font-size:28px;line-height:1;cursor:pointer;z-index:2}
.body-lock{overflow:hidden}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@media (max-width:980px){.teacher-grid{grid-template-columns:1fr}.teacher-card-inner,.teacher-modal-grid{grid-template-columns:1fr}.teacher-card-inner>img{width:100%;height:auto;aspect-ratio:4/5}.teacher-modal-dialog{padding:22px}.modal-info-list div{grid-template-columns:1fr}}


.hero-home::before{
  background:
    linear-gradient(120deg, rgba(255,250,248,.92), rgba(255,255,255,.55)),
    url('../images/additional/image2.jpeg') center/cover no-repeat;
}
.glass-card{backdrop-filter:blur(10px)}
.hero-main-photo{border-radius:22px; aspect-ratio:4/3; object-fit:cover}
.stat-card img{width:100%; aspect-ratio:4/3; object-fit:cover}
.contain-media img{object-fit:contain; background:#fff}
.gallery-4{grid-template-columns:repeat(4,1fr)}
.media-links{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.media-links a,.text-link{color:var(--primary-dark);text-decoration:underline;text-underline-offset:3px}
.media-links a{display:block;padding:16px 18px;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}
.qr-wrap,.qr-panel{display:grid;grid-template-columns:180px 1fr;gap:18px;align-items:center}
.qr-wrap img,.qr-panel img{width:180px;height:180px;object-fit:contain;border-radius:22px;background:#fff;box-shadow:var(--shadow);padding:12px}
.simple-list li{padding:14px}
@media (max-width:980px){
  .gallery-4,.media-links{grid-template-columns:1fr 1fr}
}
@media (max-width:760px){
  .gallery-4,.media-links,.qr-wrap,.qr-panel{grid-template-columns:1fr}
}


/* v4 slider, video, zoom image */
.hero-slider{position:relative;width:100%;aspect-ratio:4/3;overflow:hidden;border-radius:22px;background:#f7f1f2}
.hero-slider .slide{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity 1s ease, transform 6s ease;transform:scale(1.03)}
.hero-slider .slide.active{opacity:1;transform:scale(1)}
.hero-slider::after{content:"";position:absolute;inset:auto 16px 14px 16px;height:10px;border-radius:999px;background:linear-gradient(90deg, rgba(255,255,255,.18), rgba(255,255,255,.02));backdrop-filter:blur(4px)}

.video-showcase{display:grid;grid-template-columns:1.15fr .85fr;gap:24px;align-items:stretch}
.video-stack{display:grid;gap:24px}
.video-placeholder{position:relative;min-height:220px;border-radius:30px;padding:28px;overflow:hidden;background:linear-gradient(135deg,#fff6f7 0%,#f7ecf0 45%,#ffffff 100%);border:1px solid rgba(201,136,156,.18);box-shadow:var(--shadow);display:flex;flex-direction:column;justify-content:flex-end}
.video-placeholder::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at top left, rgba(201,136,156,.22), transparent 28%),radial-gradient(circle at bottom right, rgba(246,237,231,.9), transparent 30%)}
.video-placeholder>*{position:relative;z-index:1}
.large-video{min-height:420px}
.small-video{min-height:198px}
.secondary-video{min-height:320px}
.video-icon{width:72px;height:72px;border-radius:999px;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.92);box-shadow:var(--shadow);font-size:28px;color:var(--primary-dark);margin-bottom:18px}
.video-placeholder h3{margin:0 0 8px;font-size:1.35rem}
.video-placeholder p{margin:0;color:#5b4f4f}
.video-note{display:inline-block;margin-top:12px;padding:7px 12px;border-radius:999px;background:#fff;color:var(--primary-dark);font-size:.85rem}
.compact-showcase{grid-template-columns:repeat(2,1fr)}

.zoom-img{cursor:zoom-in;transition:transform .25s ease, box-shadow .25s ease}
.zoom-img:hover{transform:scale(1.02);box-shadow:0 16px 32px rgba(149,112,126,.18)}
.img-modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;background:rgba(28,22,24,.72);backdrop-filter:blur(8px);z-index:300;padding:28px}
.img-modal.open{display:flex;animation:fadeIn .25s ease}
.img-modal-dialog{position:relative;max-width:min(92vw,1100px);max-height:90vh;padding:18px 18px 12px;border-radius:28px;background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(255,250,248,.96));box-shadow:0 28px 80px rgba(49,34,41,.35);border:1px solid rgba(255,255,255,.8)}
.img-modal-content{display:block;max-width:min(88vw,1000px);max-height:74vh;margin:0 auto;border-radius:20px;background:#fff;object-fit:contain}
.img-modal-caption{margin:12px 6px 4px;text-align:center;color:#5e5353;font-size:.98rem}
.img-modal-close{position:absolute;top:14px;right:14px;width:44px;height:44px;border-radius:999px;border:0;background:rgba(255,255,255,.94);box-shadow:var(--shadow);font-size:28px;line-height:1;cursor:pointer}

@media (max-width:980px){
  .video-showcase,.compact-showcase{grid-template-columns:1fr}
  .large-video{min-height:320px}
}
@media (max-width:760px){
  .img-modal{padding:14px}
  .img-modal-dialog{padding:14px 14px 8px;border-radius:22px}
  .img-modal-content{max-width:92vw;max-height:68vh}
  .video-placeholder{padding:22px;border-radius:24px}
}


/* v5 mobile heading fixes */
.section-head h1,.section-head h2,.section-head h3,.card h3,.card h4,.teacher-summary h3,.page-hero h1{
  writing-mode:horizontal-tb;
  text-orientation:mixed;
  word-break:keep-all;
  overflow-wrap:normal;
}
@media (max-width:760px){
  .section-head{display:block}
  .section-head h1,.section-head h2,.section-head h3,.page-hero h1{
    display:block;
    width:100%;
    white-space:normal;
    line-height:1.35;
    margin-bottom:10px;
  }
  .section-head p{max-width:none}
  .card-body h3,.teacher-summary h3{line-height:1.4}
}


.section-event-highlight{padding-top:28px}
.event-highlight{padding:30px;border-radius:30px;background:linear-gradient(135deg,#fff8fa 0%,#fff4f1 48%,#ffffff 100%)}
.event-highlight-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:24px}
.event-highlight-head h2{margin:14px 0 10px;font-size:clamp(1.7rem,3vw,2.5rem)}
.event-highlight-head p{margin:0;color:var(--muted);max-width:64ch}
.event-highlight-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-bottom:22px}
.event-highlight-box{background:rgba(255,255,255,.78);border:1px solid rgba(201,136,156,.14);border-radius:24px;padding:22px}
.event-highlight-box h3{margin:0 0 14px}
.compact-list{gap:10px}
.compact-list li{padding:14px 14px;border-radius:16px}
.event-bank{margin-top:4px}
.event-note{margin-top:16px}
@media (max-width:980px){
  .event-highlight-head,.event-highlight-grid{grid-template-columns:1fr;display:grid;align-items:start}
}


/* classroom page updates */
.classroom-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.classroom-card{height:100%}
.classroom-card .card-body{display:grid;gap:10px}
.classroom-card .card-body p{margin:0}
.classroom-label{display:inline-flex;align-items:center;justify-content:center;width:max-content;padding:7px 12px;border-radius:999px;background:#fff1f4;color:var(--primary-dark);font-size:.82rem;font-weight:700;border:1px solid rgba(201,136,156,.18)}
.featured-classroom{border:1px solid rgba(201,136,156,.28);box-shadow:0 18px 42px rgba(149,112,126,.16)}
.classroom-highlight{padding:28px}
.notice-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px}
.notice-head h2{margin:0 0 8px}
.classroom-highlight-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
.compact-list li{padding:14px 16px;line-height:1.65}
.email-box{display:grid;gap:8px;padding:18px 20px;border-radius:20px;background:#fff5f7;border:1px solid rgba(201,136,156,.18)}
.email-box strong{color:var(--primary-dark)}
@media (max-width:980px){
  .classroom-grid,.classroom-highlight-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:760px){
  .classroom-grid,.classroom-highlight-grid,.notice-head{grid-template-columns:1fr;display:grid}
}
