/* =============================================
   AI Career Diagnosis – diagnosis.css
   Theme: Dark Code-Editor / Terminal
   Accent: Cyan-Blue & Neon Emerald
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Noto+Sans+JP:wght@300;400;600;700&display=swap');

/* ── Custom Properties ── */
html {
  font-size: 18px;
}

/* グローバルスクロールバー防止 */
html, body {
  overflow-x: hidden;
}

:root {
  --acd-bg:          #0d1117;
  --acd-surface:     #161b22;
  --acd-surface-2:   #1c2230;
  --acd-border:      #2a3447;
  --acd-text:        #cdd9e5;
  --acd-text-muted:  #6e8098;
  --acd-cyan:        #39d0f0;
  --acd-cyan-glow:   rgba(57,208,240,0.18);
  --acd-emerald:     #00ff9d;
  --acd-emerald-dim: rgba(0,255,157,0.12);
  --acd-orange:      #f0883e;
  --acd-purple:      #b47cff;
  --acd-red:         #ff6b6b;
  --acd-radius:      12px;
  --acd-radius-lg:   20px;
  --acd-font-base:   'Noto Sans JP', "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  --acd-font-accent: 'JetBrains Mono', 'Consolas', monospace;
  --acd-font-mono:   var(--acd-font-accent);
  --acd-font-sans:   var(--acd-font-base);
  --acd-transition:  0.25s cubic-bezier(0.4,0,0.2,1);
}

/* ── Wrapper ── */
#acd-app {
  font-family: var(--acd-font-sans);
  background: var(--acd-bg);
  color: var(--acd-text);
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  display: block;
  padding: 0;
  box-sizing: border-box;
  position: relative;
  overflow-x: hidden;
}

/* PC: #acd-appを680px列に収める（ヘッダー・フッターと同列） */
@media (min-width: 1024px) {
  #acd-app {
    max-width: 680px;
    margin: 0 auto;
    background: #0d1117 !important;   /* 確実にソリッド黒 */
    box-shadow: 0 0 80px rgba(0,0,0,0.95);
    min-height: calc(100vh - 60px);   /* ヘッダー分引いてビューポートを埋める */
  }
}

/* Grid texture + Glow: PCのみ表示 */
#acd-app::before,
#acd-app::after {
  content: none;             /* SP: 完全非表示 */
}

@media (min-width: 1024px) {
  /* Grid background texture */
  #acd-app::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
      linear-gradient(rgba(57,208,240,0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(57,208,240,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
  }
  /* Glow blob */
  #acd-app::after {
    content: '';
    position: fixed;
    top: -20%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(57,208,240,0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
  }
}

/* ── Inner container ── */
.acd-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
  box-sizing: border-box;
}

/* ── Hero / Header ── */
.acd-hero {
  text-align: center;
  padding: 3rem 0 2.5rem;
  animation: acd-fade-up 0.7s ease both;
}

.acd-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--acd-emerald-dim);
  border: 1px solid rgba(0,255,157,0.3);
  color: var(--acd-emerald);
  font-family: var(--acd-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.acd-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--acd-emerald);
  border-radius: 50%;
  animation: acd-pulse 2s infinite;
}

.acd-hero h1 {
  font-family: var(--acd-font-sans);
  font-size: clamp(1.6rem, 5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.acd-hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--acd-cyan), var(--acd-emerald));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.acd-hero p {
  color: var(--acd-text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin: 0;
}

/* ── Progress bar ── */
.acd-progress-wrap {
  margin-bottom: 2rem;
  animation: acd-fade-up 0.5s ease both;
}

.acd-progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--acd-font-mono);
  font-size: 0.72rem;
  color: var(--acd-text-muted);
  margin-bottom: 0.5rem;
}

.acd-progress-label span:last-child {
  color: var(--acd-cyan);
}

.acd-progress-track {
  height: 3px;
  background: var(--acd-border);
  border-radius: 100px;
}

.acd-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--acd-cyan), var(--acd-emerald));
  border-radius: 100px;
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 0 10px var(--acd-cyan-glow);
}

/* ── Question Card ── */
.acd-card {
  background: var(--acd-surface);
  border: 1px solid var(--acd-border);
  border-radius: var(--acd-radius-lg);
  padding: 2rem 1.75rem;
  animation: acd-fade-up 0.45s ease both;
  position: relative;
}

.acd-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--acd-cyan), transparent);
  opacity: 0.5;
}

