:root {
  --max-base-width: 1140px;
  --padding-x-base-pc: 15px;
  --padding-x-base-sp: 16px;
  --header-height-pc: 92px;
  --header-height-sp: 68px;
}

@font-face {
  font-family: "Noto Sans JP";
  src: url("../fonts/Noto_Sans_JP/NotoSansJP-VariableFont_wght.woff2"),
    url("../fonts/Noto_Sans_JP/static/NotoSansJP-Bold.woff2"),
    url("../fonts/Noto_Sans_JP/static/NotoSansJP-Regular.woff2");
  font-display: swap;
}

html {
  overflow-y: scroll;
}

html,
body {
  padding: 0;
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  color: #18191a;
}

.body-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
}

main {
  flex: 1;
  position: relative;
}

.inner {
  width: 100%;
  max-width: var(--max-base-width);
  padding: var(--header-height-pc) var(--padding-x-base-pc) 0;
  margin: 0 auto;
  &[data-start="top"] {
    padding: 0 var(--padding-x-base-pc);
  }
}

.image-fill {
  position: absolute;
  height: 100%;
  width: 100%;
  inset: 0px;
  color: transparent;
}

.mobile {
  display: none;
}

.tablet {
  display: none;
}

@media screen and (max-width: 1024px) {
  .inner {
    padding: var(--header-height-sp) var(--padding-x-base-sp) 0;
    &[data-start="top"] {
      padding: 0 var(--padding-x-base-sp);
    }
  }
}
/*** 

====================================================================
  Navigation Menu Header
====================================================================

***/

/* Desktop Navigation */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  transition: background-color 0.4s ease;

  .logo-image-white {
    display: none;
  }

  &[data-opacity="true"] {
    background-color: rgb(0 0 0 / 0%);
    box-shadow: unset;

    .logo-image {
      display: none;
    }
    .logo-image-white {
      display: block;
    }
    .nav-items {
      color: #fff;
    }
  }
}

.body-scroll-lock {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
  /* スクロール位置を固定するための調整をJSで行います */
}

.scrolled {
  &[data-opacity="true"] {
    background: #fff;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.05);
    .nav-items {
      color: #18191a;
    }
    .logo-image {
      display: block;
    }
    .logo-image-white {
      display: none;
    }
  }
}

#submenu .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height-pc);
  padding: 0 var(--padding-x-base-pc);
  max-width: var(--max-base-width);
  margin: 0 auto;
}

.logo-container {
  position: relative;
  z-index: 3;
  aspect-ratio: 71/22;
  width: min(13vw, 142px);
}

.logo-image {
  position: absolute;
  height: 100%;
  width: 100%;
  inset: 0px;
}

.nav-menu {
  display: flex;
  justify-content: center;
}

.nav-items {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #18191a;
}

.nav-menu a {
  display: block;
  transition: 0.3s;
  font-size: 14px;
  line-height: 120%;
}

.nav-menu .nav-btn a {
  background-color: #aa0000;
  text-align: center;
  color: #fff;
  border-radius: 24px;
  padding: 10px 0;
  width: 152px;
  opacity: 1;
  transition: opacity 0.3s;
  font-size: 14px;
  font-weight: bold;
  span {
    display: none;
  }
}

.nav-menu .nav-btn a:hover {
  opacity: 0.5;
}

.nav-menu .nav-btn2 a {
  border: 1px solid #fff;
  background-color: #ffffff;
  text-align: center;
  color: #000000;
  border-radius: 24px;
  padding: 10px 0;
  width: 152px;
  opacity: 1;
  transition: opacity 0.3s;
  font-size: 14px;
  font-weight: bold;
  svg {
    display: none;
  }
}

.nav-menu .nav-btn2 a:hover {
  opacity: 0.5;
}

#submenu-mobile {
  display: none;
}

.nav-items-sp {
  display: block;
}

.menu-btn {
  display: none;
}

.nav-sp-header-container {
  display: none;
}

/* mobile
  ------------------------------ */
