@charset "utf-8";

/****************************************
基本
****************************************/
html,
body {
  overflow-x: clip;
}

html {
  scrollbar-gutter: stable;

  &.openingLock {
    overflow: hidden;
  }

  &.modalOpen {
    overflow: hidden;
  }
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-size: 1.6rem;
  font-family: 'Noto Sans JP', sans-serif;
  color: #333;
  letter-spacing: 1px;
  line-height: 1.6;
  background: #f0f7fc;
}

.wrap {
  width: 90%;
  max-width: 1080px;
  margin-inline: auto;
  position: relative;
}

section {
  padding: 100px 0 150px;
  position: relative;
  isolation: isolate;

  &::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
  }

  &:first-of-type {
    &::before {
      background-image: url("../img/journey/bg_journey.jpg");
      background-size: cover;
      background-position: center;
    }

    & h2 {
      font-family: 'Noto Sans JP', sans-serif;
      font-size: 10rem;
    }
  }

  &:nth-of-type(2) {
    padding-bottom: 200px;

    &::before {
      background: #deebf5;
    }
  }

  &:nth-of-type(3) {
    padding-bottom: 50px;

    &::before {
      background: #f0f7fc;
    }

    & h2 {
      & + p {
        margin-top: 70px;
        font-size: 1.8rem;
        font-weight: 500;

        & span {
          font-size: 1.4rem;
        }
      }
    }
  }
}

h2 {
  font-weight: 100;
  font-size: 5.6rem;
  color: #0065b3;
  letter-spacing: 4px;
  font-family: "hiragino-mincho-pron", sans-serif;
  font-weight: 600;
  font-feature-settings: "palt";
  position: relative;
  line-height: 1.2;

  &::before {
    content: "";
    position: absolute;
    bottom: -30px;
    width: 150px;
    height: 15px;
    background: #69c4b5;
  }

  & span {
    font-family: quasimoda, sans-serif;
    font-weight: 400;
    display: block;
    line-height: 1;
    font-size: 10rem;
    width: fit-content;
    margin-bottom: 15px;
  }
}

@media only screen and (max-width: 768px) {
  section {
    padding: 60px 0 100px;

    &:first-of-type {
      & h2 {
        font-size: 9.4vw;
        line-height: 1.4;
      }
    }

    &:nth-of-type(2) {
      padding-bottom: 80px;
    }

    &:nth-of-type(3) {
      padding-bottom: 30px;

      & h2 {
        & + p {
          margin-top: 50px;
          line-height: 1.8;
        }
      }
    }
  }

  h2 {
    font-size: 9vw;
    line-height: 1.5;

    &::before {
      bottom: -25px;
      height: 10px;
    }

    & span {
      font-size: 17vw;
    }
  }
}

.pcObj {
  display: block;
}

.spObj {
  display: none;
}

@media only screen and (max-width: 768px) {

  .telLink a,
  .telLink a:visited,
  .telLink a:hover {
    color: #333;
  }

  .telLink a {
    text-decoration: underline;
  }

  .pcObj {
    display: none;
  }

  .spObj {
    display: block;
  }
}

/****************************************
オープニング
****************************************/
#openingCts {
  position: fixed;
  inset: 0;
  z-index: 999;

  & .curtain {
    position: absolute;
    left: 0;
    width: 100%;
    height: 50%;
    background: #f0f7fc;
    transition: transform .9s cubic-bezier(.77, 0, .18, 1);

    &.top {
      top: 0;
    }

    &.bottom {
      bottom: 0;
    }
  }

  & .countCts {
    --num: 12vw;
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #0065b3;
    font-size: var(--num);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    opacity: 0;
    transition: opacity 1s ease; /* JSのFADEと同じ値 */
    letter-spacing: -.01em;

    &.split {
      transition: transform .9s cubic-bezier(.77, 0, .18, 1);

      &.splitTop {
        clip-path: inset(0 0 50% 0);
      }

      &.splitBottom {
        clip-path: inset(50% 0 0 0);
      }
    }

    & dt {
      position: absolute;
      left: 0;
      right: 0;
      bottom: calc(50% + 0.5em + 0.1em);
      display: flex;
      flex-direction: column;
      align-items: center;
      margin-bottom: -0.17em;

      & img {
        display: block;
        width: 1.9em;
      }

      & .since {
        font-family: din-2014, sans-serif;
        margin: 0.8em 0 0.2em;
        font-size: 0.125em;
        letter-spacing: 0.3em;
        transition: opacity .4s ease;
        font-weight: 700;
        display: block;

        &.hide {
          opacity: 0;
        }
      }
    }

    & dd {
      position: relative;
      top: -0.1em;

      & span {
        display: inline-block;
        font-family: din-2014, sans-serif;
        font-weight: 700;
        line-height: 1;
      }
    }

    &.show {
      opacity: 1;
    }
  }

  &.open {
    & .curtain {
      &.top {
        transform: translateY(-100%);
      }

      &.bottom {
        transform: translateY(100%);
      }
    }

    & .countCts {
      opacity: 0;
      transition-duration: .3s;

      &.split {
        opacity: 1; /* 分割した数字は消さない */
        transition-duration: .9s; /* 既存の .3s を上書き */
      }

      &.splitTop {
        transform: translateY(-50%);
      }

      &.splitBottom {
        transform: translateY(50%);
      }
    }
  }
}