.acd-q-number {
  font-family: var(--acd-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--acd-cyan);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.acd-q-text {
  font-size: clamp(1.18rem, 3.35vw, 1.42rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.72;
  margin: 0 0 1.75rem;
}

/* ── Answer Options ── */
.acd-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.acd-option {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--acd-surface-2);
  border: 1px solid var(--acd-border);
  border-radius: var(--acd-radius);
  cursor: pointer;
  transition: all var(--acd-transition);
  text-align: left;
  color: var(--acd-text);
  font-family: inherit;
  font-size: 1.06rem;
  line-height: 1.72;
  width: 100%;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.acd-option::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--acd-cyan-glow), transparent);
  opacity: 0;
  transition: opacity var(--acd-transition);
}

.acd-option:hover,
.acd-option:focus-visible {
  border-color: var(--acd-cyan);
  color: #fff;
  transform: translateX(4px);
  box-shadow: -3px 0 0 var(--acd-cyan), 0 4px 20px rgba(57,208,240,0.1);
}

.acd-option:hover::after,
.acd-option:focus-visible::after {
  opacity: 1;
}

.acd-option.selected {
  border-color: var(--acd-cyan);
  background: var(--acd-cyan-glow);
  color: #fff;
}

.acd-option-key {
  font-family: var(--acd-font-mono);
  font-size: 0.92rem;
  color: var(--acd-cyan);
  background: rgba(57,208,240,0.1);
  border: 1px solid rgba(57,208,240,0.25);
  border-radius: 5px;
  padding: 0.3rem 0.58rem;
  flex-shrink: 0;
  align-self: center;
  margin-top: 0;
  letter-spacing: 0.05em;
}

/* ── Loading / Analyzing ── */
.acd-loading {
  text-align: center;
  padding: 4rem 1rem;
  animation: acd-fade-up 0.5s ease both;
}

.acd-terminal {
  background: #0a0e14;
  border: 1px solid var(--acd-border);
  border-radius: var(--acd-radius);
  padding: 1.5rem;
  margin: 2rem auto;
  max-width: 420px;
  font-family: var(--acd-font-mono);
  font-size: 0.82rem;
  color: var(--acd-emerald);
  text-align: left;
  min-height: 160px;
}

.acd-terminal-line {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  opacity: 0;
}

.acd-terminal-line.show {
  animation: acd-fade-up 0.3s ease both;
  opacity: 1;
}

.acd-terminal-prompt {
  color: var(--acd-cyan);
  flex-shrink: 0;
}

.acd-terminal-cursor {
  display: inline-block;
  width: 8px; height: 14px;
  background: var(--acd-emerald);
  animation: acd-blink 1s step-end infinite;
  vertical-align: text-bottom;
}

.acd-loading h2 {
  font-size: 1.1rem;
  color: var(--acd-text-muted);
  font-weight: 400;
  margin: 1rem 0 0;
}

/* ── Result Card ── */
.acd-result {
  animation: acd-fade-up 0.6s ease both;
}

.acd-result-header {
  background: linear-gradient(135deg, var(--acd-surface), var(--acd-surface-2));
  border: 1px solid var(--acd-border);
  border-radius: var(--acd-radius-lg);
  padding: 2rem 1.75rem 1.75rem;
  position: relative;
  margin-bottom: 1.25rem;
}

.acd-result-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--acd-cyan-glow) 0%, transparent 60%);
  pointer-events: none;
}

.acd-result-tag {
  font-family: var(--acd-font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--acd-emerald);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.acd-result-tag::before {
  content: '//';
  color: var(--acd-text-muted);
}

.acd-result-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.acd-result-subtitle {
  font-size: 0.88rem;
  color: var(--acd-cyan);
  font-family: var(--acd-font-base);
  margin: 0;
}

/* ── Advice Sections ── */
.acd-advice-section {
  background: var(--acd-surface);
  border: 1px solid var(--acd-border);
  border-radius: var(--acd-radius);
  padding: 1.5rem 1.5rem 1.5rem;
  margin-bottom: 1rem;
  position: relative;
}

.acd-advice-section:nth-child(2) { animation-delay: 0.1s; }
.acd-advice-section:nth-child(3) { animation-delay: 0.2s; }
.acd-advice-section:nth-child(4) { animation-delay: 0.3s; }

.acd-advice-label {
  font-family: var(--acd-font-base);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 0.85rem;
}

.acd-advice-label.strength {
  background: rgba(57,208,240,0.12);
  color: var(--acd-cyan);
  border: 1px solid rgba(57,208,240,0.3);
}

.acd-advice-label.risk {
  background: rgba(240,136,62,0.12);
  color: var(--acd-orange);
  border: 1px solid rgba(240,136,62,0.3);
}

.acd-advice-label.action {
  background: rgba(0,255,157,0.1);
  color: var(--acd-emerald);
  border: 1px solid rgba(0,255,157,0.25);
}

.acd-advice-text {
  font-size: 0.93rem;
  line-height: 1.85;
  color: var(--acd-text);
  margin: 0;
}

/* ── CV Button ── */
.acd-cv-wrap {
  margin-top: 2rem;
  text-align: center;
}

.acd-cv-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background:
    linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%)
      no-repeat -150% center / 60% 100%,
    #06C755;
  color: #fff;
  font-family: var(--acd-font-base);
  font-size: clamp(18px, 4.5vw, 24px);
  font-weight: 700;
  padding: 1.4rem 2rem;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  width: 100%;
  max-width: 530px;
  margin: 0 auto;
  transition:
    box-shadow var(--acd-transition),
    opacity var(--acd-transition),
    transform var(--acd-transition);
  letter-spacing: 0.02em;
  position: relative;
  overflow: visible;
  box-shadow: 0 8px 24px rgba(6, 199, 85, 0.3);
  animation: acd-shine 3s ease-in-out infinite;
}

