.art-header {
  grid-row: 1 / 1;
  grid-column: 1 / 1;
  height: 71.43px;
  & h1 {
    display: flex;
    gap: 24px;
    font-family: a-otf-ryumin-pr6n, Yu Mincho, YuMincho, serif;
    margin: 0;
    font-size: 16px;
    align-items: center;
    justify-content: center;
    height: 100%;
  }
  & img {
    width: 32px;
  }
  & p {
    margin: 0;
  }
}

/* FVのテキストは画像に重ねて左下に配置する */
.fv > div {
  position: relative;
}

.fv > div > .fv-text-container {
  position: absolute;
  bottom: 16px;
  left: 0;
  & .fv-text {
    margin: 0;
  }
  & .fv-text + .fv-text {
    margin-top: 8px;
  }
}

/* ヘッダーの高さ。header.php のヘッダーが出ないページ（アプリ内ブラウザ）では 0 にする */
.Page__main {
  --art-header-height: 68px;
}

@media (min-width: 992px) {
  .Page__main {
    --art-header-height: 80px;
  }
}

.Page__main.no-header {
  --art-header-height: 0px;
}

/* 下部固定リンクバーの高さ。バーがある場合のみ 28px 分を確保する */
.Page__main.has-fv-link {
  --art-fv-link-height: 28px;
}

/* FV画像: 420:677 の比率を基準に、ビューポート高からヘッダーと
   下部リンクバー分を引いた高さを上限、400px を下限とする */
.fv img {
  width: 100%;
  aspect-ratio: 420 / 677;
  height: calc(100vh - var(--art-header-height) - var(--art-fv-link-height, 0px));
  height: calc(100dvh - var(--art-header-height) - var(--art-fv-link-height, 0px));
  min-height: 400px;
  object-fit: cover;
}

/* FV2画像: スープ名と販売期間の分（98px）だけさらに高さを詰める */
.fv > div:nth-child(2) img {
  height: calc(100vh - var(--art-header-height) - var(--art-fv-link-height, 0px) - 98px);
  height: calc(100dvh - var(--art-header-height) - var(--art-fv-link-height, 0px) - 98px);
}

.fv-text {
  padding: 0 16px;
  font-family: a-otf-ryumin-pr6n, Yu Mincho, YuMincho, serif;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  color: #fff;

}

/* FV: SP のみ複数枚をクロスフェードで切り替える（PC は並べて表示） */
@media (max-width: 61.9375em) {
  .fv {
    position: relative;
    & > div {
      /* 1枚目を基準に高さを確保し、2枚目以降を重ねる */
      animation: artFvFade 6s ease-in-out infinite;
    }
    & > div:not(:first-child) {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      animation-name: artFvFadeAlt;
    }
    & > div:only-child {
      animation: none;
      opacity: 1;
    }
  }
}

