﻿/* =========================================================
   Base Reset / Global
========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body{
  font-family: 'Noto Sans JP', sans-serif;
  color: #1f2937;
  background-color: #ffffff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; height: auto; display: block; }
a{ text-decoration: none; color: inherit; }

/* ✅ 強リセットを弱める（フォームが透明になる事故防止）
   旧: border:none; background:none; を全入力要素に当てない */
button, input, select, textarea{ font-family: inherit; }

/* =========================================================
   Tokens / Utilities
========================================================= */
:root{
  --color-main: #046fcd;
  --color-sub: #fce300;
  --color-accent: #e2360e;
  --color-orange: #eb8000;
  --color-pink: #fb5756;
  --color-green: #00bc31;
  --container-padding: 1rem;
}

.container{
  width: 100%;
  padding-right: var(--container-padding);
  padding-left: var(--container-padding);
  margin: 0 auto;
}

/* ✅ containerのブレークポイント整理
   SPのみfluid、タブレット以上は固定幅へ */
@media (max-width: 767px){
  .container{
    max-width: calc(100% - 4vw);
    padding-right: 2vw;
    padding-left: 2vw;
  }
}
@media (min-width: 768px){ .container{ max-width: 768px; } }
@media (min-width: 1024px){ .container{ max-width: 1024px; } }
@media (min-width: 1280px){ .container{ max-width: 1280px; } }

.text-center{ text-align: center; }
.font-bold{ font-weight: 700; }
.font-black{ font-weight: 900; }
.u-inline-block{ display: inline-block; }

.text-main{ color: var(--color-main); }
.text-sub{ color: var(--color-sub); }
.text-accent{ color: var(--color-accent); }

.outline-white{
  margin-left: 3px;
  vertical-align: baseline;
  text-shadow:
    2px 0 0 #fff,
   -2px 0 0 #fff,
    0 2px 0 #fff,
    0 -2px 0 #fff,
    1.4px 1.4px 0 #fff,
   -1.4px 1.4px 0 #fff,
    1.4px -1.4px 0 #fff,
   -1.4px -1.4px 0 #fff;
}

@media (min-width: 768px){ .md-hidden{ display: none; } }
@media (min-width: 768px){ .br-md-hidden{ display: none; } }

.md-only{ display: none; }
@media (min-width: 768px){ .md-only{ display: block; } }

.pc-break{ display: inline; }
@media (min-width: 768px){ .pc-break{ display: block; } }

.u-bb-accent{ border-bottom: 2px solid var(--color-accent); }

.section{ padding: 4rem 0; }
@media (min-width: 768px){ .section{ padding: 6rem 0; } }

.section-title{
  font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
  font-weight: 900;
  color: var(--color-main);
  border-bottom: 4px solid var(--color-sub);
  display: inline-block;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
}

/* =========================================================
   Common CTA
========================================================= */
.btn-cta{
  background: linear-gradient(to right, var(--color-accent), var(--color-orange));
  color: #fff;
  font-weight: 900;
  font-size: 1.125rem;
  padding: 1rem 2rem;
  border-radius: 9999px;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  border: 2px solid rgba(255,255,255,0.2);
  width: 100%;
  max-width: 340px;
}
.btn-cta:hover{
  transform: translateY(-0.25rem);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}
@media (min-width: 768px){
  .btn-cta{
    width: auto;
    font-size: 1.25rem;
    padding: 1rem 3rem;
  }
}

/* =========================================================
   HERO / ファーストビュー
========================================================= */
.hero{
  position: relative;
  height: 620px;
  overflow: hidden;
}
@media (min-width: 768px){ .hero{ height: 850px; } }

.hero-bg{
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% center;
}

.hero-content{
  position: relative;
  z-index: 30;
  padding-top: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
@media (min-width: 768px){
  .hero-content{
    padding-top: 0;
    flex-direction: row;
    align-items: center;
  }
}

.hero-text-box{
  width: 100%;
  padding: 0.5rem;
  position: relative;
  margin-top: 0;
}
@media (min-width: 768px){
  .hero-text-box{
    width: 70%;
    padding: 1rem;
    margin-top: -2rem;
  }
}
@media (min-width: 1024px){
  .hero-text-box{ width: 60%; }
}

.fv-cta-wrap{ padding-top: 0.5rem; }
.hero-right-spacer{ flex-grow: 1; }

.target-badge{
  display: table;
  background-color: var(--color-sub);
  color: var(--color-main);
  font-weight: 900;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.25rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  font-size: 0.75rem;
}
@media (min-width: 768px){
  .target-badge{
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: 0.875rem;
  }
}
@media (min-width: 1024px){
  .target-badge{ font-size: 1rem; }
}

.hero-headline{
  font-weight: 900;
  color: var(--color-main);
  line-height: 1.25;
  filter: drop-shadow(0 4px 3px rgba(0,0,0,0.07)) drop-shadow(0 2px 2px rgba(0,0,0,0.06));
  margin-bottom: 1rem;
  position: relative;
}

.headline-top{
  display: inline-block;
  border-bottom: 4px solid var(--color-sub);
  padding-bottom: 0.25rem;
  margin-bottom: 1rem;
  font-size: clamp(0.9rem, 0.8rem + 1.4vw, 1.875rem);
}
.headline-top-inner{ display: inline-block; white-space: nowrap; }

.headline-top .num-3{
  color: var(--color-accent);
  font-weight: 900;
  margin: 0 0.25rem;
  vertical-align: baseline;
  font-size: 2.25rem;
}
@media (min-width: 768px){ .headline-top .num-3{ font-size: 3rem; } }
@media (min-width: 1280px){ .headline-top .num-3{ font-size: 3.75rem; } }

.catch-lines{
  display: flex;
  flex-direction: column;
  margin-top: 0.5rem;
  gap: 0.25rem;
  position: relative;
}
@media (min-width: 768px){
  .catch-lines{
    margin-top: 1rem;
    gap: 0.5rem;
  }
}

.catch-sub{
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}
@media (min-width: 768px){ .catch-sub{ font-size: 2rem; } }
@media (min-width: 1024px){ .catch-sub{ font-size: 3rem; } }

.catch-main{
  display: block;
  color: var(--color-accent);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
  line-height: 1.1;
}
.catch-main-1{ font-size: clamp(2.25rem, 1rem + 5.5vw, 4.5rem); }
.catch-main-2{ font-size: clamp(2.25rem, 1.1rem + 6vw, 5.5rem); }
@media (min-width: 1024px){ .catch-main-1{ font-size: 4.5rem; } }
@media (min-width: 1024px){ .catch-main-2{ font-size: 5rem; } }

.badge-wrapper{ position: relative; width: max-content; }

.authority-badge{
  display: flex;
  position: absolute;
  background-color: var(--color-sub);
  border: 4px solid #fff;
  border-radius: 9999px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  transform: rotate(12deg);
  z-index: 20;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  top: -3rem;
  right: 10rem;
  width: 8rem;
  height: 8rem;
}
@media (max-width: 1279.9px){
  .authority-badge{
    top: -3rem;
    right: 0rem;
  }
}
@media (max-width: 1150px){
  .authority-badge{
    top: -3rem;
    right: .5rem;
  }
}
@media (max-width: 1024px){
  .badge-wrapper{ order: 1; }
  .authority-badge{
    position: static;
    transform: none;
    width: fit-content;
    min-width: 70%;
    height: auto;
    border-radius: 0.5rem;
    padding: 0.4rem 0.75rem;
    flex-direction: row;
    gap: 0.35rem;
    order: 2;
  }
  .authority-badge .badge-main{ white-space: nowrap; }
  .authority-badge .badge-main br{ display: none; }
  .catch-main-1{ order: 3; }
  .catch-main-2{ order: 4; }
}

.badge-sub{
  color: var(--color-main);
  font-weight: 900;
  display: block;
  margin-bottom: -1px;
  font-size: .8rem;
}
.badge-main{
  color: var(--color-accent);
  font-weight: 900;
  line-height: 1;
  font-size: 1.2rem;
}
@media (min-width: 1024px){
  .badge-sub{
    font-size: 1.0rem;
    line-height: 1rem;
    margin-bottom: -0.1rem;
    letter-spacing: 0.05em;
  }
  .badge-main{
    font-size: 1.6rem;
    line-height: 1.1;
    letter-spacing: -0.05em;
  }
}

.hero-desc{
  background-color: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  padding: 1rem;
  border-left: 8px solid var(--color-sub);
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
  margin-bottom: 1rem;
  display: table;
}
.hero-desc p{
  color: #1f2937;
  font-weight: 900;
  line-height: 1.625;
  font-size: clamp(1rem, 0.7rem + 0.6vw, 1.3rem);
}
.hero-desc-highlight{
  color: var(--color-main);
  font-size: 1.2em;
}
@media (max-width: 481px){
  .hero-desc-break{ display: block; }
}

.hero-shape{
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6rem;
  background-color: var(--color-main);
  clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 70%);
  z-index: 20;
}
@media (min-width: 768px){ .hero-shape{ height: 10rem; } }

