/* ============================================================
   研Q for HR — page-specific components
   Builds on styles.css + styles-v2.css (shared with /kenq_lp/).
   ============================================================ */

/* ---------- palette: deep green, to set the HR page apart from /kenq_lp/ navy ---------- */
:root {
  --ink-blue: #16302a; --ink-deep: #0d1f1a; --ink-soft: #2b4740;
  --azure: #3f9b74; --azure-strong: #2e7d5b; --azure-soft: #e6f2ec; --azure-ink: #1d3a31;
  --btn-hover: #256a4c; --btn-shadow: rgba(46,125,91,0.28); --scrim: 13,31,26;
  --sand: #f1f0ea; --cream: #f8f8f3;
}
.hr .hero-scrim { background: linear-gradient(100deg, rgba(var(--scrim),0.55) 0%, rgba(var(--scrim),0.15) 60%, transparent 100%); }
.hr .btn-primary { box-shadow: 0 6px 18px var(--btn-shadow); }
.hr .btn-primary:hover { background: var(--btn-hover); box-shadow: 0 10px 26px var(--btn-shadow); }
.hr .rs-ic { border-color: var(--azure-soft); }

/* ---------- HERO ---------- */
.hr .hero-catch { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.hr .hero-actions { margin-top: 40px; }

.hr .hero-trust .nb { display: inline-block; }

/* sample consult card (replaces the product screenshot) */
.ask-card {
  background: var(--white); border-radius: var(--r-lg); padding: 30px 30px 26px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.35); max-width: 460px; margin-left: auto;
  color: var(--ink-blue);
}
.ask-head { display: flex; align-items: center; gap: 10px; font-family: var(--font-latin); font-size: 0.7rem; letter-spacing: 0.14em; color: var(--muted); padding-bottom: 18px; border-bottom: 1px solid var(--border-soft); margin-bottom: 20px; }
.ask-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.ask-label { font-size: 0.68rem; letter-spacing: 0.08em; color: var(--muted); margin: 18px 0 8px; }
.ask-label:first-of-type { margin-top: 0; }
.ask-input { font-size: 0.95rem; line-height: 1.7; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--cream); }
.ask-caret { display: inline-block; width: 1.5px; height: 1em; background: var(--azure-strong); margin-left: 2px; vertical-align: -2px; animation: caret 1.1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.ask-badge { font-size: 0.62rem; letter-spacing: 0.04em; color: var(--gold); border: 1px solid var(--border-gold); border-radius: var(--r-pill); padding: 3px 9px; }

.ask-label-row { display: flex; justify-content: space-between; align-items: baseline; }
.ask-count { font-size: 0.64rem; color: var(--gold); letter-spacing: 0.04em; }
.ask-res { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ar {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border: 1px solid var(--border-soft); border-radius: var(--r-sm);
  opacity: 0; transform: translateY(8px); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.ar.in { opacity: 1; transform: none; }
.ar-av { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--azure-soft); color: var(--azure-strong); }
.ar-av svg { width: 18px; height: 18px; }
.ar-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ar-name { font-size: 0.8rem; color: var(--ink-blue); letter-spacing: 0.06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-mask { font-size: 0.6rem; letter-spacing: 0.08em; color: #c9cfd8; }
.ar-pos { font-size: 0.68rem; color: var(--muted); letter-spacing: 0.02em; margin-left: 10px; }
.ar-topic { font-size: 0.74rem; color: var(--azure-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ask-note { margin-top: 12px; font-size: 0.62rem; color: #a3abb8; text-align: right; }
@media (prefers-reduced-motion: reduce) { .ar { opacity: 1; transform: none; transition: none; } }


/* ---------- ② WHY NOW ---------- */
.why { background: var(--white); }
.why-lead { margin-top: 30px; font-weight: 400; font-size: clamp(1.02rem, 1.5vw, 1.18rem); line-height: 2; color: var(--ink-blue); max-width: 900px; }
.why-pain { margin-top: 44px; }
.why-pain-lab { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; color: var(--azure-strong); margin-bottom: 8px; }
.why-bridge { margin-top: 32px; font-weight: 500; font-size: clamp(1rem, 1.5vw, 1.14rem); line-height: 1.8; color: var(--ink-blue); }
.pc-br { display: inline; }
@media (max-width: 820px) { .pc-br { display: none; } }
.why-answer { margin-top: 88px; padding-top: 64px; border-top: 1px solid var(--border); text-align: center; }
.why-answer-main { font-weight: 500; font-size: clamp(1.45rem, 2.8vw, 2.15rem); line-height: 1.6; letter-spacing: 0.03em; color: var(--ink-blue); }
.why-answer-main span { display: inline-block; }
.why-answer-main em { font-style: normal; color: var(--azure-strong); }
.why-fields { list-style: none; margin: 32px auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 760px; }
.why-fields li { font-size: 0.86rem; letter-spacing: 0.04em; padding: 8px 18px; border-radius: 999px; background: var(--azure-soft); color: var(--azure-ink); }
.why-answer-sub { margin-top: 30px; font-weight: 300; font-size: 1rem; line-height: 2.1; color: var(--ink-soft); }
.why-answer-sub strong { font-weight: 500; color: var(--ink-blue); }
.why-kenq { margin: 136px 0 96px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 56px clamp(36px, 5vw, 72px); background: var(--ink-blue); border-radius: 18px; }
.why-demo { min-width: 0; }
.why-demo .ask-card { width: 100%; max-width: 500px; margin: -112px 0 -112px auto; box-shadow: 0 30px 60px -20px rgba(var(--scrim), 0.45); }
.why-kenq-key { margin: 0; font-family: var(--font-latin), var(--font-ja); font-weight: 500; font-size: 1.1rem; letter-spacing: 0.1em; color: var(--gold-light); }
.why-kenq-key .what-x { font-family: var(--font-latin); font-weight: 300; color: rgba(255,255,255,0.5); margin: 0 0.1em; }
.why-kenq-lead { margin: 18px 0 0; font-weight: 500; font-size: clamp(1.45rem, 2.5vw, 2rem); line-height: 1.6; letter-spacing: 0.03em; color: #fff; }
.why-kenq-lead span { display: inline-block; }
.why-kenq-lead em { font-style: normal; color: var(--gold-light); border-bottom: 2px solid rgba(212,175,110,0.55); }
.why-kenq-text { margin: 20px 0 0; font-weight: 300; font-size: 0.92rem; line-height: 2; color: rgba(255,255,255,0.75); }
@media (max-width: 820px) {
  .why-answer { margin-top: 64px; padding-top: 48px; }
  .why-fields li { font-size: 0.8rem; padding: 6px 14px; }
  .why-kenq { margin: 64px 0 72px; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 32px 20px 0; }
  .why-demo .ask-card { margin: 0 auto -48px; }
}
.why-pain-cap { font-size: 0.92rem; color: var(--muted); margin-bottom: 18px; }
.why-pain-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--border); }
.why-pain-list li { padding: 28px 26px; font-size: 0.98rem; line-height: 1.85; color: var(--ink-blue); position: relative; }
.why-pain-list li + li { border-left: 1px solid var(--border); }
.why-pain-list li::before { content: ''; display: block; width: 22px; height: 1.5px; background: var(--gold); margin-bottom: 16px; }

/* ---------- ③ DOMAINS ---------- */
.domains { background: var(--cream); }
.dom-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
/* flip card: both faces share one grid cell, so the card grows to the taller face */
.dom { perspective: 1400px; cursor: pointer; outline: none; }
.dom-flip { display: grid; height: 100%; transform-style: preserve-3d; transition: transform 0.6s var(--ease); }
.dom.flipped .dom-flip { transform: rotateY(180deg); }
.dom-face {
  grid-area: 1 / 1; display: flex; flex-direction: column; padding: 28px 24px 24px;
  border: 1px solid var(--border); border-radius: var(--r-md);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.dom-front { background: var(--white); transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.dom:hover .dom-front, .dom:focus-visible .dom-front { border-color: var(--border-gold); box-shadow: 0 16px 36px rgba(26,31,46,0.08); }
.dom-back { background: var(--ink-blue); border-color: var(--ink-blue); color: #fff; transform: rotateY(180deg); padding: 24px 24px 20px; }
.dom-ic { width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--sand); color: var(--gold); border: 1px solid var(--border-gold-faint); margin-bottom: 18px; }
.dom-ic svg { width: 22px; height: 22px; }
.dom-title { word-break: keep-all; overflow-wrap: anywhere; font-weight: 500; font-size: 1rem; line-height: 1.6; letter-spacing: 0.02em; color: var(--ink-blue); margin-bottom: 8px; }
.dom-desc { font-weight: 300; font-size: 0.86rem; line-height: 1.85; color: var(--muted); flex: 1; }
.dom-more { margin-top: 18px; font-size: 0.74rem; letter-spacing: 0.04em; color: var(--azure-strong); }
.dom-more .arr { display: inline-block; margin-left: 2px; transition: transform 0.3s var(--ease); }
.dom:hover .dom-more .arr { transform: rotate(180deg); }
.dom-back-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-weight: 600; font-size: 0.95rem; line-height: 1.5; letter-spacing: 0.03em; color: #fff; padding-bottom: 12px; border-bottom: 1px solid rgba(212,175,110,0.45); margin-bottom: 14px; }
.dom-back-n { font-family: var(--font-latin); font-weight: 500; font-size: 0.72rem; color: var(--gold-light); flex-shrink: 0; }
.dom-back-list { list-style: none; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.dom-back-list li { position: relative; padding-left: 16px; font-weight: 400; font-size: 0.92rem; line-height: 1.65; letter-spacing: 0.02em; color: #fff; }
.dom-back-list li::before { content: ''; position: absolute; left: 0; top: 0.65em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-light); }
.dom-back-foot { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 0.76rem; }
.dom-back-ret { color: rgba(250,248,244,0.85); }
@media (prefers-reduced-motion: reduce) { .dom-flip { transition: none; } }
.dom-close { margin-top: 40px; text-align: center; font-weight: 500; font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--ink-blue); letter-spacing: 0.03em; }

/* ---------- ④ WHAT ---------- */

/* ---------- ⑤ STEPS ---------- */
.steps3 { background: var(--white); padding-bottom: clamp(56px, 6vw, 80px); }
.st-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 56px; border: 1px solid var(--border); background: var(--white); }
.st { padding: 36px 32px; position: relative; }
.st + .st { border-left: 1px solid var(--border); }
.st + .st::before {
  content: '→'; position: absolute; left: -10px; top: 40px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--border); color: var(--gold); font-size: 0.7rem;
  display: flex; align-items: center; justify-content: center; z-index: 1;
}
.st-no { font-family: var(--font-latin); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.st-title { font-weight: 500; font-size: 1.12rem; letter-spacing: 0.03em; color: var(--ink-blue); margin-bottom: 12px; }
.st-desc { font-weight: 300; font-size: 0.9rem; line-height: 1.95; color: var(--muted); }

/* ---------- ⑥ WHY 研Q ---------- */
.reason { background: var(--sand); }
.rs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
.rs { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md); padding: 34px 30px; }
.rs-ic { width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--azure-soft); color: var(--azure-strong); border: 1px solid rgba(79,141,239,0.16); margin-bottom: 22px; }
.rs-ic svg { width: 24px; height: 24px; }
.rs-title { font-weight: 500; font-size: 1.1rem; letter-spacing: 0.03em; color: var(--ink-blue); margin-bottom: 12px; }
.rs-desc { font-weight: 300; font-size: 0.9rem; line-height: 1.95; color: var(--muted); }
.rs-close { margin-top: 48px; text-align: center; font-weight: 300; font-size: clamp(0.98rem, 1.45vw, 1.12rem); line-height: 2; color: var(--ink-soft); }
.rs-close strong { font-weight: 600; color: var(--ink-blue); }


/* ---------- ⑧ FREE TRIAL ---------- */
.hr .final-lead { max-width: 440px; }
.trial { margin-top: 34px; border-top: 1px solid var(--border-on-dark); max-width: 440px; }
.trial div { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border-on-dark); }
.trial dt { font-size: 0.78rem; letter-spacing: 0.08em; color: var(--gold-light); padding-top: 2px; }
.trial dd { font-size: 0.95rem; line-height: 1.7; color: #fff; }
.trial-note { margin-top: 22px; font-weight: 300; font-size: 0.78rem; line-height: 1.95; color: var(--on-dark-faint); max-width: 440px; }

.field-check .check { display: flex; align-items: center; gap: 10px; font-weight: 400; font-size: 0.84rem; color: var(--ink-blue); cursor: pointer; }
.field-check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--azure-strong); flex-shrink: 0; margin: 0; }
.field-check a { color: var(--azure-strong); text-decoration: none; border-bottom: 1px solid currentColor; }
.field-check.invalid .check { color: #e0533d; }

/* ---------- ⑨ ABOUT ---------- */

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1000px) {
  .hr .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .dom-grid { grid-template-columns: repeat(2, 1fr); }
  .ask-card { margin: 0 auto; }
}
@media (max-width: 820px) {
  .why-pain-list, .st-grid, .rs-grid { grid-template-columns: 1fr; }
  .why-pain-list li + li, .st + .st { border-left: none; border-top: 1px solid var(--border); }
  .st + .st::before { content: '↓'; left: 32px; top: -10px; }
  .pc-br { display: none; }
}
@media (max-width: 600px) {
  .dom-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .dom-grid { gap: 10px; }
  .dom-face { padding: 20px 18px 18px; }
  .dom-ic { width: 40px; height: 40px; margin-bottom: 14px; }
  .ask-card { padding: 24px 20px 22px; }
  .ask-input { min-height: calc(1.7em * 2 + 26px); } /* rotating issues wrap to 2 lines; keep card height steady */
  .ar { min-height: 96px; }
  .ar-name, .ar-topic { white-space: normal; }
  .ar-pos { display: block; margin-left: 0; }
  .ar .ask-badge { display: none; }
  .hr .hero-trust { white-space: normal; line-height: 1.6; font-size: 0.78rem; }
}
.why-title span { display: inline-block; }
@media (max-width: 480px) { .hr .hero-catch { font-size: 1.85rem; } }
.hr .hero-trust { margin-top: 40px; }

.hr .hero-inner { grid-template-columns: minmax(0, 1fr); }

/* ---------- centered layout (hero + section headers) ---------- */
.hr .hero[data-layout="center"] .hero-inner { justify-items: center; text-align: center; }
.hr .hero[data-layout="center"] .hero-text { max-width: 860px; margin: 0 auto; }
.hr .hero[data-layout="center"] .hero-sub { max-width: 640px; margin-left: auto; margin-right: auto; }
.hr .hero[data-layout="center"] .hero-eyebrow { justify-content: center; }
.hr .hero[data-layout="center"] .hero-trust { width: fit-content; max-width: 100%; margin-left: auto; margin-right: auto; }
.hr .hero[data-layout="center"] .hero-glyph { left: 50%; transform: translateX(-50%); }

.hr .why .inner > .eyebrow, .hr .domains .inner > .eyebrow, .hr .steps3 .inner > .eyebrow, .hr .reason .inner > .eyebrow,
.hr .hero .eyebrow { display: flex; justify-content: center; }
.hr .why .inner > .eyebrow::after, .hr .domains .inner > .eyebrow::after, .hr .steps3 .inner > .eyebrow::after, .hr .reason .inner > .eyebrow::after,
.hr .hero .eyebrow::after { content: ''; width: 34px; height: 1px; background: var(--gold); }
.hr .why .sec-title, .hr .domains .sec-title, .hr .steps3 .sec-title, .hr .reason .sec-title,
.hr .why-lead, .hr .why-bridge, .hr .dom-close, .hr .rs-close { text-align: center; margin-left: auto; margin-right: auto; }
.hr .why-lead { max-width: 820px; }

/* ---------- case note (実績) ---------- */
.track { margin: 48px auto 0; max-width: 1100px; text-align: center; }
.track .eyebrow { display: flex; justify-content: center; }
.track .eyebrow::after { content: ''; width: 34px; height: 1px; background: var(--gold); }
.track-lead { margin-top: 22px; font-family: var(--font-ja); font-weight: 400; font-size: clamp(1.55rem, 3vw, 2.25rem); line-height: 1.55; letter-spacing: 0.05em; color: var(--ink-blue); }
.track-lead span { display: inline-block; }
.track-lead em { font-style: normal; color: var(--gold); }
.track-tags { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
@media (min-width: 1000px) { .track-tags { flex-wrap: nowrap; } }
.track-tags li { font-size: 0.82rem; letter-spacing: 0.02em; padding: 6px 12px; white-space: nowrap; border: 1px solid rgba(184,150,74,0.55); border-radius: 4px; color: var(--ink-blue); background: var(--white); }

/* ---------- mobile fixed CTA ---------- */
.m-cta { display: none; }
@media (max-width: 820px) {
  .m-cta {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 90; padding: 15px 20px; border-radius: 12px;
    background: var(--azure-strong); color: #fff; text-decoration: none;
    font-weight: 500; font-size: 0.95rem; letter-spacing: 0.08em;
    box-shadow: 0 14px 30px -10px rgba(var(--scrim), 0.55);
    transition: opacity .25s, transform .25s;
  }
  .m-cta.is-hidden { opacity: 0; transform: translateY(16px); pointer-events: none; }
  .hr footer { padding-bottom: 96px; }
}

/* ---------- 年内限定 notices ---------- */
.lb-tag { display: inline-block; flex-shrink: 0; padding: 3px 10px; border-radius: 4px; background: var(--gold); color: var(--ink-deep); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; }
.limited-badge { margin-top: 36px; display: inline-flex; align-items: center; gap: 12px; max-width: 100%; padding: 10px 18px 10px 10px; border: 1px solid rgba(212,175,110,0.55); border-radius: 999px; background: rgba(212,175,110,0.10); color: #fff; text-decoration: none; font-size: 0.9rem; letter-spacing: 0.03em; transition: background .2s; }
.limited-badge:hover { background: rgba(212,175,110,0.2); }
.limited-badge .lb-tag { border-radius: 999px; }
.limited-badge .arr { color: var(--gold-light); }
.limited-badge .nb { display: inline-block; }
.limited-badge .lb-text { text-align: left; line-height: 1.5; }
.limited-note { margin-top: 18px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 0.86rem; color: var(--gold-light); letter-spacing: 0.03em; }
@media (max-width: 480px) { .limited-badge { font-size: 0.8rem; padding: 8px 14px 8px 8px; border-radius: 16px; } }
.limited-badge .lb-date { margin-left: 0.8em; color: var(--gold-light); }
@media (max-width: 480px) { .limited-badge .lb-text .nb { display: block; } .limited-badge .lb-date { margin-left: 0; font-size: 0.74rem; } }
