/* ============================================================
   Linktier — /contact page styles
   (depends on linktier-v1-core.css tokens + components)
   ============================================================ */

/* ---------- Contact hero ---------- */
.contact-hero {
  padding: calc(var(--header-h) + 96px) 0 96px;
  border-bottom: 1px solid var(--line);
}

.contact-hero .container {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-hero h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: 0.01em;
  text-wrap: pretty;
  max-width: 880px;
}

.contact-hero .contact-sub {
  margin: 0;
  font-size: 15.5px;
  line-height: 2.05;
  color: var(--ink-2);
  max-width: 700px;
  text-wrap: pretty;
}

.contact-hero .hero-ctas { margin-top: 10px; }

/* ---------- Contact options ---------- */
.contact-options {
  padding: 130px 0;
  background: var(--bg-white);
  border-bottom: 1px solid var(--line-soft);
}

.co-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.co-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 34px 32px 30px;
}

.co-card .co-num {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.co-card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  text-wrap: pretty;
}

.co-card .co-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.95;
  color: var(--ink-2);
  text-wrap: pretty;
}

.co-fits {
  margin-top: 6px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.co-fits-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--mut);
}

.co-fits ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.co-fits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-2);
}

.co-fits li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 2px;
  background: var(--mut-2);
  transform: rotate(45deg);
  flex: none;
  margin-top: 9px;
}

.co-card .btn { margin-top: 14px; align-self: flex-start; }

/* ---------- Contact form ---------- */
.contact-form-section {
  padding: 130px 0;
}

.cf-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) 1.28fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.cf-grid .section-head { margin-bottom: 0; }

.cf-aside-note {
  margin: 18px 0 0;
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--mut);
  text-wrap: pretty;
  max-width: 360px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(28px, 3.5vw, 44px);
  box-shadow: var(--shadow-card);
}

.cf-row-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.cf-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cf-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.cf-field .cf-req {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent);
  margin-left: 6px;
  letter-spacing: 0.04em;
}

.cf-field input,
.cf-field select,
.cf-field textarea {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  font-family: var(--font-jp);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 13px 16px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.cf-field input::placeholder,
.cf-field textarea::placeholder { color: var(--mut-2); }

.cf-field input:focus,
.cf-field select:focus,
.cf-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-white);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}

.cf-field select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--mut) 50%),
    linear-gradient(135deg, var(--mut) 50%, transparent 50%);
  background-position: calc(100% - 21px) 50%, calc(100% - 15px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 44px;
  cursor: pointer;
}

.cf-field textarea {
  min-height: 150px;
  resize: vertical;
}

.cf-submit-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.cf-submit-row .btn { padding: 14px 36px; font-size: 15px; border: none; }

.cf-impl-note {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--mut);
}

.cf-impl-note a {
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}

.cf-impl-note a:hover { border-bottom-color: var(--accent); }

/* ---------- Email fallback ---------- */
.email-fallback {
  padding: 110px 0;
  background: var(--bg-white);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.ef-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(28px, 3vw, 40px) clamp(28px, 3.5vw, 48px);
}

.ef-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ef-copy h2 {
  margin: 0;
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.5;
}

.ef-copy p {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-2);
  text-wrap: pretty;
}

.ef-mail {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-en);
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, white);
  border-radius: 999px;
  padding: 14px 28px;
  white-space: nowrap;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.ef-mail:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, white);
}

.ef-mail i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
  flex: none;
}

/* ---------- What happens next ---------- */
.next-steps {
  padding: 130px 0;
}

.ns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.ns-step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 8px 36px 8px 0;
  position: relative;
}

.ns-step + .ns-step { padding-left: 36px; border-left: 1px solid var(--line); }

.ns-step .ns-num {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.ns-step h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.55;
}

.ns-step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.95;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .co-grid { grid-template-columns: 1fr; gap: 20px; }
  .ns-grid { grid-template-columns: 1fr; gap: 28px; }
  .ns-step { padding: 0; }
  .ns-step + .ns-step { padding: 28px 0 0; border-left: none; border-top: 1px solid var(--line); }
}

