/* index.html 用スタイル */

/* ヘッダー */
#header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 4%;
    background: linear-gradient(135deg, #fff8f0 0%, #ffe8d6 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

#header .site-title {
    width: 180px;
    line-height: 1;
}

#header .site-title img {
    width: 100%;
}

/* ナビゲーション */
nav {
    font-size: 18px;
    font-weight: 600;
}

nav ul {
    display: flex;
    gap: 30px;
}

nav a {
    color: #383e45;
    position: relative;
    padding-bottom: 5px;
}

nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, #ff6b9d, #ffa500);
    transition: width 0.3s ease;
}

nav a:hover:after {
    width: 100%;
}

/* メインビジュアル */
#mainvisual {
    position: relative;
    margin-bottom: 100px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

#mainvisual img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

#mainvisual .hero {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 50%;
    left: 60%;
    transform: translateY(-50%);
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(-20%);
    }
    to {
        opacity: 1;
        transform: translateY(-50%);
    }
}

/* セクションタイトル */
.section-title {
    display: inline-block;
    font-size: 2.2rem;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b9d, #ffa500, #ff6b9d);
    border-radius: 2px;
}

/* ファミリーセクション */
#familydog {
    background: white;
    padding: 60px 4%;
    border-radius: 12px;
    margin-bottom: 80px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

#familydog .content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

#familydog img {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

#familydog img:hover {
    transform: scale(1.05);
}

#familydog .text {
    text-align: left;
    flex: 1;
}

#familydog .content-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #ff6b9d;
}

#familydog p {
    line-height: 1.8;
    color: #666;
    font-size: 1rem;
}

/* 犬フォトセクション */
#dogphoto {
    padding: 60px 4%;
}

#dogphoto ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

#dogphoto li {
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

#dogphoto li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

#dogphoto li img {
    width: 200px;
    height: 200px;
    margin: 0 auto 15px;
    border-radius: 50%;
    object-fit: cover;
}

.content-title {
    font-size: 1.1rem;
    color: #ff6b9d;
    margin-bottom: 10px;
}

#dogphoto p {
    color: #666;
    font-size: 0.95rem;
}

/* 今日の写真セクション */
#oneday {
    padding: 60px 4%;
    background: white;
    border-radius: 12px;
    margin-bottom: 80px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

#oneday ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

#oneday li {
    text-align: center;
    transition: transform 0.3s ease;
}

#oneday li:hover {
    transform: scale(1.03);
}

#oneday img {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

#oneday p {
    font-size: 1rem;
    margin-top: 12px;
    color: #666;
    font-weight: 500;
}

/* クイズセクション */
#dogquestion {
    background: linear-gradient(135deg, #fff0f6 0%, #ffe8d6 100%);
    padding: 60px 4%;
    border-radius: 12px;
    margin: 80px 4% 80px;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.quiz-question {
    font-size: 1.5rem;
    font-weight: 600;
    color: #383e45;
    margin-bottom: 30px;
    line-height: 1.6;
}

.quiz-choices {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.quiz-choice {
    padding: 12px 20px;
    font-size: 1rem;
    min-width: 160px;
    height: auto;
    border: 2px solid #ff6b9d;
    background: white;
    color: #383e45;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-choice:hover:not(:disabled) {
    background: #ff6b9d;
    color: white;
    transform: translateY(-2px);
}

.quiz-choice:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.quiz-feedback {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    min-height: 30px;
}

.quiz-next, .quiz-back {
    padding: 12px 24px;
    font-size: 1rem;
    min-width: 140px;
    background: linear-gradient(135deg, #ff6b9d, #ffa500);
    color: white;
    border-radius: 8px;
    margin: 8px;
    font-weight: 600;
}

.quiz-next:hover, .quiz-back:hover {
    box-shadow: 0 6px 16px rgba(255, 107, 157, 0.4);
}

.quiz-result {
    text-align: center;
}

.quiz-result img {
    max-width: 300px;
    margin: 20px auto;
}

/* レスポンシブ */
@media screen and (max-width: 768px) {
    #header {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        gap: 15px;
    }
    
    #mainvisual img {
        height: 350px;
    }
    
    #mainvisual .hero {
        font-size: 20px;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    #familydog .content {
        flex-direction: column;
        gap: 30px;
    }
    
    #familydog .text {
        text-align: center;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
}

@media screen and (max-width: 600px) {
    #header {
        padding: 15px 4%;
        margin-bottom: 20px;
    }
    
    #header .site-title {
        width: 140px;
    }
    
    nav {
        font-size: 14px;
    }
    
    nav ul {
        gap: 15px;
    }
    
    #mainvisual {
        margin-bottom: 50px;
    }
    
    #mainvisual img {
        height: 280px;
    }
    
    #mainvisual .hero {
        font-size: 16px;
    }
    
    #dogphoto ul, #oneday ul {
        grid-template-columns: 1fr;
    }
    
    #dogphoto li img, #oneday img {
        width: 150px;
        height: 150px;
    }
    
    .quiz-choice {
        min-width: 120px;
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .quiz-question {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.3rem;
        margin-bottom: 30px;
    }
}
