@import 'base.css';
@import 'utils.css';
@import 'components.css';

/* ------------------------------------------------
  メインビジュアル
------------------------------------------------ */
.p-mv {
  background-color: var(--lp-color-cream);

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

/* ------------------------------------------------
  導入
------------------------------------------------ */
.p-intro {
  padding-block: 32px;
  background-color: var(--lp-color-cream);

  @media (min-width: 768px) {
    padding-block: 64px;
  }

  & .inner {
    position: relative;
  }

  & p {
    line-height: 2;
    letter-spacing: 0.04em;
  }

  & p + p {
    margin-top: 28px;

    @media (min-width: 768px) {
      margin-top: 36px;
      text-align: center;
    }
  }

  & p:first-child {
    @media (min-width: 768px) {
      text-align: center;
    }
  }
}

/* 野菜の装飾 */
.p-intro__deco {
  position: absolute;
  display: none;
}

@media (min-width: 1200px) {
  .p-intro__deco {
    display: block;
  }

  .p-intro__deco--01 {
    top: -64px;
    left: calc(100% + 25px);
    width: 151px;
    height: auto;
  }

  .p-intro__deco--02 {
    bottom: -64px;
    right: calc(100% + 13px);
    width: 143px;
    height: auto;
  }
}

/* ------------------------------------------------
  セクションの区切り（波）
------------------------------------------------ */
.p-wave {
  background-color: var(--lp-color-cream);

  & img {
    width: 100%;
    height: auto;
  }
}

/* ------------------------------------------------
  イベント情報
------------------------------------------------ */
.p-event {
  padding-bottom: 32px;
  background-color: var(--lp-color-yellow);

  @media (min-width: 768px) {
    padding-bottom: 64px;
  }
}

.p-event__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-align: center;

  @media (min-width: 768px) {
    font-size: 30px;
  }

  &::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    margin: 16px auto 0;
    background-color: var(--lp-color-black);

    @media (min-width: 768px) {
      width: 100px;
    }
  }
}

.p-event__cards {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-top: 48px;

  @media (min-width: 768px) {
    gap: 64px;
    margin-top: 64px;
  }
}

/* カード */
.p-card {
  position: relative;
  padding: 40px 16px 24px;
  border-radius: 20px;
  background-color: var(--lp-color-white);

  @media (min-width: 768px) {
    padding: 40px 32px 32px;
    border-radius: 30px;
  }
}

/* 開催期間 */
.p-card--date {
  text-align: center;
  letter-spacing: 0.086em;

  @media (min-width: 768px) {
    letter-spacing: 0.067em;
  }
}

/* 見出し（カード上端に重ねるラベル） */
.p-card__label {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 32px;
  border: 3px solid var(--lp-color-black);
  border-radius: 20px;
  background-color: var(--lp-color-orange);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
  white-space: nowrap;

  @media (min-width: 768px) {
    font-size: 24px;
  }
}

.p-card__date {
  font-weight: 700;
  line-height: 1.25;

  @media (min-width: 768px) {
    line-height: 1.5;
  }
}

.p-card__date--next {
  line-height: 1.5;
}

.p-card__year {
  font-size: 18px;

  @media (min-width: 768px) {
    font-size: 24px;
  }
}

.p-card__num {
  font-size: 28px;

  @media (min-width: 768px) {
    font-size: 40px;
  }
}

.p-card__unit {
  font-size: 18px;

  @media (min-width: 768px) {
    font-size: 24px;
  }
}

/* 会場 */
.p-card--place {
  text-align: center;
  letter-spacing: 0.086em;

  @media (min-width: 768px) {
    letter-spacing: 0.067em;
  }
}

.p-card__place {
  font-weight: 700;
  line-height: 1.75;
}

.p-card__place-name {
  display: block;
  font-size: 18px;

  @media (min-width: 768px) {
    font-size: 24px;
  }
}

.p-card__place-address {
  display: block;
  font-size: 14px;

  @media (min-width: 768px) {
    font-size: 18px;
  }
}

/* 応援フェアの開催内容 */
.p-card--contents {
  @media (min-width: 768px) {
    padding-top: 64px;
  }
}

.p-card__list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  counter-reset: item;
  font-weight: 700;
  line-height: 1.75;
  letter-spacing: 0.04em;
  text-align: left;

  @media (min-width: 768px) {
    gap: 16px;
  }

  & > li {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 8px;
    align-items: start;
    counter-increment: item;
  }

  & > li::before {
    content: counter(item);
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: var(--lp-color-yellow);
    font-size: 14px;
    line-height: 1.75;

    @media (min-width: 768px) {
      width: 32px;
      height: 32px;
      font-size: 18px;
    }
  }
}

/* ------------------------------------------------
  ダウンロード
------------------------------------------------ */
.p-downloads {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;

  @media (min-width: 768px) {
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(12px, calc(12px + (100vw - 768px) * 0.0178571), 24px);
    margin-top: 40px;
  }

  & > li {
    @media (min-width: 768px) {
      width: calc((100% - (clamp(12px, calc(12px + (100vw - 768px) * 0.0178571), 24px) * 2)) / 3);
    }
  }

  & .c-download {
    height: 100%;
  }
}

/* ------------------------------------------------
  主催・後援・協力
------------------------------------------------ */
.p-organizer {
  padding-block: 32px;
  background-color: var(--lp-color-cream);

  @media (min-width: 768px) {
    padding-block: 64px;
  }
}

.p-organizer__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 16px;
  border: 3px solid var(--lp-color-black);
  border-radius: 20px;
  background-color: var(--lp-color-white);

  @media (min-width: 768px) {
    padding: 32px;
    border-radius: 30px;
  }

  & > .p-organizer__row {
    display: flex;
    align-items: center;
    column-gap: 20px;
  }

  & > .p-organizer__row--coop {
    display: flow-root;
  }

  & > .p-organizer__row--coop dt {
    float: left;
    margin-right: 20px;
  }

  & dt {
    padding: 8px 16px;
    border-radius: 6px;
    background-color: var(--lp-color-black);
    color: var(--lp-color-white);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.75;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }

  & dd {
    font-size: 14px;
    line-height: 1.8;
    letter-spacing: 0.04em;

    @media (min-width: 768px) {
      line-height: 1.75;
    }
  }

  @media (min-width: 768px) {
    & > .p-organizer__row {
      display: grid;
      grid-template-columns: auto 1fr;
      column-gap: 20px;
      align-items: center;
    }

    & > .p-organizer__row--coop {
      align-items: start;
    }

    & > .p-organizer__row--coop dt {
      float: none;
      margin-right: 0;
    }

    & dt {
      font-size: 16px;
    }

    & dd {
      font-size: 16px;
    }
  }
}
