/* ペットイラスト用CSS */

.pet-illustration {
    width: 200px;
    height: 200px;
    margin: 20px auto;
    position: relative;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.pet-icon {
    display: inline-block;
    width: 50px;
    height: 50px;
    margin: 10px;
}

/* 犬のイラストベース */
.dog-illustration {
    background: radial-gradient(circle at 50% 40%, #8B4513 30%, transparent 30%);
    border-radius: 50%;
}

.dog-ears {
    position: absolute;
    top: -10px;
    width: 100%;
}

.dog-ear-left,
.dog-ear-right {
    position: absolute;
    width: 40px;
    height: 60px;
    background: #8B4513;
    border-radius: 50% 50% 50% 50%;
}

.dog-ear-left {
    left: 20px;
    transform: rotate(-30deg);
}

.dog-ear-right {
    right: 20px;
    transform: rotate(30deg);
}

/* 猫のイラストベース */
.cat-illustration {
    background: radial-gradient(circle at 50% 40%, #FFA500 30%, transparent 30%);
    border-radius: 50% 50% 45% 45%;
}

.cat-ears {
    position: absolute;
    top: -5px;
    width: 100%;
}

.cat-ear-left,
.cat-ear-right {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 40px solid #FFA500;
}

.cat-ear-left {
    left: 30px;
    transform: rotate(-10deg);
}

.cat-ear-right {
    right: 30px;
    transform: rotate(10deg);
}

/* うさぎのイラストベース */
.rabbit-illustration {
    background: radial-gradient(circle at 50% 50%, #FFFFFF 30%, transparent 30%);
    border-radius: 50%;
    border: 2px solid #FFB6C1;
}

.rabbit-ears {
    position: absolute;
    top: -40px;
    width: 100%;
}

.rabbit-ear-left,
.rabbit-ear-right {
    position: absolute;
    width: 30px;
    height: 80px;
    background: #FFFFFF;
    border: 2px solid #FFB6C1;
    border-radius: 50% 50% 50% 50%;
}

.rabbit-ear-left {
    left: 40px;
    transform: rotate(-10deg);
}

.rabbit-ear-right {
    right: 40px;
    transform: rotate(10deg);
}

/* 鳥のイラストベース */
.bird-illustration {
    background: radial-gradient(circle at 50% 50%, #87CEEB 35%, transparent 35%);
    border-radius: 50% 50% 40% 40%;
}

.bird-wings {
    position: absolute;
    top: 50%;
    width: 100%;
}

.bird-wing-left,
.bird-wing-right {
    position: absolute;
    width: 60px;
    height: 40px;
    background: #87CEEB;
    border-radius: 50% 10% 50% 10%;
}

.bird-wing-left {
    left: -20px;
    transform: rotate(-20deg);
}

.bird-wing-right {
    right: -20px;
    transform: rotate(20deg) scaleX(-1);
}

/* ハムスターのイラストベース */
.hamster-illustration {
    background: radial-gradient(circle at 50% 50%, #D2691E 35%, transparent 35%);
    border-radius: 45%;
}

.hamster-cheeks {
    position: absolute;
    bottom: 30%;
    width: 100%;
}

.hamster-cheek-left,
.hamster-cheek-right {
    position: absolute;
    width: 50px;
    height: 40px;
    background: #F4A460;
    border-radius: 50%;
}

.hamster-cheek-left {
    left: 10px;
}

.hamster-cheek-right {
    right: 10px;
}

/* 魚のイラストベース */
.fish-illustration {
    background: linear-gradient(90deg, #FF6347 0%, #FFA500 50%, #FF6347 100%);
    border-radius: 50% 10% 50% 10%;
    transform: rotate(0deg);
}

.fish-tail {
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 30px solid transparent;
    border-bottom: 30px solid transparent;
    border-left: 40px solid #FF6347;
}

.fish-fin {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 20px solid #FFA500;
}

/* カメのイラストベース */
.turtle-illustration {
    background: radial-gradient(circle at 50% 50%, #228B22 40%, transparent 40%);
    border-radius: 50%;
    border: 3px solid #006400;
}

.turtle-pattern {
    position: absolute;
    top: 20%;
    left: 20%;
    width: 60%;
    height: 60%;
    background: repeating-conic-gradient(
        from 0deg at 50% 50%,
        #228B22 0deg 60deg,
        #006400 60deg 120deg
    );
    border-radius: 50%;
}

.turtle-head {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: #32CD32;
    border-radius: 50%;
}

/* インコのイラストベース */
.parrot-illustration {
    background: linear-gradient(135deg, #32CD32 0%, #FFD700 50%, #FF6347 100%);
    border-radius: 40% 40% 50% 50%;
}

.parrot-beak {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 25px solid #FFA500;
    border-radius: 50%;
}

/* アニメーション効果 */
.pet-happy {
    animation: bounce 0.5s ease-in-out infinite alternate;
}

@keyframes bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-5px); }
}

.pet-sleep {
    animation: breathe 2s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(0.95); }
}

.pet-play {
    animation: wiggle 0.3s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

/* 足跡アニメーション */
.paw-prints {
    position: absolute;
    width: 100%;
    height: 50px;
    bottom: -60px;
}

.paw-print {
    position: absolute;
    width: 30px;
    height: 30px;
    opacity: 0;
    animation: pawWalk 3s infinite;
}

.paw-print:before {
    content: "🐾";
    font-size: 20px;
}

.paw-print:nth-child(1) { left: 10%; animation-delay: 0s; }
.paw-print:nth-child(2) { left: 30%; animation-delay: 0.5s; }
.paw-print:nth-child(3) { left: 50%; animation-delay: 1s; }
.paw-print:nth-child(4) { left: 70%; animation-delay: 1.5s; }
.paw-print:nth-child(5) { left: 90%; animation-delay: 2s; }

@keyframes pawWalk {
    0% { opacity: 0; transform: translateY(10px); }
    50% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
}

/* ハートアニメーション */
.love-hearts {
    position: absolute;
    top: -20px;
    width: 100%;
    height: 40px;
}

.heart {
    position: absolute;
    color: #FF69B4;
    animation: floatHeart 3s ease-in-out infinite;
}

.heart:before {
    content: "❤️";
    font-size: 20px;
}

.heart:nth-child(1) { left: 20%; animation-delay: 0s; }
.heart:nth-child(2) { left: 50%; animation-delay: 1s; }
.heart:nth-child(3) { left: 80%; animation-delay: 2s; }

@keyframes floatHeart {
    0% { opacity: 0; transform: translateY(0) scale(0); }
    50% { opacity: 1; transform: translateY(-20px) scale(1); }
    100% { opacity: 0; transform: translateY(-40px) scale(0.5); }
}

/* 食べ物アニメーション */
.food-bowl {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 30px;
    background: #8B4513;
    border-radius: 0 0 30px 30px;
    border: 2px solid #654321;
}

.food-particles {
    position: absolute;
    top: -10px;
    width: 100%;
}

.food-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #D2691E;
    border-radius: 50%;
    animation: eatFood 2s ease-in-out infinite;
}

.food-particle:nth-child(1) { left: 20%; animation-delay: 0s; }
.food-particle:nth-child(2) { left: 40%; animation-delay: 0.3s; }
.food-particle:nth-child(3) { left: 60%; animation-delay: 0.6s; }
.food-particle:nth-child(4) { left: 80%; animation-delay: 0.9s; }

@keyframes eatFood {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(20px); }
}

/* 寝ているZzzアニメーション */
.sleep-z {
    position: absolute;
    top: -30px;
    right: 10px;
    font-size: 20px;
    color: #4169E1;
    animation: sleepZ 2s ease-in-out infinite;
}

.sleep-z:nth-child(1) { animation-delay: 0s; font-size: 16px; }
.sleep-z:nth-child(2) { animation-delay: 0.5s; font-size: 20px; right: 0; }
.sleep-z:nth-child(3) { animation-delay: 1s; font-size: 24px; right: -10px; }

@keyframes sleepZ {
    0% { opacity: 0; transform: translateY(0) translateX(0); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-30px) translateX(10px); }
}

/* 品種別カラーバリエーション */
.breed-poodle { background: #8B4513; }
.breed-chihuahua { background: #D2691E; }
.breed-shiba { background: #CD853F; }
.breed-golden { background: #FFD700; }
.breed-french-bulldog { background: #F5DEB3; }
.breed-beagle { background: #8B7355; }
.breed-pug { background: #FFDAB9; }
.breed-maltese { background: #FFFFFF; }
.breed-yorkie { background: #4682B4; }

/* 猫の品種別カラー */
.breed-persian { background: #F5F5DC; }
.breed-siamese { background: #D2B48C; }
.breed-maine-coon { background: #8B7355; }
.breed-ragdoll { background: #FFF8DC; }
.breed-british { background: #708090; }
.breed-scottish { background: #C0C0C0; }

/* インタラクティブ効果 */
.pet-illustration:hover {
    cursor: pointer;
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.pet-illustration:hover .love-hearts .heart {
    animation-play-state: running;
}

.pet-illustration.clicked {
    animation: spin 0.5s ease-in-out;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}