/* メインビジュアル */
.main-visual {
  position: relative;
  overflow: hidden;
  background: #f0fcfa;
  
  .main-visual-inner {
    /* max-width: var(--container-width); */
    margin: 0 auto;
    width: 100%;
    height: 100%;
  }
  
  @media (min-width: 768px) {
  }
  .main-visual-content {
    position: relative;
    width: 100%;
    height: 80vh;
  }

  .illust_frame{
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    translate: 0 10%;
    @media (min-width: 768px) {
      translate: 0 1px;
    }
  }

  .main-visual-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    .main-visual-image {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* 画像の比率を保ちながら領域を埋める */
        object-position: center; /* 画像の中心を表示 */
      }

      
      @keyframes zoomEffect {
        0% { transform: scale(1); }
        50% { transform: scale(2.05); }
        100% { transform: scale(1); }
      }
      .is-active img {
        animation: zoomEffect 5s ease-in-out;
      }
    }
  }
 
  
  .main-visual-text {
    position: absolute;
    bottom: 0%;
    left: 50%;
    translate: -50% 0;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    text-align: center;
    padding: 0 var(--gap-medium);
    @media (min-width: 768px) {
      font-size: 36px;
      bottom: 15%;
    }
    & .main-catch {
      font-size: 24px;
      color: white;
      text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
      
      
    }
  }
}

/* あかり保育園の想い */
.about-section {
  padding: var(--gap-xl) var(--gap-medium) 30%;
  background:  url(../img/wave_blue.svg) center bottom no-repeat;
  background-size: 110% auto;
  position: relative;
  @media (min-width: 768px) {
    padding: var(--gap-xl) var(--gap-large) 15%;
    background: url(../img/wave_blue.svg) center bottom no-repeat;
    background-size:110% auto;
  }

  &::after{
    content: "";
    display: block;
    width: 80%;
    height: 230px;
    background: url(../img/about_illust.svg) right bottom no-repeat;
    background-size:contain;
    position: absolute;
    right: 5%;
    bottom: -2em;
  }
  
  
  .about-inner {
    max-width: var(--container-width);
    margin: 0 auto;
  }

  .section-title{
    background: url(../img/about_title_items.svg) center right no-repeat;
    background-size: contain;

  }
  
  .about-content {
    display: flex;
    flex-direction: column;
    gap: var(--gap-large);
    
    @media (min-width: 768px) {
      flex-direction: row;
      align-items: flex-start;
    }
    
     .about-text {
      flex: 1;
      
      p {
        margin-bottom: var(--gap-medium);
      }
    }
    
    .about-image {
      flex: 1;
      position: static;
      z-index: -1;
      
      & img {
        border-radius: var(--border-radius);
        width: 100%;
      }
    }
  }
}

