/* ==================================================
   HEADER
================================================== */

.site-header {
  position: absolute;

  top: 0;
  left: 0;

  z-index: 1000;

  width: 100%;

  padding:
    14px
    24px
    0;

  pointer-events: none;
}


/* ==================================================
   HEADER INNER
================================================== */

.site-header__inner {
  position: relative;

  display: flex;
  align-items: center;

  width: 100%;
  min-height: 120px;

  pointer-events: auto;
}


/* ==================================================
   LOGO
================================================== */

.site-header__logo {
  position: absolute;

  top: -14px;
  left: 40px;

  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100px;
  height: 115px;

  padding: 15px;

  background-color: #EEF7FF;

  border-radius:
    0
    0
    24px
    24px;

  text-decoration: none;
}

.site-header__logo:hover {
  text-decoration: none;
}

.site-header__logo img {
  display: block;

  width: 90px;
  height: auto;
}


/* ==================================================
   COPY
================================================== */

.site-header__copy {
  margin:
    0
    0
    0
    155px;

  color: var(--color-button);

  font-size: 16px;
  font-weight: 600;

  line-height: 1.5;
  letter-spacing: 0.05em;
}


/* ==================================================
   PC NAV
   PCではここだけ追従
================================================== */

.site-header__nav {
  position: fixed;

  top: 40px;
  right: 64px;

  z-index: 1001;

  display: flex;
  align-items: center;

  margin: 0;

  padding: 10px;

  background-color: var(--color-white);

  border-radius: 24px;

  box-shadow:
    0
    3px
    16px
    rgba(51, 51, 51, 0.12);

  pointer-events: auto;
}


/* ==================================================
   NAV LINK
================================================== */

.site-header__nav-link {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 48px;

  padding:
    0
    20px;

  color: var(--color-text);

  font-size: 14px;
  font-weight: 500;

  white-space: nowrap;

  border-radius: 16px;

  text-decoration: none;

  transition:
    color var(--transition),
    background-color var(--transition),
    opacity var(--transition);
}

.site-header__nav-link::before,
.site-header__nav-link::after {
  content: none;
}

.site-header__nav-link:hover {
  color: var(--color-button);

  text-decoration: none;

  border-bottom: 0;
}


/* ==================================================
   CONTACT LINK
================================================== */

.site-header__nav-link--contact {
  min-width: 190px;

  color: var(--color-white);

  background-color: var(--color-button);
}

.site-header__nav-link--contact:hover {
  color: var(--color-white);

  background-color: var(--color-blue-dark);

  opacity: 1;

  text-decoration: none;
}


/* ==================================================
   HAMBURGER
================================================== */

.site-header__hamburger {
  display: none;
}


/* ==================================================
   GLOBAL SCROLL CONTROL
================================================== */

html,
body {
  width: 100%;
  max-width: 100%;

  overflow-x: hidden;
}


/*
  SPメニュー表示中
  背面ページを完全固定
---------------------------------------- */

html.is-menu-open {
  overflow: hidden;
}


/* ==================================================
   SP MENU
================================================== */

.sp-menu {
  position: fixed;

  inset: 0;

  z-index: 9999;

  width: 100%;
  height: 100dvh;

  overflow-x: hidden;
  overflow-y: auto;

  background-color: #0788E8;

  opacity: 0;
  visibility: hidden;

  transform: translateY(-10px);

  transition:
    opacity 0.4s ease,
    visibility 0.4s ease,
    transform 0.4s ease;

  overscroll-behavior: contain;
}

.sp-menu.is-open {
  opacity: 1;
  visibility: visible;

  transform: translateY(0);
}


/* ==================================================
   TOP WHITE AREA
================================================== */

.sp-menu::before {
  content: "";

  position: absolute;

  top: 0;
  left: 0;

  z-index: 0;

  width: 100%;
  height: 68px;

  background-color: #FFFFFF;

  pointer-events: none;
}


/* ==================================================
   SP MENU BACKGROUND IMAGE
================================================== */