@media screen and (max-width: 1024px) {
  .header {
    background-color: #fafafa;

    &:has(.show-nav) {
      .logo-image {
        display: none;
      }
      .logo-image-white {
        display: block;
      }
    }
  }

  #submenu .container {
    height: var(--header-height-sp);
    padding: 0 var(--padding-x-base-sp);
  }

  .logo-container {
    width: 142px;
  }

  .nav-menu {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 0;
    overflow: auto;
    transition: width 0.3s ease;
    padding: 84px 24px 37px;
  }

  .nav-items {
    display: none;
  }

  .nav-items li {
    padding-bottom: 8px;
    margin-bottom: 10px;
    border-bottom: 1px solid #ffffff;
    &:nth-child(n + 7) {
      margin-bottom: 0;
    }
  }

  .nav-items a {
    font-weight: bold;
    font-size: 20px;
    color: #fff;
  }

  .nav-item_sub-text {
    margin-top: 3px;
    font-family: "futura-pt", sans-serif;
    font-weight: bold;
    font-size: 14px;
    text-align: left;
    color: #fff;
  }

  .nav-menu .nav-btn2 {
    border-bottom: 0;
    display: flex;
    justify-content: center;
    margin-bottom: 0;
    a {
      position: relative;
      width: 232px;
      font-size: 16px;
      color: #fff;
      background-color: #000000;
      border: 1px solid #fff;
      svg {
        display: inline-block;
        position: absolute;
        right: 12px;
      }
    }
  }

  .nav-menu .nav-btn {
    display: none;
    border-bottom: 0;
    margin-top: 32px;
    justify-content: center;
    padding-bottom: 0;
    a {
      position: relative;
      width: 232px;
      font-size: 16px;
      width: 236px;
      padding: 13px 0;
      border-radius: 22px;
      background: #fff;
      border: 1px solid #a00;
      box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
      font-weight: bold;
      font-size: 14px;
      color: #a00;
      span {
        display: inline-block;
      }
    }
  }

  .nav-sp-header-container {
    display: flex;
    gap: 4px;
    align-items: center;
  }

  .red-button {
    background-color: #aa0000;
    text-align: center;
    color: #fff;
    border-radius: 24px;
    padding: 10px 0;
    width: 112px;
    opacity: 1;
    transition: opacity 0.3s;
    font-size: 14px;
    font-weight: bold;
    &:hover {
      opacity: 0.5;
    }
  }

  .nav-sp-header-container .red-button {
    position: relative;
    z-index: 2;
  }

  /* ハンバーガーメニューのスタイル */
  .menu-btn {
    display: block;
    position: relative;
    z-index: 2;
    cursor: pointer;
  }

  .menu-btn-icon {
    position: relative;
    aspect-ratio: 1/1;
    width: 44px;
  }

  .menu-btn-close {
    display: none;
  }

  /* ハンバーガーメニューがクリックされた時の動作 */
  .show-nav {
    width: 100%;
    z-index: 2;
    background-image: url("../image/common/header-bg-tablet.png");
    background-repeat: no-repeat;
    background-size: cover;
  }

  .show-nav .nav-items {
    display: block;
  }

  .show-btn .menu-btn-open {
    display: none;
  }

  .show-btn .menu-btn-close {
    display: block;
  }
}

@media screen and (max-width: 769px) {
  .show-nav {
    background-image: url("../image/common/header-bg-sp.png");
  }

  .nav-menu .nav-btn {
    display: flex;
  }

  .nav-sp-header-container .red-button {
    z-index: 0;
  }
}

/*** 
====================================================================
  footer
====================================================================
***/

.footer {
  max-width: var(--max-base-width);
  padding: 0 var(--padding-x-base-pc);
  margin: 0 auto;
  width: 100%;
}

.footer .container {
  margin: 0 calc(50% - 50vw);
  padding: 48px calc(50vw - 50%);
  background: linear-gradient(#5c6064 0%, #18191a 100%);
}

.footer_items {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer_smarec_logo {
  position: relative;
  aspect-ratio: 13/4;
  height: 64px;
}

.footer_smarec_logo-text {
  margin-top: 8px;
  font-weight: bold;
  font-size: 14px;
  text-align: left;
  color: #fff;
}

.footer_links {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
}

.footer_links-item {
  border-left: 1px solid #fff;
  padding-left: 24px;
  a {
    color: #fff;
    font-size: 14px;
    font-weight: 400;
  }
}

.footer_links-item:first-child {
  border-left: unset;
}

.footer .container2 {
  padding: 36px 0 24px;
}

.footer2_image {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
}

.footer2_osaki_logo {
  position: relative;
  aspect-ratio: 21 / 5;
  height: 40px;
}

.footer2_logo-text {
  font-family: "futura-pt", sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 32px;
  color: #2e2a29;
}

.footer2_copy-light {
  text-align: center;
  font-family: "futura-pt", sans-serif;
  font-weight: 500;
  font-size: 12px;
  line-height: 21px;
  color: #555;
  margin-top: 24px;
}

@media screen and (max-width: 769px) {
  .footer {
    padding: 22px 0 24px;
    padding: 0 var(--padding-x-base-sp);
  }

  .footer .container {
    padding: 36px calc(50vw - 50%);
  }

  .footer_items {
    flex-direction: column;
    justify-content: center;
    gap: 45px;
  }

  .footer_links {
    gap: 12px;
  }

  .footer_links-item {
    padding-left: 12px;
    a {
      color: #fff;
      font-size: 12px;
      font-weight: 500;
    }
  }

  .footer2_image {
    gap: 16px;
  }

  .footer2_osaki_logo {
    height: 24px;
  }

  .footer2_logo-text {
    font-size: 14px;
  }

  .footer2_copy-light {
    margin-top: 36px;
  }
}

@media screen and (max-width: 1024px) {
  .tablet {
    display: block;
  }
}

@media screen and (max-width: 769px) {
  .desktop {
    display: none;
  }
  .mobile {
    display: block;
  }
}
