@charset "UTF-8";

/* ==========================================================================
   メインビジュアル（topmain）
   ========================================================================== */
.topmain {
  position: relative;
  padding: 24px 0 90px;

  @media (max-width: 600px) {
    padding: 20px 16px 72px;
  }
}

.topmain__logo {
  width: 320px;
  margin: 0 auto;
     translate: 10px 0;

  img {
    display: block;
    width: 100%;
    height: auto;
  }
  @media (max-width: 600px) {
    width: 80%;
  }
    @media (min-width: 1400px) {
    width:50%;
  }
}

/* 画像（width="207"）を枠の幅いっぱい（PC：320px / SP：64%）に表示する */
.topmain__logo img {
  width: 100%;
}

.topmain__deco {
  position: absolute;
}

.topmain__deco--star {
  top: 62px;
  left: 79%;
  width: 25px;
  @media (max-width: 600px) {
    top: 10vw;
    left: 85%;
  }
}

.topmain__deco--butterfly {
  top: 160px;
  left: 6.5%;
  width: 26px;

  @media (max-width: 600px) {
    top: 40vw;
    left: 24%;
  }
}

/* 写真エリア（背景の黄色い形＋スライド） */
.topmain__visual {
  position: relative;
  width: 89.5%;
  margin: 120px 0 0 auto;
  aspect-ratio: 548 / 422;
  /* ::before（背景）を写真の背面に収める */
  isolation: isolate;
        translate: 10px 0;

  /* SP：スライドショーと背景の形の比率・位置関係は PC と同じまま、写真エリアごと拡大（右側は見切れてよい） */
  @media (max-width: 600px) {
    width: calc(100% + 32px); /* 画面幅と同じ（.topmain の左右の余白 16px を打ち消す） */
            margin: 26vw -40px 0vw 8px;
    translate: 0;
  }
}

.topmain__visual::before {
  content: "";
  position: absolute;
  inset: -5%;
  z-index: -1;
  background: url("../img/top/topmain/topmain-slide-bg.svg") no-repeat center / contain;
  pointer-events: none;
}

/* 開催日：写真エリアの大きさとは連動させず、.topmain を基準に配置 */
.topmain__date {
  position: absolute;
  top: 185px;
  left: 25px;
  z-index: 2;
  width: 130px;

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

  @media (max-width: 600px) {
    top: 40vw;
    left: 10px; /* 画面の左端から10px */
    width: 22%;
  }
  @media (min-width: 1400px) {
    width: 170px;
  }

  @media (min-width: 2000px) {
    width: 190px;
  }
}

/* スライドショー全体を有機的な形で切り抜く（形の定義と変形は index.html の #topmain-clip）
   スライド単位ではなく全体に掛けるので、写真の切り替え中も輪郭の動きは途切れない */
