/* =====================================================
   Satomi Hiyama Official Portfolio
   style.css
===================================================== */

:root{
    --primary:#ff6aa9;
    --secondary:#d4af37;
    --dark:#1b2333;
    --light:#ffffff;
    --gray:#f5f7fb;
    --text:#444;
    --shadow:0 15px 40px rgba(0,0,0,.12);
    --radius:18px;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:"Noto Sans JP",sans-serif;
    color:var(--text);
    background:#fff;
    overflow-x:hidden;
    line-height:1.8;
}

img{
    width:100%;
    display:block;
}

a{
    text-decoration:none;
}

ul{
    list-style:none;
}

.container{
    width:min(1100px,92%);
    margin:auto;
}

.section{
    padding:120px 0;
}

.bg-light{
    background:var(--gray);
}

/* スクロールアニメーション用ベースクラス */
.fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.215, 0.610, 0.355, 1), 
                transform 1s cubic-bezier(0.215, 0.610, 0.355, 1);
}
.fade.show {
    opacity: 1;
    transform: translateY(0);
}

/* =======================
Loader
======================= */
#loader{
    position:fixed;
    inset:0;
    background:#111;
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:9999;
    transition:.7s;
}

.loader-logo{
    color:white;
    font-family:"Cinzel",serif;
    font-size:34px;
    letter-spacing:8px;
    animation:loaderFlash 2s infinite;
}

@keyframes loaderFlash{
    0%,100%{ opacity:1; }
    50%{ opacity:.3; }
}

/* =======================
Header
======================= */
header{
    position:fixed;
    width:100%;
    top:0;
    left:0;
    z-index:1000;
    transition:.4s;
}

header.scrolled{
    background:rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow:0 5px 25px rgba(0,0,0,.08);
}

header .container{
    display:flex;
    justify-content:space-between;
    align-items:center;
    height:80px;
}

.logo{
    font-family:"Cinzel",serif;
    font-size:26px;
    color:white;
    font-weight:bold;
    letter-spacing:3px;
    transition: color 0.4s ease;
}

header.scrolled .logo{
    color:var(--dark);
}

.logo span{
    color:var(--primary);
}

nav ul{
    display:flex;
    gap:35px;
}

nav a{
    color:white;
    font-size:14px;
    font-weight:600;
    letter-spacing:2px;
    transition:.3s;
    position: relative;
    padding: 6px 0;
}

header.scrolled nav a{
    color:#222;
}

nav a:hover{
    color:var(--primary);
}

/* ハンバーガーボタン基本スタイル（PC時は非表示） */
.menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 2000;
}
.menu-btn span {
    width: 100%;
    height: 2px;
    background-color: white;
    transition: .3s;
}
header.scrolled .menu-btn span {
    background-color: var(--dark);
}

/* =======================
Hero
======================= */
.hero{
    height:100vh;
    position:relative;
    overflow:hidden;
}

.hero-bg{
    position:absolute;
    inset:0;
}

.hero-bg img{
    width:100%;
    height:100%;
    object-fit:cover;
    animation:zoomHero 12s linear infinite alternate;
}

@keyframes zoomHero{
    from{ transform:scale(1); }
    to{ transform:scale(1.12); }
}

.hero-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(
        rgba(20,20,30,.35),
        rgba(20,20,30,.65)
    );
}

.hero-content{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    text-align:center;
    color:white;
    width:90%;
}

.hero-sub{
    letter-spacing:8px;
    font-size:14px;
    margin-bottom:15px;
}

.hero h1{
    font-family:"Cinzel",serif;
    font-size:90px;
    line-height:1;
    letter-spacing:8px;
}

.hero h1 span{
    color:var(--secondary);
}

.hero-line{
    width:120px;
    height:3px;
    background:var(--primary);
    margin:35px auto;
}

.hero h2{
    font-size:18px;
    font-weight:400;
    letter-spacing:3px;
}

.hero h2 span{
    color:var(--secondary);
}

.hero-button{
    display:inline-block;
    margin-top:45px;
    padding:15px 45px;
    border:2px solid white;
    color:white;
    border-radius:40px;
    transition:.35s;
}

