:root {
    --md-sys-color-primary: #0062a8;
    --md-sys-color-on-primary: #ffffff;
    --md-sys-color-primary-container: #d6ecff;
    --md-sys-color-on-primary-container: #01243f;

    --md-sys-color-secondary: #1f7a72;
    --md-sys-color-on-secondary: #ffffff;
    --md-sys-color-secondary-container: #d2f5f0;
    --md-sys-color-on-secondary-container: #0b3a36;

    --md-sys-color-tertiary: #ff9f1a;
    --md-sys-color-on-tertiary: #ffffff;
    --md-sys-color-tertiary-container: #fff1d8;
    --md-sys-color-on-tertiary-container: #4a2b00;

    --md-sys-color-surface: #f6fbff;
    --md-sys-color-on-surface: #18232f;
    --md-sys-color-surface-variant: #e5eef5;
    --md-sys-color-on-surface-variant: #435466;
    --md-sys-color-outline: #7890a8;
    --md-sys-color-outline-variant: #c3d4e2;
    --md-sys-color-error: #c62828;

    --md-sys-elevation-1: 0 6px 16px rgba(3, 43, 77, 0.08);
    --md-sys-elevation-2: 0 10px 28px rgba(3, 43, 77, 0.12);
    --md-sys-elevation-3: 0 16px 36px rgba(3, 43, 77, 0.14);

    --spacing-xs: 4px;
    --spacing-s: 8px;
    --spacing-m: 16px;
    --spacing-l: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 64px;

    --glass-background: rgba(255, 255, 255, 0.82);
    --glass-blur: blur(14px);
    --glass-border: 1px solid rgba(255, 255, 255, 0.55);

    --color-fun-yellow: #fff5c8;
    --color-fun-orange: #ffe2bc;
    --color-fun-blue: #dff3ff;
    --color-fun-pink: #ffe2eb;
    --color-fun-green: #dff8e8;

    --radius-soft: 32px;
    --radius-round: 48px;
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Meiryo", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    background:
        radial-gradient(circle at 8% 8%, rgba(255, 229, 163, 0.28) 0, transparent 36%),
        radial-gradient(circle at 90% 18%, rgba(153, 224, 255, 0.25) 0, transparent 40%),
        linear-gradient(180deg, #f8fcff 0%, #edf7ff 46%, #f7fcff 100%);
    color: var(--md-sys-color-on-surface);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* Layout */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--spacing-m);
}

section {
    padding: var(--spacing-xxl) 0;
}

/* Animations */
@keyframes reveal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.reveal {
    opacity: 0;
    transition: all 0.8s ease;
}

.reveal.visible {
    animation: reveal 0.8s ease forwards;
}

@keyframes bounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.bounce-hover:hover {
    animation: bounce 0.5s cubic-bezier(0.36, 0, 0.66, -0.56) alternate;
}

/* Organic Shapes */
.blob-bg {
    position: absolute;
    z-index: -1;
    filter: blur(40px);
    opacity: 0.45;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

/* Header */
header {
    background: var(--glass-background);
    backdrop-filter: var(--glass-blur);
    border-bottom: var(--glass-border);
    padding: var(--spacing-m) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.desktop-nav ul li.active a {
    color: var(--md-sys-color-primary);
    background-color: var(--md-sys-color-primary-container);
    border-radius: 999px;
    padding: 8px 14px;
}

.desktop-nav ul li.active a::after {
    width: 0;
}

.mobile-nav ul li.active a {
    color: var(--md-sys-color-primary);
    background-color: var(--md-sys-color-secondary-container);
    font-weight: 700;
}

.bottom-nav-item.active a {
    color: var(--md-sys-color-primary);
}

.bottom-nav-item.active span {
    font-weight: 700;
}

.bottom-nav-item.active .material-symbols-outlined {
    font-weight: 700;
}

header .header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-m);
}

header .desktop-nav ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-l);
    margin: 0;
    padding: 0;
}

header .desktop-nav a {
    text-decoration: none;
    color: var(--md-sys-color-on-surface);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 4px 0;
    letter-spacing: 0.02em;
}