@keyframes artFvFade {
  0%, 45% { opacity: 1; }
  55%, 95% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes artFvFadeAlt {
  0%, 45% { opacity: 0; }
  55%, 95% { opacity: 1; }
  100% { opacity: 0; }
}

/* アニメーションを好まない環境では切り替えず、すべて並べて表示する */
@media (prefers-reduced-motion: reduce) {
  .fv > div,
  .fv > div:not(:first-child) {
    position: relative;
    width: auto;
    height: auto;
    animation: none;
    opacity: 1;
  }
}

/* スープについてセクション（ACF: art_about） */
.about {
  margin: 0 auto;
  padding: 80px 24px;
  & .about-title {
    font-family: a-otf-ryumin-pr6n, Yu Mincho, YuMincho, serif;
    font-size: 40px;
    line-height: 1.2;
    font-weight: normal;
    margin: 0 0 40px;
    letter-spacing: 0em;
  }
  & .about-text {
    font-family: a-otf-ryumin-pr6n, Yu Mincho, YuMincho, serif;
    font-weight: normal;
    font-size: 20px;
    line-height: 2;
    margin: 0;
    letter-spacing: 0em;
  }
}

/* スープ内容セクション（ACF: art_soup_group） */
.soup {
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
  & .soup-title {
    font-family: a-otf-ryumin-pr6n, Yu Mincho, YuMincho, serif;
    font-size: 24px;
    line-height: 1;
    font-weight: 600;
    margin: 0 0 24px;
    letter-spacing: 0em;
  }
  & .soup-description {
    font-family: a-otf-ryumin-pr6n, Yu Mincho, YuMincho, serif;
    font-size: 16px;
    line-height: 2;
    margin: 0 0 8px;
    letter-spacing: 0em;
  }
  & .soup-annotation {
    font-family: Noto Sans JP, sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 2;
    color: #999;
    margin: 0;
    letter-spacing: 0em;
  }
  & .soup-image {
    margin-top: 64px;
    & img {
      width: 52.69%;
      height: auto;
    }
  }
}

/* セクション（ACF: art_section_group） */
.section {
  /* gap を横幅基準（cqw）で指定するためのコンテナ */
  container-type: inline-size;
  margin: 0 auto;
  padding: 120px 24px;
  & .section-title {
    font-family: a-otf-ryumin-pr6n, Yu Mincho, YuMincho, serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;
    margin: 0 0 40px;
    letter-spacing: 0em;
    & .section-title-bold {
      font-size: 40px;
    }
  }
  & .section-content {
    background-color: #f4f4f2;
    padding: 32px 24px;
    margin-bottom: 24px;
    &:last-child {
      margin-bottom: 0;
    }
  }
  & .section-content-title {
    font-family: a-otf-ryumin-pr6n, Yu Mincho, YuMincho, serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
    margin: 0 0 24px;
    letter-spacing: 0em;
  }
  & .section-content-text {
    font-family: Noto Sans JP, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 2;
    margin: 0;
    letter-spacing: 0em;
  }
}

/* 美しさセクション（ACF: art_beauty_group） */
.beauty {
  margin: 0 auto;
  padding: 120px 24px;
  background-color: #f4f4f2;
  & .beauty-title {
    font-family: a-otf-ryumin-pr6n, Yu Mincho, YuMincho, serif;
    font-size: 24px;
    font-weight: normal;
    line-height: 1.2;
    margin: 0 0 40px;
    letter-spacing: 0em;
    & .beauty-title-bold {
      font-size: 40px;
    }
  }
  & .beauty-content {
    margin-bottom: 80px;
    &:last-child {
      margin-bottom: 0;
    }
  }
  & .beauty-content-title {
    font-family: a-otf-ryumin-pr6n, Yu Mincho, YuMincho, serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
    margin: 0 0 24px;
    letter-spacing: 0em;
  }
  & .beauty-content-text {
    font-family: Noto Sans JP, sans-serif;
    font-size: 16px;
    line-height: 2;
    font-weight: 400;
    margin: 0;
    letter-spacing: 0em;
  }
}

/* 言葉セクション（ACF: art_word_group） */
.word {
  margin: 0 auto;
  padding: 120px 24px;
  & .word-title {
    font-family: a-otf-ryumin-pr6n, Yu Mincho, YuMincho, serif;
    font-size: 24px;
    font-weight: normal;
    line-height: 1.2;
    margin: 0 0 32px;
    letter-spacing: 0em;
    & .word-title-bold {
      font-size: 40px;
    }
  }
  & .word-annotation {
    font-family: Noto Sans JP, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 2;
    margin: 0 0 56px;
    letter-spacing: 0em;
  }
  & .word-content {
    position: relative;
    padding: 0 0 24px;
    margin-bottom: 32px;
    border-bottom: 1px solid #d8d8d8;
    &:last-child {
      margin-bottom: 0;
    }
    /* 引用符 */
    &::before {
      content: "“";
      display: block;
      font-family: a-otf-ryumin-pr6n, Yu Mincho, YuMincho, serif;
      font-size: 93px;
      line-height: 0.2;
      color: #999;
      transform: translateY(120%);
    }
  }
  & .word-content-comment {
    font-family: a-otf-ryumin-pr6n, Yu Mincho, YuMincho, serif;
    font-size: 20px;
    line-height: 1.5;
    margin: 8px 0 0;
    padding: 0 16px;
    letter-spacing: 0;
  }
  & .word-content-annotation {
    font-family: Noto Sans JP, sans-serif;
    font-size: 12px;
    line-height: 1.5;
    color: #999;
    margin: 8px 0 0;
    padding:0 16px;
    letter-spacing: 0;
  }
  & .word-content-text {
    font-family: Noto Sans JP, sans-serif;
    order: 1;
    background-color: #f4f4f2;
    font-size: 14px;
    line-height: 1.5;
    margin: 24px 16px 0;
    padding: 16px;
    letter-spacing: 0;
  }
  /* デザインどおり、開いた本文の下（区切り線の上）にボタンを置く */
  & .word-content-details {
    display: flex;
    flex-direction: column;
  }
  /* 開閉ボタン（＋ / −） */
  & .word-content-summary {
    /* summary を absolute にすると details の開閉が壊れるため、フロー内で右寄せする */
    order: 2;
    position: absolute;
    bottom: 0;
    right: 16px;
    transform: translateY(50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #333;
    list-style: none;
    cursor: pointer;
    &::-webkit-details-marker {
      display: none;
    }
    &::before,
    &::after {
      content: "";
      position: absolute;
      top: 50%;
      left: 50%;
      width: 12px;
      height: 1px;
      background-color: #fff;
      transform: translate(-50%, -50%);
    }
    &::after {
      transform: translate(-50%, -50%) rotate(90deg);
    }
  }
  & .word-content-details[open] .word-content-summary::after {
    transform: translate(-50%, -50%);
  }
  /* main.bundle.css の normalize（details { display: block }）で閉じた状態でも
     中身が表示されてしまうため、明示的に開閉を制御する */
  & .word-content-details:not([open]) .word-content-text {
    display: none;
  }
}

/* 作品セクション（ACF: art_production_group） */
.production {
  margin: 0 auto;
  padding: 120px 24px;
  & .production-title {
    font-family: a-otf-ryumin-pr6n, Yu Mincho, YuMincho, serif;
    font-size: 24px;
    font-weight: normal;
    line-height: 1.2;
    margin: 0 0 40px;
    letter-spacing: 0;
    & .production-title-bold {
      font-size: 40px;
    }
  }
  & .production-content {
    margin-bottom: 48px;
    &:last-child {
      margin-bottom: 0;
    }
  }
  & .production-content-image {
    margin-bottom: 64px;
    & img {
      width: 100%;
      height: auto;
    }
  }
  & .production-content-title {
    font-family: a-otf-ryumin-pr6n, Yu Mincho, YuMincho, serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 24px;
    letter-spacing: 0;
  }
  & .production-content-text {
    font-family: Noto Sans JP, sans-serif;
    font-size: 16px;
    font-weight: normal;
    line-height: 2;
    letter-spacing: 0;
    margin: 0;
  }
}

/* FV2 に重ねるスープ名と販売期間 */
.fv-caption {
  position: absolute;
  bottom: 16px;
  left: 0;
  width: 100%;
  text-align: center;
  font-family: a-otf-ryumin-pr6n, Yu Mincho, YuMincho, serif;
}

.fv-soup-name {
  font-family: a-otf-ryumin-pr6n, Yu Mincho, YuMincho, serif;
  letter-spacing: 0;
  font-size: 20px;
  line-height: 1.6;
  font-weight: 600;
  margin: 0;
}
.fv-period {
  font-family: a-otf-ryumin-pr6n, Yu Mincho, YuMincho, serif;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin: 4px 0 0;
}
.fv-date {
  font-size: 40px;
}
.fv-day {
  font-size: 20px;
  writing-mode: vertical-rl;
}
.fv-dash {
  font-size: 40px;
  /* flex の gap（8px）はダッシュの左右だけ打ち消す */
  margin-left: -8px;
  margin-right: -8px;
}

/* FV下の外部リンクバー（ACF: art_production_link_group） */
.fv-link {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 10;
  width: 100%;
  background-color: #333;
  display: block;
  padding: 8px;
  text-align: right;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  text-decoration: none;
  & a {
    color: #fff;
    text-decoration: underline;
  }
}

@media (min-width: 992px) {
  .fv {
    display: flex;
  }

  .fv-content {
    width: 50%;
  }

  .fv img {
    aspect-ratio: 683 / 660;
    height: calc(100vh - var(--art-header-height) - var(--art-fv-link-height, 0px));
    height: calc(100dvh - var(--art-header-height) - var(--art-fv-link-height, 0px));
    min-height: auto;
  }

  /* FV2画像: スープ名と販売期間の分（98px）だけさらに高さを詰める */
  .fv > div:nth-child(2) img {
    height: calc(100vh - var(--art-header-height) - var(--art-fv-link-height, 0px) - 98px);
    height: calc(100dvh - var(--art-header-height) - var(--art-fv-link-height, 0px) - 98px);
  }

  .fv-text-container {
    bottom: 24px;
  }

  .about {
    padding: 80px;
    max-width: 1366px;
    margin: auto;
  }

  .about-title {
    font-size: 56px;
    margin-bottom: 64px;
  }

  .soup {
    padding: 80px;
    max-width: 1366px;
    margin: auto;
    & .soup-image {
      & img {
        width: 300px;
      }
    }
  }

  .section {
    padding: 120px 80px;
    max-width: 1366px;
    margin: auto;
    & .section-title {
      font-size: 32px;
      & .section-title-bold {
        font-size: 56px;
      }
    }

    & .section-content-container {
      display: flex;
      align-items: stretch;
      flex-wrap: wrap;
      gap: 2cqw 2%;
    }

    & .section-content {
      width: 32%;
      margin-bottom: 0;
    }
  }

  .beauty {
    padding: 0;
    margin: 0;
    & .beauty-inner {
      padding: 120px 80px;
      max-width: 1366px;
      margin: 0 auto;
    }
    & .beauty-title {
      font-size: 32px;
      & .beauty-title-bold {
        font-size: 56px;
      }
    }
    & .beauty-content-container {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      row-gap: 40px;
    }
    & .beauty-content {
      width: 46.7%;
      margin-bottom: 0;
    }
  }

  .word {
    padding: 120px 80px;
    max-width: 1366px;
    margin: 0 auto;
    & .word-title {
      font-size: 32px;
      margin-bottom: 40px;
      & .word-title-bold {
        font-size: 56px;
      }
    }
    & .word-annotation {
      width: 563px;
      margin-left: auto;
    }

    & .word-content-container {
      display: flex;
      flex-wrap: wrap;
      align-items: flex-start;
      /* 行間・列間ともコンテナ幅の2% */
      gap: 5.4cqw 2%;
    }

    & .word-content {
      width: 32%;
      padding-bottom: 32px;
      margin-bottom: 0;
      &::before {
        transform: translate(-5px, 120%);
      }
    }

    & .word-content-comment {
      margin-top: 13px;
    }
  }

  .production {
    padding: 120px 80px;
    max-width: 1366px;
    margin: 0 auto;
    & .production-title {
      font-size: 32px;
      & .production-title-bold {
        font-size: 56px;
      }
    }

    & .production-content {
      display: flex;
      justify-content: space-between;
    }

    & .production-content-image {
      width: 33.17%;
      margin-bottom: 0;
    }

    & .production-content-inner {
      width: 61.7%;
    }
  }

}

@media (min-width: 1200px) {
  /* FV2画像: スープ名と販売期間の分（98px）だけさらに高さを詰める */
  .fv > div:nth-child(2) img {
    height: calc(100vh - var(--art-header-height) - var(--art-fv-link-height, 0px) - 134px);
    height: calc(100dvh - var(--art-header-height) - var(--art-fv-link-height, 0px) - 134px);
  }

  .fv-caption {
    bottom: 16px;
  }
  
  .fv-period {
    margin-top: 5px;
  }

  .fv-date {
    font-size: 72px;
  }

  .fv-day {
    font-size: 32px;
  }

  .fv-dash {
    font-size: 72px;
  }
}
/* ティザー1枚画像FV: 分割せず1枚で表示する */
/* ティザー1枚画像FV: 登録画像を幅100%・元の比率のまま表示する */
.fv.fv-single {
  display: block;
  & .fv-content {
    width: 100%;
  }
  & img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    min-height: 0;
    max-height: none;
  }
}