.sp-menu__bg {
  position: absolute;

  top: 68px;
  left: 0;

  z-index: 1;

  width: 100%;
  height: 180px;

  background-image: url("https://marinebase.jp/system_panel/uploads/images/sp-bg.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% 100%;

  pointer-events: none;
}


/* ==================================================
   CLOSE BUTTON
================================================== */

.sp-menu__close {
  position: fixed;

  top: 14px;
  right: 15px;

  z-index: 20;

  width: 48px;
  height: 48px;

  padding: 0;

  background-color: var(--color-button);

  border: 0;
  border-radius: 50%;

  cursor: pointer;
}

.sp-menu__close span,
.sp-menu__close div {
  position: absolute;

  top: 50%;
  left: 50%;

  display: block;

  width: 28px;
  height: 2px;

  background-color: #FFFFFF;
}

.sp-menu__close span:first-child,
.sp-menu__close div:first-child {
  transform:
    translate(-50%, -50%)
    rotate(45deg);
}

.sp-menu__close span:last-child,
.sp-menu__close div:last-child {
  transform:
    translate(-50%, -50%)
    rotate(-45deg);
}


/* ==================================================
   SP MENU NAV
================================================== */

.sp-menu__nav {
  position: relative;

  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: center;

  width: 100%;

  padding:
    215px
    24px
    80px;

  text-align: center;
}


/* ==================================================
   MAIN LINK
================================================== */

.sp-menu__main-link {
  display: block;

  margin: 0;

  color: #FFFFFF;

  font-family: var(--font-base);
  font-size: 18px;
  font-weight: 700;

  line-height: 1.5;

  text-decoration: none;
}

.sp-menu__main-link:hover {
  color: #FFFFFF;

  text-decoration: none;
}


/* ==================================================
   GROUP
================================================== */

.sp-menu__group {
  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 10px;

  margin-top: 20px;
}

.sp-menu__group .sp-menu__main-link {
  margin-bottom: 8px;
}


/* ==================================================
   SUB LINK
================================================== */

.sp-menu__sub-link {
  color: #FFFFFF;

  font-family: var(--font-base);
  font-size: 14px;
  font-weight: 400;

  line-height: 1.6;

  text-decoration: none;
}

.sp-menu__sub-link:hover {
  color: #FFFFFF;

  text-decoration: none;
}


/* ==================================================
   STANDALONE LINK
================================================== */

.sp-menu__nav > .sp-menu__main-link {
  margin-top: 36px;
}

.sp-menu__nav > .sp-menu__main-link:first-of-type {
  margin-top: 0;
}


/* ==================================================
   CONTACT
================================================== */

.sp-menu__contact {
  display: flex;
  align-items: center;
  justify-content: center;

  width: min(
    calc(100% - 32px),
    320px
  );

  min-height: 64px;

  margin-top: 44px;

  color: var(--color-button);

  background-color: #FFFFFF;

  border-radius: 20px;

  font-family: var(--font-base);
  font-size: 20px;
  font-weight: 700;

  line-height: 1.4;

  text-decoration: none;
}

.sp-menu__contact:hover {
  color: var(--color-button);

  text-decoration: none;
}


/* ==================================================
   TABLET
================================================== */

@media screen and (max-width: 1024px) {

  /* PC NAV OFF
  ---------------------------------------- */

  .site-header__nav {
    display: none;
  }


  /* HAMBURGER
     ここだけ追従
  ---------------------------------------- */

  .site-header__hamburger {
    position: fixed;

    top: 24px;
    right: 24px;

    z-index: 1001;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;

    width: 52px;
    height: 52px;

    margin: 0;
    padding: 0;

    background-color: var(--color-button);

    border: 0;
    border-radius: 50%;

    cursor: pointer;

    pointer-events: auto;
  }

  .site-header__hamburger span,
  .site-header__hamburger div {
    display: block;

    width: 21px;
    height: 2px;

    background-color: #FFFFFF;
  }


  /* MENU NAV
  ---------------------------------------- */

  .sp-menu__nav {
    padding:
      230px
      28px
      90px;
  }

}


/* ==================================================
   SP
================================================== */

@media screen and (max-width: 768px) {

  /* HEADER
  ---------------------------------------- */

  .site-header {
    padding:
      10px
      15px
      0;
  }

  .site-header__inner {
    min-height: 60px;
  }


  /* LOGO
  ---------------------------------------- */

  .site-header__logo {
    top: -10px;
    left: 8px;

    width: 72px;
    height: 82px;

    padding: 10px;

    border-radius:
      0
      0
      18px
      18px;
  }

  .site-header__logo img {
    width: 54px;
  }


  /* COPY
  ---------------------------------------- */

  .site-header__copy {
    margin-left: 92px;

    font-size: 9px;
  }


  /* HAMBURGER
  ---------------------------------------- */

  .site-header__hamburger {
    top: 14px;
    right: 15px;

    width: 48px;
    height: 48px;
  }

  .site-header__hamburger span,
  .site-header__hamburger div {
    width: 20px;
  }


  /* TOP WHITE
  ---------------------------------------- */

  .sp-menu::before {
    height: 68px;
  }


  /* BACKGROUND IMAGE
  ---------------------------------------- */

  .sp-menu__bg {
    top: 68px;

    width: 100%;
    height: 180px;

    background-position: center top;
    background-size: 100% 100%;
  }


  /* CLOSE
  ---------------------------------------- */

  .sp-menu__close {
    top: 14px;
    right: 15px;

    width: 48px;
    height: 48px;
  }

  .sp-menu__close span,
  .sp-menu__close div {
    width: 28px;
    height: 2px;
  }


  /* NAV
  ---------------------------------------- */

  .sp-menu__nav {
    padding:
      215px
      24px
      80px;
  }


  /* MAIN
  ---------------------------------------- */

  .sp-menu__main-link {
    font-size: 18px;
  }


  /* GROUP
  ---------------------------------------- */

  .sp-menu__group {
    gap: 10px;

    margin-top: 20px;
  }

  .sp-menu__group .sp-menu__main-link {
    margin-bottom: 8px;
  }


  /* SUB
  ---------------------------------------- */

  .sp-menu__sub-link {
    font-size: 14px;
  }


  /* STANDALONE
  ---------------------------------------- */

  .sp-menu__nav > .sp-menu__main-link {
    margin-top: 36px;
  }


  /* CONTACT
  ---------------------------------------- */

  .sp-menu__contact {
    width: min(
      calc(100% - 32px),
      320px
    );

    min-height: 64px;

    margin-top: 44px;

    border-radius: 20px;

    font-size: 20px;
  }

}


/* ==================================================
   SMALL SP
================================================== */

@media screen and (max-width: 480px) {

  .sp-menu::before {
    height: 110px;
  }

  .sp-menu__bg {
    top: 64px;

    height: 400px;
  }

  .sp-menu__nav {
    padding:
      160px
      20px
      70px;
  }

  .sp-menu__main-link {
    font-size: 17px;
  }

  .sp-menu__sub-link {
    font-size: 13px;
  }

  .sp-menu__contact {
    min-height: 60px;

    margin-top: 40px;

    font-size: 18px;
  }

}