/* ========================================
   Layout
======================================== */

@media (min-width: 768px) {
  .l-site {
    padding-left: 315px;
  }

  .l-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;

    width: 315px;
    height: 100vh;

    background: #00063e;
    color: #fff;
  }

  .admin-bar .l-header {
    top: 32px;
    height: calc(100vh - 32px);
  }

  .l-header__inner {
    width: 243px;
    height: 100%;

    margin-inline: auto;
    padding-block: 32px;
  }

  .l-header__logo {
    width: 210px;
    margin: 0 auto 50px;
  }

  .l-header__logo img {
    width: 100%;
    height: auto;
  }

  .l-header__nav-list {
    display: grid;
    gap: 40px;
  }

  .l-header__nav-item > a,
  .l-header__nav-button {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;

    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    text-align: left;
  }

  .l-header__nav-item > a > img:first-child,
  .l-header__nav-button > img:first-child {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex: 0 0 auto;
  }

  .l-header__nav-item span,
  .l-header__nav-button span {
    flex: 1;
  }

  .l-header__arrow,
  .l-header__external {
    width: 14px;
    height: 14px;
    object-fit: contain;
    flex: 0 0 auto;
  }

  .l-header__child-list {
    height: 0;
    margin-top: 0;
    padding-left: 38px;
    overflow: hidden;

    display: grid;
    gap: 18px;

    opacity: 0;

    transition:
      height 0.25s ease,
      margin-top 0.25s ease,
      opacity 0.2s ease;
  }

  .l-header__nav-item.is-open .l-header__child-list {
    margin-top: 20px;
    opacity: 1;
  }

  /* 初期表示時だけアニメーション無効 */
  body:not(.is-ready) .l-header__child-list {
    transition: none;
  }

  .l-header__child-list a {
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
  }

  .l-header__arrow {
    transition: rotate 0.2s ease;
  }

  .l-header__nav-item:not(.is-open) .l-header__arrow {
    rotate: 180deg;
  }

  .l-header__sns {
    display: flex;
    gap: 24px;

    margin-top: 40px;
    padding-left: 38px;
  }

  .l-header__sns a {
    display: block;
    width: 24px;
    height: 24px;
  }

  .l-header__sns img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

/* ========================================
   Main
======================================== */

.l-main {
  min-height: 100vh;
}

/* ========================================
   Footer
======================================== */

.l-footer {
  margin-left: 315px;
  padding: 176px 20px 170px;
  background: #00246f;
  color: #fff;
  text-align: center;
}

.l-footer__inner {
  width: min(100%, 750px);
  margin-inline: auto;
}

.l-footer__logo {
  width: 110px;
  margin: 0 auto 38px;
}

.l-footer__logo img {
  width: 100%;
  height: auto;
}

