/* ===== Theme ===== */
:root {
    --primary: #E07A2D;
    --primary-dark: #C7641F;
    --primary-light: #FFF2E6;
    --text-main: #3F3A36;
    --bg-main: #FFF9F3;
}

/* ===== Base ===== */
body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: "Noto Sans JP", system-ui, -apple-system, sans-serif;
    padding-top: 72px;
}

/* ===== Navbar ===== */
.navbar-custom {
    background-color: var(--primary);
}

.navbar-custom .navbar-brand {
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: 1.5rem;
    color: #FFFFFF;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--primary-light);
    font-weight: 700;
}

.navbar-custom .nav-link {
    position: relative;
    display: inline-block;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    padding-left: 1rem;
    padding-right: 1rem;
}

.navbar-custom .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background-color: var(--primary-light);
    transition: width 0.5s ease;
}

.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after {
    width: 100%;
}

.navbar-custom .navbar-toggler {
    border-color: #FFFFFF;
}

.navbar-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255,255,255,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar-custom .navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

/* ===== Hero / Sections ===== */
.hero-copy {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1.35rem;
}

.hero-label {
    display: inline-block;
    margin: 0;
    padding: 0.4rem 0.9rem;
    font-size: 0.78rem;
    letter-spacing: 0.28em;
    color: var(--primary);
    font-weight: 700;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(224, 122, 45, 0.2);
    border-radius: 999px;
}

.hero-title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.15;
}

.hero-title::after {
    content: "";
    display: block;
    width: 78px;
    height: 4px;
    margin: 0.8rem auto 0;
    background: var(--primary);
    border-radius: 999px;
}

.hero-image {
    filter: brightness(1.05) contrast(0.9);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(224, 122, 45, 0.35);
}

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

.section-en {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: var(--primary);
    margin-bottom: 6px;
}

.section-jp {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--text-main);
}

/* ===== Policy Cards ===== */
.policy-card {
    width: 240px;
    height: 260px;
    background: #fff;
    border-radius: 20px;
    border: 2px solid rgba(224, 122, 45, 0.25);
    padding: 24px 16px;
    position: relative;
    text-align: center;
    transition: all 0.35s ease;
}

.policy-icon {
    font-size: 2.5rem;
    color: var(--primary);
    position: absolute;
    top: 64px;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.35s ease;
}

.policy-title {
    margin-top: 120px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.policy-detail {
    position: absolute;
    left: 0;
    right: 0;
    top: 120px;
    padding: 0 20px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-main);
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.35s ease;
}

.policy-card:hover {
    box-shadow: 0 12px 28px rgba(224, 122, 45, 0.35);
    border-color: var(--primary);
}

.policy-card:hover .policy-icon {
    top: 28px;
}

.policy-card:hover .policy-title {
    opacity: 0;
    transform: translateY(-10px);
}

.policy-card:hover .policy-detail {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Cards (Shared) ===== */
.policy-wide,
.history-card,
.access-card,
.sns-card,
.recruit-card,
.cafeteria-card {
    border: 2px solid rgba(224, 122, 45, 0.15);
    border-radius: 18px;
    background: #fff;
}

/* ===== History / Events ===== */
.history-circle-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(224, 122, 45, 0.25);
    box-shadow: 0 8px 16px rgba(224, 122, 45, 0.18);
}

.history-summary-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.event-hero {
    background: linear-gradient(180deg, #FFF4EA 0%, #FFF9F3 100%);
    padding-top: 16px;
    padding-bottom: 8px;
}

.event-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 6px;
    color: var(--text-main);
}

.event-list li {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    line-height: 1.6;
}

.event-list li::before {
    content: "・";
    color: var(--primary);
}

.season-board {
    display: grid;
    gap: 24px;
}

.season-row {
    background: #fff;
    border-radius: 20px;
    border: 2px solid rgba(224, 122, 45, 0.12);
    padding: 20px;
    display: grid;
    grid-template-columns: 140px 1fr 180px;
    gap: 18px;
    align-items: center;
}

.season-label {
    background: linear-gradient(180deg, rgba(224, 122, 45, 0.92), rgba(224, 122, 45, 0.75));
    color: #fff;
    border-radius: 18px;
    text-align: center;
    padding: 18px 12px;
    display: grid;
    gap: 6px;
}

