/* ===== ベース ===== */

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: #000;
    color: #fff;
    font-family: "Noto Sans JP", sans-serif;
    line-height: 1.5;
    overflow: hidden;
    font-size: 15px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    transition: 0.5s ease;
}

a:hover {
    opacity: 0.65;
}

/* 背景エフェクト */
#fx {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    display: block;
    z-index: 0;
}

/* フェード用ベール */
.veil {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: #000;
    opacity: 1;
    transition: opacity 1800ms ease 300ms;
    z-index: 3;
}

.veil.is-clear {
    opacity: 0;
}

.veil.is-clear.done {
    visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .veil {
        transition: none;
        opacity: 0;
    }
}

/* ===== ヘッダー・フッター ===== */
header {
    position: fixed;
    z-index: 4;
    top: 15px;
    left: 15px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1800ms ease 300ms;
    /* 表示の速さ＆遅延はお好みで */
}

header img {
    width: 130px;
    height: auto;
}

footer {
    position: fixed;
    z-index: 4;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1800ms ease 300ms;
    /* 表示の速さ＆遅延はお好みで */
}

/* ベールが透明になったら（.is-clear）footerを出す */
.veil.is-clear ~ header,
.veil.is-clear ~ footer {
    opacity: 1;
    pointer-events: auto;
}

/* ===== Canvas上に重ねる領域 ===== */
#contents {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    padding: 4vw;
    pointer-events: none;
    /* 背景hoverを優先 */
}

.tpl {
    pointer-events: auto;
}

/* ===== メイン縦並び（PC） ===== */
.tpl .main-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(1080px, 86vw);
    margin: 0 auto;
    text-align: center;
}

/* デフォルトの余白をリセット */
.tpl .main-area > * {
    margin: 0;
}

/* 要素ごとの個別余白（好きに調整してOK） */
.tpl .lead {
    margin: 0 0 17vh;
}

.tpl .comingsoon {
    margin: 0 0 5vh;
}

.tpl p.follow {
    margin: 0 0 2vh;
}

.tpl a.btn {
    margin: 0 0 6vh;
}

.tpl .logo {
    margin: 0 0 3vh;
}


/* リード（白帯）と “Coming Soon” のスケール感 */
.tpl .lead {
    width: min(460px, 38vw);
}

.tpl .comingsoon {
    width: min(420px, 34vw);
}

.tpl p {}

.tpl a.btn {
    font-size: 17px;
    display: inline-block;
    padding: .7em 2em;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #fff;
    color: #000;
    text-decoration: none;
    font-weight: bold;
    transition:
        /* 入場アニメ（← ここに遅延を効かせる） */
        opacity 600ms ease var(--stagger, 0ms),
        transform 600ms ease var(--stagger, 0ms),
        /* hover の色変化（遅延なし・即時） */
        background-color .5s ease,
        color .5s ease,
        border-color .5s ease;
}

.tpl a.btn:hover {
    background: transparent;
    color: #fff;
}

.tpl .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.tpl .logo img {
    height: 25px;
    width: auto;
}

/* ===== 左右の注意帯（常に見える固定配置） ===== */
.caution01,
.caution02 {
    position: fixed;
    z-index: 4;
    width: clamp(80px, 10vw, 100px);
    pointer-events: none;
}

.caution01 {
    left: 2vw;
    bottom: 4vh;
}

.caution02 {
    right: 2vw;
    bottom: 2vh;
}

.link-underline {
    text-decoration: underline;
    text-underline-offset: .22em;
    text-decoration-thickness: 1px;
}

.to-contact {
    font-size: 13px;
}

/* 入場アニメは keyframes に任せる。hover の transition に干渉しない */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.tpl [data-stagger] > * {
    opacity: 0;
    /* 初期は非表示 */
    transform: translateY(10px);
    /* ← transition は書かない（hover用と分離するため） */
}

.tpl.is-on [data-stagger] > * {
    animation: fadeUp 600ms ease forwards;
    animation-delay: var(--stagger, 0ms);
    /* JSが入れる個別ディレイを適用 */
}

:root {
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
}

header {
    top: calc(15px + var(--safe-top));
    left: calc(15px + var(--safe-left));
}

footer {
    bottom: calc(10px + var(--safe-bottom));
}

.caution01 {
    left: calc(2vw + var(--safe-left));
}

.caution02 {
    right: calc(2vw + var(--safe-right));
}

#contents {
    position: fixed;
    min-height: 100dvh;
}



/* --- SP最適化：ロゴ無し前提に微調整 --- */
@media (max-width: 900px) {

    html,
    body {
        line-height: 1.6;
        font-size: 13px;
    }

    .tpl .main-area {
        width: min(92vw, 560px);
    }

    header img {
        width: 100px;
        height: auto;
    }

    .caution01,
    .caution02 {
        position: fixed;
        z-index: 4;
        width: clamp(50px, 10vw, 70px);
        pointer-events: none;
    }

    .caution01 {
        left: 2vw;
        bottom: 4vh;
    }

    .caution02 {
        right: 2vw;
        top: 2vh;
    }

    .tpl .lead {
        width: min(170px, 50vw);
    }

    .tpl .comingsoon {
        width: min(170px, 50vw);
    }

    /* 要素ごとの個別余白（好きに調整してOK） */
    .tpl .lead {
        margin: 0 0 5vh;
    }

    .tpl .comingsoon {
        margin: 0 0 23vh;
    }

    .tpl p.follow {
        margin: 0 0 2vh;
    }

    .tpl a.btn {
        margin: 0 0 4vh;
    }

    .tpl .logo {
        margin: 0 0 2vh;
    }

    .tpl a.btn {
        font-size: 16px;
        padding: .5em 2em;
    }

    .tpl .logo {
        gap: 20px;
    }

    .tpl .logo img {
        height: 18px;
    }

    .to-contact {
        font-size: 11px;
    }

    footer {
        text-align: right;
        font-size: 9.5px;
        padding-right: 1em;
    }


}
