/* ========================================
   婚活性格診断 - オリジナルデザイン
   ======================================== */
:root {
    --primary: #c5a55a;
    --primary-dark: #b08d3e;
    --primary-light: #faf6ee;
    --accent: #d44d4d;
    --accent-light: #fdf0f0;
    --accent-blue: #5B8FB9;
    --accent-blue-light: #EDF4F8;
    --gold: #c5a55a;
    --success: #6BAF7B;
    --danger: #E06B6B;
    --light: #fdfcfa;
    --dark: #3a332c;
    --white: #FFFFFF;
    --border: #e8e0d4;
    --text: #4a4540;
    --text-light: #8a8278;
    --text-muted: #b0a89c;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 2px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
    --shadow-hover: 0 12px 40px rgba(0,0,0,0.12);
    --gradient-warm: linear-gradient(135deg, #c5a55a 0%, #d4b86a 100%);
    --gradient-cool: linear-gradient(135deg, #d44d4d 0%, #e06060 100%);
}

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

body {
    font-family: 'Hiragino Sans','Hiragino Kaku Gothic ProN','Noto Sans JP','Yu Gothic',Meiryo,sans-serif;
    color: var(--text); background: var(--light); line-height: 1.8; min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

/* ナビ */
.navbar {
    background: rgba(255,255,255,0.95); box-shadow: 0 1px 0 var(--border);
    padding: 16px 0; position: sticky; top: 0; z-index: 100; backdrop-filter: blur(10px);
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.navbar__logo {
    font-size: 1.2rem; font-weight: 700;
    background: var(--gradient-warm); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.navbar__logo:hover { text-decoration: none; opacity: 0.8; }
.navbar__menu { display: flex; gap: 24px; }
.navbar__menu a { color: var(--text-light); font-size: 0.88rem; font-weight: 500; }
.navbar__menu a:hover { color: var(--primary); text-decoration: none; }

/* ボタン */
.btn {
    display: inline-block; padding: 12px 28px; border: none; border-radius: 50px;
    font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: all 0.3s;
    text-align: center; text-decoration: none; line-height: 1.5;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--primary { background: var(--gradient-warm); color: var(--white); }
.btn--secondary { background: var(--white); color: var(--text); border: 1px solid var(--border); }
.btn--secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn--lg { padding: 16px 44px; font-size: 1.05rem; }
.btn--sm { padding: 8px 18px; font-size: 0.82rem; }

/* フォーム */
.input { width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius);
    font-size: 0.95rem; font-family: inherit; background: var(--white); }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(232,120,106,0.1); }

/* ヒーロー */
.hero {
    text-align: center; padding: 80px 30px;
    background: linear-gradient(135deg, #faf6ee 0%, #fff9f0 40%, #fdf0f0 100%);
    color: var(--text); border-radius: var(--radius-lg); margin: 30px 0;
    position: relative; overflow: hidden; border: 1px solid var(--border);
}
.hero::before {
    content: ''; position: absolute; top: -30%; right: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(197,165,90,0.15) 0%, transparent 60%);
    border-radius: 50%;
}
.hero::after {
    content: ''; position: absolute; bottom: -25%; left: -8%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(212,77,77,0.08) 0%, transparent 60%);
    border-radius: 50%;
}
.hero__label {
    display: inline-block; padding: 6px 20px; background: var(--white);
    border: 1px solid var(--gold); border-radius: 50px;
    font-size: 0.82rem; color: var(--gold); letter-spacing: 0.1em;
    margin-bottom: 20px; position: relative; z-index: 1; font-weight: 600;
}
.hero h1 {
    font-size: 2rem; margin-bottom: 16px; position: relative; z-index: 1; font-weight: 700;
    line-height: 1.6; color: var(--dark);
}
.hero h1 em {
    font-style: normal;
    background: var(--gradient-warm); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p { font-size: 1.05rem; margin-bottom: 36px; color: var(--text-light); position: relative; z-index: 1; line-height: 1.9; }
.hero .btn {
    background: linear-gradient(135deg, var(--gold), var(--primary-dark));
    color: var(--white); font-size: 1.1rem; padding: 16px 48px;
    position: relative; z-index: 1; box-shadow: 0 4px 20px rgba(197,165,90,0.35);
}
.hero .btn:hover { transform: translateY(-3px); box-shadow: 0 6px 28px rgba(197,165,90,0.45); }

/* 特徴 */
.features { padding: 50px 0; }
.features__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; }
.feature-card {
    background: var(--white); padding: 32px; border-radius: var(--radius-lg);
    box-shadow: var(--shadow); transition: all 0.3s; border: 1px solid var(--border);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.feature-card h3 {
    background: var(--gradient-warm); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 12px; font-size: 1.15rem;
}
.feature-card p { color: var(--text-light); margin-bottom: 18px; font-size: 0.9rem; }
.feature-card ul { list-style: none; }
.feature-card li { padding: 5px 0; font-size: 0.88rem; }
.feature-card li::before {
    content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    background: var(--gradient-warm); margin-right: 10px; vertical-align: middle;
}

/* フッター */
.footer { background: var(--dark); color: var(--white); text-align: center; padding: 24px 0; margin-top: 60px; }
.footer p { font-size: 0.82rem; opacity: 0.5; }

/* ========================================
   テストページ
   ======================================== */
.test-section { padding: 30px 0; }
.test-section h1 {
    text-align: center; background: var(--gradient-warm);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; margin-bottom: 10px; font-size: 1.5rem;
}
.test-intro { text-align: center; color: var(--text-light); margin-bottom: 30px; font-size: 0.92rem; }

.progress-bar {
    position: relative; background: var(--border); border-radius: 50px;
    height: 28px; margin-bottom: 32px; overflow: hidden;
}
.progress-bar__fill {
    background: var(--gradient-warm); height: 100%; border-radius: 50px;
    transition: width 0.5s ease; width: 0%;
}
.progress-bar__text {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    font-size: 0.8rem; font-weight: 600; color: var(--text);
}

.name-section { max-width: 400px; margin: 0 auto 32px; text-align: center; }
.name-section label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; }

.question-card {
    background: var(--white); border-radius: var(--radius-lg); padding: 28px;
    margin-bottom: 16px; box-shadow: var(--shadow); transition: all 0.3s; border: 2px solid transparent;
}
.question-card.answered { border-color: var(--success); background: #fafcf6; }
.question-card__number { color: var(--primary); font-weight: 700; font-size: 0.82rem; margin-bottom: 6px; }
.question-card__text { font-size: 1rem; margin-bottom: 18px; font-weight: 600; line-height: 1.7; }

.likert-scale { display: flex; justify-content: space-between; gap: 8px; }
.likert-option { flex: 1; text-align: center; cursor: pointer; }
.likert-radio { display: none; }
.likert-btn {
    display: block; width: 48px; height: 48px; margin: 0 auto 6px; border-radius: 50%;
    background: var(--white); border: 2px solid var(--border); line-height: 44px;
    font-weight: 700; font-size: 1rem; transition: all 0.2s; color: var(--text-light);
}
.likert-radio:checked + .likert-btn {
    background: var(--gradient-warm); border-color: var(--primary); color: var(--white);
    transform: scale(1.12); box-shadow: 0 4px 12px rgba(197,165,90,0.3);
}
.likert-option:hover .likert-btn { border-color: var(--primary); background: var(--primary-light); }
.likert-label { display: block; font-size: 0.68rem; color: var(--text-muted); line-height: 1.3; }

.page-title { text-align: center; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 24px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.section-badge {
    display: inline-block; padding: 4px 14px; border-radius: 50px;
    font-size: 0.78rem; font-weight: 700; color: var(--white);
}
.section-badge--love { background: var(--gradient-warm); color: var(--white); }
.section-badge--marriage { background: var(--gradient-cool); color: var(--white); }
.test-nav { display: flex; justify-content: center; gap: 16px; margin-top: 32px; padding-bottom: 32px; }

/* ========================================
   結果ページ
   ======================================== */
.result-section { padding: 30px 0; }

.result-header {
    text-align: center; margin-bottom: 48px; padding: 48px 30px;
    background: var(--white); border-radius: var(--radius-lg);
    box-shadow: var(--shadow); border: 1px solid var(--border);
    position: relative; overflow: hidden;
}
.result-header::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--gradient-warm);
}
.result-header h1 { font-size: 1.6rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.name-highlight {
    background: var(--gradient-warm); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
}
.result-date { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 20px; }
.share-section { margin-top: 20px; }
.copy-message { color: var(--success); font-size: 0.82rem; margin-left: 8px; font-weight: 500; display: none; }

/* チャート */
.chart-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 32px;
}
.chart-section {
    background: var(--white); border-radius: var(--radius-lg); padding: 36px;
    box-shadow: var(--shadow); text-align: center; border: 1px solid var(--border);
}
.chart-section--love { border-top: 3px solid var(--gold); }
.chart-section--marriage { border-top: 3px solid var(--accent); }
.chart-section h2 { font-size: 1.2rem; color: var(--text); margin-bottom: 8px; font-weight: 700; }
.section-subtitle { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 24px; }
.pentagon-container { max-width: 380px; margin: 0 auto; }
.radar-chart { width: 100%; height: auto; }

/* 概要バー */
.overview-section {
    background: var(--white); border-radius: var(--radius-lg); padding: 36px;
    margin-bottom: 32px; box-shadow: var(--shadow); border: 1px solid var(--border);
}
.overview-section h2 { font-size: 1.2rem; color: var(--text); margin-bottom: 28px; font-weight: 700; }
.trait-row { margin-bottom: 24px; }
.trait-row:last-child { margin-bottom: 0; }
.trait-row__header { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.trait-name { font-weight: 700; font-size: 0.95rem; }
.trait-score { font-weight: 700; color: var(--primary); font-size: 0.95rem; }
.trait-avg { color: var(--text-muted); font-size: 0.8rem; }
.trait-bar { display: flex; height: 28px; border-radius: 50px; overflow: hidden; }
.trait-bar__high {
    background: var(--gradient-warm); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.72rem; font-weight: 600; min-width: 0; overflow: hidden; white-space: nowrap;
}
.trait-bar__low {
    background: var(--accent-blue-light); color: var(--accent-blue);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.72rem; font-weight: 600; min-width: 0; overflow: hidden; white-space: nowrap;
}

/* 詳細カード */
.detail-section { margin-bottom: 32px; }
.detail-section h2 { font-size: 1.2rem; color: var(--text); margin-bottom: 24px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.overview-section h2 { display: flex; align-items: center; gap: 10px; }
.score-card {
    background: var(--white); border-radius: var(--radius-lg); padding: 32px;
    margin-bottom: 24px; box-shadow: var(--shadow); border: 1px solid var(--border); transition: all 0.3s;
}
.score-card:hover { box-shadow: var(--shadow-hover); }
.score-card__header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border);
}
.score-card__header h3 { font-size: 1.2rem; font-weight: 700; }
.score-card__header h3 small { color: var(--text-muted); font-size: 0.75rem; font-weight: 400; margin-left: 8px; }

.gauge-circle {
    width: 76px; height: 76px; border-radius: 50%;
    background: conic-gradient(var(--gauge-color, var(--primary)) calc(var(--pct,0) * 3.6deg), var(--border) 0deg);
    display: flex; align-items: center; justify-content: center; position: relative; flex-shrink: 0;
}
.gauge-circle::after {
    content: ''; width: 56px; height: 56px; border-radius: 50%;
    background: var(--white); position: absolute;
}
.gauge-value { position: relative; z-index: 1; font-size: 1.2rem; font-weight: 700; color: var(--primary); }

.score-card__comparison {
    display: flex; gap: 16px; margin-bottom: 24px; padding: 18px;
    background: var(--light); border-radius: var(--radius);
}
.comparison-item { text-align: center; flex: 1; }
.comparison-label { display: block; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 4px; }
.comparison-value { font-size: 1.2rem; font-weight: 700; }
.comparison-value.high { color: var(--primary); }
.comparison-value.low { color: var(--accent); }

.opposing-bar { display: flex; height: 34px; border-radius: 50px; overflow: hidden; font-size: 0.78rem; margin-bottom: 24px; }
.opposing-bar__left {
    background: var(--gradient-warm); color: var(--white);
    display: flex; align-items: center; justify-content: center; font-weight: 600;
    min-width: 0; overflow: hidden; white-space: nowrap;
}
.opposing-bar__right {
    background: var(--gradient-cool); color: var(--white);
    display: flex; align-items: center; justify-content: center; font-weight: 600;
    min-width: 0; overflow: hidden; white-space: nowrap;
}

.score-card__description h4 { color: var(--primary); margin-bottom: 10px; font-size: 1.05rem; }
.score-card__description p { line-height: 2; margin-bottom: 16px; font-size: 0.92rem; }
.keywords { display: flex; flex-wrap: wrap; gap: 8px; }
.keyword-tag {
    display: inline-block; padding: 5px 14px; background: var(--primary-light);
    color: var(--primary); border-radius: 50px; font-size: 0.78rem; font-weight: 600;
}

/* 回答テーブル */
.answer-table-section {
    background: var(--white); border-radius: var(--radius-lg); padding: 36px;
    box-shadow: var(--shadow); border: 1px solid var(--border);
}
.answer-table-section h2 { font-size: 1.2rem; margin-bottom: 24px; font-weight: 700; }
.table-scroll { overflow-x: auto; }
.answer-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.answer-table th {
    background: var(--dark); color: var(--white); padding: 12px 14px;
    text-align: left; font-weight: 600; font-size: 0.8rem; white-space: nowrap;
}
.answer-table th:first-child { border-radius: 8px 0 0 0; }
.answer-table th:last-child { border-radius: 0 8px 0 0; }
.answer-table td { padding: 11px 14px; border-bottom: 1px solid var(--border); }
.answer-table tr:nth-child(even) { background: var(--light); }
.answer-table tr:hover { background: var(--primary-light); }
.answer-value { font-weight: 700; text-align: center; color: var(--primary); }
.avg-value { color: var(--text-muted); text-align: center; }
.category-badge {
    display: inline-block; padding: 3px 10px; border-radius: 50px;
    font-size: 0.72rem; font-weight: 600; white-space: nowrap;
    background: var(--primary-light); color: var(--primary);
}
.category-badge--love { background: var(--primary-light); color: var(--primary-dark); }
.category-badge--marriage { background: var(--accent-light); color: var(--accent); }

/* レスポンシブ */
@media (max-width: 768px) {
    .navbar .container { flex-direction: column; gap: 12px; }
    .navbar__menu { flex-wrap: wrap; justify-content: center; gap: 16px; }
    .hero h1 { font-size: 1.5rem; }
    .hero { padding: 50px 24px; }
    .features__grid { grid-template-columns: 1fr; }
    .chart-grid { grid-template-columns: 1fr; }
    .score-card__header { flex-direction: column; align-items: flex-start; gap: 16px; }
    .score-card__comparison { flex-wrap: wrap; }
    .likert-btn { width: 40px; height: 40px; line-height: 36px; font-size: 0.9rem; }
    .likert-label { font-size: 0.6rem; }
}
