/*
Theme Name: さいとう塾テーマ
Theme URI: http://saitojuku.local
Description: さいとう塾カスタムテーマ
Version: 2.0
Author: さいとう塾
*/

/* ──────────────────────────────────────────────────
   Base Reset & Variables
────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── フォント定義 ── */
:root {
  --font-base:    -apple-system, BlinkMacSystemFont, 'Noto Sans JP', sans-serif;
  --font-numeric: 'Inter', -apple-system, BlinkMacSystemFont, 'Noto Sans JP', sans-serif;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans JP', sans-serif;
  font-weight: 400;
  background: #fff;
  color: #333;
  overflow-x: hidden;
}

/* 見出し */
h1, h2, h3 {
  font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans JP', sans-serif;
  font-weight: 700;
}
h4, h5, h6 {
  font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans JP', sans-serif;
  font-weight: 700;
}

/* 強調 */
strong, b, .font-medium {
  font-weight: 600;
}

/* 数字・英字混在箇所（電話番号・統計数値・ナビラベル等） */
.phone-num,
.stat-num,
.stat-num-md,
.stat-label,
.news-date,
.breadcrumb,
.footer-address,
.header-phone-box .phone-num,
.drawer-phone .phone-num {
  font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans JP', sans-serif;
}
:root {
  --blue: #1FA8D9;
  --pink: #E8278A;
  --yellow: #F5C800;
  --green: #7AB648;
  --teal: #00A89D;
  --orange: #F7941D;
  --navy: #1a3a5c;
  --purple: #7B4FA0;
  --light-bg: #f0f8fc;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }

/* ──────────────────────────────────────────────────
   Header
────────────────────────────────────────────────── */
.site-header {
  background: white;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 12px;
}
.site-logo img {
  height: clamp(40px,5vw,60px);
  width: auto;
  object-fit: contain;
  display: block;
}
.dot-row {
  flex: 1;
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 12px;
}
.dot-row span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.header-phone-box {
  background: var(--blue);
  border-radius: 8px;
  padding: 8px 14px;
  color: white;
  text-align: center;
}
.header-phone-box .phone-num {
  font-size: clamp(13px,1.8vw,20px);
  font-weight: 900;
  letter-spacing: 1px;
}
.header-phone-box .phone-sub {
  font-size: 10px;
  opacity: 0.9;
}
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border: none;
  background: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  padding: 4px;
  flex-shrink: 0;
}
.hamburger-btn span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger-btn.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ──────────────────────────────────────────────────
   Mobile Drawer
────────────────────────────────────────────────── */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 280px;
  background: white;
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  box-shadow: -4px 0 24px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.drawer.open { transform: translateX(0); }
.drawer-header {
  padding: 16px 20px;
  border-bottom: 3px solid var(--blue);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-header img { height: 44px; width: auto; }
.drawer-close {
  border: none;
  background: none;
  font-size: 22px;
  cursor: pointer;
  color: #666;
}
.drawer-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.15s;
}
.drawer-nav a:hover { background: #f8f8f8; }
.drawer-nav .nav-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.drawer-phone {
  padding: 20px;
  border-top: 1px solid #eee;
}
.drawer-phone a {
  display: block;
  background: var(--blue);
  color: white;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  text-decoration: none;
}
.drawer-phone .phone-num { font-size: 20px; font-weight: 900; letter-spacing: 1px; }
.drawer-phone .phone-sub { font-size: 11px; opacity: 0.9; margin-top: 4px; }

/* ──────────────────────────────────────────────────
   Icon Navigation
────────────────────────────────────────────────── */
.icon-nav {
  background: white;
  padding: 14px 12px;
  display: flex;
  justify-content: center;
  gap: clamp(8px,2vw,24px);
  flex-wrap: wrap;
  border-bottom: 3px solid #f0f0f0;
}
.icon-nav a {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.icon-nav .nav-circle {
  width: clamp(52px,7vw,68px);
  height: clamp(52px,7vw,68px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  transition: transform 0.2s;
}
.icon-nav .nav-circle:hover { transform: scale(1.12); }
.icon-nav .nav-label {
  font-size: clamp(10px,1.1vw,12px);
  color: #444;
  font-weight: 500;
}

/* タブレット（541px〜767px）：65px */
@media (min-width: 541px) and (max-width: 767px) {
  .icon-nav .nav-circle {
    width: 65px !important;
    height: 65px !important;
  }
  .icon-nav .nav-circle svg {
    width: 30px !important;
    height: 30px !important;
  }
  .icon-nav .nav-label { font-size: 11px !important; }
  .icon-nav {
    gap: 6px !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 14px 8px;
  }
}

/* PC（768px以上）：85px */
@media (min-width: 768px) {
  .icon-nav .nav-circle {
    width: 85px !important;
    height: 85px !important;
  }
  .icon-nav .nav-circle svg {
    width: 40px !important;
    height: 40px !important;
  }
  .icon-nav .nav-label { font-size: 13px !important; }
  .icon-nav {
    gap: clamp(8px,1.8vw,20px);
    padding: 18px 16px;
    flex-wrap: nowrap;
  }
}
.icon-nav a.current-page .nav-circle { outline: 3px solid currentColor; outline-offset: 3px; }
.icon-nav a.current-page .nav-label { font-weight: 700; }

/* ──────────────────────────────────────────────────
   Section Title
────────────────────────────────────────────────── */
.section-title {
  text-align: center;
  margin-bottom: 8px;
}
.section-title svg { margin-bottom: 4px; display: block; margin-left: auto; margin-right: auto; }
.section-title-inner { display: inline-block; }
.section-title-inner h2 {
  font-size: clamp(22px,3vw,32px);
  font-weight: 900;
  color: #222;
  font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans JP', sans-serif;
  letter-spacing: 2px;
}
.section-title-inner .underline {
  height: 3px;
  background: var(--blue);
  margin-top: 10px;
  border-radius: 2px;
}
.section-title-inner h1 {
  font-size: clamp(22px,3vw,32px);
  font-weight: 900;
  color: #222;
  font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans JP', sans-serif;
  letter-spacing: 2px;
}

/* ──────────────────────────────────────────────────
   Hero Slideshow
────────────────────────────────────────────────── */
.hero-slideshow {
  position: relative;
  width: 100%;
  height: clamp(240px,45vw,500px);
  overflow: hidden;
  background: #111;
}
.hero-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slide-img.slide-in {
  animation: slideInRight 2s cubic-bezier(0.22,1,0.36,1) both;
}
/* 特定スライド：PC のみ object-position を上書き */
@media (min-width: 768px) {
  .hero-slide-img.hero-img-pc-top { object-position: center top !important; }
  .hero-slide-img.hero-img-pc-20  { object-position: center 20% !important; }
}
@keyframes slideInRight {
  0% { transform: translate3d(100%, 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.05) 60%, transparent 100%);
}
.hero-text-panel {
  position: absolute;
  left: clamp(16px,5%,60px);
  top: 50%;
  transform: translateY(-50%);
  border-radius: 14px;
  padding: clamp(12px,2vw,28px);
  max-width: clamp(160px,42%,360px);
  color: white;
  backdrop-filter: blur(2px);
}
.hero-text-panel h2 {
  font-size: clamp(16px,2.5vw,28px);
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 12px;
  white-space: pre-line;
  font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans JP', sans-serif !important;
}
.hero-text-panel p {
  font-size: clamp(10px,1.2vw,13px);
  line-height: 1.8;
  opacity: 0.95;
}
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.8);
  border: none;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 5;
  color: #555;
  transition: background 0.2s;
}
.hero-arrow.prev { left: 12px; }
.hero-arrow.next { right: 12px; }
.hero-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 10px; height: 10px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  background: rgba(255,255,255,0.5);
  transition: all 0.3s;
  padding: 0;
}
.hero-dot.active {
  width: 24px;
  background: white;
}

