/* メインスタイル */
:root {
  /* カラー変数 */
  --color-primary: #4DC7D9;
  --color-secondary: #A3D39C;
  --color-background: #FFFFFF;
  --color-background-alt: #F8F7F3;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-border: #EEEEEE;

  /* フォント変数 */
  --font-heading: 'Noto Serif JP', serif;
  --font-body: 'Noto Sans JP', sans-serif;

  /* サイズ変数 */
  --sidebar-width: 300px;
  --container-max-width: 1200px;
  --header-height: 80px;
}

/* レイアウト */
body {
  display: flex;
  min-height: 100vh;
  background-color: var(--color-background);
}

/* サイドバー */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--color-background-alt);
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 10;
}

.sidebar__logo-container {
  margin-bottom: 25px;
  text-align: center;
}

.sidebar__logo-text {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--color-primary);
  margin-bottom: 8px;
  text-align: center;
}

.sidebar__logo-link {
  text-decoration: none;
}

.sidebar__logo {
  max-width: 180px;
}

.sidebar__info {
  margin-top: 25px;
  font-size: 1.1rem;
  line-height: 1.5;
}

.sidebar__address {
  margin-bottom: 15px;
}

.sidebar__tel {
  margin-bottom: 10px;
}

.sidebar__tel-link {
  color: var(--color-primary);
  font-weight: bold;
}

.sidebar__tel-link:hover {
  text-decoration: underline;
}

.sidebar__email {
  margin-bottom: 10px;
}

.sidebar__email-link {
  color: var(--color-primary);
  font-weight: bold;
}

.sidebar__email-link:hover {
  text-decoration: underline;
}

.sidebar__fax {
  margin-bottom: 20px;
}

.sidebar__contact-links {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.sidebar__map-link,
.sidebar__contact-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48%;
  padding: 10px;
  border-radius: 5px;
  background-color: var(--color-background);
  font-size: 1.4rem;
  transition: all 0.3s ease;
}

.sidebar__map-link:hover,
.sidebar__contact-link:hover {
  background-color: var(--color-primary);
  color: white;
}

/* メインコンテンツ */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  position: relative;
}

/* ヘッダー */
.header {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100;
  padding: 20px;
}

.menu-button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: none;
}

.menu-button:hover {
  background-color: #3AB5C7;
}

.menu-button__line {
  width: 20px;
  height: 2px;
  background-color: white;
  margin-bottom: 5px;
  position: relative;
}

.menu-button__line::before,
.menu-button__line::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background-color: white;
  left: 0;
}

.menu-button__line::before {
  top: -6px;
}

.menu-button__line::after {
  bottom: -6px;
}

.menu-button__text {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

/* グローバルナビゲーション */
.global-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background-color: var(--color-primary);
  z-index: 90;
  padding: 90px 25px 30px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.global-nav.is-active {
  transform: translateX(0);
}

.global-nav__list {
  display: flex;
  flex-direction: column;
}

.global-nav__item {
  margin-bottom: 12px;
}

.global-nav__link {
  color: white;
  font-size: 1.6rem;
  position: relative;
  display: inline-block;
  padding: 4px 0;
}

.global-nav__link::after {
  content: none;
}

.global-nav__link:hover {
  opacity: 0.8;
}

/* ヒーローセクション */
.hero-section {
  position: relative;
  height: 90vh;
  overflow: hidden;
}

.hero-slider {
  height: 100%;
}

.hero-slider__item {
  height: 100%;
  position: relative;
}

@keyframes zoomAnimation {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.05);
  }
}

.hero-slider__image {
  width: 85%;
  height: 85%;
  object-fit: cover;
  animation: zoomAnimation 8s ease-in-out infinite alternate;
  margin: 0 auto;
  border-radius: 5px;
}

.hero-slider__content {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 40px;
}

.hero-slider__motto {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--color-primary);
  background-color: rgba(255, 255, 255, 0);
  padding: 25px 15px;
  line-height: 1.8;
  text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.9), -1px -1px 3px rgba(255, 255, 255, 0.9);
}

