/* ============================================================
   個別指導EA  main.css
   テーマ：白基調 × 赤・青・オレンジのアクセントカラー
   フォント：Noto Sans JP（やや丸みのある読みやすいゴシック体）
   ============================================================ */

/* ===== Google Fonts インポート ===== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&family=M+PLUS+Rounded+1c:wght@400;500;700;800&display=swap');

/* ===== CSS変数（カラーパレット） ===== */
:root {
  /* テーマカラー */
  --red:        #e63232;
  --red-lt:     #fdeaea;
  --blue:       #2563b0;
  --blue-lt:    #e8f0fb;
  --orange:     #f07820;
  --orange-lt:  #fef0e4;

  /* ベースカラー */
  --white:      #ffffff;
  --bg:         #f8f9fc;
  --bg-soft:    #f0f4f8;
  --text:       #1a1a2a;
  --muted:      #5a6478;
  --border:     #e2e8f0;

  /* 装飾丸（ヒーロー背景など） */
  --circle-red:    rgba(230, 50, 50,  0.13);
  --circle-blue:   rgba(37, 99, 176,  0.11);
  --circle-orange: rgba(240, 120, 32, 0.13);

  /* タイポグラフィ */
  --font-round:  'M PLUS Rounded 1c', 'Noto Sans JP', sans-serif;
  --font-body:   'Noto Sans JP', sans-serif;

  /* シェイプ */
  --radius-sm:  8px;
  --radius:     14px;
  --radius-lg:  24px;
  --shadow:     0 4px 20px rgba(37, 99, 176, 0.10);
  --shadow-md:  0 8px 32px rgba(37, 99, 176, 0.14);
}

/* ===== リセット ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--blue);
  text-decoration: none;
  transition: opacity 0.2s;
}
a:hover { opacity: 0.75; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== ヘッダー ===== */
header {
  background: var(--white);
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--red) 0%, var(--blue) 50%, var(--orange) 100%) 1;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

/* ロゴ */
.logo {
  font-family: var(--font-round);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-circles {
  display: flex;
  gap: 4px;
  align-items: center;
}
.logo-circle {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.logo-circle.r { background: var(--red); }
.logo-circle.b { background: var(--blue); }
.logo-circle.o { background: var(--orange); }
.logo-text-main { color: var(--blue); }
.logo-text-sub   { color: var(--text); font-size: 1rem; font-weight: 700; }

/* ハンバーガー */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--text);
  border-radius: 99px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ナビ */
nav ul {
  display: flex;
  gap: 2px;
}
nav ul li a {
  font-family: var(--font-round);
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--muted);
  padding: 8px 11px;
  border-radius: 99px;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}
nav ul li a:hover { background: var(--blue-lt); color: var(--blue); opacity: 1; }
nav ul li a.active { background: var(--blue); color: var(--white); }

/* ===== ヒーロー ===== */
.hero {
  background: var(--white);
  padding: 80px 24px 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* 背景装飾丸 */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero::before {
  width: 420px; height: 420px;
  background: var(--circle-blue);
  top: -100px; right: -80px;
}
.hero::after {
  width: 300px; height: 300px;
  background: var(--circle-red);
  bottom: -80px; left: -60px;
}
.hero-circle-orange {
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: var(--circle-orange);
  bottom: 40px; right: 10%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}
.hero-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}
.hero-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  display: inline-block;
}
.hero-dot.r { background: var(--red); }
.hero-dot.b { background: var(--blue); }
.hero-dot.o { background: var(--orange); }

.hero-badge {
  display: inline-block;
  background: var(--blue-lt);
  color: var(--blue);
  font-family: var(--font-round);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 18px;
  border-radius: 99px;
  margin-bottom: 22px;
  border: 1.5px solid rgba(37,99,176,0.15);
}
.hero h2 {
  font-family: var(--font-round);
  font-size: clamp(1.75rem, 5vw, 2.7rem);
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 18px;
  color: var(--text);
}
.hero h2 .accent-red    { color: var(--red); }
.hero h2 .accent-blue   { color: var(--blue); }
.hero h2 .accent-orange { color: var(--orange); }

.hero-lead {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 38px;
  line-height: 2;
}
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== ボタン ===== */
.btn {
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.18s, box-shadow 0.18s, opacity 0.18s;
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-2px); opacity: 1; }

.btn-line {
  background: #06c755;
  color: var(--white);
  box-shadow: 0 4px 16px rgba(6,199,85,0.35);
}
.btn-line:hover { box-shadow: 0 6px 24px rgba(6,199,85,0.45); color: var(--white); }

.btn-blue {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(37,99,176,0.30);
}
.btn-blue:hover { box-shadow: 0 6px 24px rgba(37,99,176,0.40); color: var(--white); }

