/**
 * FCMK Web ZERO メインスタイルシート
 */

/* 基本的なリセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* カスタムプロパティ */
:root {
    --primary-color: #ff6b6b;
    --secondary-color: #ff8787;
    --accent-color: #ffa94d;
    --warm-bg: #fff5f5;
    --warm-light: #ffe0e0;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --white: #ffffff;
    --shadow-light: rgba(255, 107, 107, 0.1);
    --shadow-medium: rgba(255, 107, 107, 0.2);
}

/* 基本スタイル */
body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
}

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

a:hover {
    color: var(--secondary-color);
}

/* コンテナ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px var(--shadow-light);
    z-index: 1000;
    transition: all 0.3s ease;
}

.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    font-size: 1.5rem;
    font-weight: 700;
}

.site-title {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
    letter-spacing: 1px;
    transition: transform 0.3s ease;
}

.site-title:hover {
    transform: scale(1.05);
}

/* ナビゲーション */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

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

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

.nav-menu a:hover::after {
    width: 100%;
}

/* モバイルメニュー */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
    width: 30px;
    height: 30px;
}

.menu-toggle-bar {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    margin: 5px 0;
    transition: all 0.3s ease;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.menu-toggle-bar:nth-child(1) {
    top: 6px;
}

.menu-toggle-bar:nth-child(2) {
    top: 14px;
}

.menu-toggle-bar:nth-child(3) {
    top: 22px;
}

/* コンテンツ */
.site-content {
    padding-top: 80px;
    min-height: calc(100vh - 200px);
}

.page-header {
    text-align: center;
    padding: 3rem 0;
    background: var(--warm-bg);
}

.page-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 0;
}

/* 投稿リスト */
.posts-list {
    padding: 2rem 0;
}

.posts-list article {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 10px var(--shadow-light);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.posts-list article:hover {
    box-shadow: 0 5px 20px var(--shadow-medium);
    transform: translateY(-3px);
}

.entry-header {
    padding: 2rem;
}

.entry-title {
    font-size: 1.8rem;
    margin: 0 0 1rem;
}

.entry-meta {
    color: var(--text-light);
    font-size: 0.9rem;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.entry-content {
    padding: 0 2rem 2rem;
}

.read-more {
    display: inline-block;
    margin: 0 2rem 2rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* ページネーション */
.pagination {
    text-align: center;
    padding: 3rem 0;
}

.page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    background: var(--warm-bg);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.page-numbers:hover,
.page-numbers.current {
    background: var(--primary-color);
    color: white;
}

/* フッター */
.site-footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-menu {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.8);
}

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

.site-info {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.site-info a {
    color: rgba(255, 255, 255, 0.8);
}

.site-info a:hover {
    color: var(--primary-color);
}

/* エラーページ */
.error-container {
    text-align: center;
    padding: 100px 20px;
}

.error-container h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.error-container p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.button {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    display: inline-block;
    font-weight: 600;
    transition: all 0.3s ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-medium);
    color: white;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .primary-menu-container {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 5px 20px var(--shadow-light);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .primary-menu-container.active {
        max-height: 400px;
    }

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

    .nav-menu li {
        border-bottom: 1px solid var(--warm-bg);
    }

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

    .page-title {
        font-size: 2rem;
    }

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

    .footer-menu {
        flex-direction: column;
        gap: 1rem;
    }
}