/* 園での生活 */
.life-section {
  padding: var(--gap-xl) var(--gap-medium) 30%;
  background: #CCE8FC url(../img/wave_white.svg) center bottom no-repeat;
  background-size: 110% auto;
  position: relative;
  @media (min-width: 768px) {
    padding: var(--gap-xl) var(--gap-large) 15%;
    background:#CCE8FC url(../img/wave_white.svg) center bottom no-repeat;
    background-size:110% auto;
  }

  .life-lead {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--gap-large);
  }
  
  .education-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--gap-large);
    margin-bottom: var(--gap-large);
    
     .education-item {
      flex: 0 0 calc(50% - var(--gap-medium));
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      @media (min-width: 768px) {
        flex: 0 0 calc(20% - var(--gap-large));
      }
      
      .education-icon {
        position: relative;
        width: 200px;
        height: 200px;
        span{
          position: absolute;
          display: inline-block;
          width: 80px;
          height: 80px;
          border-radius: 50%;
          display: flex;
          align-items: center;
          justify-content: center;
          font-weight: bold;
          color: white;
          margin-bottom: var(--gap-small);
        }
        img{
          width: 90%;
          height: 90%;
          margin: 5%;
          border-radius: 50%;
          object-fit: cover;
        }
      }
      
      &:nth-child(1) .education-icon span {
        background-color: var(--color-primary);
      }
      
      &:nth-child(2) .education-icon span {
        background-color: var(--color-pink);
      }
      
      &:nth-child(3) .education-icon span {
        background-color: var(--color-secondary);
      }
      
      &:nth-child(4) .education-icon span {
        background-color: var(--color-tertiary);
      }
      
      &:nth-child(5) .education-icon span {
        background-color: var(--color-primary);
      }
    }
  }
  
  & .activities-link {
    text-align: center;
    margin-bottom: var(--gap-xl);
    
    & .btn-activities {
      background: var(--color-primary);
      width: 14em;
    }
  }
  
  .schedule-links {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--gap-medium);
    
    @media (min-width: 768px) {
      flex-direction: row;
      & .schedule-item {
        width: 50%;
        max-width: 400px;
      }
    }
    
    .schedule-item {
      flex: 1;
      position: relative;
      text-align: center;
      margin: 60px 0 0;
      
      .schedule-image {
        position: relative;
        img {
          width: 100%;
          height: 200px;
          object-fit: cover;
          border-radius: var(--border-radius);
        }
        &::after{
          content: "";
          display: block;
          width: 100px;
          height: 50px;
          border-radius: 50px 50px 0 0;
          background: var(--color-primary);
          position: absolute;
          top: 0;
          left: 50%;
          translate: -50% -100%;
        }
        &::before{
          content: "";
          display: block;
          width: 36px;
          height: 36px;
          position: absolute;
          top: 0;
          left: 50%;
          z-index: 1;
          translate: -50% calc(-100% + -7px);
        }
        &.items-clock::before{
          content: "";
          background: url(../img/illust_clock.svg) center no-repeat;
          background-size: contain;
        }
        &.items-calendar::before{
          content: "";
          background: url(../img/illust_calendar.svg) center no-repeat;
          background-size: contain;
        }
      }
      
      .btn-schedule {
        background-color: var(--color-primary);
        position: absolute;
        bottom: 1em;
        left: 50%;
        transform: translateX(-50%);
        @media (min-width: 768px) {
          position: absolute;
          bottom: -1em;
          left: 50%;
          width: 13em;
        }
      }
    }
  }
}

