/* ===== Loader Overlay ===== */
#loader {
    position: fixed;
    inset: 0;                 /* top, right, bottom, left = 0 */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    z-index: 9999;
    transition: opacity .4s ease;
}

/* シンプルな CSS スピナー */
.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #ccc;
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
/* フェード後に視認もクリックも完全に消す */
#loader.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

@keyframes spin { to { transform: rotate(360deg); } }

.vertical-brand {
    position: fixed;        /* ←ここをfixedに */
    left: 28px;             /* 画面左端からしっかり余白 */
    top: 140px;             /* 画面上端からヘッダー分下げる */
    width: fit-content;
    height: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: 'Futura', 'Noto Sans JP', sans-serif;
    font-size: 2.1rem;
    font-weight: 500;
    letter-spacing: .08em;
    background: transparent;
    padding: 18px 0 20px 0;
    z-index: 1001;            /* ヘッダーより上に来ないよう注意（ヘッダーはz-index:100） */
    color: #111;
    line-height: 1.1;
    pointer-events: none;    /* クリックなどUIに一切干渉しない */
}



/* ヒーロービュー レイアウト全体 */
.hero {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-end;
    gap: 36px;
    padding: 0 0 0 110px; /* 左の余白を大きめ確保 */
    background: none;
    min-height: 660px;
    max-width: calc(100vw - 110px);
}

.hero-item {
    position: relative;
    background: none;
    border: none;
    display: flex;
    align-items: stretch;
    justify-content: center;
    overflow: visible;
}

.hero-left, .hero-right {
    flex: 0 0 320px;
    max-width: 320px;
    height: 480px;
    z-index: 2;
}

.hero-center {
    flex: 0 0 450px;
    max-width: 450px;
    height: 600px;
    z-index: 3;
    margin: 0 0 24px 0;
    box-shadow: 0 6px 24px 0 rgba(80,80,80,0.06);
}

.hero-left { margin-bottom: 44px; }
.hero-right { margin-bottom: 44px; }

/* 画像をジャストサイズで見せる */
.hero-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity .6s;
    border-radius: 0;
    box-shadow: none;
}

/* キャッチコピー：中央左揃え、1行ごと白背景 */
.hero-headline {
    position: absolute;
    top: 55%;
    left: 7%;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8em;
}
.hero-headline p {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 2.8rem;
    font-weight: 900;
    background: #fff;
    color: #111;
    margin-bottom: 0.1em;
    margin-left: 0;
    line-height: 1.0;
    letter-spacing: 0.08em;
    padding: 0.09em 0.36em 0.08em 0.22em;
    border-radius: 0;
    display: inline-block;
    box-decoration-break: clone;
}

/* サブキャプション中央下 */
.hero-subcaption {
    position: absolute;
    right: 0;
    bottom: 72px;
    color: white;
    font-weight: 700;
    font-size: 1.18rem;
    letter-spacing: 0.03em;
    padding: 1em 2.2em 1em 1.5em;
    border-radius: 0;
    z-index: 5;
    line-height: 1.7;
    background: linear-gradient(45deg, black, #345);
    box-shadow: 0 6px 6px 4px rgba(80, 80, 80, 0.5);
    padding-right: 124px;
}

@media (max-width: 768px) {
    .hero{
        width: 100vw;
        max-width: 100vw;
        height: 80vh;
        position: relative;
        overflow: hidden;
        padding: 0;
    }
    .hero-headline{
        top: 43vh;
        left: 2vw;
    }
    .hero-headline p {
        font-size: 32px;
    }
    
    .hero-subcaption {
        right: 0;
        bottom: 0;
        padding: 12px;
        font-size: 18px;
        width: 80vw;
        height: fit-content;
        text-align: center;
        color: white;
        white-space: pre-wrap;
        word-break: keep-all;
    }

    .hero-center, .hero-right {
        position: absolute;
        flex: 0 0 50vw;
        z-index: 2;
    }

    .hero-left {
        position: absolute;
        flex: 0 0 90vw;
        width: 90vw;
        max-width: 90vw;
        height: 110vw;
        z-index: 3;
        margin: 0 5vw 5vw 0;
        box-shadow: 0 6px 24px 0 rgba(80,80,80,0.6);
        top: 2vh;
        left: -18vw;
    }

    .hero-center { 
        top: 16vh;
        right: -0vw;
        max-width: 50vw;
        width: 50vw;
        height: 55vw;
    }
    .hero-right {
        top: 50vh;
        right: -5vw;
        max-width: 40vw;
        width: 40vw;
        height: 45vw;
    }
    
    .vertical-brand{
        display: none;
    }
}