/* Box-sizing reset */
*, *::before, *::after {
  box-sizing: border-box;
}

.top-page {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.section-heading {
  text-align: center;
  margin: 0 auto 3rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin: 0;
  font-weight: 700;
  color: var(--dark-color, #1A1E22);
}

.hero {
  background-color: var(--primary-color, #5d020a);
  background-image: var(--hero-bg-image, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding: clamp(4rem, 6vw, 6rem) 1.5rem;
  position: relative;
}

/* 赤色オーバーレイ */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--primary-color, #5d020a);
  opacity: var(--hero-overlay-opacity, 0.85);
  z-index: 0;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: -2rem 10% auto auto;
  width: clamp(200px, 25vw, 320px);
  height: clamp(200px, 25vw, 320px);
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2), transparent 65%);
  pointer-events: none;
  z-index: 1;
}

.hero__inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.hero__lead {
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero-search {
  background: #fff;
  border-radius: 24px;
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: 0 20px 50px rgba(30, 41, 59, 0.18);
  display: grid;
  gap: 1rem;
}

.hero-search__field {
  border: 1px solid rgba(30, 41, 59, 0.18);
  border-radius: 18px;
  display: flex;
  align-items: center;
  padding: 0.5rem;
}

.hero-search__field input {
  flex: 1;
  border: none;
  padding: 0.85rem 1.25rem;
  font-size: 1rem;
  border-radius: 16px;
  outline: none;
}

.hero-search__field button {
  border: none;
  background: var(--dark-color, #1a1e22);
  color: #fff;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.hero-search__field button:hover,
.hero-search__field button:focus {
  transform: scale(1.05);
}

.hero-search__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.hero-search__chips button {
  border: none;
  background: rgba(15, 23, 42, 0.06);
  color: var(--primary-color, #303D49);
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.hero-search__chips button:hover,
.hero-search__chips button:focus {
  background: rgba(93, 2, 10, 0.12);
}

.popular-categories {
  padding: 0 1.5rem;
}

.popular-categories__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.category-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.category-card__thumbnail {
  background: rgba(93, 2, 10, 0.06);
  padding: 0;
  display: block;
  overflow: hidden;
  height: 140px;
}

.category-card__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.category-card__body {
  padding: 2rem;
  display: grid;
  gap: 1rem;
  flex: 1;
}

.category-card__body h3 {
  margin: 0;
  font-size: 1.4rem;
  color: var(--dark-color, #1A1E22);
}

.category-card__body p {
  color: rgba(15, 23, 42, 0.65);
  margin: 0;
}

.category-card__body ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
  font-size: 0.95rem;
}

.category-card__body a {
  text-decoration: none;
  color: rgba(15, 23, 42, 0.85);
  transition: color 0.2s;
}

.category-card__body a:hover,
.category-card__body a:focus {
  color: var(--primary-color, #5d020a);
}

.category-card__placeholder {
  color: rgba(15, 23, 42, 0.45);
}

.category-card__more {
  margin-top: auto;
  justify-self: flex-start;
  color: var(--primary-color, #5d020a);
  font-weight: 600;
  text-decoration: none;
}

/* ========================================
   おすすめのスクール3選
   ======================================== */
.featured-schools {
  padding: 0 1.5rem 4rem;
}

.featured-schools__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.featured-schools__card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #E5E7EB;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: all 0.3s;
}

.featured-schools__card:hover {
  box-shadow: 0 8px 24px rgba(93, 2, 10, 0.12);
  transform: translateY(-4px);
}

.featured-schools__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  background: #F9FAFB;
  border-radius: 8px;
  padding: 1rem;
}

.featured-schools__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.featured-schools__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.featured-schools__name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-color, #1A1E22);
  margin: 0;
  line-height: 1.3;
}

.featured-schools__features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.featured-schools__features li {
  position: relative;
  padding-left: 1.5rem;
  color: #4B5563;
  line-height: 1.6;
  font-size: 0.95rem;
}

.featured-schools__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color, #5D020A);
  font-weight: 700;
  font-size: 1.1rem;
}

.featured-schools__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  background: var(--primary-color, #5D020A);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s;
  margin-top: auto;
}

.featured-schools__cta:hover {
  background: #4A0108;
  transform: translateX(4px);
}

.school-search {
  padding: 0 1.5rem;
}

.school-search__panel {
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  border-radius: 24px;
  padding: clamp(2rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-md);
}

.school-search__form {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  max-width: 1200px;
  margin: 0 auto;
  justify-items: stretch;
}

.school-search__field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.school-search__field select,
.school-search__field .postform {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  padding: 0.65rem 1rem;
  font-size: 1rem;
}

.school-search__submit {
  grid-column: 1 / -1;
  text-align: center;
}

.school-search__submit button {
  background: var(--primary-color, #5d020a);
  color: #fff;
  border: none;
  padding: 0.9rem 2.5rem;
  font-size: 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(93, 2, 10, 0.25);
  box-sizing: border-box;
  width: auto;
  max-width: 100%;
}

.school-search__recommend {
  margin-top: 3rem;
  display: grid;
  gap: 1.5rem;
}

.school-card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.school-card {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 20px;
  padding: 1.5rem;
  background: #fff;
  display: grid;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.school-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.school-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(93, 2, 10, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary-color, #5d020a);
}

.school-card__meta {
  display: grid;
  gap: 0.75rem;
}

.school-card__meta div {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 0.75rem;
  align-items: start;
  color: rgba(15, 23, 42, 0.7);
}

.school-card__meta dt {
  font-size: 1.1rem;
}

.school-card__footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: var(--dark-color, #1a1e22);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  box-sizing: border-box;
}

.school-search__more {
  justify-self: center;
  text-decoration: none;
  color: var(--primary-color, #5d020a);
  font-weight: 600;
}

/* ========================================
   Growth Gateとは
   ======================================== */
.about-section {
  padding: 4rem 1.5rem;
  background: linear-gradient(135deg, #F9FAFB 0%, #FFFFFF 100%);
}

.about-section__container {
  max-width: 1200px;
  margin: 0 auto;
}

.about-section__content {
  text-align: center;
}

.about-section__title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--dark-color, #1A1E22);
  margin: 0 0 1.5rem;
}

.about-section__description {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #4B5563;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.about-section__features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.about-section__feature {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #E5E7EB;
  transition: all 0.3s;
}

.about-section__feature:hover {
  box-shadow: 0 8px 24px rgba(93, 2, 10, 0.1);
  transform: translateY(-4px);
}

.about-section__feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  overflow: hidden;
  height: 120px;
  border-radius: 12px;
}

.about-section__feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.about-section__feature h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark-color, #1A1E22);
  margin: 0 0 0.75rem;
}

.about-section__feature p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #6B7280;
  margin: 0;
}

.latest-articles {
  padding: 0 1.5rem 6rem;
}

.latest-articles__header {
  max-width: 1200px;
  margin: 0 auto 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

.latest-articles__header h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #1A1E22;
  margin: 0;
}

.latest-articles__tabs {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.latest-articles__tabs button {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
  background: rgba(15, 23, 42, 0.06);
  color: rgba(15, 23, 42, 0.7);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.latest-articles__tabs button.is-active {
  background: var(--primary-color, #5d020a);
  color: #fff;
  border-color: var(--primary-color, #5d020a);
}

.latest-articles__tabs button:focus-visible {
  outline: 2px solid var(--accent-color, #5d020a);
  outline-offset: 2px;
}

.latest-articles__list {
  max-width: 1200px;
  margin: 0 auto;
}

.latest-articles__panel {
  display: none;
}

.latest-articles__panel.is-active {
  display: block;
}

.article-card-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.article-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 0;
  grid-template-rows: auto 1fr;
}

.article-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.article-card__body {
  padding: 1.75rem;
  display: grid;
  gap: 0.75rem;
}

.article-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: rgba(15, 23, 42, 0.45);
}

.article-card__category {
  background: rgba(93, 2, 10, 0.18);
  color: var(--primary-color, #5d020a);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
}

.article-card__body h3 {
  margin: 0;
  font-size: 1.2rem;
}

.article-card__body h3 a {
  color: #1A1E22;
  text-decoration: none;
  transition: color 0.2s;
}

.article-card__body h3 a:hover {
  color: var(--primary-color, #5d020a);
}

.article-card__body p {
  margin: 0;
  color: rgba(15, 23, 42, 0.65);
}

.article-card__more {
  color: var(--primary-color, #5d020a);
  text-decoration: none;
  font-weight: 600;
}

.article-card__empty {
  text-align: center;
  padding: 2rem;
  color: rgba(15, 23, 42, 0.5);
}

.latest-articles__more {
  text-align: center;
  margin-top: 3rem;
}

.latest-articles__more a {
  border: 1px solid rgba(93, 2, 10, 0.25);
  border-radius: 999px;
  padding: 0.75rem 2.5rem;
  color: var(--primary-color, #5d020a);
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .hero__inner {
    text-align: left;
  }

  .featured-schools__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .top-page {
    gap: 4rem;
  }

  .hero {
    padding: 4rem 1rem;
  }

  .hero-search {
    padding: 1.25rem;
  }

  .hero-search__field button {
    width: 44px;
    height: 44px;
  }

  .school-search__form {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .school-search__form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .hero-search__chips {
    justify-content: flex-start;
  }

  .category-card__body {
    padding: 1.5rem;
  }

  .school-card__meta div {
    grid-template-columns: 20px 1fr;
  }
}

/* ========================================
   ニュースセクション
   ======================================== */
.news-section {
  max-width: 1200px;
  margin: 0 auto 4rem;
  padding: 0 1rem;
}

.news-section__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.news-section__header h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #1A1E22;
  margin: 0;
}

.news-section__subtitle {
  font-size: 1rem;
  color: #6B7280;
  margin: 0.5rem 0 0;
}

.news-section__list {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.news-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid #F3F4F6;
}

.news-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.news-card:first-child {
  padding-top: 0;
}

.news-card__date {
  flex-shrink: 0;
  font-size: 0.875rem;
  color: #6B7280;
  font-weight: 500;
  min-width: 80px;
}

.news-card__title {
  flex: 1;
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
  line-height: 1.6;
}

.news-card__title a {
  color: #1A1E22;
  text-decoration: none;
  transition: color 0.2s;
}

.news-card__title a:hover {
  color: #5D020A;
}

.news-card__empty {
  text-align: center;
  color: #9CA3AF;
  padding: 2rem 0;
  margin: 0;
}

.news-section__more {
  text-align: center;
}

.news-section__more a {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: #fff;
  color: #5D020A;
  text-decoration: none;
  border: 2px solid #5D020A;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s;
}

.news-section__more a:hover {
  background: #5D020A;
  color: #fff;
}

@media (max-width: 640px) {
  .news-section__header h2 {
    font-size: 1.5rem;
  }

  .news-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .news-card__date {
    font-size: 0.75rem;
    min-width: auto;
  }

  .news-card__title {
    font-size: 0.9rem;
  }
}

