﻿.contact-page {
  background: #fff;
}

.contact-hero {
  min-height: 620px;
  padding: 190px 32px 110px;
  display: flex;
  align-items: center;
  text-align: center;
  background:
    linear-gradient(rgba(247, 249, 253, 0.88), rgba(255, 255, 255, 0.96)),
    url("../img/japan_street.gif") center/cover no-repeat;
}

.contact-hero__inner {
  width: min(900px, 100%);
  margin: 0 auto;
}

.contact-hero h1 {
  margin-bottom: 24px;
  font-size: 58px;
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -2px;
  color: var(--navy);
}

.contact-hero p {
  max-width: 720px;
  margin: 0 auto 42px;
  color: var(--gray);
  font-size: 20px;
  line-height: 1.75;
}

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.contact-section {
  background: var(--light-gray);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.86fr;
  gap: 64px;
  align-items: center;
}

.contact-copy .section-desc {
  max-width: 620px;
}

.contact-card {
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(24, 32, 51, 0.08);
}

.contact-card dl {
  display: grid;
  gap: 24px;
}

.contact-card div {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.contact-card div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-card dt {
  margin-bottom: 8px;
  color: var(--dirty-pink-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-card dd {
  color: var(--navy);
  font-size: 19px;
  line-height: 1.55;
  font-weight: 800;
  word-break: break-word;
}

.contact-card a:hover {
  color: var(--dirty-pink-dark);
}

.inquiry-form-section {
  scroll-margin-top: 96px;
  padding: 88px 20px 96px;
  background: #fff;
}

.inquiry-form-inner {
  max-width: 608px;
  margin: 0 auto;
}

.form-heading {
  display: none;
}

.inquiry-form {
  width: 100%;
  display: grid;
  gap: 27px;
}

.form-alert {
  padding: 16px 18px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 10px;
}

.form-alert--success {
  border: 1px solid rgba(34, 197, 94, 0.28);
  background: #f0fdf4;
  color: #166534;
}

.form-alert--error {
  border: 1px solid rgba(217, 111, 131, 0.3);
  background: #fff8fa;
  color: #8f3346;
}

.form-alert strong {
  display: block;
  margin-bottom: 8px;
  font-weight: 900;
}

.form-alert ul {
  margin: 0;
  padding-left: 18px;
}

.form-alert li + li {
  margin-top: 4px;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.form-field {
  display: grid;
  gap: 10px;
}

.form-field span,
.inquiry-type legend {
  color: #000;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 500;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid #cbd6e4;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-field input,
.form-field select {
  height: 36px;
  min-height: 36px;
  padding: 0 13px;
}

.form-field select {
  appearance: none;
  color: #6b7280;
  background-image:
    linear-gradient(45deg, transparent 50%, #a7b2c2 50%),
    linear-gradient(135deg, #a7b2c2 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 15px) 50%;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
}

.form-field textarea {
  min-height: 118px;
  padding: 13px;
  resize: vertical;
  line-height: 1.55;
}

.form-field textarea::placeholder {
  color: #6b7280;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--dirty-pink);
  box-shadow: 0 0 0 3px rgba(217, 111, 131, 0.13);
}

.message-field {
  gap: 7px;
}

.message-field small {
  color: #64748b;
  font-size: 14px;
  line-height: 1.45;
}

.inquiry-type {
  display: grid;
  gap: 14px;
  border: 0;
  padding: 0;
  margin: 0;
}

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

.type-option {
  min-height: 58px;
  padding: 0 16px;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #000;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 400;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.type-option:hover,
.type-option:has(input:checked) {
  border-color: var(--dirty-pink);
  background: #fff8fa;
  box-shadow: 0 10px 24px rgba(217, 111, 131, 0.1);
}

.type-option input,
.privacy-agree input {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--dirty-pink);
}

.privacy-agree {
  min-height: 76px;
  padding: 16px;
  border-radius: 10px;
  background: #f8fafc;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #000;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 400;
}

.privacy-agree a {
  display: block;
  width: fit-content;
  margin-top: 4px;
  color: #1d7ed0;
  font-size: 13px;
  font-weight: 400;
}

.privacy-open {
  display: block;
  width: fit-content;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1d7ed0;
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
}

.privacy-open:hover {
  text-decoration: underline;
}

body.modal-open {
  overflow: hidden;
}

.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.privacy-modal.is-open {
  display: flex;
}

.privacy-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.58);
}

.privacy-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  border-radius: 12px;
  background: #fff;
  color: #111827;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.32);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  outline: none;
}

.privacy-modal__header {
  padding: 22px 26px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.privacy-modal__header h2 {
  margin: 0;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.3;
  font-weight: 900;
}

.privacy-modal__x {
  width: 36px;
  height: 36px;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  background: #fff;
  color: #111827;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.privacy-modal__content {
  padding: 24px 26px;
  overflow-y: auto;
}

.privacy-modal__content article + article {
  margin-top: 22px;
}

.privacy-modal__content h3 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 900;
}

.privacy-modal__content p {
  margin: 6px 0 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.75;
}

.privacy-modal__footer {
  padding: 16px 26px 22px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: flex-end;
}

.privacy-modal__close {
  min-width: 108px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--dirty-pink);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.privacy-modal__close:hover {
  background: var(--dirty-pink-dark);
}
.form-submit {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 7px;
  background: var(--dirty-pink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font: inherit;
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(217, 111, 131, 0.24);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.form-submit:hover {
  background: var(--dirty-pink-dark);
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(217, 111, 131, 0.32);
}
@media (max-width: 1080px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-copy .section-desc {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 640px) {
  .contact-hero {
    min-height: auto;
    padding: 130px 20px 82px;
  }

  .contact-hero h1 {
    font-size: 36px;
    letter-spacing: -1px;
  }

  .contact-hero p {
    font-size: 17px;
  }

  .contact-actions {
    flex-direction: column;
  }

  .contact-card {
    padding: 28px 22px;
  }

  .contact-card dd {
    font-size: 16px;
  }

  .form-row,
  .type-grid {
    grid-template-columns: 1fr;
  }

  .inquiry-form {
    gap: 24px;
  }

  .type-option {
    min-height: 56px;
    font-size: 15px;
  }

  .privacy-modal {
    padding: 16px;
  }

  .privacy-modal__dialog {
    max-height: calc(100vh - 32px);
    border-radius: 10px;
  }

  .privacy-modal__header,
  .privacy-modal__content,
  .privacy-modal__footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .privacy-modal__header h2 {
    font-size: 19px;
  }

  .privacy-modal__content h3 {
    font-size: 15px;
  }

  .privacy-modal__content p {
    font-size: 13px;
  }
}
