@import url("https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@400;600;700&display=swap");

/* Shared site components: header, menu, consultation CTA, and footer. */

.site-header {
  align-items: center;
}

.global-nav {
  margin-left: auto;
  margin-right: 64px;
}

.global-nav a {
  position: relative;
}

.global-nav a:after {
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transition: width .3s;
}

.global-nav a:hover:after {
  width: 100%;
}

.menu-button,.sp-menu {
  display: none;
}

.hero__consult i {
  font-style: normal;
  transform: rotate(90deg);
}

.footer__inner {
  justify-content: space-between;
}

.footer__copy {
  width: min(1200px,calc(100% - 80px));
  margin: 55px auto 0;
  font-size: 8px;
  opacity: .5;
}

@media (max-width:767px) {
  .site-header {
    position: absolute;
    padding: 0 25px;
    background: #fff0;
  }

  .menu-button {
    position: absolute;
    display: block;
    z-index: 61;
  }

  .menu-button span {
    position: absolute;
    right: 0;
    width: 61px;
    height: 1px;
    background: var(--navy);
    transition: transform .35s,top .35s,width .35s;
  }

  .menu-button span:nth-child(1) {
    top: 7px;
  }

  .menu-button span:nth-child(2) {
    top: 14px;
    width: 35px;
  }

  .menu-button span:nth-child(3) {
    top: 21px;
  }

  .menu-button.is-open span:nth-child(1) {
    top: 14px;
    transform: rotate(13deg);
  }

  .menu-button.is-open span:nth-child(2) {
    opacity: 0;
  }

  .menu-button.is-open span:nth-child(3) {
    top: 14px;
    transform: rotate(-13deg);
  }

  .sp-menu {
    flex-direction: column;
  }

  .sp-menu__cta {
    align-items: center;
    margin-top: auto;
  }

  .sp-menu__cta:after {
    content: "→";
  }

  .consultation {
    min-height: 310px;
  }

  .footer {
    padding-top: 50px;
  }

  .footer__inner {
    display: block;
  }

  .footer__copy {
    width: calc(100% - 50px);
    margin-top: 40px;
  }
}

.menu-button img {
  transform-origin: center;
  transition: opacity .28s ease,transform .38s cubic-bezier(.22,1,.36,1),visibility 0s linear .38s;
}

.menu-button__open {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.menu-button__close {
  transform: rotate(-18deg) scale(.72);
}

.menu-button.is-open .menu-button__open {
  transform: rotate(18deg) scale(.72);
  transition-delay: 0s;
}

.menu-button.is-open .menu-button__close {
  transform: rotate(0deg) scale(1);
  transition-delay: 0s;
}

@media (max-width:767px) {
  .sp-menu__cta {
    justify-content: center;
  }
}

.site-header {
  position: fixed;
  z-index: 60;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 72px;
  padding: 0;
  background: transparent;
}

.site-header__logo {
  position: absolute;
  top: 18px;
  left: 22px;
  display: block;
  width: 126px;
  height: 36px;
}

.site-header__logo img {
  display: block;
  object-fit: cover;
}

.global-nav {
  position: absolute;
  top: 25px;
  right: 120px;
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 0;
  font-family: "Shippori Mincho", "Noto Serif JP", serif;
  font-size: 14px;
  font-weight: 600;
  line-height: normal;
  letter-spacing: 0;
  white-space: nowrap;
  transition: color .3s ease;
}

.site-header__logo img,
.menu-button img {
  transition: filter .3s ease, opacity .28s ease, transform .38s cubic-bezier(.22,1,.36,1), visibility 0s linear .38s;
}

.site-header.is-on-dark .global-nav {
  color: #fff;
}

.site-header.is-on-dark .site-header__logo img,
.site-header.is-on-dark .menu-button img {
  filter: brightness(0) invert(1);
}

.site-header.is-intro-pending .site-header__logo,
.site-header.is-intro-pending .global-nav,
.site-header.is-intro-pending .menu-button {
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px);
}

.site-header__logo,
.global-nav,
.menu-button {
  transition: color .3s ease, opacity .7s ease, transform .7s ease, visibility 0s linear;
}

.menu-button {
  position: absolute;
  z-index: 61;
  top: 31px;
  right: 16px;
  display: block;
  width: 49px;
  height: 15px;
  padding: 0;
  border: 0;
  background: transparent;
}

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

.menu-button__close {
  visibility: hidden;
  opacity: 0;
}

.menu-button.is-open .menu-button__open {
  visibility: hidden;
  opacity: 0;
}

.menu-button.is-open .menu-button__close {
  visibility: visible;
  opacity: 1;
}

.sp-menu {
  display: none;
}