/* =========================================================
   保護者様の不安・課題
========================================================= */
.section-worry{
  background-image: url('../img/bg01.png');
  background-size: 100%;
  background-position: center;
  background-repeat: repeat-y;
}

.worry-lead{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.worry-lead-text{ color: #1f2937; font-size: 1.4rem; }
.worry-lead-img{ max-height: 80px; width: auto; }

.worry-list{
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 2rem;
}

.worry-card{
  background: #f9fafb;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.worry-card h3{
  font-weight: 900;
  margin-bottom: 1rem;
  font-size: 1.8rem;
  color: var(--color-main);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
}
@media (min-width: 768px){
  .worry-card h3{
    font-size: 2.5rem;
    justify-content: flex-start;
  }
}

.worry-num-img{ width: 90px; height: auto; flex-shrink: 0; }
.worry-title-text{
  border-bottom: 2px solid var(--color-orange);
  padding-bottom: 0.5rem;
  flex: 1;
  text-align: left;
}

.worry-content{ display: block; width: 100%; }
.worry-text{ flex: 1; text-align: left; }

.worry-card p{
  font-size: 1rem;
  color: #4b5563;
  font-weight: 500;
  line-height: 2;
}

.worry-image{
  width: 45%;
  float: right;
  margin: 0 0 1rem 1.5rem;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  flex-shrink: 0;
}
.worry-image img{
  width: 100%;
  height: auto;
  object-fit: cover;
}

@media (min-width: 768px){
  .worry-card{ padding: 2.5rem; gap: 2rem; }
  .worry-image{ width: 50%; }
  .worry-content.reverse .worry-image{
    float: left;
    margin: 0 1.5rem 1rem 0;
  }
}
@media (max-width: 480px){
  .worry-card h3{
    flex-direction: column;
    align-items: center;
  }
  .worry-num-img{ margin: 0 auto; }
  .worry-title-text{
    width: 100%;
    text-align: center;
  }
  .worry-image{
    width: 100%;
    float: none;
    margin: 0 0 1rem;
  }
}

.message-box{
  margin-top: 3rem;
  margin-bottom: 3vw;
  background: rgba(4, 111, 205, 0.05);
  border: 2px solid rgba(4, 111, 205, 0.2);
  padding: 1.5rem;
  border-radius: 0.5rem;
  text-align: center;
  position: relative;
  z-index: 30;
}

.msg-lead{ font-size: 1.5rem; }
.msg-lead-strong{ font-size: 2rem; }

@media (max-width: 480px){
  .msg-lead{ font-size: 1.2rem; }
  .msg-lead-strong{ font-size: 1.8rem; }
}

/* =========================================================
   1中学専門塾の強み
========================================================= */
.bg-blue-section{
  background-color: var(--color-main);
  color: #fff;
  position: relative;
  z-index: 20;
  margin-top: -6vw;
  padding-top: 10vw;
  clip-path: polygon(0 6vw, 100% 0, 100% calc(100% - 6vw), 0 100%);
  overflow: hidden;
}
.bg-blue-section::before{
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 100%;
  background-image: url("../img/bg02.svg");
  background-size: 100% auto;
  background-repeat: repeat-y;
  background-position: center top;
  filter: brightness(0) invert(1);
  opacity: 0.2;
  z-index: 0;
  pointer-events: none;
}
.bg-blue-section .container{ position: relative; z-index: 2; }

.bg-blue-section::after{
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 8vw;
  background-color: var(--color-main);
  clip-path: polygon(0 0, 100% 30%, 100% 100%, 0 100%);
  z-index: 1;
}
@media (min-width: 768px){
  .bg-blue-section::after{ height: 6vw; }
}

.bg-blue-section + .section-results{
  margin-top: -6vw;
  position: relative;
  z-index: 1;
}

.strength-head{ margin-bottom: 3rem; }

.badge-spiky{ display: inline-block; margin-bottom: 0; }
@media (min-width: 768px){ .badge-spiky{ margin-top: -3rem; } }

.badge-spiky-img{ width: 300px; height: auto; }

.strength-title{
  font-size: clamp(2.1rem, 1.8rem + 1.2vw, 3rem);
  font-weight: 900;
  line-height: 1.3;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.strength-subtitle{
  margin-top: 1rem;
  font-weight: 900;
  color: #fff;
  font-size: 1.3rem;
}
@media (max-width: 480px){ .strength-subtitle{ font-size: 1.2rem; } }

.strength-em{
  font-size: 1.5em;
  color: var(--color-accent);
  text-shadow:
    2px 0 0 #fff, -2px 0 0 #fff, 0 2px 0 #fff, 0 -2px 0 #fff,
    1.4px 1.4px 0 #fff, -1.4px 1.4px 0 #fff, 1.4px -1.4px 0 #fff, -1.4px -1.4px 0 #fff;
}

.strength-extra{ margin-top: 3rem; }
.strength-extra-line1{
  font-weight: 900;
  color: var(--color-sub);
  font-size: 2.2rem;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  border-bottom: 2px solid var(--color-sub);
  display: table;
  padding-bottom: 0.25rem;
  margin: 0 auto 20px;
}
.strength-extra-line2{
  margin-top: 0.5rem;
  font-weight: 900;
  color: var(--color-main);
  background-color: #fff;
  font-size: 2.1rem;
  line-height: 1.2;
  display: inline-block;
  padding: 0.25rem 1rem;
}

.grid-2{
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.feature-card{
  background: #fff;
  color: #1f2937;
  border-radius: 1rem;
  padding: 1.5rem;
  position: relative;
  overflow: visible;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
}
@media (min-width: 768px){
  .feature-card{
    flex-direction: row;
    align-items: stretch;
    padding: 2rem;
  }
  .feature-card:nth-child(even){ flex-direction: row-reverse; }
  .feature-card.no-image{ flex-direction: column; }
  .feature-card.no-image .feature-content{ width: 100%; }
}

.feature-card:not(:last-child)::after{
  content: "";
  position: absolute;
  bottom: -2.4rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 24px solid #e6f0fa;
  z-index: 10;
}

.feature-deco{
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background-color: rgba(4, 111, 205, 0.1);
  border-bottom-left-radius: 9999px;
  margin-right: -1rem;
  margin-top: -1rem;
  z-index: 0;
}
@media (max-width: 1024px){
  .feature-card{ overflow: hidden; }
  .feature-deco{
    margin-right: 0;
    margin-top: 0;
  }
}

.feature-content{
  padding: 1vw 1vw 1rem;
  position: relative;
  z-index: 2;
  flex: 1;
}

.feature-img-box{
  width: 100%;
  height: 250px;
  position: relative;
  z-index: 1;
}
.feature-img-box img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
}

@media (min-width: 768px){
  .feature-content{
    width: 50%;
    padding: 2vw;
  }
  .feature-img-box{
    width: 50%;
    height: auto;
  }
  .feature-img-box img{
    border-radius: 0;
    border-top-right-radius: 1rem;
    border-bottom-right-radius: 1rem;
  }
  .feature-card:nth-child(even) .feature-img-box img{
    border-radius: 0;
    border-top-left-radius: 1rem;
    border-bottom-left-radius: 1rem;
  }
}

.feature-head{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-weight: 900;
  color: var(--color-main);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 10;
}
.feature-num-img{
  width: 100px;
  height: auto;
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}

.img-right-crop img{
  object-fit: cover;
  object-position: right center;
}

.feature-text{
  font-weight: 500;
  line-height: 2;
  position: relative;
  z-index: 10;
}

.feature-content-full{ width: 100%; }
.feature-text-mb{ margin-bottom: 1rem; }

.check-list{
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
  width: 100%;
}
@media (min-width: 768px){
  .check-list{
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}
@media (max-width: 768px){
  .check-list{ grid-template-columns: 1fr; }
}
@media (max-width: 480px){
  .check-list,
  .check-list li{
    width: 100%;
    max-width: 100%;
  }
  .check-list li{ min-width: 0; }
  .check-list-desc{ overflow-wrap: anywhere; }
}

.check-list li{
  background-color: #f0f9ff;
  border: 2px solid #bae6fd;
  border-radius: 0.75rem;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  width: 100%;
  max-width: 100%;
}

.check-list-img{
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 0.75rem;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  background: #fff;
}
@media (max-width: 768px){
  .check-list-img{ height: 250px; }
}

.check-list-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 768px){
  .check-list-img img{ height: 250px; }
}

.check-list-title{
  font-weight: 900;
  color: var(--color-main);
  font-size: clamp(1.05rem, calc(0.9rem + 0.31vw), 1.25rem);
  margin-bottom: 0.5rem;
  display: block;
}
@media (max-width: 768px){
  .check-list-title{ font-size: 1.25rem; }
}

.check-list-desc{
  font-size: 0.875rem;
  line-height: 1.6;
  color: #4b5563;
  text-align: left;
  display: block;
  width: 100%;
}

.strength-foot{ margin-top: 3rem; }
.strength-foot-text{ font-size: 2.2rem; margin-bottom: 2rem; }

/* =========================================================
   成果・実績
========================================================= */
.section-results{
  background-image: url("../img/bg03.svg");
  background-size: cover;
  background-position: center;
  background-repeat: repeat-y;
}

.results-head{ margin: 2rem 0 2.5rem; }
.results-eyebrow{
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.results-main-text{
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--color-main);
}
@media (min-width: 768px){
  .results-eyebrow{ font-size: 1.1rem; }
  .results-main-text{ font-size: 2.2rem; }
}

.results-card{
  background: var(--color-sub);
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}
@media (max-width: 480px){
  .results-card{ padding: 1.25rem; }
  .achievement-grid{ grid-template-columns: repeat(2, 1fr); }
}

.results-pill-wrap{ margin-bottom: 2rem; }
.results-pill{
  background: #fff;
  color: #eb8000;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-weight: 900;
  font-size: 0.875rem;
}

.achievement-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  width: 100%;
}
@media (min-width: 768px){
  .achievement-grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px){
  .achievement-grid{ grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 480px){
  .ach-item{ width: 100%; max-width: 100%; }
}

.ach-item{
  background: rgba(255,255,255,0.80);
  border-radius: 0.5rem;
  padding: 0.75rem;
  text-align: center;
  border: 1px solid;
  transition: transform 0.3s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.ach-name{
  font-size: 0.75rem;
  font-weight: 700;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.ach-item span{
  color: var(--color-accent);
  font-weight: 900;
  font-size: 1.5rem;
}

.ach-icon{
  margin: 0.25rem auto 0.35rem;
  width: 120px;
  height: 120px;
}
.ach-icon img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.ac-val{
  font-size: 0.9rem;
  font-weight: 900;
  color: var(--color-main);
  line-height: 1.2;
}
.ac-val span{
  font-size: 2rem;
  color: var(--color-accent);
  margin-left: 0.25rem;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}
.ac-val span small{ font-size: 0.5em; }
@media (min-width: 768px){
  .ac-val span{ font-size: 2.4rem; }
}

.results-note{
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 1.5rem;
  font-weight: 500;
  display: table;
  margin-left: auto;
  margin-right: auto;
  text-indent: -.75rem;
  padding-left: 1rem;
}

/* =========================================================
   特典・キャンペーン
========================================================= */
.section-benefit{
  position: relative;
  background-color: var(--color-main);
  overflow: hidden;
  padding: 5rem 0;
  margin-top: 0;
  z-index: 2;
}

.section-benefit::before{
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 100%;
  background-image: url("../img/bg02.svg");
  background-size: 100% auto;
  background-repeat: repeat-y;
  background-position: center;
  filter: brightness(0) invert(1);
  opacity: 0.2;
  z-index: 0;
  pointer-events: none;
}

.section-benefit > .container{
  position: relative;
  z-index: 1;
}

@media (min-width: 768px){
  .section-benefit{ padding: 6rem 0; }
}

.benefit-head{ margin: 1rem 0 3rem; }

.benefit-eyebrow{
  font-size: 2.8rem;
  color: var(--color-sub);
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.benefit-title{
  font-size: 1.5rem;
  line-height: 1.6;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
@media (min-width: 768px){
  .benefit-title{ font-size: 1.6rem; }
}

.benefit-main{
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 20px 30px rgba(0,0,0,0.18);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 2rem;
}
@media (min-width: 768px){
  .benefit-main{ padding: 3rem; }
}

.benefit-badge{
  display: inline-block;
  background: var(--color-sub);
  color: var(--color-main);
  padding: 0.4rem 1.2rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 900;
}

.benefit-hero{
  font-size: 1.4rem;
  margin-bottom: 2rem;
  color: #1f2937;
  font-weight: 900;
  line-height: 1.35;
}

.benefit-big{
  display: inline-block;
  font-size: 2.4rem;
  color: var(--color-accent);
  text-shadow:
    2px 0 0 #fff,
   -2px 0 0 #fff,
    0 2px 0 #fff,
    0 -2px 0 #fff;
}
@media (min-width: 768px){
  .benefit-big{ font-size: 3rem; }
}

.benefit-list{ display: table; margin: auto; }
.benefit-list li{
  background: #f9fafb;
  border-radius: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  margin-bottom: 20px;
}
@media (min-width: 768px){
  .benefit-list li{
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
  }
}

.benefit-num{
  background: var(--color-main);
  color: #fff;
  font-weight: 900;
  padding: 0.3rem 0.8rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

.benefit-text{
  font-size: 2rem;
  font-weight: 900;
  color: #1f2937;
  line-height: 1.4;
}
.benefit-free{ margin-left: 5px; }

@media (max-width: 480px){
  .benefit-text{ text-align: center; }
  .benefit-free{
    display: block;
    text-align: center;
  }
  .benefit-list li{
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
  }
  .benefit-num{
    margin: 0 auto;
    margin-bottom: 0.25rem;
  }
  .benefit-plus-main{ text-align: center; }
  .benefit-plus-text{
    display: block;
    margin-top: 0.25rem;
  }
}

.benefit-plus{
  border-top: 2px dashed var(--color-main);
  padding-top: 1.5rem;
  margin-top: 1rem;
}

.benefit-plus-main{
  font-size: 2rem;
  margin: 0.5rem 0;
  color: #1f2937;
  font-weight: 900;
}
.benefit-plus-main .benefit-num{
  vertical-align: .35rem;
  margin-right: 1rem;
}
.benefit-note{ font-size: 0.9rem; }

/* =========================================================
   申込みフォーム
========================================================= */
.section-entry{
  padding: 5rem 0;
  background-color: #f9fafb;
  background-image: url("../img/bg06.jpg");
  background-size: 100% auto;
  background-repeat: repeat-y;
  background-position: center top;
  position: relative;
  overflow: hidden;
  margin-top: 0;
}
.section-entry > .container{
  position: relative;
  z-index: 1;
}

.entry-box{
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 18px 28px rgba(0,0,0,0.12);
  max-width: 900px;
  margin: 4vw auto;
}
@media (min-width: 768px){
  .entry-box{ padding: 3rem; }
}

.entry-head{ text-align: center; margin-bottom: 2rem; }

.entry-title{
  font-size: clamp(1.6rem, 1.4rem + 0.6vw, 2rem);
  line-height: 1.5;
  color: var(--color-main);
  margin-bottom: 1.5rem;
}
.entry-title-em{ display: inline-block; font-size: 1.15em; }

.entry-lead{
  color: #374151;
  line-height: 1.7;
  margin: 0;
  font-weight: 700;
}
.entry-lead-accent{
  color: var(--color-accent);
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.entry-form-wrap{ margin-top: 2.5rem; }
.entry-form-title{
  font-size: 1.2rem;
  color: var(--color-main);
  text-align: center;
  margin-bottom: 1.5rem;
}

.entry-form{ display: grid; gap: 1rem; }

.form-row{ display: grid; gap: 0.4rem; }
@media (min-width: 768px){
  .form-row{
    grid-template-columns: 220px 1fr;
    align-items: center;
    gap: 1rem;
  }
}

.form-label{
  font-weight: 700;
  color: #1f2937;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.form-label.req::after{
  content: "必須";
  display: inline-block;
  margin-left: auto;
  padding: 0.1rem 0.5rem;
  border-radius: 0.4rem;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
}
.form-label.opt::after{
  content: "任意";
  display: inline-block;
  margin-left: auto;
  padding: 0.1rem 0.5rem;
  border-radius: 0.4rem;
  background: var(--color-main);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
}

.form-control{
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  background: #fff;
}

/* select矢印 */
select.form-control{
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 0.75rem;
  padding-right: 2.5rem;
}

.form-control:focus{
  outline: none;
  border-color: var(--color-main);
  box-shadow: 0 0 0 4px rgba(4,111,205,0.15);
}

.form-actions{
  margin-top: 0.5rem;
  text-align: center;
}

.form-scroll-area{
  height: 300px;
  overflow: auto;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #fff;
  text-align: left;
}
.form-scroll-area .privacy-intro{ text-align: center; }
.form-scroll-area h3{ margin: 0.5rem 0 1rem; }
.form-scroll-area p{
  font-size: 0.9rem;
  margin-bottom: 1.4rem;
}
.form-scroll-area p strong{
  display: inline-block;
  margin-bottom: 0.35rem;
}

.form-privacy{
  text-align: center;
  margin: 1.5rem 0 0.75rem;
}
.form-privacy-check{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
}
.form-privacy-check input[type="checkbox"]{
  width: 1.1rem;
  height: 1.1rem;
}

.form-privacy-text{ margin-top: 0.5rem; font-size: 0.85rem; }
.form-privacy-note{ margin-top: 0; font-size: 0.85rem; }

/* お子さんの名前：2列×2段 */
.name-grid{ display: grid; gap: 0.75rem; }
.name-grid-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 360px){
  .name-grid-row{ grid-template-columns: 1fr; }
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  border-radius: 9999px;
  padding: 1.05rem 2.2rem;
  font-size: 1.1rem;
}

.btn-primary{
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 12px 20px rgba(0,0,0,0.18);
}
.btn-primary:hover{ filter: brightness(0.98); }

.entry-sub-link{
  margin: 3rem auto 0;
  text-align: center;
}

.entry-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-width: 50%;
  padding: 1.5rem 1.5rem;
  border-radius: 0.75rem;
  background: var(--color-main);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--color-main);
  transition: all 0.2s ease;
}
.entry-link:hover{
  background: #ffffff;
  color: var(--color-main);
}
@media (max-width: 767px){
  .entry-link{ width: 100%; max-width: 360px; }
}

/* =========================================================
   口コミ・評価
========================================================= */
.section-review{
  position: relative;
  padding: 4rem 0;
  background-image: url("../img/bg04.webp");
  background-size: cover;
  background-position: 80% 80%;
  background-repeat: no-repeat;
}

.review-box{
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 16px 26px rgba(0,0,0,0.12);
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
@media (min-width: 768px){
  .review-box{ padding: 3rem; }
}

.review-lead{
  font-size: 1.4rem;
  line-height: 1.5;
  color: #ffffff;
  text-shadow: 3px 3px 3px rgba(0,0, 0, 0.7);
  margin-bottom: 2.5rem;
}
@media (min-width: 768px){
  .review-lead{ font-size: 2.2rem; }
}

.review-stats{
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px){
  .review-stats{ grid-template-columns: repeat(2, 1fr); }
}

.review-item{
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.5rem 1rem;
  box-shadow: inset 0 0 0 2px var(--color-main);
}

.review-label{
  font-weight: 900;
  color: var(--color-main);
  margin-bottom: 0.5rem;
}

.review-value{
  font-weight: 900;
  color: var(--color-accent);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25em;
}

.review-num{ font-size: 2.6rem; }
.review-unit{ font-size: 1rem; }

.review-star{
  font-size: 2.2rem;
  color: #fbbf24;
  margin-right: 0.1em;
}

.review-note{
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
  display: table;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  text-indent: -.8rem;
  padding-left: 1rem;
}

/* =========================================================
   教育理念
========================================================= */
.section-philosophy{
  position: relative;
  padding: 5rem 0;
  background-image: url("../img/bg05.svg");
  background-repeat: repeat-y;
  background-position: center bottom;
  background-size: 100% auto;
}

.section-philosophy > .container{
  background-color: #ffffff;
  border-radius: 1.5rem;
}

.philosophy-box{
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  position: relative;
}

.philosophy-box p{
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.9;
  color: #1f2937;
}

.philosophy-box .ph-main p{
  font-size: clamp(1.5rem, 1.35rem + 0.6vw, 1.8rem);
  font-weight: 900;
}

.ph-em{
  color: var(--color-main);
  font-size: 1.3em;
  font-weight: 900;
  display: inline-block;
}
@media (min-width: 768px){
  .ph-em{ font-size: 1.45em; }
}

.philosophy-box .ph-normal p{
  font-size: clamp(0.9rem, 0.8rem + 0.4vw, 1.1rem);
  font-weight: 700;
  color: #374151;
  line-height: 1.9;
}

.ph-image{
  margin: 2.5rem auto;
  max-width: 900px;
}
.ph-image img{
  width: 100%;
  height: auto;
  border-radius: 1.25rem;
  display: block;
  box-shadow: 0 18px 28px rgba(0,0,0,0.12);
}
@media (max-width: 767px){
  .ph-image{ margin: 2rem auto; }
}

.ph-empathy-list{
  display: table;
  list-style: none;
  padding: 0;
  margin: 2rem auto .5rem;
}
.ph-empathy-list li{
  font-weight: 800;
  position: relative;
  padding-left: 1.3em;
  margin-bottom: 0.25rem;
  font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.5rem);
  color: #374151;
  line-height: 1.5;
}
.ph-empathy-list li::before{
  content: "・";
  position: absolute;
  left: 0;
  top: 0.05em;
  color: var(--color-main);
  font-weight: 900;
}

.philosophy-box .ph-empathy p{
  font-size: clamp(1.3rem, 1.2rem + 0.4vw, 1.5rem);
  font-weight: 900;
  color: var(--color-main);
}

.philosophy-box .ph-accent p{
  font-size: clamp(1.8rem, 1.65rem + 0.5vw, 2rem);
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1.9;
  text-align: center;
}

/* =========================================================
   申込みフォーム（最終CTA）
========================================================= */
.section-entry-last{
  background: var(--color-main);
  position: relative;
  overflow: hidden;
}
.section-entry-last::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/bg07.svg");
  background-size: 100% auto;
  background-repeat: repeat-y;
  background-position: center top;
  filter: brightness(0) invert(1);
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}
.section-entry-last > .container{
  position: relative;
  z-index: 1;
}
.section-entry-last .entry-box{
  box-shadow: 0 22px 34px rgba(0,0,0,0.14);
}

/* =========================================================
   フッター（新LP） ※このブロックは legacy footer と併存する場合あり
========================================================= */
.footer{
  background: #1f2937;
  color: #fff;
  text-align: center;
  padding: 2.5rem 1rem 6rem;
}
@media (min-width: 768px){ .footer{ padding-bottom: 2.5rem; } }

.footer-brand{ margin-bottom: 1.5rem; }
.footer-brand-title{
  font-size: 1.5rem;
  letter-spacing: -0.05em;
  margin-bottom: 0.5rem;
}
.footer-brand-sub{
  font-size: 0.875rem;
  color: #9ca3af;
  font-weight: 500;
}
.footer-copy{
  font-size: 0.75rem;
  color: #6b7280;
  opacity: 0.8;
}

/* =========================================================
   固定バー（新LP）
========================================================= */
.floating-bar{
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: #fff;
  transform: translateY(100%);
  transition: transform 0.3s;
  box-shadow: 0 -4px 6px rgba(0,0,0,0.1);
}
.floating-bar.visible{ transform: translateY(0); }

.fb-inner{ display: flex; height: 64px; }

.fb-btn{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.3s;
}

.fb-tel{
  flex: 1;
  background: var(--color-green);
  border-right: 1px solid rgba(0,0,0,0.1);
}
.fb-tel:hover{ background: #00a82b; }

.fb-cta{
  flex: 2;
  background: var(--color-accent);
  position: relative;
}
.fb-cta:hover{ background: var(--color-orange); }

.fb-line{
  flex: 1;
  background: var(--color-main);
}
.fb-line:hover{ background: #005a9e; }

.fb-badge{
  position: absolute;
  top: 0;
  right: 0;
  background: var(--color-sub);
  color: var(--color-accent);
  font-size: 0.625rem;
  font-weight: 900;
  padding: 0.125rem 0.5rem;
  border-bottom-left-radius: 0.5rem;
}

.fb-tel-text{ font-size: 0.75rem; font-weight: 900; }
.fb-cta-text{ font-size: 0.875rem; font-weight: 900; }
.fb-line-title{ font-weight: 900; font-size: 0.75rem; }
.fb-line-sub{ font-size: 0.625rem; }

/* =========================================================
   お問い合わせ / 連絡導線
========================================================= */
.section-contact{
  padding: 4rem 0 2rem;
  background-color: #f9fafb;
  background-image: url("../img/bg08.webp");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 20%;
  position: relative;
  overflow: hidden;
}
@media (max-width: 480px){
  .section-contact{ background-position: 40% 20%; }
}

/* =========================================================
   受験対策リンク
========================================================= */
.section-entry-sub-link{
  background-image: url("../img/bg10.svg"), url("../img/bg09.svg");
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, 100% 100%;
  background-size: contain, contain;
}

/* =========================================================
   固定問合せボタン（旧サイト系）
========================================================= */
.cv_btn_area{
  width: 100%;
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 102;
  opacity: 1;
  overflow: visible;
}
.cv_btn_area .btn{
  align-items: flex-end;
  display: flex;
  padding: 0;
}
.cv_btn_area .btn a{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 93px;
  box-sizing: border-box;
  line-height: 1.3;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  background: var(--color-main);
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  padding: 10px 0px;
  margin: 0;
  position: relative;
  transition: all .3s;
}
.cv_btn_area .btn a:first-child{ display: none; }

.cv_btn_area .btn a i{
  font-size: 1.5em;
  margin-right: 0;
  margin-bottom: 6px;
  transition: all .3s;
}
.cv_btn_area .btn a img{
  width: 32px;
  height: 32px;
  margin-top: 5px;
}
.cv_btn_area .btn a img.icon-white{ filter: brightness(0) invert(1); }
.cv_btn_area .btn a img.line-icon{
  margin-right: 0;
  margin-bottom: 6px;
}
.cv_btn_area .btn a img.icon-tel{
  filter: invert(30%) sepia(83%) saturate(2100%) hue-rotate(193deg) brightness(92%) contrast(101%);
}
.cv_btn_area .btn a img.icon-material{
  filter: invert(25%) sepia(92%) saturate(2800%) hue-rotate(350deg) brightness(95%) contrast(102%);
}

.cv_btn_area .btn .icon-circle{
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0;
  flex: 0 0 auto;
  aspect-ratio: 1 / 1;
  margin-bottom: 4px;
  border: 5px solid var(--color-main);
}

.cv_btn_area .btn a:hover i{ transform: scale(1.3); }

.cv_btn_area .btn a:after{
  display: table;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 10px;
  margin: auto;
  font: var(--fa-font-solid);
  content: "\f054";
  transition: all .3s;
}
.cv_btn_area .btn a:hover:after{ right: 5px; }

@media screen and (max-width: 768px){
  .cv_btn_area .btn{ flex-direction: row; }
  .cv_btn_area .btn a{
    height: 65px;
    padding: 32px 4px 10px;
    font-size: 11px;
    line-height: 1.2;
    width: calc(100% / 3);
    border-radius: 0;
  }
  .cv_btn_area .btn a:after{ display: none; }
  .cv_btn_area .btn .icon-circle{
    margin-bottom: 3px;
    width: 60px;
    height: 60px;
    position: absolute;
    left: 50%;
    top: -33px;
    transform: translateX(-50%);
  }
  .cv_btn_area .btn a img{
    margin-top: 0;
    width: 32px;
    height: 32px;
  }
  .cv_btn_area .btn a img.line-icon{
    width: 45px;
    height: 45px;
    margin-bottom: 3px;
  }
  .cv_btn_area .btn a.line_button .line-square{
    position: absolute;
    left: 50%;
    top: -27px;
    transform: translateX(-50%);
    padding: 10px !important;
  }
}

.cv_btn_area .btn a.mail_button{
  border: none;
  border-radius: 0;
  background: var(--color-accent);
  color: #ffffff;
}
.cv_btn_area .btn a.line_button{
  background: #06c755;
  color: #ffffff;
}

.cv_btn_area .btn a .btn-text{
  display: inline-block;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.cv_btn_area .btn a.mail_button .icon-circle{ border-color: var(--color-accent); }

.cv_btn_area .btn a.line_button .line-square{
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background: #06c755;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  padding: 0;
}

@media screen and (min-width: 481px){
  .cv_btn_area .btn a:first-child{ display: flex; }
  .cv_btn_area .btn a:nth-child(2){ display: none; }
}

@media screen and (min-width: 769px), print{
  .cv_btn_area{
    width: auto;
    right: 0;
    top: 15vw;
    left: auto;
    bottom: auto;
  }
  .cv_btn_area .btn{ flex-direction: column; }
  .cv_btn_area .btn a{
    flex-direction: column-reverse;
    width: 130px;
    height: 122px;
    font-size: 14px;
    border-radius: 10px 0 0 10px!important;
    padding: 12px 14px 10px 12px;
    margin: 0 0 3px auto;
  }
  .cv_btn_area .btn a:first-child{
    height: 155px;
    padding-top: 20px;
    box-shadow: inset 0 0 0 2px #ffffff;
  }
  .cv_btn_area .btn a:hover{
    margin-right: 0;
    opacity: 1;
    width: 138px;
    padding-right: 22px;
  }
  .cv_btn_area .btn a i{
    margin-bottom: 7px;
    margin-right: 0;
    margin-top: 0;
  }
  .cv_btn_area .btn .icon-circle{
    margin-bottom: 0;
    margin-right: 0;
    width: 60px;
    height: 60px;
    flex: 0 0 auto;
    aspect-ratio: 1 / 1;
  }
  .cv_btn_area .btn .icon-circle img.line-icon{
    width: 40px;
    height: 40px;
  }
  .cv_btn_area .btn a img.line-icon{
    width: 50px;
    height: 50px;
    margin-right: 0;
    margin-bottom: 0;
  }
}

/* =========================================================
   contact box / grid
========================================================= */
.contact-box{
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  max-width: 900px;
  margin: 120px auto 10px;
}
@media (max-width: 768px){
  .contact-box{ margin: 120px auto 80px; }
}

.contact-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px){
  .contact-grid{ grid-template-columns: repeat(2, 1fr); }
}

.contact-col{
  background: rgba(255,255,255,0.95);
  border: 2px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 480px){
  .contact-col{ padding: 1rem; }
}

.contact-col-inner{
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-lead{
  font-weight: 700;
  color: var(--color-main);
  margin-bottom: 0;
}

.contact-tel{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 2rem!important;
  font-weight: 900;
  color: var(--color-accent);
  margin: 0.25rem 0 0.5rem;
}

.contact-tel-icon{
  width: 1.4rem;
  height: 1.4rem;
}

.contact-time{
  font-size: 0.9rem;
  color: #6b7280;
}

.contact-line-sub{
  font-size: 0.95rem;
  color: #06c755;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
}

.contact-line-sub::before,
.contact-line-sub::after{
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  background: #06c755;
}
.contact-line-sub::before{ transform: rotate(55deg); }
.contact-line-sub::after{
  transform: rotate(-57deg);
  margin-left: -0.4rem;
}

.contact-line-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0.9rem 1.4rem;
  border-radius: 9999px;
  background: #06c755;
  color: #fff;
  box-shadow: 0 10px 18px rgba(0,0,0,0.12);
  margin-bottom: 0.5rem;
}

.contact-line-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}
.contact-line-icon img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.contact-line-text{
  font-size: 1.1rem;
  line-height: 1.2;
}
@media (max-width: 480px){
  .contact-line-text{ font-size: 1rem; }
}

/* =========================================================
   Animations
========================================================= */
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .7; } }
.animate-pulse{ animation: pulse 2s infinite; }

/* =========================================================
   旧サイト footer（legacy）
   ※ rem=1px設計のCSSが混入しても崩れないようにする
========================================================= */
footer, footer * ,
.copyright, .copyright *{
  font-size: inherit;
}

/* =========================================================
   legacy fix：旧CSSの rem=1px設計が当たるのを防ぐ
========================================================= */
.section-contact,
.section-contact *,
.contact-box,
.contact-box *,
.contact-grid,
.contact-grid *,
.cv_btn_area,
.cv_btn_area *{
  font-size: inherit;
}

/* フローティングをcopyright前で止める */
@media screen and (max-width: 768px){
  #fix_contact_btn.is-stopped{
    position: absolute;
    bottom: auto;
    left: 0;
    width: 100%;
  }
}

/* =========================================================
   フォーム復旧（リセット影響対策）
   class="form-control" が無くても最低限の見た目が残る
========================================================= */
.section-entry input,
.section-entry select,
.section-entry textarea,
.section-entry-last input,
.section-entry-last select,
.section-entry-last textarea{
  font-family: inherit;
  color: #111827;
}

/* form-control無しでも復旧 */
.section-entry input:not([type="checkbox"]):not([type="radio"]),
.section-entry select,
.section-entry textarea,
.section-entry-last input:not([type="checkbox"]):not([type="radio"]),
.section-entry-last select,
.section-entry-last textarea{
  width: 100%;
  border: 1px solid #d1d5db;
  background: #fff;
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  line-height: 1.4;
}

/* セレクト矢印 */
.section-entry select,
.section-entry-last select{
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 0.75rem;
  padding-right: 2.5rem;
}

/* focus統一 */
.section-entry input:focus,
.section-entry select:focus,
.section-entry textarea:focus,
.section-entry-last input:focus,
.section-entry-last select:focus,
.section-entry-last textarea:focus{
  outline: none;
  border-color: var(--color-main);
  box-shadow: 0 0 0 4px rgba(4,111,205,0.15);
}

/* checkboxはreset影響を受けないよう明示 */
.form-privacy-check input[type="checkbox"]{
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid #9ca3af;
  background: #fff;
  border-radius: 0.25rem;
  appearance: auto;
}

/* =========================================================
   Reduce motion
========================================================= */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation: none !important; transition: none !important; }
}

/* =================================================
   Contact Form 7 Form Design（最終整理版）
   scope: #entry
================================================= */
#entry{
  --form-text:#1f2937;
  --form-muted:#6b7280;
  --form-line:#e5e7eb;
  --form-bg:#ffffff;
  --form-input:#ffffff;
  --form-input-line:#d1d5db;
  --form-focus:#188cf3;
  --form-badge-required:#e11d2e;
  --form-badge-optional:#6b7280;
}

