@charset "UTF-8";

/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --pastel-pink: #FFD1DC;
    --pastel-blue: #B5E6FF;
    --pastel-yellow: #FFF9C4;
    --pastel-green: #ADF8B0;
    --pastel-purple: #E1BEE7;
    --text-color: #5D4037;
    --pastel-mint: #64FBE1;
    --pastel-sage: #C7E9C0;
}

@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&display=swap');

body {
    font-family: 'Comic Neue', "Hiragino Kaku Gothic Pro", "Meiryo", sans-serif;
	font-size: 1rem;  /* 少し大きくする 1rem → ブラウザ標準*/
    line-height: 1.7;
    color: var(--text-color);
    background-color: #FFFFFF;
    background-image: url('images/pattern.png');
    background-repeat: repeat;
    background-size: 200px;
    background-attachment: fixed;
}

.small-text {
  font-size: 0.8em;  /* 80%の大きさ */
  color: #666;       /* 薄めのグレーなど */
}
	
.center-text-table th,
.center-text-table td {
  text-align: center;
  vertical-align: middle; /* 行内中央にも揃えるならこれもおすすめ */
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  word-wrap: break-word;
}

/* アニメーション */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ヘッダー */
header {
    background-color: #FFFFFF;
    position: relative;
    width: 100%;
    z-index: 1000;
    height: 200px;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 60px;
    position: relative;
}

header h1 {
    font-size: 1.8rem;
    color: var(--text-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
}

header h1::before {
    content: '🎨';
    margin-right: 0.5rem;
    animation: bounce 2s infinite;
}

/* ナビゲーション */
nav {
    width: 100%;
    margin-top: 1rem;
}

nav > ul {
    display: flex;
    list-style: none;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding: 0;
    white-space: nowrap;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

nav ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--pastel-mint);
    transition: all 0.3s ease;
    z-index: -1;
}

nav ul li a:hover::before {
    left: 0;
}


@media screen and (max-width: 768px) {
 

  nav > ul {
     flex-direction: column;
     align-items: flex-start;
     padding: 0;
     margin: 0;
   }
	
  nav > ul > li {
     width: 100%;
   }

  nav > ul > li > a {
     display: block;
     width: 100%;
     padding: 15px;
   }

}

/* ── モバイル時：サブメニューを完全リセット＆縦展開 ── */
@media (max-width: 768px) {
  /* ① トップレベル nav > ul を縦並びに */
  nav.active > ul {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* ② サブメニュー（ul.submenu）をまず “フロー内に戻して＆隠す” */
  nav.active > ul > li.has-submenu > ul.submenu {
    display: none !important;       /* 初期は非表示 */
    position: static !important;     /* 絶対配置を解除 */
    top: auto !important;
    left: auto !important;
    box-shadow: none !important;     /* 影を消す */
    background: var(--pastel-green) !important;
    width: 100% !important;          /* 親と同じ幅 */
    margin: 0 !important;
    padding: 0 !important;
    min-width: auto !important;      /* 固定幅を解除 */
  }

  /* ③ 親に .open が付いたときだけ “縦並びで表示” */
  nav.active > ul > li.has-submenu.open > ul.submenu {
    display: block !important;
  }

  /* ④ 展開したサブメニューの項目は縦１列に */
  nav.active > ul > li.has-submenu.open > ul.submenu > li {
    display: block !important;
    width: 100% !important;
  }
  nav.active > ul > li.has-submenu.open > ul.submenu > li > a {
    display: block !important;
    width: 100% !important;
    padding: 0.75rem 1rem !important;
  }
}

/* モバイル時のサブメニュー背景色を薄い緑に */
@media (max-width: 768px) {
  nav.active > ul > li.has-submenu.open > ul.submenu {
    background-color: #e6fff3 !important;
  }
}

/* ▼▼ モバイル時は正方形の画像に差し替え ▼▼ */
@media (max-width: 768px) {
  .switch-icon[src="images/icon_instagram.png"] {
    content: url("images/icon_instagram_sp.png"); /* 正方形版をここに用意 */
    width: 40px;
    height: 40px;
  }

  .switch-icon[src="images/icon_access.png"] {
    content: url("images/icon_access_sp.png"); /* 正方形版をここに用意 */
    width: 40px;
    height: 40px;
  }
}


/* メインコンテンツ*/
main {
    margin-top: 0;
	/* /background-image: url('images/bag-tree-green.png'); /* ← 背景画像 */
    background-repeat: no-repeat;
    background-size: auto 100%;     /* ← 縦をフィットさせて横は自動（画質を保ちやすい） */
   background-position: right top;   /* ← 右上に寄せる！ */
    background-attachment: fixed;     /* ← スクロールしても背景を固定 */
}


/* スマホ表示時（横幅が小さいとき） */
@media (max-width: 768px) {
  main {
    background-image: none;
   background-color: #fff; /* 必要に応じて背景色を設定 */
  }
}

/* ヒーローセクション */

.top-image {
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    display: block;
}
.top-image img {
    width: 100%;
    height: auto;
    display: block;
}
@media (max-width: 768px) {
    .top-image {
        width: 90%;
        margin: 15px auto;
    }
}
@media (max-width: 480px) {
    .top-image {
        width: 95%;
        margin: 10px auto;
    }
}

.hero {
    background-image: url('');
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
}

.hero-content {
    background-color: #FFFFFF;
    padding: 2rem;
    border-radius: 20px;
    position: relative;
    z-index: 1;
    border: 3px solid var(--pastel-pink);
    animation: float 3s ease-in-out infinite;
}

.hero-content::before {
    content: '🎨';
    position: absolute;
    top: -20px;
    left: -20px;
    font-size: 2rem;
    animation: bounce 2s infinite;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* セクション共通 */
section {
    padding: 2rem 2rem;
    position: relative;
}

section h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-color);
    position: relative;
    padding-bottom: 1rem;
    font-size: 2rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--pastel-green);
}

