/* 全体の設定 */
:root {
    --primary-color: #ff6b6b;
    --secondary-color: #ff9f43;
    --bg-color: #fffaf0;
    --text-color: #444;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --bg-1: #ff9f43;
    --bg-2: #1dd1a1;
    --bg-3: #54a0ff;
    --bg-4: #ee5253;
    --bg-5: #5f27cd;
    --bg-6: #ff6b6b;
    --bg-7: #2e86de;
    --bg-8: #c2c461;
}
html {
    scroll-behavior: smooth;
} /* スムーズスクロール */
body {
    font-family: "游ゴシック", "ヒラギノ角ゴ Pro W3", Osaka;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 1.1rem;
    line-height: 1.8;
    box-sizing: border-box;
}
a {
    /* text-decoration: none; */
    color: inherit;
}
img {
    max-width: 100%;
    height: auto;
}

/* ナビゲーション */
nav {
    display: flex;
    justify-content: center;
}

.nav {
    background-color: var(--bg-color);
    position: fixed;
    top: 0;
    width: 100%;
    max-width: 900px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
    /* box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); */
}

.nav-logo {
    width: 50%;
    max-height: 100%;
    margin-left: 20px;
}

.nav-logo-mb {
    width: 200px;
    max-height: 100%;
    margin-left: 20px;
}

/* PCメニュー */
.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    margin-right: 20px;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: bold;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* ハンバーガーボタン */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    margin-right: 20px;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: 0.3s;
}

/* キービジュアル */
header {
    width: 100%;
    max-width: 900px;
    margin: 60px auto 0;
    background: linear-gradient(135deg, #ffedbc 0%, #ff6b6b 100%);
    color: white;
    text-align: center;
    box-sizing: border-box; /* paddingの計算を幅に含める設定を追加 */
    padding: 0 20px 20px;
    border-radius: 15px;
    overflow: hidden; /* はみ出した部分を隠す（念のため） */
    color: #000;
    position: relative;
}
.header {
    background: linear-gradient(135deg, #ffedbc 0%, #f0ec1d 100%);
}
.header-img {
    width: 100%;
    margin-top: 40px;
}

.header-img img {
    display: block;
    width: 100%;
    height: auto;
}

/* ふきだし */
.balloon {
    position: absolute;
    padding: 15px;
    border: solid 3px white;
    border-radius: 50%;
    /* opacity: 0.7; */
}
.balloon:before {
    content: "";
    position: absolute;
    width: 5px;
    height: 5px;
    bottom: 0;
    border: solid 3px white;
    border-radius: 50%;
}
.balloon:after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    bottom: 3px;
    border: solid 3px white;
    border-radius: 50%;
}
.balloon p {
    font-size: .8rem;
    font-weight: bold;
    opacity: 1;
}

.bal1 {
    background: var(--bg-1);
    top: 50px;
    left: 5%;
    display: inline-block;
    /* 回転させるために必要 */
    transform: rotate(7deg);
    /* 時計回りに7度回転 */
}
.bal1:before {
    content: "";
    right: -15px;
    background: var(--bg-1);
}
.bal1:after {
    content: "";
    right: -10px;
    background: var(--bg-1);
}
.bal1 p {
    margin: 0;
    padding: 0;
}

.bal2 {
    background: var(--bg-2);
    top: 75px;
    right: 2%;
    display: inline-block;
    transform: rotate(-10deg);
}
.bal2:before {
    content: "";
    left: -15px;
    background: var(--bg-2);
}
.bal2:after {
    content: "";
    left: -10px;
    background: var(--bg-2);
}
.bal2 p {
    margin: 0;
    padding: 0;
}

.bal3 {
    background: var(--bg-3);
    top: 200px;
    left: 2%;
    display: inline-block;
    transform: rotate(-15deg);
}
.bal3:before {
    content: "";
    right: -15px;
    background: var(--bg-3);
}
.bal3:after {
    content: "";
    right: -10px;
    background: var(--bg-3);
}
.bal3 p {
    margin: 0;
    padding: 0;
    line-height: 1.1;
    text-align: left;
}

.bal4 {
    background: var(--bg-4);
    top: 200px;
    right: 3%;
}
.bal4:before {
    content: "";
    left: -15px;
    bottom: 20px;
    background: var(--bg-4);
}
.bal4:after {
    content: "";
    left: -10px;
    bottom: 10px;
    background: var(--bg-4);
}
.bal4 p {
    margin: 0;
    padding: 0;
}

.bal5 {
    background: var(--bg-5);
    top: 410px;
    left: 2%;
    display: inline-block;
    transform: rotate(20deg);
}
.bal5:before {
    content: "";
    right: -15px;
    bottom: 20px;
    background: var(--bg-5);
}
.bal5:after {
    content: "";
    right: -10px;
    bottom: 15px;
    background: var(--bg-5);
}
.bal5 p {
    margin: 0;
    padding: 0;
    color: #fff;
}

.bal6 {
    background: var(--bg-6);
    top: 410px;
    right: 2%;
    display: inline-block;
    transform: rotate(-15deg);
}
.bal6:before {
    content: "";
    left: -15px;
    background: var(--bg-6);
}
.bal6:after {
    content: "";
    left: -10px;
    background: var(--bg-6);
}
.bal6 p {
    margin: 0;
    padding: 0;
}

.bal7 {
    background: var(--bg-7);
    top: 570px;
    left: 4%;
    display: inline-block;
    transform: rotate(-20deg);
}
.bal7:before {
    content: "";
    right: -15px;
    background: var(--bg-7);
}
.bal7:after {
    content: "";
    right: -10px;
    background: var(--bg-7);
}
.bal7 p {
    margin: 0;
    padding: 0;
    color: white;
}

.bal8 {
    background: var(--bg-8);
    top: 570px;
    right: 2%;
    display: inline-block;
    transform: rotate(15deg);
}
.bal8:before {
    content: "";
    left: -15px;
    background: var(--bg-8);
}
.bal8:after {
    content: "";
    left: -10px;
    background: var(--bg-8);
}
.bal8 p {
    margin: 0;
    padding: 0;
}

/* レイアウト */
/* header, */
.intro,
.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
    box-sizing: border-box;
}

