@charset "utf-8";

/* ====================================
   Variables & Reset
   ==================================== */
:root {
  --color-main: #006D5B;      /* 深いティールグリーン */
  --color-accent: #FF8C42;    /* ビビッドなオレンジ */
  --color-text: #333333;      /* ダークグレー */
  --color-bg: #F9FAFB;        /* オフホワイト背景 */
  --color-white: #ffffff;
  --font-base: "Noto Sans JP", sans-serif;
  --radius-card: 16px;
  --radius-btn: 50px;
  --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 15px rgba(0,0,0,0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

/* ====================================
   Header
   ==================================== */
#header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: 0.3s;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-main);
  letter-spacing: 0.05em;
}

/* PC Navigation */
.pc-nav ul {
  display: flex;
  gap: 30px;
}

.pc-nav a {
  font-weight: 700;
  color: var(--color-text);
  font-size: 0.95rem;
  position: relative;
}

.pc-nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s;
}

.pc-nav a:hover::after {
  width: 100%;
}

.header-cta .btn-primary {
  padding: 10px 20px;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .pc-nav, .header-cta {
    display: none;
  }
}

/* ====================================
   Hamburger Menu (確実な修正版)
   ==================================== */
.hamburger {
  display: none;
  width: 40px; /* タップしやすいよう少し大きく */
  height: 40px;
  position: relative;
  cursor: pointer;
  z-index: 100; /* ヘッダー内での順序 */
  display: flex; /* 中央寄せ */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px; /* 線の間隔 */
}

/* 900px以下で表示 */
@media (max-width: 900px) {
  .hamburger {
    display: flex;
  }
}

.hamburger span {
  display: block;
  width: 30px;
  height: 3px;
  background: var(--color-main); /* 通常時は緑 */
  border-radius: 3px;
  transition: 0.3s;
}

/* スマホメニュー本体 */
.sp-menu {
  position: fixed;
  top: 0;
  right: -100%; /* 普段は画面外(右)に隠す */
  width: 100%;  /* 全画面を覆う */
  height: 100vh;
  background: var(--color-main); /* 緑色の背景 */
  z-index: 9999; /* 最前面 */
  padding: 20px;
  transition: 0.4s ease-in-out;
  overflow-y: auto; /* メニューが長い場合はスクロール */
}

.sp-menu.active {
  right: 0; /* 画面内に出てくる */
}

/* ★新設：メニュー内の閉じるボタン（×） */
.close-btn {
  text-align: right;
  margin-bottom: 20px;
  cursor: pointer;
}

.close-btn i {
  color: #fff;
  font-size: 2.5rem; /* 大きく表示 */
  padding: 10px;
}

/* メニューリストのデザイン */
.sp-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.sp-menu ul li {
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.sp-menu ul li a {
  display: block;
  padding: 20px;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}

/* SP Menu Overlay */
.sp-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  height: 100vh;
  background: var(--color-main);
  z-index: 1500;
  padding-top: 80px;
  transition: 0.4s;
}

.sp-menu.active {
  right: 0;
}

.sp-menu ul li {
  text-align: center;
}

