/* 下層ページ共通スタイル */
:root {
  --accent-color-1: #FF9999;
  --accent-color-2: #9999FF;
  --accent-color-3: #99CCCC;
  --accent-color-4: #FFCC66;
  --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.1);
  --gradient-primary: linear-gradient(135deg, #4DC7D9, #A3D39C);
}

/* 下層ページヘッダー改善 */
.page-header {
  position: relative;
  height: 300px;
  background-image: var(--gradient-primary);
  margin-bottom: 50px;
  overflow: hidden;
  border-radius: 0 0 30px 30px;
  box-shadow: var(--shadow-medium);
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/images/pattern-dots.png');
  opacity: 0.1;
  animation: moveBackground 30s linear infinite;
}

@keyframes moveBackground {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 500px 500px;
  }
}

.page-header--admission {
  background-image: linear-gradient(135deg, #FF9999, #FFCC99);
}

.page-header--about {
  background-image: linear-gradient(135deg, #9999FF, #99FFFF);
}

.page-header--life {
  background-image: linear-gradient(135deg, #99CCCC, #99FFCC);
}

.page-header--curriculum {
  background-image: linear-gradient(135deg, #FFCC66, #FFFF99);
}

.page-header__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 1;
  width: 80%;
}

.page-header__title {
  font-family: var(--font-heading);
  font-size: 5rem;
  color: white;
  margin-bottom: 10px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  position: relative;
  display: inline-block;
}

.page-header__title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background-color: white;
  border-radius: 2px;
}

.page-header__subtitle {
  font-size: 2rem;
  color: white;
  opacity: 0.9;
}

/* セクションカード化 */
.content-card {
  background-color: white;
  border-radius: 20px;
  box-shadow: var(--shadow-light);
  padding: 40px;
  margin-bottom: 40px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.content-card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-5px);
}

.content-card__accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 100%;
}

.content-card__accent--1 {
  background-color: var(--accent-color-1);
}

.content-card__accent--2 {
  background-color: var(--accent-color-2);
}

.content-card__accent--3 {
  background-color: var(--accent-color-3);
}

.content-card__accent--4 {
  background-color: var(--accent-color-4);
}

/* アイコン要素 */
.feature-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(77, 199, 217, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.feature-icon svg {
  width: 40px;
  height: 40px;
  fill: var(--color-primary);
}

/* タイムライン要素 */
.timeline {
  position: relative;
  margin: 30px 0;
  padding-left: 50px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  height: 100%;
  width: 2px;
  background-color: var(--color-primary);
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
  padding: 20px;
  background-color: white;
  border-radius: 10px;
  box-shadow: var(--shadow-light);
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 20px;
  left: -30px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--color-primary);
  border: 4px solid white;
  box-shadow: 0 0 0 2px var(--color-primary);
}

/* FAQアコーディオン改善 */
.admission-faq__item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.admission-faq__question {
  background-color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  border-radius: 10px;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
}

.admission-faq__question:hover {
  background-color: #F8F8F8;
}

.admission-faq__icon {
  position: relative;
  width: 20px;
  height: 20px;
}

.admission-faq__icon::before,
.admission-faq__icon::after {
  content: '';
  position: absolute;
  background-color: var(--color-primary);
  transition: all 0.3s ease;
}

.admission-faq__icon::before {
  top: 9px;
  left: 0;
  width: 100%;
  height: 2px;
}

.admission-faq__icon::after {
  top: 0;
  left: 9px;
  width: 2px;
  height: 100%;
}

.admission-faq__item.is-open .admission-faq__icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.admission-faq__answer {
  background-color: #F8F8F8;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.admission-faq__item.is-open .admission-faq__answer {
  padding: 20px;
  max-height: 500px;
}

/* プログラムカード */
.program-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.program-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.program-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.program-card:nth-child(1) {
  transition-delay: 0.1s;
}

.program-card:nth-child(2) {
  transition-delay: 0.2s;
}

.program-card:nth-child(3) {
  transition-delay: 0.3s;
}

.program-card:nth-child(4) {
  transition-delay: 0.4s;
}

.program-card__image {
  height: 200px;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 15px;
}

.program-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.program-card:hover .program-card__img {
  transform: scale(1.05);
}

.program-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.program-card__title {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--color-text);
}

.program-card__description {
  margin-bottom: 15px;
  flex: 1;
}

.program-card__info {
  font-size: 1.4rem;
  color: var(--color-text-light);
  font-weight: bold;
}

/* コンテナスタイル */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .program-grid {
    grid-template-columns: 1fr;
  }
  
  .page-header {
    height: 200px;
  }
  
  .page-header__title {
    font-size: 3.6rem;
  }
  
  .page-header__subtitle {
    font-size: 1.6rem;
  }
}
