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

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  mix-blend-mode: difference;
}

.header__inner {
  width: 100%;
  max-width: 1248px;
  min-height: var(--header-height);
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px 0 24px;
}

.header__logo {
  position: relative;
  z-index: 3;
  display: block;
  width: 176px;
  flex-shrink: 0;
}

.header__logo img {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
}

.header__nav {
  margin-left: auto;
}

.header__nav-list {
  display: flex;
  align-items: center;
  padding: 0 clamp(20px, 2.92vw, 56px) 0 0;
  gap: clamp(20px, 2.92vw, 56px);
}

.header__nav-list-item a {
  display: block;
  font-family: var(--font-yumincho);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.5;
  white-space: nowrap;
  transition: all 0.3s ease;
  color: #dbd9d7;
}

@media (hover: hover) {
  .header__nav-list-item a:hover {
    opacity: 0.75;
  }

  .footer__list-item > a:hover {
    opacity: 0.75;
  }

  .contact-thanks__back:hover {
    opacity: 0.75;
  }
}
.header__actions {
  position: relative;
  z-index: 3;

  display: flex;
  align-items: center;
  gap: 24px;
}

.header__lang {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-notokr);
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  color: #fff;
}

/* .header__lang::before {
  position: absolute;
  content: "";
  height: 0.5px;
  bottom: -2px;
  background: #fff;
  width: 106%;
} */
.header__lang::before {
  height: 0.5px;
  content: "";
  position: absolute;
  bottom: 0;
  background: #fff;
  transform: scaleX(0);
  width: 100%;
  left: 0;
  transform-origin: left center;
  transition: all 0.3s ease-in-out;
}

.header__lang:hover::before {
  transform: scaleX(1);
}

.header__lang::after {
  height: 0.5px;
  content: "";
  position: absolute;
  bottom: 0;
  background: #fff;
  width: 100%;
  left: 0;
}

.header__lang:hover::after {
  width: 0%;
}

.header__lang[hidden] {
  display: none !important;
}

.header__lang-arrow {
  display: block;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

.header__menu-button,
.header__nav-cta-mobile {
  display: none;
}

html {
  scroll-padding-top: 0px;
}

#company {
  scroll-margin-top: 150px;
}

#news {
  scroll-margin-top: -20px;
}

/* ========================================
   FV
======================================== */

#fv {
  margin-top: var(--header-height);
}

.fv__inner {
  width: 100%;
}

/* LAYOUT */
.fv__content-block {
  --fv-left: max(24px, calc((100% - 1200px) / 2));
  --fv-copy-width: 280px;
  --fv-gap-old: clamp(
    40px,
    calc(100% - var(--fv-left) - var(--fv-copy-width) - 1082px),
    200px
  );
  --fv-gap: max(120px, var(--fv-gap-old));
  --fv-crop: calc(var(--fv-gap) - var(--fv-gap-old));
  display: grid;
  grid-template-columns:
    var(--fv-left)
    var(--fv-copy-width)
    var(--fv-gap)
    minmax(0, 1fr);
  align-items: center;
  width: 100%;
  gap: 0;
}

