:root {
    --color-primary: #0F4C75;
    /* Deep Blue for Trust */
    --color-secondary: #5B8C5A;
    /* Sage Green for Healing */
    --color-accent: #D4AF37;
    /* Gold for Premium */
    --color-bg: #F9F9F9;
    --color-surface: #FFFFFF;
    --color-text-main: #333333;
    --color-text-light: #666666;
    --color-white: #FFFFFF;

    --font-main: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

h1 {
    font-size: 2.5rem;
    letter-spacing: 0.05em;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
    display: block;
    width: 100%;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-secondary);
    margin: var(--spacing-xs) auto 0;
}

p {
    margin-bottom: var(--spacing-sm);
}

.highlight {
    color: var(--color-secondary);
    font-weight: bold;
    background: linear-gradient(transparent 60%, rgba(91, 140, 90, 0.2) 60%);
}

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

.text-bold {
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--color-secondary);
    color: var(--color-white);
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: var(--radius-full);
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    border: none;
    cursor: pointer;
    letter-spacing: 0.05em;
}

.btn:hover {
    background-color: #4a7549;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary {
    background-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: #0a3655;
}

.btn-line {
    background-color: #06C755;
    /* LINE Green */
    color: #fff;
    font-weight: bold;
}

.btn-line:hover {
    background-color: #05a546;
    box-shadow: 0 4px 15px rgba(6, 199, 85, 0.4);
}

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

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

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-sm) 0;
}

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

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* Hero Section */
.hero {
    padding-top: 120px;
    padding-bottom: var(--spacing-xl);
    background: linear-gradient(135deg, #E6F4F1 0%, #FFFFFF 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-tagline {
    font-size: 1.2rem;
    color: var(--color-secondary);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    display: block;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
}

.hero-image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(to right, #e0eafc, #cfdef3);
    margin-top: var(--spacing-md);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-weight: bold;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}



/* Problem Section */
.problem {
    background-color: var(--color-white);
}

.problem-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.problem-card {
    background-color: var(--color-bg);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.check-icon {
    color: var(--color-secondary);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    display: block;
}

.solution-box {
    margin-top: var(--spacing-lg);
    background-color: #E6F4F1;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border-left: 5px solid var(--color-primary);
}

/* Credibility Section */
.credibility {
    background-color: #F0F7FF;
}

.profile-card {
    display: flex;
    flex-direction: column;
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
    .profile-card {
        flex-direction: row;
        align-items: center;
    }

    .option-card {
        flex-direction: row-reverse;
    }
}

.profile-image {
    width: 100%;
    height: 300px;
    background-color: #ccc;
    object-fit: cover;
    background-position: center top !important;
    /* Ensure face is not cut off */
}

@media (min-width: 768px) {
    .profile-image {
        width: 40%;
        height: 400px;
    }
}

.profile-content {
    padding: var(--spacing-md);
    flex: 1;
}

.qualification-badge {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
}

/* Services Section */
.services {
    background-color: var(--color-white);
}

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

.service-card {
    background-color: var(--color-white);
    border: 1px solid #eee;
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-md);
}

.service-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: var(--spacing-sm) 0;
}

.service-tag {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--color-accent);
    color: #fff;
    padding: 0.25rem 1rem;
    font-size: 0.8rem;
    border-bottom-left-radius: var(--radius-md);
}

/* Option Section */
.option-section {
    background-color: #F9F9F9;
    border-top: 1px solid #eee;
}

/* CTA Section */
.cta-section {
    background-color: var(--color-primary);
    color: var(--color-white);
    text-align: center;
}

.cta-section h2 {
    color: var(--color-white);
}

.cta-section h2::after {
    background-color: var(--color-accent);
}

/* Footer */
footer {
    background-color: #0a3655;
    color: rgba(255, 255, 255, 0.7);
    padding: var(--spacing-md) 0;
    text-align: center;
    font-size: 0.9rem;
}

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

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

/* Responsive */
@media (max-width: 768px) {
    :root {
        --spacing-md: 1.5rem;
        --spacing-lg: 2.5rem;
        --spacing-xl: 4rem;
    }

    .desktop-only {
        display: none;
    }

    h1 {
        font-size: 1.6rem;
        /* Slightly smaller to prevent overflow */
        line-height: 1.4;
        word-break: auto-phrase;
        /* Try to break naturally if supported */
    }

    h2 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
        line-height: 1.4;
    }

    h3 {
        font-size: 1.2rem;
        line-height: 1.4;
    }

    .container {
        padding: 0 1rem;
    }

    /* Header */
    .header-inner {
        flex-direction: row;
        /* Keep row but adjust spacing */
        gap: 0.5rem;
    }

    .logo {
        font-size: 1rem;
        /* Smaller logo */
    }

    .header-inner .btn {
        padding: 0.4rem 1rem !important;
        font-size: 0.8rem !important;
    }

    header {
        padding: 0.5rem 0;
    }

    /* Hero */
    .hero {
        padding-top: 100px;
        padding-bottom: 3rem;
    }

    .hero-image-placeholder {
        height: 250px;
        margin-top: 1.5rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .hero-sub {
        font-size: 1rem;
    }

    /* Profile */
    .profile-image {
        height: 250px;
    }

    .profile-content {
        padding: 1.5rem;
    }

    /* Services */
    .service-grid {
        grid-template-columns: 1fr;
        /* Force single column on mobile */
    }

    /* Modal */
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .plan-container {
        padding: 1rem;
        gap: 1.5rem;
    }

    .plan-card {
        padding: 1.5rem;
    }

    .close-modal {
        right: 15px;
        top: 5px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: 1px solid #888;
    width: 90%;
    max-width: 900px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: slideIn 0.3s;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 10px;
    cursor: pointer;
    z-index: 10;
}

.close-modal:hover,
.close-modal:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal-content h2 {
    text-align: center;
    padding: 2rem 0 1rem;
    margin-bottom: 0;
}

/* Plan Cards in Modal */
.plan-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
    background-color: #f9f9f9;
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
}

@media (min-width: 768px) {
    .plan-container {
        flex-direction: row;
        align-items: stretch;
    }
}

.plan-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 2rem;
    flex: 1;
    box-shadow: var(--shadow-sm);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    position: relative;
}

.plan-card.recommended {
    border: 2px solid var(--color-primary);
    box-shadow: var(--shadow-md);
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-accent);
    color: #fff;
    padding: 0.25rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: bold;
}

.plan-header {
    text-align: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.plan-header h3 {
    color: var(--color-primary);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--color-text-main);
}

.plan-price .period {
    font-size: 0.9rem;
    font-weight: normal;
    color: #666;
}

.plan-target {
    color: var(--color-secondary);
    font-weight: bold;
    margin-top: 0.5rem;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    flex: 1;
}

.plan-features li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
    font-size: 0.95rem;
}

.plan-features li i {
    color: var(--color-secondary);
    margin-right: 0.5rem;
    margin-top: 4px;
}

.plan-features .note {
    font-size: 0.8rem;
    color: #888;
    display: block;
    margin-left: 0;
}

.plan-btn {
    width: 100%;
    text-align: center;
    margin-top: auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

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