﻿*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f7f8fa;
    color: #333333;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: #333333;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

    a:hover {
        color: #e6005c;
        opacity: 0.85;
    }

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

/* Layout Container: Max 1000px */
#defaultContainer {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px 40px;
}

/* Header Section: Max 1000px */
#header {
    max-width: 1000px;
    margin: 0 auto 20px;
    background: #ffffff;
    border-bottom: 1px solid #eaeaea;
}

.headertitle {
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    padding: 8px 15px;
}

    .headertitle h1 {
        font-size: 11px;
        color: #888888;
        font-weight: normal;
    }

.headercontents {
    padding: 15px 20px;
}

/* Top Contents: Grid Layout */
#topcontents {
    display: grid;
    grid-template-columns: 160px 1fr;
    grid-template-areas: "logo catch" "logo desc";
    align-items: center;
    column-gap: 24px;
    row-gap: 4px;
}

/* Logo: Keep Aspect Ratio */
#topimg {
    grid-area: logo;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

    #topimg img {
        width: 160px;
        height: auto;
        max-width: 100%;
        aspect-ratio: 160 / 22;
        object-fit: contain;
        display: block;
    }

/* Lead Catch: Top Right */
#topcome {
    grid-area: catch;
}

    #topcome .lead-catch {
        font-size: 13px;
        font-weight: bold;
        color: #222222;
        line-height: 1.4;
    }

/* Description: Bottom Right */
.top-description {
    grid-area: desc;
}

    .top-description p {
        font-size: 11px;
        color: #777777;
        line-height: 1.5;
    }

/* Main Visual: Max 1000px Center */
#bookimg {
    max-width: 1000px;
    margin: 0 auto 25px;
    padding: 0 15px;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
}

    #bookimg img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    }

/* Main Content: Max 1000px Center */
#enterbox {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.area-section {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.AreaTitleContainer {
    background: linear-gradient(135deg, #e6005c, #ff2a7a);
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

    .AreaTitleContainer::before {
        content: "";
        display: inline-block;
        width: 4px;
        height: 16px;
        background: #ffffff;
        border-radius: 2px;
    }

.enter-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Shop Button */
.EnterTitleContainerN h3 a,
.EnterTitleContainerH h3 a,
.EnterTitleContainerF h3 a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    background: #ffffff;
    border: 1px solid #e6005c;
    color: #e6005c;
    font-size: 16px;
    font-weight: bold;
    padding: 14px 40px 14px 20px;
    border-radius: 6px;
    line-height: 1.5;
    transition: all 0.25s ease;
}

    .EnterTitleContainerN h3 a::after,
    .EnterTitleContainerH h3 a::after,
    .EnterTitleContainerF h3 a::after {
        content: "▶";
        position: absolute;
        right: 18px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 12px;
    }

    .EnterTitleContainerN h3 a:hover,
    .EnterTitleContainerH h3 a:hover,
    .EnterTitleContainerF h3 a:hover {
        background: #e6005c;
        color: #ffffff;
        box-shadow: 0 4px 12px rgba(230, 0, 92, 0.25);
        transform: translateY(-2px);
    }

/* Recruit Wrapper */
.EnterGenreList {
    background: #fdfdfe;
    border: 1px solid #f0f1f3;
    border-radius: 6px;
    padding: 15px 20px;
    font-size: 13px;
    color: #555555;
}

    .EnterGenreList strong {
        color: #222222;
    }

/* Highlighted Recruit Buttons */
.area-sub-links {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

    .area-sub-links li {
        flex: 1;
        min-width: 250px;
    }

        .area-sub-links li a {
            display: flex;
            align-items: center;
            position: relative;
            background: #ffffff;
            border: 2px solid #e6005c;
            color: #e6005c;
            font-size: 14px;
            font-weight: bold;
            padding: 12px 35px 12px 16px;
            border-radius: 6px;
            box-shadow: 0 2px 6px rgba(230, 0, 92, 0.12);
            line-height: 1.5;
            transition: all 0.25s ease;
            width: 100%;
        }

            .area-sub-links li a::before {
                display: none;
            }

            .area-sub-links li a::after {
                content: "▶";
                color: #e6005c;
                position: absolute;
                right: 14px;
                top: 50%;
                transform: translateY(-50%);
                font-size: 11px;
                transition: color 0.25s ease;
            }

            .area-sub-links li a:hover {
                background: #e6005c;
                border-color: #e6005c;
                color: #ffffff;
                box-shadow: 0 4px 12px rgba(230, 0, 92, 0.25);
                transform: translateY(-2px);
            }

                .area-sub-links li a:hover::after {
                    color: #ffffff;
                }

/* Contents Box: Max 1000px Center */
.contentsbox {
    max-width: 1000px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    font-size: 12px;
    color: #666666;
    line-height: 1.8;
}

/* Footer Section: Max 1000px Center */
.footerlinksbox {
    max-width: 1000px;
    margin: 30px auto 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 20px;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
}

.AdminLinkContainer a {
    font-size: 12px;
    color: #666666;
}

    .AdminLinkContainer a:hover {
        color: #e6005c;
        text-decoration: underline;
    }

#footer {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    padding: 20px 0;
    font-size: 11px;
    color: #888888;
    line-height: 1.6;
}

    #footer small {
        display: block;
        margin-top: 5px;
        font-size: 11px;
    }

/* Tablet (600px - 899px) */
@media screen and (min-width: 600px) and (max-width: 899px) {
    #defaultContainer,
    #header,
    #bookimg,
    #enterbox,
    .contentsbox,
    .footerlinksbox,
    #footer {
        padding-left: 10px;
        padding-right: 10px;
    }

    #topcontents {
        column-gap: 15px;
    }

    .area-sub-links li {
        min-width: 200px;
    }

        .area-sub-links li a {
            font-size: 13px;
            padding: 11px 30px 11px 14px;
        }
}

/* Smartphone (under 600px) */
@media screen and (max-width: 599px) {
    #defaultContainer {
        padding: 0 10px 30px;
    }

    #bookimg,
    #enterbox {
        padding: 0 10px;
    }

    .headercontents {
        padding: 12px 10px;
    }

    /* Smartphone: Stack Layout */
    #topcontents {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    #topimg img {
        width: 140px;
        height: auto;
    }

    .AreaTitleContainer {
        padding: 10px 15px;
        font-size: 15px;
    }

    .enter-card {
        padding: 15px 10px;
        gap: 12px;
    }

    .EnterTitleContainerN h3 a,
    .EnterTitleContainerH h3 a,
    .EnterTitleContainerF h3 a {
        font-size: 15px;
        padding: 14px 38px 14px 14px;
        text-align: left;
        line-height: 1.45;
    }

    .EnterGenreList {
        padding: 12px 10px;
        font-size: 12px;
    }

    .area-sub-links {
        margin-top: 10px;
        gap: 10px;
    }

        .area-sub-links li {
            width: 100%;
            min-width: 100%;
        }

            .area-sub-links li a {
                font-size: 14px;
                padding: 13px 34px 13px 14px;
                text-align: left;
                line-height: 1.45;
            }
}
