body {
  margin: 0;
}

#topContents,
#topContents * {
  box-sizing: border-box;
}

#topContents {
  background: var(--module-color-white);
  padding-block-start: var(--module-header-height);

  @media (max-width: 768px) {
    padding-block-start: 0;
  }
}

#topContents img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* セクション見出し */
.topSectionTitle {
  text-align: center;
  color: var(--module-color-black);

  .topSectionTitle__en {
    margin: 0;
    font-family: "Marcellus", var(--module-font-serif);
    font-size: 55px;
    letter-spacing: 0.05em;
    line-height: 1.25;

    @media (max-width: 768px) {
      font-size: 40px;
      letter-spacing: 0.05em;
    }
  }

  .topSectionTitle__ja {
    margin: 0;
    font-family: var(--module-font-sans);
    font-size: 27px;
    font-weight: 400;
    line-height: 1.4;

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

/* ボタン */
.moreBtn {
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  justify-content: center;
  padding-inline: 5px;
  gap: 8px;
  color: var(--module-color-white);
  font-family: var(--module-font-sans);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  background: linear-gradient(107deg, #e3202c 0.84%, #c1333c 100%);
  border-radius: 8px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.25);
  transition: opacity 0.3s ease;

  @media (any-hover: hover) {
    &:hover {
      opacity: 0.85;
    }
  }

  &::after {
    content: "";
    flex-shrink: 0;
    width: 11.581px;
    height: 19.302px;
    background: url("../images/top/icon_arrow_white.svg") no-repeat center /
      contain;
  }

  &.moreBtn--large {
    min-height: 73px;
    width: min(384px, 100%);
    font-size: 20px;
    border-radius: 9px;

    @media (max-width: 768px) {
      min-height: 64px;
      width: min(338px, 100%);
      font-size: 18px;
    }
  }

  &.moreBtn--small {
    min-height: 62px;
    width: min(206px, 100%);
    font-size: 20px;

    @media (max-width: 768px) {
      min-height: 48px;
      width: min(160px, 100%);
      font-size: 15px;

      &::after {
        width: 8px;
        height: 13px;
      }
    }
  }
}

.topBanner {
  padding-block-start: 50px;

  @media (max-width: 768px) {
    padding-block-start: 40px;
  }

  .topBanner__teikiLink {
    display: block;
    width: min(566px, 100%);
    margin-inline: auto;
    transition: opacity 0.3s ease;

    @media (any-hover: hover) {
      &:hover {
        opacity: 0.85;
      }
    }

    img {
      width: 100%;
      border-radius: 3px;
      box-shadow: 0 0 5px 1px #a2a2a2;
    }
  }
}

/* TOPICS */
.topTopics {
  background: var(--module-color-white);
  padding-block: 85px 140px;

  @media (max-width: 768px) {
    padding-block: 65px 100px;
  }

  .topTopics__banner {
    margin-block-start: 65px;
    width: min(860px, 100%);
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 45px;
    
    @media (max-width: 768px) {
      margin-block-start: 40px;
      grid-template-columns: 1fr;
      gap: 37px;
    }
  }

  .topTopics__matobaLink {
    display: block;
    width: min(695px, 100%);
    margin-inline: auto;
    transition: opacity 0.3s ease;

    @media (any-hover: hover) {
      &:hover {
        opacity: 0.85;
      }
    }

    img {
      width: 100%;
      border-radius: 2px;
      box-shadow: 0 0 6.5px 2px rgba(0, 0, 0, 0.08);
    }
  }

  .topTopics__ksBanner {
    display: block;
    width: min(690px, 100%);
    margin-inline: auto;
    transition: opacity 0.3s ease;

    @media (any-hover: hover) {
      &:hover {
        opacity: 0.85;
      }
    }


    img {
      width: 100%;
      border-radius: 2px;
      box-shadow: 0 0 6.5px 2px rgba(0, 0, 0, 0.13);
    }
  }
}

/* PRODUCTS */
.topProducts {
  background: var(--module-color-light);
  padding-block: 85px 100px;

  @media (max-width: 768px) {
    padding-block: 65px 70px;
  }

  .topProducts__featured {
    margin-block-start: 65px;

    @media (max-width: 768px) {
      margin-block-start: 40px;
    }
  }

  .topProducts__featuredCard {
    display: grid;
    grid-template-columns: 380px 1fr;
    align-items: center;
    width: min(855px, 100%);
    margin-inline: auto;
    padding: 0;
    background: var(--module-color-white);
    border-radius: 2px;
    box-shadow: 0 0 4px 2px rgba(0, 0, 0, 0.1);
    overflow: hidden;

    @media (max-width: 768px) {
      grid-template-columns: 1fr;
    }
  }

  .topProducts__featuredMedia {
    position: relative;

    > img:first-child {
      width: 100%;
      border-radius: 2px 0 0 2px;

      @media (max-width: 768px) {
        border-radius: 2px 2px 0 0;
      }
    }
  }

  .topProducts__badge {
    position: absolute;
    top: 15px;
    left: 11px;
    width: 120px;
  }

  .topProducts__featuredBody {
    display: grid;
    justify-items: center;
    gap: 20px;
    padding-inline: 20px;

    @media (max-width: 768px) {
      padding: 24px 20px 32px;
    }
  }

  .topProducts__catch {
    margin: 0;
    font-family: var(--module-font-sans);
    font-size: 29px;
    letter-spacing: 0.051em;
    line-height: 1.31;
    text-align: center;

    @media (max-width: 768px) {
      font-size: 24px;
      letter-spacing: 0.05em;
      line-height: 1.31;
    }
  }

  .topProducts__name {
    margin: 0;
    font-family: var(--module-font-sans);
    font-size: 20px;
    line-height: 1.89;
    text-align: center;

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

  .topProducts__grid {
    margin-block-start: 68px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 31px;

    @media (max-width: 768px) {
      margin-block-start: 20px;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 20px;
    }
  }

  .topProducts__item {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 4;
    justify-items: center;
    gap: 16px;
    height: 100%;
    padding-block-end: 28px;
    background: var(--module-color-white);
    border-radius: 2px;
    box-shadow: 0 0 4px 2px rgba(0, 0, 0, 0.1);
    --card-body-padding: 12px;

    @media (max-width: 768px) {
      gap: 12px;
      padding-block-end: 20px;
    }
  }

  .topProducts__itemMedia {
    width: 100%;
    overflow: hidden;
    border-radius: 2px 2px 0 0;

    img {
      width: 100%;
    }
  }

  .topProducts__itemCatch {
    margin: 0;
    padding-inline: var(--card-body-padding);
    font-family: var(--module-font-sans);
    font-size: 23px;
    letter-spacing: 0.0504em;
    line-height: 1.5;
    text-align: center;

    @media (max-width: 768px) {
      font-size: 16px;
      letter-spacing: 0.05em;
      line-height: 1.5;
    }
  }

  .topProducts__itemName {
    margin: 0;
    padding-inline: var(--card-body-padding);
    font-family: var(--module-font-sans);
    font-size: 19px;
    line-height: 1.34;
    text-align: center;
    align-self: flex-end;

    @media (max-width: 768px) {
      font-size: 13px;
      line-height: 1.33;
    }
  }

  .topProducts__itemBtnWrap {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-inline: var(--card-body-padding);
  }
}

/* INFORMATION */
.topInformation {
  background: var(--module-color-white);
  padding-block: 85px 100px;

  @media (max-width: 768px) {
    padding-block: 65px 70px;
  }

  .inner {
    display: grid;
    justify-items: center;
  }

  .topInformation__list {
    margin-block-start: 10px;
    width: min(855px, 100%);
    height: 330px;
    margin-inline: auto;
    justify-self: stretch;

    @media (max-width: 768px) {
      height: 360px;
    }

    iframe {
      width: 100%;
      height: 100%;
      border: 0;
    }
  }

  .topInformation__bottom {
    margin-block-start: 10px;
    display: flex;
    justify-content: center;
  }

  .topInformation__more {
    display: inline-grid;
    grid-auto-flow: column;
    align-items: center;
    gap: 8px;
    width: fit-content;
    font-family: var(--module-font-sans);
    font-size: 18px;
    color: var(--module-color-black);
    text-decoration: none;
    transition: opacity 0.3s ease;
    padding: 10px 20px;

    @media (max-width: 768px) {
      display: flex;
      justify-content: center;
      font-size: 16px;
    }

    img {
      flex-shrink: 0;
      width: 11px;
      height: 16px;
      object-fit: contain;
    }

    @media (any-hover: hover) {
      &:hover {
        opacity: 0.7;
      }
    }
  }
}

/* CALENDAR */
.topCalendar {
  background: var(--module-color-white);
  padding-block: 50px 100px;

  @media (max-width: 768px) {
    padding-block-end: 30px 70px;
  }

  .topCalendar__frame {
    margin-block-start: 32px;
    width: min(1126px, 100%);
    margin-inline: auto;
    overflow: hidden;

    @media (max-width: 768px) {
      margin-block-start: 28px;
    }

    iframe {
      display: block;
      width: 100%;
      min-height: 535px;
      border: 0;

      @media (max-width: 768px) {
        min-height: 273px;
      }
    }
  }
}

/*==================================================================
	Main setting
===================================================================*/

#topMain {
  background: #fff;
  overflow: hidden;
  position: relative;
}
#topMain img {
  max-width: 100%;
  width: 100%;
  height: inherit;
}
#topMainInner {
  position: relative;
  z-index: 1;
}
#topMain .topMovie {
  width: 100%;
}
