/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #1a3a6b;
  --primary-light: #2c5aa0;
  --accent: #f07040;
  --accent-hover: #e05a28;
  --gold: #c9a84c;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --text-dark: #2c2c2c;
  --text-mid: #555555;
  --text-light: #777777;
  --border: #e0e0e0;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --radius: 8px;
  --max-width: 1100px;
  --header-height: 70px;
}

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

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  color: var(--text-dark);
  line-height: 1.8;
  background: var(--bg-white);
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color 0.3s;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== UTILITY ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section--gray {
  background: var(--bg-light);
}

.section-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 48px;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(232,73,29,0.3);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

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

.btn--line {
  background: #06c755;
  color: #fff;
}

.btn--line:hover {
  background: #05b04b;
  color: #fff;
  transform: translateY(-2px);
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255,255,255,0.97);
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header__logo {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.header__logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.header__logo span {
  color: var(--accent);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.header__nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}

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

.header__cta {
  padding: 10px 24px;
  font-size: 0.85rem;
}

/* Mobile menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  transition: 0.3s;
}

/* ===== HERO ===== */
.hero {
  margin-top: var(--header-height);
  padding: 130px 0 110px;
background: linear-gradient(135deg, #1a3a6b 0%, #2c5aa0 5%, #1a3a6b 60%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* ヒーロー背景パーティクル */
.hero__bg-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero__bg-particles::before,
.hero__bg-particles::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  animation: hero-float 8s ease-in-out infinite;
}
.hero__bg-particles::before {
  width: 500px;
  height: 500px;
  top: -120px;
  right: -100px;
  animation-delay: 0s;
}
.hero__bg-particles::after {
  width: 320px;
  height: 320px;
  bottom: -80px;
  left: -60px;
  animation-delay: 4s;
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.04); }
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}

