@layer layouts {
  .contents {
    width: 100%;
    background: url("/assets/images/top/bg-cloud-pc.jpg") center no-repeat;
    background-attachment: fixed;
    background-size: cover;
  }

  @media (max-width: 896px) {
    .contents {
      background: none;
    }
  }

  @media (max-width: 896px) {

    .contents::before {
      position: fixed;
      z-index: -1;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: url("/assets/images/top/bg-cloud-sp.jpg") center no-repeat;
      background-size: cover;
      content: "";
    }
  }
}

@layer layouts {
  :root {
    --color-base: #333;
    --color-white: #fff;
    --blue: #004098;
  }
}

@layer layouts {
  :root {
    --font-family-base: "Zen Old Mincho", "YuGothic", "Hiragino Kaku Gothic Pro", "Meiryo", sans-serif;
    --font-size-base: 1rem;
  }
}

@layer layouts {
  :root {
    --max-width-xxl: 1512px;
    --max-width-xl: 1136px;
    --max-width-l: 944px;
    --max-width-m: 752px;
  }
}

@layer layouts {

  #footerbox {
    background-color: #003f97;
  }

  #footer {
    display: flex;
    width: 100%;
    max-width: 1010px;
    justify-content: space-between;
    padding: 18px 60px 45px 40px;
    margin: 0 auto;
  }

  @media (max-width: 896px) {

    #footer {
      flex-direction: column;
      padding: 20px 13px 33px;
    }
  }

  #footer>.grid {
    width: 170px;
    flex: 1 0 auto;
  }

  @media (max-width: 896px) {

    #footer>.grid {
      width: 179px;
    }
  }

  @media (min-width: 897px) {

    #footer>.grid>a>img {
      width: 170px;
    }
  }

  #footer>.footnav {
    display: flex;
    gap: 26px;
  }

  @media (max-width: 896px) {

    #footer>.footnav {
      flex-wrap: wrap;
      padding: 0 33px;
      margin-top: 15px;
      gap: 11px 33px;
    }
  }

  #footer>.footnav>li {
    position: relative;
    padding-inline: 8px 11px;
  }

  #footer>.footnav>li::before {
    position: absolute;
    top: 0;
    left: -2px;
    display: block;
    width: 1px;
    height: 24px;
    background-color: #fff;
    background-color: var(--color-white);
    content: "";
  }

  #footer>.footnav>li>a {
    color: #fff;
    color: var(--color-white);
    font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka,
      "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
    font-size: 0.75rem;
    transition: all 0.3s ease-out;
  }

  @media (min-width: 897px) {

    #footer>.footnav>li>a:hover {
      color: #888;
    }
  }

  address {
    padding: 5px;
    background-color: #bbb;
    clear: both;
    color: #fff;
    font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka,
      "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
    font-size: 0.6875rem;
    font-style: normal;
    text-align: center;
  }

  @media (max-width: 896px) {

    address {
      padding: 5px 5px 8px;
      font-size: 0.75rem;
    }
  }

  .totop {
    position: fixed;
    right: 15px;
    bottom: 15px;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .totop[data-hidden="true"] {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }

  .totop a {
    display: block;
    text-decoration: none;
  }

  .totop img {
    background-color: #818687;
    opacity: 0.7;
  }

  .totop img:hover {
    background-color: #8c9899;
  }
}

@layer layouts {
  header {
    position: relative;
  }
}