@media only screen and (max-width: 768px) {
  #openingCts {
    & .countCts {
      --num: 26vw;
    }
  }
}

/****************************************
トップ
****************************************/
.topWrap {
  height: 100dvh;
  min-height: 700px;
  position: relative;
  background-image: url("../img/top/bg_top.jpg");
  background-size: cover;
  background-position: center;
  z-index: 5;
}

@media only screen and (max-width: 768px) {
  .topWrap {
    min-height: 100dvh;
  }
}

/**********トップコンテンツ**********/
.topCts {
  position: absolute;
  top: 40%;
  right: 0;
  left: 0;
  margin: auto;
  transform: translateY(-40%);
  text-align: center;

  & dt {
    font-family: "hiragino-mincho-pron", sans-serif;
    font-weight: 600;
    position: relative;
    z-index: 1;
    color: #0065b3;
    font-feature-settings: "palt";
    font-size: 3.6rem;
    letter-spacing: 5px;
    line-height: 1.4;
    filter:
      drop-shadow(0 0 5px rgba(255, 255, 255, 0.7)) drop-shadow(0 0 5px rgba(255, 255, 255, 0.7)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.7)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.7)) drop-shadow(0 0 20px rgba(255, 255, 255, 0.7)) drop-shadow(0 0 20px rgba(255, 255, 255, 0.7)) drop-shadow(0 0 30px rgba(255, 255, 255, 0.7)) drop-shadow(0 0 30px rgba(255, 255, 255, 0.7));
  }

  & dd {
    position: relative;
    width: 430px;
    margin: 40px auto 0;

    &::before {
      content: "";
      position: absolute;
      top: 50%;
      left: 50%;
      width: 180%;
      aspect-ratio: 1 / 1;
      transform: translate(-50%, -50%);
      background: radial-gradient(circle,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 255, 255, 0.8) 40%,
        rgba(255, 255, 255, 0) 70%);
      z-index: 0;
      pointer-events: none;
    }

    & img {
      position: relative;
      z-index: 1;
    }
  }
}

@media only screen and (max-width: 768px) {
  .topCts {
    & dt {
      font-size: 8vw;
      filter:
        drop-shadow(0 0 5px rgba(255, 255, 255, 0.7)) drop-shadow(0 0 5px rgba(255, 255, 255, 0.7)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.7)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.7)) drop-shadow(50px 0 20px rgba(255, 255, 255, 0.7)) drop-shadow(50px 0 20px rgba(255, 255, 255, 0.7)) drop-shadow(-50px 0 20px rgba(255, 255, 255, 0.7)) drop-shadow(-50px 0 20px rgba(255, 255, 255, 0.7));
    }

    & dd {
      width: 65%;
      margin: 30px auto 0;

      &::before {
        content: "";
        position: absolute;
        background: radial-gradient(circle,
          rgba(255, 255, 255, 1) 0%,
          rgba(255, 255, 255, 0.7) 50%,
          rgba(255, 255, 255, 0) 70%);
      }
    }
  }
}