header .desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--md-sys-color-primary);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

header .desktop-nav a:hover {
    color: var(--md-sys-color-primary);
}

header .desktop-nav a:hover::after {
    width: 100%;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--md-sys-color-primary);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.menu-btn:hover {
    background-color: var(--md-sys-color-primary-container);
}

/* Mobile Menu Drawer */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--md-sys-color-surface);
    z-index: 3000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: var(--spacing-m);
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
}

.mobile-nav li {
    margin-bottom: var(--spacing-m);
}

.mobile-nav a {
    display: flex;
    align-items: center;
    gap: var(--spacing-m);
    text-decoration: none;
    color: var(--md-sys-color-on-surface);
    font-size: 1.2rem;
    font-weight: 500;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.mobile-nav a .material-symbols-outlined {
    font-size: 1.5rem;
    color: var(--md-sys-color-primary);
}

.mobile-nav a:hover {
    background-color: var(--md-sys-color-surface-variant);
}

.mobile-nav a.menu-cta {
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    margin-top: var(--spacing-l);
}

.mobile-nav a.menu-cta .material-symbols-outlined {
    color: var(--md-sys-color-on-primary);
}

/* Bottom Nav for Mobile - Hidden on Desktop */
.bottom-nav {
    display: none;
}

/* Hero Section */
#hero {
    border-radius: 0 0 56px 56px;
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--md-sys-elevation-2);
}

/* Typography */
h1 {
    font-size: clamp(2.2rem, 6vw, 3.2rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: var(--spacing-m);
    letter-spacing: -0.01em;
}

.page-header {
    padding: var(--spacing-xxl) 0;
    text-align: center;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 239, 196, 0.6), transparent 48%),
        radial-gradient(circle at 80% 14%, rgba(191, 234, 255, 0.55), transparent 44%),
        linear-gradient(180deg, #eaf5ff 0%, rgba(234, 245, 255, 0.2) 100%);
    margin-bottom: var(--spacing-xl);
    border-radius: 0 0 56px 56px;
}

.page-header h1 {
    margin-bottom: var(--spacing-s);
    color: var(--md-sys-color-on-primary-container);
}

.job-page-title {
    margin-bottom: var(--spacing-s);
}

.job-page-title-main {
    display: block;
    font-size: clamp(1.95rem, 4.6vw, 3rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.2;
    color: var(--md-sys-color-on-primary-container);
}

.job-page-title-sub {
    display: block;
    margin-top: 8px;
    font-size: clamp(0.92rem, 1.6vw, 1.12rem);
    font-weight: 500;
    letter-spacing: 0.08em;
    color: rgba(1, 36, 63, 0.78);
}

.page-header .subtitle {
    font-size: 1.1rem;
    color: var(--md-sys-color-on-primary-container);
    opacity: 0.8;
}

h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--spacing-m);
    color: var(--md-sys-color-primary);
    letter-spacing: 0.01em;
}

h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: var(--spacing-s);
}

/* Hiring Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.status-badge.active {
    background-color: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
    border-color: #a4d7ff;
}

.status-badge.closed {
    background-color: var(--md-sys-color-surface-variant);
    color: var(--md-sys-color-on-surface-variant);
    border-color: var(--md-sys-color-outline-variant);
}

/* Data Table Refinement */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--spacing-m);
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: 12px;
    overflow: hidden;
}

.data-table tr {
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

.data-table tr:last-child {
    border-bottom: none;
}

.data-table th {
    text-align: left;
    padding: 16px 20px;
    color: var(--md-sys-color-primary);
    background-color: var(--md-sys-color-surface-variant);
    font-weight: 600;
    width: 160px;
    vertical-align: middle;
    border-right: 1px solid var(--md-sys-color-outline-variant);
}

.data-table td {
    padding: 16px 20px;
    color: var(--md-sys-color-on-surface);
    background-color: #ffffff;
    line-height: 1.6;
}

@media (max-width: 600px) {

    .data-table,
    .data-table tr,
    .data-table th,
    .data-table td {
        display: block;
        width: 100%;
    }

    .data-table th {
        border-right: none;
        border-bottom: 1px solid var(--md-sys-color-outline-variant);
        padding: 12px 16px;
    }

    .data-table td {
        padding: 12px 16px;
    }
}

.mt-xl {
    margin-top: var(--spacing-xl);
}

.job-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-m);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(130deg, #007ad1 0%, var(--md-sys-color-primary) 55%, #1f7a72 100%);
    color: var(--md-sys-color-on-primary);
    padding: 12px 28px;
    border-radius: 100px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 8px 18px rgba(0, 90, 155, 0.24);
}

