/* ============================================
   HARE採用AI診断 - 採用力診断LP Styles
   Brand: HARE株式会社
   ============================================ */

:root {
  /* Brand Colors */
  --brand: #074EA9;
  --brand-dark: #003A82;
  --brand-light: #DAEAFF;
  --brand-hover: #004EAE;
  --bg-page: #F1F6F8;

  /* Neutrals */
  --text-primary: #1A1A1A;
  --text-secondary: #6B7280;
  --text-tertiary: #9CA3AF;
  --border: #E5E7EB;
  --border-light: #F3F4F6;
  --bg-white: #FFFFFF;

  /* Typography */
  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-display: "Noto Serif JP", "Yu Mincho", serif;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.06);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "palt";
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ============================================
   Header
   ============================================ */

.lp-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}

.lp-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lp-header-logo {
  display: flex;
  align-items: center;
}

.lp-header-logo-img {
  height: 32px;
  width: auto;
  display: block;
  object-fit: contain;
}

.lp-header-service {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.02em;
}

/* ============================================
   Container
   ============================================ */

.lp-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

/* ============================================
   Hero
   ============================================ */

.lp-hero {
  margin-bottom: 28px;
}

.lp-hero-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
  font-feature-settings: "palt";
  margin-bottom: 12px;
}

.lp-hero-sub {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ============================================
   Form card
   ============================================ */

.lp-form-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 28px 32px;
  margin-bottom: 40px;
}

.lp-form-heading {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

/* 2-column grid */
.lp-form-grid {
  display: grid;
  grid-template-columns: 4fr 6fr;
  gap: 32px;
  margin-bottom: 24px;
}

.lp-form-col-left,
.lp-form-col-right {
  min-width: 0;
}

/* Fields */
.lp-field {
  margin-bottom: 16px;
}

.lp-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 7px;
}

.lp-required {
  font-size: 10px;
  padding: 2px 7px;
  background: var(--brand-light);
  color: var(--brand);
  border-radius: 4px;
  font-weight: 600;
}

.lp-optional {
  font-size: 10px;
  padding: 2px 7px;
  background: var(--border-light);
  color: var(--text-tertiary);
  border-radius: 4px;
  font-weight: 500;
  margin-left: 4px;
}

.lp-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: var(--bg-white);
}

.lp-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(7, 78, 169, 0.08);
}

.lp-input::placeholder { color: var(--text-tertiary); }

/* お悩みチェック カード（両カラム跨ぎ） */
.lp-concerns-card {
  background: #F0F7FF;
  border: 1px solid #C5DCEF;
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-top: 24px;
  margin-bottom: 16px;
  width: 100%;
}

.lp-concerns-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(7, 78, 169, 0.15);
}

.lp-concerns-card .lp-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lp-concerns-card .lp-checkbox-label {
  background: var(--bg-white);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  transition: border-color 0.15s, background 0.15s;
}

.lp-concerns-card .lp-checkbox-label:hover {
  border-color: var(--brand);
  background: #E3EEFA;
}

.lp-concerns-card .lp-checkbox-label:has(input:checked) {
  border-color: var(--brand);
  background: #E3EEFA;
}

.lp-section-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lp-section-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
}

/* Checkbox group */
.lp-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.lp-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  cursor: pointer;
  line-height: 1.5;
}

.lp-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--brand);
  flex-shrink: 0;
}

/* TimeRex booking widget */
#timerex_calendar {
  width: 100%;
  min-height: 600px;
  overflow-x: auto; /* min-width:550px の iframe をモバイルでコンテナ内スクロールに収める */
}

/* Date blocks */
.lp-date-block {
  background: var(--bg-page);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 10px;
}

.lp-date-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.lp-date-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Time range (start ~ end) */
.lp-time-range {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.lp-time-separator {
  font-size: 13px;
  color: var(--text-secondary);
  flex-shrink: 0;
  padding: 0 4px;
}

/* Time pair (hour : minute) */
.lp-time-pair {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.lp-time-pair .lp-time-select {
  flex: 1;
  min-width: 64px;
  padding-left: 8px;
  padding-right: 24px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  background-size: 10px;
}

.lp-time-colon {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
  flex-shrink: 0;
}

/* Submit */
.lp-submit {
  width: 100%;
  padding: 14px;
  margin-top: 4px;
  background: var(--brand);
  color: white;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s;
}

.lp-submit:hover { background: var(--brand-hover); }
.lp-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.lp-submit-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 10px;
}

/* ============================================
   About / Cases
   ============================================ */

.lp-about {
  margin-bottom: 40px;
}

.lp-about-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
}