.topmain__slider {
  position: absolute;
  top: 4%;
  right: 0;
  width: 91.2%;
  aspect-ratio: 800 / 590;
  -webkit-clip-path: url(#topmain-clip);
  clip-path: url(#topmain-clip);
}

/* clipPath 定義用の SVG（display: none にすると一部ブラウザでクリップが効かないため、サイズ0で配置） */
.topmain__clip {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* 通常は .motion、動きを減らす設定では固定の .still を使う */
.topmain__clip-still {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .topmain__clip-still {
    display: inline;
  }

  .topmain__clip-motion {
    display: none;
  }
}

.topmain__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s;
}

.topmain__slide.is-active {
  opacity: 1;
}

/* 枠をすき間なく覆う（縦横比は保ったまま、はみ出た分はトリミング） */
.topmain__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* スライドのドット（JSで生成） */
.topmain__dots {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  display: flex;
  justify-content: center;
  gap: 4px;
  width: 100%;
}

.topmain__dot {
  position: relative;
  width: 24px;
  height: 24px;
}

.topmain__dot::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #d5d5d5;
  transition: background 0.3s;
}

.topmain__dot:hover::before,
.topmain__dot.is-active::before {
  background: var(--color-green);
}

.topmain__deco--square-purple {
  top: -6.5%;
  left: 22.7%;
  width: 18px;
}

.topmain__deco--sun {
  top: -1%;
  left: 84%;
  width: 30px;
}

.topmain__deco--star-green {
  top: 0;
  left: 94.4%;
  width: 18px;
  @media (max-width: 600px) {
        top: -10%;
    left: 75%;
  }
}

.topmain__deco--bird {
  top: 26.6%;
  left: -8.4%;
  width: 27px;
}

.topmain__deco--star-yellow {
  top: 40.6%;
  left: -7.1%;
  width: 24px;
}

.topmain__deco--square-green {
  top: 95%;
  left: 90.5%;
  width: 18px;
}

/* SP：写真の左側にあった bird（上の余白）と star（下の余白）を移動 */
@media (max-width: 600px) {
  .topmain__deco--bird {
         
         top: calc(100% + 10px);
    left: 8%;
  }

  .topmain__deco--star-yellow {
     top: 15%;
        left: 0;
  }
}

/* 写真まわりの飾り：ゆっくり上下にふわふわ（周期と開始位置を少しずつずらす） */
.topmain__visual .topmain__deco {
  animation: topmain-float 3.6s ease-in-out infinite;
}

.topmain__visual .topmain__deco--square-purple {
  animation-duration: 3.4s;
  animation-delay: -0.4s;
}

.topmain__visual .topmain__deco--sun {
  animation-duration: 4s;
  animation-delay: -1.6s;
}

.topmain__visual .topmain__deco--star-green {
  animation-duration: 3.2s;
  animation-delay: -2.4s;
}

.topmain__visual .topmain__deco--bird {
  animation-duration: 3.8s;
  animation-delay: -1s;
}

.topmain__visual .topmain__deco--star-yellow {
  animation-duration: 3.5s;
  animation-delay: -2.8s;
}

.topmain__visual .topmain__deco--square-green {
  animation-duration: 3.7s;
  animation-delay: -2s;
}

@keyframes topmain-float {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .topmain__visual .topmain__deco {
    animation: none;
  }
}


/* ==========================================================================
   おすすめ（recommend）
   ========================================================================== */
.recommend {
  /* 中の飾り（木・鳥）の位置の基準 */
  position: relative;
  padding: 60px 20px 60px;
  border-radius: 50% / 80px;
  background: var(--color-sky);
}

.recommend__list {
  display: flex;
  justify-content: center;
  gap: 22px;

  @media (max-width: 600px) {
    gap: 12px;
  }
}

.recommend__item {
  flex: 1;
  max-width: 170px;
}

.recommend__link {
  position: relative;
  display: block;
}

.recommend__image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.3s;
}

.recommend__label {
  position: absolute;
  right: -6%;
  bottom: -6%;
  width: 59%;
  transition: transform 0.3s;
}

.recommend__label--wide {
  right: -10%;
  width: 70%;
}

.recommend__link:hover .recommend__image {
  transform: scale(1.05);
}

.recommend__link:hover .recommend__label {
  transform: translateY(-6px);
}

.recommend__deco {
  position: absolute;
  z-index: 1;
}

/* 木：recommend の青い形の上端（角が楕円で下がっている位置）に接するように置く */
.recommend__deco--tree {
  top: -40px;
  left: 18px;
  width: 74px;

  @media (max-width: 600px) {
    top: -20px;
    left: 8px;
    width: 56px;
  }
}

.recommend__deco--bird {
  bottom: -12px;
  left: 75%;
  width: 27px;
}


/* ==========================================================================
   開催概要（about）
   ========================================================================== */
.about {
  padding: 30px 26px 100px;

  @media (max-width: 600px) {
    padding: 24px 16px 80px;
  }
}

.about__lead {
  margin-top: 24px;
  font-size: 14px;
  letter-spacing: 0.05em;

  @media (max-width: 600px) {
    letter-spacing: 0.02em;
    text-align: left;
  }
}

/* SPでは改行せず流し込み */
.about__lead br {
  @media (max-width: 600px) {
    display: none;
  }
}

.about__lead .ib {
  @media (max-width: 600px) {
    display: inline;
  }
}

.about__info {
  display: grid;
  gap: 18px;
  width: 408px;
  max-width: 100%;
  margin: 32px auto 0;
}

.about__row {
  position: relative;
  padding-left: 51px;
}

.about__label {
  position: absolute;
  top: -8px;
  left: 0;
  width: 62px;
}

.about__detail {
  min-height: 70px;
  padding: 10px 16px 10px 40px;
  border-radius: 6px;
  background: var(--color-beige);
}

