@charset "UTF-8";

/* 全体のリセットと空気感 */
body {
    margin: 0;
    padding: 0;
    background-color: #fff;
}

.blog-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 60px 24px 100px 24px;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", "Noto Sans JP", sans-serif;
    color: #1a1a1a;
    line-height: 2.1;
}

/* ------------------------------------------- */
/* 💡 【バグ修正版】極薄ヘッダーCSS */
/* ------------------------------------------- */
.blog-minimal-header {
    width: 100%;
    height: 65px;
    border-bottom: 1px solid #ececec;
    background: rgba(255, 255, 255, 0.95);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    max-width: 700px; /* 本文と縦ラインを統一 */
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px; /* ロゴと文字の間のほどよい隙間 */
}

/* ★超重要：巨大化を防ぐ絶対指定 */
.brand-logo {
    height: 32px !important; /* ヘッダー内に絶対に収まる高さ */
    width: auto !important;  /* 比率を崩さない */
    max-width: 120px;        /* 横幅の限界値 */
    object-fit: contain;
    display: block;
}

.header-logo .logo-text {
    color: #000;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1;
    display: inline-block;
}
.header-logo .logo-sub {
    font-size: 0.7rem;
    color: #999;
    font-weight: 500;
    margin-left: 2px;
    letter-spacing: 0.1em;
}
.header-nav .back-link {
    text-decoration: none;
    color: #666;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
}
.header-nav .back-link:hover {
    color: #000;
}

/* 記事ヘッダー */
.blog-header {
    text-align: left;
    margin-top: 40px;
    margin-bottom: 60px;
}
.blog-header .card-date {
    font-size: 0.9rem;
    color: #888;
    letter-spacing: 0.05em;
}
.blog-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.4;
    margin-top: 20px;
    color: #000;
    letter-spacing: -0.03em;
}

/* 本文内の余白 */
.article-body p {
    margin-bottom: 55px;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
}

/* 冒頭の結論文 */
.article-body .top-conclusion {
    background: #000;
    color: #fff;
    padding: 40px;
    border-radius: 8px;
    font-size: 1.15rem;
    line-height: 1.8;
    font-weight: 600;
    margin-bottom: 80px;
    letter-spacing: 0.03em;
}

/* h2大見出しのデザイン */
.article-body h2 {
    font-size: 1.7rem;
    font-weight: 700;
    color: #000;
    line-height: 1.4;
    margin: 100px 0 40px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #000;
    letter-spacing: 0.01em;
}

/* 小見出し */
.article-body .lead-text {
    font-size: 1.35rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 25px;
}
.article-body .sub-lead {
    font-size: 1.2rem;
    font-weight: 700;
    color: #444;
    margin-top: 50px;
    margin-bottom: 25px;
    letter-spacing: 0.03em;
}

/* 特大スペース */
.huge-space {
    height: 140px;
    display: block;
}

/* 箇条書き風ボックス */
.article-body .text-cluster {
    background: #f8f9fa;
    padding: 25px 30px;
    border-radius: 6px;
    font-weight: 600;
    line-height: 1.8;
    margin-bottom: 55px;
}

/* 印象的な一言 */
.article-body .mid-pitch {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000;
    margin: 60px 0;
}

/* 突き刺さる強い一言 */
.article-body .strong-word {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.5;
    color: #000;
    margin-top: 80px;
    margin-bottom: 20px;
    border-left: 4px solid #000;
    padding-left: 20px;
}

/* CSSのみで描くミニマル図解 */
.apple-diagram {
    background: #111;
    color: #fff;
    padding: 40px 30px;
    border-radius: 8px;
    margin: 80px 0;
    text-align: center;
}
.diagram-title {
    font-size: 0.9rem !important;
    font-weight: bold;
    color: #aaa;
    margin-bottom: 30px !important;
    letter-spacing: 0.1em;
}
.diagram-flex {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}
.diagram-flex .unit {
    width: 22%;
    background: #222;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 15px 5px;
}
.diagram-flex .unit span {
    display: block;
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 5px;
}
.diagram-flex .unit small {
    display: block;
    font-size: 0.65rem;
    color: #888;
    line-height: 1.2;
}
.diagram-flex .bg-active { border-color: #444; }
.diagram-flex .bg-active span { color: #666; }
.diagram-flex .bg-black { background: #fff; border-color: #fff; }
.diagram-flex .bg-black span { color: #000; }
.diagram-flex .bg-black small { color: #555; font-weight: bold; }
.diagram-footer {
    font-size: 0.8rem !important;
    color: #888;
    line-height: 1.6;
    margin-bottom: 0 !important;
    text-align: left;
}

/* KAMIWAZAの合理性を伝えるエリア */
.kamiwaza-rational-box {
    margin: 120px 0;
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
    padding: 60px 0;
}
.kamiwaza-rational-box h2 {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: #000;
    border-bottom: none;
    padding-bottom: 0;
}
.kamiwaza-rational-box h2:not(:first-child) {
    margin-top: 80px;
}

/* 一覧へ戻るボタン */
.back-to-list {
    text-align: center;
    margin-top: 100px;
}
.back-to-list a {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.back-to-list a:hover { color: #000; }

/* ------------------------------------------- */
/* 💡 【バグ修正版】静かなフッターCSS */
/* ------------------------------------------- */
.blog-minimal-footer {
    width: 100%;
    background-color: #fafafa;
    border-top: 1px solid #ececec;
    padding: 60px 0;
    text-align: center;
}
.footer-inner {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 24px;
}
.footer-logo-box {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}

/* ★超重要：フッターロゴのサイズ制限 */
.footer-logo {
    height: 45px !important; /* フッター中央に品よく収まる高さ */
    width: auto !important;
    max-width: 150px;
    object-fit: contain;
    display: block;
}

.footer-brand-text {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin: 0 0 8px 0;
    color: #000;
}
.footer-tagline {
    font-size: 0.8rem;
    color: #666;
    margin: 0 0 24px 0;
    letter-spacing: 0.02em;
}
.footer-copy {
    font-size: 0.7rem;
    color: #999;
    margin: 0;
    letter-spacing: 0.05em;
}

/* スマホ最適化 */
@media (max-width: 600px) {
    .blog-container { padding-top: 30px; }
    .header-inner { padding: 0 20px; }
    .brand-logo { height: 26px !important; } /* スマホではさらにスマートに */
    .blog-header h1 { font-size: 1.8rem; }
    .article-body .top-conclusion { padding: 25px; font-size: 1rem; }
    .article-body h2 { font-size: 1.4rem; margin: 70px 0 30px 0; }
    .article-body .strong-word { font-size: 1.35rem; }
    .diagram-flex { gap: 8px; }
    .diagram-flex .unit span { font-size: 1.2rem; }
    .diagram-flex .unit small { font-size: 0.6rem; }
    .huge-space { height: 90px; }
    .blog-minimal-footer { padding: 40px 0; }
    .footer-logo { height: 35px !important; }
}
