/* Reset & Base */
:root {
    --color-bg: #FDFCF5;
    /* Ivory */
    --color-text: #333333;
    /* Black/Dark Gray */
    --color-gold: #C5A059;
    /* Gold Accent */
    --color-main: #ff9999;
    /* Pianeys Main Color */
    --color-cta: #ff9999;
    /* Pink CTA (Main Color) */
    --color-cta-hover: #ff7f7f;
    --color-brown: #4A3B32;
    /* Dark Brown */
    --color-line: #06C755;
    /* LINE Green */
    --color-light-gray: #f4f4f4;
    --font-base: 'Noto Sans JP', sans-serif;
    --font-serif: 'Noto Serif JP', serif;
}

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

body {
    font-family: var(--font-base);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.8;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    opacity: 0.8;
}

p a {
    color: #007bff;
    text-decoration: underline;
}

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.sp-only {
    display: block;
}

@media (min-width: 768px) {
    .sp-only {
        display: none;
    }
}

/* Buttons */
.btn-cta {
    display: inline-block;
    background-color: var(--color-cta);
    color: #fff;
    font-weight: 700;
    text-align: center;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(255, 153, 153, 0.4);
    transition: transform 0.2s, background-color 0.2s;
}

.btn-cta:hover {
    background-color: var(--color-cta-hover);
    transform: translateY(-2px);
    opacity: 1;
}

.line-text-icon {
    background-color: #06C755;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9em;
    margin: 0 2px;
    display: inline-block;
    line-height: 1.2;
}

.req-item .line-text-icon {
    font-size: 0.8em;
    vertical-align: middle;
}

.btn-lg {
    padding: 10px 40px;
    font-size: 1.2rem;
    width: 100%;
    max-width: 320px;
}

.btn-sm {
    padding: 12px 24px;
    font-size: 1rem;
    width: 100%;
}



/* Sticky CTA (Mobile) */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    /* Slightly taller for better touch area */
    background-color: rgba(255, 255, 255, 0.95);
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 0 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.sticky-cta .btn-cta {
    /* width: 100%; handled by btn-lg */
    /* padding: 12px; handled by btn-lg */
    /* font-size: 1.1rem; handled by btn-lg */
    background-color: var(--color-cta);
    /* Revert to Pink */
}

.sticky-cta .btn-cta:hover {
    background-color: var(--color-cta-hover);
}

@media (min-width: 768px) {
    .sticky-cta {
        display: none;
    }
}

/* Hero Section */
.hero {
    background-image: url('images/hero.png');
    background-size: cover;
    background-position: center;
    color: #222;
    /* Changed to dark for better contrast on light overlay if needed, or keep white if image is dark */
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    /* Light overlay to ensure text readability */
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--color-gold), #fdfcf5);
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-service-name {
    font-size: 1.4rem;
    font-weight: bold;
    color: #222;
    margin-bottom: 15px;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--color-gold);
    padding-bottom: 5px;
    display: inline-block;
}

.badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.badge {
    background-color: #fff;
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
    padding: 5px 15px;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 20px;
}

.hero-catch {
    font-size: 3.2rem;
    /* Increased size for impact */
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.3;
    letter-spacing: 0.05em;
    color: #222;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
}

@media (max-width: 767px) {
    .hero-catch {
        font-size: 1.5rem;
        word-break: keep-all;
    }
}

.hero-sub {
    font-size: 1.2rem;
    margin-bottom: 15px;
    line-height: 1.8;
    font-weight: 500;
}

/* Why Section */
.section-why {
    padding: 80px 0;
    background-color: #fff;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 20px;
}

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

.problem-solution {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.problem {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.problem ul {
    text-align: left;
    display: inline-block;
}

.problem li {
    margin-bottom: 10px;
    padding-left: 1.5em;
    position: relative;
}

.problem li::before {
    content: '×';
    color: #e74c3c;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.arrow-down {
    font-size: 2rem;
    color: var(--color-gold);
    margin: 10px 0;
}

.solution {
    border: 2px solid var(--color-gold);
    padding: 40px 30px;
    border-radius: 8px;
    background-color: #fff;
}

.solution h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--color-text);
}

/* Process Section */
.section-process {
    padding: 80px 0;
}

