@charset "utf-8";

.page-contact .site-header {
  background: #021023;
}

.page-contact .site-header.is-scrolled {
  background: rgba(2, 13, 34, 0.96);
}

.page-contact .footer-cta {
  margin-top: 0;
}

/* =========================================================
  contact page
========================================================= */
.contact-page {
  position: relative;
  isolation: isolate;
  padding-top: 74px;
  padding-bottom: 100px;
  overflow: hidden;
  color: var(--color-navy);
}

.contact-page.top-pattern-bg::before {
  top: 520px;
}

.contact-page::after {
  content: "";
  position: absolute;
  z-index: -3;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}


/* =========================================================
  hero
========================================================= */
.contact-hero {
  position: relative;
}

.contact-hero__inner {
  width: min(calc(100% - 80px), 1000px);
  margin: 0 auto;
  padding-top: clamp(116px, 10.0694vw, 145px);
  text-align: center;
}

.contact-hero__side-label {
  position: absolute;
  top: 122px;
  left: max(34px, calc(50% - 530px));
  color: var(--color-navy);
  font-family: var(--font-en);
  font-size: clamp(24px, 2.2222vw, 32px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  transform: rotate(90deg);
  transform-origin: left top;
  white-space: nowrap;
}

.contact-hero__eyebrow {
  font-size: clamp(24px, 2.1528vw, 31px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.36em;
}

.contact-hero__title {
  margin-top: 4px;
  font-family: var(--font-en);
  font-size: clamp(42px, 4.0278vw, 58px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.15em;
}

.contact-hero__lead {
  margin-top: clamp(44px, 3.9583vw, 45px);
  color: #111;
  font-size: clamp(24px, 2.0833vw, 30px);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.25em;
}

.contact-hero__description {
  width: 870px;
  max-width: 100%;
  margin: clamp(22px, 2.083vw, 30px) auto 0;
  color: #111;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.65;
  letter-spacing: 0.015em;
  text-align: left;
}

/* =========================================================
  contact content / switch
========================================================= */
.contact-content {
  padding-top: clamp(40px, 4.1667vw, 60px);
}

.contact-content__inner {
  width: min(calc(100% - 80px), 1000px);
  margin: 0 auto;
}

.contact-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid #0b1748;
  background: rgba(255, 255, 255, 0.7);
}

.contact-switch__item {
  position: relative;
  display: grid;
  padding: 29px 76px 27px 38px;
  align-content: center;
  color: #0b1748;
  transition: color 0.35s ease, background-color 0.35s ease;
}

.contact-switch__item + .contact-switch__item {
  border-left: 1px solid #0b1748;
}

.contact-switch__item.is-current {
  background: #0b1748;
  color: #fff;
  pointer-events: none;
}

.contact-switch__en {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.16em;
}

.contact-switch__ja {
  margin-top: 13px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.08em;
}

.contact-switch__arrow {
  position: absolute;
  top: 50%;
  right: 35px;
  width: 31px;
  height: 1px;
  background: currentColor;
  transform: translateY(-50%);
  transition: transform 0.35s ease;
}

.contact-switch__arrow::after {
  content: "";
  position: absolute;
  top: -4px;
  right: 0;
  width: 9px;
  height: 9px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

@media (hover: hover) and (pointer: fine) {
  .contact-switch__item:not(.is-current):hover {
    background: rgba(11, 23, 72, 0.08);
  }

  .contact-switch__item:not(.is-current):hover .contact-switch__arrow {
    transform: translate(7px, -50%);
  }
}


/* =========================================================
  form head
========================================================= */
.contact-form-field {
  margin-bottom: 32px;
}

.contact-form-field__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.contact-form-field__label {
  display: inline-block;
  margin: 0;
}

.contact-form-field .contact-form-panel__required {
  margin: 0;
}


/* =========================================================
  form layout
========================================================= */
.contact-form-layout {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 48px;
  margin: clamp(56px, 5.5556vw, 80px) auto 0;
}

.contact-form-number {
  padding-top: 10px;
}

.contact-form-panel {
  padding: clamp(56px, 4.7222vw, 68px) clamp(52px, 5vw, 72px) 0;
  border: 1px solid rgba(11, 23, 72, 0.24);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 30px 80px rgba(2, 16, 35, 0.06);
  backdrop-filter: blur(2px);
}

.contact-form-panel__header {
  padding-bottom: clamp(38px, 3.125vw, 45px);
  border-bottom: 1px solid rgba(11, 23, 72, 0.22);
}

.contact-form-panel__label {
  color: #9b8150;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.18em;
}

.contact-form-panel__title {
  margin-top: 17px;
  color: #0b1748;
  font-size: clamp(27px, 2.1528vw, 31px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.12em;
}

.contact-form-panel__description {
  margin-top: 22px;
  color: #111;
  font-size: clamp(14px, 1.1111vw, 16px);
  font-weight: 500;
  line-height: 1.9;
}

.contact-form-panel__required {
  margin-top: 14px;
  color: #4e5564;
  font-size: 12px;
  line-height: 1.6;
}

.contact-form-panel__required span {
  display: inline-block;
  margin-right: 7px;
  padding: 3px 8px 4px;
  background: #0b1748;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
}

.contact-form-panel__body {
  margin-top: clamp(42px, 3.4722vw, 50px);
}

/* =========================================================
  Contact Form 7
========================================================= */
.contact-form-panel .wpcf7,
.contact-form-panel .wpcf7-form {
  width: 100%;
}

.contact-form-panel .wpcf7-form > p,
.contact-form-panel .wpcf7-form > div,
.contact-form-panel .wpcf7-form > fieldset {
  margin: 0 0 34px;
}

.contact-form-panel .wpcf7-form > p:last-of-type,
.contact-form-panel .wpcf7-form > div:last-of-type,
.contact-form-panel .wpcf7-form > fieldset:last-of-type {
  margin-bottom: 0;
}

.contact-form-panel .wpcf7-form label,
.contact-form-panel .contact-form-label {
  display: block;
  color: #111;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.75;
  letter-spacing: 0.04em;
}

.contact-form-panel .wpcf7-form-control-wrap {
  display: block;
  margin-top: 12px;
}

.contact-form-panel input[type="text"],
.contact-form-panel input[type="email"],
.contact-form-panel input[type="tel"],
.contact-form-panel input[type="url"],
.contact-form-panel input[type="number"],
.contact-form-panel input[type="date"],
.contact-form-panel select,
.contact-form-panel textarea {
  width: 100%;
  border: 1px solid #b8bfca;
  border-radius: 0;
  outline: none;
  background: #fff;
  color: #111;
  font-family: var(--font-ja);
  font-size: 16px;
  font-weight: 400;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  appearance: none;
}

.contact-form-panel input[type="text"],
.contact-form-panel input[type="email"],
.contact-form-panel input[type="tel"],
.contact-form-panel input[type="url"],
.contact-form-panel input[type="number"],
.contact-form-panel input[type="date"],
.contact-form-panel select {
  height: 64px;
  padding: 0 20px;
}

.contact-form-panel textarea {
  min-height: 210px;
  padding: 18px 20px;
  line-height: 1.8;
  resize: vertical;
}

.contact-form-panel input::placeholder,
.contact-form-panel textarea::placeholder {
  color: #a3a8b1;
  opacity: 1;
}

.contact-form-panel input:focus,
.contact-form-panel select:focus,
.contact-form-panel textarea:focus {
  border-color: #0b1748;
  box-shadow: 0 0 0 3px rgba(11, 23, 72, 0.08);
}

.contact-form-panel .wpcf7-list-item {
  margin: 0 24px 8px 0;
}

.contact-form-panel .wpcf7-checkbox,
.contact-form-panel .wpcf7-radio,
.contact-form-panel .wpcf7-acceptance {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
}

.contact-form-panel input[type="checkbox"],
.contact-form-panel input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0 7px 0 0;
  accent-color: #0b1748;
  vertical-align: -3px;
}

.contact-form-panel .wpcf7-not-valid-tip {
  margin-top: 7px;
  color: #b3261e;
  font-size: 12px;
  font-weight: 500;
}

.contact-form-panel .wpcf7-response-output {
  margin: 28px 0 0 !important;
  padding: 13px 16px !important;
  border-width: 1px !important;
  font-size: 13px;
  line-height: 1.7;
}

.contact-form-panel .wpcf7-spinner {
  display: block;
  margin: 16px auto 0;
}

.contact-form-panel input[type="submit"],
.contact-form-panel button[type="submit"],
.contact-form-panel .wpcf7-submit {
  position: relative;
  display: block;
  width: min(100%, 360px);
  min-height: 74px;
  margin: 54px auto 0;
  border: 1px solid #0b1748;
  border-radius: 0;
  background: #0b1748;
  color: #fff;
  font-family: var(--font-ja);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .contact-form-panel input[type="submit"]:hover,
  .contact-form-panel button[type="submit"]:hover,
  .contact-form-panel .wpcf7-submit:hover {
    background: #fff;
    color: #0b1748;
  }
}

/* =========================================================
  link to the other contact page
========================================================= */
.contact-other-link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  width: max-content;
  max-width: 100%;
  margin: clamp(52px, 4.3056vw, 62px) 0 0 auto;
  color: #0b1748;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.08em;
}

.contact-other-link__arrow {
  position: relative;
  flex: 0 0 auto;
  width: 42px;
  height: 1px;
  background: currentColor;
  transition: transform 0.35s ease;
}

.contact-other-link__arrow::after {
  content: "";
  position: absolute;
  top: -4px;
  right: 0;
  width: 9px;
  height: 9px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

@media (hover: hover) and (pointer: fine) {
  .contact-other-link:hover .contact-other-link__arrow {
    transform: translateX(8px);
  }
}

/* =========================================================
  small PC
========================================================= */
@media screen and (max-width: 1200px) {
  .contact-page__background--01 {
    top: 870px;
  }

  .contact-page__background--02 {
    top: 2020px;
  }

  .contact-hero__side-label {
    left: 40px;
  }

  .contact-hero__inner,
  .contact-content__inner {
    width: calc(100% - 80px);
    max-width: 1000px;
  }
}

/* =========================================================
  tablet / small PC
========================================================= */
@media screen and (max-width: 1024px) {
  .contact-page {
    padding-top: var(--header-height);
    padding-bottom: 80px;
  }

  .contact-page.top-pattern-bg::before {
    top: 450px;
  }

  .contact-page__background--01 {
    top: 800px;
  }

  .contact-page__background--02 {
    top: 1820px;
  }

  .contact-hero__inner,
  .contact-content__inner {
    width: calc(100% - 64px);
  }

  .contact-hero__inner {
    padding-top: 112px;
  }

  .contact-hero__side-label {
    top: 104px;
    left: 32px;
    font-size: 22px;
  }

  .contact-hero__eyebrow {
    font-size: 23px;
  }

  .contact-hero__title {
    font-size: 41px;
    letter-spacing: 0.12em;
  }

  .contact-hero__lead {
    margin-top: 35px;
    font-size: 24px;
    letter-spacing: 0.18em;
  }

  .contact-hero__description {
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.8;
  }

  .contact-content {
    padding-top: 40px;
  }

  .contact-switch__item {
    padding-left: 30px;
  }

  .contact-switch__ja {
    font-size: 16px;
  }

  .contact-form-layout {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 32px;
    margin-top: 56px;
  }


  .contact-form-panel {
    padding: 58px 52px 0;
  }
}

/* =========================================================
  tablet portrait
========================================================= */
@media screen and (max-width: 900px) {
  .contact-page {
    padding-bottom: 80px;
  }

  .contact-page__background--01 {
    top: 760px;
  }

  .contact-page__background--02 {
    top: 1720px;
  }

  .contact-hero__inner,
  .contact-content__inner {
    width: calc(100% - 56px);
  }

  .contact-hero__side-label {
    left: 28px;
    font-size: 18px;
  }

  .contact-hero__eyebrow {
    font-size: 21px;
  }

  .contact-hero__title {
    font-size: 37px;
  }

  .contact-hero__lead {
    font-size: 22px;
    letter-spacing: 0.14em;
  }

  .contact-content {
    padding-top: 35px;
  }

  .contact-switch__item {
    padding-right: 62px;
    padding-left: 26px;
  }

  .contact-switch__arrow {
    right: 26px;
  }

  .contact-form-layout {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 26px;
    margin-top: 50px;
  }


  .contact-form-panel {
    padding: 50px 40px 0;
  }

  .contact-form-panel__title {
    font-size: 27px;
  }
}

/* =========================================================
  smartphone
========================================================= */
@media screen and (max-width: 767px) {
  .contact-page {
    padding-top: var(--header-height);
    padding-bottom: 60px;
  }

  .contact-page.top-pattern-bg::before {
    top: 360px;
  }

  .contact-page__backgrounds {
    display: none;
  }

  .contact-hero__inner {
    width: calc(100% - 60px);
    padding-top: 104px;
  }

  .contact-hero__side-label {
    top: 38px;
    left: 30px;
    font-size: 13px;
    letter-spacing: 0.12em;
    transform: none;
  }

  .contact-hero__eyebrow {
    font-size: clamp(16px, 4.8vw, 20px);
    letter-spacing: 0.22em;
  }

  .contact-hero__title {
    margin-top: 8px;
    font-size: clamp(27px, 8vw, 38px);
    line-height: 1.25;
    letter-spacing: 0.06em;
  }

  .contact-hero__lead {
    margin-top: 30px;
    font-size: clamp(20px, 5.8vw, 26px);
    line-height: 1.65;
    letter-spacing: 0.1em;
  }

  .contact-hero__description {
    margin-top: 18px;
    font-size: 13px;
    line-height: 2;
  }

  .contact-content {
    padding-top: 35px;
  }

  .contact-content__inner {
    width: calc(100% - 60px);
  }

  .contact-switch {
    grid-template-columns: 1fr;
  }

  .contact-switch__item {
    padding: 22px 62px 21px 24px;
  }

  .contact-switch__item + .contact-switch__item {
    border-top: 1px solid #0b1748;
    border-left: 0;
  }

  .contact-switch__en {
    font-size: 11px;
  }

  .contact-switch__ja {
    margin-top: 9px;
    font-size: 15px;
  }

  .contact-switch__arrow {
    right: 24px;
    width: 27px;
  }

  .contact-form-layout {
    display: block;
    margin-top: 45px;
  }

  .contact-form-number {
    width: max-content;
    padding-top: 0;
  }


  .contact-form-panel {
    margin-top: 36px;
    padding: 40px 24px 0;
  }

  .contact-form-panel__header {
    padding-bottom: 32px;
  }

  .contact-form-panel__title {
    margin-top: 13px;
    font-size: clamp(23px, 6.6vw, 29px);
    line-height: 1.55;
    letter-spacing: 0.08em;
  }

  .contact-form-panel__description {
    margin-top: 17px;
    font-size: 13px;
  }

  .contact-form-panel__body {
    margin-top: 38px;
  }

  .contact-form-panel .wpcf7-form > p,
  .contact-form-panel .wpcf7-form > div,
  .contact-form-panel .wpcf7-form > fieldset {
    margin-bottom: 28px;
  }

  .contact-form-panel input[type="text"],
  .contact-form-panel input[type="email"],
  .contact-form-panel input[type="tel"],
  .contact-form-panel input[type="url"],
  .contact-form-panel input[type="number"],
  .contact-form-panel input[type="date"],
  .contact-form-panel select {
    height: 58px;
    padding-inline: 16px;
    font-size: 16px;
  }

  .contact-form-panel textarea {
    min-height: 180px;
    padding: 15px 16px;
    font-size: 16px;
  }

  .contact-form-panel input[type="submit"],
  .contact-form-panel button[type="submit"],
  .contact-form-panel .wpcf7-submit {
    min-height: 66px;
    margin-top: 42px;
    font-size: 15px;
  }

  .contact-other-link {
    gap: 14px;
    margin-top: 46px;
    font-size: 13px;
    letter-spacing: 0.04em;
  }

  .contact-other-link__arrow {
    width: 34px;
  }
}

/* =========================================================
  small smartphone
========================================================= */
@media screen and (max-width: 480px) {
  .contact-page {
    padding-bottom: 50px;
  }

  .contact-hero__inner,
  .contact-content__inner {
    width: calc(100% - 40px);
  }

  .contact-hero__inner {
    padding-top: 90px;
  }

  .contact-hero__side-label {
    left: 20px;
  }

  .contact-hero__eyebrow {
    font-size: 16px;
  }

  .contact-hero__title {
    font-size: clamp(26px, 8.5vw, 34px);
  }

  .contact-hero__lead {
    margin-top: 25px;
    font-size: clamp(19px, 5.8vw, 23px);
  }

  .contact-hero__description {
    margin-top: 15px;
    font-size: 12px;
  }

  .contact-content {
    padding-top: 30px;
  }

  .contact-switch__item {
    padding-left: 20px;
  }

  .contact-form-layout {
    margin-top: 30px;
  }


  .contact-form-panel {
    margin-top: 30px;
    padding: 36px 18px 0;
  }

  .contact-form-panel__title {
    font-size: clamp(22px, 6.5vw, 27px);
  }

  .contact-form-panel__description {
    font-size: 12px;
  }
}

/* =========================================================
  thanks page
========================================================= */
.thanks-page {
  min-height: 100vh;
}

.thanks-page.top-pattern-bg::before {
  top: 420px;
}

.thanks-hero .contact-hero__inner {
  padding-bottom: clamp(46px, 4.8611vw, 70px);
}

.thanks-content {
  padding-bottom: clamp(20px, 3.4722vw, 50px);
}

.thanks-content__inner {
  width: min(calc(100% - 80px), 820px);
  margin: 0 auto;
}

.thanks-panel {
  padding: clamp(58px, 5.5556vw, 80px) clamp(48px, 6.25vw, 90px) clamp(54px, 5.2083vw, 75px);
  border: 1px solid rgba(11, 23, 72, 0.24);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 30px 80px rgba(2, 16, 35, 0.06);
  text-align: center;
  backdrop-filter: blur(2px);
}

.thanks-panel__icon {
  position: relative;
  display: grid;
  width: 76px;
  height: 76px;
  margin: 0 auto;
  border: 1px solid #0b1748;
  border-radius: 50%;
  place-items: center;
}

.thanks-panel__icon::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(11, 23, 72, 0.2);
  border-radius: 50%;
}

.thanks-panel__icon span {
  width: 25px;
  height: 13px;
  margin-top: -5px;
  border-bottom: 2px solid #0b1748;
  border-left: 2px solid #0b1748;
  transform: rotate(-45deg);
}

.thanks-panel__label {
  margin-top: 30px;
  color: #9b8150;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.18em;
}

.thanks-panel__title {
  margin-top: 16px;
  color: #0b1748;
  font-size: clamp(26px, 2.3611vw, 34px);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.1em;
}

.thanks-panel__lead {
  margin-top: clamp(30px, 2.7778vw, 40px);
  color: #111;
  font-size: clamp(16px, 1.3889vw, 20px);
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.05em;
}

.thanks-panel__text {
  margin-top: 18px;
  color: #4e5564;
  font-size: 14px;
  font-weight: 500;
  line-height: 2;
  text-align: left;
}

.thanks-panel__button {
  margin-top: clamp(38px, 3.4722vw, 50px);
  border-color: #0b1748;
  background: #0b1748;
  color: #fff;
}

@media screen and (max-width: 767px) {
  .thanks-page {
    padding-bottom: 80px;
  }

  .thanks-page.top-pattern-bg::before {
    top: 320px;
  }

  .thanks-hero .contact-hero__inner {
    padding-bottom: 42px;
  }

  .thanks-content__inner {
    width: calc(100% - 60px);
  }

  .thanks-panel {
    padding: 48px 24px 44px;
  }

  .thanks-panel__icon {
    width: 66px;
    height: 66px;
  }

  .thanks-panel__label {
    margin-top: 25px;
    font-size: 10px;
  }

  .thanks-panel__title {
    margin-top: 13px;
    font-size: clamp(22px, 6.6vw, 28px);
    letter-spacing: 0.07em;
  }

  .thanks-panel__lead {
    margin-top: 27px;
    font-size: 15px;
  }

  .thanks-panel__text {
    margin-top: 15px;
    font-size: 13px;
    line-height: 1.9;
  }

  .thanks-panel__button {
    margin-top: 34px;
  }
}

@media screen and (max-width: 480px) {
  .thanks-content__inner {
    width: calc(100% - 40px);
  }

  .thanks-panel {
    padding: 42px 18px 38px;
  }

  .thanks-panel__title {
    font-size: clamp(21px, 6.4vw, 26px);
  }

  .thanks-panel__text br {
    display: none;
  }
}
