@charset "utf-8";

#container:has(.next300-page) #container_title {
    display: none;
}

.next300-page {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0 0 40px;
    box-sizing: border-box;
}

.next300-banner {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.next300-banner::before {
    content: '';
    display: block;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #b8924c, #d8ba7a, #b8924c);
}

.next300-banner-head {
    padding: 35px 20px 20px;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 20px;
}

.next300-banner-head h1 {
    font-size: 34px;
    font-weight: 900;
    color: #1e293b;
    letter-spacing: -1.5px;
    margin: 0;
    line-height: 1.35;
    word-break: keep-all;
}

.next300-grid-wrap {
    padding: 10px 24px 28px;
}

.next300-grid {
    display: grid;
    grid-template-columns: repeat(16, minmax(0, 1fr));
    gap: 5px;
}

.next300-person {
    position: relative;
    margin: 0;
    padding: 0;
    border: 0;
    outline: none;
    cursor: default;
    overflow: visible;
    -webkit-tap-highlight-color: transparent;
}

.next300-person img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border: 1px solid #e2e8f0;
    background: #fff;
    transition: all 0.2s;
}

.next300-person figcaption {
    position: absolute;
    left: 50%;
    bottom: 5px;
    transform: translateX(-50%);
    max-width: calc(100% - 8px);
    padding: 3px 6px;
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.86);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease;
    z-index: 5;
}

.next300-person:hover figcaption,
.next300-person:focus figcaption,
.next300-person:focus-within figcaption {
    opacity: 1;
    visibility: visible;
}

.next300-person:hover,
.next300-person:focus-within {
    z-index: 10;
}

.next300-person:hover img,
.next300-person:focus img,
.next300-person:focus-within img {
    transform: scale(1.15);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: #b8924c;
}

.next300-history-box {
    margin: 0 24px 32px;
    padding: 40px 42px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.next300-history-box h2 {
    font-size: 30px;
    font-weight: 900;
    color: #0f172a;
    text-align: center;
    margin: 0 0 24px;
    letter-spacing: -1px;
    word-break: keep-all;
}

.next300-history-box p {
    font-size: 16.5px;
    line-height: 1.9;
    color: #334155;
    word-break: keep-all;
    margin: 0;
}

.next300-history-box p + p {
    margin-top: 18px;
}

.next300-history-contact {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    font-size: 16px;
    color: #475569;
    font-weight: 600;
    word-break: keep-all;
}

.next300-history-contact span {
    color: #b8924c;
    font-weight: 800;
}

.next300-mobile-br {
    display: none;
}

@media (max-width: 1024px) {
    .next300-grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .next300-banner-head h1 {
        font-size: 26px;
    }

    .next300-grid-wrap {
        padding: 10px 16px 24px;
    }

    .next300-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }

    .next300-history-box {
        margin: 0 16px 24px;
        padding: 28px 20px;
    }

    .next300-history-box h2 {
        font-size: 24px;
    }

    .next300-mobile-br {
        display: block;
    }

    .next300-person figcaption {
        opacity: 0 !important;
        visibility: hidden !important;
    }

    .next300-person:active figcaption,
    .next300-person:focus figcaption,
    .next300-person:focus-within figcaption {
        opacity: 1 !important;
        visibility: visible !important;
    }
}

@media (max-width: 520px) {
    .next300-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

