@charset "UTF-8";

/* =========================================
   0. 崩れ防止の基本
   ========================================= */
*, *::before, *::after { box-sizing: border-box; }

/* =========================================
   1. 基本変数・リセット
   ========================================= */
:root {
  --primary-color: #100964;
  --secondary-color: #3f6eb7;
  --accent-yellow: #f8b500;
  --text-dark: #2d3436;
  --bg-color: #f4f7f9;
  --header-h: 70px;
  --line-green: #06C755;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  background: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.9;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

/* =========================================
   2. ヘッダー・ナビ
   ========================================= */
header {
  position: fixed;
  top: 0;
  width: 100%;
  min-height: var(--header-h);
  background: var(--primary-color);
  z-index: 1000;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header-inner {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.header_image { height: 45px; display: block; }

.headB ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.headB a { color: #fff; text-decoration: none; font-weight: bold; font-size: 0.9rem; transition: 0.3s; }
.headB a:hover { opacity: 0.7; }

.headC {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  font-size: 22px;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 6px;
}

/* =========================================
   3. メインコンテンツ
   ========================================= */
main { padding-top: calc(var(--header-h) + 40px); padding-bottom: 60px; }
.container { max-width: 800px; margin: 0 auto; padding: 0 15px; }

.nengo-header {
  background: linear-gradient(135deg, var(--primary-color), #3a5c8e);
  color: #fff;
  padding: 30px 15px;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 30px;
}

.nengo-year {
  background: var(--secondary-color);
  display: inline-block;
  padding: 4px 20px;
  border-radius: 30px;
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 1.1rem;
}
.nengo-title { 
  margin: 0; 
  font-size: clamp(1.4rem, 5vw, 1.9rem); 
  font-weight: 700; 
  line-height: 1.3;
}

.nengo-content {
  background: #fff;
  padding: 35px 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,.05);
  margin-bottom: 30px;
}
.nengo-content h2 {
  font-size: 1.3rem;
  color: var(--primary-color);
  border-left: 5px solid var(--accent-yellow);
  padding-left: 15px;
  margin-bottom: 20px;
  margin-top: 0;
}

.highlight {
  font-weight: 700;
  background: linear-gradient(transparent 75%, #fff4cc 75%);
}

.teacher-advice {
  margin-top: 30px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
  font-size: 0.95rem;
  text-align: left;
}
.advice-title {
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.goroawase-card {
  background: linear-gradient(135deg, #fceabb, var(--accent-yellow));
  padding: 40px 20px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(248, 181, 0, 0.2);
  margin-bottom: 30px;
}
.goro-label { font-size: .95rem; font-weight: bold; color: #634d00; margin-bottom: 10px; display: block; }
.goroawase-text { font-size: clamp(1.4rem, 5vw, 1.8rem); font-weight: 800; margin: 0; color: #333; }

/* =========================================
   4. CTA (生徒・保護者)
   ========================================= */
.cta-student {
  margin: 40px 0;
  padding: 30px 20px;
  background: #eef7ff;
  border-left: 6px solid var(--secondary-color);
  border-radius: 12px;
  text-align: center;
}
.cta-student h3 { margin-top: 0; font-size: 1.3rem; color: var(--secondary-color); }
.cta-student p { font-size: 0.95rem; margin-bottom: 20px; }

.cta-line-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--line-green);
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(6,199,85,0.3);
  transition: .2s;
}
.cta-line-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(6,199,85,0.4); }

.cta-parent {
  margin: 60px 0 40px;
  padding: 35px 20px;
  background: #fff;
  border: 2px solid var(--primary-color);
  border-radius: 12px;
  text-align: center;
}
.parent-badge {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  padding: 2px 12px;
  font-size: 0.8rem;
  font-weight: bold;
  border-radius: 4px;
  margin-bottom: 15px;
}
.cta-parent h3 { margin-top: 0; font-size: 1.35rem; color: var(--primary-color); }
.cta-parent p { font-size: 0.95rem; margin-bottom: 25px; }

/* 体験授業ボタン（2段構成） */
.cta-trial-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 32px;
  background: var(--accent-yellow);
  color: #333;
  text-decoration: none;
  font-weight: bold;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(248,181,0,0.3);
  transition: .2s;
  line-height: 1.3;
}
.cta-trial-btn i { font-size: 1.2rem; margin-bottom: 4px; }
.btn-text-main { font-size: 0.85rem; display: block; font-weight: normal; }
.btn-text-sub { font-size: 1.15rem; display: block; }
.cta-trial-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(248,181,0,0.4); }

/* ページャー */
.nengo-pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  font-weight: bold;
  gap: 10px;
  font-size: 0.95rem;
}
.nengo-pager a { color: var(--secondary-color); text-decoration: none; transition: 0.2s; white-space: nowrap; }
.nengo-pager a:hover { text-decoration: underline; }

/* フッター */
.site-footer {
  text-align: center;
  font-size: .85rem;
  padding: 40px 0;
  background: #eee;
  margin-top: 40px;
}

/* =========================================
   5. スマホ用
   ========================================= */
@media (max-width: 900px) {
  .headC { display: block; }
  .headB {
    display: none;
    width: 100%;
    order: 10;
    background: var(--primary-color);
  }
  .headB.is-open { display: block; }
  .headB ul { flex-direction: column; padding: 10px 0; gap: 0; }
  .headB li { border-bottom: 1px solid rgba(255,255,255,.15); }
  .headB a { display: block; padding: 15px 10px; font-size: 1rem; }
}

@media (max-width: 480px) {
  main { padding-top: calc(var(--header-h) + 20px); }
  .nengo-content { padding: 25px 15px; }
  .cta-student, .cta-parent { padding: 25px 15px; }
  
  /* ページャーを横並びに維持 */
  .nengo-pager { 
    font-size: 0.75rem; 
    gap: 5px;
    letter-spacing: -0.5px;
  }

  .cta-line-btn, .cta-trial-btn { 
    width: 100%; 
    border-radius: 12px; /* スマホでは少し角を立たせて押しやすく */
  }
}