:root {
  --hero-pad-y: clamp(14px, 2.4vh, 26px);
  --panel-bg: rgba(36, 40, 40, 0.44);
  --panel-bg-strong: rgba(36, 40, 40, 0.52);
  --panel-border: rgba(250, 249, 249, 0.34);
  --panel-soft-border: rgba(250, 249, 249, 0.16);
  --text-soft: rgba(250, 249, 249, 0.78);
  --nav-size: 62px;
}

html,
body {
  height: 100%;
}

body.index-contact-page {
  overflow: hidden;
  background: var(--bg);
}

body.index-contact-page .page {
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
}

.inquiry-hero {
  position: relative;
  min-height: 100vh;
  height: 100vh;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.inquiry-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(36, 40, 40, 0.34) 0%, rgba(36, 40, 40, 0.18) 44%, rgba(36, 40, 40, 0.10) 100%),
    radial-gradient(circle at top right, rgba(191, 13, 52, 0.14), transparent 34%);
}

.inquiry-hero__viewport {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding-top: var(--hero-pad-y);
  padding-bottom: var(--hero-pad-y);
}

.inquiry-shell {
  width: min(1240px, 100%);
  margin: 0 auto;
}

.inquiry-alerts .alert {
  border-radius: 12px;
  border-width: 1px;
  backdrop-filter: blur(4px);
}

.card-experience {
  position: relative;
  min-height: clamp(560px, 78vh, 760px);
  padding-top: calc(var(--nav-size) + 12px);
  padding-bottom: calc(var(--nav-size) + 12px);
}

.card-stage {
  position: relative;
  min-height: clamp(460px, 60vh, 640px);
}

.card-panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 18%, 0) scale(0.985);
  transition: opacity 0.36s ease, transform 0.56s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.card-panel.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
  z-index: 2;
}

.card-panel.is-before {
  opacity: 0;
  transform: translate3d(0, -18%, 0) scale(0.985);
  z-index: 1;
}

.card-panel.is-after {
  opacity: 0;
  transform: translate3d(0, 18%, 0) scale(0.985);
  z-index: 1;
}