.fv__content-copy-block {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  min-width: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fv__content-copy {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  align-self: center;
  font-family: var(--font-shippori);
  font-size: 56px;
  font-weight: 500;
  line-height: 1.4;
  padding-bottom: 56px;
}

.fv__content-copy--1,
.fv__content-copy--2 {
  writing-mode: vertical-rl;
  white-space: nowrap;
  letter-spacing: 0.2em;
}

.fv__content-copy--1 {
  padding-top: 40px;
}

.fv__content-copy--2 > span {
  color: var(--color-highlight);
}

.fv__content-text {
  width: 100%;
  min-width: 0;
  margin: 0;

  font-size: 16px;
  line-height: 2.4;
  overflow-wrap: anywhere;
}
.fv__content-media {
  grid-column: 4;
  grid-row: 1;
  width: min(100%, 1082px);
  min-width: 0;
  margin: 0;
  justify-self: end;

  position: relative;
  overflow: hidden;
}

.fv__slide {
  position: absolute;
  inset: 0;

  opacity: 0;
  visibility: hidden;
  transform-origin: center center;
}

.fv__slide:first-child {
  position: relative;
  opacity: 1;
  visibility: visible;
}

.fv__slide img {
  display: block;
  width: calc(100% + var(--fv-crop));
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: translateX(calc(-1 * var(--fv-crop)));
}

.fv__slide:first-child img {
  height: auto;
}

.fv__content-media img {
  display: block;
  width: calc(100% + var(--fv-crop));
  max-width: none;
  height: auto;
  transform: translateX(calc(-1 * var(--fv-crop)));
}

/* ========================================
   INTRO
======================================== */

.intro {
  padding: var(--section-padding-top-bot) 24px;
}

.intro__inner {
  max-width: var(--inner-width);
  margin: 0 auto;
  display: flex;
  gap: clamp(24px, calc(13.3333vw - 78.4px), 88px);
}

.intro__media {
  display: flex;
  flex: 0 0 auto;
  gap: clamp(24px, calc(11.6667vw - 65.6px), 80px);

  padding-bottom: clamp(72px, calc(12.5vw - 24px), 132px);
}

.intro__media-item--1 {
  width: clamp(130px, calc(25vw - 102px), 210px);
  flex-shrink: 0;
}

.intro__media-item--2 {
  width: clamp(180px, calc(43.75vw - 186px), 360px);
  flex-shrink: 0;

  padding-top: clamp(64px, calc(11.6667vw - 25.6px), 120px);
}

.intro__media img {
  display: block;
  width: 100%;
  height: auto;
}

.intro__content {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  padding-top: 20cqw;
}

.intro__content-title {
  font-family: var(--font-shippori);
  font-weight: 500;
  font-size: clamp(20px, calc(11px + 1.04167vw), 24px);
  line-height: 2;
  letter-spacing: 20%;
  padding-bottom: 16px;
}

.intro__content-text {
  font-size: clamp(14px, calc(10.8px + 0.41667vw), 16px);
  line-height: 3.2;
  letter-spacing: 6%;
}

/* ========================================
   MID MEDIA - STRONG PARALLAX
======================================== */

.mid-media {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.mid-media picture {
  position: absolute;
  inset: -240px 0;

  display: block;
  width: 100%;

  will-change: transform;
}

.mid-media picture img {
  display: block;
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center center;
}

/* SP */
@media (max-width: 767px) {
  .mid-media {
    height: 120px;
  }

  .mid-media picture {
    inset: -100px 0;
  }

  #mid__media-2 picture img {
    object-position: center 80%;
  }
}

/* BRANDS */
#brands {
  padding: var(--section-padding-top-bot) 24px;
}

.brands__inner {
  max-width: var(--inner-width);
  margin: 0 auto;
}

.brands__content {
  display: grid;
  grid-template-columns: minmax(0, 640px) minmax(0, 1fr);
  align-items: stretch;
  padding: 80px 0 0 0;
  gap: 4.2dvw;
  line-height: 1.2;
}

.brands__shop-info {
  width: 100%;
  font-size: 14px;
  padding: 0 0 24px 0;
}

.brands__shop-info__row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  column-gap: 24px;
  align-items: start;
}

.brands__shop-info__row + .brands__shop-info__row {
  margin-top: 8px;
}

.brands__shop-info__label,
.brands__shop-info__value {
  margin: 0;
  line-height: 1.6;
  letter-spacing: 0.1em;
}

.brands__shop-info__value span {
  display: block;
}

.brands__shop-info__value a {
  color: inherit;
  text-decoration: none;
}

.brands__media {
  position: relative;
  width: 100%;
  min-width: 0;
  margin: 0;

  aspect-ratio: 640 / 480;
  overflow: hidden;
}

.brands__slide {
  position: absolute;
  inset: 0;

  opacity: 0;
  visibility: hidden;

  transform-origin: center center;
}

