/*
 * Shared page header
 * Mirrors the editable TOP page header at the 1442px PC design width.
 */
.header.site-header,
.header.site-header.is-scrolled {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  height: 132px;
  margin-left: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  transition: none;
}

.site-header,
.site-header *,
.site-header *::before,
.site-header *::after {
  box-sizing: border-box;
}

.site-header {
  --header-nav-color: #39779d; --text-v37-header-nav-color: #29465c;
  --header-nav-shadow: 0 1px 1px rgba(255, 255, 255, .55); --text-v37-header-nav-shadow: 0 1px 1px rgba(255, 255, 255, .55);
}

.site-header.site-header--light {
  --header-nav-color: #fff; --text-v37-header-nav-color: #fff;
  --header-nav-shadow: 0 1px 3px rgba(41, 50, 57, .28); --text-v37-header-nav-shadow: 0 1px 3px rgba(41, 50, 57, .28);
}

.site-header.site-header--dark,
.site-header.site-header--dark.is-scrolled {
  --header-nav-color: #39779d; --text-v37-header-nav-color: #29465c;
  --header-nav-shadow: 0 1px 1px rgba(255, 255, 255, .72); --text-v37-header-nav-shadow: 0 1px 1px rgba(255, 255, 255, .72);
}

.site-header a {
  color: inherit;
  text-decoration: none;
}

.header.site-header .header__logo.site-header__logo {
  position: absolute;
  top: 56px;
  left: clamp(30px, 3.33vw, 48px);
  z-index: 2;
  display: block;
  width: clamp(218px, 17.75vw, 256px);
  height: 70px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.header.site-header .header__logo.site-header__logo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .28s ease;
}

.site-header__logo-image--light {
  opacity: 0;
}

.site-header.site-header--light:not(.site-header--logo-dark):not(.is-scrolled) .site-header__logo-image--dark {
  opacity: 0;
}

.site-header.site-header--light:not(.site-header--logo-dark):not(.is-scrolled) .site-header__logo-image--light {
  opacity: 1;
}

.site-header.is-scrolled {
  --header-nav-color: #39779d; --text-v37-header-nav-color: #29465c;
  --header-nav-shadow: 0 1px 1px rgba(255, 255, 255, .72); --text-v37-header-nav-shadow: 0 1px 1px rgba(255, 255, 255, .72);
}

.site-header .site-header__right {
  position: static;
  display: block;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
}

.site-header .site-header__nav {
  position: absolute;
  top: 36px;
  left: clamp(360px, 31.9vw, 460px);
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.22vw, 32px);
  width: auto;
  min-height: 44px;
  margin: 0;
  color: var(--text-v37-header-nav-color);
  white-space: nowrap;
}

.site-header .site-header__nav a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 2px;
  color: var(--text-v37-header-nav-color);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, sans-serif;
  font-size: clamp(15px, 1.18vw, 17px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .035em;
  text-shadow: var(--text-v37-header-nav-shadow);
}

.site-header .site-header__nav a::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  width: auto;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease;
}

.site-header .site-header__nav a:hover::after,
.site-header .site-header__nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-header .site-header__menu {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
}

