.page-contact {
  --contact-line: #D4AF37;
  --contact-line-dim: rgba(212, 175, 55, 0.45);
  --contact-grid: rgba(244, 239, 230, 0.08);
  --contact-ink: #0A1410;
  background: #F4EFE6;
  color: #0A1410;
  overflow-x: hidden;
}

.page-contact .container {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* ===== HERO ===== */
.contact-hero {
  padding: 64px 0 72px;
  position: relative;
  border-bottom: 1px solid rgba(12, 59, 46, 0.18);
}

.contact-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.contact-hero__content {
  position: relative;
  border-left: 3px solid #D4AF37;
  padding-left: 24px;
}

.contact-hero__content::before {
  content: "";
  position: absolute;
  top: 0;
  left: -3px;
  width: 88px;
  height: 3px;
  background: #D4AF37;
}

.contact-hero__content::after {
  content: "";
  position: absolute;
  left: -6px;
  top: 64px;
  bottom: 40px;
  width: 10px;
  opacity: 0.7;
  background: repeating-linear-gradient(to bottom, rgba(12, 59, 46, 0.35) 0 2px, transparent 2px 10px);
  pointer-events: none;
}

.contact-hero__index {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: #6C7275;
  margin: 20px 0 12px;
  text-transform: uppercase;
}

.contact-hero h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(32px, 5.4vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: #0C3B2E;
  margin: 0 0 28px;
  max-width: 12ch;
}

.page-contact .lead {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: #0A1410;
  max-width: 46ch;
  margin-bottom: 28px;
}

.contact-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-hero__tags span {
  border: 1px solid rgba(12, 59, 46, 0.35);
  color: #0C3B2E;
  padding: 6px 12px;
  font-size: 12px;
  font-family: var(--font-body);
  letter-spacing: 0.04em;
}

.contact-hero__visual {
  position: relative;
}

.contact-hero__figure {
  margin: 0;
  position: relative;
  border: 1px solid rgba(12, 59, 46, 0.25);
  background: #0A1410;
  overflow: hidden;
  line-height: 0;
}

.contact-hero__figure::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  border-style: solid;
  border-width: 0 22px 22px 0;
  border-color: transparent #D4AF37 transparent transparent;
  z-index: 1;
}

.contact-hero__figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.contact-hero__caption {
  line-height: 1.5;
  margin: 12px 0 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #6C7275;
  font-family: var(--font-display);
}

/* ===== MAP SECTION ===== */
.contact-map-section {
  background: #0C3B2E;
  padding: 80px 0 96px;
  color: #F4EFE6;
  position: relative;
}

.contact-map-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(244, 239, 230, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 239, 230, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}

.contact-map-section .section-heading {
  position: relative;
  z-index: 1;
  margin-bottom: 48px;
}

.page-contact .section-heading__title {
  color: #F4EFE6;
}

.page-contact .section-heading__index {
  color: #D4AF37;
}

.contact-map {
  position: relative;
  z-index: 1;
}

.contact-map__board {
  border: 1px solid #D4AF37;
  background: #0A1410;
  padding: 28px 22px;
  position: relative;
}

.contact-map__board::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 24px;
  width: 64px;
  height: 3px;
  background: #D4AF37;
}

.contact-map__heading {
  display: flex;
  gap: 14px;
  align-items: center;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(212, 175, 55, 0.75);
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  margin-bottom: 24px;
  text-transform: uppercase;
}

.legend-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px dashed rgba(212, 175, 55, 0.28);
  position: relative;
}

.legend-item:last-of-type {
  border-bottom: none;
}

.legend-item__icon {
  color: #D4AF37;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 4px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  width: 44px;
  height: 44px;
}

.legend-item__body {
  min-width: 0;
}

.legend-item__no {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(212, 175, 55, 0.7);
}

.legend-item__title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: #F4EFE6;
  margin: 4px 0 10px;
}

.legend-item__desc {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.65;
  color: rgba(244, 239, 230, 0.8);
  margin: 0 0 14px;
}

.legend-item__value {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #D4AF37;
  border-bottom: 2px solid #D4AF37;
  padding-bottom: 2px;
  word-break: break-all;
}

.legend-item__value--text {
  border-bottom: none;
  color: #F4EFE6;
  border-left: 2px solid #D4AF37;
  padding-left: 10px;
  font-size: 14px;
}

.legend-item__map {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  border: 1px solid rgba(212, 175, 55, 0.4);
  overflow: hidden;
  position: relative;
  line-height: 0;
}

.legend-item__map img {
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  transition: transform 0.28s var(--ease-out), opacity 0.28s var(--ease-out);
}

.legend-item--address:hover .legend-item__map img {
  transform: scale(1.03);
  opacity: 0.92;
}

.legend-link {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 44px;
  position: relative;
}

.legend-link__line {
  width: 2px;
  height: 30px;
  background: repeating-linear-gradient(to bottom, #D4AF37 0 6px, transparent 6px 12px);
}

.legend-link__arrow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 5px 0 5px;
  border-color: #D4AF37 transparent transparent transparent;
}

.contact-map__aside {
  margin-top: 28px;
  border-left: 2px solid #D4AF37;
  padding: 8px 0 8px 22px;
  max-width: 560px;
}

.contact-map__aside-tag {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: #D4AF37;
  margin: 0 0 8px;
}

.contact-map__aside p:not(.contact-map__aside-tag) {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(244, 239, 230, 0.78);
  margin: 0 0 10px;
}

