/* =========================================================
   ほたか｜転職エージェント比較LP
   レイアウト：スマホ1カラム基準 → 768px以上で2カラム化
   ========================================================= */
:root {
  --navy: #0E1B33;
  --navy-2: #172A4D;
  --ink: #1B2337;
  --muted: #5A6377;
  --paper: #FFFFFF;
  --mist: #F4F5F8;
  --line: #E2E5EC;
  --gold: #B08D57;
  --gold-deep: #8E6E3E;
  --gold-soft: #F3ECDF;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", "Noto Serif CJK JP", serif;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Meiryo", "Noto Sans JP", system-ui, sans-serif;
  --latin: "Didot", "Bodoni 72", "Georgia", "Times New Roman", serif;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(14, 27, 51, .04), 0 8px 24px rgba(14, 27, 51, .06);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.45; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: 20px; }
.wrap-narrow { max-width: 760px; }
.sp { display: inline; }
.center { text-align: center; }
.gold { color: var(--gold); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--paper); padding: 8px 12px; }

/* ---------- PR bar / header ---------- */
.pr-bar { background: var(--navy); color: rgba(255,255,255,.78); font-size: 11px; text-align: center; padding: 6px 16px; letter-spacing: .06em; }
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px; display: grid; place-items: center;
  border: 1px solid var(--gold); color: var(--gold); border-radius: 50%;
  font-family: var(--latin); font-size: 15px; line-height: 1;
}
.brand-name { font-family: var(--latin); font-size: 17px; font-weight: 400; letter-spacing: .2em; color: var(--navy); line-height: 1.1; display: flex; flex-direction: column; }
.brand-name small { font-family: var(--sans); font-size: 9.5px; letter-spacing: .12em; color: var(--gold-deep); font-weight: 500; margin-top: 5px; }
.header-link { font-size: 13px; text-decoration: none; padding: 6px 14px; border: 1px solid var(--navy); border-radius: 999px; color: var(--navy); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: .06em; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn-gold { background: linear-gradient(180deg, #C2A06A, var(--gold)); color: #fff; box-shadow: 0 6px 18px rgba(176,141,87,.35); }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(176,141,87,.42); }
.btn-ghost { border: 1px solid rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.08); }

/* ---------- 1. hero ---------- */
.hero {
  background-color: var(--navy);
  background-image:
    linear-gradient(180deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.72) 70%, rgba(0,0,0,.84) 100%),
    var(--photo, linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%));
  background-size: cover; background-position: center;
  color: #fff;
  padding-block: 56px 64px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 14px; border: 1px solid rgba(176,141,87,.28); border-radius: 18px; pointer-events: none;
}
.hero-inner { display: grid; gap: 40px; position: relative; z-index: 1; }
.hero h1, .hero .lead { text-shadow: 0 1px 12px rgba(0,0,0,.25); }
.eyebrow { font-family: var(--latin); font-style: italic; font-size: 13px; letter-spacing: .14em; color: var(--gold); margin-bottom: 14px; }
.hero h1 { font-family: var(--serif); font-size: clamp(30px, 8.4vw, 50px); line-height: 1.38; letter-spacing: .04em; font-weight: 600; }
.hero .lead { margin-top: 20px; font-size: 14.5px; color: rgba(255,255,255,.82); max-width: 32em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-cta .btn { flex: 1 1 200px; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 22px; font-size: 12px; color: rgba(255,255,255,.66); }
.hero-notes li::before { content: "—"; color: var(--gold); margin-right: 6px; }


/* ---------- sections ---------- */
.section { padding-block: 72px; }
.section-mist { background: var(--mist); }
.section-navy { background: var(--navy); color: #fff; }
.photo-bg { position: relative; background-color: var(--navy); background-image: linear-gradient(180deg, rgba(0,0,0,.78), rgba(0,0,0,.86)), var(--photo, linear-gradient(160deg, var(--navy), var(--navy-2))); background-size: cover; background-position: center; }
.section-head { margin-bottom: 32px; }
.section-head h2 { font-family: var(--serif); font-size: clamp(23px, 6vw, 32px); letter-spacing: .04em; position: relative; padding-bottom: 16px; }
.section-head h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 2px; background: var(--gold); }
.section-lead { margin-top: 16px; color: var(--muted); font-size: 14px; max-width: 40em; }
.section-navy .section-lead { color: rgba(255,255,255,.75); }
.fine { margin-top: 18px; font-size: 11.5px; color: var(--muted); line-height: 1.7; }

/* ---------- tags ---------- */
.tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .1em; padding: 3px 10px; border-radius: 4px; background: var(--navy); color: #fff; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-high, .tag-finance { background: var(--gold); }
.tag-women { background: #8C5A62; }
.tag-engineer { background: #2F5D6E; }
.tag-consul { background: var(--navy-2); }
.tag-scout { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }

/* ---------- filter ---------- */
.filter-wrap { margin-inline: -20px; position: relative; }
.filter-wrap::after { content: ""; position: absolute; right: 0; top: 0; bottom: 4px; width: 28px; background: linear-gradient(90deg, rgba(255,255,255,0), var(--paper)); pointer-events: none; }
.filter { display: flex; gap: 8px; overflow-x: auto; padding: 0 20px 4px; scrollbar-width: none; }
.filter::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; font: inherit; font-size: 13px; padding: 7px 16px; border-radius: 999px; cursor: pointer;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line);
}
.chip { display: inline-flex; align-items: center; gap: 6px; }
.chip span { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip.is-active span { color: var(--gold); }
.filter-status { font-size: 12px; color: var(--muted); margin: 10px 0 16px; }

/* ---------- 2. comparison cards ---------- */
.cmp-list { display: grid; gap: 14px; }
.cmp-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; min-width: 0;
}
.cmp-card[hidden] { display: none; }
.cmp-head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.cmp-head h3 { font-family: var(--serif); font-size: 20px; }
.cmp-rows { margin: 0; display: grid; border-top: 1px solid var(--line); }
.cmp-rows > div { display: grid; grid-template-columns: 6.2em 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.cmp-rows dt { font-size: 12px; font-weight: 700; color: var(--gold-deep); letter-spacing: .06em; padding-top: 2px; }
.cmp-rows dd { margin: 0; font-size: 13.5px; line-height: 1.7; min-width: 0; }
.more { border-top: 1px solid var(--line); margin-top: -14px; padding-top: 2px; }
.more summary { list-style: none; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--navy); padding: 10px 0; position: relative; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "+"; position: absolute; right: 2px; top: 6px; font-size: 18px; color: var(--gold); font-weight: 400; }
.more[open] summary::after { content: "−"; }
.more .checks { padding-bottom: 6px; }
.cmp-card .ad-box { margin-top: auto; padding: 12px; }
.cmp-card .ad-placeholder { padding: 12px 10px; font-size: 13px; }
.cmp-link {
  margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 46px; border-radius: 999px; background: var(--navy); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 14px; letter-spacing: .06em;
}
.cmp-link span { color: var(--gold); }
.cmp-link:hover { background: var(--navy-2); }

/* ---------- 3. service detail ---------- */
.svc-list { display: grid; gap: 20px; }
.svc { background: var(--paper); border-radius: var(--radius); padding: 24px 20px; border: 1px solid var(--line); }
.svc-head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.svc-head h3 { font-family: var(--serif); font-size: 22px; }
.svc-body { display: grid; gap: 22px; }
.svc-text { min-width: 0; }
.svc-text h4 { font-size: 13px; letter-spacing: .1em; color: var(--gold-deep); margin-bottom: 8px; }
.svc-text h4:not(:first-child) { margin-top: 18px; }
.svc-text p { font-size: 14px; }
.checks { display: grid; gap: 6px; }
.checks li { position: relative; padding-left: 24px; font-size: 14px; line-height: 1.7; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg);
}

