:root {
    --primary-color: #66bf97;
    --primary-dark: #408855;
    --bg-color: #f8f7f5;
    --bg-light: #ffffff;
    --text-color: #1a171c;
    --text-muted: #666467;
    --white: #ffffff;
    --accent-color: #e67e22;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
}

#medical-diet-content {
    margin-top: 133px;
}

.section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.bg-light {
    background-color: var(--bg-light);
    max-width: 100%;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 4rem;
    letter-spacing: 0.05em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.section-title i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
}

.section-title span {
    display: block;
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 20px auto 0;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 15px;
    background-color: var(--white);
    border-bottom: 1px solid #eaeaea;
}

.lang-btn {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.95rem;
    padding: 8px 20px;
    border-radius: 20px;
    background-color: #f0f0f0;
    transition: all 0.3s ease;
    font-weight: 500;
}

.lang-btn:hover {
    background-color: #e0e0e0;
}

.lang-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 700;
}

/* Hero Section */
.medical-hero {
    height: calc(100vh - 133px);
    min-height: 600px;
    background: url('./img/hero-diet.jpg') no-repeat center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

.hero-inner {
    background: rgba(255, 255, 255, 0.3);
    /* Lower opacity white glass for better blending */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 30px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    /* Stronger white border */
    width: 1000px;
    height: 300px;
    max-width: 95%;
    margin: 100px auto 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
}

.hero-inner h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.25;
    margin-bottom: 0.8rem;
    letter-spacing: 0.1em;
}

.hero-inner h1 span {
    color: var(--primary-color);
    display: inline-block;
    font-size: 3.2rem;
    margin-left: 10px;
    font-weight: 500;
}

.hero-inner p {
    color: var(--primary-dark);
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 10px;
}

.btn-primary {
    background-color: var(--white);
    color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--primary-color);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(102, 191, 151, 0.3);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.benefit-item {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
}

.benefit-item h3 {
    color: var(--primary-dark);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

/* Comparison Table */
.comparison-table-wrapper {
    margin-top: 40px;
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.comparison-table th,
.comparison-table td {
    padding: 20px 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.comparison-table th {
    background: linear-gradient(to bottom, #f9f9f9, #f0f0f0);
    font-weight: 700;
    color: var(--primary-dark);
    border-bottom: 2px solid var(--primary-color);
}

.comparison-table tr:nth-child(even) td {
    background-color: #fafafa;
}

.comparison-table .highlight {
    background: rgba(102, 191, 151, 0.08) !important;
    color: var(--primary-dark);
}

/* Medicine Items */
.medicine-flex {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.medicine-item {
    flex: 1;
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border-top: 8px solid var(--primary-color);
}

.medicine-item .tag {
    display: inline-block;
    padding: 5px 15px;
    background: #f0f0f0;
    border-radius: 5px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Pricing Section */
.price-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    gap: 20px;
}

.tab-btn {
    padding: 15px 40px;
    border: 2px solid var(--primary-color);
    background: var(--white);
    cursor: pointer;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    color: var(--primary-color);
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.price-item {
    display: none;
    animation: fadeIn 0.5s ease;
}

.price-item.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.price-table-container {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.price-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.price-table th,
.price-table td {
    padding: 20px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.price-table th {
    background: linear-gradient(to bottom, #f9f9f9, #f0f0f0);
    color: var(--primary-dark);
    font-weight: 700;
    border-bottom: 2px solid var(--primary-color);
    text-align: center;
}

.price-table th:first-child {
    text-align: left;
}

.price-table td {
    text-align: center;
}

.price-table td:first-child {
    text-align: left;
}

.price-table tr:nth-child(even) td {
    background-color: #fafafa;
}

.price-table th {
    font-weight: 700;
    color: var(--text-muted);
}

.price-table td {
    font-size: 1rem;
}

.price-table tr:last-child td {
    border-bottom: none;
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.faq-q {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.faq-q::before {
    content: "Q. ";
    color: var(--primary-color);
}

/* Campaign */
.campaign-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 60px;
    border-radius: 30px;
    text-align: center;
}

.campaign-banner h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.campaign-banner p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Clinical Data */
.clinical-data {
    background: #fdfdfd;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    margin-top: 20px;
}

.clinical-data h4 {
    color: var(--primary-dark);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

/* Timeline */
.timeline-container {
    max-width: 800px;
    margin: 40px auto 0;
    position: relative;
    padding-left: 40px;
}

.timeline-container::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-marker {
    position: absolute;
    left: -38px;
    top: 5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px rgba(102, 191, 151, 0.2);
}

.timeline-content h4 {
    color: var(--primary-dark);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* Side Effects Grid */
.side-effects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.side-info,
.side-tips {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.side-info h3,
.side-tips h3 {
    color: var(--primary-dark);
    font-size: 1.3rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.effect-list,
.tips-list {
    list-style: none;
    padding: 0;
}

.effect-list li,
.tips-list li {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
}

.effect-list li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.tips-list li strong {
    color: var(--primary-dark);
    display: block;
    margin-bottom: 5px;
}

/* Warning Box */
.warning-box {
    background: #fff5f5;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #feb2b2;
}

.warning-box h3 {
    color: #c53030;
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: center;
}

.warning-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.warning-item strong {
    color: #c53030;
    display: block;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.warning-note {
    margin-top: 30px;
    font-size: 0.95rem;
    color: #c53030;
    text-align: center;
    font-weight: 500;
}

/* Usage guide support */
.usage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.usage-card {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
}

.usage-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.usage-card h4 {
    color: var(--primary-dark);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

/* Lifestyle support */
.lifestyle-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.lifestyle-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
}

.lifestyle-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.lifestyle-card h4 {
    color: var(--primary-dark);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* Responsive */
@media screen and (max-width: 900px) {

    .benefits-grid,
    .medicine-flex,
    .side-effects-grid,
    .warning-grid,
    .lifestyle-content,
    .usage-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .hero-inner h1 {
        font-size: 3rem;
    }

    .hero-inner h1 span {
        font-size: 4rem;
    }
}

@media screen and (max-width: 768px) {
    #medical-diet-content {
        margin-top: 90px;
    }

    .lang-switcher {
        padding-top: 25px;
        padding-bottom: 20px;
    }

    .section {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-inner {
        width: 90%;
        height: auto;
        padding: 30px 15px;
        border-radius: 20px;
        margin: 50px auto 0;
    }

    .hero-inner h1 {
        font-size: 1.7rem;
        line-height: 1.3;
    }

    .hero-inner h1 span {
        font-size: 2.6rem;
        /* Increased (+4pt equivalent) */
        display: block;
        margin-left: 0;
    }

    .hero-inner p {
        font-size: 1rem;
    }

    .btn-primary,
    .btn-secondary {
        display: block;
        margin: 10px auto;
    }

    .comparison-table td,
    .comparison-table th,
    .price-table td,
    .price-table th {
        white-space: nowrap;
        padding: 15px 10px;
    }

    .lifestyle-card,
    .side-info,
    .side-tips,
    .warning-box {
        padding: 25px 20px;
    }

    .timeline-container {
        padding-left: 30px;
    }

    /* Footer Fixed-Width Fixes */
    footer .noFrameBoxL,
    footer .noFrameBoxR,
    footer .noFrameBoxInner,
    footer dd,
    footer ul.clinic_sche,
    footer ul.clinic_sche li {
        width: 100% !important;
        float: none !important;
        box-sizing: border-box !important;
    }

    footer dl dt {
        width: auto !important;
        margin-right: 10px;
    }

    footer .footerlogo3 img {
        max-width: 100%;
        height: auto;
    }
}