/* =============================================
   Pattern 36: Nursery (保育園・幼稚園)
   にじいろ保育園
   ★ 独自構成: パステルカラー, 波打ちレイアウト(SVG), 丸みを帯びたポップなデザイン
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600&family=Zen+Maru+Gothic:wght@400;500;700&display=swap');

:root {
    --c-bg: #FFFFFF;
    --c-text: #5A5A5A;
    /* やさしいグレー */
    --c-pink: #FF8BA7;
    /* パステルピンク */
    --c-light-pink: #FFF0F3;
    --c-blue: #70B8FF;
    /* 水色 */
    --c-light-blue: #EAF4FF;
    --c-yellow: #FFCB74;
    /* たまご色 */
    --c-green: #89D99D;
    /* メロン色 */

    --f-en: 'Fredoka', sans-serif;
    --f-ja: 'Zen Maru Gothic', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--f-ja);
    color: var(--c-text);
    background: var(--c-bg);
    line-height: 1.8;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 0.05em;
    overflow-x: hidden;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 30px;
}

.mt-5 {
    margin-top: 50px;
}

.mb-5 {
    margin-bottom: 50px;
}

/* ===== ユーティリティカラー ===== */
.c-pink {
    color: var(--c-pink) !important;
}

.c-blue {
    color: var(--c-blue) !important;
}

.c-yellow {
    color: var(--c-yellow) !important;
}

.c-green {
    color: var(--c-green) !important;
}

.c-bg-pink {
    background-color: var(--c-pink) !important;
}

.c-bg-blue {
    background-color: var(--c-blue) !important;
}

.c-bg-yellow {
    background-color: var(--c-yellow) !important;
}

.c-bg-green {
    background-color: var(--c-green) !important;
}

.shadow-pink {
    box-shadow: 0 8px 25px rgba(255, 139, 167, 0.4) !important;
}

.shadow-blue {
    box-shadow: 0 8px 25px rgba(112, 184, 255, 0.4) !important;
}

/* ===== タイポグラフィ ===== */
h2,
h3,
h4 {
    font-family: var(--f-ja);
    font-weight: 700;
    color: var(--c-text);
    line-height: 1.4;
}

.section-tag {
    display: inline-block;
    font-family: var(--f-en);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 10px;
    letter-spacing: 0.1em;
    background: #fff;
    padding: 5px 20px;
    border-radius: 30px;
    border: 2px dashed #E0E0E0;
}

.section-title {
    font-size: 2.3rem;
    margin-bottom: 30px;
}

/* ===== ヘッダー ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 15px 40px;
    transition: all 0.4s ease;
    background: var(--c-bg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--f-ja);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--c-text);
    text-decoration: none;
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav a {
    font-family: var(--f-ja);
    font-weight: 700;
    text-decoration: none;
    font-size: 1.05rem;
    transition: transform 0.3s;
}

.nav a:hover {
    transform: translateY(-3px);
}

.btn-nav {
    background: var(--c-pink);
    color: #fff !important;
    padding: 10px 25px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(255, 139, 167, 0.3);
    transition: all 0.3s;
}

.btn-nav:hover {
    background: #ff6b8e;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 139, 167, 0.4);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 4px;
    background: var(--c-pink);
    border-radius: 4px;
    margin-bottom: 6px;
    transition: 0.3s;
}

/* ===== ボタン ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--c-pink);
    color: #fff;
    padding: 18px 45px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    border: none;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(255, 139, 167, 0.3);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(255, 139, 167, 0.4);
}

/* ===== セクションベース ===== */
.section {
    padding: 100px 0;
    position: relative;
}

.section--light-blue {
    background: var(--c-light-blue);
}

.section--light-pink {
    background: var(--c-light-pink);
}

/* SVG 波打ちの共通スタイル */
.wavy-section {
    padding-top: 150px;
    padding-bottom: 150px;
}

.wavy-top,
.wavy-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: scaleX(1.5);
}

.wavy-top {
    top: 0;
}

.wavy-bottom {
    bottom: -1px;
    transform: scaleX(1.5) rotate(180deg);
}

.wavy-top svg,
.wavy-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

/* ===== 装飾：ふわふわアニメーション ===== */
.float-item {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

.balloon {
    width: 60px;
    height: 75px;
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    animation: floatY 6s ease-in-out infinite;
}

.balloon::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 10px solid inherit;
}