.btn-primary:hover {
    transform: translateY(-2px);
    filter: saturate(1.08);
    box-shadow: 0 12px 24px rgba(0, 90, 155, 0.3);
}

.btn-secondary {
    background-color: var(--md-sys-color-secondary);
    color: var(--md-sys-color-on-secondary);
    padding: 12px 28px;
    border-radius: 100px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: rgba(255, 255, 255, 0.75);
    color: var(--md-sys-color-primary);
    padding: 11px 27px;
    border-radius: 100px;
    border: 1px solid var(--md-sys-color-primary);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background-color: var(--md-sys-color-primary-container);
    transform: translateY(-2px);
}

.action-area {
    display: flex;
    gap: var(--spacing-m);
    flex-wrap: wrap;
    margin-top: var(--spacing-l);
}

/* Tables */
table {
    font-size: 0.95rem;
}

th {
    color: var(--md-sys-color-on-surface-variant);
}

/* Form Styles */
.form-group {
    margin-bottom: var(--spacing-l);
}

label {
    display: block;
    margin-bottom: var(--spacing-s);
    font-weight: 500;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.92);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--md-sys-color-primary);
    box-shadow: 0 0 0 4px rgba(0, 98, 168, 0.14);
}

/* Schedule Table Styles */
.schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: var(--spacing-m);
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: 12px;
    overflow: hidden;
}

.schedule-table th,
.schedule-table td {
    padding: 12px 8px;
    text-align: center;
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
    font-size: 0.9rem;
}

.schedule-table th {
    background-color: var(--md-sys-color-surface-variant);
    font-weight: 500;
    color: var(--md-sys-color-on-surface-variant);
}

.schedule-table tr:last-child th,
.schedule-table tr:last-child td {
    border-bottom: none;
}

.schedule-table .time-col {
    width: 120px;
    font-weight: 500;
    background-color: var(--md-sys-color-surface-variant);
}

.schedule-table .status-icon {
    font-size: 1.2rem;
    vertical-align: middle;
}

.schedule-table .consultation {
    color: var(--md-sys-color-primary);
}

.schedule-table .health-check {
    color: #f9a825;
    /* Amber for Star */
}

.schedule-legend {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-m);
    margin-top: var(--spacing-s);
    font-size: 0.85rem;
    color: var(--md-sys-color-on-surface-variant);
}

.schedule-legend div {
    display: flex;
    align-items: center;
    gap: 4px;
}

.job-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-m);
    margin-top: var(--spacing-l);
}

.job-detail-item {
    padding: var(--spacing-m);
    background-color: var(--md-sys-color-surface-variant);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-s);
}

.job-detail-item .icon-wrapper {
    width: 48px;
    height: 48px;
    background-color: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.job-detail-item h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--md-sys-color-on-surface);
}

.card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border-radius: 24px;
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-l);
    box-shadow: var(--md-sys-elevation-1);
    border: 1px solid rgba(161, 199, 231, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--md-sys-elevation-2);
}

/* Job Cards & Icons */
.job-apply-card {
    cursor: pointer;
    background: white;
    padding: var(--spacing-l);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-s);
    min-height: 270px;
}

.job-apply-card h3 {
    margin: 0;
    font-size: 1.5rem;
}

.job-apply-card p {
    font-size: 0.95rem;
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: var(--spacing-m);
}

.job-apply-card:hover .card-link {
    gap: 8px;
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-m);
}

