/*
Theme Name: パソコン教室サウスレイク
Author: Gemini
Description: アットホーム×ハイテクなWordPressテーマ
Version: 1.0
*/

:root {
    --theme-cyan: #00ffff;
    --text-color: #333333;
    --bg-color: #f7f9fa;
    --white: #ffffff;
}

body {
    margin: 0;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

/* ヘッダー全体（背景画像と高さ調整） */
.site-header {
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 250px; /* デスクトップ表示での高さ基準 */
    display: flex;
    flex-direction: column;
}

/* ヘッダー内部（タイトル中央配置、メニュー右上配置） */
.header-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px 40px;
    height: 100%;
}

.site-branding {
    text-align: center;
    background: rgba(255, 255, 255, 0.85); /* アットホーム感のための透過白背景 */
    padding: 20px 40px;
    border-radius: 15px;
}

.site-title a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 2rem;
    font-weight: bold;
}

.site-description {
    font-size: 1rem;
    color: #666;
    margin-top: 5px;
}

/* ナビゲーションメニュー (PC用：右上・幅広) */
.main-navigation {
    position: absolute;
    top: 20px;
    right: 40px;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    padding: 10px 15px;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

/* メニューホバー時：ハイテクな変化 (シアンに発光) */
.main-navigation a:hover {
    color: var(--theme-cyan);
    border-bottom: 2px solid var(--theme-cyan);
    text-shadow: 0 0 8px var(--theme-cyan); /* サイバーな発光エフェクト */
}

/* トップページ：投稿グリッド（横並び） */
.latest-topics {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}
.latest-topics h2 {
    text-align: center;
    border-bottom: 3px solid var(--theme-cyan);
    display: inline-block;
    padding-bottom: 5px;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.post-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    background: var(--white);
    border-radius: 15px; /* アットホームな丸み */
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 255, 255, 0.4); /* ホバーでシアンの影 */
}

.post-thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1; /* 正方形 */
    object-fit: cover;
}

.post-content {
    padding: 15px;
}

/* スクロールアニメーションの初期状態と発火状態 */
.wipe-up-anim {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.fade-in-anim {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ボタン群のデザイン */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1000px;
    margin: 50px auto;
    padding: 0 20px;
}

.action-buttons .btn {
    background-color: var(--white);
    color: var(--text-color);
    border: 2px solid var(--theme-cyan);
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.action-buttons .btn:hover {
    background-color: var(--theme-cyan);
    color: #000;
    box-shadow: 0 0 15px var(--theme-cyan); /* ハイテクな発光 */
}

/* サイドバー */
#secondary {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
    background: var(--white);
    border-radius: 10px;
    border-left: 5px solid var(--theme-cyan);
}

/* フッター */
.site-footer {
    text-align: center;
    padding: 20px;
    background: #222;
    color: #fff;
    margin-top: 50px;
}

/* スマホ・タブレット向けメディアクエリ */
.menu-toggle {
    display: none;
}

@media screen and (max-width: 768px) {
    /* ハンバーガーメニューの表示 */
    .menu-toggle {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 999;
    }
    .hamburger-line {
        display: block;
        width: 30px;
        height: 3px;
        background-color: var(--theme-cyan); /* メニューアイコンをシアンに */
        margin: 6px 0;
        transition: 0.4s;
    }

    /* メニューを隠す */
    .main-navigation {
        display: none;
        width: 100%;
        background: rgba(0,0,0,0.9);
        position: absolute;
        top: 60px;
        right: 0;
        padding: 20px 0;
    }
    .main-navigation.is-open {
        display: block;
    }
    .main-navigation ul {
        flex-direction: column;
        align-items: center;
    }
    .main-navigation a {
        color: var(--theme-cyan);
    }
    
    /* アニメーション用：メニューオープン時のバツ印変化 */
    .menu-toggle.is-active .hamburger-line:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-toggle.is-active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.is-active .hamburger-line:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}