/* ---------- A8 ad box ---------- */
.ad-box {
  background: var(--gold-soft); border-radius: 12px; padding: 18px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; min-width: 0;
}
.ad-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--gold-deep); }
.ad-slot { width: 100%; max-width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; line-height: 0; }
.ad-slot > * { max-width: 100%; }
.ad-slot img { max-width: 100%; height: auto; }
/* テキスト型の広告コードをボタン風に見せる（コード自体は改変しない） */
.ad-slot a:not(:has(img)) {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; padding: 10px 20px;
  border-radius: 999px; background: linear-gradient(180deg, #C2A06A, var(--gold)); color: #fff;
  font-weight: 700; font-size: 15px; line-height: 1.5; letter-spacing: .04em; text-decoration: none;
  box-shadow: 0 6px 18px rgba(176,141,87,.35);
}
.ad-placeholder {
  width: 100%; padding: 18px 14px; border: 1.5px dashed rgba(142,110,62,.55); border-radius: 10px;
  font-weight: 700; color: var(--gold-deep); font-size: 14px; line-height: 1.6; background: rgba(255,255,255,.55);
}
.ad-placeholder small { display: block; font-weight: 400; font-size: 11.5px; color: var(--muted); margin-top: 4px; }
/* 広告コードが入ったらプレースホルダーを隠す（JSでも同じ処理を行います） */
.ad-box:has(.ad-slot a, .ad-slot img, .ad-slot iframe, .ad-slot script) .ad-placeholder,
.ad-box.has-ad .ad-placeholder { display: none; }

/* ---------- 3. purpose ---------- */
.type-list { display: grid; gap: 14px; }
.type-block { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.type-block header { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.type-block h3 { font-family: var(--serif); font-size: 18px; }
.type-block > p { font-size: 14px; }
.type-check { font-size: 13px !important; color: var(--muted); background: var(--mist); border-radius: 8px; padding: 10px 12px; }
.type-check strong { display: block; color: var(--gold-deep); font-size: 12px; letter-spacing: .06em; }
.svc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.svc-chip { font-size: 13px; text-decoration: none; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--gold); color: var(--navy); background: var(--paper); }
.svc-chip::after { content: " ↓"; color: var(--gold); }
.svc-chip:hover { background: var(--gold-soft); }

/* ---------- photo ---------- */
.photo-band {
  position: relative; padding-block: 120px; background-color: #2A2520;
  background-image: linear-gradient(180deg, rgba(0,0,0,.48), rgba(0,0,0,.62)), var(--photo, linear-gradient(135deg, #3A3129, var(--navy-2)));
  background-size: cover; background-position: center;
}
.band-card { margin: 0; max-width: 520px; background: rgba(255,255,255,.94); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); }
.band-card blockquote { margin: 0; font-family: var(--serif); font-size: 18px; line-height: 1.8; color: var(--navy); }
.band-card figcaption { margin-top: 14px; font-size: 12px; letter-spacing: .14em; color: var(--gold-deep); }
.band-card figcaption::before { content: "— "; }
.pc { display: none; }
.photo-note { display: none; position: absolute; right: 24px; bottom: 22px; z-index: 2; margin: 0; font-size: 11px; color: rgba(255,255,255,.7); border: 1px dashed rgba(255,255,255,.45); border-radius: 6px; padding: 4px 8px; }
.no-photo > .photo-note { display: block; }

/* ---------- 4. points ---------- */
.points { display: grid; gap: 14px; counter-reset: pt; }
.points li {
  counter-increment: pt; position: relative; padding: 22px 20px 22px 64px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
}
.points li::before {
  content: counter(pt, decimal-leading-zero); position: absolute; left: 20px; top: 20px;
  font-family: var(--latin); font-size: 24px; line-height: 1; color: var(--gold);
}
.points h3 { font-family: var(--serif); font-size: 17px; margin-bottom: 6px; }
.points p { font-size: 14px; color: var(--muted); }
.note-card { margin-top: 28px; padding: 22px 20px; border-left: 2px solid var(--gold); background: var(--mist); border-radius: 0 12px 12px 0; }
.note-title { font-family: var(--serif); font-weight: 600; margin-bottom: 6px; }
.note-card p:not(.note-title) { font-size: 14px; }

/* ---------- 5. steps ---------- */
.steps { display: grid; gap: 0; margin-bottom: 36px; }
.steps li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.steps li:first-child { border-top: 1px solid rgba(255,255,255,.12); }
.step-no { font-family: var(--latin); font-size: 11px; letter-spacing: .14em; color: var(--gold); padding-top: 4px; }
.steps h3 { font-family: var(--serif); font-size: 17px; }
.steps p { font-size: 13.5px; color: rgba(255,255,255,.75); margin-top: 4px; }

/* ---------- 6. FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 48px 18px 48px; position: relative; font-weight: 700; font-size: 14.5px; line-height: 1.6;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; position: absolute; left: 18px; top: 16px; font-family: var(--latin); font-size: 18px; color: var(--gold); }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; margin-top: -6px;
  border-right: 1.5px solid var(--navy); border-bottom: 1.5px solid var(--navy); transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -1px; }
.faq details p { padding: 0 20px 20px 48px; font-size: 14px; color: var(--muted); }

/* ---------- 7. about ---------- */
.about { display: grid; gap: 14px; }
.about-block { background: var(--paper); border-radius: 12px; padding: 22px 20px; border: 1px solid var(--line); }
.about-block h3 { font-family: var(--serif); font-size: 16px; margin-bottom: 8px; }
.about-block p { font-size: 13.5px; color: var(--muted); }
.profile-head { display: flex; align-items: center; gap: 16px; margin: 6px 0 14px; }
.avatar { width: 84px; height: 84px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; padding: 3px; background: linear-gradient(135deg, #D6B98A, var(--gold) 50%, var(--gold-deep)); box-shadow: 0 4px 14px rgba(14,27,51,.15); }
.profile-id { min-width: 0; }
.about-block .profile-name { font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--navy); line-height: 1.4; }
.profile-handle { font-size: 13px; color: var(--gold-deep); text-decoration: none; }
.profile { margin: 0; display: grid; }
.profile > div { display: grid; grid-template-columns: 7em 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.profile > div:last-child { border-bottom: 0; }
.profile dt { color: var(--muted); }
.profile dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.profile a { color: var(--gold-deep); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.7); padding-block: 40px 110px; text-align: center; }
.footer-brand { font-family: var(--serif); font-size: 18px; color: #fff; display: flex; flex-direction: column; gap: 4px; }
.footer-brand span { font-size: 12px; color: var(--gold); letter-spacing: .1em; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-block: 20px; font-size: 12.5px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: #fff; }

/* ---------- sticky CTA (mobile) ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,.94); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transform: translateY(110%); transition: transform .25s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta .btn { width: 100%; min-height: 48px; }

/* ---------- tablet / desktop ---------- */
@media (min-width: 768px) {
  body { font-size: 16px; }
  .sp { display: none; }
  .wrap { padding-inline: 32px; }
  .hero { padding-block: 96px 104px; }
  .hero::after { inset: 20px; }
  .hero { background-image: linear-gradient(90deg, rgba(0,0,0,.84) 0%, rgba(0,0,0,.68) 50%, rgba(0,0,0,.45) 100%), var(--photo, linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%)); }
  .hero-copy { max-width: 600px; }
  .hero-cta .btn { flex: 0 0 auto; }
  .section { padding-block: 104px; }
  .section-head { margin-bottom: 44px; }
  .cmp-list { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .type-list { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .type-list > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .filter-wrap { margin-inline: 0; }
  .filter-wrap::after { display: none; }
  .filter { flex-wrap: wrap; padding: 0; }
  .photo-band { padding-block: 160px; }
  .band-card { padding: 36px 40px; }
  .band-card blockquote { font-size: 21px; }
  .pc { display: inline; }
  .svc { padding: 36px; }
  .svc-body { grid-template-columns: 1fr 300px; gap: 36px; align-items: start; }
  .points { grid-template-columns: repeat(2, 1fr); }
  .points li:last-child { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, 1fr); column-gap: 48px; }
  .steps li:nth-child(2) { border-top: 1px solid rgba(255,255,255,.12); }
  .site-footer { padding-block: 48px; }
  .sticky-cta { display: none; }
}
@media (min-width: 1024px) {
  .cmp-list { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