/* フォーム全体枠 */
#entry .contact__wrapper{ margin-top: 24px; }
#entry .contact__inner{ background: var(--form-bg); overflow: hidden; }

/* tableレイアウト（公式寄せ） */
#entry .contact__inner table{ width: 100%; border-collapse: collapse; }
#entry .contact__inner table tr{ border-top: 1px solid var(--form-line); }
#entry .contact__inner table tr:first-child{ border-top: none; }
#entry .contact__inner table td{ padding: 18px; vertical-align: middle; }

/* 左カラム（項目名 + 必須/任意） */
#entry .contact__inner table td:first-child{
  width: 280px;
  padding-right: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--form-text);
  white-space: nowrap;
}
#entry .contact__inner table td:first-child > span:not(.required):not(.note__txt){
  white-space: nowrap;
}
#entry .required{
  margin-left: auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 44px;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color:#fff;
  white-space: nowrap;
  background: var(--form-badge-required);
}
#entry .required.no{ background: var(--form-badge-optional); }
#entry .note__txt{
  flex-basis: 100%;
  margin-top: 4px;
  font-size: 12px;
  color: var(--form-muted);
  font-weight: 600;
  white-space: normal;
  display: block;
}

/* 右カラム */
#entry .contact__inner table td:last-child{ width: auto; }