/* Timeline Fix for PC */
.timeline {
    max-width: 800px;
    margin: 0 auto 60px;
    position: relative;
    padding-left: 20px;
    /* Mobile padding */
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background-color: #ddd;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    /* Default to column for mobile */
    margin-bottom: 40px;
    position: relative;
    padding-left: 40px;
    /* Space for line */
}

.timeline-label {
    background-color: var(--color-gold);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 10px;
    align-self: flex-start;
    width: auto;
    /* Allow auto width */
    min-width: 80px;
    text-align: center;
}

.timeline-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    width: 100%;
    margin-left: 0;
}

@media (min-width: 768px) {
    .timeline {
        padding-left: 0;
    }

    .timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .timeline-item {
        flex-direction: row;
        /* Side by side on PC */
        justify-content: center;
        align-items: center;
        padding-left: 0;
    }

    .timeline-label {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        margin-bottom: 0;
        z-index: 2;
    }

    .timeline-content {
        width: 40%;
    }

    .timeline-item:nth-child(odd) {
        flex-direction: row-reverse;
    }

    .timeline-item:nth-child(odd) .timeline-content {
        text-align: left;
        margin-right: auto;
        /* Push to left */
        margin-left: 0;
    }

    .timeline-item:nth-child(even) .timeline-content {
        text-align: right;
        margin-left: auto;
        /* Push to right */
        margin-right: 0;
    }

    /* Fix for overlapping text if content is too wide or label too big */
    /* Ensure label doesn't cover content by adding margin to content if needed, 
       but the 40% width should handle it. 
       The issue in the screenshot was likely the label being absolute but the content not being pushed away.
       With 40% width and auto margins, there should be a 20% gap in the middle.
    */
}

/* Student Count */
.student-count {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Merits Section (Accordion) */
.section-merits {
    padding: 40px 0;
    background-color: #f9f9f9;
}

.merits-details {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.merits-summary {
    padding: 20px;
    font-weight: bold;
    cursor: pointer;
    list-style: none;
    position: relative;
    color: var(--color-text);
}

.merits-summary::-webkit-details-marker {
    display: none;
}

.merits-summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-weight: bold;
    color: var(--color-gold);
}

.merits-details[open] .merits-summary::after {
    content: '-';
}

.merits-content {
    padding: 20px;
    border-top: 1px solid #eee;
    font-size: 0.95rem;
    line-height: 1.8;
}

.merits-content h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--color-gold);
    font-size: 1.1rem;
}

.merits-content p {
    margin-bottom: 15px;
}

/* Encouragement Section */
.section-encouragement {
    padding: 60px 0;
    background-color: var(--color-bg);
    text-align: center;
}

.section-encouragement p {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 2;
}

/* Requirements Section */
.requirements {
    margin-top: 40px;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.req-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--color-gold);
}

.req-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.req-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.req-item span {
    font-size: 2.5rem;
}

.req-item p {
    font-weight: bold;
    font-size: 1rem;
}

/* Assurance Section */
.section-assurance {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.assurance-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .assurance-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
        margin: 40px auto 0;
    }
}

/* Program Section */
.section-program {
    padding: 80px 0 40px;
    background-color: #fff;
}

.program-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .program-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.program-card {
    border: 1px solid #eee;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: box-shadow 0.3s;
}

.program-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.program-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    min-height: 3em;
    /* Align heights */
}

.price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-gold);
    margin-bottom: 5px;
}

.currency {
    font-size: 1rem;
    color: var(--color-text);
}

.note {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 20px;
}