.hero__consult {
  box-sizing: border-box;
  position: fixed;
  z-index: 3;
  top: 267px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 48px;
  width: 49px;
  height: 233px;
  padding-top: 64px;
  border-radius: 4px;
  background: #030c3d;
  color: #fff;
  font-family: "Shippori Mincho","Noto Serif JP",serif;
  font-size: 18px;
  letter-spacing: 1px;
  font-weight: 100;
  line-height: 18px;
  writing-mode: vertical-rl;
}

.hero__consult img {
  width: 21px;
  height: 8px;
  object-fit: fill;
}

@media (max-width:767px) {
  .site-header {
    height: 81px;
  }

  .site-header__logo {
    top: 26px;
    left: 25px;
    width: 126px;
    height: 36px;
  }

  .global-nav {
    display: none;
  }

  .menu-button {
    top: 35px;
    right: 25px;
    width: 61.25px;
    height: 15.5px;
  }

  .menu-button span {
    display: none;
  }

  .hero__consult {
    display: none;
  }

  .sp-menu {
    position: fixed;
    z-index: 55;
    top: 0;
    left: 0;
    display: block;
    visibility: hidden;
    width: 100%;
    height: 655px;
    padding: 0;
    background: linear-gradient(#fff 0 81px,#030c3d 81px 655px);
    opacity: 0;
  }

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

  .sp-menu__nav {
    position: absolute;
    top: 122px;
    left: 25px;
    display: flex;
    flex-direction: column;
    gap: 0;
    color: #fff;
    font-family: "Shippori Mincho", "Noto Serif JP", serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 50px;
  }

  .sp-menu__cta {
    position: absolute;
    top: 531.65px;
    left: 25px;
    display: grid;
    width: 325px;
    height: 68.35px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border-radius: 5.58px;
    background: #fff;
    color: #030c3d;
    font-family: "Shippori Mincho", "Noto Serif JP", serif;
    font-size: 20px;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 2.8px;
    place-items: center;
    writing-mode: horizontal-tb;
  }

  .sp-menu__cta:after {
    display: none;
  }

  .sp-menu__cta img {
    position: absolute;
    top: 28.6px;
    right: 14.65px;
    width: 29.29px;
    height: 11.16px;
  }
}

.footer {
  position: relative;
  z-index: 2;
  isolation: isolate;
}

.footer nav>div:nth-child(2) {
  font-family: "Shippori Mincho", "Noto Serif JP", serif;
  font-weight: 400;
}

@media (min-width:768px) {
  .consultation>div {
    top: 10px;
  }
}

.consultation p {
  transform: translateY(10px);
}

@media (max-width:767px) {
  .consultation p {
    transform: none;
  }
}

.footer {
  height: 463px;
  padding: 0;
  background: #030c3d;
  color: #fff;
  font-family: "Shippori Mincho","Noto Serif JP",serif;
}

.footer__inner {
  position: relative;
  display: block;
  width: 1290px;
  height: 463px;
  margin: 0 auto;
}

.footer__brand {
  position: absolute;
  top: 143px;
  left: 0;
}

.footer__brand img {
  display: block;
  filter: none;
  object-fit: cover;
}

.footer__brand p {
  width: 468px;
  margin-top: 21px;
  color: #fff;
  font-family: "Shippori Mincho","Noto Serif JP",serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 28px;
  opacity: 1;
}

.footer nav {
  position: absolute;
  top: 136px;
  right: -15px;
  display: grid;
  grid-template-columns: 145px 189px;
  gap: 117px;
  margin: 0;
  font-family: "Shippori Mincho", "Noto Serif JP", serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 32px;
}

.footer nav>div {
  display: flex;
  flex-direction: column;
}

.footer__copy {
  position: absolute;
  bottom: 28px;
  left: 0;
  display: block;
  width: 100%;
  margin: 0;
  color: #fff;
  font-family: "Shippori Mincho","Noto Serif JP",serif;
  font-size: 12px;
  line-height: 1;
  text-align: center;
  opacity: 1;
}

@media (max-width:767px) {
  .footer {
    height: auto;
    min-height: 610px;
    padding: 70px 0;
  }

  .footer__inner {
    position: static;
    width: calc(100% - 50px);
    height: auto;
  }

  .footer__brand {
    position: static;
  }

  .footer__brand p {
    width: 100%;
    margin-top: 21px;
    font-size: 12px;
    line-height: 2;
  }

  .footer nav {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 56px;
    font-size: 12px;
    line-height: 2.35;
  }
}

.consultation {
  position: relative;
  display: grid;
  place-items: center;
  height: 486px;
  min-height: 0;
  background: url("../image/consultation-bg.webp") center / cover no-repeat;
  color: #fff;
}

.consultation:before {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.72);
  content: "";
}

.consultation>div {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 1290px;
}

.consultation p {
  font-family: "Shippori Mincho", "Noto Serif JP", serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 3.2px;
}

