/* ========================================
   Contact page
   ======================================== */

.page-contact {
  --ct-line: #dfe3ea;
  --ct-soft: #f5f7fa;
  background: #fff;
}

/* Hero */
.ct-hero {
  padding: 3.5rem 0 3rem;
  background:
    radial-gradient(circle at 85% 20%, rgba(162, 55, 2, 0.08), transparent 45%),
    linear-gradient(180deg, #f3f6fa 0%, #fff 100%);
}

.ct-hero-en {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(2.4rem, 4.6vw, 3.4rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--navy);
  margin-bottom: 0.55rem;
}

.ct-hero h1 {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--navy);
  margin-bottom: 1.4rem;
}

.ct-hero h1::after {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  margin-top: 0.9rem;
  background: var(--accent);
}

.ct-hero-lead {
  font-size: 0.9375rem;
  line-height: 1.9;
  color: var(--navy);
}

/* Breadcrumb */
.page-contact .breadcrumb-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
  padding-block: 1rem 0.25rem;
  font-size: 0.75rem;
  color: var(--navy-muted);
}

.page-contact .breadcrumb a:hover {
  color: var(--accent);
}

/* Layout */
.ct-main {
  padding: 1.75rem 0 4.5rem;
}

.ct-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2.5rem;
  align-items: start;
}

/* Form */
.ct-form,
.ct-done {
  padding: 2.25rem 2.25rem 2.5rem;
  border: 1px solid var(--ct-line);
  background: #fff;
}

.ct-required-note {
  font-size: 0.8125rem;
  color: var(--navy-muted);
  margin-bottom: 1.5rem;
}

.ct-required-note b,
.ct-field label b {
  display: inline-block;
  padding: 0.05rem 0.4rem;
  margin-right: 0.15rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: 2px;
}

.ct-field label i {
  display: inline-block;
  padding: 0.05rem 0.4rem;
  background: #e9edf3;
  color: var(--navy-muted);
  font-size: 0.6875rem;
  font-style: normal;
  font-weight: 700;
  border-radius: 2px;
}

.ct-field {
  margin-bottom: 1.35rem;
}

.ct-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.ct-field label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy);
}

.ct-field input,
.ct-field select,
.ct-field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid #cfd5df;
  border-radius: 2px;
  background: #fff;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--navy);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.ct-field select {
  appearance: none;
  padding-right: 2.4rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5L6 7.5 9 4.5' fill='none' stroke='%231a2a5e' stroke-width='1.5'/%3E%3C/svg%3E") right 0.9rem center / 12px no-repeat;
}

.ct-field textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.7;
}

.ct-field input:focus,
.ct-field select:focus,
.ct-field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26, 42, 94, 0.1);
}

.ct-field .is-invalid {
  border-color: #c4262e;
  background-color: #fff6f6;
}

.ct-hint {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: var(--navy-muted);
}

.ct-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.ct-agree {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 1.75rem 0 1rem;
  font-size: 0.875rem;
  color: var(--navy);
  cursor: pointer;
}

.ct-agree input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.ct-agree input.is-invalid {
  outline: 2px solid #c4262e;
  outline-offset: 2px;
}

.ct-error {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: #fff1f1;
  border-left: 3px solid #c4262e;
  color: #a51d24;
  font-size: 0.8125rem;
  line-height: 1.7;
}

.ct-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: min(100%, 360px);
  min-height: 56px;
  margin: 0 auto;
  background: var(--accent);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: background 0.25s var(--ease), opacity 0.25s var(--ease);
}

.ct-submit svg {
  width: 20px;
  height: 20px;
}

.ct-submit:hover {
  background: var(--accent-hover);
}

.ct-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Done */
.ct-done {
  text-align: center;
  outline: none;
}

.ct-done svg {
  width: 56px;
  height: 56px;
  color: #1d7a45;
  margin: 0 auto 1rem;
}

.ct-done h2 {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.9rem;
}

.ct-done p {
  font-size: 0.875rem;
  line-height: 1.9;
  color: var(--navy-muted);
}

.ct-done .ct-done-note {
  margin: 0.6rem 0 1.75rem;
  font-size: 0.75rem;
}

/* Side */
.ct-side {
  display: grid;
  gap: 1rem;
}

.ct-card {
  padding: 1.4rem 1.4rem 1.5rem;
  background: var(--ct-soft);
}

.ct-card h2 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.ct-card p,
.ct-flow li {
  font-size: 0.8125rem;
  line-height: 1.8;
  color: var(--navy-muted);
}

.ct-mail {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-family: var(--font-en);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent);
  word-break: break-all;
}

.ct-mail svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.ct-mail:hover {
  text-decoration: underline;
}

.ct-flow {
  padding-left: 1.2rem;
  list-style: decimal;
  display: grid;
  gap: 0.35rem;
}

.ct-links {
  display: grid;
  gap: 0.45rem;
}

.ct-links a {
  font-size: 0.8125rem;
  color: var(--navy);
}

.ct-links a::before {
  content: "›";
  margin-right: 0.45rem;
  color: var(--accent);
}

.ct-links a:hover {
  color: var(--accent);
}

/* Responsive */
@media (max-width: 860px) {
  .ct-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .ct-hero {
    padding: 2.5rem 0 2rem;
  }

  .ct-main {
    padding: 1.25rem 0 3rem;
  }

  .ct-form,
  .ct-done {
    padding: 1.5rem 1.15rem 1.75rem;
  }

  .ct-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .ct-field input,
  .ct-field select,
  .ct-field textarea {
    font-size: 1rem;
  }

  .ct-agree {
    justify-content: flex-start;
    align-items: flex-start;
  }

  .ct-agree input {
    margin-top: 0.15rem;
    flex-shrink: 0;
  }
}

@media (max-width: 380px) {
  .page-contact .container {
    width: min(100% - 28px, var(--container));
  }

  .ct-hero-en {
    font-size: 2.1rem;
  }

  .ct-hero-lead {
    font-size: 0.8125rem;
  }

  .ct-form,
  .ct-done {
    padding: 1.25rem 0.9rem 1.5rem;
  }

  .ct-field label {
    font-size: 0.8125rem;
  }

  .ct-submit {
    min-height: 50px;
    font-size: 0.875rem;
  }

  .ct-card {
    padding: 1.15rem 1rem 1.25rem;
  }
}