.l-footer__store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  width: 315px;
  min-height: 45px;

  margin-bottom: 48px;

  border-radius: 4px;
  background: linear-gradient(90deg, #3547ff 0%, #19b8e8 100%);

  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.l-footer__store-button img:first-child {
  width: 20px;
  height: 20px;
}

.l-footer__store-button img:last-child {
  width: 14px;
  height: 14px;
}

.l-footer__company {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}

.l-footer__notice {
  margin: 0 0 28px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.8;
}

.l-footer__support {
  margin: 0 0 16px;
}

.l-footer__support a {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: underline;
}

.l-footer__copy {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
}

@media (max-width: 767px) {
  .l-footer {
    padding: 80px 20px;
  }

  .l-footer__store-button {
    width: min(100%, 315px);
  }
}

/* ========================================
   SP / Header
======================================== */

@media (max-width: 767px) {
  .l-site {
    padding-left: 0;
  }

  .l-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    height: 64px;
    background: #00063e;
  }

  .admin-bar .l-header {
    top: 46px;
  }

  .l-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    height: 100%;
    padding: 0 28px;
  }

  .l-header__logo {
    width: 144px;
    margin: 0;
  }

  .l-header__logo img {
    width: 100%;
    height: auto;
  }

  .l-header__menu-button {
    position: relative;
    z-index: 1100;

    width: 24px;
    height: 16px;

    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .l-header__menu-button span {
    position: absolute;
    left: 0;

    display: block;
    width: 28px;
    height: 2px;

    border-radius: 999px;
    background: #fff;
    transform-origin: center;

    transition:
      top 0.25s ease,
      transform 0.25s ease,
      opacity 0.25s ease;
  }

  .l-header__menu-button span:nth-child(1) {
    top: 0;
  }

  .l-header__menu-button span:nth-child(2) {
    top: 7px;
  }

  .l-header__menu-button span:nth-child(3) {
    top: 14px;
  }

  body.is-menu-open .l-header__menu-button span:nth-child(1) {
    top: 7px;
    transform: rotate(34deg);
  }

  body.is-menu-open .l-header__menu-button span:nth-child(2) {
    opacity: 0;
  }

  body.is-menu-open .l-header__menu-button span:nth-child(3) {
    top: 7px;
    transform: rotate(-34deg);
  }

  /* ========================================
   SP / Header Menu
======================================== */

  @media (max-width: 767px) {
    .l-header__nav {
      position: fixed;
      top: 0;
      right: 0;
      z-index: 1050;
      width: min(80vw, 300px);
      height: 100vh;
      padding: 56px 25px;
      background: #00063e;
      box-shadow: -8px 0 20px rgba(0, 0, 0, 0.25);
      translate: 100% 0;
      transition: translate 0.3s ease;
      overflow-y: auto;
    }

    body.is-menu-open .l-header__nav {
      translate: 0 0;
    }

    .l-header__nav-logo {
      width: 183px;
      margin: 0 0 36px;
    }

    .l-header__nav-logo a,
    .l-header__nav-logo img {
      display: block;
      width: 100%;
      height: auto;
    }

    .l-header__nav-list {
      display: grid;
      gap: 28px;
    }

    .l-header__nav-item > a,
    .l-header__nav-button {
      display: flex;
      align-items: center;
      gap: 10px;
      width: 100%;
      color: #fff;
      font-size: 16px;
      font-weight: 700;
      line-height: 1.5;
      text-align: left;
      text-decoration: none;
    }

    .l-header__nav-item > a > img:first-child,
    .l-header__nav-button > img:first-child {
      flex: 0 0 auto;
      width: 20px;
      height: 20px;
      object-fit: contain;
    }

    .l-header__nav-item span,
    .l-header__nav-button span {
      flex: 1;
    }

    .l-header__arrow,
    .l-header__external {
      flex: 0 0 auto;
      width: 13px;
      height: 13px;
      object-fit: contain;
    }

    .l-header__child-list {
      height: 0;
      margin-top: 0;
      padding-left: 28px;
      overflow: hidden;
      display: grid;
      gap: 13px;
      opacity: 0;
      transition:
        height 0.25s ease,
        margin-top 0.25s ease,
        opacity 0.2s ease;
    }

    .l-header__nav-item.is-open .l-header__child-list {
      margin-top: 16px;
      opacity: 1;
    }

    body:not(.is-ready) .l-header__child-list {
      transition: none;
    }

    .l-header__child-list a {
      color: #fff;
      font-size: 12px;
      font-weight: 700;
      line-height: 1.6;
      text-decoration: none;
    }

    .l-header__arrow {
      transition: transform 0.25s ease;
    }

    .l-header__nav-item:not(.is-open) .l-header__arrow {
      transform: rotate(180deg);
    }

    .l-header__sns {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 32px;
      margin-top: 44px;
      padding-left: 0;
    }

    .l-header__sns a {
      display: block;
      width: 24px;
      height: 24px;
    }

    .l-header__sns img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: contain;
    }
  }

  .l-header__overlay {
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.3s ease,
      visibility 0.3s ease;
  }

  body.is-menu-open .l-header__overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  body.is-menu-open {
    overflow: hidden;
  }

  body:not(.home) .l-main {
    margin-top: 64px;
  }
}

/* ========================================
   SP / Footer
======================================== */

@media (max-width: 767px) {
  .l-footer {
    margin-left: 0;
    padding: 72px 24px 80px;

    background: #00246f;
  }

  .l-footer__inner {
    width: min(100%, 295px);
  }

  .l-footer__logo {
    width: 78px;
    margin-bottom: 32px;
  }

  .l-footer__store-button {
    width: 174px;
    min-height: 34px;
    margin-bottom: 36px;

    gap: 7px;
    border-radius: 4px;

    font-size: 11px;
  }

  .l-footer__store-button img:first-child {
    width: 14px;
    height: 14px;
  }

  .l-footer__store-button img:last-child {
    width: 10px;
    height: 10px;
  }

  .l-footer__company {
    margin-bottom: 14px;
    font-size: 12px;
  }

  .l-footer__notice {
    margin-bottom: 24px;
    font-size: 9px;
    line-height: 1.9;
  }

  .l-footer__support {
    margin-bottom: 14px;
  }

  .l-footer__support a {
    font-size: 10px;
  }

  .l-footer__copy {
    font-size: 9px;
    line-height: 1.8;
  }
}

@media (min-width: 768px) {
  .l-header__nav-logo {
    display: none;
  }
}
