/* =========================================================
   セコカン適職診断 — アレン株式会社 施工管理 採用LP
   配色は allen-allen.jp に準拠:
     空色 #00abe4 / 深い青 #3152e8 / 黄 #ffd000 / 文字の焦げ茶 #534741
   見出しは公式サイトと同じ Zen Maru Gothic
   ========================================================= */
:root {
  --ink: #534741;          /* 本文・見出し（焦げ茶） */
  --ink-2: #231815;        /* 最も濃い文字 */
  --sky: #00abe4;          /* メインの空色 */
  --sky-dark: #0591c4;
  --blue: #3152e8;         /* 深い青（帯・フッター） */
  --blue-2: #29a9e8;
  --yellow: #ffd000;       /* CTA・強調 */
  --yellow-dark: #e0b400;
  --cream: #fffbe8;        /* 黄の淡い下地 */
  --sky-tint: #eaf7fd;     /* 空色の淡い下地 */
  --line: #06c755;
  --line-dark: #049a42;
  --gray-2: #e3ecf1;
  --gray-3: #8d8480;
  --font: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-head: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Noto Sans JP", sans-serif;
  --grad-blue: linear-gradient(90deg, #3152e8 0%, #29a9e8 50%, #3152e8 100%);
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: #d9effa;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
ol, ul { list-style: none; }
[hidden] { display: none !important; }
h1, h2, h3, strong { font-family: var(--font-head); }

.site-shell { width: 100%; min-height: 100dvh; }
.phone-stage {
  background: #fff;
  width: min(100%, 430px);
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(49, 82, 232, .12);
  position: relative;
}
@media (min-width: 431px) {
  .site-shell { padding: 28px 0; }
  .phone-stage { border-radius: 22px; min-height: calc(100dvh - 56px); }
}

/* =========================================================
   1. HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.93) 30%, rgba(255,255,255,.55) 44%, rgba(255,255,255,0) 58%),
    linear-gradient(0deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.85) 20%, rgba(255,255,255,0) 40%);
}
.hero-inner {
  position: relative; z-index: 1;
  padding: calc(26px + env(safe-area-inset-top)) 22px 0;
  text-align: center;
}
.hero-sponsor {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 10px; letter-spacing: .12em; color: var(--gray-3); font-weight: 500;
  margin-bottom: 22px;
}
.hero-sponsor img { height: 20px; width: auto; }
.hero-lead {
  font-family: var(--font-head);
  font-size: clamp(19px, 5.6vw, 24px);
  font-weight: 900; line-height: 1.5; letter-spacing: .02em;
  margin-bottom: 8px;
  color: var(--ink-2);
}
.hero-title {
  display: flex; justify-content: center;
  margin-top: 4px;
}
.hero-title img { width: min(82%, 320px); height: auto; }
.hero-time {
  display: inline-flex; align-items: baseline; gap: 2px;
  margin-top: 16px;
  padding: 8px 20px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font-family: var(--font-head);
  font-size: 17px; font-weight: 700; letter-spacing: .06em;
}
.hero-time b { font-size: 34px; line-height: 1; margin: 0 4px; color: var(--sky); font-family: Arial, sans-serif; }

.hero-bottom {
  position: relative; z-index: 1;
  margin-top: auto;
  padding: 0 14px calc(20px + env(safe-area-inset-bottom));
}
.hero-badge {
  display: inline-block; background: rgba(255,255,255,.92); border-radius: 999px; padding: 5px 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--ink-2);
  margin: 0 0 10px 4px;
}
.hero-badge b { font-size: 13px; color: var(--ink-2); }
.hero-cta-wrap {
  background: #fff;
  border: 1px solid #e6e2dd;
  border-radius: 16px;
  padding: 14px 14px 12px;
}
.hero-cta {
  position: relative;
  width: 100%;
  min-height: 60px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink-2);
  border: 2px solid var(--ink-2);
  font-family: var(--font-head);
  font-size: 19px; font-weight: 900; letter-spacing: .04em;
  transition: transform .12s;
}
.hero-cta i { position: absolute; right: 22px; top: 50%; transform: translateY(-54%); font: 32px/1 Arial, sans-serif; font-style: normal; }
.hero-cta:active { transform: translateY(2px); }
.flow-title {
  text-align: center; font-family: var(--font-head); font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--gray-3);
  margin: 16px 0 10px;
}
.flow { display: flex; justify-content: space-between; align-items: flex-start; gap: 4px; }
.flow li {
  flex: 1; text-align: center; font-size: 10.5px; font-weight: 700; line-height: 1.3; position: relative;
}
.flow li span {
  display: grid; place-items: center;
  width: 38px; height: 38px; margin: 0 auto 6px;
  border-radius: 50%; background: #fff; border: 1.5px solid var(--ink-2); color: var(--ink-2);
  font: 700 13px/1 Arial, sans-serif;
}
.flow li + li::before {
  content: "›"; position: absolute; left: -6px; top: 8px;
  font: 22px/1 Arial, sans-serif; color: #c9c2bb;
}

/* =========================================================
   2. QUIZ
   ========================================================= */
.quiz-screen {
  min-height: 100dvh;
  padding-bottom: calc(32px + env(safe-area-inset-bottom));
  background: #fff;
}
.quiz-header {
  height: 94px;
  padding: calc(16px + env(safe-area-inset-top)) 22px 12px;
  text-align: center;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid #e6e2dd;
}
.quiz-header p { font-size: 10px; letter-spacing: .09em; margin-bottom: 2px; color: var(--gray-3); }
.quiz-logo { height: 36px; width: auto; margin: 2px auto 0; }
.progress-wrap { padding: 26px 24px 0; }
.progress-copy { display: flex; align-items: baseline; gap: 5px; }
.progress-copy span { font-size: 12px; font-weight: 700; letter-spacing: .06em; margin-right: auto; color: var(--gray-3); }
.progress-copy b { font: 800 31px/1 Arial, sans-serif; color: var(--ink-2); }
.progress-copy small { font: 700 13px/1 Arial, sans-serif; color: var(--gray-3); }
.progress-track { height: 7px; background: var(--gray-2); border-radius: 9px; margin-top: 11px; overflow: hidden; }
.progress-track span { display: block; height: 100%; background: var(--yellow); border-radius: inherit; transition: width .35s; }

.question-card { padding: 36px 22px 20px; animation: questionIn .35s both; }
@keyframes questionIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.question-kicker { color: var(--gray-3); text-align: center; letter-spacing: .08em; font-size: 11px; font-weight: 700; margin-bottom: 13px; }
.question-card h1 {
  white-space: pre-line; text-align: center;
  font-size: clamp(21px, 6vw, 26px); font-weight: 900; line-height: 1.5; letter-spacing: .03em;
  min-height: 76px; margin-bottom: 26px;
  color: var(--ink-2);
}
.answer-list { display: grid; gap: 12px; }
.answer-list button {
  position: relative; display: flex; align-items: center;
  width: 100%; min-height: 69px;
  padding: 12px 43px 12px 15px;
  background: #fff; border: 1.5px solid #d9d4ce; border-radius: 12px;
  text-align: left; font-size: 15px; font-weight: 700; line-height: 1.45; color: var(--ink);
  transition: all .18s;
}
.answer-list button > span {
  display: grid; place-items: center; flex: 0 0 34px; height: 34px; margin-right: 13px;
  border-radius: 50%; background: var(--ink-2); color: #fff;
  font: 700 14px/1 Arial, sans-serif;
}
.answer-list button i { position: absolute; right: 18px; top: 50%; transform: translateY(-52%); font: 30px/1 Arial, sans-serif; font-style: normal; color: #c9c2bb; }
.answer-list button:active,
.answer-list button.is-selected { background: var(--yellow); border-color: var(--ink-2); color: var(--ink-2); transform: scale(.985); }
.answer-list button.is-selected i { color: var(--ink-2); }
.tap-note { color: var(--gray-3); text-align: center; font-size: 10px; letter-spacing: .04em; margin-top: 26px; }

/* =========================================================
   3. LOADING
   ========================================================= */
.loading-screen {
  min-height: 100dvh;
  padding: calc(28px + env(safe-area-inset-top)) 24px calc(44px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: #fff;
}
.loading-brand { margin-bottom: auto; }
.loading-brand img { height: 34px; width: auto; margin: 0 auto; }
.diagnosis-ring {
  width: 54px; height: 54px; margin-top: 16px; border-radius: 50%;
  border: 4px solid #e6e2dd; border-top-color: var(--yellow);
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-screen h1 { font-size: 24px; font-weight: 900; letter-spacing: .08em; margin-top: 28px; color: var(--ink-2); }
.loading-message { color: var(--ink); font-size: 13px; font-weight: 600; min-height: 25px; margin: 14px 0 31px; }
.loading-note { color: var(--gray-3); font-size: 10px; letter-spacing: .03em; margin-top: auto; }

/* =========================================================
   4. RESULT
   ========================================================= */
.result-page {
  --type: #00abe4; --type-rgb: 0,171,228;
  --navy: #011840; --sand: #f7f4ee;
  background: var(--sand); color: var(--ink-2);
  animation: resultReveal .58s cubic-bezier(.2,.7,.2,1) both; overflow: hidden;
}
@keyframes resultReveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.rs-top { position: relative; padding: 14px 16px 0; }
.rs-top::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 290px; background: var(--navy); }
.rs-bar { position: relative; display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.rs-bar img { height: 30px; width: auto; filter: brightness(0) invert(1); }
.rs-retry { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.85); text-decoration: underline; text-underline-offset: 3px; }
.rs-banner { position: relative; background: #fff; border-radius: 22px; overflow: hidden; border-top: 8px solid var(--type); box-shadow: 0 10px 28px rgba(1,24,64,.10); }
.rs-visual { position: relative; height: 200px; padding: 14px; display: flex; align-items: center; justify-content: center; background: rgba(var(--type-rgb), .13); }
.rs-visual::before { content: ""; position: absolute; width: 210px; height: 210px; border-radius: 50%; background: rgba(255,255,255,.65); }
.rs-visual img { position: relative; height: 100%; width: auto; }
.rs-main { padding: 24px 22px 28px; }
.rs-kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; margin-bottom: 6px; }
.rs-name { font-size: 38px; font-weight: 900; line-height: 1.15; letter-spacing: .03em; color: var(--type); margin-bottom: 10px; }
.rs-subtitle { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: #fff; background: var(--type); padding: 3px 14px; border-radius: 999px; margin-bottom: 14px; }
.rs-sub-label { font-size: 13px; margin-bottom: 10px; }
.rs-summary { font-size: 14px; line-height: 1.95; }

.rs-body { display: grid; gap: 16px; padding: 20px 16px 8px; }
.rs-box { min-width: 0; background: #fff; border: 1px solid #e3ddd3; border-radius: 18px; padding: 22px 18px; }
.rs-box-title { font-size: 17px; font-weight: 900; color: var(--navy); margin-bottom: 14px; }
.rs-box canvas { display: block; width: 100%; height: auto; }
.rs-scores { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 20px; }
.rs-score { --pct: 0%; position: relative; overflow: hidden; display: flex; align-items: baseline; justify-content: space-between; background: var(--sand); border-radius: 12px; padding: 12px 14px 16px; }
.rs-score::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: #e6e0d6; }
.rs-score::after { content: ""; position: absolute; left: 0; bottom: 0; height: 5px; width: var(--pct); background: var(--type); border-radius: 0 3px 3px 0; transition: width 1s cubic-bezier(.2,.7,.2,1) .3s; }
.rs-score span { font-family: var(--font-head); font-size: 14px; font-weight: 900; letter-spacing: .1em; color: var(--navy); }
.rs-score b { font-family: "Barlow Condensed", Arial, sans-serif; font-size: 30px; font-weight: 700; line-height: 1; color: var(--type); }
.rs-trait + .rs-trait { margin-top: 14px; }
.rs-trait h3 { display: flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .12em; color: var(--navy); margin-bottom: 8px; }
.rs-trait h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #34a853; }
.rs-trait h3.caution::before { background: #f0932b; }
.rs-trait ul { display: flex; flex-wrap: wrap; gap: 6px; }
.rs-trait li { font-size: 13px; font-weight: 700; padding: 5px 13px; border-radius: 999px; background: var(--sand); }
.rs-subtype h3 { font-size: 15px; color: var(--navy); margin-bottom: 4px; }
.rs-subtype p { font-size: 13px; line-height: 1.8; }

.rs-teaser { margin-top: 20px; }
.rs-teaser > h2 { font-size: 22px; font-weight: 900; line-height: 1.4; color: var(--navy); margin-bottom: 6px; }
.rs-teaser > p { font-size: 13px; margin-bottom: 14px; }
.rs-teaser-list { background: #fff; border: 1px solid #e3ddd3; border-radius: 18px; padding: 0 18px; }
.rs-teaser-item { padding: 22px 0; }
.rs-teaser-item + .rs-teaser-item { border-top: 1px solid #e6e2dd; }
.rs-teaser-item h3 { font-size: 15px; font-weight: 900; color: var(--navy); margin-bottom: 8px; }
.rs-preview { font-size: 13.5px; font-weight: 500; line-height: 1.85; margin-bottom: 8px; }
.rs-blur-wrap { position: relative; }
.rs-blur { font-size: 13px; line-height: 1.8; color: var(--ink); filter: blur(5px); user-select: none; pointer-events: none; }
.rs-blur-cover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(to bottom, rgba(255,255,255,.1), rgba(255,255,255,.9)); }
.rs-unlock { background: var(--navy); color: #fff; font-size: 13px; font-weight: 700; padding: 10px 22px; border-radius: 999px; box-shadow: 0 10px 22px rgba(1,24,64,.25); }

.rs-line { margin-top: 8px; background: var(--navy); color: #fff; border-radius: 22px; padding: 30px 20px 24px; }
.rs-line h2 { font-size: 24px; font-weight: 900; line-height: 1.4; margin-bottom: 14px; }
.rs-line li { position: relative; padding-left: 26px; font-size: 14px; }
.rs-line li::before { content: ""; position: absolute; left: 0; top: .55em; width: 13px; height: 7px; border-left: 2.5px solid var(--yellow); border-bottom: 2.5px solid var(--yellow); transform: rotate(-45deg); }
.rs-line .line-final-cta { margin-top: 20px; }
.rs-line-note { margin-top: 10px; font-size: 11px; text-align: center; opacity: .7; }

.rs-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; padding-top: 18px; border-top: 1px solid #ddd7ce; }
.rs-share span { width: 100%; font-size: 12px; font-weight: 700; color: var(--gray-3); }
.rs-share button { padding: 8px 16px; border: 1.5px solid #ddd7ce; border-radius: 999px; background: #fff; font-size: 12px; font-weight: 700; }

.rs-band { margin-top: 28px; padding: 52px 20px 36px; background: var(--navy); color: #fff; text-align: center; }
.rs-band h2 { font-size: 21px; font-weight: 900; line-height: 1.55; }
.rs-band h2 span { color: var(--yellow); }
.rs-band p { margin-top: 12px; font-size: 13px; line-height: 1.8; color: rgba(255,255,255,.85); }
.rs-band .line-final-cta { margin-top: 22px; }
.rs-band .restart-button { color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.6); }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 50; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: #011840; color: #fff; font-size: 13px; font-weight: 700; padding: 10px 20px; border-radius: 999px; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* LINE ボタン */
.line-final-cta {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 62px; margin-top: 14px; padding: 8px 42px 8px 64px;
  border-radius: 999px; color: #fff; text-decoration: none;
  background: var(--line);
  font-family: var(--font-head);
  font-size: 15px; font-weight: 900; line-height: 1.25;
}
.line-final-cta i {
  position: absolute; left: 13px; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #08b827;
  font: 900 11px/1 Arial, sans-serif; font-style: normal;
}
.line-final-cta b { position: absolute; right: 16px; top: 50%; transform: translateY(-54%); font: 35px/1 Arial, sans-serif; font-weight: 400; }
.line-note { margin-top: 12px; font-size: 10.5px; color: var(--gray-3); line-height: 1.6; }
.restart-button { display: block; margin: 23px auto 0; padding: 4px 8px; font-size: 12px; color: var(--ink); border-bottom: 1px solid var(--ink); }

.site-footer {
  padding: 18px 20px calc(22px + env(safe-area-inset-bottom)); text-align: center;
  background: var(--ink-2); color: #fff;
}
.site-footer img { height: 22px; width: auto; margin: 0 auto 8px; filter: brightness(0) invert(1); }
.site-footer p { font-size: 10px; letter-spacing: .06em; opacity: .9; }

/* =========================================================
   小さい端末
   ========================================================= */
@media (max-width: 360px) {
  .hero-lead { font-size: 18px; }
  .question-card { padding-inline: 17px; }
  .answer-list button { min-height: 63px; font-size: 13px; }
  .rs-name { font-size: 32px; }
    .line-final-cta { padding-left: 59px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* 結果の「形」・スコア・強み/注意点は LINE で見せるため LP ではぼかす（2026-12-03） */
.rs-lock { position: relative; }
.rs-lock-content { filter: blur(8px); user-select: none; pointer-events: none; }
.rs-lock-cover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.35); }

.rs-line-step { margin-top: 14px; font-size: 13px; line-height: 1.7; text-align: center; }
.rs-line-step b { color: var(--yellow); font-weight: 900; }
.rs-line li + li { margin-top: 6px; }
.rs-line-note a { color: inherit; text-decoration: underline; white-space: nowrap; }
.site-footer .site-footer-links { margin-bottom: 8px; font-size: 11px; letter-spacing: 0; }
.site-footer-links a { color: inherit; text-decoration: underline; }
.site-footer-links a + a { margin-left: 18px; }
.rs-top-cta { margin-top: 18px; }
.rs-top-note { margin-top: 10px; font-size: 12px; line-height: 1.6; text-align: center; color: var(--gray-3); }
.rs-top-note b { color: var(--navy); font-weight: 900; white-space: nowrap; }
