/* リセットとベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    padding: 40px 20px;
    color: #333;
    font-size: 16px;
}

/* WordPressページテンプレート用 */
body.page-template-page-miroku,
body.page-template-page-miroku-admin {
    background: #f5f7fa;
}

/* WordPress固有の要素を非表示 */
.page-template-page-miroku .site-title,
.page-template-page-miroku .site-description,
.page-template-page-miroku-admin .site-title,
.page-template-page-miroku-admin .site-description {
    display: none;
}

.container,
.miroku-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* ヘッダー */
header,
.miroku-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 40px;
    text-align: center;
}

header h1,
.miroku-title {
    font-size: 1.8rem; /* モバイルベース */
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

header h1 i {
    margin-right: 20px;
}

.subtitle,
.miroku-subtitle {
    font-size: 1rem; /* モバイルベース */
    font-weight: 400;
    opacity: 0.95;
}

/* メインコンテンツ */
main,
.site-main {
    padding: 60px 40px;
}

.section {
    margin-bottom: 60px;
}

.section h2 {
    font-size: 1.5rem; /* モバイルベース */
    font-weight: 700;
    color: #667eea;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section h2 i {
    font-size: 1.5rem; /* モバイルベース */
}

.hidden {
    display: none;
}

/* プログレスバー */
.progress-bar,
.progress-bar-container {
    width: 100%;
    height: 16px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-fill,
#progressBar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
    width: 0%;
}

.progress-container {
    margin-bottom: 40px;
}

.progress-info {
    margin-bottom: 15px;
}

#progressText {
    font-size: 0.9rem; /* モバイルベース */
    font-weight: 600;
    color: #667eea;
    text-align: center;
}

.progress-text {
    text-align: center;
    color: #666;
    font-size: 0.9rem; /* モバイルベース */
    margin-bottom: 30px;
    font-weight: 600;
}

/* 質問カード */
.category-section {
    margin-bottom: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 5px solid #667eea;
}

.category-title {
    font-size: 1.1rem; /* モバイルベース */
    font-weight: 700;
    color: #667eea;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
}

.category-title i {
    margin-right: 12px;
}

.question-item {
    background: white;
    padding: 30px;
    margin-bottom: 25px;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.question-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.question-item:last-child {
    margin-bottom: 0;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.question-text {
    font-size: 0.9rem; /* モバイルベース */
    font-weight: 500;
    color: #333;
    line-height: 1.8;
    flex: 1;
}

.btn-explanation {
    background: #f0f4f8;
    border: 2px solid #d1d9e0;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.75rem; /* モバイルベース */
    color: #667eea;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-explanation:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-explanation i {
    font-size: 0.75rem; /* モバイルベース */
}

.score-explanation {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4f8 100%);
    border-left: 6px solid #667eea;
    padding: 30px;
    margin: 20px 0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.score-explanation.hidden {
    display: none;
}

.score-item {
    margin-bottom: 15px;
    padding: 20px 25px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    line-height: 1.8;
    transition: transform 0.2s ease;
    font-size: 1.8rem;
}

.score-item {
    font-size: 0.8rem; /* モバイルベース */
}

.score-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

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

.score-label {
    font-weight: 700;
    color: #667eea;
    font-size: 0.9rem; /* モバイルベース */
    margin-right: 12px;
    display: inline-block;
    min-width: 90px;
}

.rating-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.rating-label {
    font-size: 0.8rem; /* モバイルベース */
    color: #666;
    min-width: 160px;
    font-weight: 600;
}

.rating-buttons {
    display: flex;
    gap: 8px;
}

.rating-btn {
    width: 45px; /* モバイルベース */
    height: 45px; /* モバイルベース */
    border: 3px solid #ddd;
    background: white;
    border-radius: 12px;
    font-size: 1rem; /* モバイルベース */
    font-weight: 700;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rating-btn:hover {
    border-color: #667eea;
    background: #f0f4ff;
    transform: scale(1.05);
}

.rating-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    transform: scale(1.1);
}

/* ボタン */
.button-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 20px; /* モバイルベース */
    font-size: 0.9rem; /* モバイルベース */
    font-weight: 600;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

.btn i {
    font-size: 1rem; /* モバイルベース */
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.5);
}

.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 30px 0;
}