.icon-h3 {
  font-size: 1.3rem;          /* h2より少し小さめ */
  color: var(--text-color);  /* 既存の色に合わせて */
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-h3::before {
  content: '●';               /* ●アイコン（黒丸） */
  color: var(--pastel-green); /* お好きな色に変更OK */
  font-size: 1.8rem;            /* ドットの大きさ調整 */
}

/*h3のアイコンの分下のテキストを右にずらす*/
.indent-text {
  margin-left: 2.2rem;
}




/* 園のご紹介 */
.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.about-item {
    background-color: var(--pastel-mint);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-item::before {
    content: '🎨';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    opacity: 0.3;
}

.about-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.about-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

.about-item h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--pastel-sage);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.about-item:hover h3::after {
    transform: scaleX(1);
}

/* フッター */
footer {
    background-color: #def9ff;
    color: var(--text-color);
    padding: 2rem 0 5rem;
    position: relative;

    background-image: url('images/bag-botom.png');
    background-repeat: repeat-x;
    background-position: bottom center;
    background-size: contain;
}


footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(90deg, var(--pastel-pink), var(--pastel-blue), var(--pastel-yellow), var(--pastel-green), var(--pastel-purple));
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
}

.footer-left {
  width: 75%;     /* 左を70%に */
}

.footer-right {
  width: 25%;     /* 右を30%に */
  padding-left: 1.5rem;
}


.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav {
    display: flex;         /* ULを横並びに */
    flex-wrap: wrap;       /* 幅が足りないときは折り返す */
    gap: 2rem;             /* UL間のスペース */
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;               /* 均等幅にしたい場合 */
}


.footer-nav li {
    break-inside: avoid;
    margin-bottom: 0.5rem;
}

.footer-nav li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-nav li a:hover {
    color: var(--pastel-blue);
}



 @media(max-width: 768px) {

  .footer-nav {
    display: flex;
    flex-direction: column;
    align-items: center; /* これが中央寄せ */
    gap: 1rem;
  }

  .footer-nav ul {
    width: 100%;
    max-width: 300px; /* 適宜調整：すべてのulの幅を統一 */
    text-align: center;
    padding: 0;
    margin: 0 auto; /* 中央に配置 */
  }

  .footer-nav ul li {
    list-style: none;
    margin: 0.5rem 0;
  }

}

.contact h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
    display: flex;
    align-items: left;
}

.contact h3::before {
    content: '📞';
    margin-right: 0.5rem;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
    }

    nav ul {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 0.5rem 1rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

   .footer-container {
        flex-direction: column;
        text-align: left;
    }
	

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: flex-start; /* ← 左寄せのカギ！ */
  }

  .footer-left {
    width: 100%;
    padding-left: 1.5rem; /* お好みで調整 */
  }

  .footer-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* ← ulの左寄せ */
    gap: 1rem;
  }

  .footer-nav ul {
    text-align: left;
    margin: 0;
    padding: 0;
  }

  .footer-nav li {
    list-style: none;
    padding: 0.2rem 0;
  }


  /* 左右いずれも幅100％に */
  .footer-left,
  .footer-right {
    flex: none;             /* flex:2/1 の指定を無効化 */
    width: 100%;            /* 画面幅いっぱい */
	text-align: left;
  }
	

}	

    .contact {
		margin-top: 2rem;
        margin-bottom: 1rem;
    }
}


