/* THE4KIND ヒアリングシート - フロントスタイル
   全クラスに t4khs- プレフィックス。テーマCSSと競合しません。 */

.t4khs-wrap,
.t4khs-wrap *,
.t4khs-wrap *::before,
.t4khs-wrap *::after { box-sizing: border-box; }

.t4khs-wrap {
  --t4khs-accent: #2780BD;
  --t4khs-accent-hover: #1F6CA1;
  --t4khs-accent-soft: #E6F1F9;
  --t4khs-bg-card: #FFFFFF;
  --t4khs-bg-page: #F6F7F8;
  --t4khs-bg-subtle: #EEF1F3;
  --t4khs-border: #E2E5E8;
  --t4khs-border-strong: #CFD3D8;
  --t4khs-required: #C45C3E;
  --t4khs-text-muted: #9A9A9A;
  --t4khs-text-primary: #3A3A3A;
  --t4khs-text-secondary: #6E6E6E;
  --t4khs-logo-blue: #2780BD;
  --t4khs-logo-gray: #888888;
  --t4khs-font-sans: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'メイリオ', sans-serif;
  --t4khs-font-serif: 'Noto Serif JP', '游明朝', 'Yu Mincho', serif;
  --t4khs-radius-sm: 6px;
  --t4khs-radius-md: 10px;
  --t4khs-radius-lg: 16px;

  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  font-family: var(--t4khs-font-sans);
  font-size: 14px;
  line-height: 1.7;
  color: var(--t4khs-text-primary);
  background: var(--t4khs-bg-page);
  border-radius: var(--t4khs-radius-lg);
  overflow: hidden;
}

.t4khs-wrap p,
.t4khs-wrap h1,
.t4khs-wrap h2,
.t4khs-wrap h3,
.t4khs-wrap label { margin: 0; padding: 0; }

.t4khs-wrap a { color: var(--t4khs-accent); }
.t4khs-wrap hr { border: 0; height: 1px; background: var(--t4khs-border); margin: 0; }

.t4khs-form { display: block; }

/* ハニーポット（人間からは不可視・スクリーンリーダーからも除外） */
.t4khs-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ========== Hero ========== */
.t4khs-hero {
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  padding: 64px 80px 96px;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--t4khs-bg-page) 100%);
  text-align: center;
}
.t4khs-logo { display: inline-flex; align-items: center; gap: 14px; }
.t4khs-logo-mark {
  position: relative; width: 56px; height: 56px;
  border-radius: 6px; background: var(--t4khs-logo-blue); overflow: hidden;
}
.t4khs-logo-mark::before,
.t4khs-logo-mark::after { content: ""; position: absolute; background: #FFFFFF; }
.t4khs-logo-mark::before { left: 26px; top: 0; width: 3px; height: 56px; }
.t4khs-logo-mark::after  { left: 0; top: 26px; width: 56px; height: 3px; }
.t4khs-logo-mark > i {
  position: absolute; left: 8px; top: 8px; width: 14px; height: 14px;
  background: var(--t4khs-logo-blue); border: 2px solid #FFFFFF; display: block;
}
.t4khs-logo-text {
  font-family: 'Inter', sans-serif; font-size: 32px; font-weight: 400;
  letter-spacing: 1px; color: var(--t4khs-logo-gray);
}
.t4khs-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--t4khs-accent-soft); color: var(--t4khs-accent);
  font-size: 12px; font-weight: 600; letter-spacing: 1px;
}
.t4khs-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--t4khs-accent); }
.t4khs-title {
  font-family: var(--t4khs-font-serif); font-size: 40px; font-weight: 600;
  line-height: 1.3; color: var(--t4khs-text-primary); max-width: 760px;
}
.t4khs-lead { font-size: 15px; line-height: 1.7; color: var(--t4khs-text-secondary); max-width: 640px; }
.t4khs-notice {
  display: flex; align-items: flex-start; gap: 10px;
  width: 100%; max-width: 640px; padding: 16px;
  background: #FFFFFF; border: 1px solid var(--t4khs-border);
  border-radius: var(--t4khs-radius-md); text-align: left;
}
.t4khs-notice .t4khs-ic { color: var(--t4khs-accent); flex: 0 0 18px; margin-top: 2px; }
.t4khs-notice p { font-size: 13px; line-height: 1.7; color: var(--t4khs-text-secondary); }