/* 入力UI共通 */
#entry input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
#entry select,
#entry textarea{
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--form-input-line);
  border-radius: 6px;
  background: var(--form-input);
  font-size: 14px;
  line-height: 1.4;
  color: var(--form-text);
  box-sizing: border-box;
}
#entry textarea{ min-height: 140px; resize: vertical; }
#entry input:focus,
#entry select:focus,
#entry textarea:focus{
  outline: none;
  border-color: var(--form-focus);
  box-shadow: 0 0 0 3px rgba(24,140,243,.18);
}
#entry ::placeholder{ color: #9ca3af; }

/* select矢印 */
#entry .select__wrapper{ position: relative; }
#entry .select__wrapper select{ appearance: none; padding-right: 40px; }
#entry .select__wrapper::after{
  content:"";
  position:absolute;
  top: 50%;
  right: 14px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #9ca3af;
  border-bottom: 2px solid #9ca3af;
  transform: translateY(-60%) rotate(45deg);
  pointer-events:none;
}

/* 氏名4分割 */
#entry .name__wrapper{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 480px){
  #entry .name__wrapper{ grid-template-columns: 1fr; }
}

/* ラジオ・チェック */
#entry .wpcf7-radio,
#entry .wpcf7-checkbox{
  display:flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}
#entry .wpcf7-radio label,
#entry .wpcf7-checkbox label,
#entry .wpcf7-acceptance label{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  cursor:pointer;
  font-size: 14px;
}
#entry input[type="radio"],
#entry input[type="checkbox"]{
  width: 16px;
  height: 16px;
  accent-color: var(--form-focus);
}