.about__date {
  font-size: 18px;
  letter-spacing: 0.1em;
}

.about__time {
  font-size: 14px;
  letter-spacing: 0.08em;
}

.about__place {
  padding-top: 10px;
  font-size: 15px;
  font-weight: 700;
}


/* ==========================================================================
   応募方法（apply）
   ========================================================================== */
.apply {
  padding: 20px 26px 100px;
  background: var(--color-cream);

  @media (max-width: 600px) {
    padding: 16px 16px 80px;
  }
}

.apply__alert {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;

  @media (max-width: 600px) {
    gap: 6px;
  }
}

.apply__alert-icon {
  flex-shrink: 0;
  width: 24px;

  @media (max-width: 600px) {
    width: 20px;
  }
}

.apply__alert-text {
  padding-bottom: 12px;
  background: url("../img/common/border-zigzag-green.svg") round no-repeat left bottom / 32px auto;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;

  @media (max-width: 600px) {
    font-size: 14px;
    letter-spacing: 0.02em;
    text-align: center;
  }
}

.apply__text {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.95;
  text-align: center;

  @media (max-width: 600px) {
    font-size: 14px;
    letter-spacing: 0.02em;
  }
}

.apply__text--check {
  margin-top: 6px;
}

.apply__period {
  margin-top: 22px;
  border: 1px solid var(--color-blue);
  border-radius: 30px;
  background: #fff;
  box-shadow: 3px 4px 4px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  text-align: center;
}

.apply__period-head {
  padding: 10px;
  background: var(--color-blue);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.apply__period-body {
  padding: 10px 16px 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.apply__period-text{
  text-align: left;
  width: fit-content;
  margin: 0 auto;
}
.apply__requirements {
  margin-top: 36px;
  padding: 7px;
  background: #fff;
  box-shadow: 2px 3px 6px rgba(0, 0, 0, 0.18);
}

.apply__requirements-inner {
  padding: 16px 20px 18px;
  border: 2px dashed #ccc6b8;

  @media (max-width: 600px) {
    padding: 14px 12px 16px;
  }
}

.apply__requirements-title {
  margin-bottom: 10px;
  padding-bottom: 2px;
  border-bottom: 2px solid #e5dccb;
  font-size: 13px;
  font-weight: 700;
}

.apply__requirements .note-list {
  font-weight: 700;
}

.apply__btn-wrap {
  margin-top: 40px;
  text-align: center;
}


/* ==========================================================================
   イチオシ（pickup）
   ========================================================================== */
/* 下のフッターの緑の雲がイチオシの背景に重なるため、雲の高さ（幅×70/651）分の余白を足す */
.pickup {
  padding: 20px 26px calc(110px + 100% * 70 / 651);
  background: var(--color-lemon);

  @media (max-width: 600px) {
    padding: 16px 16px calc(80px + 100% * 70 / 651);
  }
}

.pickup__deco {
  position: absolute;
  z-index: 1;
}

.pickup__deco--tree {
  top: -48px;
  right: 25px;
  width: 74px;

  @media (max-width: 600px) {
    top: -40px;
    right: 12px;
    width: 56px;
  }
}

.pickup__deco--butterfly {
  top: -64px;
  right: 6px;
  width: 26px;

  @media (max-width: 600px) {
    display: none;
  }
}

.pickup__item {
  margin-top: 40px;
}

.pickup__title {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
}

.pickup__num {
  flex-shrink: 0;
  width: 61px;

  @media (max-width: 600px) {
    width: 46px;
  }
}

.pickup__title-text {
  padding-bottom: 14px;
  background: url("../img/common/border-zigzag-green.svg") round no-repeat left bottom / 32px auto;

  @media (max-width: 600px) {
    padding-bottom: 12px;
  }
}

.pickup__title-text img {
  width: auto;
  height: 31px;

  @media (max-width: 600px) {
    width: 100%;
    height: auto;
  }
}

.pickup__text {
  margin-top: 12px;
  font-size: 15px;

  @media (max-width: 600px) {
    font-size: 14px;
  }
}

.pickup__image {
  width: 100%;
  margin-top: 24px;
}


/* ==========================================================================
   フッター
   ========================================================================== */
/* イチオシとフッターの間に隙間ができないよう、フッター上の余白（雲の部分）もイチオシの背景色にする */
.footer {
  margin-top: 0;
}
