:root {
    --primary-color: #F4A261;
    /* 温かみのあるオレンジ */
    --secondary-color: #2A9D8F;
    /* 成長を表すグリーン */
    --accent-color: #E76F51;
    /* 注意を引く濃いオレンジ（CTA用） */
    --text-color: #333333;
    --bg-color: #FEFAE0;
    /* 優しいクリーム色 */
    --white: #ffffff;
    --font-main: "M PLUS Rounded 1c", "Zen Maru Gothic", sans-serif;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.8;
    background-color: var(--white);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

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

a:hover {
    opacity: 0.8;
}

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

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

.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 40px;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title span {
    color: var(--accent-color);
}

.sp-only {
    display: block;
}

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

/* Header */
.header {
    background: var(--white);
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.header-inner {
    width: 94%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo span {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.nav-pc {
    display: none;
}

.header-cta {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.9rem;
}

/* FV */
.fv {
    margin-top: 70px;
    background-color: var(--bg-color);
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.fv-main {
    font-size: 2rem;
    margin: 20px 0;
    color: var(--secondary-color);
}

.highlight {
    background: linear-gradient(transparent 60%, #ffeb3b 60%);
    padding: 0 5px;
}

.fv-text {
    margin-bottom: 30px;
    font-weight: 500;
}

.fv-image {
    width: 100%;
    margin-top: 20px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: pulse 2s infinite;
}

.fv-btn-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.fv-insta-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.fv-insta-text {
    font-weight: bold;
    color: var(--text-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 2px;
}

.fv-insta-link {
    display: block;
    width: 60px;
    /* Adjust size as needed */
    transition: transform 0.3s;
}

.fv-insta-link:hover {
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* About Section */
.about {
    background-color: var(--white);
}

.about-block {
    margin-bottom: 60px;
}

.about-block:last-child {
    margin-bottom: 0;
}

.about-subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.about-subtitle::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Values */
.value-content {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 15px;
    border: 2px dashed var(--primary-color);
}

.value-content h4 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-align: center;
}

/* Ideal Child */
.ideal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.ideal-item {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--secondary-color);
}

.ideal-item h4 {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

/* Support Policy */
.policy-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.policy-item {
    background: var(--bg-color);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
}

.policy-item h4 {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* Philosophy Section */
.philosophy {
    background-color: #f9f9f9;
}

.philosophy-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.philosophy-block {
    margin-bottom: 40px;
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.philosophy-block:last-child {
    margin-bottom: 0;
}

.philosophy-block h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid var(--bg-color);
    padding-bottom: 10px;
}

.philosophy-text {
    line-height: 2;
    text-align: center;
    font-weight: bold;
    color: var(--text-color);
}

.philosophy-list {
    list-style: none;
    padding: 0;
}

.philosophy-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.philosophy-list li::before {
    content: '●';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    top: 0;
}

/* Schedule */
.schedule-tabs {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.schedule-block {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 2px solid var(--bg-color);
}

.schedule-category {
    font-size: 1.4rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.timeline {
    position: relative;
    border-left: 3px solid var(--primary-color);
    margin-left: 10px;
    padding-left: 20px;
}

.time-item {
    margin-bottom: 25px;
    position: relative;
}

.time-item:last-child {
    margin-bottom: 0;
}

.time-item::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 5px;
    width: 13px;
    height: 13px;
    background: var(--accent-color);
    border-radius: 50%;
}

.time {
    font-weight: bold;
    color: var(--accent-color);
    display: block;
    margin-bottom: 3px;
    font-size: 1.1rem;
}

.time-item h4 {
    color: var(--secondary-color);
    font-size: 1rem;
    margin: 0;
}

.time-item .content p {
    font-size: 0.9rem;
    margin-top: 5px;
    color: #555;
}

/* Program Section */
.program {
    background-color: var(--bg-color);
}

.section-intro {
    text-align: center;
    margin-bottom: 40px;
}

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

.program-item {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.program-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--bg-color);
    padding-bottom: 10px;
}

.program-num {
    font-size: 2rem;
    font-weight: bold;
    color: rgba(244, 162, 97, 0.2);
    /* faint primary color */
    margin-right: 15px;
    line-height: 1;
}

.program-item h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin: 0;
}

.program-item p {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.7;
}

.program-link-wrapper {
    text-align: center;
    margin-top: 40px;
}

.program-link {
    display: inline-block;
    background-color: var(--white);
    color: var(--secondary-color);
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    border: 2px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.program-link:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.program-link .arrow {
    margin-left: 10px;
}

.office-link-wrapper {
    text-align: center;
    margin-top: 40px;
}

.office-link {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.office-link:hover {
    background-color: var(--white);
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    padding: 13px 28px;
    /* adjust for border */
}

.office-link .arrow {
    margin-left: 10px;
}

/* Flow & FAQ */
.step-list {
    list-style: none;
    counter-reset: step;
}

.step-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 30px;
    border-left: 2px solid #eee;
}

.step-num {
    color: var(--primary-color);
    font-weight: bold;
    display: block;
}

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

.faq-q {
    font-weight: bold;
    cursor: pointer;
    position: relative;
    padding-right: 20px;
    display: block;
}

/* Open/Close Icon */
.faq-q::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.faq-q.open::after {
    content: '-';
    transform: rotate(180deg);
}

.faq-a {
    margin-top: 10px;
    font-size: 0.95rem;
    display: none;
    padding: 0 10px;
}

.faq-a.open {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

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

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

.cta-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px 20px;
    border-radius: 15px;
}

.cta-tel-text {
    font-size: 1rem;
    margin: 10px 0;
    font-weight: bold;
}

.cta-button.big {
    background-color: var(--white);
    color: var(--accent-color);
    margin-top: 20px;
    font-size: 1.2rem;
}

.cta-button.cta-inline {
    display: inline-block;
    margin-top: 15px;
    font-size: 1rem;
    padding: 12px 30px;
}

/* Office Info (replaces Access) */
.office-info {
    background-color: #fff;
}

.office-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.office-card {
    background: var(--bg-color);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.office-card h3 {
    text-align: center;
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--white);
    padding-bottom: 10px;
}

.office-details .address {
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.6;
}

.office-details .note {
    font-size: 0.85rem;
    font-weight: normal;
    color: #666;
    display: block;
    margin-top: 5px;
}

.contact-info {
    font-size: 0.95rem;
}

.contact-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed var(--secondary-color);
    padding: 8px 0;
}

.contact-row:last-child {
    border-bottom: none;
}

.contact-row dt {
    font-weight: bold;
    color: var(--primary-color);
    width: 35%;
}

.contact-row dd {
    width: 65%;
    text-align: right;
    word-break: break-all;
}

/* Footer */
.footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* PC Style Overrides */
@media (min-width: 768px) {
    .header-inner {
        max-width: 1000px;
    }

    .nav-pc {
        display: block;
    }

    .nav-pc a {
        margin: 0 10px;
        font-weight: bold;
    }

    .fv {
        flex-direction: row-reverse;
        justify-content: center;
        padding: 80px 0;
        gap: 40px;
    }

    .fv-content,
    .fv-image {
        width: 48%;
        max-width: 480px;
        /* Limit width to bring them closer on large screens */
    }

    .fv-main {
        font-size: 2.8rem;
    }

    .fv-image {
        margin-top: 0;
    }

    .problem-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .problem-item {
        width: 48%;
    }

    .feature-card,
    .feature-card.reverse {
        display: flex;
        align-items: center;
    }

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

    .feature-img {
        width: 45%;
        height: 300px;
    }

    .feature-text {
        width: 55%;
        padding: 40px;
    }

    .schedule-tabs {
        flex-direction: row;
        gap: 30px;
        align-items: flex-start;
    }

    .schedule-block {
        flex: 1;
    }

    .program-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns for program items */
    }

    /* Make the last item span full width if odd number */
    .program-item:last-child:nth-child(odd) {
        grid-column: span 2;
    }

    .step-list {
        display: flex;
        justify-content: space-between;
        border-left: none;
    }

    .step-list li {
        width: 23%;
        border-left: none;
        border-top: 3px solid var(--primary-color);
        padding-top: 20px;
        padding-left: 0;
    }

    .office-grid {
        flex-direction: row;
        gap: 40px;
    }

    .office-card {
        flex: 1;
    }
}

/* Greeting */
.greeting {
    background-color: var(--white);
}

.greeting-wrapper {
    /* Center the content */
    max-width: 800px;
    margin: 0 auto;
}

.greeting-block {
    margin-bottom: 30px;
}

.greeting-block h3 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
    position: relative;
    padding-left: 15px;
}

.greeting-block h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 1.2em;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.greeting-block p {
    margin-bottom: 10px;
    color: var(--text-color);
}

/* Updated Signature Styles */
.greeting-signature {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.signature-text {
    text-align: right;
}

.greeting-signature .position {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.greeting-signature .name {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
    letter-spacing: 0.2em;
}

.signature-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--bg-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.signature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}