.site-header .site-header__menu-trigger {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 0;
  padding: 8px 2px;
  border: 0;
  background: transparent;
  color: var(--text-v37-header-nav-color);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, sans-serif;
  font-size: clamp(15px, 1.18vw, 17px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .035em;
  text-shadow: var(--text-v37-header-nav-shadow);
  white-space: nowrap;
  cursor: pointer;
}

.site-header .site-header__menu-trigger::after {
  width: 6px;
  height: 6px;
  margin-top: -4px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  content: "";
  transform: rotate(45deg);
  transition: transform .25s ease;
}

.site-header .site-header__menu.is-open .site-header__menu-trigger::after,
.site-header .site-header__menu:hover .site-header__menu-trigger::after,
.site-header .site-header__menu:focus-within .site-header__menu-trigger::after {
  margin-top: 3px;
  transform: rotate(225deg);
}

.site-header .site-header__submenu {
  position: absolute;
  top: 48px;
  left: 50%;
  z-index: 20;
  display: grid;
  width: 224px;
  padding: 12px;
  border: 1px solid rgba(57, 119, 157, .18);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 42px rgba(57, 119, 157, .16);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  pointer-events: none;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.site-header .site-header__menu.is-open .site-header__submenu,
.site-header .site-header__menu:hover .site-header__submenu,
.site-header .site-header__menu:focus-within .site-header__submenu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.site-header .site-header__submenu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 0;
  padding: 12px 13px;
  color: #29465c;
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: .045em;
  text-shadow: none;
  transition: color .2s ease, background-color .2s ease;
}

.site-header .site-header__submenu a::before {
  order: 2;
  margin-left: 12px;
  content: "→";
  font-size: 11px;
}

.site-header .site-header__submenu a::after {
  display: none;
}

.site-header .site-header__submenu a:hover,
.site-header .site-header__submenu a:focus-visible {
  background: #eff4f7;
  color: #5689b5;
}

.site-header .site-header__contact {
  position: absolute;
  top: 12px;
  right: 0;
  left: auto;
  display: block;
  width: clamp(200px, 16.02vw, 231px);
  height: 110px;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, sans-serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 110px;
  letter-spacing: .06em;
  text-align: center;
}

.site-header .site-header__contact img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.site-header .site-header__contact > span {
  position: relative;
  z-index: 1;
  display: inline-block;
  transform: translate(-9px, -5px);
}

.site-header .hamburger {
  display: none;
}

@media (max-width: 1100px) {
  .header.site-header,
  .header.site-header.is-scrolled {
    left: 0;
    width: 100%;
    height: 84px;
    margin-left: 0;
    overflow: visible;
  }

  .header.site-header .header__logo.site-header__logo {
    top: 17px;
    left: 20px;
    width: 183px;
    height: 50px;
  }

  .site-header .site-header__nav,
  .site-header .site-header__submenu,
  .site-header .site-header__contact {
    display: none;
  }

  .site-header .hamburger {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1010;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(57, 119, 157, .94);
    cursor: pointer;
  }

  .site-header .hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    transition: transform .25s ease;
  }

  .site-header .hamburger.is-open span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
  }

  .site-header .hamburger.is-open span:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
  }
}

/* PC header: keep the logo, navigation and consultation button on one axis. */
@media (min-width: 1101px) {
  .header.site-header,
  .header.site-header.is-scrolled {
    display: flex;
    align-items: center;
    gap: clamp(24px, 2.35vw, 34px);
    padding: 0 clamp(26px, 3.33vw, 48px);
    overflow: visible;
  }

  .header.site-header .header__logo.site-header__logo {
    position: relative;
    top: auto;
    left: auto;
    flex: 0 0 clamp(218px, 17.75vw, 256px);
    width: clamp(218px, 17.75vw, 256px);
    height: 70px;
  }

  .site-header .site-header__right {
    position: static;
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(24px, 2.35vw, 34px);
    min-width: 0;
  }

  .site-header .site-header__nav {
    position: static;
    top: auto;
    left: auto;
    flex: 0 1 auto;
    gap: clamp(20px, 2vw, 29px);
    min-height: 44px;
  }

  .header.site-header .site-header__right .site-header__contact {
    position: relative;
    top: auto;
    right: auto;
    flex: 0 0 188px;
    width: 188px;
    height: 58px;
    line-height: 1;
  }

  .header.site-header .site-header__right .site-header__contact > span {
    transform: none;
  }
}

/* Shared footer social icons. Account URLs can be added by replacing spans with links. */
.footer__sns {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__sns .footer__sns-link {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: rgba(255, 255, 255, .9);
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 50%;
}

.footer__sns .footer__sns-mark--instagram {
  position: relative;
  display: block;
  width: 17px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.footer__sns .footer__sns-mark--instagram::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border: 2px solid currentColor;
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
}

.footer__sns .footer__sns-mark--instagram::after {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 3px;
  height: 3px;
  background: currentColor;
  border-radius: 50%;
  content: "";
}

.footer__sns .footer__sns-mark--youtube {
  position: relative;
  display: block;
  width: 20px;
  height: 14px;
  border: 0;
  background: currentColor;
  border-radius: 4px;
}

.footer__sns .footer__sns-mark--youtube::after {
  position: absolute;
  top: 50%;
  left: 53%;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid #39779d;
  content: "";
  transform: translate(-50%, -50%);
}