.hero-button:hover{
    background:var(--primary);
    border-color:var(--primary);
    transform:translateY(-5px);
}

.scroll-down{
    position:absolute;
    bottom:35px;
    left:50%;
    transform:translateX(-50%);
    color:white;
    text-align:center;
}

.mouse{
    width:28px;
    height:46px;
    border:2px solid white;
    border-radius:30px;
    margin:10px auto;
    position:relative;
}

.wheel{
    width:5px;
    height:9px;
    background:white;
    border-radius:10px;
    position:absolute;
    left:50%;
    top:8px;
    transform:translateX(-50%);
    animation:wheelMove 1.5s infinite;
}

@keyframes wheelMove{
    0%{ opacity:1; top:8px; }
    100%{ opacity:0; top:25px; }
}

/* =====================================================
   SECTION TITLE
===================================================== */
.section-title{
    text-align:center;
    margin-bottom:70px;
}

.section-title h2{
    font-family:"Cinzel",serif;
    font-size:42px;
    color:var(--dark);
    letter-spacing:5px;
    position:relative;
    display:inline-block;
}

.section-title h2::after{
    content:"";
    width:80px;
    height:4px;
    background:linear-gradient(90deg,var(--primary),var(--secondary));
    display:block;
    margin:20px auto 0;
    border-radius:10px;
}

.section-title p{
    margin-top:15px;
    color:#888;
    letter-spacing:3px;
    font-size:14px;
}

/* =====================================================
   PROFILE
===================================================== */
.profile-wrap{
    display:grid;
    grid-template-columns:380px 1fr;
    gap:70px;
    align-items:center;
}

.profile-image{
    position:relative;
}

.profile-image img{
    border-radius:25px;
    box-shadow:var(--shadow);
    transition:.5s;
}

.profile-image:hover img{
    transform:scale(1.03);
}

.profile-image::before{
    content:"";
    position:absolute;
    width:100%;
    height:100%;
    top:20px;
    left:20px;
    border:3px solid var(--secondary);
    border-radius:25px;
    z-index:-1;
}

.profile-text h3{
    font-size:42px;
    color:var(--dark);
    margin-bottom:10px;
}

.profile-text h4{
    color:var(--primary);
    letter-spacing:2px;
    margin-bottom:30px;
    font-weight:600;
}

.profile-text p{
    color:#555;
    font-size:16px;
    line-height:2.1;
}

.skills{
    display:flex;
    flex-wrap:wrap;
    gap:14px;
    margin-top:40px;
}

.skills a {
    color: inherit;
    text-decoration: none;
    display: inline-block;
}

.skills span{
    background:white;
    border-radius:999px;
    padding:12px 22px;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
    transition:.3s;
    font-size:14px;
}

.skills span:hover{
    background:var(--primary);
    color:white;
    transform:translateY(-5px);
}

.skills i{
    margin-right:8px;
}

.profile-sns{
    margin-top:45px;
}

.profile-sns a{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:16px 34px;
    border-radius:50px;
    color:white;
    font-weight:bold;
    background:linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    transition:.35s;
}

.profile-sns a:hover{
    transform:translateY(-4px);
    box-shadow:0 15px 35px rgba(220,39,67,.35);
}

/* =====================================================
   HISTORY
===================================================== */
.timeline{
    position:relative;
    margin-top:40px;
}

.timeline::before{
    content:"";
    position:absolute;
    left:120px;
    top:0;
    bottom:0;
    width:3px;
    background:linear-gradient(var(--primary), var(--secondary));
}

.timeline-item{
    display:grid;
    grid-template-columns:120px 1fr;
    gap:50px;
    margin-bottom:70px;
    position:relative;
}

.timeline-year{
    font-size:32px;
    font-family:"Cinzel",serif;
    color:var(--primary);
    text-align:center;
    font-weight:bold;
}

.timeline-content{
    display:grid;
    gap:25px;
}

.timeline-card{
    display:flex;
    gap:22px;
    align-items:flex-start;
    background:white;
    padding:28px;
    border-radius:20px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    transition:.35s;
}

.timeline-card:hover{
    transform:translateY(-8px);
    box-shadow:0 20px 45px rgba(0,0,0,.12);
}