@layer layouts {
  .modal-top {
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    display: none;
    width: 100%;
    height: 100dvh;
    background-color: rgb(187 220 239 / 80%);
    padding-inline: 20px;
  }

  .modal-top>.inner {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    width: min(76.38889vw, 1100px);
    height: calc(100dvh - 160px);
    max-height: 640px;
    padding: min(5.20833vw, 75px) 0 min(7.29167vw, 105px);
    background-color: #bbdcef;
    transform: translate(-50%, -50%);
  }

  @media (max-width: 896px) {

    .modal-top>.inner {
      width: 100%;
      max-width: calc(100vw - 40px);
      height: calc(100dvh - 120px);
      padding: 46px 0 11.73333vw;
    }
  }

  .modal-top>.inner::before {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: min(5.20833vw, 75px);
    background: url("/assets/images/top/box-top-pc.png") top center no-repeat;
    background-size: 100%;
    content: "";
  }

  @media (max-width: 896px) {

    .modal-top>.inner::before {
      height: 46px;
      background-image: url("/assets/images/top/box-top-sp.png");
    }
  }

  .modal-top>.inner::after {
    position: absolute;
    bottom: 0;
    left: 0;
    display: block;
    width: 100%;
    height: min(7.29167vw, 105px);
    background: url("/assets/images/top/box-bottom-pc.png") bottom center no-repeat;
    background-size: 100%;
    content: "";
  }

  @media (max-width: 896px) {

    .modal-top>.inner::after {
      bottom: -1px;
      height: 12.26667vw;
      background-image: url("/assets/images/top/box-bottom-sp.png");
    }
  }

  .modal-top>.inner>.close {
    position: absolute;
    top: -24px;
    right: -22px;
    overflow: hidden;
    width: 59px;
    height: 59px;
    cursor: pointer;
    outline: none;
    text-indent: 100%;
    transition: all 300ms ease-out;
    white-space: nowrap;
  }

  @media (max-width: 896px) {

    .modal-top>.inner>.close {
      top: -26px;
      right: -15px;
    }
  }

  .modal-top>.inner>.close::before {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    display: block;
    width: 22px;
    height: 22px;
    background: url("/assets/images/common/icon-close-modal.svg") center no-repeat;
    background-size: contain;
    content: "";
    transform: translate(-50%, -50%);
  }

  .modal-top>.inner>.close::after {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    display: block;
    width: 45px;
    height: 45px;
    border-radius: 100%;
    background-color: #004098;
    background-color: var(--blue);
    content: "";
    transform: translate(-50%, -50%);
    transition: all 300ms ease-out;
  }

  @media (min-width: 897px) {

    .modal-top>.inner>.close:hover::after {
      width: 59px;
      height: 59px;
    }
  }

  .modal-top>.inner>.box {
    height: 100%;
    background: url("/assets/images/top/box-middle-pc.png") center repeat-y;
    background-size: 100%;
    overflow-y: auto;
    padding-inline: min(7.91667vw, 114px);
  }

  @media (max-width: 896px) {

    .modal-top>.inner>.box {
      padding: 0 51px;
      background-image: url("/assets/images/top/box-middle-sp.png");
    }
  }

  :is(.modal-top > .inner > .box)::-webkit-scrollbar {
    width: 10px;
  }

  :is(.modal-top > .inner > .box)::-webkit-scrollbar-track {
    border-radius: 10px;
    background: rgb(187 220 239 / 30%);
  }

  :is(.modal-top > .inner > .box)::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 10px;
    background: #004098;
    background: var(--blue);
    background-clip: content-box;
  }

  :is(:is(.modal-top > .inner > .box)::-webkit-scrollbar-thumb):hover {
    background: color-mix(in srgb, #004098 80%, black);
    background-clip: content-box;
  }

  @supports (color: color-mix(in lch, red, blue)) {
    :is(:is(.modal-top > .inner > .box)::-webkit-scrollbar-thumb):hover {
      background: color-mix(in srgb, var(--blue) 80%, black);
    }
  }

  .modal-top>.inner>.box {

    scrollbar-color: #004098 rgb(187 220 239 / 30%);
    scrollbar-width: thin;
  }

  @supports (color: rgb(0 0 0 / 0)) {
    .modal-top>.inner>.box {

      scrollbar-color: var(--blue) rgb(187 220 239 / 30%);
    }
  }

  .modal-content>.title {
    margin-bottom: 25px;
    color: #004098;
    color: var(--blue);
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1.36;
    text-align: center;
  }

  @media (max-width: 896px) {
    .modal-content>.title {
      margin-bottom: 18px;
      font-size: 1.75rem;
      text-align: left;
    }
  }

  .modal-content>.box-image {
    display: flex;
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    gap: 20px;
  }

  @media (max-width: 896px) {

    .modal-content>.box-image {
      flex-direction: column;
      gap: 10px;
    }
  }

  .modal-content>.box-image>.large {
    width: 100%;
  }

  .modal-content>.box-image>.large>figure>img {
    height: 240px;
    -o-object-fit: cover;
    object-fit: cover;
  }

  @media (max-width: 896px) {

    .modal-content>.box-image>.large>figure>img {
      height: 32.53333vw;
    }
  }

  .modal-content>.box-image>.thumb {
    display: flex;
    width: 200px;
    flex: 1 0 auto;
    flex-direction: column;
    gap: 20px;
  }

  @media (max-width: 896px) {

    .modal-content>.box-image>.thumb {
      display: grid;
      width: 100%;
      grid-gap: 10px;
      gap: 10px;
      grid-template-columns: repeat(2, 1fr);
    }
  }

  .modal-content>.box-image>.thumb>figure>img {
    height: 111px;
    -o-object-fit: cover;
    object-fit: cover;
  }

  @media (max-width: 896px) {

    .modal-content>.box-image>.thumb>figure>img {
      height: 16vw;
    }
  }

  .modal-content>.text {
    margin-top: 25px;
    color: #004098;
    color: var(--blue);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.5;
  }

  @media (max-width: 896px) {

    .modal-content>.text {
      margin-top: 14px;
      font-size: 0.75rem;
      line-height: 1.75;
    }
  }

  .modal-movie {
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    display: none;
    width: 100%;
    height: 100dvh;
    background-color: rgb(0 0 0 / 40%);
    padding-inline: 20px;
  }

  .modal-movie>.inner {
    position: absolute;
    z-index: 3;
    top: calc(50% - 57px);
    left: 50%;
    width: min(1065px, 73.95833vw);
    height: 436px;
    transform: translate(-50%, -50%);
  }

  @media (max-width: 896px) {

    .modal-movie>.inner {
      top: 50%;
      width: 100%;
      max-width: calc(100vw - 28px);
      height: auto;
    }
  }

  .modal-movie>.inner>.close {
    position: absolute;
    top: -42px;
    right: 4px;
    width: 57px;
    height: 34px;
    cursor: pointer;
    outline: none;
    transition: all 300ms ease-out;
  }

  @media (max-width: 896px) {

    .modal-movie>.inner>.close {
      top: -44px;
      right: 0;
    }
  }

  @media (min-width: 897px) {

    .modal-movie>.inner>.close:hover {
      opacity: 0.7;
    }
  }

  .modal-movie>.inner>.box {
    position: relative;
  }

  .modal-movie>.inner>.box::before {
    display: block;
    width: 100%;
    padding-top: 56.25%;
    content: "";
  }

  .modal-movie>.inner>.box>iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
  }
}
