:root {
    /* Colors */
    --color-primary-start: #FFAF40;
    --color-primary-end: #FFD700;
    --color-accent: #FF8BA7;
    /* Pinkish accent from images */
    --color-teal: #008080;
    --color-text-main: #4A3B32;
    --color-text-light: #FFFDF5;
    --color-bg-cream: #FFFDF5;
    --color-white: #FFFFFF;

    /* Fonts */
    --font-jp: 'Zen Maru Gothic', sans-serif;
    --font-en: 'Outfit', sans-serif;

    /* Spacing */
    --header-height: 80px;
    --container-width: 1000px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-jp);
    color: var(--color-text-main);
    background-color: var(--color-bg-cream);
    line-height: 1.6;
    background: linear-gradient(180deg, #FFEFD5 0%, #FFFDF5 100%);
    /* Subtle global gradient */
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.8;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Basic Styling */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #E67E22;
    /* Orange-ish logo color */
}

.header__logo-img {
    height: 3rem;
    /* 2x the 1.5rem font size */
    width: 3rem;
    object-fit: contain;
}

.header__nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.btn--header {
    background: var(--color-teal);
    color: var(--color-white);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: bold;
}

.header__menu-toggle {
    display: none;
    /* Hidden on desktop */
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: var(--header-height);
    min-height: 100vh;
    background: linear-gradient(135deg, var(--color-primary-start), var(--color-primary-end));
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero__text-box {
    text-align: center;
    color: var(--color-white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.hero__sub {
    font-family: var(--font-jp);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.1em;
}

.hero__title {
    font-family: var(--font-jp);
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 0.2rem;
    margin-bottom: 2rem;
}

.hero__photo-container {
    width: 600px;
    height: 400px;
    margin: 0 auto;
    position: relative;
    border-radius: 50%;
    /* Ellipse when width != height */
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background-color: #fff;

}

.hero__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.illustration-placeholder img {
    border-radius: 20px;
}

/* Banner Component */
.hero__banner {
    position: absolute;
    bottom: 50px;
    right: 50px;
    background: var(--color-white);
    padding: 2px;
    /* Border effect */
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 10;
    max-width: 350px;
    transform: rotate(-2deg);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: rotate(-2deg) translateY(0px);
    }

    50% {
        transform: rotate(-2deg) translateY(-20px);
    }

    100% {
        transform: rotate(-2deg) translateY(0px);
    }
}

@keyframes float-mobile {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.banner__content {
    background: #FFF;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #FFD700;
}

.banner__title {
    font-size: 0.8rem;
    font-weight: bold;
    background: #FFD700;
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    margin-bottom: 5px;
}

.banner__offer {
    color: #E74C3C;
    font-weight: bold;
    font-size: 1.2rem;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    margin: 5px 0;
}

.banner__amount {
    font-size: 2.5rem;
}

.banner__btn {
    display: block;
    background: #80CBC4;
    /* Light teal */
    color: var(--color-white);
    padding: 10px;
    border-radius: 50px;
    font-weight: bold;
    margin-top: 5px;
}

/* Message Section */
.section {
    padding: 80px 0;
}

.message-section {
    background-color: #FFDE91;
    /* Light Orange/Yellow from image */
    text-align: center;
    position: relative;
}

.section__header {
    margin-bottom: 40px;
    text-align: center;
}

.section__sub-en {
    font-family: 'Great Vibes', cursive;
    /* Need to add this font or similar script */
    font-size: 3rem;
    color: #E67E22;
    display: block;
    margin-bottom: -10px;
}

.section__title {
    font-size: 2rem;
    color: #4A3B32;
}

.message__content p {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 40px;
    line-height: 2;
}

.btn--primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--color-teal);
    color: white;
    padding: 15px 40px;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 128, 128, 0.3);
}

