@charset "UTF-8";

/* ============================================
   ウェブスキ 旅するワークスタイル診断LP
   スマホファースト / PCは中央寄せで左右に余白
   ============================================ */

:root {
  --lp-max-width: 500px;
  --color-page-bg: #f2efe9;      /* PC時の左右余白の背景 */
  --color-lp-bg: #ffffff;
  --color-teal: #2E9CA8;         /* Step表記・ボタン枠・選択時背景 */
  --color-navy: #072B4E;         /* 設問テキスト */
  --color-muted: #8a9aa8;
  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-step: "Zen Kaku Gothic Antique", var(--font-body);
  --duration-fast: 150ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background: var(--color-page-bg);
  font-family: var(--font-body);
  color: var(--color-navy);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* LP全体：スマホは全幅、PCは中央寄せ */
.lp-container {
  max-width: var(--lp-max-width);
  margin: 0 auto;
  background: var(--color-lp-bg);
  min-height: 100dvh;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.08);
}

/* ============ CTA共通：なめらかに動き続けるアニメーション ============ */
.cta-float {
  display: block;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  animation: ctaFloat 1.6s ease-in-out infinite;
  transition: filter var(--duration-fast) var(--ease-out);
}

.cta-float img {
  width: 100%;
}

.cta-float:hover {
  filter: brightness(1.06);
}

.cta-float:focus-visible {
  outline: 3px solid #f2827f;
  outline-offset: 4px;
  border-radius: 999px;
}

@keyframes ctaFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-6px) scale(1.035); }
}

@media (prefers-reduced-motion: reduce) {
  .cta-float {
    animation: none;
    transition: none;
  }
}

/* ============ ファーストビュー ============ */
.fv {
  position: relative;
}

.fv__bg {
  width: 100%;
}

/* fv.webp(1040px)に対する下部オーバーレイ */
.fv__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3.2%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 2.4vw, 2px);
}

/* fv_text.webp: 768 / 1040 = 73.8% */
.fv__text {
  width: 73.8%;
}

/* fv_cta.webp: 704 / 1040 = 67.7% */
.fv__cta {
  width: 85%;
}

/* ============ FV用フッター（リンク・コピーライト） ============ */
.fv-legal {
  padding: 18px 20px 22px;
  text-align: center;
}

/* ============ リーガルリンク共通 ============ */
.legal-links {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.legal-links a {
  color: var(--color-navy);
  font-size: 11px;
  text-decoration: none;
}

.legal-links a:hover {
  text-decoration: underline;
}

.copyright {
  text-align: center;
  font-size: 10px;
  color: var(--color-muted);
  padding: 10px 0 16px;
}

.fv-legal .copyright {
  padding: 10px 0 0;
}

/* ============ 診断：ヘッダー ============ */
.diag-header {
  position: relative;
}

.diag-header__bg {
  width: 100%;
}

.diag-header__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 4vw, 20px);
  padding-top: 2%;
}

/* 2-1maincopy.webp: 2行キャッチコピー */
.diag-header__copy {
  width: 72%;
}

/* ステップインジケーター */
.steps {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: clamp(12px, 4vw, 21px);
}

.steps__item {
  width: clamp(40px, 11.5vw, 55px);
  height: clamp(40px, 11.5vw, 55px);
  border-radius: 50%;
  border: 2px solid var(--color-teal);
  background: #FFFFFF;
  color: var(--color-teal);
  font-family: var(--font-step);
  font-size: clamp(10px, 2.8vw, 11px);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-fast) ease, color var(--duration-fast) ease;
}

.steps__item.is-active {
  background: var(--color-teal);
  color: #FFFFFF;
}

/* ============ 診断：設問セクション ============ */
.diag-pages {
  padding: clamp(18px, 5vw, 26px) clamp(16px, 4.5vw, 24px) 0;
}

.diag-page[hidden] {
  display: none;
}

.q-item {
  margin-bottom: clamp(20px, 5.5vw, 28px);
}

.q-item__label {
  font-size: clamp(14px, 3.5vw, 16px);
  font-weight: 700;
  color: var(--color-navy);
  text-align: left;
  margin-bottom: clamp(10px, 2.8vw, 14px);
}

.q-item__options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(8px, 2.4vw, 12px);
}

.opt-btn {
  border: 2px solid var(--color-teal);
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--color-navy);
  font-family: var(--font-body);
  font-size: clamp(11px, 3vw, 13px);
  font-weight: 500;
  padding: clamp(9px, 2.6vw, 5px) 2px;
  cursor: pointer;
  transition: background var(--duration-fast) ease,
              color var(--duration-fast) ease,
              transform var(--duration-fast) var(--ease-out);
}

.opt-btn:hover {
  background: #e6f4f5;
}

.opt-btn:active {
  transform: scale(0.96);
}

.opt-btn:focus-visible {
  outline: 3px solid var(--color-teal);
  outline-offset: 2px;
}

.opt-btn.is-selected {
  background: var(--color-teal);
  color: #FFFFFF;
}

.opt-btn.is-selected:hover {
  background: var(--color-teal);
}

/* ============ 未回答の警告表示 ============ */
.q-item__alert {
  display: none;
  font-size: 11px;
  font-weight: 700;
  color: #E0605E;
  text-align: left;
  margin-bottom: 4px;
}

.q-item.is-unanswered {
  animation: unansweredShake 0.4s ease-in-out;
}

.q-item.is-unanswered .q-item__alert {
  display: block;
}

.q-item.is-unanswered .q-item__label {
  color: #E0605E;
}

.q-item.is-unanswered .opt-btn:not(.is-selected) {
  border-color: #E0605E;
  background: #FEF3F2;
}

@keyframes unansweredShake {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-5px); }
  75%      { transform: translateX(5px); }
}

@media (prefers-reduced-motion: reduce) {
  .q-item.is-unanswered {
    animation: none;
  }
}

/* ============ 診断：フッター ============ */
.diag-footer {
  position: relative;
  margin-top: clamp(8px, 2.5vw, 14px);
}

.diag-footer__bg {
  width: 100%;
}

.diag-footer__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 7% 0 5%;
}

/* 2-1cta.webp: 696 / 1036 = 67.2% */
.diag-footer__cta {
  width: 75%;
}

/* 未回答がある間は押せない見た目に */
.diag-footer__cta.is-disabled {
  filter: grayscale(0.65);
  opacity: 0.55;
  animation: none;
  cursor: default;
}

/* ============ ローディング ============ */
.loading img {
  width: 100%;
}

/* ============ 診断結果 ============ */
.result {
  position: relative;
}

.result__bg {
  width: 100%;
}

/* 4result.webp(1040px)下半分の空きスペースに重ねる */
.result__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2.2%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(4px, 1.2vw, 7px);
}

/* 4benefits.webp: 932 / 1040 = 89.6% */
.result__benefits {
  width: 89.6%;
  margin-bottom: clamp(6px, 1.8vw, 9px);
}

/* LINE_CTA.webp: 732 / 1040 = 70.4% */
/* 結果画面はリンクとの間隔を保つため、フロートを控えめにする */
.result__cta {
  width: 70.4%;
  animation-name: resultCtaFloat;
}

@keyframes resultCtaFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-3px) scale(1.02); }
}

@media (prefers-reduced-motion: reduce) {
  .result__cta {
    animation: none;
  }
}

/* 遷移先URL未設定時の開発用表示 */
.result__note {
  font-size: 12px;
  font-weight: 700;
  color: #E0605E;
  text-align: center;
}

.result-copyright {
  background: var(--color-lp-bg);
}