/* 住所 */
#entry .address-post{
  display:flex;
  align-items:center;
  gap: 12px;
  flex-wrap: wrap;
}
#entry .address-post .post__txt{ width: 220px; }
#entry .address-post .note{ font-size: 12px; color: var(--form-muted); }
#entry .address__text01{
  display:grid;
  grid-template-columns: 240px 1fr;
  gap: 14px;
  margin-top: 12px;
}
@media (max-width: 768px){
  #entry .address__text01{ grid-template-columns: 1fr; }
}
#entry .address__text02{ margin-top: 12px; }

/* プライバシー */
#entry .privacy__wrapper{
  padding: 24px 18px 16px;
  border-top: 1px solid var(--form-line);
  text-align: center;
}
#entry .privacy__wrapper .check__items{
  display: flex;
  justify-content: center;
}
#entry .privacy__wrapper label{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--form-text);
  cursor: pointer;
}
#entry .privacy__wrapper input[type="checkbox"]{
  width: 16px;
  height: 16px;
  accent-color: var(--form-focus);
}
#entry .privacy__wrapper a{
  color: #eb8000;
  font-weight: 700;
  text-decoration: none;
}
#entry .privacy__wrapper a:hover{ text-decoration: underline; }
#entry .agree__txt{
  padding: 0 18px 18px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--form-muted);
  text-align: center;
}
#entry .agree__txt a{
  color: var(--form-focus);
  text-decoration: underline;
}