.brands__slide:first-child {
  opacity: 1;
  visibility: visible;
}

.brands__media img {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
}

.brands__infor-num {
  font-family: var(--font-optima);
  font-weight: 400;
  color: #a69990;
  letter-spacing: 0.4px;
  font-size: 14px;
}

.brands__infor-name-hira {
  font-family: var(--font-shippori);
  font-size: 14px;
  line-height: 1.2;
  padding: 8px 0 16px 0;
}

.brands__infor-name {
  font-family: var(--font-shippori);
  font-size: 32px;
  line-height: 1.2;
  font-weight: 500;
}

.brands__infor-text {
  font-size: 16px;
  padding: 16px 0 24px 0;
  letter-spacing: 10%;
  line-height: 2.4;
}

.brands__map iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 4.7;
  display: block;
  border: 0;
}

/* COMPANY */
#company .section-heading {
  text-align: center;
}

.company__inner {
  padding: 0px 0px var(--section-padding-top-bot) 0px;
}

.company__content {
  --company-left: max(40px, calc((100% - 1200px) / 2));
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1fr);
  width: 100%;
  box-sizing: border-box;
  padding: 80px 0 0 var(--company-left);
  gap: clamp(40px, calc(-51.42px + 8.92vw), 120px);
  align-items: center;
}

.company__infor-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: clamp(32px, calc(-13.714px + 4.464vw), 72px);
  padding: 1.7dvw 0px 1.7dvw 32px;
  letter-spacing: 20%;
  border-bottom: 1px solid var(--color-border);
}

/* MENU */
.menu {
  padding: var(--section-padding-top-bot) 24px;
  background-color: #620f13;
}

.menu .section-heading {
  text-align: center;
}

.menu .section-heading__en,
.menu .section-heading__title {
  color: var(--color-title-white);
}

.menu__inner {
  max-width: var(--inner-width);
  margin: 0 auto;
}

.menu__content {
  padding: 80px 0 0 0;
}

.menu__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--color-title-white);
  border-left: 1px solid var(--color-title-white);
}

.menu__item {
  padding: 60px;
  border-right: 1px solid var(--color-title-white);
  border-bottom: 1px solid var(--color-title-white);
}

.menu__img-info {
  padding: 38px 0 0 0;
  text-align: center;
  color: var(--color-title-white);
}

.menu__info-name {
  font-size: 16px;
  padding: 0 0 16px;
}

.menu__info-detail {
  font-size: 14px;
}

.menu__more {
  text-align: center;
  color: var(--color-title-white);
  padding: 40px 0 0 0;
  letter-spacing: 20%;
  font-size: 20px;
  font-family: var(--font-optima);
}

/* ========================================
   NEWS - COMMON
======================================== */

.news {
  background: var(--color-bg);
  padding: 0 0 80px 0;
}

/* NEWS詳細 OFF */
.news__item-link--static,
.news__item-link--static:hover {
  opacity: 1;
  cursor: default;
}

.news__inner {
  width: 100%;
  margin-inline: auto;
}

.news__main {
  min-width: 0;
}

.news__list {
  border-top: 1px solid var(--color-border);
}

.news__item {
  border-bottom: 1px solid var(--color-border);
}

.news__item-link {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  align-items: center;
  gap: 62px;
  min-height: 93px;
  padding: 30px 40px;

  color: var(--color-text);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.news__item-date {
  font-family: var(--font-optima);
  font-size: 16px;
  white-space: nowrap;
}

.news__item-title {
  min-width: 0;
  font-size: 16px;
  letter-spacing: 20%;
  overflow-wrap: anywhere;
}

.news__empty {
  padding: 48px 0;
  text-align: center;
  font-size: 14px;
}

.news--home {
  margin: 0 auto;
  padding: var(--section-padding-top-bot) 24px var(--section-padding-top-bot)
    24px;
}

.news--home .news__inner {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  column-gap: 13.5dvw;
  align-items: start;
  max-width: var(--inner-width);
}

.news--home .section-heading {
  text-align: left;
}

.news__more {
  display: flex;
  justify-content: flex-end;
  margin-top: 32px;
}

.news__more-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-optima);
  font-size: 14px;
  margin-right: 18px;
  text-decoration: none;
}