/* ──────────────────────────────────────────────────
   入試結果 Section
────────────────────────────────────────────────── */
.exam-results-section {
  background: #fafafa;
  padding: clamp(48px,6vw,80px) clamp(16px,6vw,80px);
  position: relative;
  overflow: hidden;
}
.exam-results-inner { max-width: 1000px; margin: 0 auto; position: relative; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: clamp(14px,2vw,20px);
  margin-bottom: 32px;
}
.stat-card {
  background: white;
  border-radius: 10px;
  padding: 22px 18px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  word-break: keep-all;
}
.stat-card .stat-label { font-size: 12px; color: #888; font-weight: 600; letter-spacing: 1px; }
.stat-card .stat-num {
  font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans JP', sans-serif;
  font-size: clamp(38px,5vw,52px);
  font-weight: 900;
  line-height: 1;
  margin: 8px 0 2px;
}
.stat-card .stat-num span { font-size: 0.5em; }
.stat-card .stat-num-md {
  font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans JP', sans-serif;
  font-size: clamp(20px,2.6vw,28px);
  font-weight: 900;
  line-height: 1.25;
  margin: 10px 0 4px;
}
.stat-card .stat-sub { font-size: 11px; color: #999; }
.school-list-card {
  background: white;
  border-radius: 12px;
  padding: clamp(20px,3vw,32px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  margin-bottom: 32px;
}
.school-list-header { font-size: clamp(18px,2.5vw,23px); font-weight: 700; color: #666; letter-spacing: 1px; margin-bottom: 16px; text-align: center; }
.school-group { margin-bottom: 14px; }
.school-group-label {
  font-size: clamp(20px,2.7vw,26px);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 6px;
  font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans JP', sans-serif;
}
/* 学校名：枠線なし・プレーンテキスト・「・」区切り */
.school-tags { display: block; line-height: 2; }
.school-tag {
  display: inline;
  background: none;
  color: #333;
  padding: 0;
  border-radius: 0;
  font-size: clamp(18px,2.2vw,22px);
  font-weight: 500;
  border: none;
  white-space: nowrap;
}
.school-tag::after { content: '・'; color: #aaa; }
.school-tag:last-child::after { content: ''; }
.school-tag-other {
  background: none;
  color: #888;
  border: none;
  font-size: clamp(14px,1.5vw,15px);
}
.cta-center { text-align: center; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--blue);
  color: white;
  padding: 14px 36px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(13px,1.5vw,15px);
  box-shadow: 0 8px 24px rgba(31,168,217,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(31,168,217,0.5); }
.btn-round {
  display: inline-block;
  background: var(--blue);
  color: white;
  padding: 12px 32px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 16px rgba(31,168,217,0.27);
  transition: transform 0.2s;
}
.btn-round:hover { transform: translateY(-2px); }

/* ──────────────────────────────────────────────────
   News Section (on top page)
────────────────────────────────────────────────── */
.news-section { background: white; padding: clamp(40px,6vw,72px) clamp(16px,8vw,120px); }
.news-section-inner { max-width: 860px; margin: 0 auto; }
.news-list { margin-top: 24px; }
.news-item {
  display: flex;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: #333;
  align-items: baseline;
  transition: color 0.15s;
}
.news-item:hover { color: var(--blue); }
.news-date { flex-shrink: 0; font-size: 13px; color: #999; font-weight: 500; }
.news-title { font-size: clamp(13px,1.5vw,15px); line-height: 1.6; }
.news-footer { text-align: center; margin-top: 28px; }

/* ──────────────────────────────────────────────────
   Section Cards Grid (top page)
────────────────────────────────────────────────── */
.section-cards-section { background: #f0f8fc; padding: clamp(32px,5vw,56px) clamp(16px,6vw,80px); }
.section-cards-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: clamp(14px,2vw,22px);
  max-width: 900px;
  margin: 0 auto;
}
.section-card {
  display: block;
  text-decoration: none;
  border-radius: 14px;
  overflow: hidden;
  height: clamp(120px,16vw,180px);
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}
.section-card:hover { transform: translateY(-4px); }
.section-card-photo {
  position: absolute;
  inset: 0;
  width: 55%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 72% 100%, 0 100%);
}
.section-card-label {
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: clamp(17px,2.4vw,27px);
  font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans JP', sans-serif;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.18);
  padding: 0 10px;
  text-align: center;
}
/* 「塾の想い」カード：他の3枚と同一設定 */
.section-card-label--sm {
  font-size: clamp(17px,2.4vw,27px) !important;
  letter-spacing: 0.04em !important;
  white-space: nowrap !important;
  line-height: inherit !important;
}

/* ──────────────────────────────────────────────────
   Flow Section (入塾までの流れ)
────────────────────────────────────────────────── */
.flow-section { background: white; padding: clamp(40px,6vw,72px) clamp(16px,8vw,120px); }
.flow-inner { max-width: 860px; margin: 0 auto; }
.flow-list { margin-top: 32px; display: flex; flex-direction: column; gap: 0; }
.flow-item { display: flex; gap: 24px; align-items: flex-start; }
.flow-step-box {
  flex-shrink: 0;
  width: clamp(100px,14vw,140px);
  background: var(--blue);
  color: white;
  border-radius: 10px;
  padding: 16px 12px;
  text-align: center;
}
.flow-step-num { font-size: 11px; opacity: 0.85; }
.flow-step-title { font-size: clamp(12px,1.4vw,14px); font-weight: 700; margin-top: 4px; }
.flow-step-body { padding: 0 0 16px 0; flex: 1; }
.flow-step-body p { font-size: clamp(12px,1.4vw,14px); color: #555; line-height: 1.9; white-space: pre-line; }
.flow-arrow { text-align: center; margin: 6px 0; }
.flow-footer { text-align: center; margin-top: 28px; }

/* ──────────────────────────────────────────────────
   FAQ Section
────────────────────────────────────────────────── */
.faq-section { background: #f0f8fc; padding: clamp(40px,6vw,72px) clamp(16px,8vw,120px); }
.faq-inner { max-width: 860px; margin: 0 auto; }
.faq-list { margin-top: 28px; }
.faq-item { border-bottom: 1px solid #e8e8e8; overflow: hidden; }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 0;
  cursor: pointer;
  text-align: left;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.faq-q-badge {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans JP', sans-serif;
}
.faq-q-text { flex: 1; font-weight: 700; font-size: clamp(13px,1.5vw,15px); color: #222; line-height: 1.6; text-align: left; }
.faq-toggle {
  flex-shrink: 0;
  width: 24px; height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 18px;
  font-weight: 700;
  transition: transform 0.3s;
}
.faq-toggle.open { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-answer.open { max-height: 800px; }
.faq-answer-inner { display: flex; gap: 14px; padding: 4px 0 20px 0; }
.faq-a-badge {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--orange);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans JP', sans-serif;
}
.faq-a-text { font-size: clamp(12px,1.4vw,14px); color: #555; line-height: 1.8; white-space: pre-line; }

/* ──────────────────────────────────────────────────
   Map / Access Section
────────────────────────────────────────────────── */
.map-section { background: white; padding: clamp(40px,6vw,72px) clamp(16px,8vw,120px); }
.map-inner { max-width: 860px; margin: 0 auto; }
.map-wrap { margin-top: 28px; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.map-wrap iframe { display: block; }
.map-address { margin-top: 16px; text-align: center; font-size: 14px; color: #555; line-height: 2; }
.map-address a { color: var(--blue); font-weight: 700; text-decoration: none; }

/* ──────────────────────────────────────────────────
   Contact Section (simple on top page)
────────────────────────────────────────────────── */
.contact-section { background: #f0f8fc; padding: clamp(40px,6vw,72px) clamp(16px,8vw,120px); }
.contact-inner { max-width: 720px; margin: 0 auto; }
.contact-lead { text-align: center; color: #666; font-size: 14px; line-height: 2; margin: 20px 0 28px; }
.contact-lead a { color: var(--blue); font-weight: 700; text-decoration: none; }
.contact-form-wrap {
  background: white;
  border: 1px solid #ebebeb;
  border-radius: 12px;
  padding: clamp(20px,3vw,32px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}
.contact-more { text-align: center; margin-top: 18px; }
.contact-more a { color: var(--blue); font-size: 13px; font-weight: 600; text-decoration: none; }

/* CF7 contact form styling */
.wpcf7-form { display: flex; flex-direction: column; gap: 14px; }
.wpcf7-form label { display: block; font-size: 13px; font-weight: 700; color: #444; margin-bottom: 6px; }
.wpcf7-form .required { color: #E8278A; margin-left: 6px; font-size: 11px; }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #d8dde2;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background: white;
  color: #333;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31,168,217,0.13);
}
.wpcf7-form textarea { resize: vertical; min-height: 100px; }
.wpcf7-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--blue);
  color: white;
  border: none;
  padding: 13px 44px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  font-size: 14px;
  font-family: inherit;
  box-shadow: 0 6px 18px rgba(31,168,217,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  margin: 4px auto 0;
  display: block;
}
.wpcf7-submit:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(31,168,217,0.5); }
.two-col-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ──────────────────────────────────────────────────
   Footer
────────────────────────────────────────────────── */
.site-footer {
  background: var(--blue);
  color: white;
  padding: clamp(32px,5vw,56px) 24px 24px;
  margin-top: 40px;
}
.site-footer-inner { max-width: 900px; margin: 0 auto; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: center;
  margin-bottom: 28px;
}
.footer-nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-nav a:hover { color: white; }
.footer-logo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.footer-logo-block img { height: 72px; width: auto; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2)); }
.footer-address { text-align: center; font-size: 13px; opacity: 0.9; line-height: 2; }
.footer-address a { color: white; text-decoration: none; }
.footer-copy { text-align: center; margin-top: 28px; font-size: 11px; opacity: 0.6; }

/* ──────────────────────────────────────────────────
   Breadcrumb
────────────────────────────────────────────────── */
.breadcrumb { font-size: 13px; color: #888; margin-bottom: 24px; }
.breadcrumb a { color: #888; text-decoration: none; }
.breadcrumb span { margin: 0 6px; }
.breadcrumb .current { color: #555; }

/* ──────────────────────────────────────────────────
   Page Header (title + underline)
────────────────────────────────────────────────── */
.page-title-block { text-align: center; margin-bottom: 24px; }
.page-title-block h1 {
  font-size: clamp(22px,3vw,32px);
  font-weight: 900;
  color: #222;
  font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans JP', sans-serif;
  letter-spacing: 2px;
}
.page-title-block .title-underline { height: 3px; background: var(--blue); margin-top: 10px; border-radius: 2px; }
.page-main { max-width: 900px; margin: 0 auto; padding: clamp(16px,4vw,48px) clamp(16px,4vw,32px); }
.page-main-narrow { max-width: 820px; margin: 0 auto; padding: clamp(16px,4vw,40px) clamp(16px,4vw,28px); }

/* ──────────────────────────────────────────────────
   Section Banner (colored bar)
────────────────────────────────────────────────── */
.section-banner {
  color: white;
  padding: 12px 20px;
  font-size: clamp(18px,2.3vw,24px);
  font-weight: 700;
  margin-bottom: 0;
  border-radius: 2px;
}

/* ──────────────────────────────────────────────────
   Teacher Greeting Page
────────────────────────────────────────────────── */

/* ベン図テキスト：PC（768px以上） */
.venn-text    { font-size: 19px; line-height: 1.7; }
.venn-text-sm { font-size: 18px; line-height: 1.65; }

/* タブレット（541px〜767px） */
@media (min-width: 541px) and (max-width: 767px) {
  .venn-text    { font-size: 16px !important; line-height: 1.6 !important; }
  .venn-text-sm { font-size: 15px !important; line-height: 1.55 !important; }
}

/* スマホ（540px以下） */
@media (max-width: 540px) {
  .venn-text    { font-size: 16px !important; line-height: 1.5 !important; }
  .venn-text-sm { font-size: 14px !important; line-height: 1.45 !important; }
}

.venn-wrap {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 620/500;
  margin: 0 auto;
  overflow: visible;
}
.teacher-grid {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-top: 8px;
  flex-wrap: wrap;
}
.teacher-card { flex: 1; min-width: 280px; }
.teacher-photo-wrap {
  position: relative;
  height: 320px;
  margin-bottom: 24px;
}
.teacher-photo-bg {
  position: absolute;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
}
.teacher-photo-bg img { width: 100%; height: 100%; object-fit: cover; }
.teacher-circle {
  position: absolute;
  top: 30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  opacity: 0.9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 2;
  border: 4px dashed rgba(255,255,255,0.6);
}
.teacher-circle span {
  color: white;
  font-weight: 800;
  font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans JP', sans-serif;
  text-align: center;
  line-height: 1.4;
  letter-spacing: 1px;
}
.teacher-bio { font-size: 13px; line-height: 2; color: #444; }

/* 講師あいさつ 本文テキスト：段落間を統一 */
.greeting-body {
  font-size: 14px;
  line-height: 2.1;
  color: #444;
}
.greeting-body p {
  margin-bottom: 1.8em !important;
}
.greeting-body p:last-child {
  margin-bottom: 0 !important;
}

/* ──────────────────────────────────────────────────
   Philosophy Page
────────────────────────────────────────────────── */
.section-block { margin-bottom: 48px; }
.section-block-inner {
  display: flex;
  gap: 28px;
  align-items: stretch;
  border: 1px solid #e8e8e8;
  border-top: none;
  background: white;
}
.section-block-photo {
  flex-shrink: 0;
  width: clamp(200px,42%,400px);
  overflow: hidden;
  align-self: stretch;
}
.section-block-photo img { width: 100%; height: 100%; object-fit: cover; }
.section-block-text { flex: 1; padding: 20px 20px 20px 0; font-size: 14px; line-height: 1.9; color: #444; }

/* ──────────────────────────────────────────────────
   Thought Page – Parallax & Slide-up
────────────────────────────────────────────────── */

/* Parallax fixed background (PC only) */
.thought-parallax-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url('http://kashiba-saitojuku.com/wp-content/uploads/2026/06/054422a93dad50fb1e6dc873a71aa24a-scaled.jpg') center / cover no-repeat;
  opacity: 0.17;
  pointer-events: none;
}

/* Card slide-up animation */
.thought-card {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.thought-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* PC (1024px以上): カード幅を広げる */
@media (min-width: 1024px) {
  .page-thought .page-main {
    max-width: 950px;
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* iPad (〜1023px): background-attachment:fixed は使わず通常表示 */
@media (max-width: 1023px) {
  .thought-parallax-bg { display: none; }
}

/* ──────────────────────────────────────────────────
   Classes Page
────────────────────────────────────────────────── */
.class-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  margin-bottom: 32px;
}
.class-card-header {
  padding: 20px 24px;
  color: white;
  display: flex;
  align-items: center;
  gap: 16px;
}
.class-card-title { font-size: clamp(18px,2.2vw,24px); font-weight: 900; font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans JP', sans-serif; }
.class-card-sub { font-size: 13px; opacity: 0.9; margin-top: 4px; }
.class-card-body { padding: 20px 24px; }
.class-card-photo { width: 100%; height: 200px; object-fit: cover; border-radius: 8px; margin-bottom: 16px; }
.class-card-body p { font-size: 14px; line-height: 1.9; color: #555; }

/* ──────────────────────────────────────────────────
   Voice Archive Page
────────────────────────────────────────────────── */
.voice-archive-main { max-width: 1080px; margin: 0 auto; padding: clamp(16px,4vw,40px) clamp(16px,4vw,28px); }
.filter-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  padding: 14px 16px;
  background: #f0f8fc;
  border-radius: 10px;
  flex-wrap: wrap;
}
.filter-btns { display: flex; gap: 6px; }
.filter-btn {
  padding: 6px 16px;
  border-radius: 20px;
  border: 2px solid #d8e6ee;
  background: white;
  color: #444;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.filter-btn.active {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}
.filter-divider { width: 1px; height: 24px; background: #cfd8de; }
.filter-select {
  padding: 7px 14px;
  border-radius: 20px;
  border: 2px solid #d8e6ee;
  background: white;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  cursor: pointer;
  font-family: inherit;
}
.filter-count { font-size: 13px; color: #888; margin-left: auto; }
.voice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px,1fr));
  gap: clamp(14px,2vw,22px);
  align-items: start;
}
.voice-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #ebebeb;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.25s, box-shadow 0.25s;
}
.voice-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(31,168,217,0.2); }
.voice-card-header {
  background: linear-gradient(135deg, var(--blue), rgba(31,168,217,0.8));
  padding: 18px 18px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: white;
}
.voice-avatar-wrap {
  flex-shrink: 0;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.voice-avatar-wrap img { width: 62px; height: 62px; object-fit: contain; }
.voice-card-school { font-size: clamp(15px,1.9vw,18px); font-weight: 900; line-height: 1.3; font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans JP', sans-serif; }
.voice-card-meta { font-size: 12px; opacity: 0.95; margin-top: 4px; }
.voice-card-body { padding: 16px 18px 18px; }
.voice-card-excerpt {
  font-size: 13px;
  color: #555;
  line-height: 1.9;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.voice-card-more { display: none; }
.voice-empty { text-align: center; padding: 60px 0; color: #888; font-size: 14px; }

/* 全文ラップ：デフォルト非表示 */
.voice-card-full-wrap { display: none; }
.voice-card-full-text {
  font-size: 13px;
  color: #444;
  line-height: 1.9;
}
.voice-card-full-text p {
  font-size: inherit;
  line-height: inherit;
  margin-bottom: 0.8em;
}
.voice-card-full-text p:last-child {
  margin-bottom: 0;
}

/* PC（hover対応デバイス）：ホバー時に全文表示 */
@media (hover: hover) {
  .voice-card:hover .voice-card-excerpt-wrap { display: none; }
  .voice-card:hover .voice-card-full-wrap    { display: block; }
  .voice-card:hover {
    box-shadow: 0 12px 32px rgba(31,168,217,0.2);
    transform: translateY(-4px);
  }
}

/* スマホ・タッチデバイス：常に全文表示 */
@media (hover: none) {
  .voice-card-excerpt-wrap { display: none; }
  .voice-card-full-wrap    { display: block; }
}

/* ──────────────────────────────────────────────────
   Voice Single Page
────────────────────────────────────────────────── */
.voice-title-bar {
  background: var(--blue);
  color: white;
  padding: 16px 22px;
  font-size: clamp(15px,2vw,18px);
  font-weight: 700;
  line-height: 1.6;
  border-radius: 4px;
}
.voice-meta { font-size: 13px; color: #888; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.voice-meta-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #f0f8fc;
  overflow: hidden;
  flex-shrink: 0;
}
.voice-meta-avatar img { width: 42px; height: 42px; object-fit: contain; }
.voice-body { font-size: 14px; line-height: 2.1; color: #444; white-space: pre-line; }
.voice-parent-note {
  margin-top: 28px;
  padding: 18px 20px;
  background: #fff8e8;
  border: 1px solid #f5e0a0;
  border-left: 4px solid var(--yellow);
  border-radius: 4px;
}
.voice-parent-note .note-label { font-weight: 700; color: #a0760c; font-size: 13px; margin-bottom: 8px; }
.voice-parent-note p { font-size: 14px; line-height: 2; color: #665020; }
.voice-nav { display: flex; justify-content: space-between; align-items: stretch; gap: 10px; margin-top: 40px; }
.voice-nav-link {
  flex: 1;
  padding: 14px 16px;
  background: white;
  border: 1px solid #ebebeb;
  border-radius: 6px;
  text-decoration: none;
  color: #555;
  font-size: 13px;
}
.voice-nav-link .nav-dir { color: #888; font-size: 11px; margin-bottom: 4px; }
.voice-nav-link .nav-title { font-weight: 700; color: #333; }
.voice-nav-link.next { text-align: right; }
.voice-back { margin-top: 32px; padding: 24px 0; border-top: 1px solid #eee; text-align: center; }

/* ──────────────────────────────────────────────────
   News / お知らせ Archive Page
────────────────────────────────────────────────── */
.news-archive-layout {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(16px,4vw,40px) clamp(16px,4vw,28px);
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}
.news-archive-main {}
.news-archive-item {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: #333;
  transition: color 0.15s;
}
.news-archive-item:hover { color: var(--blue); }
.news-archive-date { flex-shrink: 0; font-size: 13px; color: #999; }
.news-archive-title { font-size: 15px; line-height: 1.6; }
.news-archive-excerpt { font-size: 13px; color: #777; margin-top: 4px; line-height: 1.6; }
.news-archive-cat { font-size: 11px; color: white; background: var(--teal); padding: 2px 8px; border-radius: 3px; display: inline-block; margin-bottom: 4px; }
.sidebar-widget { margin-bottom: 24px; }
.sidebar-widget-title { background: var(--teal); color: white; padding: 10px 14px; font-weight: 700; font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans JP', sans-serif; }
.sidebar-widget-body { border: 1px solid #e5e5e5; border-top: none; padding: 12px 14px 14px; }
.sidebar-widget-body ul { list-style: none; }
.sidebar-widget-body li { padding: 6px 0; font-size: 13px; border-bottom: 1px dotted #eee; }
.sidebar-widget-body li:last-child { border-bottom: none; }
.sidebar-widget-body a { color: #444; text-decoration: none; display: flex; align-items: flex-start; gap: 8px; line-height: 1.5; transition: color 0.15s; }
.sidebar-widget-body a:hover { color: var(--blue); }
.sidebar-widget-body .dot { color: var(--yellow); font-size: 10px; padding-top: 5px; flex-shrink: 0; }

/* ──────────────────────────────────────────────────
   News Single Page
────────────────────────────────────────────────── */
.news-single-layout {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(16px,4vw,40px) clamp(16px,4vw,28px);
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}
.news-single-title-bar {
  background: var(--blue);
  color: white;
  padding: 16px 22px;
  font-size: clamp(15px,2vw,18px);
  font-weight: 700;
  line-height: 1.6;
  border-radius: 4px;
  margin-bottom: 20px;
}
.news-single-meta { font-size: 13px; color: #888; margin-bottom: 20px; }
.news-single-body { font-size: 14px; line-height: 2.1; color: #444; }
.news-single-body p { margin-bottom: 1em; }
.post-nav { display: flex; gap: 10px; margin-top: 40px; border-top: 1px solid #eee; padding-top: 24px; }
.post-nav-link { flex: 1; padding: 14px 16px; background: white; border: 1px solid #ebebeb; border-radius: 6px; text-decoration: none; color: #555; font-size: 13px; }
.post-nav-link.next { text-align: right; }
.post-nav-link .nav-dir { color: #888; font-size: 11px; margin-bottom: 4px; }
.post-nav-link .nav-title { font-weight: 700; color: #333; }

/* ──────────────────────────────────────────────────
   Back to Top Button
────────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 24px; right: 20px;
  z-index: 150;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: #178fb8; transform: translateY(-3px); }

/* ──────────────────────────────────────────────────
   Scroll Reveal
────────────────────────────────────────────────── */
.sr { opacity: 0; transform: translateY(32px); transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.sr.sr-visible { opacity: 1; transform: translateY(0); }

/* ──────────────────────────────────────────────────
   Contact Page (full)
────────────────────────────────────────────────── */
.contact-page-main { max-width: 760px; margin: 0 auto; padding: clamp(16px,4vw,48px) clamp(16px,4vw,32px); }
.contact-page-intro { font-size: 14px; color: #555; line-height: 2; text-align: center; margin-bottom: 32px; }
.contact-page-intro a { color: var(--blue); font-weight: 700; text-decoration: none; }
.contact-form-card { background: white; border: 1px solid #ebebeb; border-radius: 12px; padding: clamp(20px,3vw,40px); box-shadow: 0 4px 14px rgba(0,0,0,0.04); }

/* ──────────────────────────────────────────────────
   Course Plan Page
────────────────────────────────────────────────── */
.plan-pdf-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-bottom: 8px;
}
.plan-pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #555;
  background: #f4f4f4;
  border: none;
  border-radius: 4px;
  padding: 5px 12px;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s;
}
.plan-pdf-link:hover { background: #e8e8e8; color: #222; }
.plan-embed-wrap {
  position: relative;
  height: 0;           /* padding-bottomで高さを決める */
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 32px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
.plan-embed-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
  display: block;
  transform: scale(1.07);
  transform-origin: center center;
}
@media (min-width: 768px) {
  .plan-embed-wrap {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ──────────────────────────────────────────────────
   Class Page
────────────────────────────────────────────────── */
.class-section { margin-bottom: 4px; padding-top: 40px; padding-bottom: 40px; }
@media (max-width: 767px) {
  .class-section { margin-bottom: 12px; padding-top: 24px; padding-bottom: 24px; }
}

/* ──────────────────────────────────────────────────
   Class Page - 中学1・2年生 カード スマホ調整
────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .class-hero-12 { gap: 12px !important; padding: 16px !important; }
  .class-pentagon-12 { width: 80px !important; }
}

/* ──────────────────────────────────────────────────
   Responsive
────────────────────────────────────────────────── */
@media (max-width: 880px) {
  .news-archive-layout { grid-template-columns: 1fr; }
  .news-single-layout { grid-template-columns: 1fr; }
  .filter-bar { flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .hamburger-btn { display: flex !important; }
  .dot-row { display: none !important; }
  .header-phone { display: none !important; }
  .icon-nav { display: none !important; }
  .hero-text-panel {
    left: 4% !important;
    right: auto !important;
    top: 25% !important;
    bottom: auto !important;
    transform: none !important;
    max-width: 72% !important;
    padding: 10px 12px !important;
  }
  .hero-text-panel h2 { font-size: 13px !important; margin-bottom: 6px !important; }
  .hero-text-panel p { display: none !important; }
  .section-card-label { font-size: 14px !important; white-space: normal !important; line-height: 1.25 !important; padding: 0 6px !important; letter-spacing: 0 !important; }
  .section-block-inner { flex-direction: column; }
  .section-block-photo { width: 100%; height: 200px; }
  .section-block-text { padding: 16px !important; }
  .section-banner { font-size: 15px; padding: 10px 14px; }
  .teacher-grid { flex-direction: column; }
  .section-cards-grid { grid-template-columns: 1fr; }
  .two-col-form { grid-template-columns: 1fr; }
}

/* スマホ専用改行 */
.sp-br { display: none; }

/* 無料体験バナー ボタン */
.trial-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: #1FA8D9;
  font-weight: 800;
  font-size: clamp(13px, 1.4vw, 15px);
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transition: background 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.trial-btn:hover {
  background: #FF6B9D;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

/* 無料体験バナー：スマホで縦並び・中央揃え */
@media (max-width: 767px) {
  .trial-banner {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
  }
  .trial-btn {
    align-self: center;
  }
}
@media (max-width: 540px) { .sp-br { display: inline; } }

/* ──────────────────────────────────────────────────
   スタイル調整（上書き）
────────────────────────────────────────────────── */

/* ① 本文の行間・文字サイズ */
body, p {
  font-size: 17px;
  line-height: 1.9;
}

/* ② 見出しの行間・字間 */
h1, h2, h3, h4 {
  line-height: 1.5;
  letter-spacing: 0.02em;
}

/* ③ セクション間の余白 */
section, .section {
  padding-top: 80px;
  padding-bottom: 80px;
}

/* ④ 段落間の余白 */
p {
  margin-bottom: 1.4em;
}

/* ──────────────────────────────────────────────────
   フォント統一（全要素を Noto Sans JP に上書き）
────────────────────────────────────────────────── */
body, p, h1, h2, h3, h4, h5, h6,
div, span, a, li, button, input, textarea, select {
  font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans JP', sans-serif !important;
}

/* ──────────────────────────────────────────────────
   ① スマホ：カード間の余白を拡大
────────────────────────────────────────────────── */
@media (max-width: 540px) {
  .stats-grid { gap: 28px !important; }
}

/* 入試結果説明文：PC=center / スマホ=left */
.exam-desc { text-align: center; }
@media (max-width: 767px) {
  .exam-desc { text-align: left !important; }
}

/* ページ説明文：統一フォントサイズ clamp(15px,1.7vw,17px) */
.page-desc {
  font-size: clamp(15px,1.7vw,17px) !important;
  line-height: 2;
  color: #666;
}
.contact-page-intro { font-size: clamp(15px,1.7vw,17px) !important; }

/* 卒業生の声：説明文 中央揃え */
.voice-intro {
  text-align: center !important;
  max-width: 600px;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* 説明文：スマホのみ自然な折り返し（text-alignはインラインまたは各ページで指定） */
@media (max-width: 767px) {
  .page-desc         { word-break: keep-all; overflow-wrap: break-word; }
  .contact-page-intro { text-align: left !important; }
}

/* ──────────────────────────────────────────────────
   ② 説明文・本文：スマホのみ左揃え（PC はデフォルトのcenter維持）
────────────────────────────────────────────────── */
@media (max-width: 767px) {
  /* セクションタイトル下の説明文 */
  .section-title p { text-align: left !important; }

  /* お問い合わせの説明文 */
  .contact-lead,
  .contact-page-intro { text-align: left !important; }

  /* 各ページのサブテキスト */
  .exam-results-inner .section-title p { text-align: left !important; }

  /* トップページの各セクション説明段落 */
  .news-section-inner > p,
  .flow-inner > p,
  .faq-inner > p { text-align: left !important; }
}

/* ===== 合格高校 中央揃え ===== */
.exam-results-section {
  text-align: center;
}
.exam-results-section h2,
.exam-results-section h3,
.exam-results-section p {
  text-align: center;
  word-break: keep-all;
  overflow-wrap: break-word;
}
@media (min-width: 768px) {
  .exam-results-section .exam-results-inner {
    max-width: 820px;
    margin: 0 auto;
  }
}

/* ===== 入試結果 リード文 スマホのみ中央揃え ===== */
@media (max-width: 767px) {
  .exam-results-section .exam-desc,
  .exam-results-section .section-title p {
    text-align: center !important;
  }
}

/* スマホのみ改行 */
.sp-only { display: none; }
@media (max-width: 767px) {
  .sp-only { display: inline; }
}

/* ===== PDF埋め込み レスポンシブ ===== */
.pdf-embed-wrap {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  background: white;
}
.pdf-embed-wrap iframe {
  display: block;
  width: 100%;
  height: 600px;
  border: none;
  background: white;
}
@media (max-width: 767px) {
  .pdf-embed-wrap {
    overflow: hidden;
    background: white;
  }
  .pdf-embed-wrap iframe {
    height: 480px;
    background: white;
  }
}

/* ===== 受講プラン 画像表示 ===== */
.plan-img-wrap {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  background: white;
  min-height: 0;
  overflow: hidden;
}
.plan-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* ══════════════════════════════════════════════════
   講習案内バナー ① 帯バナー（ヒーロー直下）
══════════════════════════════════════════════════ */
.lecture-band-banner {
  background: linear-gradient(135deg, #1FA8D9 0%, #1DB8A8 100%);
  padding: 18px 20px;
  text-align: center;
}
.lecture-band-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}
.lecture-band-icon {
  font-size: 22px;
  line-height: 1;
}
.lecture-band-text {
  color: #fff;
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.lecture-band-btn {
  display: inline-block;
  background: #fff;
  color: #1FA8D9;
  font-weight: 700;
  font-size: clamp(13px, 1.5vw, 15px);
  padding: 8px 20px;
  border-radius: 50px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.lecture-band-btn:hover {
  background: #e0f7f9;
  transform: translateY(-1px);
}
@media (max-width: 540px) {
  .lecture-band-inner {
    flex-direction: column;
    gap: 10px;
  }
  .lecture-band-btn {
    width: 100%;
    max-width: 260px;
    text-align: center;
  }
}

/* ══════════════════════════════════════════════════
   講習案内バナー ② フローティングバナー（右下固定）
══════════════════════════════════════════════════ */
.lecture-float-banner {
  position: fixed;
  bottom: 80px; /* back-to-top ボタンの上 */
  right: 20px;
  z-index: 9000;
  background: linear-gradient(135deg, #1FA8D9 0%, #1DB8A8 100%);
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(31, 168, 217, 0.45);
  padding: 16px 20px 18px;
  width: 220px;
  animation: float-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes float-in {
  from { opacity: 0; transform: translateY(30px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0)   scale(1);   }
}
.lecture-float-close {
  position: absolute;
  top: 6px;
  right: 10px;
  background: rgba(255,255,255,0.25);
  border: none;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  padding: 0;
}
.lecture-float-close:hover {
  background: rgba(255,255,255,0.45);
}
.lecture-float-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
}
.lecture-float-icon {
  font-size: 28px;
  line-height: 1;
  margin: 0;
}
.lecture-float-text {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.05em;
  line-height: 1.5;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.lecture-float-btn {
  display: block;
  background: #fff;
  color: #1FA8D9;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 0;
  width: 100%;
  text-align: center;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.lecture-float-btn:hover {
  background: #e0f7f9;
  transform: translateY(-1px);
}
/* スマホ：少し小さめ・左右余白調整 */
@media (max-width: 540px) {
  .lecture-float-banner {
    width: 180px;
    right: 12px;
    bottom: 72px;
    padding: 12px 14px 14px;
  }
  .lecture-float-text {
    font-size: 13px;
  }
  .lecture-float-btn {
    font-size: 12px;
    padding: 7px 0;
  }
}