/* 送信ボタン */
#entry .submit__btn{
  display:block;
  width: min(420px, 100%);
  margin: 18px auto 24px;
  height: 56px;
  border-radius: 6px;
  border: none;
  background: #9ca3af;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .04em;
  cursor: not-allowed;
}
#entry form:has(.privacy__wrapper input[type="checkbox"]:checked) .submit__btn{
  background: #1e88f5;
  cursor: pointer;
}
#entry form:has(.privacy__wrapper input[type="checkbox"]:checked) .submit__btn:hover{
  filter: brightness(.95);
}

/* SP：縦積み */
@media (max-width: 768px){
  #entry .contact__inner table,
  #entry .contact__inner table tbody,
  #entry .contact__inner table tr,
  #entry .contact__inner table td{
    display:block;
    width:100%;
  }
  #entry .contact__inner table td{ padding: 14px; }
  #entry .contact__inner table td:first-child{ padding-bottom: 8px; white-space: normal; }
  #entry .contact__inner table td:last-child{ padding-top: 0; }
  #entry .required{ margin-left: 6px; } /* 必須/任意を項目名直後へ */
}

/* 校舎を選ぶ（検索ボタン）復旧 */
#entry .search__form{
  display: flex;
  align-items: stretch;
  gap: 12px;
}
#entry .area-search__btn{
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border-radius: 6px;
  background: #eb8000;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}