.news__more-link::after {
  height: 0.5px;
  content: "";
  position: absolute;
  bottom: 0;
  background: var(--color-text);
  transform: scaleX(0);
  width: 100%;
  left: 0;
  transform-origin: left center;
  transition: all 0.3s ease-in-out;
}

.news__more-link:hover.news__more-link::after {
  transform: scaleX(1);
}

.news__more-link::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -20%;
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--color-text);
  border-right: 1px solid var(--color-text);
  transform: translateY(-50%) rotate(45deg);
}

.news--archive {
  /* margin-top: var(--header-height); */
  padding: calc(var(--section-padding-top-bot) + var(--header-height)) 24px
    var(--section-padding-top-bot);
}

.news--archive .section-heading {
  margin-bottom: 72px;
  text-align: center;
}

.news--archive .news__main {
  max-width: var(--inner-width);
  margin-inline: auto;
}

.news__pagination {
  margin-top: 32px;
}

.news__pagination .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.news__pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 16px;
  padding: 4px 0;

  font-family: var(--font-optima);
  font-size: 14px;
  color: var(--color-text);
  text-decoration: none;
  opacity: 0.45;
  transition: opacity 0.3s ease;
}

.news__pagination .page-numbers.current,
.news__pagination .page-numbers:hover {
  opacity: 1;
}

.news__pagination .page-numbers.current {
  font-weight: 700;
}

.news__pagination .page-numbers.dots {
  cursor: default;
}

.news-detail {
  margin-top: var(--header-height, 80px);
  padding: 100px 24px 140px;
}

.news-detail__inner {
  max-width: 800px;
  margin-inline: auto;
}

.news-detail__header {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--color-border);
}

.news-detail__en {
  font-family: var(--font-optima);
  font-size: 40px;
  letter-spacing: 0.1em;
  text-align: center;
}

.news-detail__date {
  display: block;
  margin-top: 60px;
  font-size: 14px;
  letter-spacing: 0.1em;
}

.news-detail__title {
  margin-top: 20px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.8;
}

.news-detail__thumbnail {
  margin: 48px 0 0;
}

.news-detail__thumbnail img {
  display: block;
  width: 100%;
  height: auto;
}

.news-detail__body {
  margin-top: 60px;
  font-size: 16px;
  line-height: 2;
  overflow-wrap: anywhere;
}

.news-detail__body img {
  max-width: 100%;
  height: auto;
}

.news-detail__body p {
  margin-bottom: 24px;
}

.news-detail__body h2,
.news-detail__body h3 {
  margin: 40px 0 20px;
  font-weight: 600;
  line-height: 1.6;
}

.news-detail__back {
  margin-top: 100px;
  text-align: center;
}

.news-detail__back a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 14px;
}

/* ========================================
   PRIVACY POLICY
======================================== */

.privacy {
  padding: calc(var(--section-padding-top-bot) + var(--header-height)) 24px
    var(--section-padding-top-bot);
  background-color: var(--color-bg);
  color: var(--color-text);
}

.privacy__inner {
  width: 100%;
  max-width: var(--inner-width);
  margin: 0 auto;
}

.privacy__inner .section-heading {
  text-align: center;
}

.privacy__content {
  font-size: 16px;
  overflow-wrap: anywhere;
  padding: 64px 0 0 0;
}

.privacy__content p {
  margin: 0;
  line-height: 2.4;
}

.privacy__article {
  margin-top: 32px;
}

.privacy__article h2 {
  margin: 0 0 12px;
  font-size: 18px;
  -webkit-text-stroke: 0.5px currentColor;
}