.timeline-card i{
    font-size:30px;
    color:var(--primary);
    min-width:36px;
}

.timeline-card h3{
    color:var(--dark);
    margin-bottom:6px;
    font-size:20px;
}

.timeline-card h4{
    color:#777;
    font-size:15px;
    margin-bottom:6px;
}

.timeline-card p{
    color:#666;
}

/* =====================================================
   VOICE
===================================================== */
.voice-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:35px;
}

.voice-card{
    background:white;
    border-radius:22px;
    padding:35px;
    box-shadow:0 15px 35px rgba(0,0,0,.08);
    transition:.35s;
    text-align:center;
}

.voice-card:hover{
    transform:translateY(-10px);
}

.voice-icon{
    width:80px;
    height:80px;
    margin:auto;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:30px;
    color:white;
    background:linear-gradient(135deg, var(--primary), var(--secondary));
    margin-bottom:25px;
}

.voice-card h3{
    font-size:24px;
    margin-bottom:15px;
    color:var(--dark);
}

.voice-card p{
    color:#777;
    margin-bottom:25px;
}

.voice-card audio{
    width:100%;
    border-radius:50px;
}

/* =====================================================
   DANCE / Coming Soon 共通スタイル
===================================================== */
.video-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(340px,1fr));
    gap:40px;
}

.video-card{
    background:#fff;
    border-radius:22px;
    overflow:hidden;
    box-shadow:0 18px 40px rgba(0,0,0,.08);
    transition:.4s;
}

.video-card:hover{
    transform:translateY(-10px);
}

.video-thumb{
    position:relative;
    overflow:hidden;
}

.video-thumb img{
    aspect-ratio:16/9;
    object-fit:cover;
    transition:.5s;
}

/* Coming Soon 用レイヤー表示 */
.coming-soon-overlay {
    position: absolute;
    inset: 0;
    background: rgba(27, 35, 51, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
}

.coming-soon-overlay span {
    color: white;
    font-family: "Cinzel", serif;
    font-size: 20px;
    letter-spacing: 2px;
    border: 1px solid rgba(255,255,255,0.6);
    padding: 8px 20px;
    border-radius: 4px;
}

.video-body{
    padding:30px;
}

.video-body h3{
    color:var(--dark);
    margin-bottom:12px;
}

.video-body p{
    color:#666;
    margin-bottom:25px;
}

.movie-btn{
    display:inline-block;
    padding:12px 30px;
    border-radius:999px;
    background:var(--primary);
    color:white;
    transition:.3s;
}

/* リンクではない場合の Coming Soon ボタン */
.movie-btn.disabled {
    background: #ccc;
    color: #fff;
    cursor: default;
}

/* =====================================================
   GALLERY
===================================================== */
.gallery-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:25px;
}

.gallery-item{
    position:relative;
    overflow:hidden;
    border-radius:20px;
    box-shadow:0 12px 30px rgba(0,0,0,.08);
}

.gallery-item img{
    aspect-ratio:1/1;
    object-fit:cover;
    transition:.45s;
}

.gallery-overlay{
    position:absolute;
    inset:0;
    background:rgba(20,20,40,.55);
    display:flex;
    justify-content:center;
    align-items:center;
    color:white;
    font-size:34px;
    opacity:0;
    transition:.35s;
}

.gallery-item:hover img{
    transform:scale(1.08);
}

.gallery-item:hover .gallery-overlay{
    opacity:1;
}

/* =====================================================
   INSTAGRAM
===================================================== */
.instagram-area{
    display:flex;
    justify-content:center;
}

.instagram-card{
    max-width:650px;
    width:100%;
    text-align:center;
    background:white;
    border-radius:24px;
    padding:60px;
    box-shadow:var(--shadow);
}

.instagram-card i{
    font-size:60px;
    color:#E1306C;
    margin-bottom:25px;
}

.instagram-card h3{
    margin-bottom:20px;
    font-size:28px;
}

.instagram-card p{
    color:#777;
    margin-bottom:35px;
}

