@charset "utf-8";

/* --- 基本設定 --- */
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', 'Noto Sans JP', sans-serif;
    color: #333;
    overflow-x: hidden;
    background: #f0f2f5;
}

/* --- 動く背景アニメーション --- */
#header {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    /* グラデーションアニメーション */
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* --- ローディング設定 --- */
#splash {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

#splash_logo svg {
    width: 100px;
    height: 100px;
}

#mask .st0 {
    fill: none;
    stroke: #fff;
    stroke-width: 20;
    stroke-linecap: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

/* --- ナビゲーション (円形拡大) --- */
.openbtn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999;
    width: 50px;
    height: 50px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
}

.openbtn span {
    display: inline-block;
    transition: all 0.4s;
    position: absolute;
    left: 14px;
    height: 3px;
    border-radius: 2px;
    background: #fff;
    width: 45%;
}

.openbtn span:nth-of-type(1) {
    top: 15px;
}
.openbtn span:nth-of-type(2) {
    top: 23px;
}
.openbtn span:nth-of-type(3) {
    top: 31px;
}

.openbtn.active span:nth-of-type(1) {
    top: 18px;
    left: 18px;
    transform: translateY(6px) rotate(-45deg);
    width: 30%;
}
.openbtn.active span:nth-of-type(2) {
    opacity: 0;
}
.openbtn.active span:nth-of-type(3) {
    top: 30px;
    left: 18px;
    transform: translateY(-6px) rotate(45deg);
    width: 30%;
}

#g-nav {
    position: fixed;
    z-index: 997;
    top: 0;
    right: -120%;
    width: 100%;
    height: 100vh;
    background: rgba(231, 60, 126, 0.9);
    transition: all 0.6s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#g-nav.panelactive {
    right: 0;
}

#g-nav ul {
    list-style: none;
    text-align: center;
    padding: 0;
}
#g-nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 2rem;
    display: block;
    padding: 10px;
}

/* --- アニメーション要素 --- */
.inner {
    padding: 80px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.flex-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.card {
    flex: 1;
    min-width: 280px;
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}
.card:hover {
    transform: translateY(-10px);
}

/* --- スクロール・スライドアニメーション --- */
.slide-in {
    overflow: hidden;
}
.slide-in_inner {
    display: inline-block;
    animation: slideInText 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    transform: translateY(100%);
}

@keyframes slideInText {
    to {
        transform: translateY(0);
    }
}

.fadeUpTrigger {
    opacity: 1;
    transform: translateY(30px);
    transition: all 0.8s;
}
.fadeUp {
    opacity: 1;
    transform: translateY(0);
}

#footer {
    text-align: center;
    padding: 40px;
    background: #333;
    color: #fff;
}
