:root {
    --primary: #003366;
    /* Deep Trust Blue */
    --primary-light: #004d99;
    --secondary: #00a8cc;
    /* Medical/Fresh Teal */
    --accent: #ffd700;
    /* Gold for premium feel */
    --background: #ffffff;
    --bg-light: #f8fafc;
    --bg-gradient: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
    --text-dark: #102a43;
    --text-light: #486581;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.85);

    /* Status Colors */
    --status-ok: #10b981;
    --status-ng: #ef4444;
    --status-caution: #f59e0b;
    --ok-bg: #ecfdf5;
    --ng-bg: #fef2f2;
    --caution-bg: #fffbeb;

    /* Section Colors */
    --female-accent: #db2777;
    --female-bg: #fdf2f8;
    --male-accent: #2563eb;
    --male-bg: #eff6ff;

    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border-radius: 24px;
    --font-main: 'Inter', 'Noto Sans JP', sans-serif;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.8;
    background-color: var(--background);
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
}

p {
    color: var(--text-light);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 80px 0;
}

/* Header */
header {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

/* Hero */
.hero {
    position: relative;
    padding: 100px 0 60px;
    background: var(--bg-gradient);
    overflow: hidden;
    text-align: center;
}

.hero::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 168, 204, 0.1) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    margin-bottom: 24px;
    background: linear-gradient(to bottom, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    max-width: 800px;
    margin: 0 auto;
    font-weight: 500;
}

.tagline {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 51, 102, 0.05);
    border-radius: 50px;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    font-size: 0.8rem;
}

/* Gender Sections */
.gender-section {
    background: white;
}

.section-female {
    background: var(--female-bg);
}

.section-male {
    background: var(--male-bg);
}

.section-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.section-title-wrapper h2 {
    font-size: 2.25rem;
}

.section-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-md);
}

.female-icon {
    background: var(--female-accent);
}

.male-icon {
    background: var(--male-accent);
}

/* Drugs Grid */
.drugs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.drug-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 32px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.drug-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Card Specific Theme Colors from Portal */
.card-md .service-icon {
    color: #0369a1;
    background: #e0f2fe;
}

.card-aga .service-icon {
    color: #6d28d9;
    background: #ede9fe;
}

.card-bihaku .service-icon {
    color: #be123c;
    background: #ffe4e6;
}

.card-bihaku-topical .service-icon {
    color: #9d174d;
    background: #fce7f3;
}

.drug-card h3 {
    font-size: 1.4rem;
}

.drug-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 30px;
    flex-grow: 1;
}

.drug-item {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 20px;
}

.drug-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.drug-name-group {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.drug-name {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.05rem;
}

.status-label {
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
}

.status-ng {
    background: var(--ng-bg);
    color: var(--status-ng);
}

.status-ok {
    background: var(--ok-bg);
    color: var(--status-ok);
}

.status-caution {
    background: var(--caution-bg);
    color: var(--status-caution);
}

.instruction {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.remarks {
    background: var(--bg-light);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    border-left: 4px solid #cbd5e1;
}

.remarks strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-dark);
}

/* Service Link Button */
.service-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: var(--primary);
    color: white;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    gap: 8px;
    transition: var(--transition);
    font-size: 0.9rem;
    margin-top: auto;
}

.service-link:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* Concerns Section */
.concerns-section {
    background: var(--bg-light);
}

.concern-card {
    background: white;
    padding: 32px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    border-left: 6px solid var(--secondary);
}

.concern-card h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: var(--secondary);
}

.concern-card p {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Portal Link Button */
.portal-link-section {
    padding: 60px 0;
}

.btn-portal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 48px;
    background: white;
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid var(--primary);
}

.btn-portal:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

/* Footer */
footer {
    background: #f0f4f8;
    padding: 60px 0 30px;
}

.footer-inner {
    text-align: center;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    .header-inner {
        justify-content: center;
    }

    .logo-text {
        font-size: 0.9rem;
    }

    .section-title-wrapper h2 {
        font-size: 1.75rem;
    }

    .drugs-grid {
        grid-template-columns: 1fr;
    }

    .drug-card {
        padding: 24px;
    }

    .concern-card {
        padding: 24px 20px;
    }

    .concern-card h3 {
        font-size: 1rem;
    }

    .concern-card p {
        font-size: 0.85rem;
    }

    .btn-portal {
        padding: 16px 32px;
        width: 100%;
        font-size: 0.95rem;
    }
}