.icon-box {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-box .material-symbols-outlined {
    font-size: 2rem;
}

.icon-box.blue {
    background: #e3f2fd;
    color: #0288d1;
}

.icon-box.pink {
    background: #fce4ec;
    color: #d81b60;
}

.icon-box.yellow {
    background: #fffde7;
    color: #fbc02d;
}

.icon-box.green {
    background: #e8f5e9;
    color: #43a047;
}

.icon-box.orange {
    background: #fff3e0;
    color: #f57c00;
}

.card-link {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--md-sys-color-primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto;
}

/* Feature Cards on Home */
.feature-card {
    border: none;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: auto -30% -45% auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-m) auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Common Text Blocks */
.clinic-info-block {
    font-size: 0.95rem;
    line-height: 1.8;
}

.clinic-info-block p {
    margin-bottom: 8px;
}

.clinic-info-block strong {
    color: var(--md-sys-color-primary);
}

/* Flow Section */
.flow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-m);
    margin-top: var(--spacing-l);
}

.flow-item {
    text-align: center;
    position: relative;
}

.flow-number {
    width: 60px;
    height: 60px;
    background: var(--md-sys-color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-m) auto;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Footer */
footer {
    background-color: var(--md-sys-color-on-surface);
    color: #ffffff;
    padding: var(--spacing-xxl) 0;
    text-align: center;
}

footer img {
    filter: brightness(0) invert(1);
}

/* ===== Mobile header optimization ===== */
@media (max-width: 860px) {

    /* スマホでは横並びメニューを消して、ハンバーガーだけにする */
    header .desktop-nav {
        display: none;
    }

    .menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* ロゴが大きすぎる場合の微調整 */
    header .logo img {
        height: 36px !important;
    }

    /* ヘッダー高さを少し詰める（任意） */
    header {
        padding: 10px 0;
    }
}

@media (max-width: 640px) {
    .job-page-title-main {
        font-size: clamp(1.65rem, 7vw, 2.1rem);
    }

    .job-page-title-sub {
        font-size: 0.88rem;
        margin-top: 6px;
        letter-spacing: 0.05em;
    }
}

/* （任意）下部ナビをスマホで使うならONにする */
@media (max-width: 860px) {
    .bottom-nav {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--glass-background);
        backdrop-filter: var(--glass-blur);
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        z-index: 2500;
    }

    .bottom-nav-list {
        list-style: none;
        display: flex;
        justify-content: space-around;
        padding: 10px 8px;
        margin: 0;
    }

    .bottom-nav-item a {
        text-decoration: none;
        color: var(--md-sys-color-on-surface-variant);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        font-size: 0.75rem;
    }

    /* 下部ナビの分だけ本文の下に余白（被り防止） */
    main {
        padding-bottom: 84px;
    }
}

/* Recruitment Improvements */
.text-secondary-small {
    font-size: 0.85rem;
    color: var(--md-sys-color-secondary);
    line-height: 1.6;
    display: block;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--spacing-xxl);
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

.intro-image-wrapper {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--md-sys-elevation-3);
}

.intro-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.intro-image-wrapper:hover img {
    transform: scale(1.05);
}

@media (max-width: 860px) {
    .intro-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-l);
    }

    .intro-image-wrapper {
        order: -1;
    }
}

/* --- Layout & Utility Classes --- */
.pos-relative {
    position: relative !important;
}

.overflow-hidden {
    overflow: hidden !important;
}

/* Spacing Utilities */
.u-mb-s {
    margin-bottom: var(--spacing-s) !important;
}

.u-mb-m {
    margin-bottom: var(--spacing-m) !important;
}

.u-mb-l {
    margin-bottom: var(--spacing-l) !important;
}

.u-mb-xl {
    margin-bottom: var(--spacing-xl) !important;
}

.u-mt-xl {
    margin-top: var(--spacing-xl) !important;
}

.u-m-0 {
    margin: 0 !important;
}

.u-text-center {
    text-align: center !important;
}

/* Job Recruitment Components */
.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-m);
}

.card-header-flex h2 {
    margin: 0;
    border: none;
    padding: 0;
}

