@charset "UTF-8";

/* --------------------------------
   Project: そらとぶペンギンプロジェクト
   Author: aya
   Date: 2024/12
   Description: talk.css
-------------------------------- */

:root {
        --primary-blue: #4A7B9D;
        --secondary-blue: #7BA7BC;
        --background: #F5F5F5;
        --text: #333333;
    }
    body, html {
        font-family: "Hiragino Maru Gothic Pro", sans-serif;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        height: 100%;
        background-color: #F4F4F2;
        color: var(--text);
        line-height: 1.6;
        -webkit-tap-highlight-color: transparent;
        touch-action: pan-y pinch-zoom;
    }
    *, *::before, *::after {
        box-sizing: inherit;
    }

    /* Hero Section */
    .hero-title-container {
    position: absolute;
    left: 25px;
    top: 20px;
    z-index: 9999; /* z-indexを最前面になるよう変更 */
    width: 200px;
    transform: none;
}


    .hero-title {
        width: 80%;
        height: auto;
        max-width: 500px;
    }

    /* egg */
    .container-egg-talk {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
        position: relative;
    }

    .mask-egg-talk {
        position: absolute;
        width: 0;
        height: 0;
        background-color: white;
        mask: url('../../images/egg.svg') center/contain no-repeat;
        -webkit-mask: url('../../images/egg.svg') center/contain no-repeat; /* Safari対応 */
        animation: expandMask 0.4s forwards;
        overflow: hidden;
        z-index: 1;
    }

    .egg-bird {
        position: absolute;
        width: 0;
        height: 0;
        object-fit: contain;
        animation: expandMask 0.4s forwards, floatUpDown 3s ease-in-out infinite;
        z-index: 2;
    }

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

    @media (max-width: 768px) {
        .mask-egg-talk {
            width: calc(100vw - 40px);
            height: 100vh;
            mask: url('../../images/egg.svg') center/cover no-repeat;
            -webkit-mask: url('../../images/egg.svg') center/cover no-repeat; /* Safari対応 */
            background-color: white;
        }

        .egg-bird {
            width: calc(100vw - 40px);
            height: 100vh;
            object-fit: cover;
        }
    }

    .content-egg-talk {
        width: 100%;
        height: 100%;
        overflow-y: auto;
        padding: 20px;
        opacity: 0;
        animation: fadeIn 2s 1s forwards;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: relative;
        z-index: 3;
    }
    .content-egg-talk h2 {
        font-family: "Zen Maru Gothic", serif;
        text-align: center;
        color: var(--primary-blue);
        font-size: 1.5rem;
    }
    .content-egg-talk p {
        width: 280px;
        margin: 0 auto;
        line-height: 1.9;
        color: var(--text);
        font-size: 0.9rem;
        text-align: justify;
    }

    .back-to-home {
        display: inline-block;
        margin-top: 20px;
        padding: 10px 3rem;
        background-color: var(--primary-blue);
        color: #fff;
        text-decoration: none;
        border-radius: 25px;
        transition: background-color 0.3s, transform 0.3s;
    }

    .back-to-home:hover {
        background-color: var(--secondary-blue);
        transform: scale(1.05);
    }

    @keyframes expandMask {
        0% {
            width: 0;
            height: 0;
        }
        70% {
            width: 110vw;
            height: 110vh;
        }
        100% {
            width: 100vw;
            height: 100vh;
        }
    }

    @keyframes fadeIn {
        to {
            opacity: 1;
        }
    }

    /* Footer */
    .footer {
        background: linear-gradient(to bottom, var(--background), white);
        padding: 0 0;
        margin-top: 0;
    }

    .footer-content {
        max-width: 100%;
        margin: 0 auto;
        text-align: center;
    }

    .footer-logo {
        margin-bottom: 0;
    }
    .footer-logo p {
        font-size: 0.8rem;
        font-family: 'Montserrat', sans-serif;
        font-weight: 600;
        color: var(--primary-blue);
    }

    .footer-logo-img {
        width: 60px;
        height: 60px;
        transition: transform 0.5s ease;
        transform-origin: center;
        transform-style: preserve-3d;
    }

    .footer-logo-img:hover {
        transform: rotateY(360deg);
    }

    .footer-container {
        perspective: 1000px;
    }

    .footer-bottom {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 100;
        background-color: #F4F4F2;
        padding: 1rem;
        text-align: center;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        overflow: hidden;
    }

    @media (max-width: 767px) {
        .footer-bottom {
            position: static; /* Changed from fixed to static for mobile */
        }
    }

    .copyright {
        font-size: 0.8rem;
        color: #666;
        margin: 0;
        padding: 0;
        word-wrap: break-word;
        word-break: break-word;
        white-space: normal;
        max-width: 100%;
        display: inline-block;
    }