/*
Theme Name: Asahi Kindergarten
Author: Heisei Gakuen
Version: 1.0
*/

@charset "UTF-8";

/* =========================================
   1. 基本設定 (Root, Body, Common)
   ========================================= */
:root {
    --main-yellow: #FFC800;
    --sub-yellow: #FFF3CD;
    --accent-color: #4A3F35;
    --white: #FFFFFF;
    --gray-bg: #F9F9F9;
    --footer-bg: #332A24;
}

html { scroll-behavior: smooth; }
body {
    font-family: 'Zen Maru Gothic', sans-serif;
    color: var(--accent-color);
    margin: 0;
    line-height: 1.8;
    background-color: var(--white);
    overflow-x: hidden; /* 横揺れ防止 */
}

a { text-decoration: none; color: inherit; transition: 0.3s ease; }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; height: auto; vertical-align: bottom; }
h1, h2, h3 { margin-top: 0; line-height: 1.5; }

/* コンテナ */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 2; }
.container-fluid { max-width: 1300px; margin: 0 auto; padding: 0 40px; position: relative; z-index: 2; }

/* ボタン */
.btn {
    display: inline-block;
    background-color: var(--main-yellow);
    color: var(--accent-color);
    padding: 15px 50px;
    border-radius: 50px;
    font-weight: 900;
    letter-spacing: 0.05em;
    box-shadow: 0 10px 20px -10px rgba(255, 200, 0, 0.5);
    position: relative; overflow: hidden; z-index: 1;
    white-space: nowrap;
    border: 2px solid transparent;
}
.btn::before {
    content: ''; position: absolute; top: 0; left: 0; width: 0%; height: 100%;
    background: var(--white); z-index: -1; transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.btn:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -10px rgba(255, 200, 0, 0.7);
    border-color: var(--main-yellow);
}
.btn:hover::before { width: 100%; }

/* セクション見出し */
.section-title {
    text-align: center; font-size: 2.5rem; font-weight: 900; margin-bottom: 60px;
    position: relative; display: inline-block; left: 50%; transform: translateX(-50%); z-index: 1;
}
.section-title.align-left {
    text-align: left; left: 0; transform: none; margin-bottom: 30px;
}
.section-title::before {
    content: ''; position: absolute; top: -10px; left: -15px; width: 60px; height: 60px;
    background: var(--main-yellow); opacity: 0.4; border-radius: 50%; z-index: -1;
}
section { padding: 120px 0; position: relative; }


/* =========================================
   2. ヘッダー (Header)
   ========================================= */
header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 999;
    padding: 25px 40px; 
    pointer-events: none;
    transition: 0.3s ease;
    box-sizing: border-box;
}
header.scrolled { background: transparent; padding: 15px 40px; }

.header-inner { display: flex; justify-content: space-between; align-items: center; max-width: none; padding: 0; }

/* ロゴ */
.logo {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0px 15px;
    border-radius: 16px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex; align-items: center;
}
.logo img { height: 80px; width: auto; }

.hamburger { display: none; pointer-events: auto; }

/* ナビゲーション */
.nav-menu { pointer-events: auto; }
.nav-menu ul {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 18px 35px;
    border-radius: 16px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex; gap: 30px; align-items: center;
}
.nav-menu li a {
    font-weight: 700; font-size: 1rem; color: var(--accent-color);
    position: relative; padding-bottom: 5px;
}
.nav-menu li a::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0%; height: 3px;
    background-color: #F57C00; border-radius: 2px; transition: width 0.3s ease-in-out;
}
.nav-menu li a:hover::after { width: 100%; }
.nav-menu li a.header-tel::after { display: none; }

/* 電話番号 */
.header-tel {
    font-weight: 900 !important; font-size: 1.5rem !important; color: #F57C00 !important;
    display: flex; align-items: center; gap: 5px;
    background: transparent !important; box-shadow: none !important; padding: 0 !important;
}


/* =========================================
   3. トップページ専用 (Hero, News, etc.)
   ========================================= */