.sp-menu ul li a {
  display: block;
  padding: 20px;
  color: #fff;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* ====================================
   Hero Section
   ==================================== */
.hero {
  /* 背景画像を設定する場合、url()内を変更してください */
  background: linear-gradient(135deg, rgba(0, 109, 91, 0.9), rgba(0, 77, 64, 0.9)), url('images/hero-bg.jpg'); 
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 100px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.3;
  margin-bottom: 20px;
  text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero h1 .highlight {
  color: var(--color-accent);
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

/* Countdown */
.countdown-wrapper {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(5px);
  padding: 20px;
  border-radius: var(--radius-card);
  border: 1px solid rgba(255,255,255,0.2);
  margin-bottom: 40px;
  display: inline-block;
  min-width: 300px;
}

.countdown-wrapper h2 {
  font-size: 1rem;
  margin-bottom: 15px;
  font-weight: 500;
}

.time-container {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.time-box {
  background: #fff;
  color: var(--color-main);
  padding: 10px 15px;
  border-radius: 8px;
  min-width: 70px;
}

.time-box span {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.time-box p {
  font-size: 0.7rem;
  margin: 0;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.7;
}

/* Buttons */
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #fff;
  padding: 15px 40px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  box-shadow: 0 5px 15px rgba(255, 140, 66, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 140, 66, 0.6);
  background-color: #ff9d5c;
}

.btn-secondary {
  background-color: #fff;
  color: var(--color-main);
  padding: 15px 30px;
  border-radius: var(--radius-btn);
  font-weight: 700;
}

.btn-secondary:hover {
  background-color: #f0f0f0;
}

/* ====================================
   Layout & Sections
   ==================================== */
#wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  color: var(--color-main);
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-desc {
  text-align: center;
  margin-bottom: 50px;
  color: #666;
}

/* ====================================
   Bento Grid (特徴セクション) 修正版
   ==================================== */
.bento-grid {
  display: grid;
  /* PCでは3列にする */
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

/* カード共通スタイル */
.card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: 0.3s;
  border: 1px solid #eee;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.icon-box {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.color-1 { background: #e0f2f1; color: var(--color-main); }
.color-2 { background: #fff3e0; color: var(--color-accent); }
.color-3 { background: #e3f2fd; color: #2196f3; }
.color-4 { background: #fce4ec; color: #e91e63; }

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  line-height: 1.4;
  font-weight: 700;
}

.card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.8;
}

/* --- 特徴4（価格カード）の特別設定 --- */
.price-card {
  /* PCでは横幅いっぱい（全列）に広げる */
  grid-column: 1 / -1; 
  background: #fffaf0; /* 少し目立たせる背景色 */
  border: 2px solid var(--color-accent); /* 強調枠線 */
}

/* カード内のアコーディオン設定 */
.card-details {
  margin-top: 20px;
  border-top: 1px dashed #ccc;
  padding-top: 20px;
}

.card-summary {
  display: block;
  text-align: center;
  cursor: pointer;
  color: var(--color-main);
  font-weight: 700;
  padding: 10px;
  background: #fff;
  border-radius: 50px;
  border: 1px solid var(--color-main);
  transition: 0.3s;
  list-style: none; /* 三角を消す */
  max-width: 300px;
  margin: 0 auto;
}

.card-summary::-webkit-details-marker {
  display: none;
}

.card-summary:hover {
  background: var(--color-main);
  color: #fff;
}

.card-summary span::after {
  content: '\f078'; /* FontAwesome Chevron Down */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-left: 10px;
}

.card-details[open] .card-summary span::after {
  content: '\f077'; /* Up */
}

.card-details[open] .card-summary {
  margin-bottom: 30px; /* 開いたときの間隔 */
}

/* 開いたときの中身 */
.details-content {
  animation: fadeIn 0.5s ease;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
}

/* スマホ表示の調整 */
@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr; /* スマホは1列 */
  }
  .price-card {
    grid-column: auto; /* スマホでは普通に並べる */
  }
}

/* ====================================
   料金比較 (VSカードスタイル)
   崩れにくく、スマホでも見やすいデザイン
   ==================================== */
.price-details-content {
  padding: 30px 20px;
  background: #fff;
  border-top: 1px solid #eee;
  animation: fadeIn 0.5s ease;
}

.comparison-block {
  margin-bottom: 50px;
  border-bottom: 1px dashed #ddd;
  padding-bottom: 40px;
}
.comparison-block:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.graph-title {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-main);
  margin-bottom: 25px;
  background: #e0f2f1;
  display: inline-block;
  padding: 5px 15px;
  border-radius: 20px;
}
/* 中央寄せにするためのラッパー */
.title-wrap { text-align: center; }

/* VSカードのコンテナ */
.vs-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 15px;
  max-width: 700px;
  margin: 0 auto;
}

/* 個別のカード */
.vs-card {
  flex: 1;
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 相手（他塾） */
.vs-card.rival {
  background: #f0f0f0;
  color: #666;
}

/* WINGS（強調） */
.vs-card.wings {
  background: #fff8e1; /* 薄いオレンジ背景 */
  border: 2px solid var(--color-accent);
  color: var(--color-text);
  transform: scale(1.05); /* 少し大きくして目立たせる */
  box-shadow: 0 5px 15px rgba(255, 140, 66, 0.2);
  z-index: 1;
}

/* VSバッジ */
.vs-badge {
  align-self: center;
  background: #ccc;
  color: #fff;
  font-weight: 900;
  padding: 5px;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  margin: 0 -10px; /* カードに重ねる */
  z-index: 2;
  border: 2px solid #fff;
}

.card-label {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
}

.card-sub {
  font-size: 0.8rem;
  background: rgba(0,0,0,0.05);
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 15px;
}

.card-price {
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 5px;
}
.card-price span {
  font-size: 0.9rem;
  font-weight: normal;
}

.card-note {
  font-size: 0.8rem;
  color: #d32f2f; /* 赤文字 */
  font-weight: 700;
}

/* WINGSの色変更 */
.wings .card-label { color: var(--color-accent); font-size: 1.1rem; }
.wings .card-price { color: var(--color-accent); font-size: 2rem; }

.note-text {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 20px;
  color: #666;
}

@media (max-width: 600px) {
  .vs-container {
    gap: 5px;
  }
  .vs-card {
    padding: 15px 5px;
  }
  .card-price { font-size: 1.3rem; }
  .wings .card-price { font-size: 1.6rem; }
  .card-sub { font-size: 0.7rem; display: block; margin: 0 auto 10px; }
}

/* ====================================
   Courses
   ==================================== */
.bg-light {
  background: #f4f6f8;
  
  /* 修正: 画面幅いっぱいに背景を広げる安全な記述に変更 */
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  
  /* 上下の余白 */
  padding-top: 80px;
  padding-bottom: 80px;
}

/* 追加: 背景エリア内のコンテンツを中央に寄せる設定 */
.bg-light .section-title,
.bg-light .course-grid,
.bg-light .sub-links {
  max-width: 1200px; /* サイト全体の幅に合わせる */
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .course-grid {
    grid-template-columns: 1fr;
  }
}

.course-item {
  background: #fff;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: 0.3s;
}

.course-item:hover {
  transform: scale(1.02);
}

.course-img {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 3rem;
}

.course-text {
  padding: 20px;
  text-align: center;
}

.course-text h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: var(--color-text);
}

.course-text p {
  font-size: 0.9rem;
  color: #666;
}

.sub-links {
  display: flex;
  justify-content: center; /* ここでボタンを中央寄せ */
  gap: 20px;
  flex-wrap: wrap;
}

.btn-outline {
  border: 2px solid var(--color-main);
  color: var(--color-main);
  padding: 12px 25px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  background: #fff;
}

.btn-outline:hover {
  background: var(--color-main);
  color: #fff;
}

/* ====================================
   News List
   ==================================== */
.news-list {
  max-width: 900px;
  margin: 0 auto 30px;
}

.news-item {
  display: flex;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  flex-wrap: wrap;
}

.news-date {
  font-family: monospace;
  color: #888;
  margin-right: 15px;
}

.news-tag {
  background: #eee;
  font-size: 0.8rem;
  padding: 3px 8px;
  border-radius: 4px;
  margin-right: 15px;
  white-space: nowrap;
}

.news-tag.highlight {
  background: var(--color-accent);
  color: #fff;
}

.news-item a {
  flex: 1;
  font-weight: 500;
}

.news-item a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.center-btn {
  text-align: center;
  margin-top: 20px;
}

@media (max-width: 600px) {
  .news-item {
    display: block;
  }
  .news-date, .news-tag {
    display: inline-block;
    margin-bottom: 5px;
  }
}

/* ====================================
   Banner Grid (Results)
   ==================================== */
.banner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .banner-grid {
    grid-template-columns: 1fr;
  }
}

.banner-box {
  background: var(--color-main);
  color: #fff;
  padding: 40px;
  border-radius: var(--radius-card);
  text-align: center;
  transition: 0.3s;
}

.banner-box.alt {
  background: #004d40; /* 少し暗め */
}

.banner-box h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.banner-box:hover {
  opacity: 0.9;
  transform: translateY(-3px);
}

/* ====================================
   Footer
   ==================================== */
#footer {
  background: #eee;
  padding-top: 60px;
  padding-bottom: 100px; /* スマホ用固定メニューの分を空ける */
  font-size: 0.9rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-info h3 {
  color: var(--color-main);
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.footer-links ul {
  display: flex;
  gap: 20px;
}

.footer-links a:hover {
  color: var(--color-accent);
}

.copyright {
  text-align: center;
  margin-top: 40px;
  padding: 20px;
  color: #888;
  border-top: 1px solid #ddd;
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-links ul {
    flex-direction: column;
    gap: 10px;
  }
}

/* ====================================
   Mobile Fixed Nav
   ==================================== */
.mobile-fixed-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 999;
}

@media (max-width: 768px) {
  .mobile-fixed-nav {
    display: flex;
  }
}

.nav-btn {
  flex: 1;
  text-align: center;
  padding: 10px;
  color: #fff;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.nav-btn i {
  font-size: 1.2rem;
  margin-bottom: 3px;
}

.nav-btn.phone {
  background: var(--color-main);
}

.nav-btn.mail {
  background: var(--color-accent);
}

/* ====================================
   Subpage Specific Styles
   ==================================== */

/* 下層ページ用ヒーローヘッダー */
.page-hero {
  background: linear-gradient(135deg, var(--color-main), #004d40);
  color: #fff;
  padding: 60px 20px;
  text-align: center;
  margin-bottom: 40px;
}

.page-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-hero p {
  opacity: 0.9;
  font-size: 0.9rem;
}

/* 記事・文章のコンテナ */
.content-card {
  background: #fff;
  padding: 40px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
  line-height: 1.8;
}

.content-card h2, .content-card h3 {
  color: var(--color-main);
  margin-bottom: 20px;
  border-left: 5px solid var(--color-accent);
  padding-left: 15px;
}

/* PDFダウンロードなどのリストリンク */
.link-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.link-card {
  display: flex;
  align-items: center;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #eee;
  transition: 0.3s;
  color: var(--color-text);
  font-weight: 700;
}

.link-card i {
  font-size: 1.5rem;
  color: var(--color-accent);
  margin-right: 15px;
}

.link-card:hover {
  border-color: var(--color-main);
  transform: translateX(5px);
  box-shadow: var(--shadow-sm);
  color: var(--color-main);
}

/* アクセスページ：地図と情報のグリッド */
.access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.access-info table {
  width: 100%;
  border-collapse: collapse;
}

.access-info th, .access-info td {
  padding: 15px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.access-info th {
  width: 30%;
  color: var(--color-main);
  font-weight: 700;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 350px;
  border-radius: var(--radius-card);
}

@media (max-width: 768px) {
  .access-grid {
    grid-template-columns: 1fr;
  }
}

/* ギャラリー（教室写真） */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  transition: 0.3s;
}

.gallery-item img:hover {
  transform: scale(1.05);
}

/* 講師紹介・お客様の声 */
.teacher-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px dashed #ccc;
}

.teacher-card:last-child {
  border-bottom: none;
}

.teacher-info h3 {
  border: none;
  padding: 0;
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.teacher-info .subject {
  display: inline-block;
  background: var(--color-main);
  color: #fff;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.voice-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
}

.voice-list li::before {
  content: '\f00c'; /* FontAwesome check */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
}

@media (max-width: 600px) {
  .teacher-card {
    flex-direction: column;
  }
}

/* テスト結果・年別リスト */
.year-block {
  margin-bottom: 40px;
}

.year-title {
  background: var(--color-main);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 20px;
  font-weight: 700;
}

.result-list li {
  margin-bottom: 5px;
  font-weight: 700;
}
.result-list .highlight {
  color: #d32f2f;
}

/* ====================================
   修正1: スマホメニューの閉じるボタン
   ==================================== */
/* メニューが開いているときは、ボタンの色を白にする */
.hamburger.active span {
  background: #fff;
}

/* ====================================
   修正2: スマホでの改行・テキスト調整
   ==================================== */
/* PC用の改行タグはスマホで無効化 */
@media (max-width: 768px) {
  br {
    display: none;
  }
  /* ただし、どうしても改行したい場所（.force-br）は残す */
  br.force-br {
    display: block;
  }
  
  .hero h1 {
    font-size: 2rem; /* スマホでタイトルが巨大になりすぎないよう調整 */
    line-height: 1.4;
  }
  
  .section-title {
    font-size: 1.5rem;
    line-height: 1.4;
  }
}

/* ====================================
   修正3: カウントダウン（白背景用デザイン）
   ==================================== */
/* 場所を移動するためスタイル調整 */
.countdown-section {
  text-align: center;
  margin-top: -50px; /* ヒーロー画像に少し重ねる演出 */
  margin-bottom: 40px;
  position: relative;
  z-index: 10;
  padding: 0 20px;
}

.countdown-wrapper {
  background: #fff; /* 白背景 */
  color: var(--color-text);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15); /* 影を強くして浮かせる */
  border: none;
  display: inline-block;
  min-width: 300px;
  max-width: 100%;
}

.countdown-wrapper h2 {
  color: var(--color-main);
  font-weight: 700;
  font-size: 1.1rem;
}

.time-box {
  background: var(--color-main); /* 箱を緑に */
  color: #fff; /* 文字を白に */
}

.time-box p {
  color: rgba(255,255,255,0.8);
}

/* ====================================
   修正4: コスパ比較グラフ
   ==================================== */
.price-graph {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 180px;
  margin: 20px 0;
  gap: 30px;
  padding-bottom: 5px;
  border-bottom: 1px solid #ccc;
}

.graph-bar {
  width: 80px;
  border-radius: 8px 8px 0 0;
  position: relative;
  text-align: center;
  transition: height 1s ease-out;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 10px;
}

/* 他塾 */
.bar-other {
  height: 100%; /* 相対的な高さ */
  background: #ccc;
  color: #555;
}

/* WINGS */
.bar-wings {
  height: 80%; /* WINGSの方が安いので低く */
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 -5px 15px rgba(255, 140, 66, 0.3);
}

.bar-label {
  font-size: 0.8rem;
  font-weight: bold;
  position: absolute;
  bottom: -30px;
  left: 0;
  width: 100%;
  color: var(--color-text);
}

.bar-price {
  font-weight: 900;
  font-size: 1.1rem;
  line-height: 1.2;
}
.bar-price span {
  font-size: 0.7rem;
  display: block;
  font-weight: normal;
}

/* --- キャンペーンバナー全体の修正 --- */
.campaign-banner {
  background: #fff3cd;
  border: 2px solid #ffecb5;
  color: #856404;
  padding: 15px;
  margin: 20px 0;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

/* 内側のレイアウト */
.campaign-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap; /* 中身が入り切らない時に自動で折り返す */
}

.campaign-tag {
  background: #ff5252;
  color: #fff;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 900;
  animation: pulse 2s infinite; /* 注目させるためのアニメーション（任意） */
}

.campaign-text {
  font-weight: 900;
  font-size: 1.1rem;
  line-height: 1.5;
}

.highlight-text {
  color: #d32f2f; /* キャンペーン内容を少し目立たせる */
}

/* リンクをボタン風に変更 */
.campaign-link {
  background: #856404;
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  text-decoration: none !important;
  font-weight: 700;
  transition: 0.3s;
  white-space: nowrap; /* ボタン内で改行させない */
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.campaign-link:hover {
  background: #5d4603;
  transform: translateY(-2px);
}

/* --- スマホ・タブレット用の調整 --- */
.sp-only {
  display: none;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@media (max-width: 768px) {
  .campaign-inner {
    flex-direction: column; /* スマホでは縦に並べる */
    gap: 10px;
  }
  
  .sp-only {
    display: block; /* スマホの時だけ改行を有効にする */
  }
  
  .campaign-text {
    font-size: 1rem;
  }

  .campaign-link {
    width: 100%; /* スマホではボタンを横いっぱいに（押しやすく） */
    max-width: 250px;
    justify-content: center;
  }
}

/* ====================================
   料金比較 アコーディオン & グラフ
   ==================================== */
/* アコーディオン外枠 */
.price-accordion {
  max-width: 900px;
  margin: 30px auto;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  border: 1px solid #e0e0e0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.price-accordion[open] {
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

/* クリックするヘッダー部分 */
.price-summary {
  padding: 25px;
  background: linear-gradient(to right, #fff8e1, #fff); /* 薄いオレンジのグラデ */
  cursor: pointer;
  list-style: none; /* デフォルトの三角を消す */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price-summary::-webkit-details-marker {
  display: none;
}

.summary-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.summary-icon {
  width: 50px;
  height: 50px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.summary-text h3 {
  font-size: 1.2rem;
  color: var(--color-text);
  margin-bottom: 5px;
  font-weight: 900;
}

.summary-text p {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}

/* 開閉の矢印アイコン */
.arrow-icon {
  font-size: 1.2rem;
  color: var(--color-accent);
  transition: transform 0.3s;
}

.price-accordion[open] .arrow-icon {
  transform: rotate(180deg);
}

/* 中身のコンテンツエリア */
.price-details-content {
  padding: 30px;
  background: #fff;
  border-top: 1px solid #eee;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- グラフ共通スタイル --- */
.comparison-block {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px dashed #ccc;
}
.comparison-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.graph-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-main);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.graph-title span {
  background: #e0f2f1;
  color: var(--color-main);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
}

/* 横棒グラフ（シンプル版） */
.simple-bar-chart {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.bar-row {
  display: grid;
  grid-template-columns: 120px 1fr auto; /* ラベル | バー | 金額 */
  align-items: center;
  gap: 15px;
}

.bar-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #555;
  text-align: right;
}

.bar-track {
  background: #f0f0f0;
  height: 20px;
  border-radius: 10px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 10px;
  display: block;
  width: 0; /* アニメーション用 */
  transition: width 1s ease-out;
}

/* 色設定 */
.market-color { background: #bdbdbd; }
.wings-color { background: var(--color-accent); }

.bar-price-text {
  font-weight: 700;
  font-size: 1rem;
  width: 100px; /* 金額の幅確保 */
  text-align: right;
}

.wings-highlight {
  color: #d32f2f;
  font-size: 1.2rem;
}

/* 中3 縦積みグラフ */
.stack-graph-container {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 40px;
  height: 250px; /* 高さ確保 */
  margin-top: 30px;
  padding-bottom: 10px;
}

.stack-column {
  width: 100px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

.stack-bar-wrap {
  width: 100%;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  /* 高さはインラインスタイルで指定 */
}

.part-option {
  background: #ef9a9a; /* 薄い赤 */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.7rem;
  width: 100%;
}

.part-base {
  background: #90caf9; /* 薄い青 */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.8rem;
  width: 100%;
}

/* WINGSカラム */
.wings-col .part-option { background: #ffe0b2; color: #e65100; }
.wings-col .part-base { background: var(--color-accent); font-weight: bold; }

.col-label {
  margin-top: 10px;
  font-weight: 700;
  font-size: 0.9rem;
}

.col-total {
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--color-text);
  margin-bottom: 5px;
}

.note {
  font-size: 0.85rem;
  background: #f9f9f9;
  padding: 10px;
  border-radius: 6px;
  margin-top: 10px;
  color: #666;
}

@media (max-width: 600px) {
  .bar-row {
    grid-template-columns: 1fr; /* スマホは縦積みに */
    gap: 5px;
    margin-bottom: 15px;
  }
  .bar-label { text-align: left; }
  .bar-price-text { width: auto; text-align: left; margin-bottom: 5px; }
  
  .stack-graph-container {
    gap: 20px;
  }
}

/* ====================================
   画像表示用のフレーム (画面いっぱいフルワイド版)
   ==================================== */
.course-banner-frame {
  /* wrapperの制限を突き抜けて画面幅(100vw)にする魔法のコード */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  
  /* 以前の制限や装飾をリセット */
  max-width: none;
  border-radius: 0;
  border: none;
  box-shadow: none;
  
  /* 上下の余白 */
  margin-top: 40px;
  margin-bottom: 40px;
  
  overflow: hidden;
  line-height: 0;
}

.course-banner-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* ====================================
   ブログアーカイブ・合格体験記用
   ==================================== */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.archive-link {
  display: block;
  background: #fff;
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
  color: var(--color-main);
  transition: 0.3s;
}

.archive-link:hover {
  background: var(--color-main);
  color: #fff;
  border-color: var(--color-main);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.archive-link span {
  display: block;
  font-size: 0.8rem;
  font-weight: normal;
  color: #888;
  margin-bottom: 5px;
}
.archive-link:hover span {
  color: rgba(255,255,255,0.8);
}

/* バナーボックス内の文字色を強制的に白にする */
.banner-box h3,
.banner-box p {
  color: #ffffff !important;
  margin: 0;
}

/* ついでにアイコンの間隔も調整 */
.banner-box h3 i {
  margin-right: 10px;
}

/* --- 実績バナーの改行・サイズ調整 --- */
.banner-box {
  padding: 40px 20px; /* 左右の余白を少し調整 */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.banner-box h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #fff !important;
  /* ↓ 非常に重要な設定：1行に収めるための魔法 */
  white-space: nowrap;      /* 文字を絶対に改行させない */
  word-break: keep-all;     /* 単語の途中での改行も防ぐ */
}

/* スマホなど画面が小さい時（480px以下）の調整 */
@media (max-width: 480px) {
  .banner-box {
    padding: 30px 10px;    /* 箱自体の余白を削って横幅を稼ぐ */
  }

  .banner-box h3 {
    /* 画面幅に合わせて文字サイズを自動調整（vwを使うとより柔軟です） */
    font-size: 5vw;        /* 画面幅の5%の大きさに（だいたい18px〜20px程度） */
  }
  
  /* さらに小さい画面（350px以下）への保険 */
  @media (max-width: 350px) {
    .banner-box h3 {
      font-size: 1.1rem;   /* 固定サイズで最小値を指定 */
    }
  }

  .banner-box p {
    font-size: 0.8rem;     /* 説明文も少し小さく */
  }
}

/* ====================================
   春期講習用 特設スタイル & Q&A
   ==================================== */
.spring-page-hero {
  background: linear-gradient(135deg, rgba(0, 109, 91, 0.9), rgba(0, 168, 132, 0.9)), url('images/spring-bg.jpg') no-repeat center/cover;
  color: #fff;
  padding: 80px 20px;
  text-align: center;
  margin-bottom: 50px;
}
.spring-page-hero .badge {
  background: var(--color-accent);
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 15px;
  font-size: 0.9rem;
}
.spring-page-hero h1 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  line-height: 1.4;
}

/* 講習の料金カード */
.spring-course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.spring-card {
  background: #fff;
  border: 2px solid #eee;
  border-radius: var(--radius-card);
  padding: 30px;
  transition: 0.3s;
  position: relative;
  overflow: hidden;
}
.spring-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}
.spring-card.exam-course {
  background: #fff8e1; /* 受験コースは少し色を変える */
  border-color: #ffdca8;
}
.spring-card-title {
  font-size: 1.3rem;
  color: var(--color-main);
  border-bottom: 2px dashed #ccc;
  padding-bottom: 10px;
  margin-bottom: 15px;
  font-weight: 900;
}
.spring-card-price {
  font-size: 1.4rem;
  color: #d32f2f;
  font-weight: bold;
  margin: 15px 0;
  text-align: center;
  background: #fff0f0;
  padding: 10px;
  border-radius: 8px;
}

/* 日程リスト（中学生用） */
.schedule-list {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  font-size: 0.9rem;
}
.schedule-list li {
  margin-bottom: 5px;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
}
.schedule-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

/* モダンなQ&A（アコーディオン） */
.qa-container {
  max-width: 800px;
  margin: 0 auto 50px;
}
.qa-item {
  background: #fff;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.qa-item summary {
  padding: 20px;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  list-style: none;
  color: var(--color-main);
  display: flex;
  align-items: center;
}
.qa-item summary::-webkit-details-marker { display: none; }
.qa-item summary::before {
  content: "Q.";
  color: var(--color-accent);
  font-size: 1.5rem;
  margin-right: 15px;
  font-weight: 900;
}
.qa-item summary::after {
  content: '\f078';
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 20px;
  transition: 0.3s;
}
.qa-item[open] summary::after {
  transform: rotate(180deg);
}
.qa-answer {
  padding: 0 20px 20px 50px;
  color: #555;
  border-top: 1px dashed #eee;
  margin-top: 10px;
  padding-top: 15px;
  position: relative;
}
.qa-answer::before {
  content: "A.";
  position: absolute;
  left: 20px;
  color: #ccc;
  font-size: 1.5rem;
  font-weight: 900;
}

/* --- 新設：春期講習ボタン用のスタイル --- */
.spring-nav-section {
  background: #f0f9f4; /* 爽やかな薄緑 */
  border: 1px solid #d1eadd;
  border-radius: 16px;
  padding: 30px 20px;
  margin: 20px 0 40px;
  text-align: center;
}

.spring-nav-section h2 {
  color: var(--color-main);
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.spring-nav-section p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 20px;
}

.spring-nav-btns {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-spring {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 700;
  color: #fff;
  transition: 0.3s;
  min-width: 220px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* コースごとに色分け */
.btn-spring.shogaku {
  background-color: #F46767; /* 小学生コースの色 */
}
.btn-spring.chugaku {
  background-color: #16b872; /* 中学生コースの色 */
}

.btn-spring:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  opacity: 0.9;
}

/* スマホ対応 */
@media (max-width: 600px) {
  .btn-spring {
    width: 100%;
    min-width: auto;
  }
}

/* スマホでの表（テーブル）内の改行設定 */
@media screen and (max-width: 768px) {
  /* 時間などが書かれているセルを特定して改行を許可 */
  .spring-card table td {
    white-space: normal !important; /* 改行禁止を解除 */
    word-break: break-all;          /* 英数字の途中でも改行を許可 */
    padding: 10px 5px !important;  /* スマホ用に余白を少し詰める */
    font-size: 0.85rem;             /* 文字をわずかに小さくして収まりを良くする */
  }

  /* 「〜」の前後で改行しやすくする調整 */
  .spring-card table td:contains("〜") {
    display: block; /* セル内で要素を縦に並べる（必要に応じて） */
  }
}

/* --- 春期講習 2連バッジ用スタイル --- */
.spring-nav-badges {
  margin: 15px 0 25px;
  text-align: center;
}

.spring-title {
  color: #fff;
  font-weight: bold;
  font-size: 0.95rem;
  margin-bottom: 10px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.spring-badge-group {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap; /* スマホで縦に並ぶように */
}

.badge-link-spring {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 50px;
  color: #fff !important;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
  animation: spring-pulse 2s infinite; /* 注目を集めるアニメーション */
}

/* 小学生：少し明るいサクラピンク */
.badge-link-spring.shogaku {
  background: linear-gradient(135deg, #ff8da1, #ff6b81);
}

/* 中学生：少し濃いめのローズピンク */
.badge-link-spring.chugaku {
  background: linear-gradient(135deg, #ff6b81, #ee5253);
  animation-delay: 0.5s; /* 動きをずらしてリズムを出す */
}

.badge-link-spring:hover {
  transform: translateY(-3px) scale(1.05);
  opacity: 0.9;
}

/* 注目を集めるアニメーション */
@keyframes spring-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* スマホ用調整 */
@media screen and (max-width: 480px) {
  .spring-badge-group {
    gap: 8px;
  }
  .badge-link-spring {
    font-size: 0.9rem;
    padding: 8px 15px;
    width: 46%; /* スマホで横に2つ並べる設定 */
    min-width: 140px;
  }
}