
body {
    margin: 0;
    font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
    background-color: #111;
    color: #fff;
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- フェードイン共通 --- */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- ヒーローエリア --- */
.hero {
    position: relative;
    height: 100vh;
    background: url("img/hero.jpg") no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.85), rgba(0,0,0,0.6), rgba(0,0,0,0.85));
    z-index: 1;
}
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0; left: 0;
    z-index: 2;
    pointer-events: none;
}
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #f5d76e;
    border-radius: 50%;
    opacity: 0.8;
    animation: float 6s linear infinite;
}
@keyframes float {
    from { transform: translateY(100vh) scale(0.5); opacity: 0; }
    50%  { opacity: 1; }
    to   { transform: translateY(-10vh) scale(1); opacity: 0; }
}
.hero-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, #f5d76e, transparent);
    z-index: 3;
    animation: lineGrow 3s ease-out forwards;
}
.hero-line.left { left: 15%; }
.hero-line.right { right: 15%; }
@keyframes lineGrow {
    from { height: 0; opacity: 0; }
    to { height: 100%; opacity: 1; }
}
.hero-content {
    position: relative;
    z-index: 4;
    color: #fff;
    max-width: 900px;
    padding: 20px;
    animation: fadeInHero 2s ease-out forwards;
}
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #f5d76e, #fff, #f5d76e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200%;
    animation: shine 6s linear infinite;
}
@keyframes shine {
    from { background-position: 200% center; }
    to { background-position: -200% center; }
}
.hero p {
    font-size: 1.3rem;
    color: #ddd;
    margin-bottom: 30px;
}
.hero .btn {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid #f5d76e;
    color: #f5d76e;
    border-radius: 30px;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}
.hero .btn:hover {
    background: #f5d76e;
    color: #111;
    box-shadow: 0 0 20px rgba(245, 215, 110, 0.6);
}
@keyframes fadeInHero {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (min-width:480px){
    .hero h1 {
        font-size: 3.5rem;
    }
}
/* --- セクション --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}
h2 {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    color: #f5d76e;
}
h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #f5d76e;
    margin: 10px auto 0;
    transform: scaleX(0);
    animation: lineGrow 1.5s ease-out forwards;
}

/* --- 登場人物カード --- */
.characters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
}
@media (min-width:480px){
    .characters {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 30px;
    }
}
.character-card {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #333;
    transition: transform 0.4s, box-shadow 0.4s;
}
.character-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(245, 215, 110, 0.3);
}
.character-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}
.character-card:hover img {
    filter: grayscale(0%);
}
.character-info {
    padding: 10px;
}
.character-info h3 span{
    font-size:0.8rem;
    display:block;
}
/* --- YouTube --- */
.episodes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}
.episode {
    background: #1a1a1a;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #333;
    transition: transform 0.3s, box-shadow 0.3s;
}
.episode img{
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}
.episode:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(245, 215, 110, 0.2);
}
.episode iframe {
    width: 100%;
    height: 200px;
    border-radius: 8px;
}

/* --- フッター --- */
footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    color: #aaa;
}
footer .footer-link{
    color:#fff;
}