/* website-a/style.css - responsive for tablet & desktop only */

* {
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: rgb(0, 0, 0);
    color: #fff;
    min-height: 100vh;
    margin: 0;
}

section#menu-ver {
    background: linear-gradient(to right, rgb(36, 30, 30), rgba(0, 0, 0, 0.5));
    padding: 10px 24px;
    display: flex;
    gap: 12px;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 80px;
}

section#menu-ver a {
    display: inline-flex;
    align-items: center;
    font-size: 30px;
    color: white;
    text-decoration: none;
    padding: 8px 18px;
    margin-right: 8px;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

section#menu-ver a:hover {
    background-color: rgba(192, 184, 184, 0.12);
    cursor: pointer;
}

/* Layout for country lists - stacked sections, aligned with menu offset */
section#country,
section#country-2,
section#country-3 {
    margin: 0 auto;
    padding: 140px 24px 60px; /* top padding accounts for fixed menu */
    max-width: 1100px;
    box-sizing: border-box;
}

section#country {
    font-size: 45px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

section#country-2 {
    font-size: 45px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

section#country-3 {
    font-size: 45px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
}

/* Button-like country link styles (shared) */
section[id^="country"] a {
    display: block;
    width: 100%;
    max-width: 640px;
    padding: 12px 16px;
    text-align: center;
    color: #fff;
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 1px 0 rgba(0,0,0,0.3) inset;
}

section[id^="country"] a:hover {
    background: rgba(255,255,255,0.1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.4) inset;
}

/* Tablet adjustments (<= 1024px) - reduce sizes, center content */
@media screen and (max-width: 1024px) {
    section#menu-ver {
        padding: 8px 16px;
        height: 72px;
    }

    section#country,
    section#country-2,
    section#country-3 {
        padding-top: 120px;
        max-width: 900px;
        padding-left: 16px;
        padding-right: 16px;
    }

    section#country,
    section#country-2,
    section#country-3 {
        font-size: 36px;
    }

    section[id^="country"] a {
        max-width: 560px;
        padding: 10px 14px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Desktop wide screens - slightly increase spacing */
@media screen and (min-width: 1400px) {
    section#country,
    section#country-2,
    section#country-3 {
        max-width: 1300px;
    }
}

/* Desktop: show three country sections side-by-side (横並び) */
@media screen and (min-width: 1025px) {
    /* make each section a column */
    section#country,
    section#country-2,
    section#country-3 {
        float: left;
        width: 33.333%;
        padding-top: 140px; /* keep space for fixed menu */
        padding-left: 24px;
        padding-right: 24px;
        box-sizing: border-box;
        max-width: none; /* allow percentage width */
    }

    /* center the link buttons within each column */
    section[id^="country"] a {
        margin-left: 0;
        margin-right: 0;
    }

    /* clear floats after the three sections */
    body::after {
        content: "";
        display: block;
        clear: both;
    }
}