.hero__badge {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero__title {
  font-size: 2.9rem;
  font-weight: 900;
  line-height: 1.45;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

/* タイトル行アニメーション */
.hero__title-line {
  display: block;
  opacity: 0;
  transform: translateY(28px);
  animation: hero-title-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero__title-line--1 {
  animation-delay: 0.1s;
}
.hero__title-line--2 {
  animation-delay: 0.35s;
  font-size: 1.08em;
  background: linear-gradient(90deg, #fff 0%, #ffd97a 60%, #ffb347 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@keyframes hero-title-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* サブテキストアニメーション */
.hero__subtitle--anim {
  opacity: 0;
  color: rgba(255, 255, 255, 0);
  transform: translateY(20px);
  animation: hero-subtitle-fade 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.65s forwards;
}

@keyframes hero-subtitle-fade {
  from {
    opacity: 0;
    color: rgba(255, 255, 255, 0);
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    color: #ffffff;
    transform: translateY(0);
  }
}

/* ボタンアニメーション */
.hero__buttons--anim {
  opacity: 0;
  transform: translateY(20px);
  animation: hero-title-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.9s forwards;
}

.hero__subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== PROBLEMS ===== */
.problems__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.problem-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow);
}

.problem-card__icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.problem-card__text {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.7;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* 6列に細分化 */
  gap: 32px;
}

.features__grid .feature-card {
  grid-column: span 2; /* 基本は2列分（6分の2＝3分の1サイズ） */
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s;
}

/* 4番目のカード：2列目から4列目の手前まで（中央寄り） */
.features__grid .feature-card:nth-child(4) {
  grid-column: 2 / 4;
}

/* 5番目のカード：4列目から6列目の手前まで（中央寄り） */
.features__grid .feature-card:nth-child(5) {
  grid-column: 4 / 6;
}

/* タブレット・スマホ用のレスポンシブ対応 */
@media (max-width: 1024px) {
  .features__grid {
    grid-template-columns: repeat(4, 1fr); /* 4列に変更 */
  }
  .features__grid .feature-card:nth-child(4) {
    grid-column: 1 / 3;
  }
  .features__grid .feature-card:nth-child(5) {
    grid-column: 2 / 4; /* 下段1枚を中央に */
  }
}

@media (max-width: 768px) {
  .features__grid {
    grid-template-columns: 1fr; /* 1列に変更 */
  }
  .features__grid .feature-card {
    grid-column: auto !important;
  }
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-card__number {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 16px;
}

.feature-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  min-height: calc(1.15rem * 1.5 * 2); /* 2行分の高さを確保 */
  line-height: 1.5;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.feature-card__desc {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ===== RESULTS ===== */
.results__highlight {
  text-align: center;
  margin-bottom: 48px;
}

.results__number {
  font-size: 8rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 24px rgba(26,58,107,0.12);
}

.results__label {
  font-size: 1.1rem;
  color: var(--text-mid);
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.testimonial-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
}

.testimonial-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.testimonial-card__name {
  font-weight: 700;
  font-size: 0.95rem;
}

.testimonial-card__info {
  font-size: 0.8rem;
  color: var(--text-light);
}

.testimonial-card__text {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ===== PRICING ===== */
.pricing__table {
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 24px;
  border: 2px solid var(--border);
}

.pricing-card--featured {
  border-color: var(--accent);
}

.pricing-card__header {
  background: var(--primary);
  color: #fff;
  padding: 20px 28px;
  text-align: center;
}

.pricing-card--featured .pricing-card__header {
  background: var(--accent);
}

.pricing-card__name {
  font-size: 1.2rem;
  font-weight: 700;
}

.pricing-card__body {
  padding: 28px;
  text-align: center;
}

.pricing-card__price {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 8px;
}

.pricing-card__unit {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.pricing-card__features {
  list-style: none;
  text-align: left;
  margin-bottom: 24px;
}

.pricing-card__features li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-mid);
}

.pricing-card__features li::before {
  content: '✓ ';
  color: var(--accent);
  font-weight: 700;
}

/* ===== TEACHERS ===== */
.teachers__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.teacher-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  text-align: center;
}

.teacher-card__photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
}

.teacher-card__name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.teacher-card__uni {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

.teacher-card__msg {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ===== FAQ ===== */
.faq__list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item__question {
  padding: 20px 0;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item__question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--primary);
  transition: transform 0.3s;
}

.faq-item.active .faq-item__question::after {
  content: '−';
}

.faq-item__answer {
  padding: 0 0 20px;
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.7;
  display: none;
}

.faq-item.active .faq-item__answer {
  display: block;
}

/* ===== MESSAGE ===== */
.message__content {
  display: flex;
  gap: 40px;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

.message__photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 2.5rem;
}

.message__text {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.8;
}

.message__name {
  font-weight: 700;
  color: var(--primary);
  margin-top: 12px;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  text-align: center;
  color: #fff;
}

.cta-section__title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-section__text {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 32px;
}

.cta-section .btn {
  margin: 0 8px;
}

@media (max-width: 768px) {
  .cta-section .btn {
    display: block;
    width: min(100%, 320px);
    box-sizing: border-box;
    margin: 12px auto 0;
  }
}


/* ===== FOOTER ===== */
.footer {
  background: #1a1a2e;
  color: #ccc;
  padding: 48px 0 24px;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer__col-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: 8px;
}

.footer__links a {
  color: #aaa;
  font-size: 0.85rem;
}

.footer__links a:hover {
  color: #fff;
}

.footer__bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid #333;
  font-size: 0.8rem;
  color: #888;
}

/* ===== PAGE HEADER ===== */
.page-header {
  margin-top: var(--header-height);
  padding: 80px 0 60px;
background: radial-gradient(ellipse at center, #2c5aa0 5%, #1a3a6b 60%) !important;
  text-align: center;
  color: #fff;
  min-height: 200px;
  display: flex;
  align-items: center;
}

.page-header__title {
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.page-header__breadcrumb {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 8px;
}

/* ===== CONTACT FORM ===== */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.form-group label .required {
  color: var(--accent);
  font-size: 0.8rem;
  margin-left: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-light);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* ===== BLOG LIST ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.blog-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s;
}

.blog-card:hover {
  transform: translateY(-4px);
}

.blog-card__thumb {
  height: 180px;
  background: linear-gradient(135deg, #e8e8e8, #d0d0d0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.9rem;
}

.blog-card__body {
  padding: 20px;
}

.blog-card__date {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.blog-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.5;
}

.blog-card__excerpt {
  font-size: 0.85rem !important;
  color: var(--text-mid) !important;
}


/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header__nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  .header__nav.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .hero__title {
    font-size: 1.75rem;
  }

  .hero {
    padding: 80px 0 70px;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .message__content {
    flex-direction: column;
    text-align: center;
  }

  .results__number {
    font-size: 5rem;
  }

  .hero__buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* ===== FADE-IN ANIMATION ===== */
.fade-in {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.fade-in--left {
  transform: translateX(-40px);
}

.fade-in.fade-in--right {
  transform: translateX(40px);
}

.fade-in.fade-in--scale {
  transform: scale(0.92);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Staggered delay for child elements */
.fade-in-group .fade-in:nth-child(1) { transition-delay: 0s; }
.fade-in-group .fade-in:nth-child(2) { transition-delay: 0.12s; }
.fade-in-group .fade-in:nth-child(3) { transition-delay: 0.24s; }
.fade-in-group .fade-in:nth-child(4) { transition-delay: 0.36s; }
.fade-in-group .fade-in:nth-child(5) { transition-delay: 0.48s; }
.fade-in-group .fade-in:nth-child(6) { transition-delay: 0.60s; }

/* Section title fade */
.section-title.fade-in,
.section-subtitle.fade-in {
  transition-delay: 0s;
}

/* ===== STICKY CTA BAR ===== */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: rgba(26, 26, 46, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 -2px 16px rgba(0,0,0,0.18);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sticky-cta.is-visible {
  transform: translateY(0);
}

.sticky-cta__text {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.sticky-cta__text strong {
  color: var(--gold);
}

.sticky-cta .btn {
  padding: 10px 22px;
  font-size: 0.82rem;
  white-space: nowrap;
}

.sticky-cta__close {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #aaa;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 6px;
  transition: color 0.2s;
}

.sticky-cta__close:hover {
  color: #fff;
}

/* Add bottom padding to body when sticky bar is visible */
body.sticky-cta-active {
  padding-bottom: 64px;
}

@media (max-width: 600px) {
  .sticky-cta {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 10px 16px 12px;
  }
  .sticky-cta__text {
    width: 100%;
    padding-right: 28px;
    box-sizing: border-box;
    font-size: 0.78rem;
    text-align: left;
  }
  .sticky-cta .btn {
    width: 100%;
    flex: 0 0 auto;
    box-sizing: border-box;
    text-align: center;
    padding: 9px 12px;
    font-size: 0.78rem;
  }
  .sticky-cta__close {
    top: 10px;
    transform: none;
  }
  body.sticky-cta-active {
    padding-bottom: 150px;
  }
}


/* Teachers Page Styles */
.teachers__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.teacher-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 25px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.teacher-card:hover {
  transform: translateY(-5px);
}

.teacher-card__photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 15px;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
}

.teacher-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teacher-card__info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.teacher-card__name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.teacher-card__title {
  font-size: 0.9rem;
  color: var(--text-mid);
  margin-bottom: 15px;
}

.teacher-card__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.teacher-tag {
  background: transparent;
  color: var(--primary);
  font-size: 0.75rem;
  padding: 5px 10px;
  border-radius: 5px;
  white-space: nowrap;
  border: 1px solid var(--primary);
  transition: all 0.3s ease;
}

.teacher-tag:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.teacher-card__comment {
  font-size: 0.9rem;
  color: var(--text-body);
  margin-top: 10px;
  margin-bottom: 15px;
  line-height: 1.5;
}

.teacher-card__msg {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-top: 15px;
}

/* Teacher Detail Page Styles */
.teacher-detail__header {
  text-align: center;
  margin-bottom: 40px;
}

.teacher-detail__photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  background: #eee;
}

.teacher-detail__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teacher-detail__name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.teacher-detail__title {
  font-size: 1.1rem;
  color: var(--text-mid);
  margin-bottom: 20px;
}

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

.teacher-detail__section {
  margin-bottom: 40px;
}

.teacher-detail__section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.teacher-detail__content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: 15px;
}

.teacher-detail__content ul {
  list-style: disc;
  margin-left: 20px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-body);
}

.teacher-detail__content li {
  margin-bottom: 5px;
}

/* Problems Section Background */
.section--problems {
  background-color: #e0f7fa; /* 薄い水色 */
}

.principal-img {
  width: 150px;
  height: 250x;
  object-fit: cover;   /* 画像の縦横比を崩さずに収める */
  border-radius: 50%;  /* 正円にする */
  margin: 0 auto 15px; /* 中央寄せ＆下に余白 */
  display: block;
}

/* 講師詳細ページのプロフィールを中央寄せにする */
.teacher-detail__main-info {
  flex-direction: column; /* 縦並びにする */
  align-items: center;    /* 中央寄せにする */
  text-align: center;     /* テキストも中央寄せ */
  gap: 20px;
}

.teacher-detail__photo-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.teacher-detail__photo-wrapper img {
  max-width: 500px; /* 画像の大きさを調整（お好みで変更してください） */
  height: auto;
  border-radius: 8px; /* 少し角を丸くして柔らかい印象に */
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* 軽い影をつけて立体感を出します */
}

.teacher-detail__tags {
  justify-content: center; /* タグも中央に並べる */
}


/* 塾長メッセージ（横並びレイアウト） */
.principal-profile-horizontal {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.principal-profile-horizontal__image {
  flex-shrink: 0;
  width: 220px; /* 画像の横幅 */
}

.principal-img-rect {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.principal-profile-horizontal__body {
  flex: 1;
}

.principal-profile-horizontal__name {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 5px;
  font-weight: 700;
  text-align: left;
}

.principal-profile-horizontal__title {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 20px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
  padding-bottom: 5px;
  text-align: left;
}

.principal-profile-horizontal__content {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-mid);
  text-align: left;
}

/* スマホ表示では縦並びに戻す */
@media (max-width: 768px) {
  .principal-profile-horizontal {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
  }
  .principal-profile-horizontal__image {
    width: 180px;
    margin-bottom: 20px;
  }
  .principal-profile-horizontal__name,
  .principal-profile-horizontal__title,
  .principal-profile-horizontal__content {
    text-align: center;
  }
}


/* WordPress お問い合わせフォームのカスタマイズ */
.wpcf7-form {
  max-width: 600px;
  margin: 0 auto;
}

.wpcf7-form-control-wrap {
  display: block;
  margin-bottom: 20px;
}

.wpcf7-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
  background-color: #fff;
}

.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(26, 58, 107, 0.1);
}

.wpcf7-form textarea {
  min-height: 150px;
}

/* 送信ボタンのスタイル */
.wpcf7-submit {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--accent) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 50px !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 20px;
}

.wpcf7-submit:hover {
  background: var(--accent-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(232, 73, 29, 0.3);
}

/* 必須項目のラベル */
.required-mark {
  background: #e8491d;
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: middle;
}

.equipment-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.equipment-list li {
  list-style-type: none !important;
  margin-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-mid);
}

.blog-card__author {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 12px 0 !important;
}

.blog-card__author-img {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
}

.blog-card__author {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 12px 0 0 !important;
  justify-content: space-between;
}

.blog-card__content {
  padding-left: 0.5em !important;
  padding-right: 0.5em !important;
}

/* ===== AUTHOR CARD ===== */
.single-author-card {
  display: block;
  background: #f5f7fa;
  border: 1px solid #dde3ed;
  border-radius: 12px;
  padding: 28px 32px;
  margin: 48px 0 32px;
  text-decoration: none;
  color: inherit;
}
.single-author-card a {
  display: flex;
  align-items: center;
  gap: 24px;
  text-decoration: none;
  color: inherit;
}
.single-author-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .teacher-detail__photo-wrapper img {
    width: 240px !important;
    max-width: calc(100vw - 64px) !important;
    height: auto !important;
  }
}

}

.about-philosophy {
  max-width: 960px;
  margin: 0 auto;
  padding: 60px clamp(24px, 6vw, 72px);
  box-sizing: border-box;
  background: linear-gradient(135deg, #f7f9fc 0%, #edf3fb 100%);
  border-top: 4px solid #c8a84b;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(26, 58, 107, 0.08);
}

.about-philosophy__eyebrow {
  margin: 0 0 14px;
  color: #c8a84b;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-align: center;
}

.about-philosophy__title {
  margin: 0 0 40px;
  color: #1a3a6b;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.55;
  letter-spacing: 0.04em;
  text-align: center;
}

.about-philosophy__title span {
  display: block;
}

.about-philosophy__title strong {
  background: linear-gradient(90deg, #ead58d 0%, #d9b754 55%, #b8860b 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
color: transparent;
font-weight: inherit;
text-shadow: 0 1px 1px rgba(26, 58, 107, 0.12);


.about-philosophy__text {
  max-width: 720px;
  margin: 0 auto;
}

.about-philosophy__text p {
  margin: 0 0 22px;
  color: var(--text-mid);
  font-size: 1rem;
  line-height: 2;
  text-align: left;
}

.about-philosophy__text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .about-philosophy {
    padding: 42px 24px;
  }

  .about-philosophy__title {
    margin-bottom: 28px;
    font-size: 1.8rem;
  }

  .about-philosophy__text p {
    font-size: 0.95rem;
    line-height: 1.9;
  }
}
	
@media (max-width: 768px) {
  .comparison-table {
    width: 100%;
    table-layout: fixed;
    font-size: 0.78rem !important;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.5rem 0.35rem !important;
    line-height: 1.45;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .comparison-table th {
    font-size: 0.72rem;
  }

  .comparison-table th:first-child,
  .comparison-table td:first-child {
    width: 30%;
    text-align: left !important;
  }

  .comparison-table th:not(:first-child),
  .comparison-table td:not(:first-child) {
    width: 23.33%;
  }
}

.comparison-mobile {
  display: none;
}

@media (max-width: 768px) {
  .comparison-desktop {
    display: none;
  }

  .comparison-mobile {
    display: grid;
    gap: 16px;
    margin-top: 32px;
  }

  .comparison-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #dde3ed;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(26, 58, 107, 0.08);
  }

  .comparison-card h3 {
    margin: 0;
    padding: 14px 16px;
    background: #1a3a6b;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 900;
    line-height: 1.5;
  }

  .comparison-card__row {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 12px 16px;
    border-top: 1px solid #e7ebf1;
    color: #5f6773;
    font-size: 0.86rem;
    line-height: 1.55;
  }

  .comparison-card__row span {
    color: #6c7480;
    font-size: 0.78rem;
    font-weight: 700;
  }

  .comparison-card__row strong {
    color: #4d5663;
    font-weight: 700;
    overflow-wrap: anywhere;
  }

  .comparison-card__row--jouon {
    background: #fff9e8;
    border-left: 4px solid #c8a84b;
    padding-left: 12px;
  }

  .comparison-card__row--jouon span,
  .comparison-card__row--jouon strong {
    color: #a4770a;
  }
	}