/* ========================================
   ぽかぽか保育園 - メインスタイル
   アーカイブ準拠の完全再現版
   ======================================== */

/* --- リセット --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- 基本 --- */
body {
    font-family: "Lucida Grande", "Segoe UI", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
    color: #333;
    /* 水色背景 + クローバー帯 + テクスチャ */
    background-color: #7ab6e8;
    background-image: url('images/clover.png'), url('images/uploads_2017_01_haikei.jpg');
    background-attachment: fixed, fixed;
    background-position: center top, center top;
    background-repeat: repeat-x, repeat;
    line-height: 1.8;
    font-size: 16px;
}

a {
    color: #E8853D;
    text-decoration: none;
}

a:hover {
    color: #D06820;
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* --- コンテナ --- */
#container {
    max-width: 1070px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

/* ========================================
   ヘッダー
   ======================================== */
#header {
    position: relative;
    background: transparent;
}

#header-in {
    position: relative;
}

#h-top {
    position: relative;
    min-height: 180px;
    overflow: hidden;
}

#h-top .header-image {
    display: block;
    width: 100%;
    max-width: 780px;
    height: auto;
}

/* ヘッダー内のSEOテキスト（非表示） */
.top-title-catchphrase {
    position: absolute;
    left: -9999px;
    visibility: hidden;
}

/* 電話番号看板（画像のみ表示）— 元サイトは右下寄り */
#header-contact {
    position: absolute;
    right: 15px;
    bottom: 10px;
    z-index: 10;
    line-height: 0;
}

#header-contact img {
    max-width: 230px;
    height: auto;
    display: block;
}

/* SNSアイコン */
.top-sns-follows {
    position: absolute;
    right: 15px;
    top: 10px;
    display: flex;
    gap: 6px;
    z-index: 10;
}

.top-sns-follows a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: #fff;
    font-weight: bold;
    font-size: 18px;
    text-decoration: none;
}

.sns-fb {
    background: #3b5998;
}

.sns-ig {
    background: #e1306c;
}

.sns-feedly {
    background: #6cc655;
}

.sns-rss {
    background: #ee802f;
}

/* ========================================
   ナビゲーション
   ======================================== */
#navi {
    background-color: #fefefe;
    border-top: 2px solid #ddd;
    border-bottom: 2px solid #ddd;
}

#navi-in {
    max-width: 1070px;
    margin: 0 auto;
    display: flex;
}

#navi ul.menu {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
    width: 100%;
}

#navi ul.menu>li {
    position: relative;
    border-right: 1px solid #eee;
}

#navi ul.menu>li>a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    color: #555;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}

/* リンゴアイコン（ナビ各項目の前） */
#navi ul.menu>li>a::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('images/ringo.png');
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
    transition: background-image 0.15s;
}

#navi ul.menu>li>a:hover {
    background-color: #f5f5f5;
    color: #E8853D;
}

/* クリック（active状態）でかじられたリンゴに変わる */
#navi ul.menu>li>a:active::before {
    background-image: url('images/ringo_kajiri.png');
}

/* サブメニュー */
#navi ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 100;
    padding: 0;
}

#navi li.menu-item-has-children:hover>ul.sub-menu {
    display: block;
}

#navi ul.sub-menu li a {
    display: block;
    padding: 8px 16px;
    color: #555;
    font-size: 13px;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
}

#navi ul.sub-menu li a::before {
    content: "";
    display: none;
}

#navi ul.sub-menu li a:hover {
    background: #FFF8F0;
    color: #E8853D;
}

/* ========================================
   メインレイアウト（2カラム）
   ======================================== */
#body {
    padding: 0;
}

#body-in {
    padding: 20px 29px 30px;
    display: flex;
    flex-wrap: nowrap;
    gap: 30px;
    max-width: 1070px;
    margin: 0 auto;
}

#main {
    flex: 1;
    min-width: 0;
    padding: 0;
}

#sidebar {
    width: 280px;
    flex-shrink: 0;
}