/* スライダー */
.hero-slider {
    width: 100%;
    max-width: 1000px;
    margin: 10px auto 0;
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: visible; 
}

.slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: all 0.5s ease;
    transform: translateX(0) scale(0.8);
}

.slide.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    z-index: 2;
}

.slide.prev {
    opacity: 0.5;
    transform: translateX(-25%) scale(0.8);
    z-index: 1;
    left: -25%;
}

.slide.next {
    opacity: 0.5;
    transform: translateX(25%) scale(0.8);
    z-index: 1;
    left: 25%;
}

.slide:nth-child(1) {
    background-image: url('images/slide1.jpg');
}

.slide:nth-child(2) {
    background-image: url('images/slide2.jpg');
}

.slide:nth-child(3) {
    background-image: url('images/slide3.jpg');
}

.slide:nth-child(4) {
    background-image: url('images/slide4.jpg');
}

.slide:nth-child(5) {
    background-image: url('images/slide5.jpg');
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 20px;
    border: 3px solid var(--pastel-green);
    width: 60%;
    max-width: 960px;
}

.slide-content::before {
    content: '🎨';
    position: absolute;
    top: -200px;
    left: -20px;
    font-size: 2rem;
    animation: bounce 2s infinite;
}




.slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.slider-controls {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10;
}

.prev-slide,
.next-slide {
    background: var(--pastel-green);
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prev-slide:hover,
.next-slide:hover {
    background: var(--pastel-mint);
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--pastel-green);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--pastel-mint);
    transform: scale(1.2);
}

/* モバイルメニュー */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.3rem;
    width: 60px;
    height: 60px;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 1rem;
    top: 10rem;
}