.salary-amount {
    color: var(--md-sys-color-primary);
    font-size: 1.2rem;
    font-weight: 700;
}

.benefit-list {
    margin: 0;
    padding-left: 1.2em;
    line-height: 1.8;
}

.benefit-list li strong {
    color: var(--md-sys-color-primary);
}

.status-notice {
    margin-top: var(--spacing-xl);
    text-align: center;
    padding: var(--spacing-m);
    background: var(--md-sys-color-surface-variant);
    border-radius: 12px;
}

.status-notice p {
    font-weight: 600;
    color: var(--md-sys-color-on-surface-variant);
    margin: 0;
}

.action-area {
    margin-top: var(--spacing-xl);
    text-align: center;
}

/* Form Styles (Resume Page) */
.mandatory {
    color: var(--md-sys-color-error);
    font-weight: bold;
    margin-left: 4px;
}

.form-section-title {
    margin-top: var(--spacing-l);
    border-bottom: 2px solid var(--md-sys-color-secondary-container);
    padding-bottom: 4px;
}

.web-form textarea {
    line-height: 1.6;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: var(--spacing-l);
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    color: var(--md-sys-color-on-surface-variant);
    font-weight: 600;
    transition: all 0.3s ease;
}

.tab-btn.active {
    border-bottom-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-primary);
}

.template-download-box {
    background: var(--md-sys-color-surface-variant);
    padding: var(--spacing-m);
    border-radius: 12px;
    margin-bottom: var(--spacing-l);
    display: flex;
    align-items: center;
    gap: 12px;
}

.template-download-btn {
    margin-left: auto;
    font-size: 0.8rem;
    padding: 6px 16px;
}

.persistence-box {
    background: var(--md-sys-color-secondary-container);
    padding: var(--spacing-m);
    border-radius: 12px;
    margin-bottom: var(--spacing-l);
    border: 1px solid var(--md-sys-color-outline-variant);
}

.persistence-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    margin: 0;
}

/* Layout Utility Classes */
.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.flex-wrap {
    flex-wrap: wrap;
}

.inline-block {
    display: inline-block;
}

.w-full {
    width: 100%;
}

.flex-1 {
    flex: 1;
}

.text-center {
    text-align: center;
}

.fw-600 {
    font-weight: 600;
}

.fw-700 {
    font-weight: 700;
}

.fs-sm {
    font-size: 0.9rem;
}

.fs-85 {
    font-size: 0.85rem;
}

.fs-11 {
    font-size: 1.1rem;
}

.fs-icon-1 {
    font-size: 1rem;
}

.lh-18 {
    line-height: 1.8;
}

.m-0 {
    margin: 0;
}

.mt-2 {
    margin-top: 2px;
}

.opacity-80 {
    opacity: 0.8;
}

.mt-s {
    margin-top: var(--spacing-s);
}

.mt-m {
    margin-top: var(--spacing-m);
}

.mb-s {
    margin-bottom: var(--spacing-s);
}

.mb-m {
    margin-bottom: var(--spacing-m);
}

.mb-l {
    margin-bottom: var(--spacing-l);
}

.p-xxl {
    padding: var(--spacing-xxl);
}

.gap-s {
    gap: var(--spacing-s);
}

.gap-m {
    gap: var(--spacing-m);
}