#entry .area-search__btn .icon{
  position: relative;
  width: 14px;
  height: 14px;
}
#entry .area-search__btn .icon::before{
  content:"";
  position:absolute;
  inset:0;
  border: 2px solid #fff;
  border-radius: 50%;
}
#entry .area-search__btn .icon::after{
  content:"";
  position:absolute;
  width: 8px;
  height: 2px;
  background:#fff;
  right: -6px;
  bottom: -2px;
  transform: rotate(45deg);
}
#entry .search__form .school__txt{ flex: 1; width: auto; }
@media (max-width: 768px){
  #entry .search__form{ flex-direction: column; }
  #entry .area-search__btn{ width: 100%; }
}

/* 住所：番地／建物名の間隔調整 */
#entry .address__text02{ margin-bottom: 12px; }
#entry .wpcf7-form-control-wrap[data-name="address04"]{
  display: block;
  margin-top: 12px;
}

/* sp class */
@media screen and (max-width: 768px) {
  .sp { display: flex !important; }
}
.sp { display: none !important; }

/* =========================
   フォーム左列（項目名）を上下中央揃え：安定版
   - td を table-cell に戻して vertical-align を効かせる
   - 必須/任意バッジは absolute で右固定
========================= */
@media (min-width: 769px){

  /* 左列td：table-cellに戻して上下中央揃え */
  #entry .contact__inner table tr > td:first-child{
    display: table-cell !important;   /* ← flex指定を殺す */
    vertical-align: middle !important;/* ← 行の上下中央 */
    position: relative;               /* バッジabsolute用 */
    padding-right: 84px;              /* バッジ分の逃げ */
    white-space: normal;              /* 念のため */
  }

  /* 必須/任意バッジ：右固定＆縦中央 */
  #entry .contact__inner table tr > td:first-child .required{
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0 !important;        /* flex用のautoを無効化 */
  }

  /* 注釈（複数選択可など）は下に落とす */
  #entry .contact__inner table tr > td:first-child .note__txt{
    display: block;
    margin-top: 6px;
  }
}


