/* style.css - 放課後等デイサービス まなび 専用スタイル */

:root {
    color-scheme: light;

    /* まなびブランドカラー */
    --p-orange: #f39800;         /* メインカラー */
    --p-brown: #5d4037;          /* テキスト・サブカラー */
    --p-bg-dot: #f0eadd;         /* 背景ドット色 */
    --p-light-orange: #fff8eb;   /* 薄い背景色 */
    --p-blue-accent: #e3ecf5;    /* アクセント色（水色） */
    
    /* 互換用変数 */
    --primary-color: var(--p-orange);
    --secondary-color: var(--p-brown);
    --bg-color: #fdfaf5;
    --base-font: 'Zen Maru Gothic', sans-serif;
}

/* 基本設定 */
body { 
    font-family: var(--base-font); 
    margin: 0; 
    color: var(--p-brown); 
    background-color: var(--bg-color) !important; 
    background-image: radial-gradient(var(--p-bg-dot) 1px, transparent 1px);
    background-size: 24px 24px;
    line-height: 1.8; 
    scroll-behavior: smooth; 
    overflow-x: hidden;
}

/* --- common.htmlのパーツ一括適用 --- */
.custom-nav, 
.nav-item, 
.brand-name, 
.footer-info-section, 
.footer-info-table,
.footer-dark-bar,
.char-concierge {
    font-family: var(--base-font);
}

/* ナビゲーションの高さ確保（ページ最上部が隠れないように） */
#header-outlet + * {
    margin-top: 20px;
}

/* セクション共通設定 */
section { 
    padding: 80px 20px; 
    max-width: 1000px; 
    margin: 0 auto; 
}

h1, h2, h3 {
    color: var(--p-brown);
    text-align: center;
}

h2 { 
    font-size: 2.2rem; 
    margin-bottom: 50px; 
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--p-orange);
    border-radius: 2px;
}

/* リンクの基本設定 */
a {
    color: var(--p-orange);
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    opacity: 0.8;
}

/* 共通ボタン（まなびスタイル） */
.manabi-btn {
    display: inline-block;
    background: var(--p-orange);
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(243, 152, 0, 0.3);
    transition: 0.3s;
}

.manabi-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(243, 152, 0, 0.4);
    color: #fff;
    opacity: 1;
}

/* --- アニメーション関連 --- */

/* ふわふわ浮かぶ（キャラクターなどに使用） */
.floating {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* 画像の角丸標準（まなび風） */
.rounded-img {
    border-radius: 40px 100px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* スマホ対応 */
@media (max-width: 768px) {
    section { padding: 50px 20px; }
    h2 { font-size: 1.8rem; }
}