/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100;300;400;500&family=Montserrat:wght@200;300;400;600&display=swap');

/* 芸術的フッター - イノーと南十字星 */
.site-footer {
    position: relative;
    background: linear-gradient(135deg,
        #0a0e27 0%,
        #151b3d 30%,
        #0f1837 60%,
        #0a0e27 100%
    );
    margin-top: 100px;
    overflow: hidden;
    font-family: 'Noto Sans JP', sans-serif;
    min-height: 350px;
    border-top: 1px solid rgba(176, 224, 230, 0.1);
}

/* イノーの動的波紋エフェクト */
.footer-inoo-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.inoo-ripple {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(176, 224, 230, 0.08);
    animation: footerRippleEffect 12s linear infinite;
}

.inoo-ripple-1 {
    width: 200px;
    height: 200px;
    top: 60%;
    left: 20%;
    transform: translate(-50%, -50%);
    animation-delay: 0s;
    border-color: rgba(176, 224, 230, 0.1);
}

.inoo-ripple-2 {
    width: 350px;
    height: 350px;
    top: 40%;
    left: 70%;
    transform: translate(-50%, -50%);
    animation-delay: 3s;
    border-color: rgba(72, 202, 228, 0.06);
}

.inoo-ripple-3 {
    width: 500px;
    height: 500px;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 6s;
    border-color: rgba(0, 150, 199, 0.04);
}

.inoo-ripple-4 {
    width: 300px;
    height: 300px;
    top: 30%;
    left: 30%;
    transform: translate(-50%, -50%);
    animation-delay: 9s;
    border-color: rgba(176, 224, 230, 0.05);
}

@keyframes footerRippleEffect {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3);
    }
    30% {
        opacity: 0.6;
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2.5);
    }
}

/* 星空の背景 */
.starfield-background {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(1px 1px at 15% 25%, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 35% 65%, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 55% 35%, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 75% 55%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 85% 15%, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 10% 75%, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 90% 85%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 25% 85%, rgba(255,255,255,0.6), transparent);
    background-size: 300% 300%;
    animation: footerStarfield 40s linear infinite;
    opacity: 0.6;
    z-index: 2;
}

/* 天の川 */
.milky-way {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        145deg,
        transparent 15%,
        rgba(255, 255, 255, 0.02) 25%,
        rgba(255, 255, 255, 0.05) 35%,
        rgba(255, 255, 255, 0.08) 45%,
        rgba(255, 255, 255, 0.12) 55%,
        rgba(255, 255, 255, 0.08) 65%,
        rgba(255, 255, 255, 0.05) 75%,
        rgba(255, 255, 255, 0.02) 85%,
        transparent 95%
    );
    transform: rotate(-20deg);
    z-index: 3;
    opacity: 0.7;
    animation: milkyWayFlow 60s ease-in-out infinite;
}

/* 小浜島の島影シルエット */
.island-silhouette {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(10, 14, 39, 0.3) 40%,
        rgba(10, 14, 39, 0.6) 70%,
        rgba(10, 14, 39, 0.9) 100%
    );
    z-index: 8;
}

.island-silhouette::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35px;
    background:
        radial-gradient(ellipse 150px 25px at 20% 100%, rgba(10, 14, 39, 0.8), transparent),
        radial-gradient(ellipse 200px 30px at 60% 100%, rgba(10, 14, 39, 0.7), transparent),
        radial-gradient(ellipse 120px 20px at 85% 100%, rgba(10, 14, 39, 0.6), transparent);
}

@keyframes footerStarfield {
    from {
        transform: translateY(0) rotate(0deg);
        background-position: 0% 0%;
    }
    to {
        transform: translateY(-50px) rotate(0.5deg);
        background-position: 100% 100%;
    }
}

@keyframes milkyWayFlow {
    0% {
        opacity: 0.7;
        transform: rotate(-20deg) translateX(-10px);
    }
    50% {
        opacity: 0.9;
        transform: rotate(-18deg) translateX(10px);
    }
    100% {
        opacity: 0.7;
        transform: rotate(-20deg) translateX(-10px);
    }
}

/* 南十字星（はいむるぶし） */
.footer-southern-cross {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 5;
}

.footer-star {
    position: absolute;
    border-radius: 50%;
    box-shadow: 0 0 15px currentColor;
}

/* 南十字星の配置 */
.star-gamma {
    width: 4px;
    height: 4px;
    top: 25%;
    right: 25%;
    background: #ff6b6b;
    color: #ff6b6b;
    animation: footerTwinkle 5s infinite;
}

.star-alpha {
    width: 5px;
    height: 5px;
    top: 65%;
    right: 25%;
    background: #a0d8ff;
    color: #a0d8ff;
    animation: footerTwinkle 5.5s infinite 0.3s;
}

.star-beta {
    width: 4px;
    height: 4px;
    top: 45%;
    right: 35%;
    background: #b8e0ff;
    color: #b8e0ff;
    animation: footerTwinkle 6s infinite 0.7s;
}

.star-delta {
    width: 3px;
    height: 3px;
    top: 45%;
    right: 15%;
    background: #ffffff;
    color: #ffffff;
    animation: footerTwinkle 5.2s infinite 0.5s;
}

