:root {
    /* 男性版カラー設定：水色・青系 */
    --primary-color: #00C2FF; /* 明るい水色 */
    --secondary-color: #007AFF; /* 濃い青 */
    --gradient-start: #00C2FF;
    --gradient-end: #007AFF;
    --bg-color: #F9F9F9;
    --box-bg-color: #F0F9FF; /* ボックスの背景色 */
    --text-color: #333333;
    --border-radius: 30px;
    /* 新規ボタンカラー (女性版と共通) */
    --new-button-color: #be0037;
}
body {
    font-family: 'Noto Sans JP', sans-serif;
    /* スマホ最適化: 全体のフォントサイズを調整 */
    font-size: 14px;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}
header {
    text-align: center;
    padding: 20px 0 0;
    margin-bottom: 40px;
}

/* サイトのメインタイトル */
.site-main-title {
	font-size: 2.4rem;
	font-weight: 800;
	color: var(--secondary-color);
	margin: 0 0 10px 0;
	line-height: 1.4;
}

/* 診断中...のステータス表示 */
#page-status {
    font-size: 16px; /* スマホ最適化 */
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

/* プログレスバー */
.progress-container {
    width: 80%;
    margin: 0 auto;
    position: relative;
}
.progress-track {
    width: 100%;
    height: 4px;
    background-color: #E0E0E0;
    border-radius: 2px;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    width: 0%;
    border-radius: 2px;
    position: relative;
    transition: width 0.4s ease;
}
.progress-fill::after {
    content: '';
    position: absolute;
    right: -8px;
    top: -6px;
    width: 16px;
    height: 16px;
    background-color: var(--gradient-end);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.progress-text {
	text-align: center;
	font-size: 16px;
	color: #fff;
	margin-top: 10px;
}

/* 質問・選択肢 (デザインを踏襲) */
.question-block {
    margin-bottom: 50px;
    animation: fadeIn 0.5s ease;
}
.question-title {
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.8);
}
.options-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.option-item {
    margin-bottom: 15px;
    position: relative;
}
.option-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}
.option-label {
	display: flex;
	align-items: center;
	padding: 15px 10px 15px 15px;
	background-color: #fff;
	border: 1px solid #DDDDDD;
	border-radius: var(--border-radius);
	cursor: pointer;
	transition: all 0.2s ease;
	font-size: 14px;
	font-weight: 500;
	box-shadow: 0 4px 10px rgba(0,0,0,0.03);
	text-align: left;
}
.check-icon {
	width: 20px;
	height: 20px;
	border: 1px solid #ccc;
	border-radius: 50%;
	margin-right: 10px;
	flex-shrink: 0;
	position: relative;
}
/* 選択時のスタイル (水色) */
.option-item input[type="radio"]:checked + .option-label {
    border-color: var(--primary-color);
    background-color: #E6F7FF;
    box-shadow: 0 4px 15px rgba(0, 194, 255, 0.2);
    font-weight: 700;
}
.option-item input[type="radio"]:checked + .option-label .check-icon {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.option-item input[type="radio"]:checked + .option-label .check-icon::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 10px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translate(-50%, -60%) rotate(45deg);
    top: 50%;
    left: 50%;
}
.next-button-container {
    text-align: center;
    margin-top: 40px;
    padding-bottom: 40px;
}
.next-btn {
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border: none;
    padding: 18px 0;
    width: 80%;
    border-radius: var(--border-radius);
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 122, 255, 0.3);
    transition: transform 0.1s;
}
.next-btn:active {
    transform: scale(0.98);
}

/* === 結果画面のデザイン修正 (水色/青色・10行制限・ボタン) === */
#result-screen {
    display: none;
    text-align: center;
    padding-bottom: 40px;
    padding-top: 10px;
}
#result-screen h1 {
    font-size: 20px;
    color: var(--primary-color);
    margin: 0 0 30px;
    border: 1px solid var(--primary-color);
    padding: 5px 20px;
    display: inline-block;
    border-radius: 5px;
    font-weight: 700;
}
#result-title-block {
    padding: 0 20px 30px;
}
#result-title {
    font-size: 22px;
    font-weight: 900;
    color: #20c3fd;
    margin: 10px 0 5px;
    line-height: 1.4;
}
#result-title-block p {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin: 5px 0 0;
    line-height: 1.6;
}
.result-image {
	width: 80%;
	height: auto;
	border-radius: 10px;
	margin: 20px auto;
	display: block;
}
.result-content-wrapper {
    padding: 0 20px;
    margin-top: 10px;
}
.result-box {
    background-color: var(--box-bg-color);
    padding: 20px;
    border-radius: 10px;
    text-align: left;
    margin: 20px 0;
    border: 1px solid var(--primary-color);
    box-shadow: 0 5px 10px rgba(0, 122, 255, 0.1);
}
.result-box h3 {
    color: var(--secondary-color);
    font-size: 16px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 5px;
}
.result-box p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 0; 
    
    /* 10行表示の制限 */
    max-height: calc(1.8em * 10);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: pre-wrap;
}

/* Xシェアボタンの色を黒に変更 */
.share-btn {
	display: block;
	width: 90%;
	max-width: 300px;
	margin: 20px auto 15px;
	background-color: #000000;
	color: white;
	padding: 15px 0;
	border-radius: 30px;
	text-decoration: none;
	font-weight: bold;
	font-size: 16px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
	transition: transform 0.1s;
	border: 1px solid #fff;
}
.share-btn:active {
    transform: scale(0.98);
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (max-width: 768px) {
.site-main-title {
	font-size: 1.8rem;
}
}
