/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic Medium', 'Meiryo', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* ヘッダー */
.header {
    /* background-color: #8B7355; */
    background-color: #a1a09f;
    padding: 15px 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}
.logo-pic {
    width: 100px;
    height: auto;
}
.logo span {
    color: white;
    font-size: 18px;
    font-weight: bold;
    background-color: white;
    color: #8B7355;
    padding: 8px 16px;
    border-radius: 4px;
}

/* メインコンテンツ */
.main {
    margin-top: 70px;
    min-height: calc(100vh - 140px);
}

/* トップページ */
.top-page {
    /* background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%23D4B896" width="1200" height="800"/><rect fill="%23A0845C" x="0" y="600" width="1200" height="200"/></svg>'); */
    background-image: url(../images/background-img.webp);
    background-size: cover;
    background-position: center;
    height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content {
    max-width: 800px;
    padding: 40px; /* 上下にも余白を持たせてバランスを調整 */
    background-color: rgba(106, 88, 69, 0.9); /* 背景色（半透明の暗いゴールド） */
    border: 2px solid #B8860B; /* 枠線（暗めのゴールド） */
    border-radius: 8px; /* 角を少し丸くして柔らかい印象に */
    box-shadow: 0 4px 20px rgba(0,0,0,0.3); /* 影をつけて立体感を出す */
}

.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.start-btn {
    background-color: #B8860B; /* 背景色を枠線と同じゴールドに */
    color: white; /* 文字色を白に */
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4); /* 文字に少し影をつけて読みやすく */
}

.start-btn:hover {
    background-color: #A0740A; /* マウスを乗せると少し濃い色に */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* 診断フォーム */
.diagnosis-form {
    padding: 40px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

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

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e3d4c1;
    /* background-color: #D4B896; */
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #8B7355;
    /* background-color: #F4B942; */
    width: 0%;
    transition: width 0.3s ease;
}

.question-container {
    background-color: white;
    /* border-radius: 12px; */
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}

.question-left {
    display: flex;
    flex-direction: column;
}

.question-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 30px;
    color: #333;
}

.choices-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.choice-item {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.choice-item:hover {
    transform: translateY(-2px);
}

.choice-input {
    display: none;
}

.choice-label {
    display: block;
    background-color: #f8f8f8;
    border: 2px solid #e0e0e0;
    /* border-radius: 12px; */
    height: 100%;
    padding: 7px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.choice-input:checked + .choice-label {
    border-color: #F4B942;
    background-color: #FFF8E7;
}

.choice-letter {
    position: absolute;
    top: -1px;
    left: -1px;
    /* background-color: #F4B942; */
    background-color: #8B7355;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 0 0 12px 0;
    /* border-radius: 12px 0 12px 0; */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.choice-image {
    width: 100%;
    height: 170px;
    background-color: #C4C4C4;
    /* border-radius: 8px; */
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.9rem;
    object-fit: cover; /* この行を追加 */
}

.choice-text {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.4;
}

/* ナビゲーションボタン */
.navigation-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    grid-column: 1 / -1;
}

.nav-btn {
    padding: 12px 30px;
    /* border: 2px solid #8B7355; */
    border: 1px solid #000000;
    background-color: white;
    /* color: #8B7355; */
    /* border-radius: 8px; */
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background-color: #8B7355;
    color: white;
}

.submit-btn {
    background-color: #8B7355;
    color: white;
}

.submit-btn:hover {
    background-color: #6D5A42;
}

/* フッター */
.footer {
    /* background-color: #1a1a1a; */
    background-color: #a1a09f;
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-top: auto;
}

.footer-content {
    font-size: 1rem;
}

/* ユーティリティクラス */
.hidden {
    display: none !important;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .start-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .diagnosis-form {
        padding: 20px 15px;
    }
    
    .question-container {
        padding: 25px 20px;
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .question-title {
        font-size: 1.4rem;
        margin-bottom: 25px;
    }
    
    .choices-container {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .choice-label {
        min-height: 150px;
        padding: 15px;
    }
    
    .choice-image {
        height: 100px;
        margin: 15px 0;
    }
    
    .choice-text {
        font-size: 0.9rem;
    }
    
    .navigation-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
    }
    
    .nav-btn {
        flex: 1;
        max-width: 120px;
        padding: 15px 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 12px 15px;
    }
    
    .logo span {
        font-size: 16px;
        padding: 6px 12px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .question-container {
        padding: 20px 15px;
    }
    
    .question-title {
        font-size: 1.2rem;
    }
    
    .choice-letter {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