/* メディアクエリ */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        padding: 1rem;
    }

    .mobile-menu-btn {
        /* ハンバーガーメニューボタンのスタイル */
        display: flex; /* ✅ ボタンを確実に表示 */
        align-items: center;
        justify-content: center;
        height: 60px; /* header height */
        width: 60px; /* button size */
        border-radius: 50%;
        background-color: var(--pastel-blue);
        color: var(--text-color);
        font-size: 2rem;
        cursor: pointer;
        border: none;
        position: absolute; 
        right: 1rem;
        top: 10rem; /* Adjust this if needed */
        z-index: 1000;
    }
	

    nav {
        /* ナビゲーションメニューの初期スタイル（非表示） */
        width: 100%;
        position: absolute;
        top: 60px; /* Adjust to be below header */
        left: 0;
        background-color: var(--pastel-green);
        padding: 1rem 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        display: none; /* ✅ モバイルで初期状態は非表示 */
        /* もし必要であれば、ここでflex-direction: column; も追加してください */
        flex-direction: column;
    }
	
 nav.active {
        /* ハンバーガーメニューがアクティブになった時のスタイル（表示） */
        display: block; /* ✅ メニューを表示する正しい記述 */
        background-color: var(--pastel-green);
        padding: 1rem 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        padding: 1.5rem 0;
        gap: 1.2rem;
    }

    nav ul li {
        margin: 0;
        text-align: center;
        padding: 0.5rem 0;
    }

    nav ul li .menu-image {
        width: 220px;  /* ← 横幅を抑える */
        height: auto;  /* ← 高さを自動調整に */
        padding: 5px;  /* ← パディング調整 */
        object-fit: contain;  /* ← 切れにくくする */
        transition: all 0.3s ease;
    }

    nav ul li:hover .menu-image {
        transform: translateY(-3px) scale(1.05);
        filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    }
	
	 .menu-item {
        height: auto;  /* ← 高さ制限しない方が柔軟 */
        padding: 5px 0;
    }

    .hero-slider {
        width: 90%;
        padding-bottom: 50.625%;
        margin-top: 8px;
    }

    .slide-content {
        padding: 1rem;
        width: 90%;
    }

    .slide-content h2 {
        font-size: 1.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .contact, .address {
        margin-bottom: 1rem;
    }

    section {
        padding: 2rem 1rem;
    }

    section h2 {
        font-size: 1.5rem;
    }

    .slider-controls {
        bottom: 4%;
    }

    .slider-dots {
        gap: 0.6rem;
    }

    .dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    header {
        height: 160px;
    }

    header h1 {
        font-size: 1.2rem;
    }

    .hero-slider {
        width: 95%;
        padding-bottom: 53.4375%;
        margin-top: 5px;
    }

    .slide-content {
        padding: 0.8rem;
    }

    .slide-content h2 {
        font-size: 1.2rem;
    }

    .slider-controls {
        bottom: 3%;
    }

    .slider-dots {
        gap: 0.5rem;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .prev-slide, .next-slide {
        font-size: 1.2rem;
        padding: 0.3rem;
    }

    nav ul {
        gap: 1rem;
        padding: 1rem 0;
    }

    nav ul li .menu-image {
        width: 240px;
        height: 100px;
        padding: 8px;
    }

    .mobile-menu-btn {
        top: 0.2rem;
    }
}

/* タブレット時のレスポンシブ対応 */
@media (min-width: 769px) and (max-width: 1024px) {
    .header-container {
        padding: 1rem 2rem;
    }

    .hero-slider {
        width: 85%;
        padding-bottom: 47.8125%;
    }

    .about-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .slider-controls {
        bottom: 4.5%;
    }

    .slider-dots {
        gap: 0.7rem;
    }

    .dot {
        width: 11px;
        height: 11px;
    }
}

/* スライダーのレスポンシブ対応 */
@media (max-width: 1024px) {
    .hero-slider {
        width: 85%;
        padding-bottom: 47.8125%;
    }
}

/* アニメーションの調整 */
@media (max-width: 768px) {
    @keyframes float {
        0% { transform: translateY(0px); }
        50% { transform: translateY(-5px); }
        100% { transform: translateY(0px); }
    }
}


/* スライダーのレスポンシブ対応 */
@media (max-width: 768px) {
    .hero-slider {
        width: 100%;
        height: calc(100vw * 0.5625);
        margin-top: 130px;
    }

    .tree-background {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: calc(100vw * 0.5625);
        margin-top: 110px;
    }

    .tree-background {
        height: 100px;
    }
}

/* ヘッダーバナー */
.header-banner {
    background-color: var(--pastel-green);
    padding: 5px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    height: 100px;
}

.banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.main-logo {
    height: 90px;
    width: auto;
}




.banner-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.banner-buttons img {
    height: 30px;
    width: auto;
}

@media (min-width: 1025px) {
  .banner-buttons img {
    height: 40px; /* ← お好みに応じて 35〜50pxくらいで調整可能 */
    width: auto;
  }
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .main-logo {
        width: 300px;
        height: 75px;
    }

    .banner-buttons img {
        width: 140px;
        height: 35px;
    }
}

@media (max-width: 768px) {
    .main-logo {
        width: 280px;
        height: 70px;
    }
    
    .banner-content {
        height: auto;
        padding: 10px 15px;
    }

    .banner-buttons img {
        width: 120px;
        height: 25px;
    }
    
    .banner-buttons {
        gap: 0.8rem;
    }

    .phone-number {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .main-logo {
        width: 200px;
        height: 50px;
    }

  .banner-buttons img {
    height: 24px;
    width: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
  }
    
    .banner-buttons {
        gap: 0.5rem;
    }

    .phone-number {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    .banner-buttons img {
        width: 20px;
        height: 20px;
    }
}


/* ▼ 汎用スタイル ----------------------------- */
.banner-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.logo-and-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

/* ▼ モバイル用スタイル ---------------------- */
@media (max-width: 768px) {
  .banner-content {
    flex-direction: column;
    align-items: center;
  }

  .logo-and-buttons {
    width: 100%;
    flex-direction: row;
  }

  .banner-buttons {
    flex-direction: row;
  }

  .phone-number.pc-only {
    display: none;
  }

  .phone-number.mobile-only {
    display: block;
  }

  .banner-buttons {
    justify-content: center;
  }

  .phone-number.mobile-only {
    text-align: center;
    margin-top: 5px; /* 任意：余白調整 */
  }
}
	


/* ▼ PC用スタイル --------------------------- */
@media (min-width: 769px) {
  .phone-number.pc-only {
    display: block;
  }

  .phone-number.mobile-only {
    display: none;
  }
}



/* メニュー画像のサイズ調整 */
.menu-image {
    width: 180px;
    height: 65px;
    object-fit: contain;
    padding: 2px 5px;
    transition: all 0.3s ease;
}

/* ホバー晁Eアニメーション */
.menu-item:hover .menu-image {
    transform: translateY(-3px) scale(1.05);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

/* クリック時のアニメーション */
.menu-item:active .menu-image {
    transform: translateY(1px) scale(0.98);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .menu-image {
        width: 120px;
        height: 50px;
    }
    
    .menu-item {
        height: 85px;
	    padding: 2px 0;  /* ← 上下の余白も調整 */
    }
}

@media (max-width: 480px) {
    .menu-image {
        width: 100px;
        height: 40px;
    }
    
    .menu-item {
        height: 60px;
    }
}





/* ホバー時の背景色変化 */
.menu-item {
    position: relative;
    overflow: hidden;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 0;
    flex-shrink: 0; /* メニュー項目の縮小を禁止 */
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--pastel-mint);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.menu-item:hover::before {
    opacity: 0.1;
}

/* アニメーションの遅延 */
.menu-item:nth-child(1) .menu-image { transition-delay: 0.1s; }
.menu-item:nth-child(2) .menu-image { transition-delay: 0.2s; }
.menu-item:nth-child(3) .menu-image { transition-delay: 0.3s; }
.menu-item:nth-child(4) .menu-image { transition-delay: 0.4s; }
.menu-item:nth-child(5) .menu-image { transition-delay: 0.5s; }
.menu-item:nth-child(6) .menu-image { transition-delay: 0.6s; }

/* 中サイズのPC対応 */
@media (min-width: 769px) and (max-width: 1200px) {
    .hero-slider {
        margin-top: 100px;
    }
    
    .menu-image {
        width: 140px;
        height: 58px;
    }
    
    nav ul {
        gap: 0.3rem;
    }

    .slider-controls {
        max-width: 800px;
    }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .hero-slider {
        margin-top: 50px;
    }
    
    nav ul {
        flex-wrap: wrap;
    }
    
    .menu-image {
        width: 120px;
        height: 50px;
    }

    .slider-controls {
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        margin-top: 40px;
    }

    .slider-controls {

        max-width: 95%;
    }
	
} 

.about-images {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin: 5rem auto;
    max-width: 1200px;
}

.about-images img {
    width: 100%;
    max-width: 100%; /* ← 1枚あたりの最大幅 */
    height: auto;
    border-radius: 10px;
}

@media (max-width: 768px) {
  .about-images {
    justify-content: center;
  }

  .about-images img {
    max-width: 90%; /* 幅いっぱいに近づける */
  }
}

.nintei p {
    text-align: center;
    max-width: 1080px;
    margin: 0 auto;
    line-height: 1.8;
}


/* ▼▼▼ プルダウンメニュー用スタイル（レスポンシブ対応） ▼▼▼ */

.menu-text {
  display: none; /* 見た目に影響を与えずクリックイベントを発火させるため */
}


/* サブメニューを持つ親メニュー */
.has-submenu {
  position: relative;
}

/* サブメニューの基本表示設定（PC） */
.submenu {
  display: none; /* 初期状態では非表示 */
  position: absolute;
  top: 100%; /* 親メニューの下に表示 */
  left: 0;
  background-color: #fff; /* 背景色を設定 */
  padding: 0.5rem 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* 影を追加 */
  list-style: none;
  z-index: 1000; /* 他の要素の上に表示 */
  flex-direction: column; /* 縦に並べる */
  min-width: 160px; /* 最小幅 */
}

/* サブメニューのリスト項目 */
.submenu li {
  display: block;
}

.submenu li a {
  display: block;s
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: var(--text-color);
  white-space: nowrap;
}

.submenu li a:hover {
  background-color: var(--pastel-green);
}

/* PC：hover時に表示 */
@media (min-width: 769px) {
  .has-submenu:hover .submenu {
    display: flex !important; /* ← !importantを追加 */
  }
	
}	
/* サブメニューを持つ <li> だけはクリップしない */
.menu-item.has-submenu {
  overflow: visible;  /* ← ここで hidden を上書き */
}

	

/* スマホ：.openが付いたときに表示 */
@media (max-width: 768px) {
  .submenu {
    position: static; /* ドロップダウンではなく通常のフローに */
    box-shadow: none;
    background-color: var(--pastel-green);
    padding-left: 1rem;
    flex-direction: column;
    min-width: auto;
    display: none; /* モバイルでは初期状態では非表示 */
  }

  .has-submenu.open .submenu {
    display: block; /* .openクラスが付いたら表示 */
  }
}

/* ▼▼▼ スマホ専用で “縦並び + フル幅” に固定 ▼▼▼ */
@media (max-width: 768px) {
  /* サブメニュー本体 */
  .submenu {
    display: none;           /* ← 初期は隠す   */
    position: static;        /* ← 普通に文脈内に */
    width: 100%;             /* ← 親と同じ幅に   */
    flex-direction: column;  /* ← 念のため縦並び */
  }

  /* .open が付いたら表示（!important で上書き） */
  .has-submenu.open > .submenu{
    display: block !important;
  }

  /* 項目は1列で */
  .submenu li{
    display: block;
  }
}


/* nav ul li a の既存のスタイルがサブメニューに影響を与えないように調整 */
nav ul li {
    position: relative; /* サブメニューの絶対配置の基準にする */
}

/* nav ul li a のスタイルがサブメニュー内のaタグにも適用されないように、具体的なセレクタで指定する */
nav > ul > li > a {
    /* 既存の nav ul li a のスタイルをここに維持 */
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* サブメニュー内のaタグのホバー効果を上書き */
.submenu li a:hover {
    background-color: var(--pastel-green); /* サブメニュー独自のホバー色 */
    color: var(--text-color); /* テキスト色も維持 */
}


@media (max-width: 768px) {
  .has-submenu.open > ul.submenu {
    display: block;
  }
}

/* ▲▲▲ プルダウンメニュー用スタイルここまで ▲▲▲ */


/* サブページ共通 */

.about-page section {
  padding: 1rem 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.hero img {
  width: 100%;
  height: auto;
  display: block;
}

.two-column {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start; /* ← 上揃えに変更 */
}


.sub-page .two-column .text h2.custom-h2 {
  margin-top: 0;
}

/* 画像 → テキストの逆並び用 */
.two-column.reverse {
  flex-direction: row-reverse;
}


.two-column .text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* ← 上に揃える */
}

.two-column .image {
  flex: 1;
  max-width: 100%;
  height: auto;
  display: block;
}


/* 2カラムテキストの下に画像を入れる時 */
.text-column .sub-image {
  margin-top: 1rem; /* テキストとの間に少し余白 */
}

.text-column .sub-image img {
  width: 100%;
  height: auto;
  display: block;
}


.single-column img {
  max-width: 100%;
  margin-top: 1rem;
}

.class-info .images,
.uniforms .images {
  display: flex; 
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.class-info img,
.uniforms .images img {
  max-width: 32%;
  height: auto;
}

.message-content {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.message-content img {
  width: 150px;
  border-radius: 50%;
}

.message-content .text {
  flex: 1;
}

 .text-right {
  flex: 1;
  text-align:right;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .two-column {
    flex-direction: column;
  }

  .class-info img,
  .uniforms img {
    max-width: 100%;
  }

  .message-content {
    flex-direction: column;
    align-items: center;
    text-align: left;
  }

  .message-content img {
    margin-bottom: 1rem;
  }
}

/* ページ全体のセクション幅（サブページ共通） */

.sub-page section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1rem;
}	

.page-hero {
  width: 100%;
max-width: 1100px; /* 他セクションと統一 */
  margin: 0 auto;
  max-height: 500px;
  overflow: hidden;
}

.page-hero img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* 画像が縦に長い場合のトリミング調整 */
}


/* サブページ専用 h2 スタイル 【1カラム】*/
.sub-page h2.one-column-h2 {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  font-size: 2rem;
  color: var(--text-color);
  gap: 1.5rem;
  text-align: left;
  margin-bottom: 1rem;
  width: 100%;
}

/* 左の太線 */
.sub-page h2.one-column-h2 .line {
  width: 15px;
  height: calc(1em + 0.5em + 4px);
  background-color: var(--pastel-green);
  flex-shrink: 0;
}

/* テキスト */
.sub-page h2.one-column-h2 .text {
  position: relative;
  display: inline-block;
  line-height: 1.2;
  padding-left: 0.2em;
}

/* テキスト下線はオフ */
.sub-page h2.one-column-h2 .text::after {
  content: none !important;
}

/* ✅ セクション幅に下線を伸ばす */
.sub-page h2.one-column-h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 5;
  width: 100%;
  height: 1.5px;
  background-color: var(--pastel-green);
}
/* サブページ専用 【1カラム】h2部分を画像にした時*/
/* 1カラム専用見出し（mainの中で100%表示） */
.one-column-h2 {
  width: 100%;
  max-width: 1100px;
  margin: 2rem auto 1rem;  /* ← autoで中央に配置！ */
  text-align: left;
}

.one-column-h2 img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 600px) {
  .one-column-h2 {
    width: 100%;
    max-width: 100%;
  }
}

.img-heading::after {
  content: none !important;
}

.img-heading .text::after {
  content: none !important;
}

.img-heading img {
  width: 100%;
  height: auto;
}

/* 1カラムテキスト用（共通） */
.one-column-text {
  max-width: 90%;
  margin: 0 auto;
}


@media (max-width: 768px) {
  .img-heading img {
    width: 95%;
    margin: 0 auto;
  }
}

/* 新着情報 */
#news {
  display: block;
  width: 100%;
}

.top-news {
  display: block !important; /* ← これが一番重要！ */
  max-width: 900px;         /* メイン幅に合わせる */
  margin: 1rem auto;        /* 中央寄せ */
  padding: 1.5rem;
  border: 1px solid #00D387;   /* 細めの枠線 */
  border-radius: 8px;
  background-color: #F4FFFC;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.top-news h2 {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 1.2rem;
  color: #5a5a5a;
}

.top-news .news-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed #aaa;
}

.top-news .news-item:last-child {
  border-bottom: none;
}

.top-news .news-item h3 {
  font-size: 1.2rem;
  color: #2c3e50;
  margin-bottom: 0.3rem;
}

.top-news .news-item .date {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 0.5rem;
}

.top-news .news-item .content {
  font-size: 1rem;
  color: #444;
}

.top-news .news-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #1e90ff;
  text-decoration: underline;
}

