/* 基本リセットとフォント指定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    width: 100%;
    height: 100%;
    background-color: #0b0a0f;
    /* 深い墨色（かすかに紫・青を含む） */
    color: #e5e5e5;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", Arial, sans-serif;
    letter-spacing: 0.08em;
    line-height: 2.2;
    overflow-x: hidden;
}

/* レイヤー共通 */
.layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100%;
}

.hidden {
    display: none !important;
}

/* ==================================
   第一層：扉ページ
   ================================== */
.door-layer {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.door-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./img/door_bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    z-index: -1;
}

.door-content {
    text-align: center;
    padding: 2rem 1.5rem;
    width: 100%;
    max-width: 600px;
}

.door-title {
    font-weight: 300;
    font-size: 1.05rem;
    /* 1行目は少し抑えめにする */
    margin-bottom: 2rem;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 2;
    /* 1行目と2行目の間隔づくり */
}

.door-title .highlight-text {
    display: block;
    margin-top: 0.8rem;
    font-size: 1.6rem;
    /* 2行目をメインにして大きく */
    font-weight: 400;
    /* ちょっと太めにして強調 */
    color: #e2d1bb;
    /* 神格性のある淡いシャンパンゴールド・砂色 */
    letter-spacing: 0.12em;
    text-shadow: 0 4px 15px rgba(226, 209, 187, 0.3);
    /* 神々しく少しだけ光らせる */
}

.door-sub {
    font-size: 0.8rem;
    color: #b0aab8;
    margin-bottom: 4rem;
}

.door-btn {
    background: transparent;
    border: 1px solid #7c7c7c;
    color: #ffffff;
    padding: 1rem 2.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: all 0.4s ease;
    font-family: inherit;
    width: 80%;
    max-width: 300px;
}

.door-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

/* ==================================
   トランジション（暗転・同調確認）
   ================================== */
.transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0b0a0f;
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

.transition-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.transition-message {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 300;
    opacity: 0;
    transition: opacity 1s ease;
}

.transition-message.show {
    opacity: 1;
}

/* ==================================
   第二層：展示ページ
   ================================== */
.exhibition-layer {
    z-index: 5;
    background-color: #0b0a0f;
    padding: 0 1.5rem 8rem;
}

/* 開いた直後のファーストビューはテキストだけで100vhを占有させる */
.exhibition-header {
    text-align: center;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.intro-text {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: #ffffff;
}

.concept-text {
    font-size: 0.85rem;
    color: #c9c5d1;
    line-height: 2.2;
}

.collection {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8rem;
    /* スマホで石と石の間に十分な余白（呼吸）を持たせる */
}

.item {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease;
}

.item.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.item-visual {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin-bottom: 3rem;
    aspect-ratio: 1/1;
    overflow: hidden;
}

.item-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* SOLD演出 */
.sold-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 10, 15, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.item.sold .sold-layer {
    opacity: 1;
}

.sold-layer span {
    color: #ffffff;
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    font-weight: 300;
}

.item.sold .buy-btn {
    display: none;
}

.item-info {
    text-align: center;
}

.item-name {
    font-size: 1.05rem;
    font-weight: 300;
    margin-bottom: 2rem;
    /* 価格との余白を少し広げる */
    color: #ffffff;
    line-height: 1.6;
}

.item-catch {
    display: block;
    font-size: 0.8rem;
    color: #e2d1bb;
    /* 1ページ目の強調色と統一 */
    margin-top: 0.4rem;
    opacity: 0.9;
    letter-spacing: 0.1em;
}

.item-price {
    font-size: 1.15rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.item-status {
    font-size: 0.75rem;
    color: #8c8696;
    margin-bottom: 2.5rem;
}

.buy-btn {
    display: inline-block;
    text-decoration: none;
    background: #e5e5e5;
    color: #0b0a0f;
    border: none;
    padding: 1rem 0;
    width: 260px;
    /* 全てのボタンを同じサイズに統一 */
    max-width: 90vw;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.buy-btn:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

/* ==================================
   展示ページ末尾要素
   ================================== */
.exhibition-footer {
    text-align: center;
    margin-top: 10rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.final-statement {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 6rem;
    line-height: 2.5;
}

.conditions {
    font-size: 0.8rem;
    color: #8c8696;
    margin-bottom: 6rem;
}

.tax-note {
    font-size: 0.75rem;
    color: #5c5966;
}

/* アニメーション用クラス */
.fade-out {
    opacity: 0 !important;
    pointer-events: none;
}