.privacy__content ol {
  margin: 12px 0 0;
  list-style-type: decimal;
  padding: 0 0 0 24px;
}

.privacy__content .pd-handle {
  padding-left: 48px;
}

.privacy__content li {
  margin-bottom: 12px;
}

.privacy__content li > ol {
  margin: 12px 0 20px;
  padding-left: 2em;
  list-style-type: decimal;
}

.privacy__content li > ol > li {
  margin-bottom: 12px;
}

.privacy__contact {
  margin-top: 16px;
}

.privacy__contact p {
  margin-bottom: 4px;
}

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

.privacy__content a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy__end {
  margin: 32px 0 0;
  font-family: var(--font-shippori);
  font-size: 14px;
  line-height: 2;
  text-align: right;
}

.privacy .section-heading__en {
  text-transform: initial;
}

/* ========================================
   PRIVACY RESPONSIVE - SP
======================================== */

@media (max-width: 767px) {

  .privacy__heading {
    margin-bottom: 40px;
  }

  .privacy__heading-en {
    font-size: 28px;
    letter-spacing: 0.12em;
  }

  .privacy__heading-ja {
    font-size: 11px;
  }

  .privacy__content {
    font-size: 13px;
    padding-top: 40px;
  }

  .privacy__content .pd-handle {
    padding-left: 28px;
  }

  .privacy__article {
    margin-top: 28px;
  }

  .privacy__article h2 {
    margin-bottom: 10px;
    font-size: 14px;
  }

  .privacy__content ol {
    padding-left: 1.5em;
  }

  .privacy__content li {
    margin-bottom: 8px;
    line-height: 2.4;
  }

  .privacy__content li > ol {
    padding-left: 24px;
  }

  .privacy__contact {
    margin-top: 12px;
  }

  .privacy__end {
    font-size: 13px;
    margin-top: 24px;
  }
}

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

.contact-page {
  padding: calc(var(--section-padding-top-bot) + var(--header-height)) 24px
    var(--section-padding-top-bot);
  background: var(--color-bg);
  color: var(--color-text);

  /* ヘッダーに隠れないように調整 */
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.contact-page .section-heading {
  text-align: center;
}

.contact-page__inner {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
}

.contact-page__heading {
  margin-bottom: 72px;
  text-align: center;
}

.contact-page__form {
  padding: 80px 0 0;
}

.contact-form__step[hidden] {
  display: none !important;
}

.contact-form__field {
  margin-bottom: 28px;
}

.contact-form__label {
  margin-bottom: 16px;
  font-size: 16px;
  color: #000000;
}

.contact-form__confirm-field .contact-form__label > p {
  font-family: var(--font-yumincho);
}

.contact-form__required {
  display: inline-block;
  margin-left: 8px;
  padding: 0px 5px;
  color: #fff;
  background: #cb272f;
  font-size: 10px;
  vertical-align: middle;
  border-radius: 3px;
  font-family: "Noto Sans";
  font-weight: 400;
}

.contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
}

.contact-page .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.contact-page .contact-form__control {
  display: block;
  width: 100%;
  min-width: 0;
  font-family: "Noto Sans";
  height: 70px;
  padding: 14px 16px;
  border: 1px solid #d8d8d8;
  border-radius: 5px;
  background: #fbfbfb;
  font-size: 16px;
  color: var(--color-text);
  font-weight: 400;
  outline: none;
  transition: border-color 0.25s ease;
}

.contact-page .contact-form__control::placeholder {
  color: #a6a6a6;
}

.contact-page .contact-form__control:focus {
  border-color: #666;
}

.contact-page .contact-form__control[aria-invalid="true"] {
  border-color: #bd3b46;
}

/* TEXTAREA */

.contact-page .contact-form__textarea {
  height: 250px;
  min-height: 180px;
  resize: vertical;
  line-height: 1.8;
}

.contact-form__privacy {
  margin-top: 80px;
  text-align: center;
  font-size: 16px;
  font-family: "Noto Sans";
}