/* =================================================
   FOOTER SINGLE SOURCE OF TRUTH  ※必ずCSS最下部に置く
   目的：SPで footer / copyright が潰れない & 固定バーと干渉しない
================================================= */
footer img,
.topPage img{
  max-width: 100%;
  height: auto;
  display: block;
}

footer{
  position: relative;
  z-index: 1;
  background: #fff;
  padding: 74px 0;
  overflow: visible;
}

footer .f__logo{
  width: 251px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
footer .f__logo img{
  width: 100%;
  height: auto;
  object-fit: contain;
}

.topPage{
  position: static;
  width: 150px;
  margin: auto;
  transform: none;
  display: flex;
  justify-content: center;
  z-index: auto;
}
.topPage img{
  width: 100%;
}

.copyright{
  display: block;
  margin: 0;
  padding: 25px 0;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 500;
  text-align: center;
  color: #fff;
  background: #004f97;
  height: auto;
  overflow: visible;
}

@media (max-width: 768px){
  footer{
    padding: 60px 0 140px;
  }
  footer .f__logo{
    width: min(280px, 80vw);
  }
  .topPage img{
    width: 100%;
  }
  .copyright{
    padding: 8px 0;
  }
}

/* =========================================================
   校舎選択パーツ用のスタイル（修正版・CSS）
   目的：rem=1px混入や強リセットでも崩れないよう安定化
========================================================= */

/* モーダル全体 */
.school-select__modal{
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  width: 100%;
  height: 100%;
  /* 旧CSSのrem設計に引きずられない */
  font-size: 16px;
  line-height: 1.5;
  color: #333;
}

/* モーダル配下：最低限の安定（他所のrem=1px系が混入しても潰れない） */
.school-select__modal,
.school-select__modal *{
  box-sizing: border-box;
}

/* 画像：モーダル内で全画像を潰さない（closeアイコンも含むので object-fit は付けない） */
.school-select__modal img{
  max-width: 100%;
  height: auto;
  display: block;
}

/* 背景オーバーレイ */
.school-select__modal .overlay{
  position: absolute;
  inset: 0;
  background: #ccc;
  opacity: 0.8;
}

/* モーダルの箱 */
.school-select__modal .list__inner{
  width: 360px;
  height: 80svh;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* 中身（スクロール領域） */
.school-select__modal .list__inner .content__inner{
  width: 100%;
  height: 100%;
  background: #fff;
  overflow: auto;
  padding: 55px 30px 15px;
}

/* スクロールバー（Webkit） */
.school-select__modal .list__inner .content__inner::-webkit-scrollbar{
  width: 12px;
}
.school-select__modal .list__inner .content__inner::-webkit-scrollbar-track{
  background: transparent;
}
.school-select__modal .list__inner .content__inner::-webkit-scrollbar-thumb{
  background: #888;
  border-radius: 20px;
  border: 0;
}

/* 閉じるボタン */
.school-select__modal .list__inner .close__btn{
  width: 280px;
  height: 48px;
  border-radius: 24px;
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  background: #0f67f6;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

/* 閉じるアイコン */
.school-select__modal .list__inner .close__btn .icon{
  width: 18px;
  height: 18px;
  display: flex;
  margin-right: 5px;
}
.school-select__modal .list__inner .close__btn .icon img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 閉じるラベル */
.school-select__modal .list__inner .close__btn .lbl{
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.03em;
  line-height: 28px;
  color: #fff;
}

/* 見出し（希望教室を選択してください） */
.school-select__modal .list__inner .content__inner > .lbl{
  font-weight: 700;
  font-size: 18px;
  line-height: 1.75;
  text-align: center;
  color: #333;
}

/* リスト全体 */
.school-select__modal .list__inner .list__items{
  margin-top: 20px;
}

/* 地域（親） */
.school-select__modal .list__inner .list__items .l__item{
  width: 100%;
}

/* open状態：＋の縦棒を消す */
.school-select__modal .list__inner .list__items .l__item.open > span::after{
  opacity: 0;
}

/* 地域見出し */
.school-select__modal .list__inner .list__items .l__item > span{
  display: block;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.03em;
  line-height: 1.5;
  text-align: left;
  color: #188cf3;
  position: relative;
  padding: 12px 0;
  border-bottom: 1px solid #188cf3;
  cursor: pointer;
}

/* ＋の横棒 */
.school-select__modal .list__inner .list__items .l__item > span::before{
  content: "";
  width: 21px;
  height: 3px;
  background: #188cf3;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

/* ＋の縦棒 */
.school-select__modal .list__inner .list__items .l__item > span::after{
  content: "";
  width: 3px;
  height: 21px;
  background: #188cf3;
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  transition: 0.3s;
}

/* 市区町村リスト */
.school-select__modal .list__inner .list__items .l__item .city__list{
  display: none;
}

/* 市区町村ブロック */
.school-select__modal .list__inner .list__items .l__item .city__list .c__city{
  width: 100%;
}

/* 市区町村 open：＋縦棒を消す */
.school-select__modal .list__inner .list__items .l__item .city__list .c__city.open > span::after{
  opacity: 0;
}

/* 市区町村見出し */
.school-select__modal .list__inner .list__items .l__item .city__list .c__city > span{
  display: block;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.03em;
  line-height: 28px;
  text-align: left;
  color: #333;
  position: relative;
  padding: 12px 0;
  border-bottom: 1px dashed #333;
}

/* ＋（横棒） */
.school-select__modal .list__inner .list__items .l__item .city__list .c__city > span::before{
  content: "";
  width: 17px;
  height: 3px;
  background: #333;
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
}

/* ＋（縦棒） */
.school-select__modal .list__inner .list__items .l__item .city__list .c__city > span::after{
  content: "";
  width: 3px;
  height: 17px;
  background: #333;
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  transition: 0.3s;
}

/* 校舎リスト */
.school-select__modal .list__inner .list__items .l__item .city__list .c__city .school__list{
  padding: 10px 20px;
  border-bottom: 1px dashed #333;
  display: none;
  list-style: none;
  margin: 0;
}

/* 校舎名 */
.school-select__modal .list__inner .list__items .l__item .city__list .c__city .school__list li{
  font-weight: 700;
  font-size: 16px;
  line-height: 28px;
  text-align: left;
  color: #0f67f6;
  cursor: pointer;
  padding: 6px 0;
}

/* タップしやすく（任意：ホバー/フォーカス） */
.school-select__modal .list__inner .list__items .l__item .city__list .c__city .school__list li:hover{
  opacity: 0.85;
}

/* SP調整（幅を広げる） */
@media (max-width: 480px){
  .school-select__modal .list__inner{
    width: min(92vw, 420px);
  }
  .school-select__modal .list__inner .content__inner{
    padding: 52px 18px 14px;
  }
  .school-select__modal .list__inner .close__btn{
    width: min(78vw, 320px);
  }
}


.grecaptcha-badge { visibility: hidden; }