/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
    background-color: #000;
}

/* フェードインアニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* SEO用：視覚的に隠すがスクリーンリーダーと検索エンジンには見える */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* メインコンテナ */
.hero-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* 背景画像 */
.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/NoroTatsuhito_key-visual_photo_only.jpg');
    /* フォールバック: WebP未対応またはファイル不在時 */
    background-image: 
        image-set(
            url('../img/NoroTatsuhito_key-visual_photo_only.webp') type('image/webp'),
            url('../img/NoroTatsuhito_key-visual_photo_only.jpg') type('image/jpeg')
        );
    /* Safari用フォールバック */
    background-image: 
        -webkit-image-set(
            url('../img/NoroTatsuhito_key-visual_photo_only.webp') 1x,
            url('../img/NoroTatsuhito_key-visual_photo_only.jpg') 1x
        );
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;
    z-index: 1;
    opacity: 0;
    animation: fadeIn 0.8s ease-in forwards;
    animation-delay: 0s;
}

/* ロゴコンテナ */
.logo-container {
    position: absolute;
    top: 14%;
    right: 8%;
    /* transform: translateY(-50%); */
    z-index: 2;
    max-width: 800px;
    width: 40vw;
    height: auto;;
    min-width: 300px;
}

/* ロゴ画像 */
.logo {
    width: 100%;
    height: auto;
    display: block;
}

/* SNSアイコン */
.sns-icons {
    position: fixed;
    bottom: max(60px, calc(30px + env(safe-area-inset-bottom, 0px)));
    right: calc(8% + 150px);
    z-index: 3;
    display: flex;
    gap: 37px;
    align-items: center;
    opacity: 0;
    animation: fadeIn 0.8s ease-in forwards;
    animation-delay: 0.6s;
}

.sns-icons a {
    display: block;
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.9;
}

.sns-icons a:hover {
    transform: scale(1.15);
    opacity: 1;
}

.sns-icons img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

/* DRAGONIX TOKYOアイコン */
.dragonix-icon {
    position: fixed;
    bottom: max(60px, calc(30px + env(safe-area-inset-bottom, 0px)));
    right: 8%;
    z-index: 3;
    display: flex;
    align-items: center;
    opacity: 0;
    animation: fadeIn 0.8s ease-in forwards;
    animation-delay: 0.8s;
}
.dragonix-icon a {
    display: block;
    width: 100px;
    height: 100%;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}   
.dragonix-icon a:hover {
    transform: scale(1.15);
    opacity: 0.9;
}
.dragonix-icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

/* タブレット対応 */
@media screen and (max-width: 1430px) {
    .logo-container {
        top: 9%;
        right: 5%;
        width: 38vw;
        min-width: 300px;
        max-width: 520px;
    }
    
    .dragonix-icon {
        right: 5%;
    }
    
    .sns-icons {
        right: calc(5% + 130px);
    }
}

/* スマートフォン対応 */
@media screen and (max-width: 1035px) {
    .background-image {
        background-position: 20% center;
    }
    
    .logo-container {
        top: 7%;
        right: 5%;
        width: 50vw;
        min-width: 240px;
        max-width: 300px;
    }
    
    .dragonix-icon {
        right: 5%;
    }
    
    .dragonix-icon a {
        width: 80px;
    }
    
    .sns-icons {
        right: calc(5% + 110px);
        gap: 24px;
    }
    
    .sns-icons a {
        width: 35px;
        height: 35px;
    }
}

/* 背景が明るくなる小さいサイズ対応（840px以下） */
@media screen and (max-width: 840px) {
    .sns-icons a {
        filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.8)) 
                drop-shadow(0 0 6px rgba(0, 0, 0, 0.6));
    }
}

/* 小さなスマートフォン対応 */
@media screen and (max-width: 490px) {
    .background-image {
        background-position: 30% center;
    }
    
    .logo-container {
        right: 6%;
        top: 12%;
        width: 62vw;
        min-width: 169px;
        max-width: 230px;
        /* min-width: 180px;
        max-width: 220px; */
    }
    
    .dragonix-icon {
        bottom: max(45px, calc(20px + env(safe-area-inset-bottom, 0px)));
        right: 6%;
    }
    
    .dragonix-icon a {
        width: 60px;
    }
    
    .sns-icons {
        bottom: max(45px, calc(20px + env(safe-area-inset-bottom, 0px)));
        right: calc(6% + 85px);
        gap: 18px;
    }
    
    .sns-icons a {
        width: 28px;
        height: 28px;
    }
}

/* 縦長画面対応 */
/* @media screen and (max-aspect-ratio: 3/4) {
    .background-image {
        background-position: 40% center;
    }
    
    .logo-container {
        right: 5%;
        top: 30%;
        width: 55vw;
        min-width: 150px;
        max-width: 200px;
    }
} */

/* 横長画面対応 */
/* @media screen and (min-aspect-ratio: 16/9) {
    .background-image {
        background-position: 15% center;
    }
    
    .logo-container {
        right: 15%;
        width: 30vw;
        min-width: 300px;
        max-width: 550px;
    }
} */