/* ▼ 新しいレイアウト用スタイル（ul/li構造） */
.top-news .news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.top-news .news-list li {
  display: flex;
  gap: 1rem;
  border-bottom: 1px dotted #b5c27b;
  padding: 0.6rem 0;
  align-items: flex-start;
  flex-wrap: wrap;
}

.top-news .news-date {
  color: #a2c158;
  font-weight: bold;
  white-space: nowrap;
  min-width: 110px;
}

.top-news .news-title {
  flex: 1;
  font-weight: bold;
  color: #333;
}

.top-news .news-content {
  flex: 1 0 100%;
  color: #666;
  font-size: 0.95rem;
}

.top-news .news-link {
  font-size: 0.85rem;
  color: #1e90ff;
  margin-top: 0.2rem;
  display: inline-block;
}


/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .top-news {
    padding: 1rem;
    margin: 2rem 1rem;
  }

  .top-news h2 {
    font-size: 1.5rem;
  }

  .top-news .news-item h3 {
    font-size: 1rem;
  }

  .top-news .news-item .content {
    font-size: 0.95rem;
  }
}


/* サブページ専用 h2 スタイル 【２カラム】*/
.sub-page h2.custom-h2 {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  font-size: 2rem;
  color: var(--text-color);
  margin-bottom: 1rem;
  gap: 1.5rem;
  text-align: left;
  position: relative;
  width: 100%;  /* ← これを追加！ */
}