.arrow-circle {
    background: white;
    color: var(--color-teal);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* Decorative Items */
.message__decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.deco-item {
    position: absolute;
    font-size: 3rem;
    opacity: 0.8;
}

.deco-1 {
    top: 10%;
    right: 10%;
    transform: rotate(10deg);
}

.deco-2 {
    bottom: 10%;
    left: 10%;
    transform: rotate(-10deg);
}

/* Staff Voice Section */
.staff-section {
    background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 99%, #FECFEF 100%);
    /* Pink gradient */
    /* Adjusted to match the orange background in the image more closely */
    background: linear-gradient(180deg, #FFDE91 0%, #FFB75E 100%);
    padding-bottom: 120px;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.staff-card {
    background: var(--color-bg-cream);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.staff-card:hover {
    transform: translateY(-5px);
}

.staff-card__header {
    background-color: #FFF;
    padding: 15px;
    text-align: center;
    border-bottom: 2px solid #FFD700;
}

.staff-card__title {
    font-size: 1.1rem;
    color: #4A3B32;
}

.staff-card__body {
    padding: 20px;
    display: flex;
    gap: 15px;
    background-color: #E6E6E6;
    /* Placeholder grey bg shown in image */
}

.staff-img-box {
    width: 100px;
    height: 120px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 10px;
    background-color: #ddd;
}

.staff-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-text-box {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.staff-text-box p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.staff-tags {
    display: flex;
    gap: 5px;
}

.tag {
    padding: 5px 15px;
    color: white;
    font-size: 0.9rem;
    border-radius: 4px;
}

.tag--nurse {
    background-color: #E07A5F;
}

/* Terracotta */
.tag--admin {
    background-color: #5D737E;
}

/* Slate Blue */
.tag--care {
    background-color: #CE93D8;
}

/* Purple */
.tag--year {
    background-color: #E07A5F;
    opacity: 0.8;
}


/* Guideline Section */
.guideline-section {
    background-color: #FFFDF5;
    /* Cream background matching top */
    background: #FFFDF5;
}

/* Tabs */
.guideline-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 50px;
    border-bottom: 4px solid #FFF;
    /* White underline mimicking the image layout */
    padding-bottom: 20px;
}

.tab-item {
    color: white;
    padding: 10px 20px;
    font-weight: bold;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 100px;
    cursor: pointer;
    /* Clickable */
    transition: transform 0.2s, opacity 0.2s;
    opacity: 0.7;
    /* Dim inactive tabs */
    border-radius: 5px;
    /* Slight radius */
}

/* Active Tab Styles */
.tab-item:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.tab-item.active {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.bg-pink {
    background-color: #E696A8;
}

/* Muted pink from image */
.bg-orange {
    background-color: #F4A261;
}

/* Muted orange from image */
.bg-yellow {
    background-color: #F6E27F;
}

/* Muted yellow */
.bg-green {
    background-color: #A9DF89;
}

/* Muted green */
.bg-blue {
    background-color: #8ED8F5;
}

/* Muted blue */
.bg-purple {
    background-color: #D7BDE2;
}

/* Muted purple */

.tab--care {
    background-color: #FF8BA7;
}

.tab--nurse {
    background-color: #FF7F50;
}

.tab--child {
    background-color: #F4D35E;
}

.tab--instructor {
    background-color: #8DDB65;
    font-size: 0.8rem;
}

.tab--rehab {
    background-color: #6CD4FF;
    font-size: 0.8rem;
}

.tab--manager {
    background-color: #BA68C8;
    font-size: 0.8rem;
}

/* Job Groups */
.job-group {
    background-color: #FFF8E1;
    /* Light yellow container BG */
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    display: none;
    /* Hide by default */
    animation: fadeIn 0.5s ease;
}

.job-group.active {
    display: block;
    /* Show if active */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.job-group__title {
    font-size: 1.5rem;
    color: #4A3B32;
    border-bottom: 3px solid #FF8BA7;
    /* Default pink underline */
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 30px;
}

.job-group__title.color-orange {
    border-bottom-color: #FF7F50;
}

.job-offer-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.job-offer-card {
    position: relative;
    width: 300px;
    height: 140px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.job-offer-card:hover {
    transform: translateY(-5px);
}

.bg-pink {
    background-color: #E696A8;
}

/* Muted pink from image */
.bg-orange {
    background-color: #F4A261;
}

/* Muted orange from image */

.badge-recruiting {
    position: absolute;
    top: -15px;
    left: 20px;
    background-color: white;
    color: #4A3B32;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.job-offer-card__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.job-type {
    color: #4A3B32;
    font-size: 1.5rem;
    font-weight: bold;
}

.arrow-circle-white {
    background: white;
    color: #ccc;
    /* Icon color inside white circle */
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Recruitment Info Section (Existing) */
.recruit-section {
    background: linear-gradient(135deg, #FFD700, #FFAF40);
}

.recruit-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.recruit-card {
    background-color: #FFFDF5;
    width: 400px;
    height: 250px;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.recruit-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.recruit-card__title {
    font-size: 1.8rem;
    color: #4A3B32;
    margin-bottom: 20px;
}

.recruit-card__icon {
    margin-top: 10px;
}

.arrow-circle-large {
    background: #FF7F50;
    /* Coral */
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    transition: transform 0.3s, background-color 0.3s;
}

.recruit-card:hover .arrow-circle-large {
    transform: translateX(10px);
    background-color: #E67E22;
}

/* Footer */
.footer {
    background-color: #FFE4C4;
    color: var(--color-text-main);
    padding: 40px 0;
    text-align: center;
}

.footer__logo {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #E67E22;
}

.footer__info p {
    margin-bottom: 10px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.copyright {
    margin-top: 30px;
    font-size: 0.8rem;
    opacity: 0.5;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    .header {
        padding: 0 20px;
    }

    .header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden by default */
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding-top: 80px;
        transition: right 0.3s ease-in-out;
        z-index: 999;
    }

    .header__nav.active {
        right: 0;
    }

    .header__nav ul {
        flex-direction: column;
        gap: 40px;
    }

    .header__menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1001;
    }

    .header__menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--color-text-main);
        margin: 5px 0;
        transition: 0.3s;
    }

    /* Hamburger Animation */
    .header__menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .header__menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .header__menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Hero Responsive */
    .hero {
        flex-direction: column;
        height: auto;
        /* Allow content to dictate height */
        padding-bottom: 60px;
    }

    .hero__content {
        flex-direction: column;
        text-align: center;
        padding-top: 50px;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__photo-container {
        width: 90%;
        height: auto;
        aspect-ratio: 3/2;
        /* Maintain horizontal ellipse ratio roughly */
        max-width: 400px;
        margin-top: 30px;
    }

    .hero__illustration {
        margin-top: 30px;
    }

    /* Banner Responsive */
    .hero__banner {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        width: 90% !important;
        margin-top: 40px !important;
        margin-bottom: 60px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        position: relative !important;
        right: auto !important;
        bottom: auto !important;
        pointer-events: auto !important;
        overflow: visible !important;

        /* Mobile Animation */
        animation: float-mobile 3s ease-in-out infinite !important;
    }

    .deco-1 {
        display: none !important;
    }

    .deco-2 {
        display: none !important;
    }

    /* Staff Grid Responsive */
    .staff-grid {
        grid-template-columns: 1fr;
    }

    /* Guideline Responsive */
    .guideline-tabs {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }

    .tab-item {
        padding: 5px;
        font-size: 0.75rem;
        /* Slightly smaller to fit */
        min-height: 48px;
        /* Height for ~2 lines */
        height: 100%;
        /* Fill grid cell */
        display: flex;
        /* Ensure flex for centering */
        align-items: center;
        justify-content: center;
        line-height: 1.3;
    }

    .job-offer-card {
        width: 100%;
        /* Full width on mobile */
        max-width: 320px;
    }

    .job-group {
        padding: 20px;
        /* Reduce padding */
    }

    /* Recruit Grid */
    .recruit-grid {
        flex-direction: column;
        align-items: center;
    }

    .recruit-card {
        width: 100%;
        max-width: 350px;
        height: 200px;
        /* Slightly smaller height */
    }

    /* Header Logo Responsive */
    .logo-text {
        font-size: 0.9rem;
        /* Smaller logo text */
    }

    .header__logo-img {
        height: 30px;
        /* Smaller logo icon */
    }
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}