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

:root {
  --bg: #FAFBFC;
  --surface: #FFFFFF;
  --accent: #2E7D9B;
  --accent2: #5A9E6F;
  --text: #1A1A2E;
  --dim: #6B7280;
  --border: rgba(0,0,0,0.08);
}

body {
  font-family: 'Hiragino Sans', 'Yu Gothic UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ナビ */
.nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.nav a {
  color: var(--dim);
  text-decoration: none;
  transition: color 0.2s;
}
.nav a.active, .nav a:hover {
  color: var(--accent);
}

/* ヘッダー */
.site-header {
  text-align: center;
  padding: 40px 20px 20px;
}
.site-header h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 4px;
  margin-bottom: 8px;
}

/* フッター */
.site-footer {
  text-align: center;
  padding: 24px;
  color: var(--dim);
  font-size: 11px;
  border-top: 1px solid var(--border);
  margin-top: 60px;
}
.site-footer a { color: var(--accent); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ============================
   診断トップページ
   ============================ */
.diagnosis-hero {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}
.diagnosis-hero .badge {
  display: inline-block;
  font-size: 11px;
  color: var(--accent2);
  border: 1px solid rgba(90,158,111,0.3);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  font-weight: 600;
}
.diagnosis-hero h2 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 16px;
}
.diagnosis-hero h2 span {
  color: var(--accent);
}
.diagnosis-hero .lead {
  font-size: 14px;
  color: var(--dim);
  line-height: 1.8;
  margin-bottom: 32px;
}
.diagnosis-hero .meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.diagnosis-hero .meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.diagnosis-hero .meta-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
}
.diagnosis-hero .meta-label {
  font-size: 11px;
  color: var(--dim);
}
.btn-start {
  display: inline-block;
  padding: 16px 48px;
  background: var(--accent);
  color: #fff;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, transform 0.1s;
  letter-spacing: 1px;
}
.btn-start:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.types-preview {
  max-width: 600px;
  margin: 0 auto 40px;
  padding: 0 20px;
}
.types-preview h3 {
  font-size: 14px;
  color: var(--dim);
  margin-bottom: 12px;
  text-align: center;
}
.types-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.type-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12px;
}
.type-chip .type-name {
  font-weight: 700;
  margin-bottom: 2px;
}
.type-chip .type-sub {
  color: var(--dim);
  font-size: 11px;
}

/* ============================
   質問ページ
   ============================ */
.progress-wrap {
  max-width: 600px;
  margin: 0 auto;
  padding: 24px 20px 0;
}
.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.progress-label {
  font-size: 12px;
  color: var(--dim);
}
.progress-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}
.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(46,125,155,0.12);
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.4s ease;
}

.question-wrap {
  max-width: 600px;
  margin: 0 auto;
  padding: 32px 20px 40px;
}
.question-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.question-number {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.question-text {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* 5択ラジオオプション */
.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.option-label {
  display: block;
  width: 100%;
  padding: 14px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: left;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  color: var(--text);
  min-height: 52px;
}
.option-label:hover {
  background: rgba(46,125,155,0.06);
  border-color: rgba(46,125,155,0.3);
  color: var(--accent);
}
.option-label input[type="radio"] {
  display: none;
}
.option-label.selected {
  background: rgba(46,125,155,0.1);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.next-btn {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s;
}
.next-btn:hover { opacity: 0.88; }
.next-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.back-btn {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--dim);
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  padding: 8px;
  width: 100%;
}
.back-btn:hover { color: var(--accent); }

/* ============================
   結果ページ
   ============================ */
.result-type-header {
  max-width: 600px;
  margin: 0 auto;
  padding: 32px 20px 24px;
  text-align: center;
  border-bottom: 3px solid var(--accent);
}
.type-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
  background: rgba(46,125,155,0.1);
  color: var(--accent);
  letter-spacing: 1px;
}
.type-name {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}
.type-desc {
  font-size: 15px;
  color: var(--dim);
  line-height: 1.7;
}

.result-section {
  max-width: 600px;
  margin: 0 auto;
  padding: 32px 20px 0;
}
.result-section h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

/* レーダーチャート */
.radar-wrap {
  max-width: 360px;
  margin: auto;
}

/* 8軸スコアバー */
.axis-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.axis-bar-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.axis-bar-label {
  font-size: 13px;
  font-weight: 600;
  width: 90px;
  flex-shrink: 0;
}
.axis-bar-track {
  flex: 1;
  height: 8px;
  background: rgba(46,125,155,0.1);
  border-radius: 4px;
  overflow: hidden;
}
.axis-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.6s ease;
}
.axis-bar-score {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  width: 38px;
  text-align: right;
  flex-shrink: 0;
}

/* 強み・ストレス・相性 */
.insight-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.insight-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
}
.insight-card-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.insight-card-body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}
.insight-tag {
  display: inline-block;
  background: rgba(46,125,155,0.1);
  color: var(--accent);
  border-radius: 6px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
  margin-right: 4px;
}

/* 面接例文セクション */
.interview-section {
  margin-top: 0;
}
.section-desc {
  font-size: 13px;
  color: var(--dim);
  margin-bottom: 16px;
  line-height: 1.6;
}

/* タブ切り替えUI */
.tab-btns {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: transparent;
  color: var(--dim);
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.tab-btn.active,
.tab-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* 面接例文カード */
.interview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}
.interview-question {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}
.interview-answer {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-all;
}
.copy-btn {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 10px;
  background: rgba(46,125,155,0.08);
  border: 1px solid rgba(46,125,155,0.2);
  border-radius: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.copy-btn:hover {
  background: rgba(46,125,155,0.15);
}

/* 書籍カード */
.book-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.book-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}
.book-cover {
  width: 60px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  flex-shrink: 0;
}
.book-cover-placeholder {
  width: 60px;
  height: 86px;
  border-radius: 4px;
  background: rgba(46,125,155,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--dim);
  font-size: 24px;
}
.book-info {
  flex: 1;
}
.book-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}
.book-author {
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 8px;
}
.book-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.book-btns a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}
.book-btns a:hover { opacity: 0.8; }
.btn-amazon { background: #FF9900; color: #000; }
.btn-audible { background: #F7991C; color: #000; }

/* シェアボタン */
.share-section {
  max-width: 600px;
  margin: 32px auto 0;
  padding: 0 20px;
  text-align: center;
}
.share-section p {
  font-size: 13px;
  color: var(--dim);
  margin-bottom: 12px;
}
.btn-share-x {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: #000;
  color: #fff;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s;
}
.btn-share-x:hover { opacity: 0.8; }
.btn-share-x svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

.retry-section {
  max-width: 600px;
  margin: 24px auto 0;
  padding: 0 20px;
  text-align: center;
}
.btn-retry {
  display: inline-block;
  padding: 10px 28px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  color: var(--dim);
  text-decoration: none;
  transition: all 0.2s;
}
.btn-retry:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ローディング */
.loading {
  text-align: center;
  padding: 40px;
  color: var(--dim);
  font-size: 14px;
}

/* レスポンシブ */
@media (max-width: 480px) {
  .diagnosis-hero h2 { font-size: 22px; }
  .type-name { font-size: 26px; }
  .question-text { font-size: 16px; }
  .types-grid { grid-template-columns: 1fr; }
  .axis-bar-label { width: 70px; font-size: 12px; }
  .tab-btns { gap: 4px; }
  .tab-btn { font-size: 12px; padding: 6px 10px; }
}