/* あかり保育園はこんなところ */
.features-section {
  padding: var(--gap-xl) var(--gap-medium);
  
  @media (min-width: 768px) {
    padding: var(--gap-xl) var(--gap-large);
  }
  
  .features-lead {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--gap-large);
  }
  
  .features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-medium);
    margin-bottom: var(--gap-xl);
    
    @media (min-width: 768px) {
      flex-wrap: nowrap;
    }
    
    .feature-item {
      flex: 1 0 100%;
      position: relative;
      @media (min-width: 768px) {
        flex: 1;
      }
      
      .feature-icon {
        display: inline-block;
        padding: .5em 1em .5em 1em;
        background:#FBE2CA;
        color: #8B4513;
        font-size: 18px;
        text-align: center;
        font-weight: bold;
        border-radius: var(--border-radius) 0 var(--border-radius)  0;
        position: absolute;
        top: 0;
        left: 0;
        &.point1::before,
        &.point2::before,
        &.point3::before{
          content: "";
          display: inline-block;
          width: 1.75em;
          height: 1.75em;
          background: #000;
          vertical-align: middle;
          margin: 0 .5em 0 0;
        }
        &.point1::before{
          content: "";
          background: url(../img/point_icon_1.svg) center no-repeat;
          background-size: contain;
        }
        &.point2::before{
          content: "";
          background: url(../img/point_icon_2.svg) center no-repeat;
          background-size: contain;
        }
        &.point3::before{
          content: "";
          background: url(../img/point_icon_3.svg) center no-repeat;
          background-size: contain;
        }
        
      }
      
      .feature-image {
        margin-bottom: var(--gap-small);
        
        img {
          border-radius: var(--border-radius);
          width: 100%;
        }
      }
    }
  }
  
  .garden-links {
    display: flex;
    flex-direction: column;
    
    @media (min-width: 768px) {
      flex-direction: row;
    }
    
    .garden-item {
      flex: 1;
      position: relative;
      text-align: center;
      .garden-image {
        position: relative;
        & img {
          width: 100%;
        }
        &::after{
          content: "";
          display: block;
          background: rgba(0, 0, 0, 0.5);
          mix-blend-mode: multiply; 
          width: 100%;
          height: 100%;
          position: absolute;
          left: 0;
          top: 0;
          transition: .3s;
        }
      }
      &:hover{
        .garden-image{
          &::after{
            background: rgba(0, 0, 0, 0);
          }
        }
      }
      .btn-garden{
        position: absolute;
        bottom: 1em;
        left: 50%;
        transform: translateX(-50%);
        @media (min-width: 768px) {
          position: absolute;
          bottom: -1em;
          left: 50%;
        }

      }
      
      .garden-text {
        color: #fff;
        width: 100%;
        margin: var(--gap-small) 0;
        position: absolute;
        bottom: 4em;
        left: 50%;
        translate: -50% 0;
        @media (min-width: 768px) {
          position: absolute;
          bottom: 2em;
          left: 50%;

        }
      }
      &:first-child{
        .btn-garden {
          background-color: var(--color-tertiary);
          color: white;
        } 
        .garden-image {
          img {
            border-radius: var(--border-radius) var(--border-radius) 0 0;
            @media (min-width: 768px) {
              border-radius: var(--border-radius) 0 0 var(--border-radius) ;
            }
          }
          &::after{
            content: "";
            border-radius: var(--border-radius) var(--border-radius) 0 0;
            @media (min-width: 768px) {
              border-radius: var(--border-radius) 0 0 var(--border-radius) ;
            }
          }
        }
      }
      &:last-child{
        .btn-garden {
          background-color: var(--color-secondary);
          color: white;
        }
        .garden-image {
          img {
            border-radius: 0 0 var(--border-radius) var(--border-radius);
            @media (min-width: 768px) {
              border-radius: 0 var(--border-radius) var(--border-radius) 0;
            }
          }
          &::after{
            content: "";
            border-radius: 0 0 var(--border-radius) var(--border-radius);
            @media (min-width: 768px) {
              border-radius: 0 var(--border-radius) var(--border-radius) 0;
            }
          }
        }
      }
    }
  }
}

/* 入園のご案内 */
.admission-section {
  padding: var(--gap-xl) var(--gap-medium);
  
  @media (min-width: 768px) {
    padding: var(--gap-xl) var(--gap-large);
  }
  
  .admission-inner {
    background: #F8D1AB;
    max-width: var(--container-width);
    margin: 0 auto;
    border-radius: var(--border-radius);
    position: relative;
    display: flex;
    flex-direction: column;
    @media (min-width: 768px) {
      flex-direction: row;
      align-items: center;
      justify-content: center;
      gap: 2em;
    }
    &::before{
      content: "";
      display: block;
      width: 60px;
      height: 60px;
      background: url(../img/illust_owl.svg)left bottom no-repeat;
      background-size: contain;
      position: absolute;
      left: 6%;
      top: 0;
      translate: 0 -92%;
    }
  }
  
  .admission-content {
    padding: var(--gap-large);
    
    @media (min-width: 768px) {
      padding: var(--gap-large) 0;
      width: 40%;
    }
  }
  
  .admission-title {
    display: flex;
    align-items: center;
    font-size: 22px;
    color: #8B4513;
    margin-bottom: var(--gap-medium);
    
    .icon-admission {
      display: inline-block;
      width: 30px;
      height: 30px;
      background-color: var(--color-primary);
      border-radius: 50%;
      margin-right: var(--gap-small);
      position: relative;
      
      &::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 16px;
        height: 16px;
        background-color: white;
        mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm-2 14l-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9l-8 8z"/></svg>');
        mask-size: contain;
        mask-repeat: no-repeat;
      }
    }
  }
  
  .admission-text {
    margin-bottom: var(--gap-large);
  }
  
  .admission-link {
    text-align: center;
    .btn-admission {
      background-color: var(--color-primary);
      width: auto;
    }
  }
  
  .admission-image {
    position: relative;
    &::before{
      content: "";
      display: block;
      width: 120px;
      height: 60px;
      background: url(../img/illust_clocodile.svg)left bottom no-repeat;
      background-size: contain;
      position: absolute;
      right: 1%;
      top: 0;
      translate: 0 -50%;
    }
    @media (min-width: 768px) {
      width: 40%;
      margin: -2em 0 3em;
      &::before{
        content: "";
        position: absolute;
        right: 1%;
        top: auto;
        bottom: 0;
        translate: 15% 50%;
      }
    }
    
     img {
      width: 100%;
      aspect-ratio: 5 / 2;
      object-fit: cover;
      border-radius:0 0 var(--border-radius) var(--border-radius);
      @media (min-width: 768px) {
        border-radius: var(--border-radius);
        aspect-ratio: 8 / 5;
      }
    }
  }
}