/* ========== Content ========== */
.t4khs-content {
  display: flex; flex-direction: column; gap: 72px;
  padding: 0 80px 120px; background: var(--t4khs-bg-page);
}
.t4khs-section {
  display: flex; flex-direction: column; gap: 20px; padding: 48px;
  background: var(--t4khs-bg-card); border: 1px solid var(--t4khs-border);
  border-radius: var(--t4khs-radius-lg);
}
.t4khs-section-header { display: flex; flex-direction: column; gap: 10px; padding-bottom: 24px; }
.t4khs-section-top   { display: flex; align-items: center; gap: 14px; }
.t4khs-section-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; background: var(--t4khs-accent); color: #FFFFFF;
  border-radius: 10px; font-size: 14px; font-weight: 700; font-family: 'Inter', sans-serif;
}
.t4khs-section-title { font-family: var(--t4khs-font-serif); font-size: 26px; font-weight: 600; color: var(--t4khs-text-primary); }
.t4khs-section-desc { font-size: 14px; line-height: 1.7; color: var(--t4khs-text-secondary); }
.t4khs-section-body { display: flex; flex-direction: column; gap: 32px; padding-top: 16px; }

/* ========== Sub heading ========== */
.t4khs-subhead { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; }
.t4khs-subhead::before {
  content: ""; display: inline-block; width: 3px; height: 18px;
  border-radius: 2px; background: var(--t4khs-accent);
}
.t4khs-subhead-title { font-size: 16px; font-weight: 600; color: var(--t4khs-text-primary); }

/* ========== Question text ========== */
.t4khs-q-hint  { font-size: 13px; color: var(--t4khs-text-muted); font-style: italic; line-height: 1.6; }
.t4khs-q-desc  { font-size: 13px; color: var(--t4khs-text-secondary); line-height: 1.6; }

/* ========== Field row ========== */
.t4khs-field-row { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 16px 0; }
.t4khs-field-label { padding-top: 12px; font-size: 14px; font-weight: 500; color: var(--t4khs-text-primary); }
.t4khs-field-input { display: flex; flex-direction: column; gap: 8px; }
.t4khs-req {
  display: inline-block; margin-left: 6px; padding: 1px 6px;
  font-size: 11px; font-weight: 600; vertical-align: middle;
  color: #FFFFFF; background: var(--t4khs-required); border-radius: 4px;
}

/* ========== Inputs ========== */
.t4khs-input, .t4khs-textarea {
  width: 100%; padding: 0 14px; height: 44px;
  font: inherit; font-size: 14px; color: var(--t4khs-text-primary);
  background: var(--t4khs-bg-card); border: 1px solid var(--t4khs-border);
  border-radius: var(--t4khs-radius-sm); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.t4khs-textarea { height: 120px; padding: 14px; line-height: 1.7; resize: vertical; }
.t4khs-textarea--lg { height: 200px; padding: 18px; border-radius: var(--t4khs-radius-md); }
.t4khs-input:focus, .t4khs-textarea:focus { border-color: var(--t4khs-accent); box-shadow: 0 0 0 3px var(--t4khs-accent-soft); }
.t4khs-input::placeholder, .t4khs-textarea::placeholder { color: var(--t4khs-text-muted); }
.t4khs-input.t4khs-invalid, .t4khs-textarea.t4khs-invalid { border-color: var(--t4khs-required); box-shadow: 0 0 0 3px rgba(196,92,62,.12); }
.t4khs-sub-label { font-size: 12px; font-weight: 500; color: var(--t4khs-text-secondary); }

/* ========== Checkbox / Radio ========== */
.t4khs-check, .t4khs-radio {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 0;
  cursor: pointer; font-size: 14px; color: var(--t4khs-text-primary); user-select: none;
}
.t4khs-check input, .t4khs-radio input {
  appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 0;
  background: var(--t4khs-bg-card); border: 1.5px solid #BFC4C9; cursor: pointer;
  flex: 0 0 18px; position: relative; transition: background-color .15s, border-color .15s;
}
.t4khs-check input { border-radius: 4px; }
.t4khs-radio input { border-radius: 50%; }
.t4khs-check input:checked, .t4khs-radio input:checked { background: var(--t4khs-accent); border-color: var(--t4khs-accent); }
.t4khs-check input:checked::after {
  content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px;
  border-right: 2px solid #FFFFFF; border-bottom: 2px solid #FFFFFF; transform: rotate(45deg);
}
.t4khs-radio input:checked { background: var(--t4khs-bg-card); border-color: var(--t4khs-accent); }
.t4khs-radio input:checked::after {
  content: ""; position: absolute; left: 3px; top: 3px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--t4khs-accent);
}
.t4khs-check input:disabled, .t4khs-radio input:disabled { opacity: .4; cursor: not-allowed; }
.t4khs-check input:disabled + *, .t4khs-check:has(input:disabled) { color: var(--t4khs-text-muted); }