/* ★ 共通レイアウト（画像用） */
.two-column-images,
.three-column,
.four-column {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* ★ カラムごとの幅設定 */
.two-column-images .item {
  width: 48%;
}

.three-column .item {
  width: 31.5%;
}

.four-column .item {
  width: 23%;
}

.text-image-two-column {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  flex-start: ; /* ← 上寄せ */
  max-width: 1100px;
  margin: 0 auto 3rem;
}

.text-image-two-column .text-column,
.text-image-two-column .image-column {
  flex: 1 1 48%;
}

.text-image-two-column .image-column img {
  width: 100%;
  height: auto;
  display: block;
}

/* ✅ レスポンシブ対応（スマホ表示） */
@media (max-width: 768px) {
  .text-image-two-column {
    flex-direction: column;
  }
	
@media (max-width: 768px) {
  .text-image-two-column .text-column {
    margin-bottom: 1.5rem; /* テキストと画像の間に余白を追加 */
  }
}

  .text-image-two-column .text-column,
  .text-image-two-column .image-column {
    width: 100%;
  }
}


/* ★ 画像共通スタイル */
.item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.single-image {
  margin: 2em 0;
  text-align: center; /* 必要なら中央寄せ */
}

.single-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
}

/* ★ レスポンシブ：スマホは1列に */
@media (max-width: 768px) {
  .two-column-images .item,
  .three-column .item,
  .four-column .item {
    width: 100%;
  }
}




