/* =====================
   基本リセット・共通
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: #333;
  background: #fff;
  font-size: 15px;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =====================
   ヘッダー
===================== */
.header {
  background: #fff;
  border-bottom: 2px solid #E8F4FF;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-top {
  background: #0057A8;
  color: #fff;
  font-size: 12px;
  padding: 6px 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}

.header-top a {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 3px 12px;
  border-radius: 3px;
  font-size: 12px;
}

.header-top a:hover {
  background: rgba(255, 255, 255, 0.2);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: #0057A8;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  font-family: 'Noto Serif JP', serif;
}

.logo-text .classroom {
  font-size: 19px;
  font-weight: 700;
  color: #0057A8;
}

.logo-text .sub {
  font-size: 11px;
  color: #666;
}

.header-contact {
  text-align: right;
}

.tel-link {
  font-size: 22px;
  font-weight: 700;
  color: #0057A8;
  letter-spacing: 0.5px;
  text-decoration: none;
  display: block;
}

.tel-link:hover {
  opacity: 0.75;
}

.tel-note {
  font-size: 11px;
  color: #888;
  margin-top: 2px;
}

/* =====================
   ナビゲーション
===================== */
nav {
  background: #0057A8;
}

nav ul {
  list-style: none;
  display: flex;
  max-width: 1100px;
  margin: 0 auto;
}

nav ul li a {
  display: block;
  color: #fff;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s;
  white-space: nowrap;
  cursor: pointer;
}

nav ul li a:hover {
  background: rgba(0, 0, 0, 0.15);
}

/* =====================
   ヒーロー
===================== */
.hero {
  background: #EEF5FF;
  padding: 50px 20px;
  text-align: center;
  border-bottom: 3px solid #0057A8;
}

.hero-badge {
  display: inline-block;
  background: #FF6B35;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.hero h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: 26px;
  color: #0057A8;
  line-height: 1.6;
  margin-bottom: 12px;
}

