@import url("fonts.css");

/*
  CONTACT, confirmation, and thanks page styles.
  Form input page, confirmation page, and completion page share this file.
*/

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "NotoSansJP-VariableFont_wght", "ZenKakuGothicNew-Regular", sans-serif;
  color: #ffffff;
  background-color: #00193b;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

/* Page hero. */
.contact-hero {
  min-height: 420px;
  margin-top: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
  background:
    linear-gradient(rgba(0, 25, 59, 0.48), rgba(0, 25, 59, 0.72)),
    url("image/問い合わせ.jpg") center center / cover no-repeat;
}

.contact-hero-text h1 {
  margin: 0 0 14px;
  font-family: "Playfair Display", "ShipporiMincho-Bold", serif;
  font-size: clamp(2.1rem, 6.4vw, 2.8rem);
  line-height: 1.25;
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
}

.hero-subtitle {
  margin: 0;
  font-family: "ShipporiMincho-Medium", "NotoSansJP-VariableFont_wght", serif;
  font-size: 1rem;
  letter-spacing: 0.18em;
}

/* Form and confirmation page containers. */
.contact-form-section,
.confirm-section {
  padding: 80px 32px;
  background-color: #ffffff;
  color: #00193b;
}

.section-heading,
.contact-form,
.confirm-content {
  max-width: 900px;
  margin: 0 auto;
}

.section-heading {
  margin-bottom: 42px;
}

.section-heading p {
  margin: 0 0 8px;
  font-family: "Montserrat", "Oswald-VariableFont_wght", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #557095;
}

.section-heading h2 {
  margin: 0;
  font-family: "Playfair Display", "ShipporiMincho-Bold", serif;
  font-size: clamp(2.25rem, 4vw, 3.3rem);
  line-height: 1.2;
  letter-spacing: 0.06em;
}

/* Contact form fields. */
.contact-form {
  display: grid;
  gap: 24px;
}

.form-field label {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.form-field label span {
  color: #557095;
  font-size: 0.88rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  max-width: 100%;
  padding: 14px 16px;
  border: 1px solid #c9d3e0;
  border-radius: 8px;
  color: #00193b;
  background-color: #ffffff;
  font: inherit;
  line-height: 1.7;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #9aa8ba;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(0, 25, 59, 0.22);
  border-color: #557095;
}

.checkbox-field label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  line-height: 1.7;
}

.checkbox-field input {
  width: auto;
  margin-top: 0.35em;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 18px;
}

/* Shared form buttons. */
.primary-button,
.secondary-button {
  min-width: 170px;
  padding: 13px 28px;
  border-radius: 999px;
  font-family: "Montserrat", "Oswald-VariableFont_wght", sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.primary-button {
  border: 1px solid #00193b;
  background-color: #00193b;
  color: #ffffff;
  text-align: center;
  text-decoration: none;
}

.secondary-button {
  border: 1px solid #c9d3e0;
  background-color: #ffffff;
  color: #00193b;
}

.confirm-lead {
  margin: 0 0 28px;
  line-height: 1.8;
}

/* Confirmation list. Values are filled by CONTACT_confirm_chijimatsu_cpa.html JavaScript. */
.confirm-list {
  margin: 0;
  border-top: 1px solid #d9e0ea;
}

.confirm-list div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid #d9e0ea;
}

.confirm-list dt {
  color: #557095;
  font-weight: 700;
}

.confirm-list dd {
  margin: 0;
  line-height: 1.9;
  white-space: pre-wrap;
}

.thanks-section {
  padding: 90px 32px;
  background-color: #ffffff;
  color: #00193b;
}

/* Completion page. */
.thanks-content {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.thanks-label {
  margin: 0 0 10px;
  color: #557095;
  font-family: "Montserrat", "Oswald-VariableFont_wght", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.thanks-content h2 {
  margin: 0 0 10px;
  font-family: "Playfair Display", "ShipporiMincho-Bold", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.06em;
}

.thanks-content p {
  line-height: 1.9;
}

.thanks-actions {
  justify-content: center;
}

/* Tablet. */
@media (max-width: 1180px) {
.contact-hero {
    margin-top: 0;
  }

  .contact-form-section,
  .confirm-section {
    padding: 58px 24px;
  }
}

/* Smartphone. */
@media (max-width: 560px) {
.contact-hero {
    min-height: 340px;
    padding: 64px 18px;
  }

  .confirm-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }
}

/* Narrow smartphone. */
@media (max-width: 420px) {
  .contact-form-section,
  .confirm-section,
  .thanks-section {
    padding: 48px 18px;
  }

  .contact-hero {
    min-height: 300px;
  }

  .hero-subtitle {
    letter-spacing: 0.12em;
    line-height: 1.7;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .checkbox-field label {
    gap: 8px;
  }
}