.acd-cv-btn::before,
.acd-cv-btn::after {
  content: '';
  position: absolute;
  z-index: -1;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border-radius: 10px;
  background: rgba(6, 199, 85, 0.45);
  transform: translate3d(0,0,0);
  pointer-events: none;
}

.acd-cv-btn::before {
  animation: acd-btn-ripple 1.8s ease-out infinite;
}

.acd-cv-btn::after {
  animation: acd-btn-ripple 1.8s ease-out 0.9s infinite;
}

@keyframes acd-btn-ripple {
  0%   { transform: scale(0.95); opacity: 1; }
  90%  { opacity: 0.08; }
  100% { transform: scale(1.15, 1.35); opacity: 0; }
}

@keyframes acd-shine {
  0%, 70% { background-position: -150% center, 0 0; }
  100%    { background-position: 250% center, 0 0; }
}

.acd-cv-btn:hover {
  box-shadow: 0 12px 32px rgba(6, 199, 85, 0.55);
  opacity: 0.95;
  color: #fff;
  transform: translateY(-1px);
}

.acd-cv-note {
  font-size: 0.78rem;
  color: var(--acd-text-muted);
  margin-top: 0.75rem;
}

/* ── Retry button ── */
.acd-retry-btn {
  background: none;
  border: 1px solid var(--acd-border);
  color: var(--acd-text-muted);
  font-family: var(--acd-font-base);
  font-size: 0.78rem;
  padding: 0.6rem 1.4rem;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--acd-transition);
  margin-top: 1rem;
  letter-spacing: 0.05em;
  display: block;
  margin-inline: auto;
}

.acd-retry-btn:hover {
  border-color: var(--acd-cyan);
  color: var(--acd-cyan);
}