.hero p {
  font-size: 15px;
  color: #555;
  margin-bottom: 28px;
  line-height: 1.8;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* =====================
   ボタン
===================== */
.btn-primary {
  background: #FF6B35;
  color: #fff;
  padding: 14px 32px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-primary:hover {
  opacity: 0.85;
}

.btn-secondary {
  background: #fff;
  color: #0057A8;
  padding: 13px 32px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  border: 2px solid #0057A8;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: #0057A8;
  color: #fff;
}

/* =====================
   セクション共通
===================== */
section {
  padding: 52px 20px;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 36px;
}

.section-title h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: 22px;
  color: #0057A8;
  margin-bottom: 8px;
}

.section-title p {
  font-size: 14px;
  color: #777;
}

.section-title .line {
  width: 50px;
  height: 3px;
  background: #FF6B35;
  margin: 10px auto 0;
  border-radius: 2px;
}

/* =====================
   3つの特長
===================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: #fff;
  border: 1px solid #D5E8FF;
  border-top: 4px solid #0057A8;
  border-radius: 4px;
  padding: 24px 20px;
  text-align: center;
}

.feature-num {
  font-size: 28px;
  font-weight: 700;
  color: #0057A8;
  font-family: 'Noto Serif JP', serif;
  margin-bottom: 10px;
}

.feature-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.5;
}

.feature-card p {
  font-size: 13px;
  color: #666;
  line-height: 1.8;
}

/* =====================
   学習コース
===================== */
.courses-section {
  background: #F0F7FF;
}

.course-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.course-tab {
  padding: 8px 24px;
  border: 2px solid #0057A8;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  color: #0057A8;
  cursor: pointer;
  background: #fff;
  transition: all 0.2s;
}

.course-tab.active,
.course-tab:hover {
  background: #0057A8;
  color: #fff;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.course-item {
  background: #fff;
  border: 1px solid #D5E8FF;
  border-radius: 6px;
  padding: 18px 14px;
  text-align: center;
}

.course-item .icon {
  font-size: 30px;
  margin-bottom: 8px;
}

.course-item h4 {
  font-size: 14px;
  font-weight: 700;
  color: #0057A8;
  margin-bottom: 5px;
}

.course-item p {
  font-size: 12px;
  color: #777;
  line-height: 1.6;
}

/* =====================
   月謝
===================== */
.price-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.price-card {
  border: 2px solid #0057A8;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
}

.price-head {
  background: #0057A8;
  color: #fff;
  padding: 14px;
}

.price-head h3 {
  font-size: 15px;
  font-weight: 700;
}

.price-subjects {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

.subject-badge {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 3px;
  padding: 2px 8px;
  font-size: 12px;
}

.price-body {
  padding: 20px;
}

.price-amount {
  font-size: 30px;
  font-weight: 700;
  color: #0057A8;
}

.price-amount span {
  font-size: 18px;
}

.price-unit {
  font-size: 14px;
  color: #888;
  margin-top: 4px;
}

.price-notes {
  text-align: center;
  margin-top: 16px;
  font-size: 12px;
  color: #888;
  line-height: 1.9;
}

.price-date-badge {
  display: inline-block;
  background: #FFF3E0;
  color: #E65100;
  border: 1px solid #FFCC80;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  margin-bottom: 10px;
}

.price-date-wrap {
  text-align: center;
  margin-bottom: 20px;
}

/* =====================
   入会の流れ
===================== */
.flow-section {
  background: #F8FAFF;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.flow-step {
  text-align: center;
  padding: 0 10px;
  position: relative;
}

.flow-step:not(:last-child)::after {
  content: '▶';
  position: absolute;
  right: -6px;
  top: 28px;
  color: #0057A8;
  font-size: 16px;
}

.step-circle {
  width: 56px;
  height: 56px;
  background: #0057A8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto 12px;
}

.flow-step h4 {
  font-size: 13px;
  font-weight: 700;
  color: #333;
  margin-bottom: 6px;
}

.flow-step p {
  font-size: 11px;
  color: #888;
  line-height: 1.7;
}

/* =====================
   よくあるご質問
===================== */
.faq-list {
  list-style: none;
}

.faq-item {
  border-bottom: 1px solid #E0EAFF;
}

.faq-q {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  cursor: pointer;
}

.faq-q-mark {
  background: #0057A8;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq-q-text {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  padding-top: 3px;
  flex: 1;
}

.faq-q-arrow {
  color: #0057A8;
  font-size: 18px;
  flex-shrink: 0;
  transition: transform 0.2s;
  padding-top: 3px;
}

.faq-a {
  display: none;
  padding: 0 0 16px 38px;
  font-size: 13px;
  color: #555;
  line-height: 1.9;
}

.faq-item.open .faq-a {
  display: block;
}

.faq-item.open .faq-q-arrow {
  transform: rotate(180deg);
}

/* =====================
   お問い合わせ
===================== */
.contact-section {
  background: #0057A8;
  color: #fff;
  text-align: center;
  padding: 52px 20px;
}

.contact-section h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: 26px;
  font-weight: 700;
  color: #FFE066;
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}

.contact-section p {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 28px;
}

.contact-tel-link {
  display: inline-block;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 8px;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s;
}

.contact-tel-link:hover {
  opacity: 0.8;
}

.contact-tel-note {
  font-size: 12px;
  opacity: 0.7;
  margin-bottom: 24px;
}

/* =====================
   フッター
===================== */
footer {
  background: #1a1a2e;
  color: #aaa;
  padding: 32px 20px 20px;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-bottom: 20px;
}

.footer-links a {
  font-size: 13px;
  color: #bbb;
  cursor: pointer;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 16px;
  font-size: 12px;
  color: #666;
}

.footer-bottom a {
  color: #888;
}

/* =====================
   レスポンシブ
===================== */
@media (max-width: 700px) {
  .header-main {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  nav ul {
    flex-wrap: wrap;
  }

  nav ul li a {
    padding: 10px 12px;
    font-size: 12px;
  }

  .hero h1 {
    font-size: 20px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .price-grid {
    grid-template-columns: 1fr;
  }

  .flow-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-step:nth-child(2)::after {
    content: none;
  }

  .contact-tel-link {
    font-size: 24px;
  }
}