/* ブログ */
.blog-section {
  padding: var(--gap-xl) var(--gap-medium);
  background: #B2E4CE;
  
  @media (min-width: 768px) {
    padding: var(--gap-xl) var(--gap-large);
  }
  
  .blog-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin:0 auto var(--gap-large);
    max-width: var(--container-width);
    
    @media (min-width: 768px) {
      flex-direction: row;
      justify-content: space-between;
    }
    
    .blog-item {
      width:100%;
      height: auto;
      max-width: 400px;
      background-color: #F6F6F6;
      border-radius: var(--border-radius);
      position: relative;
      transition: transform 0.3s;
      aspect-ratio: 3/2;
      overflow: hidden;
      @media (min-width: 520px) {
        width: calc(50% - 20px);
      }
      @media (min-width: 768px) {
        width: calc((100% /3 ) - 20px);
      }
      &:hover {
        transform: translateY(-5px);
      }
      
      .blog-date {
        font-size: .8em;
        color: #fff;
        margin-bottom: var(--gap-small);
        position: absolute;
        left: 3%;
        top: 3%;
        text-shadow: 0 0 4px rgba(0,0,0,.5);
      }
      
      .blog-branch {
        display: inline-block;
        border-radius: 50px;
        font-size: 12px;
        color: white;
        margin:0;
        padding: .25em 1.5em;
        position: absolute;
        right: 3%;
        top: 3%;
      }
      
      .higashihie {
        background-color: var(--color-tertiary);
      }
      
      .imajuku {
        background-color: var(--color-secondary);
      }

      .default {
        background-color: var(--color-footer);
      }
      .blog-title {
        width: 100%;
        color: white;
        font-size: 14px;
        font-weight: bold;
        margin: 0;
        padding: var(--gap-small);
        position: absolute;
        left: 0%;
        bottom: 0%;
        background: #28B478;
      }
      .blog-image{
        img{
          width: 100%;
          height: 100%;
          object-fit: cover;
        }
      }
      .blog-link {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        text-indent: -9999px;
      }
    }
  }
  .blog-more {
    text-align: center;
    .btn-blog {
      background: #28B478;
      width: auto;
    }
  }
}


/* Instagram */
.instagram-section {
  padding: var(--gap-xl) var(--gap-medium);
  background-color: #F6F6F6;
  
  @media (min-width: 768px) {
    padding: var(--gap-xl) var(--gap-large);
  }
  div.inner{
    max-width: var(--container-width);
    margin: 0 auto;
  }
}


