html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
}

#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #e3e3e3cb;
    color: #fff;
    padding: 10px 14px;
    border-radius: 50%;
    font-size: 16px;
    text-decoration: none;
    display: none;
    z-index: 9999;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background 0.3s, transform 0.3s;
}

#back-to-top:hover {
    background-color: #555;
    transform: scale(1.1);
}

.overlay {
    position: relative;
    z-index: 2;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    animation: logoFadeInOut 6s ease forwards;
}

.logo-center img {
    width: 250px;
    max-width: 80%;
}

.logo-top-left {
    position: absolute;
    top: 20px;
    left: 30px;
    z-index: 3;
    opacity: 0;
    animation: logoFadeIn 2s ease forwards;
    animation-delay: 6s;
}

.logo-top-left img {
    width: 120px;
}

@keyframes logoFadeInOut {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }

    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    70% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5);
    }
}

@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.menu {
    position: absolute;
    top: 20px;
    right: 30px;
    z-index: 3;
}

/* PCメニュー */
.menu ul {
    display: flex;
    gap: 20px;
}

/* ハンバーガーアイコン非表示（PC） */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 3px;
    background-color: white;
    border-radius: 2px;
}
.menu ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 20px;
    transition: color 0.3s;
}

.menu ul li a:hover {
    color: #FFD700;
}

.skills {
    color: #333;
    text-align: center;
}

.skills-ttl {
    color: #fff;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.skill-card {
    background: #f5f5f5ad;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.skill-card img {
    width: 60px;
    height: auto;
    margin-bottom: 12px;
}

.skill-card p {
    font-weight: bold;
    margin: 0;
}

section {
    padding: 100px 20px;
    text-align: center;
    position: relative;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

section p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.overlay-slogan {
    position: absolute;
    top: 90%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #ffffff;
    width: 80%;
    max-width: 800px;
    opacity: 0;
    animation: sloganFadeIn 2s ease forwards;
    animation-delay: 6s;
    font-size: 20px;
}

.slogan-text {
    font-size: 2rem;
    font-style: italic;
    font-weight: 400;
    line-height: 1.6;
    color: #fff;
    letter-spacing: 1px;
    text-shadow:
        2px 2px 6px rgba(0, 0, 0, 0.8),
        0 0 10px rgb(255, 255, 255);
}

.price-link a {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    background: transparent;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid #ffffff;
}

.price-link a:hover {
    background: #fff;
    color: #111;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #ffffff17;
    color: #ffffffa1;
    font-size: 0.9rem;
}

@keyframes sloganFadeIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -40%) translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) translateY(0);
    }
}

/* ===== スマホ対応レスポンシブ ===== */
@media (max-width: 768px) {
    #back-to-top {
            bottom: 20px;
            right: 20px;
            padding: 8px 12px;
            font-size: 14px;
        }

    .logo-center img {
        width: 180px;
        margin-left: 20px;
    }

    .logo-top-left img {
        width: 90px;
    }

    .menu {
        top: 10px;
        right: 15px;
    }

    .menu ul {
        display: none;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.8);
        position: absolute;
        top: 50px;
        right: 0;
        width: 80px;
        padding: 10px;
        border-radius: 8px;
    }

        .menu-toggle {
            display: flex;
        }

        .menu ul.show {
        display: flex;
        }

    section {
        padding: 60px 15px;
    }

    section h2 {
        font-size: 1.8rem;
    }

    section p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .slogan-text {
        font-size: 1.4rem;
    }

    .price-list-section {
        padding: 60px 15px;
    }

    .price-link a {
        display: block;
        width: 100%;
        max-width: 280px;
        margin: 1rem auto 0;
        font-size: 1.1rem;
        padding: 0.8rem 1rem;
    }
}

@media (max-width: 480px) {
    .logo-center img {
        width: 150px;
        margin-left: 20px;
    }

    .logo-top-left img {
        width: 70px;
    }

    .menu ul {
        flex-direction: column;
        gap: 10px;
        background: rgba(0, 0, 0, 0.6);
        padding: 10px;
        border-radius: 8px;
    }

    .menu ul li a {
        font-size: 14px;
    }

    .slogan-text {
        font-size: 1.2rem;
    }

    .price-list-section {
        padding: 50px 10px;
    }

    .price-link a {
        font-size: 1rem;
        padding: 0.7rem 0.9rem;
        max-width: 220px;
    }
}