/* ヒーローエリア（修正版：スクロール対応） */
.hero {
    position: relative; /* fixed から relative に変更 */
    width: 100%; 
    height: 100vh;
    display: flex; justify-content: center; align-items: center; 
    padding-top: 0; 
    box-sizing: border-box; 
    overflow: hidden;
    z-index: 1;
}
/* --- スライドショー（Transition方式） --- */
.hero-slideshow { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; 
}

.hero-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    opacity: 0; 
    z-index: 1;
    transform: scale(1); /* 待機時はサイズ1 */
    
    /* ★消える時の設定
       opacity: 2秒かけて消える
       transform: 2秒待って(delay 2s)から、一瞬でサイズ1に戻す。
    */
    transition: opacity 2s ease-in-out, transform 0s 2s;
}

.hero-slide.active {
    opacity: 1; 
    z-index: 2;
    transform: scale(1.15); /* 目標サイズ */
    
    /* ★現れる時の設定
       7秒かけてゆっくり拡大する
    */
    transition: opacity 2s ease-in-out, transform 7s linear;
}

.hero::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(255,249,230,0.9), rgba(255,249,230,0.4));
    z-index: 3;
}
.hero-content { max-width: 800px; position: relative; z-index: 4; text-align: center; }
.hero h1 { font-size: 4.5rem; font-weight: 900; line-height: 1.6; margin-bottom: 30px; color: var(--accent-color); text-shadow: none; }
.hero p { font-size: 1.5rem; font-weight: 700; color: var(--accent-color); text-shadow: none; }

.scroll-down {
    position: absolute; bottom: 110px; left: 50%; transform: translateX(-50%); z-index: 100;
    color: var(--accent-color); display: flex; flex-direction: column; align-items: center; 
    font-weight: 900; font-size: 1rem; letter-spacing: 0.15em; text-shadow: none;
    cursor: default; pointer-events: none;
}
.scroll-down::before {
    content: ''; width: 3px; height: 35px; background-color: var(--accent-color);
    margin-bottom: 12px; animation: scrollLineAnim 2s infinite; transform-origin: top; box-shadow: none;
}
@keyframes scrollLineAnim {
    0% { transform: scaleY(0); transform-origin: top; }
    45% { transform: scaleY(1); transform-origin: top; }
    55% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* メインコンテンツラッパー */
#main-content {
    position: relative; z-index: 10; 
    margin-top: 0;
    background-color: var(--white);
    /* 影をなしにする */
    box-shadow: none !important;
}
.wave-top-separator {
    position: absolute; top: -80px; left: 0; width: 100%; height: 81px;
    z-index: 11; line-height: 0; overflow: hidden; pointer-events: none;
}
.wave-top-separator svg { display: block; width: 100%; height: 100%; fill: var(--white); }

