:root {
    --primary: #003366;
    --primary-light: #004080;
    --secondary: #00a8cc;
    --accent: #ffd700;
    --text-dark: #1a1a1a;
    --text-light: #555555;
    --bg-light: #f4f7f9;
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.8);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --border-radius: 16px;
    --font-main: 'Inter', 'Noto Sans JP', sans-serif;
}

* {
    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.7;
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 100px 0;
}

/* Header */
header {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

/* Hero Section */
.hero {
    background: radial-gradient(circle at top right, #e0eafc, #cfdef3);
    color: var(--primary);
    text-align: center;
    padding: 140px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: rgba(0, 168, 204, 0.1);
    border-radius: 50%;
    filter: blur(60px);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    line-height: 1.1;
    background: linear-gradient(to bottom, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    max-width: 750px;
    margin: 0 auto 40px;
    color: var(--text-light);
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: var(--secondary);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Medication Cards */
.med-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.med-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.med-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.med-card h3 {
    margin-bottom: 18px;
    font-size: 1.4rem;
}

.med-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 24px;
    background: #f9f9f9;
}

/* Table Design */
.price-table-container {
    overflow-x: auto;
    margin-top: 40px;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

th,
td {
    padding: 20px 24px;
    text-align: left;
}

th {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

td {
    border-bottom: 1px solid #f0f0f0;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: #fcfcfc;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 51, 102, 0.2);
}

.btn-wb {
    background: var(--secondary);
    color: var(--white);
}

.btn-wb:hover {
    background: #0091b3;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1,
.hero p,
.hero .btn {
    animation: fadeIn 0.8s ease-out forwards;
}

.hero p {
    animation-delay: 0.2s;
}

.hero .btn {
    animation-delay: 0.4s;
}

/* Responsive */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    .hero {
        padding: 80px 0;
    }

    .hero h1 {
        font-size: 2.1rem;
        line-height: 1.3;
        margin-bottom: 20px;
        -webkit-text-fill-color: initial;
        background: none;
        color: var(--primary);
    }

    .hero p {
        font-size: 1.05rem;
        margin-bottom: 30px;
    }

    .section-title {
        margin-bottom: 40px;
    }

    .section-title h2 {
        font-size: 1.7rem;
    }

    .med-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .med-card {
        padding: 30px 20px;
    }

    .med-card img {
        height: 180px;
    }

    .price-table-container {
        margin: 0 -24px;
        padding: 0 24px;
        -webkit-overflow-scrolling: touch;
    }

    table {
        font-size: 0.9rem;
    }

    th,
    td {
        padding: 15px 12px;
    }

    .btn {
        width: 100%;
        padding: 16px 20px;
    }

    header {
        padding: 10px 0;
    }

    .header-inner {
        flex-direction: column;
        gap: 8px;
    }

    .logo {
        font-size: 1.1rem;
        text-align: center;
    }

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: inline-block;
    }
}

@media (min-width: 769px) {
    .mobile-only {
        display: none;
    }
}