/*
Theme Name: PC School South Lake
Description: Futuristic & Bright theme for PC School South Lake
Version: 1.0
*/

:root {
    --theme-color: #00ffff;
    --theme-dark: #0b132b;
    --text-color: #333333;
    --bg-color: #f4f7fb;
    --white: #ffffff;
}

/* ==================
   Base & Reset
================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    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;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* ==================
   Header Layout
================== */
.site-header {
    position: relative;
    background-size: cover;
    background-position: center;
    background-color: var(--white);
    overflow: hidden;
}
/* ヘッダー背景を少し暗くして文字を目立たせる */
.header-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.7); /* 明るさを保持 */
    backdrop-filter: blur(4px); /* すりガラス効果でスマートに */
}
.header-container {
    position: relative;
    height: 100%;
    z-width: 100%;
}
.site-branding {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    z-index: 10;
}
.site-title { font-size: 2.5rem; font-weight: bold; letter-spacing: 2px; }
.site-description { font-size: 1.2rem; font-weight: bold; margin-top: 10px; }

/* ==================
   Menu (PC)
================== */
.header-right {
    position: absolute;
    top: 0;
    right: 0;
    padding: 20px 40px;
    z-index: 20;
}
.main-navigation .nav-list {
    display: flex;
    gap: 30px;
    background: rgba(11, 19, 43, 0.85); /* フューチャリスティックな暗色背景 */
    padding: 15px 30px;
    border-radius: 50px;
    border: 1px solid var(--theme-color);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}
.main-navigation a {
    color: var(--white);
    font-weight: bold;
    position: relative;
    padding: 5px 0;
    transition: all 0.3s ease;
}
/* ホバー時のスマートな変化（ネオン発光＋アンダーライン） */
.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background-color: var(--theme-color);
    transition: width 0.3s ease;
    box-shadow: 0 0 8px var(--theme-color);
}
.main-navigation a:hover {
    color: var(--theme-color);
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
}
.main-navigation a:hover::after { width: 100%; }

.hamburger { display: none; } /* PCでは非表示 */

/* ==================
   Content Area
================== */
.main-area {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}
.content-sidebar-wrap {
    display: flex;
    gap: 40px;
    margin-top: 50px;
}
.primary-content { flex: 1; }
.sidebar-area { width: 300px; }

/* ==================
   Index: Catchphrase
================== */
.catchphrase-section {
    background-color: var(--theme-dark);
    padding: 60px 40px;
    border-radius: 10px;
    text-align: center;
    border-left: 5px solid var(--theme-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}
.catchphrase-section p {
    color: var(--theme-color); /* 指定のイメージカラー */
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

/* ==================
   Index: Buttons
================== */
.action-buttons-section {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}
.futuristic-btn {
    background: linear-gradient(135deg, rgba(20, 50, 120, 0.5) 0%, rgba(11,19,43,0.9) 100%);
    border: 1px solid var(--theme-color);
    color: var(--theme-color);
    padding: 20px 30px;
    font-weight: bold;
    border-radius: 5px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: inset 0 0 10px rgba(0,255,255,0.1), 0 5px 15px rgba(0,0,0,0.1);
    flex: 1;
    min-width: 250px;
}
.futuristic-btn:hover {
    background: var(--theme-color);
    color: var(--theme-dark);
    box-shadow: 0 0 20px var(--theme-color);
    transform: translateY(-3px);
}

/* ==================
   Index: Posts
================== */
.section-title {
    font-size: 2rem;
    border-bottom: 2px solid var(--theme-color);
    margin-bottom: 30px;
    display: inline-block;
    padding-bottom: 5px;
}
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}
.post-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,255,255,0.2);
}
.post-thumb {
    width: 100%;
    aspect-ratio: 1 / 1; /* 正方形 */
    overflow: hidden;
    position: relative;
    background: #eef;
}
.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* はみ出しをトリミングして正方形を維持 */
    transition: transform 0.5s;
}
.post-card:hover .post-thumb img { transform: scale(1.1); }
.no-image {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: #ccc;
}
.post-text { padding: 20px; }
.post-text h3 { font-size: 1.2rem; margin-bottom: 10px; }
.post-excerpt { font-size: 0.9rem; color: #666; }

/* ==================
   Sidebar
================== */
.sidebar-widget {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    border-top: 4px solid var(--theme-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.widget-title { margin-bottom: 20px; font-size: 1.2rem; }
.contact-info li { margin-bottom: 15px; border-bottom: 1px dotted #ccc; padding-bottom: 10px; }

/* ==================
   Animations
================== */
.fade-up, .fade-up-slow {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up-slow { transition: opacity 1.2s ease, transform 1.2s ease; }
.is-visible { opacity: 1; transform: translateY(0); }

/* ==================
   Footer
================== */
.site-footer {
    background: var(--theme-dark);
    color: var(--white);
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
}

/* ==================
   Responsive (Tablet/SP)
================== */
@media (max-width: 900px) {
    .content-sidebar-wrap { flex-direction: column; }
    .sidebar-area { width: 100%; }
    
    /* タイトルがハンバーガーメニューと被らないように調整 */
    .site-branding {
        top: 60%; 
        width: 100%;
        padding: 0 20px;
    }
    .site-title { font-size: 1.8rem; }
    .header-right { padding: 15px; width: 100%; display: flex; justify-content: flex-end; }
    
    /* ハンバーガーメニュー */
    .hamburger {
        display: block;
        background: transparent;
        border: none;
        cursor: pointer;
        width: 40px; height: 40px;
        position: relative;
        z-index: 100;
    }
    .hamburger span {
        display: block;
        width: 30px; height: 3px;
        background: var(--theme-color); /* フューチャリスティックな発光色 */
        position: absolute;
        left: 5px;
        transition: all 0.3s ease;
        box-shadow: 0 0 5px var(--theme-color);
    }
    .hamburger span:nth-child(1) { top: 10px; }
    .hamburger span:nth-child(2) { top: 20px; }
    .hamburger span:nth-child(3) { top: 30px; }
    
    /* ハンバーガーアクティブ時のX印 */
    .hamburger.is-active span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
    .hamburger.is-active span:nth-child(2) { opacity: 0; }
    .hamburger.is-active span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

    /* モバイルナビゲーション */
    .main-navigation {
        position: fixed;
        top: 0; right: -100%;
        width: 250px; height: 100vh;
        background: rgba(11, 19, 43, 0.95);
        backdrop-filter: blur(10px);
        transition: right 0.4s ease;
        padding-top: 80px;
    }
    .main-navigation.is-active { right: 0; }
    .main-navigation .nav-list {
        flex-direction: column;
        background: none; border: none; box-shadow: none; border-radius: 0;
        gap: 0; padding: 0;
    }
    .main-navigation a {
        display: block;
        padding: 20px;
        border-bottom: 1px solid rgba(0,255,255,0.2);
    }
}