.btn-youtube {
    background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
    text-decoration: none;
    border: none;
}

.btn-youtube:hover {
    background: linear-gradient(135deg, #CC0000 0%, #990000 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.5);
    text-decoration: none;
}

/* チャート */
.chart-container {
    position: relative;
    height: 650px;
    margin: 40px auto;
    max-width: 900px;
}

/* スコアカード */
.scores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.score-card {
    background: white;
    padding: 12px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid #667eea;
}

.score-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.score-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 8px;
}

.score-value {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 3px;
}

.score-label {
    font-size: 0.95rem;
    color: #666;
}

/* 総合評価 */
.total-score {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.total-score h3 {
    font-size: 1rem; /* モバイルベース */
    font-weight: 600;
    margin-bottom: 20px;
}

.total-score-value {
    font-size: 2.5rem; /* モバイルベース */
    font-weight: 700;
    margin-bottom: 10px;
}

.total-score-label {
    font-size: 0.9rem; /* モバイルベース */
    opacity: 0.9;
}

/* ユーザー情報入力フォーム */
.form-description {
    text-align: center;
    color: #555;
    margin-bottom: 40px;
    font-size: 0.9rem; /* モバイルベース */
    line-height: 1.8;
    font-weight: 500;
}

.user-form {
    max-width: 600px;
    margin: 0 auto;
    background: #f8f9fa;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 0.9rem; /* モバイルベース */
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.form-group label i {
    margin-right: 8px;
    color: #667eea;
}

.required {
    color: #dc3545;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-input,
.form-select {
    width: 100%;
    padding: 10px 12px; /* モバイルベース */
    font-size: 0.9rem; /* モバイルベース */
    border: 2px solid #ddd;
    border-radius: 12px;
    transition: border-color 0.3s ease;
    font-family: 'Noto Sans JP', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input::placeholder {
    color: #999;
}

/* ユーザー情報表示 */
.user-info-display {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    border-left: 5px solid #667eea;
}

.user-info-display p {
    margin: 8px 0;
    font-size: 1rem;
    color: #333;
}

.user-info-display strong {
    color: #667eea;
    margin-right: 10px;
}

.user-info-display i {
    margin-right: 8px;
}

/* 結果ヘッダー */
.result-header {
    margin-bottom: 30px;
}

.result-header h2 {
    margin-bottom: 15px;
}

.user-info-result {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px 25px;
    border-radius: 10px;
    border-left: 5px solid #667eea;
}

.user-info-result p {
    margin: 10px 0;
    font-size: 0.9rem; /* モバイルベース */
    color: #333;
}

.user-info-result i {
    margin-right: 8px;
    color: #667eea;
}

/* アドバイスセクション */
.advice-section {
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 5px solid #667eea;
}

.advice-section h3 {
    font-size: 1.2rem; /* モバイルベース */
    font-weight: 600;
    color: #667eea;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.advice-section h3 i {
    margin-right: 12px;
}

.advice-item {
    background: white;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.advice-item:last-child {
    margin-bottom: 0;
}

.advice-category {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.advice-category-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: bold;
    color: white;
    font-size: 0.8rem; /* モバイルベース */
}

.advice-category-name {
    font-size: 0.9rem; /* モバイルベース */
    font-weight: 600;
}

.advice-score {
    margin-left: auto;
    font-size: 1rem; /* モバイルベース */
    font-weight: 700;
    color: #333;
}

.advice-level {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: 10px;
}

.level-excellent {
    background: #28a745;
    color: white;
}

.level-good {
    background: #17a2b8;
    color: white;
}

.level-average {
    background: #ffc107;
    color: #333;
}

.level-needs-improvement {
    background: #fd7e14;
    color: white;
}

.level-critical {
    background: #dc3545;
    color: white;
}

.advice-content {
    line-height: 1.8;
    color: #555;
    font-size: 1rem;
}

.advice-content p {
    margin-bottom: 10px;
}

.advice-content strong {
    color: #333;
    font-weight: 600;
}

.overall-advice {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.overall-advice h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.overall-advice h4 i {
    margin-right: 10px;
}

.overall-advice p {
    line-height: 1.8;
    font-size: 1rem;
    opacity: 0.95;
}

/* ProsWork相談メッセージ */
.consultation-message {
    background: #f8f9fa;
    border: 2px solid #667eea;
    border-radius: 15px;
    padding: 30px;
    margin-top: 20px;
}

.consultation-message h3 {
    color: #667eea;
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.consultation-message h3 i {
    font-size: 1.8rem;
}

.consultation-message p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: #333;
}

.consultation-message ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.consultation-message ul li {
    padding: 12px 15px;
    margin-bottom: 10px;
    background: white;
    border-left: 4px solid #667eea;
    border-radius: 8px;
    line-height: 1.6;
}

.consultation-message ul li strong {
    color: #667eea;
    font-weight: 600;
}

.consultation-message .urgent-note {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    color: #856404;
    font-weight: 600;
}

.consultation-message .urgent-note i {
    color: #ffc107;
    margin-right: 8px;
}

/* ProsWorkの特徴セクション */
.proswork-features {
    margin-top: 30px;
    padding: 25px;
    background: white;
    border-radius: 10px;
}

.proswork-features h4 {
    color: #667eea;
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature-item {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.feature-item i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 15px;
}

.feature-item h5 {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.feature-item p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.feature-item a {
    color: #667eea;
    text-decoration: underline;
}

.feature-item a:hover {
    color: #764ba2;
}

/* 相談CTA */
.consultation-cta {
    text-align: center;
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: white;
}

.consultation-cta p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.consultation-cta button {
    background: white;
    color: #667eea;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.consultation-cta button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.consultation-cta button i {
    margin-right: 8px;
}

/* ベンチマーク比較セクション */
.benchmark-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin-top: 30px;
    border: 2px solid #e0e0e0;
}

.benchmark-section h3 {
    color: #667eea;
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.benchmark-info {
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.benchmark-info p {
    margin: 0;
    font-size: 1rem;
    color: #333;
}

.benchmark-info strong {
    color: #667eea;
    margin-right: 5px;
}

.benchmark-charts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.benchmark-chart-container {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.benchmark-chart-container h4 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-align: center;
}

.benchmark-chart-container canvas {
    max-height: 400px;
}

.benchmark-stats {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.benchmark-stats h4 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-align: center;
}

.benchmark-stat-item {
    padding: 15px;
    margin-bottom: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.benchmark-stat-item.total-stat {
    border-left: 4px solid #764ba2;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    font-weight: 600;
}

.stat-category {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.stat-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.stat-value {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.stat-value label {
    font-size: 0.85rem;
    color: #666;
    font-weight: normal;
}

.stat-value span {
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
}

.value-highlight {
    color: #667eea !important;
    font-size: 1.3rem !important;
}

.value-deviation {
    color: #764ba2 !important;
}

.stat-rank {
    grid-column: span 1;
    text-align: center;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.95rem;
}

.rank-top {
    background: #d4edda;
    color: #155724;
}

.rank-above {
    background: #d1ecf1;
    color: #0c5460;
}

.rank-below {
    background: #fff3cd;
    color: #856404;
}

.rank-bottom {
    background: #f8d7da;
    color: #721c24;
}

.stat-range {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

.stat-range small {
    color: #666;
    font-size: 0.85rem;
}

/* フォームヘルプテキスト */
.form-help {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

.form-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: white;
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: #667eea;
}

.form-select:hover {
    border-color: #999;
}

/* モーダル共通 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 2px solid #e9ecef;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px 15px 0 0;
}

.modal-header h2 {
    font-size: 1.5rem;
    color: #667eea;
    margin: 0;
}

.modal-header h2 i {
    margin-right: 10px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.05);
}

.modal-body {
    padding: 30px;
}

/* 個別相談フォーム */
.consultation-info {
    background: #e7f3ff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 4px solid #667eea;
}

.consultation-info p {
    margin: 8px 0;
    line-height: 1.6;
}

.consultation-info strong {
    color: #667eea;
}

.user-info-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.user-info-summary h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.user-info-summary h3 i {
    margin-right: 8px;
    color: #667eea;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-label {
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
}

.info-value {
    color: #333;
    font-size: 0.9rem;
}

.consultation-form .form-group {
    margin-bottom: 25px;
}

.consultation-form label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.consultation-form label i {
    margin-right: 8px;
    color: #667eea;
}

.consultation-form textarea,
.consultation-form input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s ease;
    font-family: 'Noto Sans JP', sans-serif;
}

.consultation-form textarea:focus,
.consultation-form input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.consultation-form textarea {
    resize: vertical;
    min-height: 120px;
}

.consultation-form input[type="email"],
.consultation-form input[readonly] {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #f8f9fa;
}

.diagnosis-result-summary {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4f8 100%);
    border: 2px solid #667eea;
    border-radius: 8px;
    padding: 15px;
}

.diagnosis-scores {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.diagnosis-score-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: white;
    border-radius: 5px;
    font-size: 0.9rem;
}

.diagnosis-score-item.total {
    grid-column: 1 / -1;
    background: #667eea;
    color: white;
    font-weight: 700;
    font-size: 1rem;
}

.diagnosis-score-item .score-category {
    font-weight: 500;
    color: #555;
}

.diagnosis-score-item.total .score-category {
    color: white;
}

.diagnosis-score-item .score-value {
    font-weight: 700;
    color: #667eea;
}

.diagnosis-score-item.total .score-value {
    color: white;
}

.no-data {
    text-align: center;
    color: #999;
    padding: 20px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #667eea;
}

.checkbox-label span {
    flex: 1;
}

.checkbox-label i {
    margin-right: 5px;
    color: #667eea;
}

.form-help {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

.required {
    color: #dc3545;
    font-weight: bold;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
}

/* 相談フォームモーダル */
.consultation-modal {
    max-width: 700px;
}

.consultation-info {
    background: #f0f4ff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 4px solid #667eea;
}

.consultation-info p {
    margin: 8px 0;
    line-height: 1.6;
}

.user-info-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.user-info-summary h3 {
    font-size: 1.1rem;
    color: #667eea;
    margin-bottom: 15px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-label {
    font-weight: 600;
    color: #666;
    white-space: nowrap;
}

.info-value {
    color: #333;
}

.consultation-form .form-group {
    margin-bottom: 25px;
}

.consultation-form label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.consultation-form label i {
    margin-right: 8px;
    color: #667eea;
}

.consultation-form textarea,
.consultation-form input[type="text"],
.consultation-form input[type="datetime-local"] {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s ease;
    font-family: 'Noto Sans JP', sans-serif;
}

.consultation-form textarea:focus,
.consultation-form input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.consultation-form textarea {
    resize: vertical;
    min-height: 120px;
}

.datetime-preferences {
    display: grid;
    gap: 15px;
}

.datetime-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.datetime-item label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 0;
}

.checkbox-group {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-weight: normal !important;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-label span {
    flex: 1;
    line-height: 1.6;
}

.checkbox-label a {
    color: #667eea;
    text-decoration: underline;
}

.checkbox-label a:hover {
    color: #764ba2;
}

.form-help {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #999;
    line-height: 1.4;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

.btn-large {
    font-size: 1.1rem;
    padding: 15px 35px;
}

/* モーダル共通スタイル */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 2px solid #e9ecef;
}

.modal-header h2 {
    font-size: 1.5rem;
    color: #667eea;
    margin: 0;
}

.modal-header i {
    margin-right: 10px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 30px;
}

/* フッター */
footer {
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* レスポンシブ - スマートフォン対応 */
@media (max-width: 768px) {
    /* 基本設定 */
    body {
        padding: 20px 10px !important;
        font-size: 14px !important;
    }

    /* ヘッダー */
    header,
    .miroku-header {
        padding: 30px 20px !important;
    }

    header h1,
    .miroku-title {
        font-size: 1.8rem !important; /* 4rem → 1.8rem */
    }

    .subtitle,
    .miroku-subtitle {
        font-size: 1rem !important; /* 2rem → 1rem */
    }

    /* メインコンテンツ */
    main,
    .site-main {
        padding: 20px 15px !important; /* 60px → 20px */
    }

    /* セクション見出し */
    .section h2 {
        font-size: 1.5rem !important; /* 3rem → 1.5rem */
    }

    /* フォーム説明文 */
    .form-description {
        font-size: 0.9rem !important; /* 2rem → 0.9rem */
        margin-bottom: 20px !important;
    }

    /* プログレスバー */
    #progressText {
        font-size: 0.9rem !important; /* 2rem → 0.9rem */
    }

    .progress-bar-container {
        height: 8px !important; /* 16px → 8px */
    }

    /* カテゴリーセクション */
    .category-section {
        padding: 15px !important;
        margin-bottom: 20px !important;
    }

    .category-title {
        font-size: 1.2rem !important;
        margin-bottom: 15px !important;
        font-weight: 700 !important;
    }

    .category-description {
        font-size: 0.85rem !important;
        line-height: 1.6 !important;
        margin-bottom: 15px !important;
    }

    /* 質問 */
    .question-item {
        padding: 15px !important; /* 30px → 15px */
    }

    /* 質問ヘッダー（モバイル用レイアウト） */
    .question-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .question-text {
        font-size: 0.9rem !important; /* 2rem → 0.9rem */
        line-height: 1.6 !important;
        margin-bottom: 0 !important;
    }

    /* 点数説明ボタン（モバイル用） */
    .btn-explanation {
        font-size: 0.8rem !important; /* 1.6rem → 0.8rem */
        padding: 8px 16px !important;
        width: 100% !important;
        justify-content: center !important;
        margin-top: 5px !important;
    }

    .btn-explanation i {
        font-size: 0.8rem !important;
    }

    /* 評価ボタン（モバイル用改善） */
    .rating-container {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        margin-top: 15px !important;
    }

    .rating-label {
        font-size: 0.85rem !important;
        font-weight: 600 !important;
        color: #667eea !important;
        text-align: center !important;
        margin-bottom: 5px !important;
    }

    .rating-buttons {
        width: 100% !important;
        display: flex !important;
        justify-content: space-around !important;
        gap: 8px !important;
    }

    .rating-btn {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.1rem !important;
        flex: 1 !important;
        max-width: 60px !important;
    }

    /* 点数説明（モバイル用改善） */
    .rating-explanation {
        padding: 12px !important;
        margin: 10px 0 !important;
        background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%) !important;
        border-radius: 10px !important;
        border: 2px solid #667eea !important;
    }

    .rating-explanation h4 {
        font-size: 1rem !important;
        margin-bottom: 10px !important;
        color: #667eea !important;
        font-weight: 700 !important;
    }

    .rating-explanation ul {
        margin: 0 !important;
        padding-left: 20px !important;
    }

    .rating-explanation ul li {
        font-size: 0.8rem !important;
        padding: 6px 0 !important;
        line-height: 1.5 !important;
        color: #333 !important;
    }

    .rating-explanation ul li strong {
        color: #667eea !important;
        font-weight: 700 !important;
    }

    /* ユーザー情報フォーム */
    .user-form {
        padding: 20px 15px !important; /* 40px → 20px */
    }

    .form-group label {
        font-size: 0.9rem !important; /* 2rem → 0.9rem */
    }

    .form-group input,
    .form-group select,
    .form-input,
    .form-select {
        padding: 10px 12px !important; /* 18px → 10px */
        font-size: 0.9rem !important; /* 1.8rem → 0.9rem */
    }

    /* ボタン */
    .btn {
        padding: 10px 20px !important; /* 20px 50px → 10px 20px */
        font-size: 0.9rem !important; /* 2rem → 0.9rem */
    }

    .button-group {
        gap: 10px;
    }

    /* 結果画面 */
    .chart-container {
        height: 350px; /* 600px → 350px */
    }

    .total-score-display {
        padding: 20px;
    }

    .total-score-label {
        font-size: 1rem;
    }

    .total-score-value {
        font-size: 2.5rem; /* 8rem → 2.5rem */
    }

    .score-level {
        font-size: 1rem;
    }

    /* スコアカード */
    .scores-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .score-card {
        padding: 12px;
    }

    .score-card h3 {
        font-size: 0.9rem;
    }

    .score-card .score {
        font-size: 1.5rem;
    }

    /* アドバイス */
    .advice-section h3 {
        font-size: 1.2rem;
    }

    .advice-category {
        flex-wrap: wrap;
    }

    .advice-category h4 {
        font-size: 1rem;
    }

    .advice-score {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
        font-size: 0.9rem;
    }

    .advice-content {
        font-size: 0.85rem;
    }

    /* Contact Form 7 */
    #cf7-consultation-form h3 {
        font-size: 1.3rem !important; /* 2.5rem → 1.3rem */
    }

    #cf7-consultation-form p {
        font-size: 0.9rem !important; /* 1.6rem → 0.9rem */
    }

    #cf7-consultation-form label {
        font-size: 0.9rem;
    }

    #cf7-consultation-form input,
    #cf7-consultation-form select,
    #cf7-consultation-form textarea {
        font-size: 0.9rem;
        padding: 10px;
    }

    #cf7-consultation-form .btn-submit {
        font-size: 0.9rem;
        padding: 12px 20px;
    }

    /* モーダル */
    .modal-content {
        max-height: 85vh;
        margin: 20px 10px;
    }

    .modal-header h3 {
        font-size: 1.2rem;
    }

    .modal-body {
        padding: 15px;
        font-size: 0.85rem;
    }

    /* フォームアクション */
    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    /* グリッド */
    .info-grid {
        grid-template-columns: 1fr;
    }

    /* ベンチマーク */
    .benchmark-section h3 {
        font-size: 1.2rem;
    }

    .benchmark-stats {
        font-size: 0.85rem;
    }
}

/* ============================================
   デスクトップ用スタイル（大画面）
   ============================================ */
@media (min-width: 769px) {
    /* ヘッダー */
    header h1,
    .miroku-title {
        font-size: 2.8rem; /* 4rem × 70% = 2.8rem */
    }

    .subtitle,
    .miroku-subtitle {
        font-size: 1.4rem; /* 2rem × 70% = 1.4rem */
    }

    /* セクション見出し */
    .section h2 {
        font-size: 2.1rem; /* 3rem × 70% = 2.1rem */
    }

    .section h2 i {
        font-size: 2.1rem; /* 3rem × 70% = 2.1rem */
    }

    /* プログレスバー */
    #progressText {
        font-size: 1.4rem; /* 2rem × 70% = 1.4rem */
    }

    .progress-text {
        font-size: 1.4rem; /* 2rem × 70% = 1.4rem */
    }

    /* カテゴリータイトル */
    .category-title {
        font-size: 2.1rem; /* 3rem × 70% = 2.1rem */
    }

    /* 質問文 */
    .question-text {
        font-size: 1.4rem; /* 2rem × 70% = 1.4rem */
    }

    /* 点数説明ボタン */
    .btn-explanation {
        font-size: 1.12rem; /* 1.6rem × 70% = 1.12rem */
    }

    .btn-explanation i {
        font-size: 1.12rem; /* 1.6rem × 70% = 1.12rem */
    }

    /* スコアラベル */
    .score-label {
        font-size: 1.4rem; /* 2rem × 70% = 1.4rem */
    }

    .score-item {
        font-size: 1.26rem; /* 1.8rem × 70% = 1.26rem */
    }

    /* 評価ボタン */
    .rating-label {
        font-size: 1.26rem; /* 1.8rem × 70% = 1.26rem */
    }

    .rating-btn {
        width: 56px; /* 80px × 70% = 56px */
        height: 56px; /* 80px × 70% = 56px */
        font-size: 1.4rem; /* 2rem × 70% = 1.4rem */
    }

    /* ボタン */
    .btn {
        padding: 14px 35px; /* 20px × 70% = 14px, 50px × 70% = 35px */
        font-size: 1.4rem; /* 2rem × 70% = 1.4rem */
    }

    .btn i {
        font-size: 1.54rem; /* 2.2rem × 70% = 1.54rem */
    }

    /* 総合スコア */
    .total-score h3 {
        font-size: 1.05rem; /* 1.5rem × 70% = 1.05rem */
    }

    .total-score-value {
        font-size: 2.8rem; /* 4rem × 70% = 2.8rem */
    }

    .total-score-label {
        font-size: 0.84rem; /* 1.2rem × 70% = 0.84rem */
    }

    /* フォーム説明 */
    .form-description {
        font-size: 1.4rem; /* 2rem × 70% = 1.4rem */
    }

    /* フォームラベル */
    .form-group label {
        font-size: 1.4rem; /* 2rem × 70% = 1.4rem */
    }

    /* フォーム入力 */
    .form-group input,
    .form-group select,
    .form-input,
    .form-select {
        padding: 13px 14px; /* 18px × 70% = 13px, 20px × 70% = 14px */
        font-size: 1.26rem; /* 1.8rem × 70% = 1.26rem */
    }

    /* ユーザー情報表示 */
    .user-info-result p {
        font-size: 1.26rem; /* 1.8rem × 70% = 1.26rem */
    }

    /* アドバイスセクション */
    .advice-section h3 {
        font-size: 1.05rem; /* 1.5rem × 70% = 1.05rem */
    }

    .advice-category-icon {
        font-size: 0.77rem; /* 1.1rem × 70% = 0.77rem */
    }

    .advice-category-name {
        font-size: 0.84rem; /* 1.2rem × 70% = 0.84rem */
    }

    .advice-score {
        font-size: 1.05rem; /* 1.5rem × 70% = 1.05rem */
    }
}

/* 超小型スマートフォン対応 */
@media (max-width: 480px) {
    header h1,
    .miroku-title {
        font-size: 1.5rem;
    }

    .subtitle,
    .miroku-subtitle {
        font-size: 0.85rem;
    }

    .section h2 {
        font-size: 1.3rem;
    }

    .question-text {
        font-size: 0.85rem;
    }

    .rating-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .btn {
        font-size: 0.85rem;
        padding: 8px 16px;
    }

    .total-score-value {
        font-size: 2rem;
    }
}

/* ============================================
   カテゴリーメモ欄
   ============================================ */
.category-memo-section {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4f8 100%);
    border-radius: 12px;
    border-left: 5px solid #667eea;
}

.category-memo-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 12px;
}

.category-memo-label i {
    margin-right: 8px;
}

.category-memo-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px 15px;
    font-size: 0.9rem;
    font-family: 'Noto Sans JP', sans-serif;
    border: 2px solid #d1d9e0;
    border-radius: 8px;
    resize: vertical;
    transition: all 0.3s ease;
    background: white;
}

.category-memo-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.category-memo-textarea::placeholder {
    color: #999;
    font-style: italic;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .category-memo-section {
        margin-top: 20px;
        padding: 15px;
    }

    .category-memo-label {
        font-size: 0.9rem;
    }

    .category-memo-textarea {
        font-size: 0.85rem;
        padding: 10px 12px;
        min-height: 80px;
    }
}

/* デスクトップ対応 */
@media (min-width: 769px) {
    .category-memo-section {
        margin-top: 35px;
        padding: 25px;
    }

    .category-memo-label {
        font-size: 1.4rem; /* 2rem × 70% = 1.4rem */
    }

    .category-memo-textarea {
        font-size: 1.26rem; /* 1.8rem × 70% = 1.26rem */
        padding: 13px 14px;
        min-height: 120px;
    }
}