/* 採用情報 */
.recruit-section {
  padding: var(--gap-xl) var(--gap-medium);
  
  @media (min-width: 768px) {
    padding: var(--gap-xl) var(--gap-large);
  }
  
  .recruit-inner {
    background: #FFDC50;
    max-width: var(--container-width);
    margin: 0 auto;
    border-radius: var(--border-radius);
    position: relative;
    display: flex;
    flex-direction: column;
    @media (min-width: 768px) {
      flex-direction: row;
      align-items: center;
      justify-content: center;
      gap: 2em;
    }
    &::before{
      content: "";
      display: block;
      width: 60px;
      height: 60px;
      background: url(../img/illust_rabiit.svg)left bottom no-repeat;
      background-size: contain;
      position: absolute;
      left: 6%;
      top: 0;
      translate: 0 -92%;
    }
  }
  
  .recruit-content {
    padding: var(--gap-large);
    
    @media (min-width: 768px) {
      padding: var(--gap-large) 0;
      width: 40%;
    }
  }
  
  .recruit-title {
    display: flex;
    align-items: center;
    font-size: 22px;
    color: #8B4513;
    margin-bottom: var(--gap-medium);
    
    .icon-recruit {
      display: inline-block;
      width: 30px;
      height: 30px;
      background-color: var(--color-primary);
      border-radius: 50%;
      margin-right: var(--gap-small);
      position: relative;
      
      &::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 16px;
        height: 16px;
        background-color: white;
        mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm-2 14l-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9l-8 8z"/></svg>');
        mask-size: contain;
        mask-repeat: no-repeat;
      }
    }
  }
  
  .recruit-text {
    margin-bottom: var(--gap-large);
  }
  
  .recruit-link {
    text-align: center;
    .btn-recruit {
      background-color: var(--color-primary);
      width: auto;
    }
  }
  
  .recruit-image {
    position: relative;
    &::before{
      content: "";
      display: block;
      width: 120px;
      height: 60px;
      background: url(../img/illust_cat.svg)right bottom no-repeat;
      background-size: contain;
      position: absolute;
      right: 1%;
      top: 0;
      translate: 0 -50%;
    }
    @media (min-width: 768px) {
      width: 40%;
      margin: -2em 0 3em;
      &::before{
        content: "";
        position: absolute;
        right: 1%;
        top: auto;
        bottom: 0;
        translate: 15% 50%;
      }
    }
    
     img {
      width: 100%;
      aspect-ratio: 5 / 2;
      object-fit: cover;
      border-radius:0 0 var(--border-radius) var(--border-radius);
      @media (min-width: 768px) {
        border-radius: var(--border-radius);
        aspect-ratio: 8 / 5;
      }
    }
  }
}

.to_recruit_btn{
  position: fixed;
  right: 1em;
  bottom: 1em;
  z-index: 1;
  width: 30%;
  height: auto;
  aspect-ratio: 1/1;
  @media (min-width: 768px) {
    width: 100%;
    max-width: 160px;
  }
}

/* アニメーション */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ユーティリティクラス */
.animate-fade-in {
  animation: fadeIn 1s ease-out;
}

.animate-slide-up {
  animation: slideUp 0.8s ease-out;
}

/* スクロールアニメーション用 */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  
  &.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 装飾要素 */
.decorative-element {
  position: absolute;
  z-index: -1;
  
  &.cloud {
    width: 80px;
    height: 40px;
    background-color: white;
    border-radius: 20px;
    opacity: 0.8;
  }
  
  &.tree {
    width: 60px;
    height: 80px;
    
    &::before {
      content: '';
      position: absolute;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 10px;
      height: 20px;
      background-color: #8B4513;
    }
    
    &::after {
      content: '';
      position: absolute;
      bottom: 15px;
      left: 0;
      width: 60px;
      height: 60px;
      background-color: var(--color-secondary);
      border-radius: 50%;
    }
  }
  
  &.sun {
    width: 60px;
    height: 60px;
    background-color: #FFD700;
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
  }
}

/* レスポンシブ調整用の追加クラス */
.hide-on-mobile {
  display: none;
  
  @media (min-width: 768px) {
    display: block;
  }
}

.hide-on-desktop {
  display: block;
  
  @media (min-width: 768px) {
    display: none;
  }
}

/* アクセシビリティ用クラス */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* 印刷用スタイル */
@media print {
  header,
  footer {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
  }
  
  .main-visual,
  .instagram-section,
  .blog-section {
    display: none;
  }
  
  .about-section,
  .features-section,
  .life-section,
  .recruit-section {
    page-break-inside: avoid;
    margin-bottom: 20pt;
  }
}

/* JavaScriptと連携する要素 */
.js-toggle-nav.open + .global-nav {
  transform: translateX(0);
}