/* ── Type score bar (optional flair) ── */
.acd-scores {
  background: var(--acd-surface);
  border: 1px solid var(--acd-border);
  border-radius: var(--acd-radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.acd-scores-title {
  font-family: var(--acd-font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--acd-text-muted);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.acd-score-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.7rem;
}

.acd-score-row:last-child { margin-bottom: 0; }

.acd-score-label {
  font-size: 0.8rem;
  color: var(--acd-text-muted);
  width: 130px;
  flex-shrink: 0;
}

.acd-score-track {
  flex: 1;
  height: 4px;
  background: var(--acd-border);
  border-radius: 100px;
}

.acd-score-fill {
  height: 100%;
  border-radius: 100px;
  transition: width 1s cubic-bezier(0.4,0,0.2,1) 0.3s;
}

.acd-score-fill.pm        { background: var(--acd-cyan); }
.acd-score-fill.specialist { background: var(--acd-purple); }
.acd-score-fill.consult   { background: var(--acd-orange); }
.acd-score-fill.adapter   { background: var(--acd-emerald); }

.acd-score-pct {
  font-family: var(--acd-font-mono);
  font-size: 0.72rem;
  color: var(--acd-text-muted);
  width: 32px;
  text-align: right;
}

/* ── Keyframes ── */
@keyframes acd-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes acd-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

@keyframes acd-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── Utility ── */
.acd-hidden { display: none !important; }

/* ── Mobile tweaks ── */
@media (max-width: 480px) {
  .acd-card,
  .acd-result-header,
  .acd-advice-section {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .acd-score-label { width: 100px; font-size: 0.73rem; }
}

/* ═══════════════════════════════════════════════════
   LP SECTION STYLES（診断結果下のコンテンツ）
═══════════════════════════════════════════════════ */

.lp-wrap {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  background: var(--acd-bg);
  box-sizing: border-box;
}

.acd-section {
  position: relative;
  width: 100%;
  margin: 0;
  background: var(--acd-bg);
}

.acd-section__image {
  display: block;
  width: 100%;
  height: auto;
}

.acd-section--cta {
  overflow: hidden;
}

.acd-section__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.acd-cta-overlay-label {
  position: absolute;
  top: 79.1%;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  display: inline-block;
  padding: 0 0.26em;
  white-space: nowrap;
  text-align: center;
  color: #fff;
  font-size: clamp(24px, 4.9vw, 33px);
  font-weight: 700;
  line-height: 1.05;
  z-index: 1;
}

.acd-cta-overlay-label::before {
  content: '';
  position: absolute;
  left: -0.08em;
  right: -0.08em;
  top: 58%;
  height: 0.52em;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.74);
  z-index: -1;
}

.acd-cta-overlay-button {
  position: absolute;
  top: 84%;
  left: 13%;
  right: 13%;
  height: 10.5%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #06C755;
  color: #fff;
  font-family: var(--acd-font-base);
  font-size: clamp(18px, 4.5vw, 24px) !important;
  font-weight: 700 !important;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(6, 199, 85, 0.26);
  pointer-events: auto;
  transform: translateY(-1%);
}

.acd-cta-overlay-button:hover {
  background: #05b04c;
  color: #fff;
  text-decoration: none;
  filter: brightness(1.03);
}

.lp-html-section {
  padding: 2.5rem 1.25rem;
  background: var(--acd-bg);
  box-sizing: border-box;
}

.lp-html-section + .lp-html-section {
  border-top: 1px solid rgba(57, 208, 240, 0.08);
}

.lp-section-label {
  font-family: var(--acd-font-base);
  font-size: 0.72rem;
  color: var(--acd-cyan);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.lp-h2 {
  margin: 0 0 1rem;
  color: #fff;
  font-size: clamp(1.3rem, 4vw, 1.85rem);
  line-height: 1.45;
  font-weight: 700;
}

.lp-h3 {
  margin: 0 0 0.7rem;
  color: #fff;
  font-size: 1.02rem;
  line-height: 1.5;
  font-weight: 700;
}

.lp-body {
  margin: 0 0 1rem;
  color: var(--acd-text);
  font-size: 0.93rem;
  line-height: 1.9;
}

.lp-divider {
  border: 0;
  border-top: 1px solid var(--acd-border);
  margin: 1.6rem 0;
}

.lp-faq-list {
  display: grid;
  gap: 0.8rem;
}

.lp-faq {
  background: #2D5347;
}

.lp-faq-item {
  padding: 1rem 1rem 1.05rem;
  border: 1px solid var(--acd-border);
  border-radius: var(--acd-radius);
  background: var(--acd-surface-2);
}

.lp-faq-q {
  margin: 0 0 0.55rem;
  color: #fff;
  font-size: 0.96rem;
  line-height: 1.6;
  font-weight: 700;
}

.lp-faq-q::before {
  content: 'Q';
  margin-right: 0.55rem;
  color: var(--acd-cyan);
  font-family: var(--acd-font-mono);
}

.lp-faq-a {
  margin: 0;
  color: var(--acd-text);
  font-size: 0.89rem;
  line-height: 1.8;
}

.lp-faq-a::before {
  content: 'A';
  margin-right: 0.55rem;
  color: var(--acd-emerald);
  font-family: var(--acd-font-mono);
  font-weight: 700;
}

.lp-recruit-bridge {
  margin: 0 0 1.5rem;
  padding: 1.95rem 1.3rem 1.7rem;
  border: 1px solid rgba(57, 208, 240, 0.12);
  border-radius: var(--acd-radius);
  background: linear-gradient(180deg, rgba(16, 27, 44, 0.9), rgba(10, 17, 29, 0.96));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.lp-recruit-bridge-line {
  margin: 0;
  color: rgba(226, 234, 245, 0.72);
  font-size: clamp(1.5rem, 4.95vw, 1.9rem);
  line-height: 1.92;
  font-weight: 700;
}

.lp-recruit-bridge-line + .lp-recruit-bridge-line {
  margin-top: 0.32rem;
}

.lp-recruit-bridge-line--strong {
  color: #fff;
}

.lp-recruit {
  background: #2f3a4f;
  padding-bottom: 0.5rem;
}

.lp-recruit-card {
  padding: 0.4rem 0 1rem;
}

.lp-recruit-wrap {
  position: relative;
}

.lp-recruit-body {
  position: relative;
}

.lp-recruit-heading {
  margin: 0 0 2rem;
  text-align: center;
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.lp-recruit-preview {
  display: grid;
  gap: 1rem;
  padding-bottom: 0.45rem;
}

.lp-recruit-row {
  display: grid;
  grid-template-columns: 6.2rem 1fr;
  gap: 1rem;
  align-items: start;
}

.lp-recruit-term {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.55;
  white-space: nowrap;
}

.lp-recruit-desc {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.7;
}

.lp-recruit-note,
.lp-recruit-salary-note {
  display: inline-block;
  margin-top: 0.45rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.65;
}

.lp-recruit-detail-section {
  margin-bottom: 1.5rem;
}

.lp-recruit-salary-main,
.lp-recruit-salary-sub {
  margin: 0;
}

.lp-recruit-salary-sub {
  margin-top: 0.55rem;
}

.lp-recruit-extra {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.3s ease;
  opacity: 0;
}

.lp-recruit-wrap[data-state="open"] .lp-recruit-extra {
  opacity: 1;
}

.lp-recruit-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  margin-top: -3rem;
  padding: 1.15rem 1.5rem;
  background: #2f3a50;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 0;
  color: #fff;
  font-family: var(--acd-font-base);
  font-size: clamp(1rem, 2.8vw, 1.15rem);
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0;
  transition: background-color 0.2s, border-color 0.2s, opacity 0.2s;
  z-index: 2;
  isolation: auto;
}

.lp-recruit-toggle:hover {
  background: #36415a;
  border-color: #fff;
}

.lp-recruit-wrap[data-state="closed"] .lp-recruit-toggle::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -3rem;
  height: 3rem;
  background: linear-gradient(
    to bottom,
    rgba(28, 34, 48, 0) 0%,
    var(--acd-surface-2) 90%,
    rgba(28, 34, 48, 0) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.lp-recruit-toggle__icon {
  display: none;
}

.lp-recruit-toggle__label[hidden] {
  display: none;
}

.lp-apply {
  background: var(--acd-bg);
  padding-top: 1.5rem;
  padding-right: 1.5rem;
  padding-bottom: 2.5rem;
  padding-left: 1.5rem;
}

.lp-apply::before {
  content: '';
  display: block;
  width: 60%;
  max-width: 200px;
  height: 1px;
  margin: 0 auto 1.5rem;
  background: var(--acd-border);
}

.lp-apply-inner {
  text-align: center;
}

.lp-apply-btn {
  display: inline-flex;
  width: auto;
  margin: 0 auto;
  padding: 1rem 2.5rem;
}

.lp-apply-note {
  margin-top: 0.75rem;
  text-align: center;
}

.lp-highlight-box {
  padding: 1rem;
  border: 1px solid rgba(57, 208, 240, 0.18);
  border-radius: var(--acd-radius);
  background: rgba(57, 208, 240, 0.06);
}

.lp-highlight-box p {
  margin: 0;
  color: var(--acd-text);
  font-size: 0.88rem;
  line-height: 1.8;
}

.lp-job-table {
  width: 100%;
  border-collapse: collapse;
}

.lp-job-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.lp-job-table tr:last-child {
  border-bottom: 0;
}

.lp-job-table th,
.lp-job-table td {
  padding: 0.8rem 0;
  vertical-align: top;
  text-align: left;
}

.lp-job-table th {
  width: 96px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
}

.lp-job-table td {
  color: #fff;
  font-size: 1rem;
  line-height: 1.8;
  font-weight: 700;
}

.lp-job-table td strong {
  color: #fff;
}

.lp-flow {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.lp-flow-step {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.lp-flow-step-label {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(57, 208, 240, 0.28);
  background: rgba(57, 208, 240, 0.1);
  color: var(--acd-cyan);
  font-size: 0.8rem;
  font-family: var(--acd-font-base);
}

.lp-flow-arrow {
  padding-left: 0.45rem;
  color: var(--acd-text-muted);
  font-size: 0.8rem;
}

.lp-recruit__actions {
  margin-top: 1.9rem;
  text-align: center;
}

.lp-apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 360px;
  min-height: 56px;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  background: transparent;
  border: 2px solid var(--acd-emerald);
  color: var(--acd-emerald);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  box-sizing: border-box;
}

.lp-apply-btn:hover {
  background: rgba(0, 255, 157, 0.08);
  color: var(--acd-emerald);
  text-decoration: none;
}

.lp-final-cta {
  text-align: center;
  background: linear-gradient(180deg, rgba(10, 17, 29, 0.96), rgba(7, 12, 20, 1));
}

.lp-footer {
  background: #080c11;
  text-align: center;
}

.lp-footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.2rem;
}

.lp-footer-links a {
  color: var(--acd-text-muted);
  font-size: 0.78rem;
  text-decoration: none;
}

.lp-footer-links a:hover {
  color: var(--acd-cyan);
}

.lp-footer-logo {
  margin-bottom: 0.55rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

.lp-footer-sub {
  margin: 0 0 0.9rem;
  color: var(--acd-text-muted);
  font-size: 0.8rem;
  line-height: 1.8;
}

.lp-footer-copy {
  margin: 0;
  color: #607286;
  font-family: var(--acd-font-mono);
  font-size: 0.7rem;
}

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.legal-modal.is-open {
  display: flex;
}

.legal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 14, 0.76);
  backdrop-filter: blur(10px);
}

.legal-modal-dialog {
  position: relative;
  width: min(680px, calc(100vw - 56px));
  max-width: 680px;
  max-height: min(82vh, 760px);
  background: #171d27;
  border-radius: 18px;
  overflow: hidden;
  padding: 0;
  color: #e8eef5;
  z-index: 1;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(140, 168, 204, 0.18);
}

.legal-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.legal-modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.legal-modal-content {
  position: relative;
  z-index: 2;
  max-height: min(82vh, 760px);
  overflow-y: auto;
  padding: 2.25rem 1.6rem 1.8rem;
  scrollbar-gutter: stable;
}

.legal-modal-frame {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.legal-modal-frame rect {
  stroke: rgba(255, 255, 255, 0.46);
  stroke-width: 2px;
  stroke-dasharray: 2200;
  stroke-dashoffset: 2200;
}

.legal-modal--security .legal-modal-backdrop {
  animation: legal-modal-fade-in 0.2s ease-out forwards;
}

.legal-modal--security .legal-modal-dialog {
  animation: legal-modal-dialog-in 0.28s ease-out forwards;
}

.legal-modal--security .legal-modal-frame rect {
  stroke-dashoffset: 0;
}

.legal-document {
  line-height: 1.8;
  font-size: 14px;
}

.legal-doc-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(57, 208, 240, 0.4);
}

.legal-lead,
.legal-lead-sub {
  margin-bottom: 1.5rem;
}

.legal-policy-list {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.legal-policy-list li {
  margin-bottom: 0.6rem;
}

.legal-section-heading {
  font-size: 16px;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: #39d0f0;
}

.legal-section {
  margin-bottom: 1.5rem;
}

.legal-section-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.legal-definition-list dt {
  font-weight: 700;
  margin-top: 0.75rem;
}

.legal-definition-list dd {
  margin: 0.25rem 0 0 1rem;
  padding-left: 0.5rem;
  border-left: 2px solid rgba(57, 208, 240, 0.3);
  color: #b8c5d6;
}

.legal-condition-list {
  padding-left: 1.5rem;
  margin: 0.5rem 0;
}

.legal-condition-list li {
  margin-bottom: 0.4rem;
}

@keyframes legal-modal-fade-in {
  0% {
    background: rgba(3, 7, 14, 0);
  }
  100% {
    background: rgba(3, 7, 14, 0.76);
  }
}

@keyframes legal-modal-dialog-in {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


.legal-signature {
  margin-top: 2rem;
  text-align: right;
  font-size: 13px;
  color: #b8c5d6;
}

.legal-contact {
  margin-top: 2rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
}

.legal-contact-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.legal-preamble p {
  margin-bottom: 0.75rem;
}

@media (max-width: 480px) {
  .lp-html-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .lp-job-table th {
    width: 82px;
    font-size: 0.78rem;
  }

  .lp-job-table td {
    font-size: 0.82rem;
  }
}

@media (min-width: 1024px) {
  body {
    background: var(--acd-bg);
  }

  .acd-container,
  .lp-wrap {
    border-left: 1px solid rgba(57, 208, 240, 0.08);
    border-right: 1px solid rgba(57, 208, 240, 0.08);
  }
}

/* ── 戻るボタン（アンケート画面） ── */
.acd-back-btn {
  background: none;
  border: none;
  color: var(--acd-text-muted);
  font-family: var(--acd-font-base);
  font-size: 0.78rem;
  padding: 0.4rem 0;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: color var(--acd-transition);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.acd-back-btn:hover {
  color: var(--acd-cyan);
}

/* ── フッター ── */
.lp-footer {
  background: #080c11;
  border-top: 1px solid var(--acd-border);
  padding: 2rem 1.5rem;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}
.lp-footer-logo {
  font-family: var(--acd-font-base);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--acd-cyan);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}
.lp-footer-sub {
  font-size: 0.78rem;
  color: var(--acd-text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.lp-footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.lp-footer-links a {
  font-size: 0.78rem;
  color: var(--acd-text-muted);
  text-decoration: none;
  transition: color var(--acd-transition);
}
.lp-footer-links a:hover { color: var(--acd-cyan); }
.lp-footer-copy {
  font-family: var(--acd-font-base);
  font-size: 0.68rem;
  color: #3a4a5a;
  letter-spacing: 0.06em;
}

/* ── 採用ブリッジセクション ── */
.lp-recruit-bridge {
  padding: 2rem 1.25rem 1rem;
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}
.lp-recruit-bridge p {
  font-size: 0.9rem;
  color: var(--acd-text-muted);
  line-height: 1.8;
  margin: 0;
}
.lp-recruit-bridge strong {
  color: var(--acd-text);
}

/* ── 応募ボタン ── */
.lp-apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--acd-emerald);
  border: 2px solid var(--acd-emerald);
  font-family: var(--acd-font-sans);
  font-size: 1rem;
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 100px;
  text-decoration: none;
  cursor: pointer;
  width: 100%;
  max-width: 360px;
  transition: all var(--acd-transition);
  letter-spacing: 0.02em;
  box-sizing: border-box;
}
.lp-apply-btn:hover {
  background: var(--acd-emerald);
  color: #0d1117;
  text-decoration: none;
}

/* 波紋アニメーション（応募ボタン） */
.lp-apply-btn {
  position: relative;
  overflow: visible;
}

.lp-apply-btn::before,
.lp-apply-btn::after {
  content: '';
  position: absolute;
  z-index: -1;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border-radius: 100px;
  background: rgba(0,255,157,0.25);
  transform: translate3d(0,0,0);
  pointer-events: none;
}

.lp-apply-btn::before {
  animation: acd-emerald-ripple 1.8s ease-out infinite;
}

.lp-apply-btn::after {
  animation: acd-emerald-ripple 1.8s ease-out 0.9s infinite;
}

@keyframes acd-emerald-ripple {
  0%   { transform: scale(0.95); opacity: 1; }
  90%  { opacity: 0.08; }
  100% { transform: scale(1.15, 1.35); opacity: 0; }
}

/* ═══════════════════════════════════════════
   PC向け：コンテンツ上下をページ端まで拡張 ＋ マスク
═══════════════════════════════════════════ */
@media (min-width: 1024px) {

  /* コンテンツ全体を囲む縦ライン（左右にシアンのボーダーライン） */
  .acd-container,
  .lp-wrap {
    border-left:  1px solid rgba(57, 208, 240, 0.08);
    border-right: 1px solid rgba(57, 208, 240, 0.08);
  }

  /* コンテンツ列の最上部：背景画像からフェードイン */
  .acd-container:first-child::before {
    content: '';
    display: block;
    height: 3rem;
    background: linear-gradient(to bottom, #0d1117 0%, transparent 100%);
    margin: -3rem -1.25rem 0;
    pointer-events: none;
  }

  /* lp-footer直前：フェードアウト */
  .lp-footer {
    position: relative;
  }
  .lp-footer::before {
    content: '';
    position: absolute;
    top: -3rem; left: 0; right: 0;
    height: 3rem;
    background: linear-gradient(to bottom, transparent 0%, #060a0e 100%);
    pointer-events: none;
  }
}

/* ── ヒーロー最小版 ── */
.acd-hero-min {
  text-align: center;
  padding: 2rem 1.25rem 3rem;
  animation: acd-fade-up 0.5s ease both;
  background: var(--acd-bg); /* 確実にソリッド黒 */
}

.acd-hero-label {
  font-family: var(--acd-font-sans);
  font-size: 0.92rem;
  color: var(--acd-text-muted);
  margin: 0 0 1rem;
  letter-spacing: 0.03em;
}

/* グリーンスタートボタン（参考画像に合わせたデザイン） */
.acd-start-green {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 1.15rem 1.5rem;
  background:
    linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%)
      no-repeat -150% center / 60% 100%,
    #22c55e;
  color: #fff;
  font-family: var(--acd-font-sans);
  font-size: 1.2rem;
  font-weight: 700;
  border: 2px solid #4ade80;
  border-radius: 10px;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: box-shadow 0.2s, border-color 0.2s;
  box-shadow: 0 4px 20px rgba(34,197,94,0.35);
  text-align: center;
  animation: acd-shine-green 3s ease-in-out infinite;
}
.acd-start-green:hover {
  border-color: #86efac;
  box-shadow: 0 6px 30px rgba(34,197,94,0.5);
}

/* 波紋アニメーション（グリーンCTA） */
.acd-start-green {
  position: relative;
  overflow: visible;
}

.acd-start-green::before,
.acd-start-green::after {
  content: '';
  position: absolute;
  z-index: -1;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border-radius: 10px;
  background: rgba(34,197,94,0.35);
  transform: translate3d(0,0,0);
  pointer-events: none;
}

.acd-start-green::before {
  animation: acd-green-ripple 1.8s ease-out infinite;
}

.acd-start-green::after {
  animation: acd-green-ripple 1.8s ease-out 0.9s infinite;
}

@keyframes acd-green-ripple {
  0%   { transform: scale(0.95); opacity: 1; }
  90%  { opacity: 0.08; }
  100% { transform: scale(1.12, 1.4); opacity: 0; }
}

@keyframes acd-shine-green {
  0%, 70% { background-position: -150% center, 0 0; }
  100%    { background-position: 250% center, 0 0; }
}

/* ── モーダル内クイズ最適化（SP縦スクロール最小化） ── */
.acd-modal .acd-container {
  padding-top: 0.75rem;
  padding-bottom: 1rem;
}
.acd-modal .acd-card {
  padding: 1.45rem 1.4rem;
}
.acd-modal .acd-q-text {
  font-size: clamp(1.55rem, 4.4vw, 1.95rem);
  line-height: 1.68;
  margin-bottom: 1.45rem;
}
.acd-modal .acd-option {
  padding: 1.15rem 1.2rem;
  gap: 1rem;
  font-size: clamp(1.28rem, 3.65vw, 1.58rem);
  line-height: 1.65;
}
.acd-modal .acd-progress-wrap {
  margin-bottom: 1rem;
}
/* ヒーロー画面はモーダル内で非表示（モーダルが開いた瞬間にquizに切り替わるため不要） */
.acd-modal .acd-hero-min {
  display: none;
}

/* ── Typography normalization: image tone alignment ── */
#acd-app h1, #acd-app h2, #acd-app h3, #acd-app h4, #acd-app h5, #acd-app h6 {
  font-family: var(--acd-font-base);
  font-weight: 700;
}

.acd-progress-label,
.acd-q-number,
.acd-q-text,
.acd-option,
.acd-loading h2,
.acd-result-title,
.acd-result-name,
.acd-score-label,
.acd-advice-label,
.acd-advice-text,
.acd-cv-btn,
.acd-back-btn,
.acd-retry-btn,
.acd-start-green,
.acd-hero-label,
.lp-wrap,
.lp-wrap *,
.legal-document,
.legal-document * {
  font-family: var(--acd-font-base);
}

.acd-badge,
.acd-terminal,
.acd-result-tag,
.acd-result-subtitle,
.acd-scores-title,
.acd-score-pct {
  font-family: var(--acd-font-accent);
}

.acd-result-tag,
.acd-scores-title {
  font-size: 11px;
  letter-spacing: 0.15em;
}

.acd-result-title,
.acd-result-name {
  font-size: clamp(2.2rem, 6.8vw, 3rem);
  font-weight: 700;
}

.acd-result-subtitle,
.acd-result-en {
  font-family: var(--acd-font-accent);
  font-size: 14px;
  opacity: 0.7;
}

.acd-progress-label,
.acd-q-number,
.acd-advice-label,
.lp-section-label {
  font-size: 11px;
  letter-spacing: 0.1em;
}

.acd-advice-label {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  padding: 0.52rem 1.2rem 0.58rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
  line-height: 1;
}

.acd-q-text {
  font-size: clamp(1.55rem, 5vw, 1.95rem);
  font-weight: 700;
  line-height: 1.68;
}

.acd-option,
.acd-back-btn,
.acd-retry-btn,
.acd-start-green,
.lp-accordion-toggle,
.lp-apply-btn,
.lp-footer-links a {
  font-size: 20px;
  font-weight: 700;
}

.acd-cv-btn,
.acd-back-btn,
.acd-retry-btn,
.acd-start-green,
.lp-accordion-toggle,
.lp-apply-btn {
  font-family: var(--acd-font-base);
}

.lp-h2 {
  font-size: clamp(28px, 6vw, 38px);
  font-weight: 700;
  line-height: 1.35;
}

.lp-h3,
.legal-section-heading,
.legal-section-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.45;
}

.lp-body,
.lp-html-section p,
.lp-faq-a,
.lp-recruit-bridge p,
.lp-highlight-box p,
.lp-job-table td,
.lp-job-table th,
.lp-footer-sub,
.legal-document p,
.legal-document li,
.legal-document dd {
  font-size: 18px;
  line-height: 1.8;
  font-weight: 700;
}

.acd-advice-text {
  font-size: 1.18rem;
  line-height: 1.85;
  font-weight: 700;
}

.lp-section-label {
  font-family: var(--acd-font-base);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.lp-final-cta .lp-section-label,
.acd-result-tag,
.acd-scores-title {
  font-family: var(--acd-font-accent);
}

.lp-final-cta .lp-h2 {
  font-size: clamp(26px, 6vw, 34px);
  font-weight: 700;
  line-height: 1.35;
}

.lp-final-cta .lp-body {
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
}

.lp-faq-q,
.lp-faq-q::before,
.lp-faq-a::before,
.lp-footer-logo,
.legal-doc-title,
.legal-contact-title {
  font-weight: 700;
}

.lp-faq-q::before,
.lp-faq-a::before {
  font-family: var(--acd-font-base);
}

.lp-faq-q {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.55;
}

.lp-faq-a {
  font-size: 1.12rem;
  line-height: 1.9;
  font-weight: 700;
}

.lp-flow-step-label,
.lp-footer-copy {
  font-family: var(--acd-font-base);
}

.lp-footer-links a {
  font-family: var(--acd-font-base);
}
