/* ============================================================
   /diagnosis(v2): 4タイプの図解ヒーロー(dx-types)・つながる進捗(dx-prog)・大きな選択カード(dg__opt)・結果の演出(dx-res)   production KAITO / 2026-10-10
   仕様: _proposal/pages-spec-v2.md 3-4。診断の中身(質問・採点・求人)は変えない。ページ内表示(.dg--inline)だけに効く(トップのダイアログは無変更)。
   結果の演出: 円が広がる(clip-path .6s)→タイプ名にマーカー→紙吹雪10粒(1.2s・1回)→求人カードがずらして入る。無限なし・reduced-motionは演出なしで最終状態。
============================================================ */
.dx-types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; width: 520px; margin: 0; padding: 0; list-style: none; }
.dx-types li { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.dx-types__c { display: flex; width: 96px; height: 96px; align-items: center; justify-content: center; border-radius: 50%; background: linear-gradient(160deg, #5BA0FF, #0B5AF5); box-shadow: 0 0 0 6px rgba(255,255,255,.7), 0 18px 26px -14px rgba(11,90,245,.7); }
.dx-types li:nth-child(even) .dx-types__c { background: linear-gradient(160deg, #1F3F8F, #03174D); box-shadow: 0 0 0 6px rgba(255,255,255,.7), 0 18px 26px -14px rgba(3,23,77,.6); }
.dx-types li:nth-child(even) { margin-top: 26px; }
.dx-types svg { width: 46px; height: 46px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.dx-types b { font-family: var(--font-display); font-size: 14px; line-height: 1.45; font-weight: 900; color: #03174D; }

.dx-sec { padding-top: 48px; padding-bottom: 80px; }
.dg--inline.dg { border-radius: 32px; }
.dg--inline .dg__seg { display: none; }
.dg--start .dx-prog, .dg--result .dx-prog { display: none; }
.dx-prog { display: flex; align-items: center; margin: 16px 0 8px; }
.dx-prog__c { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px #C6D8F2; color: #5A6E93; font-family: "Plus Jakarta Sans", sans-serif; font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; transition: background-color .3s ease, color .3s ease, box-shadow .3s ease; }
.dx-prog__c.is-on { background: #0B5AF5; box-shadow: none; color: #fff; }
.dx-prog__l { position: relative; flex: 1; height: 3px; border-radius: 2px; background: #DCE7F6; }
.dx-prog__l::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #0B5AF5; transform: scaleX(0); transform-origin: left center; transition: transform .3s ease; }
.dx-prog__l.is-on::after { transform: scaleX(1); }
.dg--inline .dg__count { font-size: 15px; font-weight: 700; color: #1F2937; white-space: nowrap; }
.dg--inline .dg__q { font-family: var(--font-display); font-size: 28px; font-weight: 900; color: #03174D; line-height: 1.5; }
.dg--inline .dg__opts { grid-template-columns: 1fr 1fr; gap: 14px; }
.dg--inline .dg__opt { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 12px 18px 12px 12px; border: 0; border-radius: 18px; background: #F3F8FE; box-shadow: inset 0 0 0 1.5px #D3E2F6; color: #03174D; font-size: 16px; font-weight: 700; word-break: auto-phrase; line-height: 1.5; text-align: left; transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease; }
.dg--inline .dg__opt-t { flex: 1; min-width: 0; }
.dg--inline .dg__mark { display: none; }
.dg--inline .dg__opt[aria-pressed="true"] .dg__mark { display: grid; order: 3; flex: 0 0 20px; width: 20px; height: 20px; border: 0; background: transparent; }
.dg--inline .dg__opt[aria-pressed="true"] .dg__mark svg { width: 18px; height: 18px; stroke: #fff; }
.dx-ico { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px #DCE7F6; display: flex; align-items: center; justify-content: center; transition: background-color .2s ease; }
.dx-ico svg { width: 28px; height: 28px; fill: none; stroke: #0B5AF5; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s ease; }
@media (hover: hover) { .dg--inline .dg__opt:hover { background: #E6F0FE; box-shadow: inset 0 0 0 1.8px #7FAAF0; } }
.dg--inline .dg__opt:active { transform: scale(.975); }
.dg--inline .dg__opt[aria-pressed="true"] { background: #03174D; box-shadow: none; color: #fff; }
.dg--inline .dg__opt[aria-pressed="true"] .dx-ico { background: #fff; }
.dg--inline .dg__opt[aria-pressed="true"] .dx-ico svg { stroke: #03174D; }
.dg--inline .dg__hint { font-size: 15px; font-weight: 500; color: #4B5563; }
.dg--inline .dg__back { min-width: 72px; padding-right: 14px; font-size: 15px; white-space: nowrap; }
.dg--inline.dg--result .dg__back { font-size: 14px; }
.dx-hero .pg-lead { font-size: 16px; font-weight: 500; color: #374151; word-break: auto-phrase; }
.dx-sec .pg-dg-note { color: #4B5563; }
.dx-sec .pg-dg-note a { display: inline-flex; align-items: center; min-height: 44px; }

/* 開始画面: 左に写真、右にチップ3つと橙ボタン */
.dx-start { display: grid; grid-template-columns: 340px minmax(0, 1fr); align-items: center; gap: 36px; }
.dx-start__ph { overflow: hidden; border-radius: 26px; box-shadow: 0 18px 30px -20px rgba(20,60,140,.5); }
.dx-start__ph { aspect-ratio: 414 / 290; }   /* 写真の下部(段ボールを持つ手)は見せない切り出し */
.dx-start__ph img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 6%; }
.dx-start .dg__q--start { font-size: 30px; }
.dx-start .dg__hint { font-size: 16px; font-weight: 500; color: #4B5563; }

/* 結果: 紺の面 → タイプ名(白・大)+アイコン+ゼロ君+紙吹雪 → 求人(写真つき) → LINE+電話 */
.dx-res { position: relative; overflow: hidden; margin: 6px 0 4px; padding: 34px 40px 36px; border-radius: 26px; background: linear-gradient(135deg, #03174D 0%, #0B2F8F 100%); color: #fff; min-height: 270px; }
.dx-res__orb { position: absolute; right: -60px; top: -90px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(74,147,255,.5), rgba(74,147,255,0) 68%); }
.dx-res__in { position: relative; max-width: 460px; }
.dx-res__ico { display: flex; width: 64px; height: 64px; align-items: center; justify-content: center; margin-bottom: 14px; border-radius: 50%; background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); }
.dx-res__ico svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.dx-res .dg__kicker { color: #9DC0F5; }
.dx-res .dg__rt, .dx-res .dg__rt-pre, .dx-res .dg__rt-post { color: #fff; }
.dx-res .dg__rt-pre { margin-bottom: 4px; }
.dx-res .dg__rt-post { margin-top: 6px; }
.dx-res .dg__rt-type { display: inline; padding: 0 2px; font-size: 48px; line-height: 1.3; color: #fff; background-image: linear-gradient(transparent 62%, rgba(74,147,255,.6) 62%); background-repeat: no-repeat; background-size: 100% 100%; -webkit-box-decoration-break: clone; box-decoration-break: clone; animation: dxMark .6s cubic-bezier(.22,.61,.36,1) .55s both; }
.dx-res .dg__lead { margin-top: 10px; font-weight: 700; color: #DCE9FB; }
.dx-res__line { display: flex; align-items: center; justify-content: center; width: 100%; max-width: 360px; min-height: 52px; margin-top: 16px; }
.dx-res__zero { position: absolute; right: 36px; bottom: 0; width: 190px; height: auto; filter: drop-shadow(0 12px 14px rgba(0,0,0,.35)); }
.dg--inline.dg--result .dg__view > .dx-res { animation: dxCircle .6s cubic-bezier(.4,0,.2,1) both; }
@keyframes dxCircle { from { clip-path: circle(0% at 62% 40%); } to { clip-path: circle(150% at 62% 40%); } }
@keyframes dxMark { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }
.dx-conf { position: absolute; left: 62%; top: 38%; width: 0; height: 0; pointer-events: none; }
.dx-conf i { position: absolute; left: 0; top: 0; width: 9px; height: 14px; border-radius: 2px; background: #4A93FF; opacity: 0; animation: dxConf 1.2s cubic-bezier(.2,.7,.3,1) .65s 1 both; }
.dx-conf i:nth-child(3n) { background: #fff; } .dx-conf i:nth-child(3n+1) { background: #9DC0F5; }
.dx-conf i:nth-child(1) { --x: -190px; --y: -80px; --r: 200deg; } .dx-conf i:nth-child(2) { --x: -120px; --y: -130px; --r: -160deg; }
.dx-conf i:nth-child(3) { --x: -50px; --y: -150px; --r: 120deg; } .dx-conf i:nth-child(4) { --x: 30px; --y: -140px; --r: -220deg; }
.dx-conf i:nth-child(5) { --x: 110px; --y: -120px; --r: 180deg; } .dx-conf i:nth-child(6) { --x: 190px; --y: -70px; --r: -140deg; }
.dx-conf i:nth-child(7) { --x: -150px; --y: 10px; --r: 240deg; } .dx-conf i:nth-child(8) { --x: 160px; --y: 20px; --r: -200deg; }
.dx-conf i:nth-child(9) { --x: -70px; --y: -60px; --r: 90deg; } .dx-conf i:nth-child(10) { --x: 70px; --y: -90px; --r: -100deg; }
@keyframes dxConf { 0% { opacity: 0; transform: translate(0, 0) rotate(0); } 12% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), calc(var(--y) + 90px)) rotate(var(--r)); } }
.dg--inline .dg__jlist { grid-template-columns: 1fr 1fr; gap: 12px; }
.dg--inline .dg__jc { min-height: 92px; padding: 8px 14px 8px 8px; border-radius: 18px; }
.dg--inline .dg__jc-i { flex-basis: 112px; height: 76px; border-radius: 12px; }
.dg--inline .dg__jc-t { font-size: 16px; font-weight: 700; }
.dg--inline .dg__jc-m { font-size: 14px; font-weight: 500; color: #4B5563; }
.dg--inline .dg__jc-n { font-size: 14px; font-weight: 700; color: #1F2937; }
.dg--inline .dg__body { margin-top: 18px; font-size: 16.5px; font-weight: 500; line-height: 1.8; color: #1F2937; }
.dg--inline .dg__jobs-l { font-size: 15px; font-weight: 700; color: #1D5FD6; }
.dg--inline .dg__jobs-n { margin: -4px 0 12px; font-size: 14px; line-height: 1.7; color: #4B5563; }
.dg--inline .dg__sub { font-size: 15px; font-weight: 500; color: #1F2937; }
.dg--inline .dg__rnote { font-size: 14px; color: #4B5563; }
.dg--inline .dg__copy-h { font-size: 15px; font-weight: 700; color: #1F2937; text-align: left; }
.dx-copy { display: grid; gap: 10px; padding: 16px; border-radius: 18px; background: #EAF2FD; }
.dx-copy__t { margin: 0; padding: 12px 14px; border-radius: 12px; background: #fff; font-size: 15px; font-weight: 500; line-height: 1.7; color: #1F2937; word-break: auto-phrase; }
.dx-copy .dg__copy { width: 100%; min-height: 48px; font-size: 15px; font-weight: 700; }
.dx-copy .dg__toast { min-height: 0; font-size: 14px; text-align: center; margin-top: -4px; }
.dx-copy .dg__toast:not(.is-on) { display: none; }
.dx-copy__h { margin: 0; font-size: 14px; line-height: 1.7; color: #4B5563; text-align: center; }
.dx-copy .dg__line { display: flex; align-items: center; justify-content: center; min-height: 52px; }
.dg--inline .dg__tel { min-height: 52px; align-items: center; font-size: 14px; }
.dg--inline .dg__tel b { font-size: 18px; font-weight: 700; }
.dg--inline .dg__again { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; margin: 14px 0 0; padding: 0 16px; border: 1.5px solid var(--color-trust); border-radius: 999px; background: #fff; font-size: 15px; font-weight: 700; text-decoration: none; }

@media (max-width: 1100px) { .dx-types { width: 440px; } .dx-types__c { width: 80px; height: 80px; } }
@media (max-width: 860px) {
  .dx-types { width: 100%; gap: 6px; margin-top: 4px; }
  .dx-types__c { width: 64px; height: 64px; box-shadow: 0 0 0 4px rgba(255,255,255,.7), 0 14px 20px -12px rgba(11,90,245,.7); }
  .dx-types svg { width: 32px; height: 32px; }
  .dx-types b { font-size: 12.5px; line-height: 1.4; }
  .dx-types li:nth-child(even) { margin-top: 0; }
  .dx-start { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .dx-start__ph { width: min(100%, 300px); max-width: 300px; margin: 0 auto; aspect-ratio: 414 / 236; }
  .dx-start__ph img { object-position: 50% 12%; }
  .dx-start .dg__q--start { font-size: 23px; }
}
@media (max-width: 731px) {
  .dx-sec { padding-top: 10px; padding-bottom: 56px; }
  .dx-hero .pg2-hero__in { padding-bottom: 26px; }
  .dg--start .dg__bar { display: none; }   /* 入口では戻るボタン・進行がないので、空の帯(44px)を詰めて「診断をはじめる」を1画面目に入れる */
  .dg--inline .dg__q { font-size: 22px; }
  .dg--inline .dg__opts { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .dg--inline .dg__opt { min-height: 68px; padding: 10px 14px 10px 10px; font-size: 16px; }
  .dx-ico { flex-basis: 44px; width: 44px; height: 44px; }
  .dx-res { padding: 24px 20px 184px; border-radius: 22px; min-height: 0; }
  .dx-res .dg__rt-type { font-size: 34px; }
  .dx-conf i:nth-child(n+7) { display: none; }
  .dg--inline .dg__jc-i { flex-basis: 96px; height: 72px; }
  .dx-res__zero { right: 14px; width: 130px; }
  .dg--inline .dg__jlist { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 359px) {
  .dx-res .dg__rt-type { font-size: 30px; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  .dg--inline.dg--result .dg__view > .dx-res, .dx-res .dg__rt-type { animation: none; }
  .dx-conf { display: none; }
  .dx-prog__c, .dx-prog__l::after, .dg--inline .dg__opt { transition: none; }
}
/* 入口: 画面の高さが900px未満のスマホでは写真を出さず、「診断をはじめる」を最初の画面(390x844・375x812)に入れる。背の高い画面(430x932など)は写真を残す */
@media (max-width: 731px) and (max-height: 899px) {
  .dx-start__ph { display: none; }
  .dx-hero .pg2-hero__in { gap: 10px; padding-top: 6px; padding-bottom: 20px; }
  .dx-types__c { width: 54px; height: 54px; }
  .dx-types svg { width: 28px; height: 28px; }
  .dx-start .dg__hint { margin: 6px 0 12px; }
  .dx-start .dg__chips { margin-bottom: 16px; }
  .dg--start .dg__view { margin-top: 4px; }
}