/* お知らせ */
#news { background-color: var(--white); padding-top: 60px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.news-card {
    background: var(--white); padding: 20px 0; border-bottom: 1px solid #eee; 
    transition: 0.3s ease; position: relative;
    display: flex; flex-direction: column; justify-content: flex-start;
}
.news-card::after {
    content: ''; position: absolute; bottom: -1px; left: 0; width: 0%; height: 2px;
    background-color: #F57C00; transition: width 0.3s ease-in-out;
}
.news-card:hover::after { width: 100%; }
.news-card:hover { transform: translateY(-5px); }
.news-meta { margin-bottom: 15px; font-size: 0.9rem; color: #888; display: flex; gap: 10px; align-items: center; }
.news-cat { background: var(--main-yellow); color: var(--accent-color); padding: 4px 12px; border-radius: 4px; font-weight: 700; font-size: 0.8rem; }
.news-title { font-size: 1.2rem; font-weight: 700; line-height: 1.5; margin-bottom: 20px; }
.news-arrow { margin-top: auto; text-align: right; color: var(--main-yellow); font-weight: bold; font-size: 1.5rem; }

/* もっと見るボタン */
.news-footer { text-align: right; margin-top: 40px; padding-right: 10px; }
.view-more-btn {
    display: inline-block; font-size: 1.1rem; font-weight: 900; color: var(--accent-color);
    text-decoration: none; position: relative; padding-bottom: 5px; transition: color 0.3s ease;
}
.view-more-btn::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0%; height: 2px;
    background-color: #F57C00; transition: width 0.3s ease-in-out;
}
.view-more-btn:hover { color: #F57C00; }
.view-more-btn:hover::after { width: 100%; }
.view-more-btn .arrow { display: inline-block; margin-left: 10px; transition: transform 0.3s ease; }
.view-more-btn:hover .arrow { transform: translateX(5px); }

/* スプリットレイアウト (About, Access) */
.split-section { display: flex; width: 100%; min-height: 600px; overflow: hidden; }
.split-section.reverse { flex-direction: row-reverse; }
.split-image { flex: 1; background-size: cover; background-position: center; min-height: 400px; }
.map-container iframe { width: 100%; height: 100%; }
.split-content { flex: 1; display: flex; align-items: center; justify-content: center; background-color: var(--gray-bg); padding: 80px 60px; }
.split-inner { max-width: 550px; width: 100%; }
.split-inner h3 { font-size: 2.2rem; font-weight: 900; margin-bottom: 30px; color: var(--accent-color); }
.split-inner p { margin-bottom: 40px; font-size: 1.05rem; color: #666; }

.contact-heading { font-size: 2rem; font-weight: 900; margin-bottom: 20px; line-height: 1.3; }
.contact-detail { font-size: 1.1rem; margin-bottom: 20px; font-weight: 700; }
.contact-tel { font-size: 2.5rem; font-weight: 900; color: var(--main-yellow); margin-bottom: 10px; line-height: 1; font-family: sans-serif; }
.contact-hours { font-size: 0.9rem; color: #888; margin-bottom: 40px; }

/* 募金 */
.donation-fluid {
    background-color: var(--main-yellow);
    background-image: radial-gradient(var(--accent-color) 0.8px, transparent 0.8px);
    background-size: 20px 20px; padding: 100px 0;
}
.donation-inner {
    background: var(--white); padding: 0; border-radius: 20px; overflow: hidden;
    display: flex; box-shadow: 0 20px 50px rgba(74, 63, 53, 0.1);
}
.donation-pic { width: 40%; background-size: cover; background-position: center; min-height: 300px; }
.donation-text-area {
    width: 60%; padding: 60px 80px;
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
.donation-text-area h2 { margin: 0 0 20px 0; font-size: 2rem; text-align: left; }
.donation-text-area p { margin: 0 0 30px 0; font-size: 1.1rem; }


/* =========================================
   4. フッター (Footer)
   ========================================= */
#footer {
    background-color: var(--footer-bg); color: var(--white);
    padding: 80px 0 30px 0;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px;
    margin-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 60px;
}
.footer-logo { font-size: 1.3rem; font-weight: 900; margin-bottom: 20px; }
.footer-address { font-style: normal; font-size: 0.95rem; line-height: 1.8; opacity: 0.8; }
.footer-nav ul { display: flex; flex-direction: column; gap: 15px; }
.footer-nav li a { color: rgba(255,255,255,0.8); font-size: 0.95rem; transition: 0.3s; }
.footer-nav li a:hover { color: var(--main-yellow); padding-left: 5px; }
.social-label { font-weight: 700; margin-bottom: 15px; opacity: 0.7; font-size: 0.9rem; }
.insta-link {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,0.1); padding: 10px 20px; border-radius: 50px;
    color: #fff; font-weight: 700; transition: 0.3s;
}
.insta-link:hover { background: #E1306C; color: #fff; transform: translateY(-3px); }
.copyright { text-align: center; font-size: 0.8rem; opacity: 0.5; }


/* =========================================
   5. スマホ対応 (Responsive Mobile)
   ========================================= */
@media (max-width: 768px) {

    /* --- ヘッダー --- */
    header { padding: 10px 0; pointer-events: auto; }
    .header-btn { display: none; }
    .hamburger { display: block; width: 30px; height: 25px; position: relative; cursor: pointer; z-index: 1001; margin-right: 20px; }
    .hamburger span { position: absolute; left: 0; width: 100%; height: 3px; background-color: var(--accent-color); border-radius: 3px; transition: 0.3s; }
    .hamburger span:nth-child(1) { top: 0; }
    .hamburger span:nth-child(2) { top: 11px; }
    .hamburger span:nth-child(3) { bottom: 0; }
    .hamburger.active span:nth-child(1) { transform: rotate(45deg); top: 11px; background-color: var(--white); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg); bottom: 11px; background-color: var(--white); }

    /* アイランド解除（スマホ） */
    .logo { background: transparent; padding: 0; box-shadow: none; border-radius: 0; backdrop-filter: none; margin-left: 20px; }
    
    .nav-menu { position: fixed; top: 0; right: -100%; width: 80%; height: 100vh; background-color: var(--accent-color); display: flex; flex-direction: column; justify-content: center; transition: 0.4s ease; z-index: 1000; padding: 20px; }
    .nav-menu.active { right: 0; box-shadow: -10px 0 30px rgba(0,0,0,0.2); }
    .nav-menu ul { 
        display: flex; flex-direction: column; gap: 30px; width: 100%; text-align: center;
        background: transparent; box-shadow: none; border-radius: 0; padding: 0; backdrop-filter: none;
    }
    .nav-menu li a { color: var(--white); font-size: 1.2rem; display: block; padding: 10px; }
    .header-tel { color: var(--white) !important; justify-content: center; }

    /* --- ヒーローエリア --- */
    .hero { padding-top: 30vh; height: 100dvh; }
    .hero h1 { font-size: 2.8rem; margin-bottom: 20px; }
    .hero p { font-size: 1rem; padding: 0 20px; line-height: 1.6; }
    .scroll-down { bottom: 90px; }
    #main-content { margin-top: 0; } /* スマホでもマージン0 */
    .wave-top-separator { height: 30px; top: -29px; }
    
    /* --- レイアウト調整 --- */
    section { padding: 60px 0; }
    .container-fluid { padding: 0 20px; }
    
    /* お知らせ */
    .news-grid { grid-template-columns: 1fr; gap: 20px; }
    
    /* スプリットレイアウト */
    .split-section { flex-direction: column; min-height: auto; }
    .split-section.reverse { flex-direction: column; }
    .split-image { min-height: 300px; width: 100%; }
    .split-content { padding: 50px 20px; }
    .split-inner h3 { font-size: 1.8rem; text-align: center; }
    .section-title.align-left { text-align: center; left: 50%; transform: translateX(-50%); }
    
    /* 募金 */
    .donation-inner { flex-direction: column; }
    .donation-pic { width: 100%; min-height: 250px; }
    .donation-text-area { width: 100%; padding: 40px 20px; text-align: center; align-items: center; }
    .donation-text-area h2 { text-align: center; font-size: 1.6rem; }
    
    /* フッター */
    .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: left; }
    .footer-nav ul { align-items: flex-start; }
}

/* =========================================
   6. サブページ用修正 (Sub Page Fixes)
   ========================================= */

/* ② タイトルの位置ズレ＆黄色い丸の修正（決定版） */
body.page .section-title {
    /* 位置リセット */
    position: relative !important;
    left: auto !important;
    transform: none !important;
    
    /* ★ここが修正ポイント：箱のサイズを文字に合わせる */
    display: table !important; 
    width: auto !important;
    
    /* その箱を画面の中央に置く */
    margin: 0 auto 60px !important;
}

/* 左揃えにしたい場合（Aboutページの中身など） */
body.page .section-title.align-left {
    margin: 0 0 40px 0 !important; /* 左に置く */
}

/* =========================================
   7. 投稿詳細ページ (Single Post)
   ========================================= */
.single-post-page .post-content {
    line-height: 1.8;
    color: #333;
    font-size: 1rem;
}

/* 本文中の段落 */
.single-post-page .post-content p {
    margin-bottom: 1.5em;
}

/* 本文中の画像 */
.single-post-page .post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* 本文中の見出し */
.single-post-page .post-content h2 {
    font-size: 1.5rem;
    border-left: 5px solid #FF7F50;
    padding-left: 15px;
    margin: 40px 0 20px;
    color: #4A3F35;
}

.single-post-page .post-content h3 {
    font-size: 1.3rem;
    margin: 30px 0 15px;
    color: #4A3F35;
    font-weight: bold;
}

/* =========================================
   8. ページネーション (Pagination)
   ========================================= */
.pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background: #f0f0f0;
    color: #4A3F35;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: #FFC800; /* 黄色 */
    color: #4A3F35;
    font-weight: bold;
}