.instagram-button{
    display:inline-block;
    padding:15px 40px;
    border-radius:999px;
    color:white;
    background:linear-gradient(45deg, #f09433, #dc2743, #bc1888);
    transition:.35s;
}

.instagram-button:hover{
    transform:translateY(-5px);
}

/* =====================================================
   CONTACT
===================================================== */
.contact-box{
    max-width:760px;
    margin:auto;
    background:white;
    border-radius:25px;
    text-align:center;
    padding:70px;
    box-shadow:var(--shadow);
}

.contact-box h3{
    font-size:32px;
    margin-bottom:20px;
    color:var(--dark);
}

.contact-box p{
    color:#666;
    margin-bottom:40px;
}

.contact-btn{
    display:inline-flex;
    align-items:center;
    gap:12px;
    padding:18px 45px;
    border-radius:999px;
    color:white;
    background:linear-gradient(45deg, #f09433, #dc2743, #bc1888);
    font-weight:bold;
    transition:.3s;
}

.contact-btn:hover{
    transform:translateY(-5px);
}

/* =====================================================
   FOOTER
===================================================== */
footer{
    background:var(--dark);
    color:white;
    text-align:center;
    padding:70px 20px;
}

.footer-logo{
    font-family:"Cinzel",serif;
    font-size:34px;
    margin-bottom:15px;
}

.footer-links{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:25px;
    margin:35px 0;
}

.footer-links a{
    color:white;
    transition:.3s;
}

.footer-links a:hover{
    color:var(--primary);
}

.footer-sns{
    margin-bottom:25px;
}

.footer-sns a{
    font-size:32px;
    color:white;
}

.copyright{
    color:#bbb;
    font-size:14px;
}

/* =====================================================
   PAGE TOP
===================================================== */
#pageTop{
    position:fixed;
    right:25px;
    bottom:25px;
    width:55px;
    height:55px;
    border:none;
    border-radius:50%;
    background:var(--primary);
    color:white;
    font-size:20px;
    cursor:pointer;
    display:none;
    box-shadow:0 10px 25px rgba(0,0,0,.18);
    z-index: 99;
}

/* =====================================================
   LIGHTBOX
===================================================== */
#lightbox{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.92);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:9999;
}

#lightbox img{
    max-width:90%;
    max-height:90%;
    border-radius:15px;
    object-fit: contain;
}

.close-lightbox{
    position:absolute;
    right:40px;
    top:25px;
    font-size:50px;
    color:white;
    cursor:pointer;
}

/* =====================================================
   Responsive
===================================================== */
@media(max-width:900px){
    /* スマホ・タブレット用ナビゲーションを横から出すアニメーションを新設 */
    .menu-btn {
        display: flex;
    }
    
    /* 三本線がバツ印にトランスフォームするアニメーション */
    .menu-btn.active span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
        background-color: white;
    }
    .menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-btn.active span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
        background-color: white;
    }

    nav {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: rgba(27, 35, 51, 0.98);
        backdrop-filter: blur(15px);
        transition: right .4s ease;
        z-index: 1500;
        padding-top: 100px;
        box-shadow: -10px 0 30px rgba(0,0,0,0.2);
    }
    nav.active {
        right: 0;
    }
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    nav a {
        color: white !important;
        font-size: 18px;
    }

    .profile-wrap{
        grid-template-columns:1fr;
        text-align:center;
    }
    .profile-image{
        max-width:340px;
        margin:auto;
    }
    .timeline::before{
        display:none;
    }
    .timeline-item{
        grid-template-columns:1fr;
        gap:20px;
    }
    .timeline-year{
        text-align:left;
        border-bottom: 2px solid var(--primary);
        display: inline-block;
        padding-bottom: 4px;
    }
    .hero h1{
        font-size:56px;
    }
    .hero h2{
        font-size:16px;
        line-height:2;
    }
    .section{
        padding:90px 0;
    }
    .contact-box{
        padding:45px 30px;
    }
    .gallery-grid{
        grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    }
}

@media(max-width:600px){
    .hero h1{
        font-size:42px;
    }
    .section-title h2{
        font-size:34px;
    }
    .profile-text h3{
        font-size:34px;
    }
    .voice-grid,
    .video-grid{
        grid-template-columns:1fr;
    }
    .skills{
        justify-content:center;
    }
}