.contact-map__aside a {
  color: #D4AF37;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== SCOPE ===== */
.contact-scope {
  background: #F4EFE6;
  padding: 80px 0;
}

.contact-scope__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.contact-scope__panel {
  background: #0A1410;
  border: 1px solid #D4AF37;
  padding: 32px 24px;
  position: relative;
}

.contact-scope__panel::before {
  content: "";
  position: absolute;
  left: -7px;
  bottom: 28px;
  width: 13px;
  height: 13px;
  background: #6E1423;
  transform: rotate(45deg);
}

.contact-scope__index,
.contact-response__index {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #D4AF37;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.contact-scope__panel h2,
.contact-response h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  line-height: 1.1;
  color: #F4EFE6;
  margin: 0 0 18px;
}

.contact-scope__lead {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(244, 239, 230, 0.85);
  border-left: 3px solid #D4AF37;
  padding-left: 16px;
  margin: 0 0 26px;
}

.contact-scope__lists {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.contact-scope__list {
  border-top: 1px solid rgba(212, 175, 55, 0.35);
  padding-top: 16px;
}

.contact-scope__list-title {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: #D4AF37;
  margin: 0 0 10px;
}

.contact-scope__list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-scope__list li {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(244, 239, 230, 0.82);
  margin-bottom: 6px;
  padding-left: 18px;
  position: relative;
}

.contact-scope__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 2px;
  background: #D4AF37;
}

.contact-scope__list--deny li {
  color: rgba(244, 239, 230, 0.68);
}

.contact-scope__list--deny li::before {
  background: #6E1423;
}

.contact-response {
  border: 1px solid rgba(12, 59, 46, 0.3);
  background: rgba(255, 255, 255, 0.35);
  padding: 32px 24px;
  position: relative;
}

.contact-response h2 {
  color: #0C3B2E;
}

.contact-response__index {
  color: #9C5D3E;
}

.contact-response__arc {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 10px 0 20px;
  color: #D4AF37;
}

.contact-response__arc-svg {
  width: 220px;
  height: 110px;
  display: block;
}

.contact-response__arc-label {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #6E1423;
}

.contact-response__rows {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}

.contact-response__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 14px;
  align-items: center;
}

.contact-response__tag {
  font-family: var(--font-display);
  font-size: 12px;
  color: #0C3B2E;
}

.contact-response__time {
  font-family: var(--font-display);
  font-size: 14px;
  color: #0A1410;
}

.contact-response__bar {
  grid-column: 1 / -1;
  height: 4px;
  background: rgba(12, 59, 46, 0.12);
  display: block;
  position: relative;
  overflow: hidden;
}

.contact-response__bar i {
  display: block;
  height: 100%;
  background: linear-gradient(to right, #0C3B2E, #D4AF37);
}

.contact-response__bar--work {
  width: 60%;
}

.contact-response__bar--full {
  width: 100%;
  background: linear-gradient(to right, #6E1423, #D4AF37);
}

.contact-response__note {
  font-size: 13px;
  line-height: 1.7;
  color: #6C7275;
  border-top: 1px solid rgba(12, 59, 46, 0.18);
  padding-top: 16px;
  margin: 0;
}

.contact-response__note a {
  color: #0C3B2E;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== HELP ===== */
.contact-help {
  background: #0A1410;
  padding: 72px 0 88px;
  color: #F4EFE6;
}

.contact-help__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 40px;
}

.contact-help__card {
  display: grid;
  grid-template-columns: 44px 1fr 28px;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(212, 175, 55, 0.4);
  background: rgba(244, 239, 230, 0.04);
  padding: 20px;
  color: #F4EFE6;
  text-decoration: none;
  transition: transform 0.25s var(--ease-out), border-color 0.25s var(--ease-out), background 0.25s var(--ease-out);
}

.contact-help__card:hover {
  transform: translateX(6px);
  border-color: #D4AF37;
  background: rgba(212, 175, 55, 0.08);
}

.contact-help__no {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: #D4AF37;
  border: 1px solid rgba(212, 175, 55, 0.5);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-help__main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.contact-help__title {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.04em;
}

.contact-help__desc {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(244, 239, 230, 0.7);
}

.contact-help__go {
  color: #D4AF37;
  font-size: 20px;
  text-align: center;
}

/* ===== 平板 ===== */
@media (min-width: 768px) {
  .contact-hero {
    padding: 76px 0 88px;
  }

  .contact-scope__lists {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .contact-scope__grid {
    grid-template-columns: 7fr 5fr;
    gap: 40px;
  }

  .contact-help__grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
  }

  .contact-help__card {
    grid-template-columns: 1fr;
    grid-template-rows: 44px auto auto;
    gap: 14px;
  }

  .contact-help__go {
    display: none;
  }
}

/* ===== 桌面 ===== */
@media (min-width: 960px) {
  .contact-hero {
    padding: 88px 0 100px;
  }

  .contact-hero__grid {
    grid-template-columns: 7fr 5fr;
    align-items: center;
    gap: 64px;
  }

  .contact-hero__content {
    padding-left: 36px;
  }

  .contact-hero__content::before {
    width: 160px;
  }
}

@media (min-width: 1024px) {
  .contact-map__board {
    display: grid;
    grid-template-columns: 1.2fr auto 1fr auto 1.2fr;
    gap: 0;
    padding: 36px 40px;
  }

  .contact-map__heading {
    grid-column: 1 / -1;
    margin-bottom: 32px;
  }

  .legend-item {
    border-bottom: none;
    padding: 20px 18px;
    align-content: start;
  }

  .legend-item__map {
    margin-top: 8px;
  }

  .legend-link {
    height: auto;
    padding: 0;
    align-self: center;
  }

  .legend-link__line {
    width: 80px;
    height: 2px;
    background: repeating-linear-gradient(to right, #D4AF37 0 6px, transparent 6px 12px);
  }

  .legend-link__arrow {
    position: static;
    bottom: auto;
    left: auto;
    transform: none;
    border-width: 5px 0 5px 7px;
    border-color: transparent transparent transparent #D4AF37;
  }
}