.contact-page .contact-form__privacy .wpcf7-form-control-wrap {
  display: inline-block;
  width: auto;
}

.contact-page .contact-form__privacy .wpcf7-acceptance {
  display: inline-block;
}

.contact-page .contact-form__privacy .wpcf7-list-item {
  margin: 0;
}

.contact-page .contact-form__privacy .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  cursor: pointer;
}

.contact-page .contact-form__privacy .wpcf7-list-item-label {
  display: inline;
  line-height: 1.8;
}

.contact-page .contact-form__privacy input[type="checkbox"] {
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  display: inline-block !important;
  position: static !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px;
  flex: 0 0 24px;
  margin: 0 !important;
  padding: 0 !important;
  accent-color: #232323;
  cursor: pointer;
}

.contact-page .contact-form__privacy a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-form__client-error {
  margin: 20px 0 0;
  color: #bd3b46;
  font-size: 13px;
  text-align: center;
}

.contact-form__client-error[hidden] {
  display: none;
}

/* ========================================
   CONTACT FORM - BUTTON BASE
======================================== */

.contact-form__actions {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 40px;
}

/* 入力画面・確認画面のボタン共通設定 */
.contact-form__button,
.contact-page .contact-form__submit {
  position: relative;
  display: flex;
  align-items: center;
  width: 258px;
  padding: 19px 34px 19px 56px;
  border: 1px solid #000f2a;
  border-radius: 0;
  background-color: transparent;
  color: #000f2a;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-yumincho);
  cursor: pointer;
  transition: color 0.35s ease;
}

/* 「確認画面へ」右矢印 */
.contact-form__button::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 56px;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}

/* 「戻る」左矢印: アニメーション背景と重ならないように矢印専用 */
.contact-form__button--back::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 56px;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(225deg);
  pointer-events: none;
}

.contact-form__button--back::after {
  display: none;
}

.contact-form__submit-wrap {
  position: relative;
}

/* CF7が自動生成するpタグの余白を削除 */
.contact-form__submit-wrap > p {
  margin: 0;
}

.contact-form__button--back {
  flex-direction: row-reverse;
  padding-right: 56px;
}

/* CF7送信中スピナー */
.contact-page .contact-form__submit-wrap .wpcf7-spinner {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 24px;
  height: 24px;
  margin: 0;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 2;
}

/* 「送信する」右矢印: 親要素の文字色に追従 */
.contact-form__submit-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 56px;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
  z-index: 2;
}

/* ========================================
   CONFIRM STEP
======================================== */

.contact-form__confirm-field {
  margin-bottom: 32px;
}

.contact-form__confirm-field .contact-form__label {
  margin-bottom: 16px;
}

.contact-form__confirm-bottom-border {
  border-bottom: 1px solid #d8d8d8;
  padding-bottom: 32px;
}

.contact-form__confirm-field p {
  margin: 0;
  font-size: 16px;
  overflow-wrap: anywhere;
  font-family: "Noto Sans";
  font-weight: 400;
}

/* ========================================
   CONFIRM BUTTONS - Figma準拠
   白ボタン: 紺が左から右へ
   紺ボタン: 白が左から右へ
======================================== */

.contact-form__actions--confirm {
  margin-top: 68px;
  gap: 28px;
  align-items: center;
}

/* 2つのボタンの寸法を統一 */
.contact-page .contact-form__actions--confirm .contact-form__button--back,
.contact-page .contact-form__actions--confirm .contact-form__submit-wrap {
  box-sizing: border-box;
  flex: 0 0 224px;
  width: 224px;
  height: 56px;
  margin: 0;
  border: 1px solid #000f2a;
  border-radius: 0;
}

/* 戻る: 白背景 -> 紺色スライド */
.contact-page .contact-form__actions--confirm .contact-form__button--back {
  --slide-bg: #000f2a;
  --slide-color: #fff;
  justify-content: center;
  flex-direction: row;
  padding: 0 44px;
  color: #000f2a;
  background-color: #fff;
  font-size: 14px;
}