.consultation__button {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 354px;
  height: 72px;
  padding: 0 29px 0 118px;
  border: 1px solid #fff;
  border-radius: 40px;
  font-family: "Shippori Mincho", "Noto Serif JP", serif;
  font-size: 28px;
  font-weight: 700;
}

.consultation__button img {
  width: 28.4px;
  height: 19.46px;
  transition: transform .3s ease;
}

.consultation__button:hover img,
.consultation__button:focus-visible img {
  transform: translateX(6px);
}

/* Keep the shared consultation copy consistent with the TOP page. */
.consultation__button span {
  font-family: "Shippori Mincho", "Noto Serif JP", serif;
}

@media (max-width:767px) {
  .sp-menu__nav {
    line-height: 44px;
  }

  .consultation {
    height: 360px;
    background-position: center;
    background-size: cover;
  }

  .consultation>div {
    display: block;
    width: calc(100% - 50px);
  }

  .consultation p {
    font-size: 27px;
    letter-spacing: 1.5px;
  }

  .consultation__button {
    width: 100%;
    height: 64px;
    margin-top: 45px;
    padding: 0 24px 0 112px;
    font-size: 22px;
  }
}

@media (min-width:768px) {
  .menu-button {
    right: 31px;
  }

  .sp-menu {
    position: fixed;
    z-index: 55;
    top: 0;
    display: block;
    visibility: hidden;
    width: 400px;
    height: 100dvh;
    padding: 0;
    background: linear-gradient(#fff 0 72px,#030c3d 72px);
    opacity: 0;
    transition: transform .4s cubic-bezier(.22,1,.36,1),opacity .3s ease,visibility 0s linear .4s;
  }

  .sp-menu.is-open {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
  }

  .sp-menu__nav {
    position: absolute;
    top: 120px;
    left: 40px;
    display: flex;
    flex-direction: column;
    gap: 0;
    color: #fff;
    font-family: "Shippori Mincho", "Noto Serif JP", serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 52px;
  }

  .sp-menu__cta {
    position: absolute;
    right: 25px;
    bottom: 55px;
    left: 25px;
    display: grid;
    width: 350px;
    height: 68px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border-radius: 6px;
    background: #fff;
    color: #030c3d;
    font-family: "Shippori Mincho", "Noto Serif JP", serif;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 2.8px;
    place-items: center;
    justify-content: center;
  }

  .sp-menu__cta:after {
    display: none;
  }

  .sp-menu__cta img {
    position: absolute;
    top: 28px;
    right: 15px;
    width: 29.29px;
    height: 11.16px;
  }
}

@media (max-width:767px) {
  .sp-menu {
    transition: transform .4s cubic-bezier(.22,1,.36,1),opacity .3s ease,visibility 0s linear .4s;
  }

  .sp-menu.is-open {
    transition-delay: 0s;
  }
}

@media (min-width:768px) {
  .sp-menu {
    right: 0;
    left: auto;
    transform: translateX(100%);
  }

  .sp-menu.is-open {
    transform: translateX(0);
  }
}

@media (max-width:767px) {
  .sp-menu {
    transform: translateX(100%);
  }

  .sp-menu.is-open {
    transform: translateX(0);
  }
}

@media (min-width:768px) and (max-width:1199px) {
  .site-header {
    height: 72px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(8px);
  }

  .global-nav {
    display: none;
  }

  .menu-button {
    right: 32px;
  }

  .hero__consult {
    right: 16px;
  }

  .consultation {
    height: 400px;
    background-position: center;
    background-size: cover;
  }

  .consultation>div {
    width: calc(100% - 80px);
  }

  .consultation p {
    font-size: clamp(28px,3.5vw,38px);
  }

  .consultation__button {
    width: 300px;
    padding-left: 80px;
    font-size: 24px;
  }

  .footer {
    height: auto;
    min-height: 430px;
    padding: 110px 40px;
  }

  .footer__inner {
    display: flex;
    width: 100%;
    height: auto;
  }

  .footer__brand,.footer nav {
    position: static;
  }

  .footer__brand p {
    width: min(420px,45vw);
  }

  .footer nav {
    margin-left: auto;
    gap: 60px;
  }
}

@media (min-width:1200px) and (max-width:1399px) {
  .consultation>div {
    width: calc(100% - 100px);
  }

  .consultation p {
    font-size: clamp(32px,3vw,40px);
  }

  .consultation__button {
    flex: 0 0 330px;
    padding-left: 96px;
    font-size: 25px;
  }

  .footer {
    height: auto;
    min-height: 463px;
    padding: 130px 50px;
  }

  .footer__inner {
    display: flex;
    width: 100%;
    height: auto;
  }

  .footer__brand,.footer nav {
    position: static;
  }

  .footer__brand p {
    width: min(468px,42vw);
  }

  .footer nav {
    margin-left: auto;
    gap: 70px;
  }
}

@media (prefers-reduced-motion:reduce) {
  .consultation__button img { transition: none; }
}
