/*
Theme Name: Hyperiyon
Theme URI: https://www.hyperiyon.com
Description: はいぺりよん公式WordPressテーマ
Author: はいぺりよん
Version: 2.0
*/

/* トップページのCSSをインポート */
@import url('https://hyperiyon.com/css/style.css');

/* WordPress用の追加スタイル */
.page-main {
    min-height: 60vh;
}

/* 記事一覧 */
.post {
    background: white;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 4px solid #2e7cd6;
}

.post-title {
    font-size: 24px;
    color: #546e7a;
    margin-bottom: 15px;
}

.post-title a {
    color: #546e7a;
    text-decoration: none;
    transition: color 0.3s;
}

.post-title a:hover {
    color: #2e7cd6;
}

.post-meta {
    color: #607d8b;
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
}

.post-content {
    color: #37474f;
    line-height: 1.8;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 20px 0;
}

/* 続きを読む */
.read-more {
    display: inline-block;
    margin-top: 15px;
    color: #2e7cd6;
    text-decoration: none;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

/* ページネーション */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination a,
.pagination span {
    padding: 8px 16px;
    border: 1px solid #e3e8ec;
    border-radius: 4px;
    text-decoration: none;
    color: #37474f;
    transition: all 0.3s;
}

.pagination a:hover {
    background: #2e7cd6;
    color: white;
    border-color: #2e7cd6;
}

.pagination .current {
    background: #2e7cd6;
    color: white;
    border-color: #2e7cd6;
}

/* サイドバー */
.sidebar {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.widget {
    margin-bottom: 30px;
}

.widget-title {
    font-size: 18px;
    color: #546e7a;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2e7cd6;
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 8px 0;
    border-bottom: 1px solid #e3e8ec;
}

.widget a {
    color: #37474f;
    text-decoration: none;
    transition: color 0.3s;
}

.widget a:hover {
    color: #2e7cd6;
}

/* コメント */
.comments-area {
    margin-top: 60px;
}

.comment-list {
    list-style: none;
}

.comment {
    background: #f4f7f9;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.comment-author {
    font-weight: 500;
    color: #2e7cd6;
    margin-bottom: 10px;
}

.comment-meta {
    font-size: 14px;
    color: #607d8b;
    margin-bottom: 10px;
}

.comment-content {
    color: #37474f;
    line-height: 1.7;
}

/* レスポンシブ */
@media (max-width: 768px) {
    /* 横スクロール防止 */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    /* 2カラムレイアウトを1カラムに */
    .blog-container {
        display: block !important;
        padding: 20px 15px !important;
    }
    
    .main-content,
    .sidebar {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .sidebar {
        margin-top: 40px;
    }
    
    .post {
        padding: 20px;
    }
    
    .post-title {
        font-size: 20px;
    }
    
    /* フッターのコピーライト中央揃え */
    .footer-copyright {
        text-align: center !important;
    }
    
    /* フッターナビを横並びに */
    .footer-nav {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 15px 20px !important;
    }
    
    .footer-nav a {
        font-size: 13px;
    }
}