.contact-page
  .contact-form__actions--confirm
  .contact-form__button--back::before {
  left: 28px;
}

/* 送信する: 紺背景 -> 白色スライド */
.contact-page .contact-form__actions--confirm .contact-form__submit-wrap {
  --slide-bg: #fff;
  --slide-color: #000f2a;
  position: relative;
  color: #fff;
  background-color: #000f2a;
}

/* input[type=submit]には::beforeが効かないため親pをアニメーション */
.contact-page
  .contact-form__actions--confirm
  .contact-form__submit-wrap
  .contact-form__submit {
  position: relative;
  z-index: 1;
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0 44px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-family: var(--font-yumincho);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
}

.contact-page
  .contact-form__actions--confirm
  .contact-form__submit-wrap::after {
  right: 28px;
}

/* hover・keyboard focusでも矢印と文字が背景に合わせて反転 */
@media (hover: hover) {
  .contact-page
    .contact-form__actions--confirm
    .contact-form__button--back:hover,
  .contact-page
    .contact-form__actions--confirm
    .contact-form__submit-wrap:hover {
    background-size: 100% 100%;
    color: var(--slide-color);
  }
}

.contact-page
  .contact-form__actions--confirm
  .contact-form__button--back:focus-visible,
.contact-page
  .contact-form__actions--confirm
  .contact-form__submit-wrap:focus-within {
  background-size: 100% 100%;
  color: var(--slide-color);
}

/* 小画面では横幅に合わせて縮める */
@media (max-width: 600px) {
  .contact-form__actions--confirm {
    gap: 12px;
  }

  .contact-page .contact-form__actions--confirm .contact-form__button--back,
  .contact-page .contact-form__actions--confirm .contact-form__submit-wrap {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    max-width: 224px;
  }

  .contact-page
    .contact-form__actions--confirm
    .contact-form__button--back::before {
    left: 18px;
  }

  .contact-page
    .contact-form__actions--confirm
    .contact-form__submit-wrap::after {
    right: 18px;
  }
}

/* ========================================
   CONTACT FORM 7 ERROR
======================================== */

.contact-page .wpcf7-not-valid-tip {
  margin-top: 6px;
  font-size: 12px;
}

.contact-page .wpcf7-response-output {
  margin: 24px 0 0 !important;
  padding: 12px 16px !important;
  font-size: 13px;
  text-align: center;
}

/* ========================================
   CONTACT THANKS
======================================== */
.contact-thanks {
  padding: calc(var(--section-padding-top-bot) + var(--header-height)) 24px
    var(--section-padding-top-bot);
  background: var(--color-bg);
  color: var(--color-text);
  text-align: center;
}

.contact-thanks__inner {
  max-width: 900px;
  margin: 0 auto;
}

.contact-thanks__title {
  margin-top: 80px;
  font-weight: 500;
  font-size: 24px;
}

.contact-thanks__message {
  margin-top: 16px;
  font-size: 16px;
  line-height: 2.4;
}

.contact-thanks__message p {
  margin: 0;
}

.contact-thanks__back {
  position: relative;
  display: inline-flex;
  gap: 16px;
  font-weight: 600;
  align-items: center;
  margin-top: 80px;
  color: inherit;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-thanks__back::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -20%;
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--color-text);
  border-right: 1px solid var(--color-text);
  transform: translateY(-50%) rotate(45deg);
}

/* ========================================
   CONTACT FORM - STEP VISIBILITY
======================================== */

/* 入力・確認ステップの非表示を確実にする */
.contact-page .contact-form__step[hidden],
.contact-page .contact-form__client-error[hidden] {
  display: none !important;
}

/* FOOTER */
.footer {
  background: #000f2a;
  color: #fff;
  padding: 80px 24px;
}

.footer .section-heading__en {
  color: #fff;
}

.footer__inner {
  max-width: var(--inner-width);
  margin: 0 auto;
}

