/*
Theme Name: 兼六こども園
Theme URI: http://www.kenroku-kodomoen.ed.jp/
Author: annomasaki
Description: 兼六こども園のシンプルでレスポンシブなWordPressテーマ
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kenroku
*/

/* ==========================================
   リセット & ベーススタイル
========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #5a9fd4;
    --secondary-color: #f7b731;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --border-color: #ddd;
    --white: #fff;
    --max-width: 1200px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    font-size: 16px;
    background-color: var(--white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

/* ==========================================
   ヘッダー
========================================== */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.custom-logo-link {
    display: block;
    max-width: 200px;
}

.custom-logo {
    width: 100%;
    height: auto;
}

.site-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0;
}

.site-description {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.25rem;
}

/* ナビゲーション */
.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-menu a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0;
    display: block;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.accordion-parent {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
}

.accordion-parent > a {
    grid-column: 1;
}

.submenu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 0.5rem;
}

.nav-menu .sub-menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    grid-column: 1 / -1;
    padding-left: 1rem;
}

.submenu-open > .sub-menu {
    display: block;
}

.nav-menu .sub-menu li {
    border-top: 1px solid var(--border-color);
}

.nav-menu .sub-menu a {
    padding: 0.75rem 0;
}

/* モバイルメニュー */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    padding: 0.5rem;
}

/* ==========================================
   メインコンテンツ
========================================== */
.site-content {
    max-width: var(--max-width);
    margin: 2rem auto;
    padding: 0 2rem;
}

.content-area {
    margin-bottom: 2rem;
}

/* ヒーローセクション */
.hero-section {
    background: linear-gradient(to top, #1e3a8a, #87ceeb);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
    border-radius: 8px;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.125rem;
    max-width: 800px;
    margin: 0 auto;
}

/* 記事一覧 */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.post-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.post-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.post-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 1.5rem;
}

.post-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.post-meta {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1rem;
}

.post-excerpt {
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* 単一記事 */
.single-post {
    max-width: 800px;
    margin: 0 auto;
}

.entry-header {
    margin-bottom: 2rem;
}

.entry-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.entry-content {
    font-size: 1rem;
    line-height: 1.8;
}

.entry-content h2 {
    font-size: 1.75rem;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.entry-content h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content ul,
.entry-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.toppanel {
    padding: 2rem; background: var(--light-gray); border-radius: 8px; text-align: center;
}

.tokuchou {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-top: 2rem;
}
/* ==========================================
   ウィジェット & サイドバー
========================================== */
.widget-area {
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 8px;
}

.widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

/* ==========================================
   フッター
========================================== */
.site-footer {
    background-color: rgb(114, 178, 21);
    color: var(--white);
    padding: 3rem 2rem 1.5rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-widget h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget li {
    margin-bottom: 0.5rem;
}

.footer-widget a {
    color: var(--white);
}

.site-info {
    text-align: center;


    font-size: 0.875rem;
}

/* ==========================================
   ユーティリティ
========================================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #4a8fc4;
    opacity: 1;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* ==========================================
   レスポンシブ対応
========================================== */
@media (max-width: 768px) {
    .header-container {
        padding: 1rem;
    }

    .menu-toggle {
        display: block;
    }

    .main-navigation {
        display: none;
        width: 100%;
        order: 3;
    }

    .main-navigation.toggled {
        display: block;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
        margin-top: 1rem;
    }

    .nav-menu li {
        border-top: 1px solid var(--border-color);
    }

    .nav-menu a {
        padding: 1rem 0;
    }

    .nav-menu .sub-menu {
        margin-top: 0.25rem;
    }

    .site-title {
        font-size: 1.25rem;
    }

    .hero-section {
        padding: 2rem 1rem;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .site-content {
        padding: 0 1rem;
        margin: 1rem auto;
    }

    .entry-title {
        font-size: 1.5rem;
    }

    .entry-content h2 {
        font-size: 1.5rem;
    }

    .entry-content h3 {
        font-size: 1.25rem;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .site-title {
        font-size: 1.125rem;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .post-content {
        padding: 1rem;
    }
}

/* ==========================================
   アクセシビリティ
========================================== */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: var(--light-gray);
    clip: auto !important;
    color: var(--text-color);
    display: block;
    font-size: 1rem;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ==========================================
   フロントページ・リニューアル (Cute Design)
========================================== */

/* セクションタイトル（共通） */
.home .section-title,
.front-page .section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--primary-color);
    padding-bottom: 0;
}

.home .section-title::after,
.front-page .section-title::after {
    display: none;
}

.home .section-title span,
.front-page .section-title span {
    display: inline-block;
    border-bottom: 4px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

/* 園の特徴セクション */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.feature-card {
    padding: 2.5rem 2rem;
    background: #fff;
    border-radius: 24px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

/* 特徴：自然 */
.feature-card--nature {
    box-shadow: 0 10px 25px rgba(100, 200, 100, 0.15);
    border: 2px solid #e8f5e9;
}
.feature-card--nature .feature-icon {
    background: #e8f5e9;
}
.feature-card--nature h3 {
    color: #2e7d32;
}

/* 特徴：食育 */
.feature-card--food {
    box-shadow: 0 10px 25px rgba(255, 160, 0, 0.15);
    border: 2px solid #fff3e0;
}
.feature-card--food .feature-icon {
    background: #fff3e0;
}
.feature-card--food h3 {
    color: #ef6c00;
}

/* 特徴：園舎 */
.feature-card--building {
    box-shadow: 0 10px 25px rgba(33, 150, 243, 0.15);
    border: 2px solid #e3f2fd;
}
.feature-card--building .feature-icon {
    background: #e3f2fd;
}
.feature-card--building h3 {
    color: #1565c0;
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    width: 100px;
    height: 100px;
    line-height: 100px;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.feature-card p {
    color: #666;
    line-height: 1.8;
}

/* アクセスセクション */
.access-container {
    background: #fffde7;
    padding: 3rem 2rem;
    border-radius: 24px;
    border: 3px dashed #fbc02d;
    position: relative;
}

.contact-badge {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: #fbc02d;
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: bold;
}

.org-name {
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
}

.access-address {
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.tel-wrapper {
    display: inline-block;
    margin-top: 0.5rem;
}

.tel-link {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.access-btn-wrapper {
    text-align: center;
}

.btn-access {
    background: var(--primary-color);
    color: #fff;
    padding: 1rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(90, 159, 212, 0.4);
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-access:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(90, 159, 212, 0.6);
    opacity: 1;
}

/* セクション間隔 */
.features-section,
.access-section {
    margin-bottom: 4rem;
}

.daily-level {
  padding: 0;
}

.daily-level li {
  position: relative;
  list-style-type: none!important;/*ポチ消す*/
  padding: 0.5em 0.5em 0.5em 0.5em;
  margin-bottom: 5px;
  line-height: 1.5;
  background: #dbebf8;
  vertical-align: middle;
  color: #505050;
  border-radius: 15px 0px 0px 15px;/*左側の角丸く*/
}

.daily-level li:before{ 
  display:inline-block; 
  vertical-align: middle;
  /*以下白丸つくる*/
  content:'';
  width:1em;
  height: 1em;
  background: #fff;
  border-radius: 50%;
  margin-right: 8px;
}