.hero-slider__pagination {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.hero-slider__pagination-bullet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-slider__pagination-bullet.is-active,
.hero-slider__pagination-bullet:hover {
  background-color: white;
}

.hero-slider__title {
  position: absolute;
  bottom: 100px;
  left: 50px;
  color: white;
  font-family: var(--font-heading);
  font-size: 5rem;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.hero-slider__title-line {
  display: block;
}

/* お知らせバナー */
.news-banner {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: var(--color-primary);
  padding: 15px 30px;
}

.news-banner__link {
  color: white;
  display: flex;
  align-items: center;
  gap: 20px;
}

.news-banner__date {
  font-size: 1.4rem;
}

.news-banner__title {
  font-size: 1.6rem;
}

/* 園の理念セクション */
.philosophy-section {
  padding: 60px 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.philosophy-section__content {
  width: 75%;
}

.philosophy-section__title {
  font-size: 2.8rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--color-primary);
}

.philosophy-section__text {
  font-size: 1.6rem;
  line-height: 1.8;
  margin-bottom: 10px;
}

.philosophy-section__image {
  width: 15%;
}

/* 教育方針セクション */
.policy-section {
  padding: 30px 50px;
}

.policy-section__link {
  display: block;
  background-color: #E6F4F7;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
}

.policy-section__link:hover {
  background-color: #D6EEF4;
}

.policy-section__content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.policy-section__title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  color: var(--color-text);
}

/* セクションヘッダー */
.section-header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.section-header__title {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  margin-bottom: 12px;
  color: var(--color-text);
  position: relative;
  display: inline-block;
}

.section-header__subtitle {
  font-size: 1.5rem;
  color: var(--color-primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* お知らせセクション */
.news-section {
  padding: 60px 40px;
}

.news-list {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
}

.news-item {
  width: calc(33.333% - 20px);
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.news-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.news-item__image {
  height: 180px;
  overflow: hidden;
}

.news-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.news-item:hover .news-item__img {
  transform: scale(1.03);
}

.news-item__content {
  padding: 15px;
}

.news-item__title {
  font-size: 1.6rem;
  margin-bottom: 8px;
  color: var(--color-text);
}

.news-item__date {
  font-size: 1.3rem;
  color: var(--color-text-light);
  margin-bottom: 4px;
}

.news-item__category {
  font-size: 1.1rem;
  color: var(--color-primary);
}

/* 下層ページリンクセクション */
.page-links-section {
  padding: 40px;
  background-color: var(--color-background-alt);
}

.page-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto;
}

.page-link {
  display: flex;
  align-items: center;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.page-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.page-link__image {
  width: 35%;
  height: 140px;
  overflow: hidden;
}

.page-link__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.page-link:hover .page-link__img {
  transform: scale(1.03);
}

.page-link__content {
  width: 65%;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-link__title {
  font-size: 2.0rem;
  margin-bottom: 4px;
  color: var(--color-text);
  text-decoration: none;
}

.page-link__subtitle {
  font-size: 1.4rem;
  color: var(--color-primary);
  text-decoration: none;
}

/* ボタンの下線を削除 */
.sidebar__button,
.global-nav__link,
.news-banner__link,
.policy-section__link,
.page-link__link,
.footer__nav-link {
  text-decoration: none;
}

/* カラーバリエーション */
.page-link--admission {
  border-left: 5px solid #FF9999;
}

.page-link--support {
  border-left: 5px solid #9999FF;
}

.page-link--download {
  border-left: 5px solid #FFCC66;
}

.page-link--recruit {
  border-left: 5px solid #99CCCC;
}

.menu-button--active .menu-button__line {
  background-color: transparent;
}

.menu-button--active .menu-button__line::before {
  transform: rotate(45deg);
  top: 0;
}

.menu-button--active .menu-button__line::after {
  transform: rotate(-45deg);
  bottom: 0;
}

/* フッター */
.footer {
  padding: 70px 50px;
  background-color: #4DC7D9;
  color: white;
  max-width: 1100px;
  margin: 0 auto;
}

.footer__nav {
  display: flex;
  justify-content: space-between;
  margin-bottom: 60px;
}

.footer__nav-column {
  display: flex;
  flex-direction: column;
}

.footer__nav-link {
  margin-bottom: 20px;
  transition: all 0.3s ease;
  font-size: 2.4rem;
  text-decoration: none;
  font-weight: 500;
}

.footer__nav-link:hover {
  opacity: 0.7;
}

.footer__links {
  display: flex;
  flex-direction: column;
  margin-bottom: 40px;
}

.footer__external-link {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.footer__external-link:hover {
  opacity: 0.7;
}

.footer__external-link-text {
  position: relative;
  padding-left: 20px;
  font-size: 2rem;
}

.footer__external-link-text::before {
  content: none;
}

.footer__copyright {
  text-align: center;
  font-size: 1.8rem;
  opacity: 0.8;
  padding-top: 20px;
}

.instagram-section {
    margin: 60px 0;
    padding: 0 20px;
}

.instagram-feed {
    margin-top: 30px;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
}

/* Form validation styles */
.form-input.is-invalid, .form-select.is-invalid, .form-textarea.is-invalid {
    border-color: #ff3860;
    background-color: #fff5f7;
}

.error-message {
    color: #ff3860;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.instagram-item {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.instagram-item:hover {
    transform: translateY(-5px);
}

.instagram-item__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1/1;
}

.instagram-link {
    margin-top: 20px;
    text-align: center;
}

.instagram-link__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    margin: 20px auto;
}

.instagram-link__button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    color: white;
}

/* 個別学習支援ページのスタイル */
.life-description__title {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.life-description__text {
    font-size: 2.2rem;
    line-height: 2;
    margin-bottom: 20px;
}

.life-details__section-title {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--color-primary);
    text-align: center;
}

.life-details__title {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.life-details__text {
    font-size: 2.0rem;
    line-height: 1.8;
}

.life-timeline__title {
    font-size: 2.0rem;
    margin-bottom: 5px;
    color: var(--color-primary);
}

.life-timeline__text {
    font-size: 2.0rem;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .instagram-section {
        margin: 40px 0;
        padding: 0 15px;
    }

    .instagram-feed {
        margin-top: 20px;
    }
}

@media screen and (max-width: 480px) {
    .instagram-section {
        margin: 30px 0;
        padding: 0 10px;
    }

    .instagram-link__button {
        width: 100px;
        height: 100px;
        font-size: 12px;
    }
}