.lp-about-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.lp-cases {
  margin-bottom: 40px;
}

/* 導入事例（詳細カード） */
.lp-case-feature {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 36px;
  margin-top: 16px;
}

.lp-case-feature-top {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.lp-case-feature-top-text {
  flex: 3;
  min-width: 0;
}

.lp-case-feature-header {
  padding-bottom: 24px;
  margin-bottom: 24px;
  position: relative;
}

.lp-case-feature-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50%;
  height: 2px;
  background: var(--brand-light);
}

.lp-case-feature-header-text {
}

.lp-case-feature-thumb {
  flex: 2;
  min-width: 0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.lp-case-feature-industry {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-light);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.lp-case-feature-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
  margin: 0 0 8px;
}


.lp-case-feature-section {
  margin-bottom: 24px;
}

.lp-case-feature-section:last-child {
  margin-bottom: 0;
}

.lp-case-feature-heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 12px;
}

.lp-case-feature-list {
  margin: 0;
  padding-left: 20px;
  list-style: disc;
}

.lp-case-feature-list li {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 6px;
}

.lp-case-feature-list li:last-child {
  margin-bottom: 0;
}

.lp-case-feature-text {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.8;
  margin: 0 0 12px;
}

.lp-case-feature-text:last-child {
  margin-bottom: 0;
}

/* 成果ハイライト（3点） */
.lp-case-feature-results {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
  padding: 20px;
  background: var(--brand-light);
  border-radius: var(--radius-md);
}

.lp-case-result-item {
  text-align: center;
}

.lp-case-result-num {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--brand);
  line-height: 1.2;
  margin-bottom: 6px;
}

.lp-case-result-label {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* 導入事例 詳細リンク */
.lp-case-feature-link-wrap {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  text-align: center;
}

.lp-case-feature-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: background-color 0.15s, color 0.15s;
}

.lp-case-feature-link:hover {
  background: var(--brand-light);
  text-decoration: underline;
}

.lp-case-feature-link:focus {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ============================================
   Complete screen
   ============================================ */

.complete-card {
  max-width: 1100px;
  margin: 80px auto 0;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 40px 36px;
  text-align: center;
}

.complete-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 28px;
}

.complete-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.complete-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 28px;
}

.complete-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 完了画面の無料相談誘導セクション（完了カード内） */
.lp-complete-booking {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.lp-complete-booking-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 8px;
}

.lp-complete-booking-desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0 0 24px;
}

.lp-complete-booking #timerex_calendar {
  width: 100%;
  min-height: 600px;
  overflow-x: auto;
}

.lp-complete-booking .complete-actions {
  max-width: 440px;
  margin: 28px auto 0;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13.5px;
  transition: all 0.15s;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--brand);
  color: white;
}

.btn-primary:hover { background: var(--brand-hover); }

.btn-block { width: 100%; }

/* ============================================
   Toast notification
   ============================================ */

.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--text-primary);
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  z-index: 100;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s;
}

.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: #DC2626; }

/* ============================================
   Responsive
   ============================================ */

/* タブレット〜小型PC: TimeRexを全幅にして見切れ回避 */
@media (max-width: 1240px) {
  .lp-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .lp-hero-title {
    font-size: 22px;
  }

  /* スマホ: フォームをflex column化し order で並び替え（TimeRexを最下部へ） */
  .lp-form-card {
    display: flex;
    flex-direction: column;
  }
  .lp-form-grid {
    display: contents;
  }
  .lp-form-col-left  { order: 1; }
  .lp-concerns-card {
    padding: 16px;
  }
  .lp-submit         { order: 3; }
  .lp-submit-note    { order: 4; }
  .lp-form-col-right { order: 5; margin-top: 24px; }

  .lp-concerns-title {
    font-size: 14px;
  }

  .lp-time-range {
    flex-wrap: wrap;
    gap: 6px;
  }

  .lp-time-separator {
    width: 100%;
    text-align: center;
    padding: 4px 0;
  }

  .lp-case-feature {
    padding: 24px 20px;
  }

  .lp-case-feature-title {
    font-size: 18px;
  }

  .lp-case-feature-results {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }

  .lp-case-result-num {
    font-size: 22px;
  }

  .lp-case-feature-top {
    flex-direction: column;
  }

  .lp-case-feature-thumb {
    width: 100%;
    height: auto;
    object-fit: contain;
    order: -1;
  }
}