.balloon-1 {
    background: var(--c-pink);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.balloon-2 {
    background: var(--c-blue);
    top: 50%;
    right: 15%;
    animation-delay: 2s;
}

.balloon-3 {
    background: var(--c-yellow);
    bottom: 15%;
    left: 20%;
    animation-delay: 4s;
}

.circle {
    border-radius: 50%;
    animation: floatX 8s ease-in-out infinite alternate;
}

.circle-1 {
    width: 40px;
    height: 40px;
    background: var(--c-green);
    top: 30%;
    right: 25%;
}

.circle-2 {
    width: 50px;
    height: 50px;
    background: var(--c-yellow);
    top: 10%;
    left: 15%;
}

.circle-3 {
    width: 60px;
    height: 60px;
    background: var(--c-blue);
    bottom: 20%;
    right: 10%;
}

@keyframes floatY {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes floatX {
    0% {
        transform: translateX(0px) translateY(0);
    }

    100% {
        transform: translateX(30px) translateY(-15px);
    }
}

/* ===== ヒーロー ===== */
.hero {
    position: relative;
    padding-top: 140px;
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    background: var(--c-light-pink);
    overflow: hidden;
    min-height: 90vh;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
    transform: scaleX(2);
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}

.hero-wave .shape-fill {
    fill: #FFF;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 60px;
    width: 100%;
}

.hero-text-box {
    flex: 1;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 25px;
    line-height: 1.3;
    color: var(--c-pink);
    text-shadow: 2px 2px 0 #fff;
}

.hero-desc {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--c-text);
    background: rgba(255, 255, 255, 0.7);
    padding: 15px 25px;
    border-radius: 20px;
    display: inline-block;
}

.hero-image-wrap {
    flex: 1;
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 60% 40% 50% 50% / 40% 50% 50% 60%;
    /* 有機的な丸み */
    box-shadow: 0 20px 40px rgba(255, 139, 167, 0.2);
    border: 15px solid #fff;
}

/* ===== About (やくそく) ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    z-index: 2;
    border-radius: 30px 30px 0 0;
}

.f-card-pink::before {
    background: var(--c-pink);
}

.f-card-yellow::before {
    background: var(--c-yellow);
}

.f-card-blue::before {
    background: var(--c-blue);
}

.f-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--c-light-pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.f-card-yellow .f-icon {
    background: #FFF9E6;
}

.f-card-blue .f-icon {
    background: var(--c-light-blue);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 1rem;
}

/* ===== Life (タイムライン) ===== */
.schedule-wrap {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.schedule-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 60px;
    width: 4px;
    background: #fff;
    border-radius: 4px;
    border: 2px dashed var(--c-blue);
}

.schedule-item {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
}

.s-time {
    width: 120px;
    font-family: var(--f-en);
    font-size: 1.5rem;
    font-weight: 600;
    text-align: right;
    background: #fff;
    padding: 10px 15px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 2;
    border: 3px solid;
}

.s-content {
    flex: 1;
    background: #fff;
    padding: 25px 30px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.s-content::before {
    content: '';
    position: absolute;
    top: 25px;
    left: -15px;
    border-width: 15px 15px 15px 0;
    border-style: solid;
    border-color: transparent #fff transparent transparent;
}

.s-content h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    border-bottom: 2px dashed #EEE;
    padding-bottom: 10px;
}

.s-image {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    margin-top: 15px;
    height: 180px;
}

.s-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Teachers ===== */
.teacher-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.teacher-card {
    width: 280px;
    background: #fff;
    padding: 30px 25px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.t-img-wrap {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.t-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.teacher-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

/* ===== FAQ ===== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-card {
    background: #fff;
    padding: 30px;
    border-radius: 25px;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
    border: 3px solid var(--c-light-pink);
    transition: transform 0.3s;
}

.faq-card:hover {
    transform: translateY(-5px);
}

.faq-q {
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.faq-q span {
    font-family: var(--f-en);
    font-size: 1.3rem;
}

.faq-a {
    color: var(--c-text);
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding-left: 2px;
}

.faq-a span {
    font-family: var(--f-en);
    font-size: 1.3rem;
    font-weight: 700;
}

/* ===== CTA ===== */
.cta-flex {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ===== フッター ===== */
.footer {
    background: var(--c-bg);
    padding: 60px 0 20px;
    border-top: 2px dashed #EEE;
}

.f-info p {
    font-size: 1.1rem;
}

.footer-bottom {
    border-top: 1px solid #EEE;
    padding-top: 20px;
    text-align: center;
    color: #999;
    font-size: 0.9rem;
}

/* ===== アニメーション ===== */
.anim {
    opacity: 0;
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.anim.anim-up {
    transform: translateY(30px);
}

.anim.is-visible {
    opacity: 1;
    transform: translate(0);
}

.anim-d1 {
    transition-delay: 0.15s;
}

.anim-d2 {
    transition-delay: 0.3s;
}

.anim-hero {
    opacity: 0;
    transform: scale(0.95);
    transition: all 1.5s ease;
}

.anim-hero.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* ===== レスポンシブ ===== */
@media (max-width: 900px) {
    .container {
        padding: 0 20px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
    }

    .hero-content {
        flex-direction: column;
        gap: 40px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .schedule-wrap::before {
        left: 40px;
    }

    .schedule-item {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .s-time {
        margin-bottom: -10px;
    }

    .s-content::before {
        top: -15px;
        left: 50%;
        transform: translateX(-50%);
        border-width: 0 15px 15px 15px;
        border-color: transparent transparent #fff transparent;
    }

    .nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }
}