/**********スクロール**********/
.scrollDown {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  text-align: center;
  color: #FFF;

  & dt {
    font-size: 1.4rem;
    margin-bottom: 5px;
    font-weight: 600;
  }

  & dd {
    position: relative;
    width: 2px;
    height: 60px;
    background: transparent;
    overflow: hidden;
    margin: auto;

    &::after {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: #FFF;
      transform: translateY(-100%);
      animation: scrollLine 3s cubic-bezier(0.77, 0, 0.18, 1) infinite;
    }
  }
}

@keyframes scrollLine {
  0% {
    transform: translateY(-100%);
  }

  50% {
    transform: translateY(0%);
  }

  100% {
    transform: translateY(100%);
  }
}

/****************************************
ヘッダー
****************************************/
header {
  position: fixed;
  width: 100%;
  background-color: #FFF;
  padding: 15px 5%;
  z-index: 10;
  text-align: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.18, 1);

  &.show {
    transform: translateY(0);
  }

  & img {
    display: block;
    width: 220px;
    margin: auto;
  }
}

/****************************************
ジャーニー
****************************************/
.journeyCts {
  display: flex;
  flex-direction: column-reverse;
  flex-wrap: wrap;
  margin-top: 60px;

  & dt,
  & dd {
    width: 100%;
  }

  & dt {
    font-family: "hiragino-mincho-pron", sans-serif;
    font-weight: 900;
    color: #0065b3;
    text-align: center;
    font-size: 6.4rem;
    font-feature-settings: "palt";
    letter-spacing: 4px;
    line-height: 1.4;
    margin-top: 50px;
  }

  & dd {
    line-height: 2.2;
    font-size: 2rem;
    font-weight: 500;
  }
}

@media only screen and (max-width: 768px) {
  .journeyCts {
    & dt {
      font-size: 11vw;
      line-height: 1.4;
    }

    & dd {
      line-height: 2;
      font-size: 1.8rem;
    }
  }
}

/****************************************
年表
****************************************/
.historyWrap {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 80px;
}

.historyNavi {
  position: sticky;
  top: 120px;
  width: 80px;
  margin-right: 100px;

  & ul {
    position: relative;

    &::before {
      content: "";
      position: absolute;
      top: 10px;
      bottom: 10px;
      right: 6px;
      width: 2px;
      background: #a7cae5;
    }

    & li {
      &:not(:first-child) {
        margin-top: 35px;
      }

      & a {
        font-family: "din-2014", sans-serif;
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-weight: 700;
        font-size: 2.2rem;
        line-height: 1;
        color: #a7cae5;

        &::after {
          content: "";
          width: 14px;
          height: 14px;
          background: #a7cae5;
          border-radius: 50%;
          transition: 0.2s linear;
        }

        &:hover {
          opacity: 1;
          color: #0065b3;

          &::after {
            background: #0065b3;
          }
        }

        &.active {
          color: #0065b3 !important;

          &::after {
            background: #0065b3;
          }
        }
      }
    }
  }
}