.t4khs-options-grid { display: grid; gap: 6px 24px; }
.t4khs-options-grid--2 { grid-template-columns: repeat(2, 1fr); }
.t4khs-options-grid--3 { grid-template-columns: repeat(3, 1fr); }
.t4khs-options-inline  { display: flex; flex-wrap: wrap; gap: 6px 24px; }

/* ========== Stacked card ========== */
.t4khs-stack-card { display: flex; flex-direction: column; border: 1px solid var(--t4khs-border); border-radius: var(--t4khs-radius-md); overflow: hidden; }
.t4khs-stack-card > .t4khs-field-row { padding: 16px 20px; display: grid; grid-template-columns: 240px 1fr; gap: 20px; margin: 0; }
.t4khs-stack-card > .t4khs-field-row + .t4khs-field-row { border-top: 1px solid var(--t4khs-border); }
.t4khs-stack-card > .t4khs-field-row--zebra:nth-child(even) { background: var(--t4khs-bg-subtle); }

/* ========== Table-like rows ========== */
.t4khs-table { display: flex; flex-direction: column; gap: 8px; }
.t4khs-table-head, .t4khs-table-row { display: grid; gap: 20px; align-items: center; }
.t4khs-table-head {
  padding: 12px 20px; background: var(--t4khs-bg-subtle); border-radius: var(--t4khs-radius-sm);
  font-size: 13px; font-weight: 600; color: var(--t4khs-text-secondary);
}
.t4khs-table-row { padding: 0 20px; }
.t4khs-table--3col .t4khs-table-head,
.t4khs-table--3col .t4khs-table-row { grid-template-columns: 1.2fr 1.5fr 2fr; }
.t4khs-table--2col .t4khs-table-head,
.t4khs-table--2col .t4khs-table-row { grid-template-columns: 1fr 2fr; }
.t4khs-table--kw .t4khs-table-head,
.t4khs-table--kw .t4khs-table-row { grid-template-columns: 2fr 1.4fr; }

/* ========== Alert / info ========== */
.t4khs-alert { display: flex; align-items: flex-start; gap: 12px; padding: 16px; background: #FFF8E8; border-radius: var(--t4khs-radius-md); }
.t4khs-alert .t4khs-ic { color: var(--t4khs-required); flex: 0 0 18px; margin-top: 2px; }
.t4khs-alert p { font-size: 13px; line-height: 1.6; color: var(--t4khs-text-primary); }
.t4khs-info-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px;
  background: var(--t4khs-accent-soft); color: var(--t4khs-accent);
  border-radius: var(--t4khs-radius-sm); font-size: 12px; font-weight: 600;
}
.t4khs-checklist-box {
  display: flex; flex-direction: column; gap: 14px; padding: 24px;
  background: var(--t4khs-bg-subtle); border: 1px solid var(--t4khs-border); border-radius: var(--t4khs-radius-md);
}
.t4khs-checklist-box h3 { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--t4khs-text-primary); }
.t4khs-checklist-box ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.t4khs-checklist-box li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--t4khs-text-secondary); line-height: 1.7; }
.t4khs-checklist-box li .t4khs-ic { color: var(--t4khs-accent); flex: 0 0 18px; }