/* ========================================
   コンテンツ見出しスタイル（アーカイブ準拠）
   ======================================== */

/* h2 — 緑背景 + 白文字 + 下三角 */
.entry-content h2,
.content-section h2,
.page-title {
    background: #3eb370;
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    padding: 12px 20px;
    margin: 30px 0 0;
    border: none;
    border-radius: 0;
    position: relative;
    text-align: left;
}

.entry-content h2::after,
.content-section h2::after,
.page-title::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 30px;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid #3eb370;
}

/* h2の直後のコンテンツに余白 */
.entry-content h2+*,
.content-section h2+* {
    margin-top: 25px;
}

/* entry-title — 茶色太い二重線（トップページタイトル用）
   小鳥画像が二重線の上に乗っかるように配置 */
.entry-title {
    font-size: 26px;
    color: #b45308;
    padding: 18px 0;
    margin: 0 0 10px;
    border-top: 8px double #b45308;
    border-bottom: 8px double #b45308;
    text-align: left;
    position: relative;
    font-weight: bold;
    border-left: none;
    border-right: none;
}

/* 小鳥画像を二重線の上に乗せる */
.entry-title .title-birds {
    position: absolute;
    right: 10px;
    bottom: -5px;
    display: flex;
    align-items: flex-end;
    gap: 2px;
    z-index: 2;
}

/* h3 — 黄色背景 + 茶色ボーダー + 下三角 */
.entry-content h3,
.content-section h3 {
    background: #fdf5e6;
    color: #b45308;
    font-size: 18px;
    font-weight: bold;
    padding: 10px 15px;
    margin: 25px 0 0;
    border: 2px solid #b45308;
    border-radius: 4px;
    position: relative;
}

.entry-content h3::after,
.content-section h3::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 25px;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid #fdf5e6;
}

/* h3の直後のコンテンツに余白 */
.entry-content h3+*,
.content-section h3+* {
    margin-top: 22px;
}

/* h4 */
.entry-content h4,
.content-section h4 {
    font-size: 16px;
    color: #b45308;
    margin: 20px 0 8px;
    font-weight: bold;
}

/* h5 — 本文の説明テキスト用 */
.entry-content h5,
.content-section h5 {
    font-size: 15px;
    color: #555;
    font-weight: normal;
    margin: 10px 0;
    line-height: 1.8;
}

/* --- コンテンツ汎用 --- */
.content-section {
    background: #fff;
    padding: 0;
    margin-bottom: 10px;
}

.content-section p,
.entry-content p {
    margin: 10px 0 15px;
    line-height: 1.8;
}

.content-section ul,
.content-section ol {
    margin: 10px 0 15px 25px;
    list-style: disc;
}

.content-section li {
    margin-bottom: 6px;
}

/* --- 保育方針のカード（アイコン+テキスト） --- */
.policy-item {
    background: #fdf5e6;
    border: 1px solid #e0d5c0;
    border-radius: 6px;
    padding: 20px;
    margin: 25px 0 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.policy-item__icon {
    width: 80px;
    height: auto;
    flex-shrink: 0;
}

.policy-item__text {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
}

/* ========================================
   スライダー
   ======================================== */
.slider {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    background: #fff;
    border: 6px solid #3eb370;
    border-radius: 8px;
}

.slider__track {
    display: flex;
    transition: transform 0.6s ease;
}

.slider__slide {
    min-width: 100%;
    flex-shrink: 0;
}

.slider__slide img {
    width: 100%;
    height: auto;
    display: block;
}

.slider__dots {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.slider__dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}

.slider__dot--active {
    background: #fff;
}

/* スライダー矢印 */
.slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: none;
    font-size: 30px;
    padding: 10px 8px;
    cursor: pointer;
    z-index: 5;
    line-height: 1;
}

.slider__arrow--prev {
    left: 5px;
}

.slider__arrow--next {
    right: 5px;
}

.slider__arrow:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* ========================================
   交通アクセス
   ======================================== */