.radio-group {
    display: flex;
    gap: 15px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.radio-group label {
    font-weight: 400;
    margin: 0;
}

.checkbox-inline {
    width: auto;
    margin-top: 4px;
}

.text-primary {
    color: var(--md-sys-color-primary);
}

.text-secondary {
    color: var(--md-sys-color-on-surface-variant);
}

.text-error {
    color: var(--md-sys-color-error);
}

.hidden {
    display: none;
}

.save-local-title {
    color: var(--md-sys-color-on-secondary-container);
}

/* Header */
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-image-main {
    height: 44px;
    vertical-align: middle;
}

.logo-image-mobile {
    height: 32px;
}

/* Footer */
.site-footer {
    background: linear-gradient(180deg, rgba(221, 239, 252, 0.95) 0%, rgba(206, 233, 249, 0.95) 100%);
    padding: var(--spacing-xl) 0;
    margin-top: var(--spacing-xxl);
    border-top: 1px solid rgba(126, 173, 206, 0.35);
}

.footer-inner {
    text-align: center;
}

.footer-logo-wrap {
    display: inline-block;
}

.footer-logo {
    height: 80px;
    margin-bottom: var(--spacing-m);
}

.footer-copy {
    color: var(--md-sys-color-on-surface-variant);
    font-size: 0.9rem;
}

.footer-nav {
    margin-top: var(--spacing-l);
    display: flex;
    justify-content: center;
    gap: var(--spacing-m);
    flex-wrap: wrap;
}

.footer-link {
    color: var(--md-sys-color-primary);
    text-decoration: none;
}

.footer-link-strong {
    font-weight: 600;
}

/* Shared blobs */
.blob-top-right-sm {
    top: -20%;
    right: -10%;
    width: 300px;
    height: 300px;
}

.blob-top-left-sm {
    top: -20%;
    left: -10%;
    width: 300px;
    height: 300px;
}

.blob-bottom-left-lg {
    bottom: 10%;
    left: -10%;
    width: 400px;
    height: 400px;
    opacity: 0.1;
}

.blob-bottom-right-lg {
    bottom: 20%;
    right: -10%;
    width: 400px;
    height: 400px;
    opacity: 0.1;
}

.blob-blue {
    background: var(--color-fun-blue);
}

.blob-pink {
    background: var(--color-fun-pink);
}

.blob-yellow {
    background: var(--color-fun-yellow);
}

.blob-green {
    background: var(--color-fun-green);
}

.blob-orange {
    background: var(--color-fun-orange);
}

/* Hero / top page */
.hero-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.52)), url('/img/reception.jpg') no-repeat center center;
    background-size: cover;
    padding: 180px 0 140px 0;
    color: var(--md-sys-color-on-primary-container);
    position: relative;
    overflow: hidden;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px 10px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(0, 98, 168, 0.18);
    border-radius: 100px;
    font-size: 1rem;
    line-height: 1.35;
    margin-bottom: var(--spacing-m);
    backdrop-filter: blur(8px);
    animation: fadeIn 1s ease-out;
    text-align: center;
    color: var(--md-sys-color-on-primary-container);
    box-shadow: 0 8px 18px rgba(0, 88, 150, 0.12);
}

.hero-badge-sub {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    opacity: 0.92;
}

.hero-title {
    color: var(--md-sys-color-on-primary-container);
    text-shadow: 0 4px 16px rgba(255, 255, 255, 0.45);
    font-size: clamp(2rem, 4.8vw, 3.3rem);
    line-height: 1.35;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}

.hero-title-line {
    display: block;
}

.hero-title-line-left {
    text-align: left;
}

.hero-title-line-center {
    text-align: center;
}

.hero-title-line-right {
    text-align: right;
}

.hero-copy {
    font-size: 1.25rem;
    margin-top: var(--spacing-l);
    opacity: 1;
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #083455;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.45);
}

.hero-cta {
    font-size: 1.1rem;
    padding: 18px 48px;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.hero-cta-wrap {
    margin-top: var(--spacing-xl);
    display: flex;
    justify-content: center;
}

.hero-blob-left {
    top: 10%;
    left: 5%;
    width: 120px;
    height: 120px;
    background: var(--color-fun-blue);
    opacity: 0.3;
    filter: blur(20px);
}

.hero-blob-right {
    bottom: 10%;
    right: 10%;
    width: 200px;
    height: 200px;
    background: var(--color-fun-yellow);
    opacity: 0.2;
    filter: blur(30px);
}

.section-center {
    text-align: center;
    position: relative;
    padding: var(--spacing-xxl) 0;
}

.section-title-center {
    justify-content: center;
}

.job-grid-gap {
    margin-top: var(--spacing-xl);
}

.message-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xxl);
    align-items: center;
}

.message-copy {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--md-sys-color-on-surface-variant);
}

.message-sign-line {
    width: 50px;
    height: 1px;
    background: var(--md-sys-color-outline);
}

