/* =================================
   Base
================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #0b0b0b;
    color: #f2f0eb;
    font-family:
        "Noto Sans JP",
        sans-serif;
    font-weight: 300;
}



/* =================================
   Header
================================= */

.collective-header {
    height: 90px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 5vw;

    border-bottom: 1px solid #222;
}


.logo {
    color: #f2f0eb;

    text-decoration: none;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 30px;

    letter-spacing: 0.08em;
}


.submit-link {
    color: #aaa;

    text-decoration: none;

    font-size: 12px;

    letter-spacing: 0.18em;

    transition: 0.3s;
}


.submit-link:hover {
    color: #fff;
}



/* =================================
   Intro
================================= */

.collective-intro {
    max-width: 900px;

    margin: 0 auto;

    padding:
        150px 30px
        120px;

    text-align: center;
}


.eyebrow {
    margin: 0 0 30px;

    color: #888;

    font-size: 11px;

    letter-spacing: 0.35em;
}


.collective-intro h1 {
    margin: 0;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: clamp(
        42px,
        6vw,
        72px
    );

    font-weight: 300;

    line-height: 1.25;

    letter-spacing: 0.04em;
}


.intro-text {
    max-width: 600px;

    margin:
        50px auto 0;

    color: #999;

    font-size: 13px;

    line-height: 2.3;

    letter-spacing: 0.05em;
}



/* =================================
   Trace List
================================= */

.trace-list {
    width: 90%;

    max-width: 1400px;

    margin: 0 auto;
}


.trace-item {
    display: grid;

    grid-template-columns:
        1.4fr 1fr;

    gap: 7vw;

    align-items: center;

    padding:
        100px 0;

    border-top:
        1px solid #222;
}


.trace-item:nth-child(even) {
    grid-template-columns:
        1fr 1.4fr;
}


.trace-item:nth-child(even)
.trace-image {
    order: 2;
}


.trace-item:nth-child(even)
.trace-info {
    order: 1;
}



/* =================================
   Image
================================= */

.trace-image {
    width: 100%;

    overflow: hidden;

    background: #111;
}


.trace-image img {
    display: block;

    width: 100%;

    max-height: 700px;

    object-fit: cover;

    transition:
        transform 0.8s
        ease;
}


.trace-image:hover img {
    transform: scale(1.02);
}



/* =================================
   Information
================================= */

.trace-info {
    padding: 20px;
}


.trace-number {
    margin: 0 0 25px;

    color: #777;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 15px;

    letter-spacing: 0.25em;
}


.trace-info h2 {
    margin: 0 0 20px;

    font-family:
        "Cormorant Garamond",
        serif;

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

    font-weight: 300;

    line-height: 1.2;
}


.trace-meta {
    display: flex;

    gap: 20px;

    margin-bottom: 35px;

    color: #777;

    font-size: 11px;

    letter-spacing: 0.12em;
}


.trace-memory {
    max-width: 500px;

    margin: 0;

    color: #aaa;

    font-size: 13px;

    line-height: 2.1;

    letter-spacing: 0.04em;
}


.trace-name {
    margin-top: 30px;

    color: #777;

    font-size: 11px;

    letter-spacing: 0.1em;
}



/* =================================
   Loading / Empty / Error
================================= */

.loading,
.empty,
.error {
    padding: 150px 20px;

    text-align: center;

    color: #777;

    font-size: 13px;

    letter-spacing: 0.1em;
}



/* =================================
   Footer
================================= */

.collective-footer {
    padding: 100px 20px;

    text-align: center;

    border-top:
        1px solid #222;
}


.collective-footer p {
    margin: 0;

    color: #555;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 14px;

    letter-spacing: 0.3em;
}



/* =================================
   Mobile
================================= */

@media (max-width: 768px) {


    .collective-header {
        height: 70px;

        padding: 0 20px;
    }


    .logo {
        font-size: 24px;
    }


    .collective-intro {
        padding:
            100px 20px
            80px;
    }


    .collective-intro h1 {
        font-size: 40px;
    }


    .intro-text {
        font-size: 12px;
    }


    .trace-list {
        width: 92%;
    }


    .trace-item,
    .trace-item:nth-child(even) {

        display: block;

        padding: 70px 0;

    }


    .trace-item:nth-child(even)
    .trace-image,
    .trace-item:nth-child(even)
    .trace-info {

        order: initial;

    }


    .trace-info {

        padding:
            30px 5px 0;

    }


    .trace-info h2 {

        font-size: 36px;

    }

}
/* ==========================
   Submission Message
========================== */

.submission-message {
    display: none;
    margin: 0 auto 100px;
    padding: 60px 40px;
    border: 1px solid #333;
    text-align: center;
}

.submission-eyebrow {
    margin: 0 0 20px;
    color: #888;
    font-size: 11px;
    letter-spacing: 0.35em;
}

.submission-message h2 {
    margin: 0 0 25px;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size:
        clamp(36px, 5vw, 60px);

    font-weight: 400;
    line-height: 1.3;
}

.submission-message p:last-child {
    margin: 0;

    color: #999;

    font-size: 14px;
    line-height: 2;
}

.submission-message {
    display: none;
}

.submission-message.show {
    display: block;
}

@media (max-width: 768px) {

    .submission-message {
        margin-bottom: 70px;
        padding: 45px 25px;
    }

}
/* 受付完了メッセージの表示確認 */
#submission-message.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 10;
}