.access-info dt {
    font-weight: bold;
    color: #b45308;
    margin-top: 10px;
    padding: 5px 10px;
    background: #fdf5e6;
    display: inline-block;
}

.access-info dd {
    margin-left: 15px;
    margin-bottom: 12px;
    padding: 5px 0;
}

/* ========================================
   テーブル
   ======================================== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.data-table th,
.data-table td {
    border: 1px solid #ddd;
    padding: 10px 12px;
    font-size: 14px;
    text-align: left;
}

.data-table th {
    background: #FFF3E0;
    color: #555;
    font-weight: bold;
    white-space: nowrap;
}

.data-table tr:nth-child(even) {
    background: #FFFAF5;
}

/* ========================================
   緊急連絡
   ======================================== */
.emergency-tel {
    background: #FFF0E0;
    border: 2px solid #F5A623;
    border-radius: 8px;
    padding: 15px 20px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: #D06820;
    margin-bottom: 20px;
}

/* ========================================
   サイドバー
   ======================================== */
#sidebar aside {
    margin-bottom: 20px;
}

/* サイドバーのウィジェットタイトル（木目調） */
.sidebar-widget {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.sidebar-widget__title {
    background: url('images/ki.png') center center;
    background-size: cover;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 15px;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.sidebar-widget__body {
    background: #FFF8F0;
    padding: 15px;
    text-align: center;
}

.sidebar-widget__body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.sidebar-widget__body ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.sidebar-widget__body ul li {
    padding: 6px 0;
    border-bottom: 1px dashed #ddd;
}

.sidebar-widget__body ul li:last-child {
    border-bottom: none;
}

.sidebar-widget__body ul li a {
    color: #b45308;
    font-weight: bold;
    font-size: 14px;
}

.sidebar-widget__body ul li a:hover {
    color: #E8853D;
}

/* Follow Me ボタン（Instagram風） */
.follow-me-btn {
    display: inline-block;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.follow-me-btn:hover {
    opacity: 0.9;
    color: #fff;
    text-decoration: none;
}

/* 生活クラブウィジェット（水色背景） */
.sidebar-widget--seikatsu .sidebar-widget__title {
    background: linear-gradient(135deg, #00bcd4, #0097a7);
}

.sidebar-widget--seikatsu .sidebar-widget__body {
    background: #E0F7FA;
}

/* ========================================
   フッター
   ======================================== */
.site-footer {
    background: #f5f5f5;
    border-top: 2px solid #ddd;
    padding: 0;
}

#footer-in {
    max-width: 1070px;
    margin: 0 auto;
    padding: 20px 30px;
}

#footer-widget {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
}

.footer-left,
.footer-center,
.footer-right {
    flex: 1;
}

.site-footer__col {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer__col li {
    padding: 4px 0;
}

.site-footer__col li a {
    color: #555;
    font-size: 14px;
}

.site-footer__col li a:hover {
    color: #E8853D;
}

#copyright {
    text-align: center;
    padding: 10px 0;
    border-top: 1px solid #ddd;
    font-size: 13px;
    color: #888;
}

#copyright a {
    color: #888;
}

.clear {
    clear: both;
}

/* page_topボタン */
#page-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

#page-top a {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #3eb370;
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

#page-top a:hover {
    background: #35a060;
    color: #fff;
}

/* ========================================
   レスポンシブ
   ======================================== */
@media screen and (max-width: 768px) {
    #body-in {
        flex-direction: column;
        padding: 10px;
    }

    #main {
        width: 100%;
    }

    #sidebar {
        width: 100%;
    }

    #navi-in,
    #navi ul.menu {
        flex-direction: column;
    }

    #navi ul.menu>li {
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    #navi ul.sub-menu {
        position: static;
        box-shadow: none;
        border: none;
    }

    #header-contact {
        position: static;
        width: 100%;
        transform: none;
        margin-top: 10px;
        border-radius: 0;
    }

    .top-sns-follows {
        position: static;
        justify-content: center;
        padding: 10px 0;
    }

    #footer-widget {
        flex-direction: column;
    }

    .policy-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}