.message-sign {
    font-weight: 700;
    color: var(--md-sys-color-primary);
    font-size: 1.3rem;
    margin: 0;
}

.message-image-wrap {
    position: relative;
    padding: 20px;
}

.message-blob {
    top: -10%;
    right: -10%;
    width: 100%;
    height: 100%;
    background: var(--color-fun-blue);
    opacity: 0.1;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.message-image {
    width: 100%;
    border-radius: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.message-label {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--md-sys-color-primary);
    color: #fff;
    padding: 24px 32px;
    border-radius: 24px;
    box-shadow: var(--md-sys-elevation-3);
    z-index: 2;
    transform: rotate(2deg);
}

.message-label-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}

.message-label-sub {
    margin: 0;
    opacity: 0.8;
    font-size: 0.9rem;
}

.feature-card-blue {
    background: #e3f2fd;
    color: #01579b;
}

.feature-card-yellow {
    background: #fffde7;
    color: #f57f17;
}

.feature-card-orange {
    background: #fff3e0;
    color: #e65100;
}

.feature-icon-blue {
    font-size: 2.5rem;
    color: #0288d1;
}

.feature-icon-yellow {
    font-size: 2.5rem;
    color: #fbc02d;
}

.feature-icon-orange {
    font-size: 2.5rem;
    color: #f57c00;
}

.job-card-blue-top { border-top: 6px solid var(--color-fun-blue); }
.job-card-pink-top { border-top: 6px solid var(--color-fun-pink); }
.job-card-yellow-top { border-top: 6px solid var(--color-fun-yellow); }
.job-card-green-top { border-top: 6px solid var(--color-fun-green); }

.flow-section {
    background: var(--md-sys-color-surface-variant);
    border-radius: 40px;
    padding: var(--spacing-xl);
}

.flow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-m);
    margin-top: var(--spacing-l);
}

.flow-item {
    text-align: center;
}

.flow-step {
    width: 60px;
    height: 60px;
    background: var(--md-sys-color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-m) auto;
    font-weight: 700;
    font-size: 1.2rem;
}

.access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
}

.card-no-margin {
    margin-bottom: 0;
}

.card-full-height {
    height: 100%;
}

.stack-col {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-m);
}

.clinic-info-text {
    font-size: 0.95rem;
    line-height: 1.8;
}

.phone-link {
    color: var(--md-sys-color-primary);
    text-decoration: none;
    font-weight: 700;
}

.contact-btn-inline {
    font-size: 0.85rem;
    padding: 8px 16px;
    background: var(--md-sys-color-secondary);
}

.contact-inline-wrap {
    margin-top: var(--spacing-m);
    border-top: 1px solid var(--md-sys-color-outline-variant);
    padding-top: var(--spacing-m);
    display: flex;
    gap: var(--spacing-s);
    flex-wrap: wrap;
}

.map-wrap {
    height: 250px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--md-sys-elevation-1);
    border: 1px solid var(--md-sys-color-outline-variant);
}

.map-frame {
    border: 0;
}

/* Recruit cards unified heading */
.recruit-bg-card {
    margin-bottom: var(--spacing-xl);
}

.section-subheading {
    margin-top: var(--spacing-l);
}

.card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-m);
}

.card-title-row h2 {
    margin: 0;
    border: none;
    padding: 0;
}

.icon-wrapper-yellow {
    background: var(--color-fun-yellow);
    color: #f9a825;
}

.icon-wrapper-surface {
    background: var(--md-sys-color-surface-variant);
    color: var(--md-sys-color-primary);
}

/* Thanks / alerts */
.alert-message {
    color: var(--md-sys-color-error);
    margin-bottom: var(--spacing-m);
}

.thanks-section {
    text-align: center;
    padding: var(--spacing-xxl) 0;
}

.thanks-card {
    display: inline-block;
    padding: var(--spacing-xxl);
    max-width: 600px;
}

.thanks-icon {
    font-size: 5rem;
    color: var(--md-sys-color-primary);
    margin-bottom: var(--spacing-l);
}

.thanks-message {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-l);
}
