/* 犬紹介ページ専用CSS */

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

/* 基本スタイル */
body {
    font-family: 'Hiragino Sans', 'Noto Sans JP', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    min-height: 100vh;
}

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

/* ヘッダー */
header {
    background: linear-gradient(135deg, #ffd3e1 0%, #ffe4d6 100%);
    color: #333;
    text-align: center;
    padding: 3rem 2rem;
}

header h1 {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ナビゲーション */
.navigation {
    margin-top: 2rem;
}

.navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.navigation li {
    margin: 0;
}

.navigation a {
    color: #333;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    font-weight: 500;
    border: 2px solid transparent;
}

.navigation a:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 154, 158, 0.3);
    border-color: #ff9a9e;
}

.navigation a.active {
    background: #ff9a9e;
    color: white;
    border-color: #ff9a9e;
}

.navigation a.active:hover {
    background: #ffa8cc;
    border-color: #ffa8cc;
}

/* メインコンテンツ */
main {
    padding: 3rem 2rem;
}

/* 犬カードグリッド */
.dogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

/* 犬カード */
.dog-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid transparent;
}

.dog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* 犬画像プレースホルダー */
.dog-image {
    text-align: center;
    margin-bottom: 2rem;
}

.dog-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    margin: 0 auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.dog-placeholder:hover {
    transform: scale(1.1) rotate(10deg);
}

/* 犬種別の色分け */
.dog-placeholder.golden {
    background: linear-gradient(135deg, #f5b7c8 0%, #e8839b 100%);
}

.dog-placeholder.shiba {
    background: linear-gradient(135deg, #f4c2a1 0%, #e09c6f 100%);
}

.dog-placeholder.poodle {
    background: linear-gradient(135deg, #f5d795 0%, #e6b85c 100%);
}

/* 犬情報 */
.dog-info h2 {
    font-size: 2rem;
    color: #2d3436;
    margin-bottom: 0.5rem;
    text-align: center;
}

.breed {
    font-size: 1.1rem;
    color: #636e72;
    text-align: center;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.dog-details {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
}

.dog-details p {
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.dog-details strong {
    color: #ff9a9e;
    display: inline-block;
    width: 100px;
}

.dog-description {
    background: linear-gradient(145deg, #ffd3e1 0%, #ffe4d6 100%);
    padding: 1.5rem;
    border-radius: 15px;
    border-left: 5px solid #ff9a9e;
}

.dog-description p {
    font-size: 1rem;
    line-height: 1.8;
    color: #2d3436;
}

/* 家族セクション */
.family-section {
    background: linear-gradient(145deg, #ffd3e1 0%, #ffe4d6 50%, #fff2d1 100%);
    color: #5a5a5a;
    padding: 3rem;
    border-radius: 20px;
    margin-bottom: 3rem;
    text-align: center;
    box-shadow: 0 15px 35px rgba(255, 211, 225, 0.3);
    position: relative;
    overflow: hidden;
}

.family-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
    border-radius: 20px;
}

.family-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #8B4B8B;
    text-shadow: 0 2px 10px rgba(139, 75, 139, 0.2);
}

.family-info p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: #6B4B6B;
    text-shadow: 0 1px 5px rgba(107, 75, 107, 0.1);
}

.family-activities {
    background: rgba(255, 255, 255, 0.4);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.family-activities h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #8B4B8B;
    text-shadow: 0 1px 5px rgba(139, 75, 139, 0.2);
}

.family-activities ul {
    list-style: none;
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.family-activities li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    color: white;
}

.family-activities li:nth-child(1) {
    background: linear-gradient(135deg, #f5b7c8 0%, #e8839b 100%);
    box-shadow: 0 5px 15px rgba(245, 183, 200, 0.3);
}

.family-activities li:nth-child(2) {
    background: linear-gradient(135deg, #f4c2a1 0%, #e09c6f 100%);
    box-shadow: 0 5px 15px rgba(244, 194, 161, 0.3);
}

.family-activities li:nth-child(3) {
    background: linear-gradient(135deg, #f5d795 0%, #e6b85c 100%);
    box-shadow: 0 5px 15px rgba(245, 215, 149, 0.3);
}

.family-activities li:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ギャラリーセクション */
.gallery-section {
    text-align: center;
}

.gallery-section h2 {
    font-size: 2.5rem;
    color: #8B4B8B;
    margin-bottom: 2rem;
}

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

.photo-item {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(255, 154, 158, 0.15);
    transition: transform 0.3s ease;
}

.photo-item:hover {
    transform: translateY(-5px);
}

.photo-placeholder {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, #ffd3e1 0%, #ffe4d6 100%);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #8B4B8B;
    margin-bottom: 1rem;
}

.photo-placeholder span {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.photo-placeholder p {
    font-size: 0.9rem;
    font-weight: 500;
}

/* フッター */
footer {
    background: #2d3436;
    color: white;
    text-align: center;
    padding: 2rem;
    font-size: 1rem;
}

/* ===== アニメーション ===== */

/* キーフレーム */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* アニメーションクラス */
.animate-container {
    animation: fadeInUp 0.8s ease-out;
}

.animate-header {
    animation: slideInDown 1s ease-out 0.2s both;
}

.animate-dog-1 {
    animation: fadeInLeft 0.8s ease-out 0.6s both;
}

.animate-dog-2 {
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.animate-dog-3 {
    animation: fadeInRight 0.8s ease-out 1s both;
}

.animate-family {
    animation: fadeInScale 0.8s ease-out 1.2s both;
}

.animate-gallery {
    animation: fadeInUp 0.8s ease-out 1.4s both;
}

.animate-footer {
    animation: fadeInUp 0.8s ease-out 1.6s both;
}

/* フォトアイテムの個別アニメーション */
.photo-item {
    opacity: 0;
    animation: bounceIn 0.6s ease-out both;
}

.photo-item:nth-child(1) { animation-delay: 1.6s; }
.photo-item:nth-child(2) { animation-delay: 1.7s; }
.photo-item:nth-child(3) { animation-delay: 1.8s; }
.photo-item:nth-child(4) { animation-delay: 1.9s; }

/* 家族活動リストのアニメーション */
.family-activities li {
    opacity: 0;
    animation: fadeInLeft 0.5s ease-out both;
}

.family-activities li:nth-child(1) { animation-delay: 1.4s; }
.family-activities li:nth-child(2) { animation-delay: 1.5s; }
.family-activities li:nth-child(3) { animation-delay: 1.6s; }
.family-activities li:nth-child(4) { animation-delay: 1.7s; }
.family-activities li:nth-child(5) { animation-delay: 1.8s; }

/* 初期状態 */
.animate-header,
.animate-dog-1,
.animate-dog-2,
.animate-dog-3,
.animate-family,
.animate-gallery,
.animate-footer {
    opacity: 0;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        border-radius: 10px;
    }
    
    header {
        padding: 2rem 1rem;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .navigation ul {
        gap: 1rem;
    }
    
    .navigation a {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    main {
        padding: 2rem 1rem;
    }
    
    .dogs-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .dog-card {
        padding: 1.5rem;
    }
    
    .family-section {
        padding: 2rem 1rem;
    }
    
    .family-section h2,
    .gallery-section h2 {
        font-size: 2rem;
    }
    
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .dog-details strong {
        width: auto;
        display: block;
        margin-bottom: 0.2rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
    
    .navigation ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .navigation a {
        width: 100%;
        text-align: center;
    }
    
    .dog-placeholder {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
    
    .photo-grid {
        grid-template-columns: 1fr;
    }
    
    .family-activities ul {
        text-align: center;
    }
}