.program-features {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.program-features li {
    background-color: #f4f4f4;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Comparison Summary */
.comparison-summary {
    max-width: 800px;
    margin: 0 auto 40px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.comparison-summary h3 {
    background-color: var(--color-gold);
    color: #fff;
    text-align: center;
    padding: 15px;
    margin: 0;
    font-size: 1.2rem;
}

.comparison-table {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    position: relative;
    flex-direction: column;
    /* Default to column for mobile */
    gap: 30px;
}

.comp-col {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.comp-col h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #222;
    border-bottom: 2px solid #eee;
    display: inline-block;
    padding-bottom: 5px;
}

.comp-col ul {
    text-align: left;
    display: inline-block;
    font-size: 0.9rem;
}

.comp-col li {
    margin-bottom: 8px;
    list-style-type: disc;
}

.comp-vs {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: #eee;
    color: #888;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    /* Adjust for mobile column layout */
    top: auto;
    bottom: auto;
    position: relative;
    transform: none;
    left: auto;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .comparison-table {
        flex-direction: row;
        gap: 0;
    }

    .comp-vs {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
    }
}

.comparison-details {
    border-top: 1px solid #eee;
}

.comparison-details summary {
    padding: 15px;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    color: var(--color-gold);
    list-style: none;
    outline: none;
}

.comparison-details summary::-webkit-details-marker {
    display: none;
}

.comparison-details summary::after {
    content: '▼';
    font-size: 0.8rem;
    margin-left: 5px;
}

.comparison-details[open] summary::after {
    content: '▲';
}

.comparison-text-inner {
    padding: 20px;
    background-color: #f9f9f9;
    font-size: 0.95rem;
    line-height: 1.8;
}

.comparison-text-inner p {
    margin-bottom: 15px;
}

.comparison-consult {
    background-color: #fff;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #eee;
}

.comparison-consult p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Program Details (Collapsible in Card) */
.program-details {
    margin-bottom: 20px;
    text-align: left;
}

.program-details summary {
    cursor: pointer;
    color: #888;
    font-size: 0.85rem;
    text-align: center;
    list-style: none;
    margin-bottom: 10px;
    text-decoration: underline;
}

.program-details summary::-webkit-details-marker {
    display: none;
}

.program-details p {
    font-size: 0.9rem;
    color: #555;
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 4px;
    line-height: 1.6;
}

/* Assurance Section */
.section-assurance {
    padding: 80px 0;
    background-color: var(--color-light-gray);
}

.classroom-comparison {
    max-width: 800px;
    margin: 0 auto 60px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.comparison-header {
    background-color: var(--color-gold);
    color: #fff;
    padding: 15px;
    text-align: center;
}

.comparison-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.comparison-highlight {
    padding: 30px;
    text-align: center;
    background-color: #fffbf0;
    border-bottom: 1px solid #eee;
}

.comparison-highlight p {
    font-size: 1.1rem;
    font-weight: bold;
    color: #222;
    margin-bottom: 10px;
}

.comparison-highlight .price-tag {
    font-size: 1.8rem;
    color: var(--color-gold);
    font-weight: bold;
}

.classroom-details {
    padding: 0;
}

.classroom-details summary {
    padding: 15px;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    color: #666;
    list-style: none;
    background-color: #fff;
    border-top: 1px solid #eee;
}

.classroom-details summary::-webkit-details-marker {
    display: none;
}

.classroom-details summary::after {
    content: '▼';
    font-size: 0.8rem;
    margin-left: 5px;
}

.classroom-details[open] summary::after {
    content: '▲';
}

.classroom-text-inner {
    padding: 30px;
    background-color: #f9f9f9;
    font-size: 0.95rem;
    line-height: 1.8;
    border-top: 1px solid #eee;
}

.classroom-text-inner p {
    margin-bottom: 15px;
}





/* Instructor Section */
.section-instructor {
    padding: 80px 0;
}

.instructor-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .instructor-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.instructor-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0 auto 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.instructor-video iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instructor-card h3 {
    margin-bottom: 15px;
    font-family: var(--font-serif);
}

.instructor-card ul {
    text-align: left;
    display: inline-block;
    font-size: 0.9rem;
}

.instructor-card li {
    margin-bottom: 5px;
}

/* FAQ Section */
.section-faq {
    padding: 80px 0 40px;
    background-color: #fff;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--color-gold);
}

.faq-item p {
    margin-bottom: 15px;
}

.text-link {
    color: var(--color-cta);
    font-weight: bold;
    font-size: 0.9rem;
}

/* Footer */
.footer-cta {
    padding: 80px 0 100px;
    /* Extra padding for sticky CTA */
    background-color: #F8F4E6;
    /* Light Beige */
    color: var(--color-text);
    /* Dark Text */
    text-align: center;
}

.footer-cta h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 15px;
}

.footer-sub {
    margin-bottom: 40px;
    opacity: 0.8;
}

.copyright {
    margin-top: 60px;
    opacity: 0.5;
    font-size: 0.8rem;
}