@media (max-width: 960px) {
  .contact-hero { padding: calc(var(--header-h) + 56px) 0 72px; }
  .contact-options, .contact-form-section, .next-steps { padding: 96px 0; }
  .email-fallback { padding: 80px 0; }
  .cf-grid { grid-template-columns: 1fr; gap: 36px; }
  .ef-card { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .contact-options, .contact-form-section, .next-steps { padding: 80px 0; }
  .cf-row-pair { grid-template-columns: 1fr; }
  .co-card .btn { align-self: stretch; min-height: 50px; }
  .cf-submit-row .btn { flex: 1 1 100%; min-height: 50px; }
  .ef-mail { white-space: normal; word-break: break-all; }
}


.cf-submit-row .btn:disabled {
  cursor: wait;
  opacity: 0.7;
}

.cf-status {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
}

.cf-status[data-tone="success"] {
  color: #24508f;
}

.cf-status[data-tone="error"] {
  color: #a43d32;
}


/* Japanese subpage copy finalization */
.contact-hero .contact-sub {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-hero .contact-sub p {
  margin: 0;
}

.contact-form .cf-consent {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
}

.contact-form .cf-consent input {
  appearance: auto;
  -webkit-appearance: auto;
  width: 18px;
  height: 18px;
  padding: 0;
  margin-top: 4px;
  flex: none;
  accent-color: var(--accent);
  border-radius: 3px;
  cursor: pointer;
}

.contact-form .cf-consent label {
  line-height: 1.8;
  color: var(--ink-2);
  cursor: pointer;
}

.contact-form .cf-consent a {
  color: var(--accent);
  font-weight: 700;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}


/* Japanese subpage footer readability */
@media (max-width: 600px) {
  .site-footer {
    padding: 40px 0 44px;
  }

  .footer-row {
    align-items: flex-start;
    gap: 22px;
  }

  .footer-brand,
  .footer-row > span:last-child {
    width: 100%;
  }

  .footer-links {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
  }

  .footer-links a {
    line-height: 1.5;
    word-break: keep-all;
    overflow-wrap: normal;
  }
}

/* ---------- Booking and email contact methods ---------- */
.contact-methods {
  padding: 130px 0;
  background: var(--bg-white);
  border-bottom: 1px solid var(--line-soft);
}

.contact-methods-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 760px;
  margin-bottom: 44px;
}

.contact-methods-head h2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.01em;
  text-wrap: pretty;
}

.contact-methods-head p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.95;
  text-wrap: pretty;
}

.contact-methods-head .contact-methods-notice {
  max-width: 720px;
  padding-left: 14px;
  border-left: 2px solid var(--accent);
  color: var(--mut);
  font-size: 13.5px;
  line-height: 1.8;
}

.contact-methods-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(380px, 0.96fr);
  gap: clamp(22px, 2.8vw, 38px);
  align-items: stretch;
}

.contact-method-card {
  min-width: 0;
  height: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 2.6vw, 34px);
  box-shadow: var(--shadow-card);
}

#booking,
#contact-form {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.contact-method-card-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 142px;
}

.contact-method-card .co-num {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.contact-method-card h3 {
  margin: 0;
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 700;
  line-height: 1.5;
  text-wrap: pretty;
}

.contact-method-card-head p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.85;
  text-wrap: pretty;
}

.booking-frame {
  width: 100%;
  margin-top: 22px;
  overflow: hidden;
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.booking-frame iframe {
  display: block;
  width: 100%;
  height: 720px;
  min-height: 720px;
  border: 0;
}

.contact-email-card .contact-form {
  gap: 20px;
  margin-top: 22px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.contact-email-card .cf-row-pair {
  grid-template-columns: 1fr;
}

@media (max-width: 960px) {
  .contact-methods {
    padding: 96px 0;
  }

  .contact-methods-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .contact-method-card {
    height: auto;
  }

  .contact-method-card-head {
    min-height: 0;
  }

  .booking-frame iframe {
    height: 700px;
    min-height: 700px;
  }
}

@media (max-width: 600px) {
  .contact-methods {
    padding: 80px 0;
  }

  .contact-methods-head {
    margin-bottom: 32px;
  }

  .contact-method-card {
    padding: 22px 18px;
  }

  .booking-frame {
    margin-top: 18px;
  }

  .booking-frame iframe {
    height: 680px;
    min-height: 680px;
  }
}