.card-nav {
  position: absolute;
  left: 50%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  transform: translateX(-50%);
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(250, 249, 249, 0.88);
  transition: color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.card-nav--up {
  top: 0;
}

.card-nav--down {
  bottom: 0;
}

.card-nav:hover,
.card-nav:focus-visible {
  background: transparent;
  color: var(--brand);
}

.card-nav .bi {
  font-size: 2.1rem;
  line-height: 1;
}

.inquiry-card {
  width: min(1120px, calc(100vw - 40px));
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.inquiry-card--panel {
  height: min(690px, calc(100vh - (var(--hero-pad-y) * 2) - var(--nav-size) - 60px));
}

.inquiry-card--contact .row {
  height: 100%;
}

.about-card-body {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(22px, 2.5vw, 36px);
}

.about-info-stack {
  width: min(100%, 900px);
  max-width: 900px;
  margin: 0 auto;
  align-items: center;
  gap: 16px;
}

.about-card-brand-wrap {
  width: 100%;
  justify-content: center;
  align-items: center;
  padding-top: 0;
}

.about-card-brand-wrap .inquiry-brand-mark {
  width: min(220px, 42vw);
}

.section-title--about {
  width: 100%;
  align-items: center;
  text-align: center;
  gap: 6px;
  margin-bottom: 10px !important;
}

.section-title--about .title-ja {
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.section-title--about .title-en {
  margin-top: 2px;
  font-size: clamp(0.92rem, 1vw, 1.04rem);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(250, 249, 249, 0.72);
}

.about-simple-card {
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 22px 24px;
  border: 1px solid var(--panel-soft-border);
  border-radius: 14px;
  background: rgba(36, 40, 40, 0.34);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.about-copy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  align-items: start;
}

.about-copy-block {
  min-width: 0;
  padding: 0 24px;
}

.about-copy-block + .about-copy-block {
  border-left: 1px solid rgba(250, 249, 249, 0.12);
}

.about-copy-label {
  margin: 0 0 12px;
  color: rgba(250, 249, 249, 0.68);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.about-simple-text {
  color: var(--text);
  font-size: clamp(0.98rem, 0.84rem + 0.28vw, 1.06rem);
  font-weight: 500;
  line-height: 1.84;
  margin-bottom: 12px !important;
}

.about-simple-text:last-child {
  margin-bottom: 0 !important;
}

/* tablet + mobile */
@media (max-width: 991.98px) {
  .about-info-stack {
    width: 100%;
    max-width: 100%;
    align-items: stretch;
  }

  .about-card-brand-wrap,
  .section-title--about {
    width: 100%;
  }

  .about-simple-card {
    width: 100%;
  }

  .about-copy-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .about-copy-block {
    padding: 0;
  }

  .about-copy-block + .about-copy-block {
    border-left: 0;
    border-top: 1px solid rgba(250, 249, 249, 0.12);
    margin-top: 18px;
    padding-top: 18px;
  }
}

@media (max-width: 767.98px) {
  .section-title--about .title-ja {
    font-size: 2.2rem;
    line-height: 0.98;
  }

  .section-title--about .title-en {
    font-size: 0.9rem;
    letter-spacing: 0.06em;
  }

  .about-simple-card {
    padding: 16px;
  }

  .about-simple-text {
    font-size: 0.97rem;
    line-height: 1.72;
  }
}

.inquiry-column {
  padding: clamp(22px, 2.5vw, 36px);
  height: 100%;
  overflow: visible;
}

.inquiry-column--info {
  background: linear-gradient(180deg, rgba(36, 40, 40, 0.22) 0%, rgba(36, 40, 40, 0.34) 100%);
  border-right: 1px solid var(--panel-soft-border);
}

.inquiry-column--form {
  background: rgba(36, 40, 40, 0.20);
}

.inquiry-info-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 24px;
  width: 100%;
}

.inquiry-info-stack > * {
  margin: 0 !important;
}

.inquiry-brand-wrap {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 8px;
}

.inquiry-brand-mark {
  width: min(190px, 56%);
  height: auto;
  object-fit: contain;
}

.section-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.section-title--info {
  margin-top: 8px !important;
}

.section-title--form,
.section-title--about {
  margin-bottom: 24px !important;
}

.info-lead,
.form-intro,
.form-note {
  color: var(--text-soft);
}

.info-block {
  width: min(100%, 420px);
  align-self: flex-start;
  padding: 20px 24px;
  border: 1px solid var(--panel-soft-border);
  border-radius: 14px;
  background: rgba(250, 249, 249, 0.035);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.address-lines {
  color: var(--text);
  font-size: 1.04rem;
  line-height: 1.72;
}

.info-value,
.info-note {
  color: var(--text);
  line-height: 1.7;
}

.inquiry-textarea {
  min-height: 144px;
  resize: vertical;
}

.form-control,
.form-select,
.topic-dd__btn {
  min-height: 54px;
  border-radius: 12px !important;
}

.form-control-dark,
.topic-dd__btn {
  background: rgba(36, 40, 40, 0.20) !important;
  border: 1px solid rgba(250, 249, 249, 0.72) !important;
  color: var(--text) !important;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.form-control-dark:focus,
.topic-dd__btn:focus,
.topic-dd__btn.show {
  background: rgba(36, 40, 40, 0.28) !important;
  border-color: rgba(191, 13, 52, 0.92) !important;
  outline: 2px solid rgba(191, 13, 52, 0.88) !important;
  outline-offset: 0;
}

.topic-dd__btn.dropdown-toggle {
  position: relative;
  padding-right: 56px !important;
}

.topic-dd__btn.dropdown-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 10px;
  height: 10px;
  margin: 0;
  border: 0;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: translateY(-60%) rotate(45deg);
  transition: transform 0.16s ease;
  pointer-events: none;
}

.topic-dd__btn.dropdown-toggle.show::after,
.topic-dd__btn.show.dropdown-toggle::after {
  transform: translateY(-38%) rotate(-135deg);
}

.topic-dd__menu {
  margin-top: 8px !important;
  border-radius: 12px;
  border: 1px solid rgba(250, 249, 249, 0.22);
  background: rgba(36, 40, 40, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}

.topic-dd__menu .dropdown-item {
  padding-top: 12px;
  padding-bottom: 12px;
}

.topic-dd__menu .dropdown-item:hover,
.topic-dd__menu .dropdown-item:focus {
  background: rgba(191, 13, 52, 0.20);
  color: var(--text);
}

.topic-dd__menu .dropdown-item.active,
.topic-dd__menu .dropdown-item:active {
  background: var(--brand);
  color: var(--text);
}

.btn,
.btn-lg {
  border-radius: 12px !important;
}

.form-control::placeholder,
textarea::placeholder {
  color: rgba(250, 249, 249, 0.42);
}

.section-title .title-ja {
  display: block;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-title .title-en {
  display: block;
  color: rgba(250, 249, 249, 0.84);
  font-weight: 600;
}

.section-title--info .title-ja,
.section-title--form .title-ja,
.section-title--about .title-ja {
  font-size: clamp(2.1rem, 4.5vw, 3.3rem);
  line-height: 1.02;
}

.section-title--info .title-en,
.section-title--form .title-en,
.section-title--about .title-en {
  margin-top: 4px;
  font-size: 1.02rem;
}

.bilingual-label .label-ja {
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
}

.bilingual-label .label-en {
  display: block;
  margin-top: 2px;
  font-size: 0.82rem;
  color: var(--text-soft);
  font-weight: 600;
}

.info-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.info-action {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  background: rgba(250, 249, 249, 0.045);
  color: var(--text);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.info-action:hover,
.info-action:focus-visible {
  background: rgba(191, 13, 52, 0.18);
  border-color: rgba(191, 13, 52, 0.72);
  color: var(--text);
  transform: translateY(-1px);
}

.info-action .bi {
  font-size: 1.75rem;
  line-height: 1;
}

.scramble-slot {
  position: relative;
  max-width: 100%;
  color: inherit;
}

.scramble-slot--block {
  display: block;
  width: 100%;
  white-space: pre-wrap;
}

.scramble-slot--inline {
  display: inline-block;
  vertical-align: top;
  max-width: 100%;
  white-space: pre-wrap;
}

.scramble-slot--inline-nowrap {
  display: inline-block;
  vertical-align: top;
  max-width: 100%;
  white-space: pre;
}

.scramble-ghost {
  opacity: 0;
  pointer-events: none;
  user-select: none;
  display: block;
  white-space: inherit;
}

.scramble-slot--inline .scramble-ghost,
.scramble-slot--inline-nowrap .scramble-ghost {
  display: inline;
}

.scramble-live {
  position: absolute;
  top: 0;
  left: 0;
  color: inherit;
  white-space: inherit;
  pointer-events: none;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  font-kerning: none;
  font-variant-ligatures: none;
  display: block;
  width: 100%;
}

.scramble-slot--inline .scramble-live,
.scramble-slot--inline-nowrap .scramble-live {
  width: auto;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

.topic-dd__btn .scramble-slot,
.btn-primary .scramble-slot,
.address-lines .scramble-slot,
.address-lines strong .scramble-slot {
  white-space: pre;
}

@media (max-width: 991.98px) {
  .card-experience {
    min-height: calc(100vh - (var(--hero-pad-y) * 2) - var(--alerts-height, 0px) - var(--alerts-gap, 0px));
  }

  .card-stage {
    min-height: calc(100vh - (var(--hero-pad-y) * 2) - var(--alerts-height, 0px) - var(--alerts-gap, 0px) - (var(--nav-size) * 2) - 24px);
  }

  .card-panel {
    align-items: flex-start;
  }

  .inquiry-card,
  .inquiry-card--about {
    width: min(100%, calc(100vw - 18px));
  }

  .inquiry-card--panel {
    height: auto;
    max-height: calc(100vh - (var(--hero-pad-y) * 2) - (var(--nav-size) * 2) - 36px);
    overflow: auto;
  }

  .inquiry-column--info {
    border-right: 0;
    border-bottom: 1px solid var(--panel-soft-border);
  }
}

@media (max-width: 767.98px) {
  :root {
    --hero-pad-y: 10px;
    --nav-size: 56px;
  }

  .inquiry-hero {
    background-position: 50% 50%;
  }

  .inquiry-column,
  .about-card-body {
    padding: 16px;
  }

  .card-nav .bi {
    font-size: 1.9rem;
  }

  .inquiry-info-stack {
    gap: 16px;
  }

  .inquiry-brand-wrap,
  .about-card-brand-wrap {
    padding-top: 0;
  }

  .inquiry-brand-mark {
    width: 168px;
  }

  .section-title--info .title-ja,
  .section-title--form .title-ja,
  .section-title--about .title-ja {
    font-size: 1.8rem;
  }

  .section-title--info .title-en,
  .section-title--form .title-en,
  .section-title--about .title-en {
    font-size: 0.95rem;
  }

  .info-block,
  .about-simple-card {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
  }

  .address-lines {
    font-size: 0.96rem;
    line-height: 1.64;
  }

  .info-action {
    width: 56px;
    height: 56px;
    border-radius: 12px;
  }

  .info-action .bi {
    font-size: 1.55rem;
  }

  .form-control,
  .form-select,
  .topic-dd__btn {
    min-height: 50px;
    border-radius: 10px !important;
  }

  .topic-dd__btn.dropdown-toggle {
    padding-right: 52px !important;
  }

  .topic-dd__btn.dropdown-toggle::after {
    right: 16px;
    width: 9px;
    height: 9px;
  }

  .inquiry-textarea {
    min-height: 120px;
  }

  .about-simple-text {
    font-size: 1rem;
    line-height: 1.65;
  }
}

@media (max-width: 575.98px) {
  .inquiry-shell {
    width: 100%;
  }

  .row.g-3 {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.75rem;
  }

  .bilingual-label .label-ja {
    font-size: 0.98rem;
  }

  .bilingual-label .label-en {
    font-size: 0.78rem;
  }
}

@media (max-height: 780px) {
  .inquiry-card--panel {
    max-height: calc(100vh - (var(--hero-pad-y) * 2) - (var(--nav-size) * 2) - 32px);
  }

  .inquiry-column,
  .about-card-body {
    padding-top: 18px;
    padding-bottom: 18px;
  }
}

.is-scrambling {
  color: transparent !important;
}

.is-scrambling > *:not(.scramble-overlay) {
  color: transparent !important;
}

.scramble-overlay {
  z-index: 2;
  overflow: visible;
}