.historyCts {
  flex: 1;

  & > dl {
    margin-top: -15px;

    &:not(:first-of-type) {
      margin-top: 150px;
    }

    &#year2002 {
      & > dd {
        & > ul {
          grid-template-columns: 700px;
        }
      }
    }

    &#year2025 {
      & > dd {
        & > ul {
          &:nth-of-type(2) {
            & > li {
              &:nth-of-type(2) {
                background: none;
                padding: 0;
                border: none;
                box-shadow: none;
                border-radius: 0;

                & .voiceCts {
                  margin-top: -10px;

                  & dt {
                    font-size: 1.6rem;
                    font-weight: 900;
                    color: #0065b3;

                    &::before {
                      content: "■";
                    }
                  }

                  & dd {
                    position: relative;
                    background: #FFF;
                    padding: 15px 20px 20px;
                    border-radius: 10px;
                    margin-top: 10px;

                    &:not(:first-of-type) {
                      margin-top: 20px;
                    }

                    &::after {
                      content: "";
                      position: absolute;
                      bottom: -12px;
                      left: 20px;
                      width: 24px;
                      height: 14px;
                      background: #FFFFFF;
                      clip-path: polygon(0 0, 100% 0, 100% 100%);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }

    &#year2026 {
      & > dd {
        & > ul {
          margin-top: -10px;

          & li {
            &:first-of-type {
              border-radius: 15px;
              aspect-ratio: 3/2;
              overflow: hidden;
              background-image: url("../img/history/img_2026_01.jpg");
              background-size: cover;
              padding: 75px 50px;

              & p {
                font-family: "hiragino-mincho-pron", sans-serif;
                font-weight: 600;
                font-feature-settings: "palt";
                letter-spacing: 4px;
                color: #3f6894;
                text-shadow: 0 0 5px rgba(255, 255, 255, 1), 0 0 15px rgba(255, 255, 255, 1), 0 0 20px rgba(255, 255, 255, 1);

                &:first-child {
                  font-size: 3.6rem;
                }

                &:last-child {
                  line-height: 2.2;
                  font-size: 1.8rem;
                  margin-top: 10px;
                }
              }
            }
          }
        }
      }
    }

    & > dt {
      font-family: "din-2014", sans-serif;
      font-weight: 700;
      font-size: 12rem;
      line-height: 1;
      position: relative;
      color: #0065b3;
      width: fit-content;
      margin-bottom: 20px;
    }

    & > dd {
      & > h3 {
        font-size: 4.2rem;
        font-weight: 900;
        color: #0065b3;
        line-height: 1.4;
        margin-top: 5px;
        padding-bottom: 20px;
        font-feature-settings: "palt";
        letter-spacing: 4px;

        &::after {
          content: "";
          position: absolute;
          bottom: 0;
          left: 0;
          width: 100%;
          height: 5px;
          background: linear-gradient(to right, #009fe8 0%, #009fe8 50%, #deebf5 100%);
        }

        & > span {
          &.yearText {
            display: block;
          }

          &:first-of-type {
            margin-top: 20px;
            font-weight: 900;
            color: #0065b3;
            font-size: 2.4rem;
            line-height: 1;
          }

          &:nth-of-type(2) {
            font-size: 2rem;
            font-weight: 600;
          }
        }
      }

      & > p {
        &:not(.yearText) {
          line-height: 2;
          font-size: 1.8rem;
          margin-top: 15px;

          & span {
            display: block;
            font-weight: 900;

            &::before {
              content: "■";
              color: #0065b3;
            }
          }
        }

        &.yearText {
          font-weight: 900;
          color: #0065b3;
          font-size: 2.4rem;
          line-height: 1;
        }
      }

      & > ul {
        display: grid;
        grid-template-columns: 480px 1fr;
        align-items: start;
        gap: 40px;

        &:not(:has(> li + li)) {
          grid-template-columns: 1fr;
        }

        & > li {
          margin-top: 40px;

          & > span {
            border-radius: 15px;
            overflow: hidden;
            display: block;
          }

          &:nth-of-type(2) {
            margin-top: 45px;
            padding: 10px 30px 30px;
            font-size: 1.4rem;
            border: 1px solid #939393;
            background-color: #FFF;
            box-shadow: 5px 5px 0 #939393;
            border-radius: 20px 0 20px 0;
            corner-shape: bevel round bevel round;
            color: #333;
            font-weight: 500;

            & p {
              margin-top: 10px;

              &.title {
                font-size: 2rem;
                font-weight: 600;
                color: #939393;
                border-bottom: 2px dotted #939393;
                padding-bottom: 10px;
              }

              &.yearText {
                color: #939393;
                margin-bottom: -5px;
                font-weight: 700;

                & span {
                  font-size: 2.2rem;
                  font-family: "din-2014", sans-serif;
                }
              }
            }

            & .worldHistoryCts {
              & dt {
                font-weight: 600;
                font-size: 1.6rem;
                margin-top: 10px;
                color: #939393;

                & i {
                  margin-right: 5px;
                }
              }
            }
          }
        }

        & + * {
          margin-top: 60px;
        }
      }
    }
  }
}

@media only screen and (max-width: 768px) {
  .historyNavi {
    display: none;
  }

  .historyCts {
    & > dl {
      &:not(:first-of-type) {
        margin-top: 80px;
      }

      &#year2002 {
        & > dd {
          & > ul {
            grid-template-columns: 1fr;
          }
        }
      }

      &#year2025 {
        & > dd {
          & > ul {
            &:nth-of-type(2) {
              & > li {
                &:nth-of-type(2) {
                  & .voiceCts {
                    & dt {
                      font-size: 1.8rem;
                    }

                    & dd {
                      font-size: 1.6rem;
                    }
                  }
                }
              }
            }
          }
        }
      }

      &#year2026 {
        & > dd {
          & > ul {
            & li {
              &:first-of-type {
                aspect-ratio: auto; /* 3/2 の固定をやめる */
                background-image: none; /* 背景は ::before に移す */
                overflow: visible;
                padding: 0;
                border-radius: 0;

                &::before {
                  content: "";
                  display: block;
                  aspect-ratio: 3 / 2;
                  background: url("../img/history/img_2026_01.jpg") center / cover no-repeat;
                  border-radius: 15px;
                }

                & p {
                  text-shadow: none;

                  &:first-child {
                    font-size: 8vw;
                    line-height: 1.4;
                    margin-top: 20px;
                  }

                  &:last-child {
                    line-height: 1.8;
                    font-size: 5vw;
                  }
                }
              }
            }
          }
        }
      }

      & > dt {
        font-size: 18vw;
      }

      & > dd {
        & > h3 {
          font-size: 8vw;
          text-align: left;
        }

        & > ul {
          grid-template-columns: 1fr;
          gap: 0;

          & > li {
            margin-top: 30px;

            & > span {
              border-radius: 10px;
            }

            &:nth-of-type(2) {
              margin-top: 30px;
            }
          }

          & + * {
            margin-top: 40px;
          }
        }
      }
    }
  }
}

/****************************************
モーダル
****************************************/
/**********モーダル本体**********/
.slideModal {
  width: min(700px, 92vw);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity .3s ease,
    transform .3s ease,
    overlay .3s allow-discrete,
    display .3s allow-discrete;

  &[open] {
    opacity: 1;
    transform: translateY(0);
  }

  @starting-style {
    &[open] {
      opacity: 0;
      transform: translateY(10px);
    }
  }

  &::backdrop {
    background: rgba(0, 0, 0, 0);
    transition:
      background .3s ease,
      overlay .3s allow-discrete,
      display .3s allow-discrete;
    cursor: pointer;
  }

  &[open]::backdrop {
    background: rgba(0, 0, 0, 0.7);
  }

  @starting-style {
    &[open]::backdrop {
      background: rgba(0, 0, 0, 0);
    }
  }

  & .modalInner {
    position: relative;
  }

  /**********スライダー**********/
  & .slider {
    display: grid;
    background: #FFF;
    border-radius: 10px;
    overflow: hidden;
  }

  & .slide {
    grid-area: 1 / 1;
    margin: 0;
    padding: 20px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility .5s;

    &.active {
      opacity: 1;
      visibility: visible;
    }

    & img {
      display: block;
      width: 100%;
      max-height: 65vh;
      object-fit: contain;
    }

    & figcaption {
      margin-top: 10px;
      font-size: 1.6rem;
      font-weight: 600;
    }
  }

  /*-----前後ボタン・閉じるボタン-----*/
  & .prev,
  & .next,
  & .close {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #0065b3;
    color: #FFF;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    border: 1px solid #0065b3;
    transition: background-color 0.2s linear,
      color 0.2s linear;

    &:hover {
      background-color: #FFF;
      color: #0065b3;
    }
  }

  & .prev,
  & .next {
    top: 50%;
    transform: translateY(-50%);
    transition:
      background-color 0.2s linear,
      color 0.2s linear,
      opacity 0.3s ease,
      visibility 0.3s;

    &.hide {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }
  }

  & .prev {
    left: -30px;
  }

  & .next {
    right: -30px;
  }

  & .close {
    top: -20px;
    right: -20px;
  }

  &.single .prev,
  &.single .next {
    display: none;
  }
}

@media (max-width: 768px) {
  .slideModal {
    & .slide {
      padding: 10px;
    }

    & .prev,
    & .next,
    & .close {
      &:hover {
        background-color: #0065b3;
        color: #FFF;
      }
    }

    & .prev {
      left: -15px;
    }

    & .next {
      right: -15px;
    }

    & .close {
      top: -15px;
      right: -15px;
    }
  }
}

/****************************************
お祝いコメント
****************************************/
.commentList {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 50px;
  margin-top: 40px;

  /*-----カード本体-----*/
  & > li {
    grid-row: span 5; /* 5行分 */
    display: grid;
    grid-template-rows: subgrid;
    row-gap: 0;
    background: #FFF;
    padding: 35px 40px 40px;
    border-radius: 30px 0 30px 0;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);

    /* ----- 1行目：名前エリア ----- */
    & .nameCts {
      grid-row: 1;
      isolation: isolate;

      & dt {
        font-size: 2.8rem;
        font-weight: 600;
        color: #0065b3;
        border-bottom: 3px solid #0065b3;
        padding-bottom: 15px;
      }

      & dd {
        margin-top: 15px;
        font-size: 1.4rem;
        position: relative;

        & span {
          display: block;
          font-weight: 600;
          font-size: 1.8rem;
          margin-bottom: 2px;
        }
      }
    }

    /* ----- 2行目：メッセージ ----- */
    & .comment {
      grid-row: 2;
      margin-top: 20px;
      padding-bottom: 30px;
      border-bottom: 1px dotted #a7cae5;

      & p {
        line-height: 2;

        & span {
          display: flex;
          align-items: center;
          gap: 10px;
          color: #a7cae5;
          font-weight: 600;
          font-size: 1.8rem;

          &::after {
            content: "";
            flex: 1;
            height: 1px;
            background: #a7cae5;
          }
        }
      }
    }

    & .commentMore {
      margin-top: 10px;
      interpolate-size: allow-keywords;

      &::details-content {
        block-size: 0;
        overflow: hidden;
        transition: block-size 0.4s, content-visibility 0.4s allow-discrete;
      }

      &[open]::details-content {
        block-size: auto;
      }

      & summary {
        display: flex;
        align-items: center;
        justify-content: center;
        width: fit-content;
        padding: 5px 15px;
        cursor: pointer;
        list-style: none;
        border: 1px solid #0065b3;
        border-radius: 50px;
        background-color: #0065b3;
        color: #FFF;
        font-weight: 600;
        font-size: 1.4rem;
        line-height: 1.4;
        transition: 0.2s linear;

        &::-webkit-details-marker {
          display: none;
        }

        &:hover {
          opacity: 0.6;
        }

        &::after {
          content: "+";
          margin-left: 5px;
          font-size: 2rem;
          line-height: 1;
          transition: 0.2s linear;
        }
      }

      &[open] summary {
        background-color: #FFF;
        color: #0065b3;

        & span {
          display: none;
        }

        &::before {
          content: "閉じる";
        }

        &::after {
          transform: rotate(45deg);
        }
      }

      & ul {
        list-style-type: disc;
        margin-left: 20px;

        & li {
          margin-top: 10px;

          &::marker {
            color: #0065b3;
          }

          & span {
            display: block;
            margin-bottom: 5px;
            font-weight: 600;
            color: #0065b3;
          }
        }
      }
    }

    /* ----- 3〜4行目：運営施設 ----- */
    & .facilityCts {
      grid-row: 3 / span 2;
      display: grid;
      grid-template-rows: subgrid;
      margin-top: 15px;
      position: relative;

      /* 3行目：見出し */
      & dt {
        grid-row: 1;
        position: relative;
        font-weight: 600;
        color: #0065b3;

        &::before {
          content: "■";
        }

        & a {
          &.moreBtn {
            display: block;
            width: fit-content;
            position: absolute;
            top: 0;
            left: 95px;
            padding: 2px 10px;
            border-radius: 50px;
            background-color: #0065b3;
            color: #FFF;
            font-size: 1.2rem;
            font-weight: 600;
          }
        }
      }

      & dd {
        display: contents;

        /* 4行目：施設名 */
        & > p {
          grid-row: 2;
          padding-bottom: 20px;
          border-bottom: 1px dotted #a7cae5;
          font-size: 1.4rem;
        }

        /* 施設画像 */
        & ul {
          display: none;
        }
      }
    }

    /* ----- 5行目：ロゴ ----- */
    & > img {
      grid-row: 5;
      align-self: center;
      display: block;
      max-width: 100%;
      margin-top: 20px;
    }
  }
}

@media (max-width: 1024px) {
  .commentList {
    margin-top: 30px;

    & > li {
      & .commentMore {
        & ul {
          list-style-type: disc;
          margin-left: 30px;

          & li {
            margin-top: 10px;

            &::marker {
              color: #0065b3;
            }

            & span {
              display: block;
              margin-bottom: 5px;
              font-weight: 600;
              color: #0065b3;
            }
          }
        }

        & .facilityCts {
          & dt {
            & a {
              &.moreBtn {
                font-weight: 600;

                &:hover {
                  background-color: #0065b3;
                  color: #FFF;
                }
              }
            }
          }
        }
      }
    }
  }
}

@media (max-width: 768px) {
  .commentList {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;

    & > li {
      padding: 30px;
      border-radius: 20px 0 20px 0;
    }
  }
}

/****************************************
サンクス
****************************************/
.thanksSection {
  position: relative;
  isolation: isolate;
  padding-bottom: 150px;
  z-index: 2;

  &::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: url("../img/thanks/img_thanks_bg.jpg") center / cover no-repeat;
    -webkit-mask-image: linear-gradient(to bottom,
      transparent 0%,
      #000 20%);
    mask-image: linear-gradient(to bottom,
      transparent 0%,
      #000 20%);
  }

  & h2 {
    text-align: center;
    font-family: "hiragino-mincho-pron", sans-serif;
    font-weight: 600;
    font-size: 7rem;
    margin-bottom: 50px;

    &::before {
      display: none;
    }
  }

  & p {
    text-align: center;
    font-weight: 500;
    margin-top: 15px;
    font-size: 1.8rem;
  }

  & img {
    display: block;
    width: 300px;
    margin: 80px auto 0;
  }
}

@media only screen and (max-width: 768px) {
  .thanksSection {
    & h2 {
      font-size: 12vw;
      margin-bottom: 40px;
      line-height: 1.4;
    }

    & p {
      text-align: justify;
      line-height: 1.8;
    }

    & img {
      width: 70%;
      margin: 60px auto 0;
    }
  }
}

/****************************************
フッタ
****************************************/
#goTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 5;

  & a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
    font-size: 1.8rem;
    border: 1px solid #FFF;
    background-color: #0065b3;
    border-radius: 50%;
    width: 50px;
    height: 50px;
  }
}

footer {
  background-color: #0065b3;
  color: #FFF;
  text-align: center;
  font-size: 1.2rem;
  padding: 5px 5%;
}

body > footer {
  margin-top: auto;
}

/****************************************
アニメーション
****************************************/
.fadeUpDown {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);

  &.active {
    opacity: 1;
    transform: translateY(0);
  }
}