.footer__detail {
  position: relative;
  margin: 0 auto;
  /* padding: 0 clamp(0px, calc(-137.143px + 13.393vw), 120px) 80px clamp(0px, calc(-137.143px + 13.393vw), 120px); */
  padding: 0 clamp(0px, calc(-137.143px + 13.393vw), 120px) 80px
    clamp(0px, calc(-137.143px + 13.393vw), 120px);
  border-bottom: 1px solid #fff;
}

.footer__contact {
  display: grid;
  padding: 24px 0 0 0;
  grid-template-columns: 400px minmax(0, 1fr);
}

.footer__contact-text {
  font-size: 14px;
  line-height: 2.2;
}

.footer__contact-btn {
  --slide-bg: #fff;
  --slide-color: #000f2a;
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid #fff;
  padding: 20px 90px 20px 16px;
  text-align: center;
  margin: 14px 0 0 0;
  width: 288px;
  margin-left: auto;
  font-size: 14px;
  color: #fff;
  text-decoration: none;
  transition:
    background-size 0.4s ease,
    color 0.35s ease;
}

.footer__contact-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 23%;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}

.footer__nav {
  display: flex;
  gap: clamp(78px, calc(-36.286px + 11.161vw), 178px);
  padding: 80px 0px 0 0px;
  margin: 0 auto;
  justify-content: space-between;
  padding: 80px clamp(0px, calc(-137.143px + 13.393vw), 120px) 0px
    clamp(0px, calc(-137.143px + 13.393vw), 120px);
}

.footer__logo {
  max-width: 175px;
}

.footer__list {
  width: 100%;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  column-gap: 40px;
  width: max-content;
}

.footer__list-item > a {
  font-size: 18px;
  font-family: var(--font-optima);
  display: block;
  transition: all 0.3s ease;
}

.footer__copyright {
  font-family: var(--font-optima);
  /* max-width: 960px; */
  margin: 0 auto;
  padding: 40px clamp(0px, calc(-137.143px + 13.393vw), 120px) 0px
    clamp(0px, calc(-137.143px + 13.393vw), 120px);
}

.footer__copyright > small {
  font-size: 12px;
}

html.lenis {
  scroll-behavior: auto !important;
}

/* ========================================
   COMMON BUTTON - SLIDE HOVER ANIMATION
   疑似要素なし・左から右へ背景色をスライド
======================================== */

/* 共通クラス: 通常リンク・ボタンに付与して再利用 */
.u-btn-slide {
  --slide-bg: #fff;
  --slide-color: #000f2a;
  position: relative;
  overflow: hidden;
}

/* 共通ボタン + CONTACT確認 + FOOTERに同じ描画方式を適用 */
.u-btn-slide,
.footer__contact-btn,
.contact-page .contact-form__actions--confirm .contact-form__button--back,
.contact-page .contact-form__actions--confirm .contact-form__submit-wrap {
  background-image: linear-gradient(var(--slide-bg), var(--slide-bg));
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 0% 100%;
  transition:
    background-size 0.4s ease,
    color 0.35s ease;
}

.contact-page .contact-form__button.u-btn-slide {
  --slide-bg: #000f2a;
  --slide-color: #fff;
  background-color: transparent;
}

@media (hover: hover) {
  .u-btn-slide:hover,
  .footer__contact-btn:hover {
    background-size: 100% 100%;
    color: var(--slide-color);
  }
}

.u-btn-slide:focus-visible,
.footer__contact-btn:focus-visible {
  background-size: 100% 100%;
  color: var(--slide-color);
}

.contact-page
  .contact-form__actions--confirm
  .contact-form__submit-wrap
  .contact-form__submit {
  background-color: transparent;
  background-image: none;
  color: inherit;
}

@media (prefers-reduced-motion: reduce) {
  .u-btn-slide,
  .footer__contact-btn,
  .contact-page .contact-form__actions--confirm .contact-form__button--back,
  .contact-page .contact-form__actions--confirm .contact-form__submit-wrap {
    transition: none;
  }
}
