/*
Theme Name: Minimal Lab
Template: twentytwentyfive
Description: minimalwp.com 風のミニマルデザイン子テーマ。白基調・余白広め・モノトーン。
Version: 1.3
Author: video_agent pipeline
*/

/* ───────── 全体 ───────── */
body {
    letter-spacing: 0.03em;
    -webkit-font-smoothing: antialiased;
}

/* ───────── ヘッダー ───────── */
.wp-block-site-title a {
    text-decoration: none;
    letter-spacing: 0.12em;
    font-weight: 600;
}

.wp-block-site-tagline {
    color: #999;
    letter-spacing: 0.18em;
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* ───────── 見出し ───────── */
h1, h2, h3 {
    letter-spacing: 0.06em;
    line-height: 1.6;
}

.entry-content h2,
.wp-block-post-content h2 {
    font-size: 1.35rem;
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 0.5em;
    margin-top: 2.5em;
}

/* ───────── 本文 ───────── */
.wp-block-post-content p {
    line-height: 2.0;
    margin-bottom: 1.8em;
}

/* ───────── リンク ───────── */
.wp-block-post-content a {
    color: #1c1c1c;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: #bbb;
}

.wp-block-post-content a:hover {
    text-decoration-color: #1c1c1c;
}

/* ───────── 記事一覧（タイトル等） ───────── */
.wp-block-post-title a {
    text-decoration: none;
}

.wp-block-post-title a:hover {
    opacity: 0.6;
}

/* 日付・メタ情報を淡く */
.wp-block-post-date,
.wp-block-post-terms {
    color: #aaa;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
}

/* ───────── 画像 ───────── */
.wp-block-post-content img,
.wp-block-post-featured-image img {
    border-radius: 2px;
}

/* ───────── ボタン（記事内CTAは inline style なので影響なし） ───────── */
.wp-block-button__link {
    border-radius: 2px;
    letter-spacing: 0.1em;
}

/* ════════════ Minimaga風マガジンレイアウト ════════════ */

/* ───────── ナビゲーション ───────── */
.maga-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 32px;
    padding: 16px 12px;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.maga-nav a {
    color: #1c1c1c;
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
}

.maga-nav a:hover {
    opacity: 0.5;
}

/* ───────── ヒーロー画像 ───────── */
.maga-hero img {
    display: block;
    width: 100%;
    max-height: 480px;
    object-fit: cover;
}

/* ───────── セクションタイトル (New Topics) ───────── */
.maga-pagetitle {
    font-size: 1.1rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-weight: 600;
    margin: 40px 0 8px;
    border: none;
}

.maga-pagetitle::after {
    content: "";
    display: block;
    width: 32px;
    height: 1px;
    background: #1c1c1c;
    margin: 14px auto 0;
}

/* ───────── 記事カードグリッド ───────── */
.maga-grid {
    gap: 48px 32px !important;
    margin-top: 40px;
}

.maga-card-img {
    overflow: hidden;
    margin-bottom: 14px;
}

.maga-card-img img {
    transition: transform 0.5s ease, opacity 0.5s ease;
    border-radius: 0;
}

.maga-grid li:hover .maga-card-img img {
    transform: scale(1.04);
    opacity: 0.88;
}

.maga-card-date {
    font-size: 0.72rem;
    color: #aaa;
    letter-spacing: 0.12em;
    margin: 0 0 6px;
}

.maga-card-cat {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    margin: 0 0 8px;
}

.maga-card-cat a {
    display: inline-block;
    background: #1c1c1c;
    color: #fff;
    padding: 2px 12px;
    text-decoration: none;
}

.maga-card-cat a:hover {
    opacity: 0.7;
}

.maga-card-title {
    font-size: 0.98rem;
    line-height: 1.7;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin: 0 0 8px;
}

.maga-card-title a {
    color: #1c1c1c;
    text-decoration: none;
}

.maga-card-title a:hover {
    opacity: 0.6;
}

.maga-card-text {
    font-size: 0.82rem;
    line-height: 1.9;
    color: #666;
}

.maga-card-text .wp-block-post-excerpt__more-link {
    color: #999;
}

/* ───────── 記事カードのタグ（#ハッシュタグ風） ───────── */
.maga-card-tags {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    margin-top: 8px;
    line-height: 1.8;
}

.maga-card-tags a {
    color: #999;
    text-decoration: none;
    margin-right: 10px;
}

.maga-card-tags a::before {
    content: "#";
    opacity: 0.7;
}

.maga-card-tags a:hover {
    color: #1c1c1c;
}

/* ───────── ページネーション ───────── */
.maga-pager {
    margin-top: 56px;
    gap: 6px;
}

.maga-pager .page-numbers,
.maga-pager a {
    font-size: 0.85rem;
    color: #1c1c1c;
    text-decoration: none;
    letter-spacing: 0.08em;
    padding: 8px 14px;
    border: 1px solid #e0e0e0;
}

.maga-pager .page-numbers.current {
    background: #1c1c1c;
    color: #fff;
    border-color: #1c1c1c;
}

.maga-pager a:hover {
    border-color: #1c1c1c;
}

/* ───────── フッター ───────── */
.maga-footer {
    border-top: 1px solid #e8e8e8;
    background: #fafafa;
    margin-top: 64px;
}

.maga-footer-title {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    font-weight: 600;
    margin-bottom: 16px;
}

.maga-footer-text,
.maga-footer-cats,
.maga-footer-links {
    font-size: 0.8rem;
    line-height: 2.0;
    color: #666;
}

.maga-footer-cats,
.maga-footer-links {
    list-style: none;
    padding-left: 0;
}

.maga-footer-cats a,
.maga-footer-links a {
    color: #666;
    text-decoration: none;
}

.maga-footer-cats a:hover,
.maga-footer-links a:hover {
    color: #1c1c1c;
}

.maga-sns {
    margin-top: 20px;
    gap: 10px !important;
}

.maga-sns .wp-block-social-link {
    transition: opacity 0.3s;
}

.maga-sns .wp-block-social-link:hover {
    opacity: 0.6;
}

.maga-footer-title-tags {
    margin-top: 28px;
}

.maga-footer-tags a {
    display: inline-block;
    color: #666;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 999px;
    padding: 2px 12px;
    margin: 0 6px 8px 0;
    background: #fff;
}

.maga-footer-tags a:hover {
    border-color: #1c1c1c;
    color: #1c1c1c;
}

.maga-copyright {
    font-size: 0.72rem;
    color: #aaa;
    letter-spacing: 0.2em;
    margin-top: 48px;
}

/* ───────── レスポンシブ ───────── */
@media (max-width: 781px) {
    .maga-nav {
        gap: 4px 20px;
        position: static;
    }

    .maga-hero img {
        max-height: 260px;
    }

    .maga-grid {
        gap: 40px 24px !important;
    }
}
