@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;500;700&display=swap');

:root {
    --color-base: #FDFCF5;
    --color-main: #A8D8B9;
    --color-main-dark: #88C0A0;
    --color-sub: #D8CBB3;
    --color-text: #4A4A4A;
    --color-white: #FFFFFF;
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 32px;
    --spacing-lg: 64px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

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

body {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    color: var(--color-text);
    background-color: var(--color-base);
    line-height: 1.8;
    letter-spacing: 0.05em;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

/* Responsive Utilities */
.pc-br {
    display: none;
}

.sp-br {
    display: block;
}

.pc-only {
    display: none !important;
}

.sp-only {
    display: block !important;
}

/* Text Alignment Helpers */
.text-left-sp {
    text-align: left;
}

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

@media (min-width: 768px) {
    .pc-br {
        display: block;
    }

    .sp-br {
        display: none;
    }

    .pc-only {
        display: block !important;
    }

    .sp-only {
        display: none !important;
    }

    .text-left-sp {
        text-align: inherit;
    }
}

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

.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Header */
.header {
    background-color: var(--color-white);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

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

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

.nav-pc {
    display: none;
}

.nav-mobile-btn {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--color-main-dark);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background-color: var(--color-base);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
    padding: var(--spacing-md);
    text-align: center;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu a {
    display: block;
    padding: var(--spacing-sm);
    font-weight: 700;
    color: var(--color-text);
    border-bottom: 1px dashed var(--color-sub);
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
    /* Reset spacing */
    margin-bottom: var(--spacing-sm);
}

.section-title {
    text-align: center;
    color: var(--color-main-dark);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    /* Ensure title fits on one line on mobile if possible */
    white-space: nowrap;
}

@media (max-width: 380px) {

    /* Slightly smaller font on very small screens to ensure fit */
    .section-title {
        font-size: 1.3rem;
    }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--color-sub);
    border-radius: 3px;
}

.btn {
    display: inline-block;
    background-color: var(--color-main);
    color: var(--color-white);
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 4px 6px rgba(168, 216, 185, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(168, 216, 185, 0.5);
    opacity: 1;
}

.btn-secondary {
    background-color: var(--color-sub);
    box-shadow: 0 4px 6px rgba(216, 203, 179, 0.4);
}

/* Sections */
.section {
    padding: var(--spacing-lg) 0;
}

/* Hero */
.hero {
    position: relative;
    width: 100%;
    /* Remove fixed height to show full image */
    height: auto;
    background-color: var(--color-sub);
    overflow: hidden;
}

.hero img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-overlay {
    position: relative;
    width: 100%;
    height: auto;
    background: var(--color-base);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--spacing-md) 0 var(--spacing-lg);
}

.hero-overlay>* {
    pointer-events: auto;
}

.hero-copy {
    /* Hide copy if text is in image, or keep specific styles */
    display: none;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: 0;
}

/* Top Life Section */
.life-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.life-text {
    background-color: var(--color-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.life-image img {
    border-radius: var(--radius-md);
}

/* Diagnosis Banner Mobile First */
.diagnosis-banner {
    display: block;
    /* Ensure it's a block container */
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-top: var(--spacing-lg);
    background-color: #fff;
    /* Fallback */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    /* Add shadow for better separation */
}

/* On mobile, let text sit below image or be static to ensure it fits */
.diagnosis-text {
    position: relative;
    /* Changed from absolute */
    background: #fff;
    padding: var(--spacing-md);
    text-align: center;
    bottom: auto;
    left: auto;
    right: auto;
}

/* Service & Trainer Pages */
.page-header {
    padding: var(--spacing-lg) 0 var(--spacing-md);
    text-align: center;
    background-color: #F7F5EC;
}

.content-block {
    margin-bottom: var(--spacing-lg);
    background: var(--color-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

/* YouTube */
.youtube-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.youtube-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.youtube-shorts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-sm);
}

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

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 700;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-sub);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    background-color: #FAFAFA;
}

.diagnosis-options {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.diagnosis-option {
    padding: var(--spacing-sm);
    border: 1px solid var(--color-sub);
    border-radius: var(--radius-sm);
    cursor: pointer;
    background: #FFF;
}

.diagnosis-option:hover {
    background-color: #F0F9F4;
}

/* Footer */
.footer {
    background-color: var(--color-text);
    color: var(--color-white);
    padding: var(--spacing-lg) 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer-nav {
    margin-bottom: var(--spacing-md);
}

.footer-nav a {
    color: var(--color-white);
    margin: 0 var(--spacing-sm);
    display: inline-block;
}

/* Responsive PC */
@media (min-width: 768px) {
    .nav-pc {
        display: block;
    }

    .nav-pc a {
        margin-left: var(--spacing-md);
        font-weight: 700;
        color: var(--color-text);
        font-size: 0.95rem;
    }

    .nav-mobile-btn,
    .mobile-menu {
        display: none;
    }

    .hero-buttons {
        flex-direction: row;
        gap: var(--spacing-md);
    }

    .life-content {
        flex-direction: row;
        align-items: center;
    }

    .life-text,
    .life-image {
        flex: 1;
    }

    .diagnosis-text {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 80%;
        bottom: var(--spacing-lg);
        background: rgba(255, 255, 255, 0.9);
        /* Restore opacity */
    }
}

/* Price Row Utility */
.price-row {
    display: block;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px dashed #ccc;
}

.price-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.price-label {
    display: block;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 4px;
    white-space: nowrap;
    /* Prevent text wrap */
}

@media (max-width: 400px) {
    .price-label {
        font-size: 1rem;
        /* Adjust for smaller screens */
    }
}

.price-value {
    display: block;
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--color-main-dark);
    text-align: right;
    /* Keep price right aligned or left? User wants break. Let's align right for price usually */
}

@media (min-width: 768px) {
    .price-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .price-label {
        margin-bottom: 0;
    }

    .price-value {
        text-align: right;
    }
}