.section-title {
    border-left: 8px solid var(--primary-color);
    padding-left: 15px;
    color: var(--primary-color);
    margin-top: 0;
}

/* キャッチコピーがはみ出さないように調整 */
.theme-words {
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
}
.theme-words p {
    font-size: 1.1rem;
    /* スマホ向けに少し小さく */
    margin: 5px 0;
    word-wrap: break-word;
    /* 長い単語を折り返す */
    overflow-wrap: break-word;
    color: white;
    font-weight: bold;
}
.header .theme-words p {
    color: #793e3e;
}

/* 内容説明 */
.intro {
    width: 100%;
    max-width: 900px;
    margin: 40px auto 0;
    padding: 10px 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: justify;
    display: flex;
    flex-direction: row;
    align-items: start;
    gap: 20px;
}
.intro p {
    width: 70%;
}
.intro_img {
    width: 30%;
    line-height: .8;
    text-align: right;
}
.intro_img span {
    font-size: .7rem;
}
.intro img {
    width: 100%;
    object-fit: contain;
    margin-top: 30px;
}

/* イベントリスト */
.section {
    width: 100%;
    margin: 40px auto;
}

h2 {
    border-left: 8px solid #ff6b6b;
    padding-left: 15px;
    color: #ff6b6b;
}

.event-card {
    background: white;
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #eee;
}
.event-date {
    color: #e74c3c;
    font-weight: bold;
    display: block;
}
.ev-1 {
    border-left: 5px solid var(--bg-1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.ev-2 {
    border-left: 5px solid var(--bg-2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.ev-3 {
    border-left: 5px solid var(--bg-3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.ev-4 {
    border-left: 5px solid var(--bg-4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.ev-5 {
    border-left: 5px solid var(--bg-5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.ev-6 {
    border-left: 5px solid var(--bg-6);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.ev-7 {
    border-left: 5px solid var(--bg-7);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.ev-8 {
    border-left: 5px solid var(--bg-8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* 料金表 */
.price {
    margin-top: 30px;
}
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}
th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
}
th {
    background-color: #ffedbc;
}
.free-info {
    background: #fff0f0;
    padding: 0 20px;
    border-radius: 10px;
    margin-top: 20px;
    border: 2px solid #ff6b6b;
}
.free-info h3 {
    margin-bottom: -15px;
}

/* カレンダー */
.event-mark {
    display: block;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 4px;
    margin-top: 2px;
    border-radius: 3px;
    color: white;
    line-height: 1.2;
}

.calendar-wrapper {
    background: rgb(252, 225, 250);
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 30px;
    overflow-x: auto;
    /* スマホで横スクロール可能に */
}
.calendar-wrapper>span {
    font-size: 0.85rem;
    color: #474747;
}
.calendar-table {
    width: 100%;
    min-width: 500px;
    /* 極端に潰れないように */
    border-collapse: collapse;
}
.calendar-wrapper p {
    font-size: 1.5rem;
    font-weight: bold;
    color: #474747;
    margin-bottom: 0;
}
.calendar-table th,
.calendar-table td {
    border: 1px solid #eee;
    width: 14.28%;
    height: 80px;
    vertical-align: top;
    padding: 5px;
    font-size: 0.85rem;
}
.calendar-table th {
    height: auto;
    background: #fdf2f2;
    text-align: center;
}
.sun {
    background: #fad2d2;
    color: #e74c3c;
}
.sat {
    background: #e4f3f8;
    color: #3498db;
}
.mon {
    background: #c9c7c7;
    color: #777777;
}
.week {
    background: var(--bg-color);
}
.event-mark {
    display: block;
    font-size: 0.7rem;
    padding: 2px 4px;
    margin-top: 2px;
    border-radius: 3px;
    color: white;
    line-height: 1.2;
}
.open {
    font-weight: 500;
    font-size: .95rem!important;
    filter: drop-shadow(2px 2px 2px gray
    );
}

/* ①デビュー */
.bg-1 {
    background: #ff9f43;
}

/* ②にぎやか */
.bg-2 {
    background: #1dd1a1;
}

/* ③大人も */
.bg-3 {
    background: #54a0ff;
}

/* ④こども＋ */
.bg-4 {
    background: #ee5253;
    font-weight: bold;
}

/* ⑤ベビーカー */
.bg-5 {
    background: #5f27cd;
}

/* ⑥目と手で */
.bg-6 {
    background: #ff6b6b;
}

/* ⑦ワイワイDAY */
.bg-7 {
    background: #2e86de;
}

/* ⑧からだでアート */
.bg-8 {
    background: #c2c461;
}

/* フッター */
footer {
    background: #34495e;
    color: white;
    text-align: center;
    padding: 40px 20px;
    font-size: 0.85rem;
}
footer img {
    width: 200px;
    margin-bottom: 0;
}
footer .copyright {
    margin-bottom: 0;
}

/* くつろぎコーナー */
.relax-box {
    background: #fdf2f2;
    border: 2px solid #ffccbc;
    border-radius: 15px;
    padding: 20px 25px 0;
    margin: 30px auto;
}
.relax-title {
    color: #d35400;
    font-size: 1.3rem;
    margin-top: 0;
    display: flex;
    align-items: center;
}
.relax-flex {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}
.relax-flex p {
    width: 65%;
}
.relax-flex img {
    width: 30%;
    object-fit: contain;
    margin-bottom: 20px;
}

/* 設備 */
.facility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.facility-card {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    font-size: 0.9rem;
    border-left: 5px solid #ff9f43;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.facility-card strong {
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: block;
}
.info-list {
    padding-left: 20px;
    margin: 5px 0;
}
.important-note {
    color: #c0392b;
    font-size: 0.85rem;
    font-weight: bold;
}
.map {
    margin: 20px 0;
    padding-top: 30px;
    width: 150px;
    text-align: center;
}

/* ページトップボタン */
.pagetop {
    height: 40px;
    width: 40px;
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: white;
    border: solid 2px #2c2c2c;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
  }
  .pagetop_arrow {
    height: 20px;
    width: 20px;
    border-top: 3px solid #2c2c2c;
    border-right: 3px solid #2c2c2c;
    transform: translateY(20%) rotate(-45deg);
  }

/* 内部リンク位置調整 */
.anchor::before {
    content:'';
    display: block;
    padding-top: 60px;
    margin-top: -60px;
}

/* レスポンシブ調整（画面が太いとき） */
@media (min-width: 600px) {
    .event-mark {
        font-size: 0.75rem;
    }
}

/* モバイル対応 */
@media (min-width: 769px) {
    .nav-logo-mb {
        display: none;
    }
}

@media (max-width: 768px) {
    header, .intro, .container {
        width: 95%;
    }
    .nav-logo {
        display: none;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--bg-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.4s;
        box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
     }
    .nav-links.active {
        right: 0;
    }
    .nav-links li {
        margin: 20px 0;
        }
    .nav-links a {
        font-size: 1.2rem;
        font-weight: 600;
    }
    .hamburger {
        display: flex;
    }

    /* ハンバーガー変形 */
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .theme-words {
        line-height: 1.5;
    }
    .theme-words p {
        font-size: 1rem!important;
    }

    /* くつろぎ */
    .relax-flex {
        display: flex;
        flex-direction: column;
    }
    .relax-flex p {
        width: 100%;
    }
    .relax-flex img {
        width: 50%;
        margin: 0 auto 10px;
    }

    /* ふきだし */
    .balloon {
        display: none;
    }

    /* イントロ */
    .intro {
        flex-direction: column;
    }
    .intro p {
        width: 100%;
    }
    .intro_img {
        min-width: 250px;
        margin: 0 auto 20px;
    }
}