/* 左の太い線 */
.sub-page h2.custom-h2 .line {
  width: 15px;
  height: calc(1.5em + 4px);
  background-color: var(--pastel-green);
  flex-shrink: 0;
}

/* テキスト */
.sub-page h2.custom-h2 .text {
  position: relative;
  display: inline-block;
  line-height: 1.5;
  padding-left: 0.2em; /* ← 左に少し余白をつけて美しく */
}

/* 下線を「太線の下」からスタートさせる」 */
.sub-page h2.custom-h2 .text::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: -1.2em;  /* ← 横線を左にズラす（太線の位置まで） */
  width: calc(100% + 1.2em);  /* ← 横幅も調整して全体に伸ばす */
  height: 2px;
  background-color: var(--pastel-green);
}

.sub-page section h2.custom-h2::after {
  content: none !important;
}

.sub-page .two-column .text h2.custom-h2 {
  margin-top: 0;
}

/* ✅ セクション幅いっぱいの下線 */
.sub-page h2.custom-h2::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--pastel-green);
}




/* 保育内容ページ用：テーブルスタイル */

/* テーブルだけ少し狭めて中央揃え */
table {
  width: 80%;           /* PC時の幅 */
  max-width: 100%;      /* 安全のため */
  margin: 2rem auto;    /* 中央＋上下余白 */
  border-collapse: collapse;
}