.season-jp {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.season-en {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    font-weight: 700;
}

.season-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.season-month-card .card {
    border-radius: 14px;
    border: 1px solid rgba(224, 122, 45, 0.2);
}

.season-month-card .card-body {
    padding: 12px 14px;
}

.season-month-card .card-header {
    border-bottom: none;
    padding: 8px 12px;
    font-size: 1.05rem;
    letter-spacing: 0.08em;
}

.season-art {
    display: grid;
    gap: 12px;
    justify-items: center;
}

.art-circle {
    border-radius: 50%;
    background: #fff;
    border: 4px solid #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    background-size: cover;
    background-position: center;
}

.art-main {
    width: 140px;
    height: 140px;
    object-fit: cover;
    display: block;
}

.season-spring .season-label {
    background: linear-gradient(180deg, #FF6FA1 0%, #FFB2C8 100%);
}

.season-summer .season-label {
    background: linear-gradient(180deg, #FF9A3E 0%, #FFD18B 100%);
}

.season-autumn .season-label {
    background: linear-gradient(180deg, #C7773B 0%, #E6B47A 100%);
}

.season-winter .season-label {
    background: linear-gradient(180deg, #3BA7E4 0%, #8FD3FF 100%);
}


.season-spring .card-header {
    background: linear-gradient(180deg, #FF6FA1 0%, #FFB2C8 100%);
}

.season-summer .card-header {
    background: linear-gradient(180deg, #FF9A3E 0%, #FFD18B 100%);
}

.season-autumn .card-header {
    background: linear-gradient(180deg, #C7773B 0%, #E6B47A 100%);
}

.season-winter .card-header {
    background: linear-gradient(180deg, #3BA7E4 0%, #8FD3FF 100%);
}

.event-notes-card {
    border: 2px solid rgba(224, 122, 45, 0.15);
    border-radius: 18px;
    background: #fff;
}

.event-notes {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--text-main);
    line-height: 1.8;
}

/* ===== Buttons ===== */
.btn-home {
    background-color: var(--primary);
    color: #ffffff;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.5em 1.4em;
    border: none;
}

.btn-home:hover {
    background-color: var(--primary-dark);
    color: #ffffff;
}

/* ===== Contact ===== */
.bottom-contact {
    margin-top: 64px;
    padding: 32px 0 40px;
}

.bottom-contact-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid rgba(224, 122, 45, .25);
}

.contact-sub {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 4px;
}

.contact-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .04em;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(224, 122, 45, .35);
}

.contact-btn:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* ===== Tables ===== */
.table {
    border-color: rgba(224, 122, 45, 0.25);
}

.table th {
    background-color: rgba(224, 122, 45, 0.08) !important;
    color: var(--text-main);
    font-weight: 600;
    vertical-align: middle;
    border-right: 1px solid rgba(224, 122, 45, 0.25);
}

.table td {
    background-color: #fff;
    color: #2c2c2c;
}

.table tr {
    border-bottom: 1px solid rgba(224, 122, 45, 0.18);
}

.card>.border-bottom {
    background: linear-gradient(180deg,
            rgba(224, 122, 45, 0.12),
            rgba(224, 122, 45, 0.04));
}

.card>.border-bottom h5 {
    color: #355070;
    font-weight: 700;
}

.staff-card-header {
    background-color: rgba(224, 122, 45, 0.15);
    color: var(--text-main);
    border-bottom: none;
}

.card.text-center {
    border: 1px solid rgba(224, 122, 45, 0.25);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .08);
}

.table a[href^="tel:"] {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.table a[href^="tel:"]:hover {
    text-decoration: underline;
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .6s ease, transform .6s ease;
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Page Head ===== */
.page-head {
    text-align: center;
    margin-bottom: 24px;
}

.page-head-en {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: var(--primary);
    margin-bottom: 6px;
}

.page-head-jp {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--text-main);
    display: inline-block;
    position: relative;
    padding-bottom: .55rem;
    margin: 0;
}

.page-head-jp::after {
    content: "";
    display: block;
    width: 68px;
    height: 3px;
    background: var(--primary);
    border-radius: 999px;
    margin: .55rem auto 0;
    opacity: .9;
}

/* ===== Recruit Page ===== */
.recruit-page-card {
    border: 2px solid rgba(224, 122, 45, 0.2);
    border-radius: 18px;
    background: #fff;
}

.recruit-catch {
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 0.02em;
}

.recruit-body {
    line-height: 1.9;
    color: var(--text-main);
}

.recruit-body p {
    margin-bottom: 1rem;
}

.recruit-illust {
    width: 100%;
    border-radius: 18px;
    border: 2px solid rgba(224, 122, 45, 0.18);
    box-shadow: 0 8px 18px rgba(224, 122, 45, 0.2);
}

.recruit-contact-box {
    padding: 1rem 1.25rem;
    border-radius: 16px;
    background: #fff8ef;
    border: 1px solid rgba(224, 122, 45, 0.2);
}

.recruit-phone-link {
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    font-weight: 700;
    color: var(--primary-dark);
    text-decoration: none;
}

.recruit-phone-link:hover {
    color: var(--primary);
}

.recruit-role-card {
    background: linear-gradient(180deg, #fffdfa 0%, #ffffff 100%);
}

.recruit-role-type {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(224, 122, 45, 0.12);
    color: var(--primary-dark);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.recruit-pay-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
}

.recruit-role-table th,
.recruit-role-table td {
    padding: 1rem 1.1rem;
}

.recruit-role-table th {
    width: 140px;
    background: #fff6eb;
    color: var(--text-main);
    font-weight: 700;
}

.recruit-role-notes li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.6rem;
    color: var(--text-main);
}

.recruit-role-notes li:last-child {
    margin-bottom: 0;
}

.recruit-role-notes li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--primary);
}

@media (max-width: 767.98px) {
    .recruit-role-table th {
        width: 110px;
    }
}

.guardians-diary-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 420px);
    gap: 2rem;
    align-items: center;
}

.guardians-diary-image-wrap {
    display: flex;
    justify-content: center;
}

.guardians-diary-image {
    width: 100%;
    max-width: 420px;
    border-radius: 18px;
    object-fit: cover;
}

@media (max-width: 991.98px) {
    .guardians-diary-layout {
        grid-template-columns: 1fr;
    }

    .guardians-diary-image-wrap {
        order: -1;
    }
}

.info-feature-card {
    border: 2px solid rgba(224, 122, 45, 0.16);
    border-radius: 18px;
    background: #fff;
}

.info-feature-image {
    border-radius: 18px;
    overflow: hidden;
    border: 2px solid rgba(224, 122, 45, 0.14);
    box-shadow: 0 8px 18px rgba(224, 122, 45, 0.12);
    background: #fff;
}

.info-feature-image img {
    display: block;
    width: 100%;
    min-height: 240px;
    max-height: 340px;
    object-fit: cover;
}

/* ===== Facility Gallery ===== */
.facility-gallery-main,
.facility-gallery-sub {
    background: #fff;
    border: 2px solid rgba(224, 122, 45, 0.16);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.facility-gallery-main img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
}

.facility-gallery-sub img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

/* ===== History Detail ===== */
.history-detail-card {
    border: 2px solid rgba(224, 122, 45, 0.12);
    border-radius: 24px;
    background: #fffdf8;
}

.history-ribbon-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.history-ribbon {
    position: relative;
    background: linear-gradient(180deg, #bcefff, #8fddf5);
    color: #2275a3;
    font-weight: 800;
    letter-spacing: 0.18em;
    border-radius: 18px;
    padding: 10px 28px;
    border: 2px solid rgba(80, 163, 204, 0.25);
    box-shadow: 0 8px 16px rgba(72, 164, 201, 0.15);
}

.history-ribbon::before,
.history-ribbon::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 18px;
    height: 18px;
    background: #93ddf4;
    border: 2px solid rgba(80, 163, 204, 0.25);
    transform: translateY(-50%) rotate(45deg);
    z-index: -1;
}

.history-ribbon::before {
    left: -8px;
}

.history-ribbon::after {
    right: -8px;
}

.history-timeline {
    display: grid;
    gap: 14px;
    position: relative;
    padding-left: 8px;
}

.history-timeline::before {
    content: "";
    position: absolute;
    left: 116px;
    top: 6px;
    bottom: 6px;
    width: 4px;
    border-radius: 99px;
    background: linear-gradient(180deg, #c08b5d, #a87446);
    opacity: 0.9;
}

.history-timeline-item {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 18px;
    align-items: start;
    padding: 6px 0 12px;
    position: relative;
}

.history-timeline-item:last-child {
    padding-bottom: 0;
}

.history-timeline-era {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 16px;
    border-radius: 999px;
    color: #58493f;
    font-weight: 800;
    letter-spacing: 0.04em;
    background: #fff9d8;
    border: 2px solid rgba(215, 177, 88, 0.45);
    box-shadow: 0 4px 10px rgba(160, 120, 55, 0.08);
    z-index: 1;
}

.history-timeline-item::before {
    content: "";
    position: absolute;
    left: 114px;
    top: 22px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffd66f;
    border: 3px solid #fff5cf;
    box-shadow: 0 0 0 2px rgba(192, 139, 93, 0.35);
    z-index: 2;
    display: none;
}

.history-timeline-content {
    background: rgba(255, 253, 244, 0.95);
    border: 2px solid rgba(224, 122, 45, 0.16);
    border-radius: 18px;
    padding: 14px 16px;
    position: relative;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.04);
}

.history-timeline-content::before {
    content: "";
    position: absolute;
    left: -9px;
    top: 20px;
    width: 14px;
    height: 14px;
    background: rgba(255, 253, 244, 0.95);
    border-left: 2px solid rgba(224, 122, 45, 0.16);
    border-bottom: 2px solid rgba(224, 122, 45, 0.16);
    transform: rotate(45deg);
}

.history-timeline-title {
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.7;
}

.history-timeline-notes {
    margin: 8px 0 0;
    padding-left: 1rem;
    color: #5b5752;
    line-height: 1.8;
}

.history-timeline-notes li::marker {
    color: var(--primary);
}

.history-tone-0 .history-timeline-era {
    background: #fff2b7;
    border-color: rgba(228, 177, 43, 0.45);
}

.history-tone-1 .history-timeline-era {
    background: #dff3bf;
    border-color: rgba(127, 183, 64, 0.4);
}

.history-tone-2 .history-timeline-era {
    background: #ffe3cc;
    border-color: rgba(226, 136, 78, 0.35);
}

.history-tone-3 .history-timeline-era {
    background: #f8dbe3;
    border-color: rgba(210, 123, 148, 0.35);
}

/* ===== Carousel Controls ===== */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(40, 40, 40, 0.45);
    border-radius: 999px;
    background-size: 55% 55%;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}


/* ===== Responsive ===== */
@media (max-width: 576px) {
    .table th {
        background-color: rgba(224, 122, 45, 0.12) !important;
    }
}

@media (max-width: 991.98px) {
    .season-row {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .season-label {
        justify-self: start;
        width: 160px;
    }

    .season-art {
        justify-self: center;
        grid-auto-flow: column;
    }
}

@media (max-width: 767.98px) {
    .info-feature-image img {
        min-height: 200px;
        max-height: 240px;
    }

    .facility-gallery-main img {
        height: 240px;
    }

    .facility-gallery-sub img {
        height: 120px;
    }

    .history-timeline-item {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 10px 0;
    }

    .history-timeline {
        padding-left: 0;
    }

    .history-timeline::before {
        left: 12px;
        top: 12px;
        bottom: 12px;
    }

    .history-timeline-item::before {
        left: 6px;
        top: 18px;
        display: block;
    }

    .history-timeline-era {
        margin-left: 24px;
        width: fit-content;
        max-width: calc(100% - 24px);
    }

    .history-timeline-content {
        margin-left: 24px;
    }

    .history-timeline-content::before {
        left: -7px;
        top: 16px;
        width: 10px;
        height: 10px;
    }

    .bottom-contact-card {
        flex-direction: column;
        text-align: center;
    }

    .contact-btn {
        width: 100%;
        justify-content: center;
    }

    .policy-card {
        width: 100%;
        height: auto;
        padding-bottom: 20px;
    }

    .policy-icon {
        position: static;
        transform: none;
        margin-bottom: 12px;
    }

    .policy-title {
        margin-top: 12px;
        opacity: 1 !important;
        transform: none !important;
    }

    .policy-detail {
        position: static;
        opacity: 1;
        transform: none;
        margin-top: 8px;
    }

    .hero-copy {
        margin-bottom: 1.1rem;
    }

    .hero-label {
        padding: 0.35rem 0.75rem;
        font-size: 0.68rem;
        letter-spacing: 0.2em;
    }

}
