/* =========================================================
   links.css
   関連学会ポスター・チラシの掲示ページ専用CSS
   ========================================================= */


/* =========================================================
   1. Page Base
   ========================================================= */

.page-related-links .related-links-content {
    width: 100%;
    max-width: 100%;
    color: #333;
    font-size: 1rem;
    line-height: 1.9;
}

.page-related-links p {
    margin: 0 0 0.9rem;
    line-height: 1.9;
}


/* =========================================================
   2. Introduction
   ========================================================= */

.related-introduction {
    margin: 1.5rem 0 2.7rem;
}

.related-introduction p {
    margin: 0;
}


/* =========================================================
   3. Main Sections
   ========================================================= */

.related-section {
    margin: 0 0 3rem;
}

.related-section>h2 {
    position: relative;

    margin: 0 0 1.2rem;
    padding-left: 14px;

    color: #1e2d55;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.5;
}

.related-section>h2::before {
    content: "";

    position: absolute;
    top: 0.25em;
    left: 0;

    width: 4px;
    height: 1.2em;

    border-radius: 2px;

    background: linear-gradient(to bottom,
            #d94b71,
            #f0a6b8);
}


/* =========================================================
   4. Basic Information
   ========================================================= */

.related-basic-information {
    margin-bottom: 0.5rem;
}

.related-basic-information p {
    margin-bottom: 0.3rem;
}

.related-basic-information strong {
    color: #1e2d55;
    font-weight: 700;
}


/* =========================================================
   5. Rule Lists
   ========================================================= */

.related-rule-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.related-rule-list li {
    position: relative;

    margin: 0 0 0.45rem;
    padding-left: 1.2rem;

    color: #333;
    line-height: 1.8;
}

.related-rule-list li:last-child {
    margin-bottom: 0;
}

.related-rule-list li::before {
    content: "・";

    position: absolute;
    top: 0;
    left: 0;

    color: #333;
    font-weight: 700;
}


/* =========================================================
   6. Deadline
   ========================================================= */

.related-deadline {
    color: #e60012;
    font-weight: 700;
}


/* =========================================================
   7. Application
   ========================================================= */

.related-application-section p {
    margin-bottom: 0.35rem;
}

.related-apply-button-wrap {
    display: flex;
    justify-content: center;

    margin: 1.5rem 0 0.5rem;
}

.related-apply-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 230px;
    max-width: 100%;
    padding: 0.75rem 2.2rem;

    background: linear-gradient(135deg,
            #f03a88 0%,
            #d92770 100%);

    border: 1px solid #be1e5f;
    border-radius: 6px;

    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.04em;
    text-align: center;
    text-decoration: none;

    box-shadow: 0 4px 10px rgba(217, 39, 112, 0.2);

    transition:
        background 0.25s ease,
        transform 0.2s ease,
        box-shadow 0.25s ease;
}

.related-apply-button:hover {
    background: linear-gradient(135deg,
            #d92770 0%,
            #ba1959 100%);

    color: #fff;

    transform: translateY(-2px);

    box-shadow: 0 7px 16px rgba(217, 39, 112, 0.28);
}

.related-apply-button:active {
    transform: translateY(0);
}


/* =========================================================
   8. Arrival Deadline
   ========================================================= */

.related-arrival-section {
    margin: 2.5rem 0 3rem;
}

.related-arrival-section p {
    margin: 0;
}

.related-arrival-date {
    color: #111;
    font-size: 1.05rem;
    font-weight: 700;
}

.related-arrival-note {
    margin-top: 0.5rem !important;
    font-size: 0.95rem;
}


/* =========================================================
   9. Contact Box
   ========================================================= */

.related-contact-box {
    width: 100%;
    max-width: 590px;

    margin: 2.5rem 0 1rem;
    padding: 1.25rem 1.4rem;

    background: #f8dce7;
    border: 1px solid #1e2d55;

    color: #111;
}

.related-contact-box h2 {
    margin: 0 0 0.65rem;

    color: #111;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
}

.related-contact-box p {
    margin: 0;

    color: #111;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.9;
}

.related-contact-box strong {
    font-weight: 700;
}


/* =========================================================
   10. Responsive
   ========================================================= */

@media (max-width: 768px) {

    .page-related-links .related-links-content {
        font-size: 0.95rem;
    }

    .related-introduction {
        margin: 1.3rem 0 2.3rem;
    }

    .related-section {
        margin-bottom: 2.5rem;
    }

    .related-section>h2 {
        padding-left: 12px;
        font-size: 1.18rem;
    }

    .related-rule-list li {
        padding-left: 1.15rem;
        font-size: 0.94rem;
    }

    .related-apply-button-wrap {
        margin-top: 1.3rem;
    }

    .related-apply-button {
        width: 100%;
        min-width: 0;

        padding: 0.9rem 1.2rem;

        font-size: 1rem;
    }

    .related-arrival-date {
        font-size: 1rem;
    }

    .related-arrival-note {
        font-size: 0.9rem;
    }

    .related-contact-box {
        max-width: 100%;
        padding: 1.1rem;
    }

    .related-contact-box p {
        font-size: 0.9rem;
        overflow-wrap: anywhere;
    }
}