.zoomIn {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);

  &.active {
    opacity: 1;
    transform: scale(1);
  }
}

.moveBar {
  --delay: 0.2s;
  --barColor: #B7D3EA;
  position: relative;
  overflow: hidden;
  color: transparent;

  &::before {
    content: "";
    position: absolute;
    inset: 1.5rem 0 0.5rem;
    background: var(--barColor);
    transform: scaleX(0);
    transform-origin: left center;
  }

  &.animated {
    animation: moveBarTextAnime 1.2s linear var(--delay) forwards;

    &::before {
      animation: moveBarAnime 1.2s cubic-bezier(.65, 0, .35, 1) var(--delay) forwards;
    }
  }
}

@keyframes moveBarAnime {
  0% {
    transform: scaleX(0);
    transform-origin: left center;
  }

  50% {
    transform: scaleX(1);
    transform-origin: left center;
  }

  50.01% {
    transform: scaleX(1);
    transform-origin: right center;
  }

  100% {
    transform: scaleX(0);
    transform-origin: right center;
  }
}

@keyframes moveBarTextAnime {

  0%,
  49.99% {
    color: transparent;
  }

  50%,
  100% {
    color: var(--barColor);
  }
}

.letterIn {
  opacity: 0;
  letter-spacing: 0.3em;
  transition: opacity 1.5s ease, letter-spacing 1s ease;

  &.active {
    opacity: 1;
    letter-spacing: 6px;
  }
}

@media only screen and (max-width: 768px) {
  .letterIn {
    opacity: 0;
    letter-spacing: 0.2em;
    transition: opacity 1.5s ease, letter-spacing 1s ease;
  }
}

@keyframes letterSpacingIn {
  to {
    opacity: 1;
    letter-spacing: 6px;
  }
}