.star-epsilon {
    width: 2px;
    height: 2px;
    top: 47%;
    right: 23%;
    background: #ffd4a3;
    color: #ffd4a3;
    animation: footerTwinkle 5.8s infinite 0.9s;
}

.pointer-alpha {
    width: 4px;
    height: 4px;
    top: 50%;
    right: 45%;
    background: #ffffcc;
    color: #ffffcc;
    animation: footerTwinkle 4.2s infinite 1.2s;
}

.pointer-beta {
    width: 3px;
    height: 3px;
    top: 55%;
    right: 48%;
    background: #ffffcc;
    color: #ffffcc;
    animation: footerTwinkle 3.8s infinite 1.5s;
}

.coalsack-nebula {
    position: absolute;
    width: 30px;
    height: 25px;
    top: 48%;
    right: 18%;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.6) 0%, transparent 70%);
    border-radius: 60%;
    opacity: 0.4;
}

/* 流れ星 */
.footer-shooting-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    opacity: 0;
    border-radius: 50%;
}

.footer-shooting-star::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9), transparent);
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.shooting-1 {
    top: 20%;
    right: -5%;
    animation: footerShooting 15s infinite linear;
}

.shooting-2 {
    top: 60%;
    right: -5%;
    animation: footerShooting 18s infinite linear 8s;
}

.shooting-3 {
    top: 40%;
    right: -5%;
    animation: footerShooting 22s infinite linear 12s;
}

@keyframes footerTwinkle {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
        box-shadow: 0 0 8px currentColor;
    }
    50% {
        opacity: 0.9;
        transform: scale(1.15);
        box-shadow: 0 0 15px currentColor;
    }
}

@keyframes footerShooting {
    0% {
        opacity: 0;
        transform: translateX(0) translateY(0);
    }
    5% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(-250px) translateY(120px);
    }
}

/* フッターコンテンツ */
.footer-content {
    position: relative;
    z-index: 10;
    padding: 100px 0 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
}

/* ソーシャルメディアリンク - 公式ガイドライン準拠 */
.social-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
}

.social-link {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    padding: 8px;
}

.social-icon {
    display: block;
    width: 32px;
    height: 32px;
}

/* 控えめなホバー効果 */
.social-link:hover {
    transform: translateY(-2px);
    opacity: 0.85;
}

.social-link:active {
    transform: translateY(0);
}

/* コピーライト */
.copyright-constellation {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(176, 224, 230, 0.1);
    position: relative;
}

.copyright-constellation::before {
    content: '✦';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(176, 224, 230, 0.5);
    font-size: 14px;
}

.copyright-constellation p {
    color: rgba(176, 224, 230, 0.7);
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 1px;
    margin: 0;
    text-shadow: 0 0 10px rgba(176, 224, 230, 0.2);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .site-footer {
        margin-top: 60px;
        min-height: 280px;
    }

    .footer-content {
        padding: 70px 0 50px;
    }

    .social-links {
        gap: 30px;
        margin-bottom: 50px;
    }

    .footer-star {
        transform: scale(0.8);
    }

    .footer-shooting-star::before {
        width: 40px;
    }

    .island-silhouette {
        height: 60px;
    }

    .milky-way {
        opacity: 0.5;
    }
}

@media (max-width: 480px) {
    .social-links {
        gap: 25px;
    }

    .social-icon {
        width: 28px;
        height: 28px;
    }

    .copyright-constellation p {
        font-size: 0.85rem;
    }

    .footer-star {
        transform: scale(0.7);
        animation-duration: 8s !important;
    }

    .island-silhouette {
        height: 50px;
    }

    .milky-way {
        opacity: 0.4;
        transform: rotate(-25deg);
    }
}

/* アクセシビリティ：動きを減らす設定の尊重 */
@media (prefers-reduced-motion: reduce) {
    .footer-star {
        animation: none !important;
        opacity: 0.7;
    }

    .footer-shooting-star {
        display: none;
    }

    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
    .social-link {
        opacity: 0.9;
    }

    .social-link:hover {
        opacity: 1;
    }

    .site-footer {
        border-top: none !important;
    }

    .copyright-constellation {
        border-top: none !important;
    }

    .star-gamma {
        background: #4a2c2c !important;
        color: #4a2c2c !important;
        opacity: 0.6;
    }

    .star-alpha {
        background: #2c3a4a !important;
        color: #2c3a4a !important;
        opacity: 0.6;
    }

    .star-beta {
        background: #2c3a4a !important;
        color: #2c3a4a !important;
        opacity: 0.6;
    }

    .star-delta {
        background: #3a3a3a !important;
        color: #3a3a3a !important;
        opacity: 0.5;
    }

    .star-epsilon {
        background: #4a3c2c !important;
        color: #4a3c2c !important;
        opacity: 0.5;
    }

    .pointer-alpha,
    .pointer-beta {
        background: #3a3a2c !important;
        color: #3a3a2c !important;
        opacity: 0.5;
    }

    .footer-star {
        box-shadow: 0 0 3px currentColor !important;
    }

    .milky-way {
        opacity: 0.3 !important;
    }

    .starfield-background {
        opacity: 0.3 !important;
    }
}

/* スムーズスクロール */
html {
    scroll-behavior: smooth;
}