/* ========== Footer ========== */
.t4khs-footer {
  display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 80px;
  background: #FFFFFF; border-top: 1px solid var(--t4khs-border); text-align: center;
}
.t4khs-logo-sm .t4khs-logo-mark { width: 34px; height: 34px; border-radius: 4px; }
.t4khs-logo-sm .t4khs-logo-mark::before { left: 15.5px; top: 0; width: 1.8px; height: 34px; }
.t4khs-logo-sm .t4khs-logo-mark::after  { left: 0; top: 15.5px; width: 34px; height: 1.8px; }
.t4khs-logo-sm .t4khs-logo-mark > i { left: 5px; top: 5px; width: 8.4px; height: 8.4px; border-width: 1.2px; }
.t4khs-logo-sm .t4khs-logo-text { font-size: 19.2px; }
.t4khs-footer-title { font-family: var(--t4khs-font-serif); font-size: 24px; font-weight: 600; color: var(--t4khs-text-primary); }
.t4khs-footer-desc { font-size: 14px; color: var(--t4khs-text-secondary); max-width: 560px; line-height: 1.7; }
.t4khs-footer-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; justify-content: center; }
.t4khs-btn-primary, .t4khs-btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; font: inherit; font-size: 15px; font-weight: 600;
  border-radius: var(--t4khs-radius-sm); cursor: pointer; border: 1px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s, opacity .15s;
}
.t4khs-btn-primary { background: var(--t4khs-accent); color: #FFFFFF; border-color: var(--t4khs-accent); }
.t4khs-btn-primary:hover { background: var(--t4khs-accent-hover); border-color: var(--t4khs-accent-hover); }
.t4khs-btn-secondary { background: #FFFFFF; color: var(--t4khs-text-primary); border-color: var(--t4khs-border-strong); }
.t4khs-btn-secondary:hover { background: var(--t4khs-bg-subtle); }
.t4khs-btn-primary:disabled, .t4khs-btn-secondary:disabled { opacity: .6; cursor: default; }

/* 送信中スピナー */
.t4khs-spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #FFFFFF; border-radius: 50%; animation: t4khs-spin .7s linear infinite; }
.t4khs-form.is-submitting .t4khs-btn-primary .t4khs-spinner { display: inline-block; }
.t4khs-form.is-submitting .t4khs-btn-primary .t4khs-btn-arrow { display: none; }
@keyframes t4khs-spin { to { transform: rotate(360deg); } }

/* 結果メッセージ */
.t4khs-message { width: 100%; max-width: 560px; padding: 14px 18px; border-radius: var(--t4khs-radius-sm); font-size: 14px; line-height: 1.7; }
.t4khs-message.is-error   { background: #FCEDE8; color: #9B3B22; border: 1px solid #E8C3B7; }
.t4khs-message.is-success { background: var(--t4khs-accent-soft); color: var(--t4khs-accent-hover); border: 1px solid #BBD9EC; }

/* 送信完了画面 */
.t4khs-done { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 96px 40px; text-align: center; }
.t4khs-done-icon { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--t4khs-accent-soft); color: var(--t4khs-accent); }
.t4khs-done-icon svg { width: 32px; height: 32px; }
.t4khs-done-title { font-family: var(--t4khs-font-serif); font-size: 28px; font-weight: 600; color: var(--t4khs-text-primary); }
.t4khs-done-desc { font-size: 14px; color: var(--t4khs-text-secondary); max-width: 480px; line-height: 1.8; }

/* SVG icon helper */
.t4khs-ic { width: 18px; height: 18px; display: inline-block; }
.t4khs-ic--sm { width: 14px; height: 14px; }
.t4khs-ic--md { width: 16px; height: 16px; }

/* ========== Responsive ========== */
@media (max-width: 720px) {
  .t4khs-hero { padding: 40px 20px 56px; gap: 20px; }
  .t4khs-title { font-size: 28px; }
  .t4khs-lead { font-size: 14px; }
  .t4khs-content { padding: 0 16px 64px; gap: 40px; }
  .t4khs-section { padding: 24px 20px; border-radius: var(--t4khs-radius-md); }
  .t4khs-section-title { font-size: 22px; }
  .t4khs-field-row { grid-template-columns: 1fr; gap: 8px; padding: 12px 0; }
  .t4khs-field-label { padding-top: 0; }
  .t4khs-stack-card > .t4khs-field-row { grid-template-columns: 1fr; padding: 16px; }
  .t4khs-options-grid--2, .t4khs-options-grid--3 { grid-template-columns: 1fr; }
  .t4khs-table--3col .t4khs-table-head,
  .t4khs-table--3col .t4khs-table-row,
  .t4khs-table--2col .t4khs-table-head,
  .t4khs-table--2col .t4khs-table-row,
  .t4khs-table--kw .t4khs-table-head,
  .t4khs-table--kw .t4khs-table-row { grid-template-columns: 1fr; }
  .t4khs-table-head { display: none; }
  .t4khs-footer { padding: 48px 20px; }
}