.btn-orange {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(240,120,32,0.30);
}
.btn-orange:hover { box-shadow: 0 6px 24px rgba(240,120,32,0.40); color: var(--white); }

.btn-outline {
  background: var(--white);
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-outline:hover { background: var(--blue-lt); }

/* ===== お知らせバー ===== */
.news-bar {
  max-width: 1100px;
  margin: 0 auto 0;
  padding: 0 24px;
}
.news-bar-inner {
  background: var(--orange-lt);
  border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
}
.news-label {
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-round);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 99px;
  white-space: nowrap;
  margin-top: 1px;
}

/* ===== セクション共通 ===== */
section { padding: 72px 24px; }
.section-inner { max-width: 1100px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 48px; }
.section-title {
  font-family: var(--font-round);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}
.section-sub {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 6px;
}

/* 3色の丸ドット区切り */
.dot-divider {
  display: flex;
  gap: 7px;
  justify-content: center;
  margin: 12px auto 0;
}
.dot-divider span {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.dot-divider .r { background: var(--red); }
.dot-divider .b { background: var(--blue); }
.dot-divider .o { background: var(--orange); }

/* ===== 特徴カード ===== */
.features { background: var(--bg); }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 26px;
  border: 2px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: -18px; right: -18px;
  width: 64px; height: 64px;
  border-radius: 50%;
  opacity: 0.18;
  transition: transform 0.3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card:hover::before { transform: scale(1.3); }

/* カードカラーバリエーション */
.card.card-red   { border-top: 4px solid var(--red); }
.card.card-blue  { border-top: 4px solid var(--blue); }
.card.card-orange{ border-top: 4px solid var(--orange); }
.card.card-red::before   { background: var(--red); }
.card.card-blue::before  { background: var(--blue); }
.card.card-orange::before{ background: var(--orange); }

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
  line-height: 1;
}
.card h3 {
  font-family: var(--font-round);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.95;
}

/* ===== 在籍校 ===== */
.schools { background: var(--white); }
.school-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.school-tag {
  font-family: var(--font-round);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 9px 22px;
  border-radius: 99px;
  border: 2px solid transparent;
  transition: transform 0.15s;
}
.school-tag:hover { transform: scale(1.04); }
.school-tag.t-red    { background: var(--red-lt);    color: var(--red);    border-color: rgba(230,50,50,0.25); }
.school-tag.t-blue   { background: var(--blue-lt);   color: var(--blue);   border-color: rgba(37,99,176,0.25); }
.school-tag.t-orange { background: var(--orange-lt); color: var(--orange); border-color: rgba(240,120,32,0.25); }

/* ===== お問い合わせ ===== */
.contact { background: var(--bg); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}
.contact-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
}
.contact-item .c-label {
  font-family: var(--font-round);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  display: block;
}
.contact-item.ci-red    .c-label { color: var(--red); }
.contact-item.ci-blue   .c-label { color: var(--blue); }
.contact-item.ci-orange .c-label { color: var(--orange); }
.contact-item a {
  font-family: var(--font-round);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.contact-item a:hover { opacity: 0.7; }
.contact-item small {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--muted);
}
.contact-cta { text-align: center; }

/* LINEボタン専用 */
.btn-line svg {
  width: 22px; height: 22px;
  fill: var(--white);
  flex-shrink: 0;
}

/* ===== フッター ===== */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.5);
  padding: 36px 24px 24px;
  text-align: center;
}
footer .footer-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}
footer .footer-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
}
footer nav ul {
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
footer nav ul li a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  padding: 5px 10px;
  border-radius: 99px;
}
footer nav ul li a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
  opacity: 1;
}
footer .copyright {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
  /* ハンバーガー表示 */
  .hamburger { display: flex; }

  nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 12px 16px 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  }
  nav.open { display: block; }
  nav ul { flex-direction: column; gap: 4px; }
  nav ul li a {
    display: block;
    padding: 12px 16px;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
  }

  /* セクションの余白を縮小 */
  section { padding: 52px 20px; }
  .hero  { padding: 56px 20px 70px; }

  /* ヒーロー装飾丸のサイズを縮小 */
  .hero::before { width: 240px; height: 240px; top: -60px; right: -40px; }
  .hero::after  { width: 180px; height: 180px; bottom: -50px; left: -40px; }
  .hero-circle-orange { width: 120px; height: 120px; }

  /* お知らせバー */
  .news-bar-inner { flex-direction: column; gap: 8px; }

  /* カードをシングルカラムに */
  .cards { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero h2 { font-size: 1.5rem; }
  .btn { font-size: 0.9rem; padding: 12px 24px; }
  .logo { font-size: 1.1rem; }
}