@charset "UTF-8";

/* ==========================================================================
   Pattern 49: Jewelry
   Designer: "漆黒の世界観とスポットライトの演出家"
   Concept: 完全な背景黒、スティッキースクロール連動UI、シネマティックなフェード
   ========================================================================== */

:root {
    /* Colors */
    --c-black: #000000;
    --c-white: #FFFFFF;
    --c-gray-light: #AAAAAA;
    --c-gray-dark: #333333;

    /* Typography */
    --font-en: 'Cinzel', serif;
    --font-ja: 'Noto Serif JP', serif;
}

/* Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--c-black);
    color: var(--c-white);
    font-family: var(--font-ja);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

/* ローディング制御 (スクロールロック) */
body.is-loading {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

/* Utilities */
.text-center {
    text-align: center;
}

/* =========================================
   Loader
========================================= */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--c-black);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.loader.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    font-family: var(--font-en);
    font-size: 24px;
    letter-spacing: 0.2em;
    color: var(--c-white);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    }

    100% {
        opacity: 0.3;
    }
}

/* =========================================
   Navbar
========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background-color 0.4s, padding 0.4s;
}

.navbar.is-scrolled {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 20px 50px;
}

.navbar-brand {
    font-family: var(--font-en);
    font-size: 20px;
    letter-spacing: 0.15em;
}

.navbar-menu {
    display: flex;
    gap: 40px;
    font-family: var(--font-en);
    font-size: 12px;
    letter-spacing: 0.1em;
}

.navbar-menu span {
    cursor: pointer;
    transition: color 0.3s;
}

.navbar-menu span:hover {
    color: var(--c-gray-light);
}

/* =========================================
   Hero Section
========================================= */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 下に行くほど黒を濃くし、次の黒背景と馴染ませる */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.8) 80%, rgba(0, 0, 0, 1) 100%);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: slowZoom 20s infinite alternate linear;
}

@keyframes slowZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero-content {
    text-align: center;
    z-index: 10;
}

.hero-title {
    font-size: 40px;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-family: var(--font-en);
    font-size: 14px;
    letter-spacing: 0.3em;
    color: var(--c-gray-light);
}

/* Reveal Animation (CSSのみで初期フェードイン) */
body:not(.is-loading) .reveal-text {
    animation: fadeUp 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.reveal-text {
    opacity: 0;
    transform: translateY(30px);
}

.delay-1 {
    animation-delay: 0.5s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.scroll-text {
    font-family: var(--font-en);
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--c-gray-light);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background-color: var(--c-white);
    opacity: 0.3;
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--c-white);
    animation: dropLine 2s infinite ease-in-out;
}

@keyframes dropLine {
    to {
        top: 100%;
    }
}

/* =========================================
   Sticky Scroll Story (The Core Feature)
========================================= */
.story-section {
    position: relative;
    /* この中のテキスト群を全部スクロールしきるまで、高さを確保する */
}

/* Sticky Container (画面に固定される領域) */
.sticky-container {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    z-index: 1;
    /* テキストより奥 */
    overflow: hidden;
}

.sticky-visual {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sticky-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    /* 少し暗く落とす */
    transition: opacity 0.8s ease-in-out;
    /* 画像切り替え時のフェード用 */
}

/* 左右・下を黒グラデーションでぼかし、テキストを見やすくする */
.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.8) 80%, rgba(0, 0, 0, 1) 100%);
}

/* Scroll Content Container (実際にスクロールされる領域) */
.scroll-content-container {
    position: relative;
    z-index: 2;
    /* Stickyコンテナより手前 */
    padding-bottom: 50vh;
    /* 最後の要素が中央に来るように余白 */
    /* Stickyの背景上をスクロールするよう、ネガティブマージンで重なりを調整 */
    margin-top: -100vh;
}

.story-block {
    height: 100vh;
    /* 1画面につき1メッセージ */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;

    /* 初期状態は暗くしておく。JSのIntersectionObserverで is-active を付与 */
    opacity: 0.2;
    transform: scale(0.95);
    filter: blur(4px);
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.story-block.is-active {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

.story-heading {
    font-family: var(--font-en);
    font-size: 24px;
    letter-spacing: 0.2em;
    margin-bottom: 30px;
    color: var(--c-gray-light);
}

.story-text {
    font-size: 20px;
    line-height: 2.2;
    max-width: 600px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
}

/* =========================================
   Showcase Section
========================================= */
.showcase-section {
    position: relative;
    z-index: 10;
    background-color: var(--c-black);
    padding: 150px 0;
}

.section-title {
    font-family: var(--font-en);
    font-size: 28px;
    letter-spacing: 0.15em;
    margin-bottom: 80px;
}

.showcase-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 0 20px;
}

.showcase-item {
    display: block;
    text-align: center;
}

.item-visual {
    overflow: hidden;
    margin-bottom: 20px;
    background-color: #111;
    /* ロード前のプレースホルダ */
}

.item-visual img {
    aspect-ratio: 3/4;
    object-fit: cover;
    opacity: 0.8;
    transition: transform 0.8s, opacity 0.8s;
}

.showcase-item:hover .item-visual img {
    transform: scale(1.05);
    opacity: 1;
}

.item-info h4 {
    font-family: var(--font-en);
    font-size: 16px;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    font-weight: 500;
}

.item-info p {
    font-size: 12px;
    color: var(--c-gray-light);
    letter-spacing: 0.05em;
}

.btn-wrap {
    margin-top: 80px;
}

.btn-primary {
    background: transparent;
    border: 1px solid var(--c-gray-light);
    color: var(--c-white);
    font-family: var(--font-en);
    font-size: 12px;
    letter-spacing: 0.2em;
    padding: 15px 40px;
    transition: all 0.4s;
}

.btn-primary:hover {
    background: var(--c-white);
    color: var(--c-black);
    border-color: var(--c-white);
}

/* =========================================
   Footer
========================================= */
.footer {
    border-top: 1px solid var(--c-gray-dark);
    padding: 60px 0;
    background: var(--c-black);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-logo {
    font-family: var(--font-en);
    font-size: 24px;
    letter-spacing: 0.2em;
}

.footer-nav {
    display: flex;
    gap: 30px;
    font-family: var(--font-en);
    font-size: 10px;
    letter-spacing: 0.1em;
    color: var(--c-gray-light);
}

.footer-nav a:hover {
    color: var(--c-white);
}

.copyright {
    font-family: var(--font-en);
    font-size: 10px;
    color: var(--c-gray-dark);
}

/* =========================================
   Responsive
========================================= */
@media screen and (max-width: 768px) {
    .navbar {
        padding: 20px;
    }

    .navbar-menu {
        display: none;
    }

    .hero-title {
        font-size: 28px;
    }

    .story-text {
        font-size: 16px;
        width: 100%;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .footer-nav {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}