/* テーブル内セルの見た目 */
th, td {
  border: 1px solid #ccc;
  padding: 0.8rem;
  text-align: left;
}

th {
  background-color: #f7f7f7;
  font-weight: bold;
}

/* スマホ対応：テーブル幅95%に切り替え */
@media (max-width: 768px) {
  table {
    width: 95%;
  }
}

/* クラス紹介：テキスト＋画像並び */
.class-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.class-block .text {
  flex: 1;
}

.class-block .image {
  flex: 1;
}

.class-block img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .class-block {
    flex-direction: column;
    text-align: center;
  }

	
	
img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
}

.image,
.two-column {
  overflow-x: hidden;
}


.one-column-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}	
	
/* 横幅いっぱいに１枚の画像を貼る時 */	
.single-image {
  width: 100%;
  max-width: 1100px;  /* PC時に大きすぎないよう制限 */
  margin: 2rem auto;
  padding: 0 1rem 1rem;
  box-sizing: border-box; /* ← これ重要！ */
  text-align: center;
}

.single-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

	@media (max-width: 600px) {
  .single-image {
    padding: 0 0.5rem;
  }
}
	
.two-column-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1rem;
}



@media (max-width: 768px) {
  .two-column {
    flex-direction: column;
  }

  .table-wrapper {
    padding-left: 0;
    margin-top: 1.5rem;
  }
}
	
	

	

/* 募集内容テーブルの装飾 */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}

.info-table th,
.info-table td {
  border: 1px solid #ccc;
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}

.info-table th {
  background-color: #f8f8f8;
  font-weight: bold;
}

	
	
	
@media (max-width: 768px) {
  table td, table th {
    font-size: 0.80rem;
    word-break: keep-all;
    white-space: normal;
  }
}


@media (max-width: 768px) {
  /* ① トップレベル nav > ul を縦並びに */
  nav.active > ul {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* ② サブメニュー（ul.submenu）をまず “フロー内に戻して＆隠す” */
  nav.active > ul > li.has-submenu > ul.submenu {
    display: none !important;       /* 初期は非表示 */
    position: static !important;     /* 絶対配置を解除 */
    top: auto !important;
    left: auto !important;
    box-shadow: none !important;     /* 影を消す */
    background: var(--pastel-green) !important;
    width: 100% !important;          /* 親と同じ幅 */
    margin: 0 !important;
    padding: 0 !important;
    min-width: auto !important;      /* 固定幅を解除 */
  }

  /* ③ 親に .open が付いたときだけ “縦並びで表示” */
  nav.active > ul > li.has-submenu.open > ul.submenu {
    display: block !important;
  }

  /* ④ 展開したサブメニューの項目は縦１列に */
  nav.active > ul > li.has-submenu.open > ul.submenu > li {
    display: block !important;
    width: 100% !important;
  }
  nav.active > ul > li.has-submenu.open > ul.submenu > li > a {
    display: block !important;
    width: 100% !important;
    padding: 0.75rem 1rem !important;
  }
}

	



