#maincontents {
    position: absolute;
    top: 0;
    left: 0;
    color: black;
    width: 100vw;
    height: 100vh;
}

#初期読み込みタイトル {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000000;
    font-size: clamp(18px, 4vw, 44px);
    font-weight: 600;
    letter-spacing: 0.18em;
    line-height: 1.5;
    white-space: nowrap;
    opacity: 0;
    filter: blur(15px);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 30px rgba(255, 255, 255, 0.25);
    z-index: 10;
    pointer-events: none;
}



.year-counter {
    /* left: 0; */
    position: absolute;
    right: clamp(28px, 5vw, 72px);
    bottom: clamp(28px, 5vw, 72px);
    display: none;
    align-items: baseline;
    gap: 12px;
    color: #fff;
    z-index: 10;
    pointer-events: none;
    user-select: none;
    filter: blur(2px);
    opacity: 0.0;
}

.year-counter__value {
    font-size: clamp(64px, 8vw, 130px);
    font-weight: 500;
    line-height: 0.8;
    letter-spacing: -0.06em;
    font-variant-numeric: tabular-nums;
    text-shadow:
        0 3px 30px rgba(0, 0, 0, 0.3);
}

.year-counter__unit {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.25em;
}

/* 最後の画像５枚につけているhtmlcss */
.year-card {
    position: relative;

    width: 100vw;
    height: 100vh;

    box-sizing: border-box;

    display: flex;
    align-items: flex-end;

    padding: clamp(32px, 6vw, 96px);

    overflow: hidden;

    color: #fff;

    font-family:
        "Inter",
        "Noto Sans JP",
        sans-serif;

    background: transparent;

    pointer-events: none;
}


/* ================================
   上部ラベル
================================ */

.year-card__eyebrow {
    position: absolute;

    top: clamp(28px, 5vw, 72px);
    left: clamp(32px, 6vw, 96px);

    display: flex;
    align-items: center;
    gap: 14px;

    font-size: clamp(11px, 0.9vw, 14px);
    font-weight: 600;

    letter-spacing: 0.28em;

    color: rgba(255, 255, 255, 0.6);

    text-shadow:
        0 2px 14px rgba(0, 0, 0, 0.35);
}

.year-card__eyebrow::before {
    content: "";

    width: 42px;
    height: 1px;

    background:
        rgba(255, 255, 255, 0.55);
}


/* ================================
   メインコンテンツ
================================ */

.year-card__content {
    position: relative;

    width: min(720px, 70vw);

    z-index: 2;
}


.year-card__content::before {
    content: "";

    position: absolute;
    inset: -80px -120px;

    z-index: -1;

    background:
        radial-gradient(ellipse at left bottom,
            rgba(0, 0, 0, 0.5) 0%,
            rgba(0, 0, 0, 0.3) 40%,
            rgba(0, 0, 0, 0.12) 65%,
            rgba(0, 0, 0, 0) 85%);

    filter: blur(15px);

    pointer-events: none;
}

/* ================================
   年号
================================ */

.year-card__year {
    margin: 0 0 22px;

    font-size:
        clamp(80px, 12vw, 190px);

    font-weight: 300;

    line-height: 0.8;

    letter-spacing: -0.065em;

    color:
        rgba(255, 255, 255, 0.92);

    text-shadow:
        0 3px 30px rgba(0, 0, 0, 0.28);
}


/* ================================
   タイトル
================================ */

.year-card__title {
    margin: 0;

    font-size:
        clamp(32px, 4vw, 64px);

    font-weight: 500;

    line-height: 1.08;

    letter-spacing: -0.04em;

    color: #fff;

    text-shadow:
        0 3px 26px rgba(0, 0, 0, 0.4);
}


/* ================================
   説明
================================ */

.year-card__description {
    max-width: 560px;

    margin:
        clamp(20px, 2vw, 30px) 0 0;

    font-size:
        clamp(14px, 1.2vw, 18px);

    font-weight: 400;

    line-height: 1.9;

    letter-spacing: 0.03em;

    color:
        rgba(255, 255, 255, 0.72);

    text-shadow:
        0 2px 16px rgba(0, 0, 0, 0.45);
}


/* ================================
   ボタンエリア
================================ */

.year-card__actions {
    margin-top:
        clamp(28px, 3vw, 44px);

    pointer-events: auto;
}


/* ================================
   リンクボタン
================================ */

.year-card__link {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 16px;

    min-width: 180px;

    padding:
        14px 22px;

    box-sizing: border-box;

    border:
        1px solid rgba(255, 255, 255, 0.28);

    border-radius: 999px;

    color: #fff;

    text-decoration: none;

    font-size: 13px;

    font-weight: 500;

    letter-spacing: 0.08em;

    background:
        rgba(0, 0, 0, 0.16);

    backdrop-filter:
        blur(10px);

    -webkit-backdrop-filter:
        blur(10px);

    pointer-events: auto;

    cursor: pointer;

    transition:
        transform 0.35s ease,
        background 0.35s ease,
        border-color 0.35s ease;
}


.year-card__link span {
    display: inline-block;

    font-size: 17px;

    line-height: 1;

    transition:
        transform 0.35s ease;
}


.year-card__link:hover {
    transform:
        translateY(-3px);

    background:
        rgba(255, 255, 255, 0.13);

    border-color:
        rgba(255, 255, 255, 0.55);
}


.year-card__link:hover span {
    transform:
        translate(3px,
            -3px);
}


/* ================================
   右下番号
================================ */

.year-card__number {
    position: absolute;

    right:
        clamp(28px, 5vw, 72px);

    bottom:
        clamp(28px, 5vw, 72px);

    font-size:
        clamp(11px, 0.9vw, 14px);

    font-weight: 500;

    letter-spacing: 0.2em;

    color:
        rgba(255, 255, 255, 0.38);

    text-shadow:
        0 2px 12px rgba(0, 0, 0, 0.35);
}


/* ================================
   レスポンシブ
================================ */

@media (max-width: 768px) {

    .year-card {
        padding: 28px;
    }

    .year-card__eyebrow {
        top: 28px;
        left: 28px;
    }

    .year-card__content {
        width: 100%;
    }

    .year-card__year {
        font-size:
            clamp(70px, 24vw, 120px);
    }

    .year-card__title {
        font-size:
            clamp(30px, 8vw, 48px);
    }

    .year-card__description {
        max-width: 90%;

        font-size: 14px;

        line-height: 1.8;
    }

    .year-card__number {
        right: 28px;
        bottom: 28px;
    }
}