/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready

/* ==========================================================
   背景色（青）
========================================================== */
body {
    background: #97bed7;
    color: #222;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

/* ==========================================================
   白いカード（全ページ共通）
   → 外側に十分な余白をつける（スクショと同じバランス）
========================================================== */

main.site-main,
.single-post {
    max-width: 1180px;
    margin: 80px auto;          /* ← 重要：外側余白。PCは広め */
    padding: 50px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

/* タブレット */
@media (max-width: 1024px) {
    main.site-main,
    .single-post {
        margin: 60px 40px;       /* 左右40pxくらいが最適 */
        padding: 40px;
    }
}

/* スマホ */
@media (max-width: 767px) {
    main.site-main,
    .single-post {
        margin: 30px 16px;       /* 左右16px（最低余白） */
        padding: 20px;
    }
}

/* ==========================================================
   アーカイブ（コラム一覧）
========================================================== */

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header .entry-title {
    font-size: 30px;
    font-weight: 700;
}

/* グリッド：レスポンシブ最適化 */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

/* カード */
.archive-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e6eaf0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.archive-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* No Image デザイン */
.no-thumb {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f7fa;
    color: #7d8a97;
    font-size: 16px;
    font-weight: 500;
}

.card-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* カード本文 */
.card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ==========================================================
   シングルページ（記事）
========================================================== */

.single-header {
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e3e7ec;
}

.single-title {
    font-size: 30px;
    font-weight: 700;
    margin: 0 0 14px;
}

.post-meta {
    display: flex;
    gap: 20px;
    color: #6c7a89;
    font-size: 15px;
    margin-bottom: 24px;
}

/* ==========================================================
   ページめくり（左右ボタン）
========================================================== */

.single-pager {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #e1e6ea;
}

.single-pager .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.single-pager a {
    display: inline-block;
    padding: 14px 22px;
    background: #0073aa;
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s ease;
}

.single-pager a:hover {
    background: #005f87;
    transform: translateY(-2px);
}

/* スマホ：縦並び */
@media (max-width: 767px) {
    .single-pager .nav-links {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================
   ページネーション（一覧下ボタン）
========================================================== */

.archive-pagination {
    text-align: center;
    margin-top: 50px;
}

.archive-pagination ul {
    display: inline-flex;
    gap: 8px;
    padding: 0;
    list-style: none;
}

.archive-pagination a,
.archive-pagination span {
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #cfd6df;
    background: #f7f9fc;
    color: #005f87;
    font-weight: 600;
    text-decoration: none;
}

.archive-pagination a:hover {
    background: #005f87;
    color: #fff;
}

.archive-pagination .current {
    background: #005f87;
    color: #fff;
    border-color: #005f87;
}

