/* ============================================================
   Tektome — お問い合わせ (Contact) page
   Light mode, brand tokens only.
   ============================================================ */

.ct-page {
  flex: 1;
  background: var(--color-draft-white);
  font-family: var(--font-sans);
  color: var(--fg-primary);
}

/* ---- shared inner ---- */
.ct-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}
.ct-inner--narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ===================== HERO ===================== */
.ct-hero {
  padding: clamp(56px, 8vw, 96px) 0 clamp(32px, 4vw, 48px);
  text-align: center;
}
.ct-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-arch-purple);
  margin: 0 0 16px;
}
.ct-h1 {
  font-family: var(--font-sans);
  font-weight: var(--fw-light);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--color-data-black);
  margin: 0 0 20px;
  text-wrap: balance;
}
.ct-hero__lede {
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg-secondary);
  max-width: 560px;
  margin: 0 auto;
  text-wrap: pretty;
}

/* ===================== FORM SECTION ===================== */
.ct-form-section {
  padding: clamp(40px, 5vw, 64px) 0 clamp(56px, 7vw, 96px);
  background: linear-gradient(180deg, var(--purple-50, #ECECFC), var(--color-draft-white));
}
.ct-form-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

/* form grid */
.ct-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
}
.ct-form__group--full {
  grid-column: 1 / -1;
}
.ct-form__label {
  display: block;
  font-size: 13px;
  font-weight: var(--fw-medium);
  color: var(--fg-primary);
  margin-bottom: 6px;
}
.ct-form__label abbr {
  color: var(--color-arch-purple);
  text-decoration: none;
  margin-left: 2px;
}
.ct-form__input,
.ct-form__select,
.ct-form__textarea {
  width: 100%;
  box-sizing: border-box;
  background: var(--color-draft-white);
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--fg-primary);
  transition: border-color 120ms ease, box-shadow 120ms ease;
  appearance: none;
}
.ct-form__input::placeholder,
.ct-form__textarea::placeholder {
  color: var(--fg-tertiary, #A0A0A0);
}
.ct-form__input:focus,
.ct-form__select:focus,
.ct-form__textarea:focus {
  outline: none;
  border-color: var(--color-arch-purple);
  box-shadow: 0 0 0 3px rgba(81,86,219,0.15);
}
.ct-form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}
.ct-form__textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}
.ct-form__actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}
.ct-form__note {
  font-size: 12px;
  color: var(--fg-secondary);
  line-height: 1.5;
}
.ct-form__note a {
  color: var(--color-arch-purple);
  text-decoration: none;
}
.ct-form__note a:hover { text-decoration: underline; }

.ct-consent {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg-secondary);
  cursor: pointer;
}
.ct-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 2px 0 0;
  accent-color: var(--color-arch-purple);
  cursor: pointer;
}
.ct-consent a { color: var(--color-arch-purple); text-decoration: none; }
.ct-consent a:hover { text-decoration: underline; }
.ct-consent abbr { color: var(--color-arch-purple); text-decoration: none; }

.ct-form__error {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 13px;
  color: var(--color-error, #D64545);
}
.ct-form__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 24px 0;
}
.ct-form__success[hidden] { display: none; }
.ct-form__success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--purple-50, #ECECFC);
  color: var(--color-arch-purple);
}
.ct-form__success-icon svg { width: 24px; height: 24px; }
.ct-form__success-title {
  font-size: 18px;
  font-weight: var(--fw-semibold);
  color: var(--color-data-black);
  margin: 4px 0 0;
}
.ct-form__success-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-secondary);
  margin: 0;
}

/* ===================== RELATED SECTION ===================== */
.ct-related {
  background: var(--bg-section-alt, #E8EFFC);
  padding: clamp(48px, 6vw, 80px) 0;
}
.ct-related__head {
  text-align: center;
  margin-bottom: 40px;
}
.ct-h2 {
  font-family: var(--font-sans);
  font-weight: var(--fw-light);
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--color-data-black);
  margin: 0 0 10px;
}
.ct-related__sub {
  font-size: 15px;
  color: var(--fg-secondary);
  margin: 0;
}
.ct-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.ct-card {
  background: var(--color-draft-white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 150ms ease, transform 150ms ease;
}
.ct-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.ct-card__pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-arch-purple);
  background: rgba(81,86,219,0.08);
  border-radius: 999px;
  padding: 3px 10px;
  width: fit-content;
}
.ct-card__title {
  font-size: 15px;
  font-weight: var(--fw-semibold);
  color: var(--fg-primary);
  line-height: 1.4;
  margin: 0;
  text-wrap: balance;
}
.ct-card__desc {
  font-size: 13px;
  color: var(--fg-secondary);
  line-height: 1.55;
  margin: 0;
}
.ct-card__link {
  margin-top: auto;
  font-size: 13px;
  font-weight: var(--fw-medium);
  color: var(--color-arch-purple);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ct-card__link svg { width: 14px; height: 14px; flex-shrink: 0; }

@media (max-width: 900px) {
  .ct-form { grid-template-columns: 1fr; }
  .ct-form__group--full { grid-column: 1; }
  .ct-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .ct-inner, .ct-inner--narrow { padding: 0 20px; }
  .ct-cards { grid-template-columns: 1fr; }
}
