/* =========================================
   Theme Name: Defend Passion (Health Asset)
   Description: 高級カタログ風・モバイルファースト設計・青緑ベース・分離記事対応
========================================= */

:root {
    --color-bg: #F0F4F4;
    --color-white: #FFFFFF;
    --color-primary: #00838F;
    --color-primary-dark: #004D40;
    --color-accent: #795548;
    --color-accent-dark: #4E342E;
    --color-top-line: #0A1931;
    /* 濃紺ライン */
    --color-text: #000000;
    --color-text-light: #111111;
    --color-border: #EEEEEE;
    --font-base: 'Noto Sans JP', sans-serif;
    --font-title: 'Playfair Display', 'Noto Sans JP', serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-base);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    font-size: 16px;
    font-weight: 400;
    /* 文字を少し濃く(太く)修正 */
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}



/* =========================================
   サイト全体の本文段落（pタグ）の下余白調整
========================================= */
.single-content p,
.empathy-text p,
.read-more-content p {
    margin-bottom: 25px; /* ★サイト全体の段落の隙間（ここでお好みの数値に調整） */
}

/* 各ボックスの一番下の段落には余分な余白を作らない（レイアウト崩れ防止） */
.single-content p:last-child,
.empathy-text p:last-child,
.read-more-content p:last-child {
    margin-bottom: 0;
}



/* =========================================
   Header Animation & Banner
========================================= */
/* トップページ用のアニメーション罫線 */
.top-accent-line {
    width: 100%;
    height: 6px;
    background-color: var(--color-top-line);
    position: relative;
    top: 0;
    left: 0;
    z-index: 1000;
}

/* body に .top-page クラスがある場合のみアニメーション実行 */
body.top-page .top-accent-line {
    animation: drawTopLine 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    transform-origin: left;
    transform: scaleX(0);
    /* 初期状態は幅0 */
}

@keyframes drawTopLine {
    0% {
        transform: scaleX(0);
    }

    100% {
        transform: scaleX(1);
    }
}

.site-header {
    background-color: var(--color-white);
}

.header-banner-area {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 0;
}

.banner-link {
    display: block;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.main-banner-img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

.mobile-menu-btn {
    display: block;
    background: transparent;
    border: none;
    width: 30px;
    height: 20px;
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    z-index: 100;
}

.mobile-menu-btn span {
    display: block;
    height: 2px;
    background: var(--color-text);
    position: absolute;
    width: 100%;
    transition: 0.3s;
}

.mobile-menu-btn span:nth-child(1) {
    top: 0;
}

.mobile-menu-btn span:nth-child(2) {
    top: 9px;
}

.mobile-menu-btn span:nth-child(3) {
    top: 18px;
}

/* モバイルメニュー開閉時のボタンアニメーション */
.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* メニューデザイン：リンク感・高級感アップ */
.header-nav-bottom {
    display: none;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 5px 0;
    margin-bottom: 20px;
}

/* モバイルメニュー展開時 */
.header-nav-bottom.open {
    display: block;
}

.global-nav {
    width: 100%;
}

/* =========================================
   Layout
========================================= */
.main-container {
    padding: 0 20px 40px;
    max-width: 1000px;
    margin: 0 auto;
    clear: both;
}

.content-area {
    margin-bottom: 40px;
}

/* =========================================
   Empathy Section (縮小版・サイト紹介文)
========================================= */
.empathy-section {
    background: var(--color-white);
    padding: 20px 25px;
    border-radius: 4px;
    margin-bottom: 40px;
    border-top: 2px solid var(--color-primary);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.02);
}

.empathy-content-wrapper {
    /* Flexをやめて普通のブロック表示にする */
    display: block; 
}

/* ★スマホ版（floatしない時の画像設定） */
.empathy-image-box {
    text-align: center;
    margin-bottom: 20px; /* テキストとの間に余白 */
}

.empathy-img {
    max-width: 100%;
    max-height: 140px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.empathy-title {
    font-size: 16px;
    color: var(--color-primary-dark);
    margin-bottom: 10px;
    font-weight: 500;
    font-family: var(--font-title);
    letter-spacing: 0.5px;
}

.highlight-age {
    font-size: 1.2em;
    color: var(--color-primary);
    font-weight: 900;
    font-family: 'Noto Sans JP', sans-serif;
}

.empathy-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-light);
}



/* ▼ PC版（画面幅768px以上）のレイアウト ▼ */
@media screen and (min-width: 768px) {
    .empathy-image-box {
        /* ★画像を右上に回り込ませる */
        float: right; 
        
        /* ★画像を少し大きく */
        width: 200px; 
        
        /* テキストがくっつかないように、画像の左と下に余白を作る */
        margin: 5px 0 15px 25px; 
    }

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

    /* floatの高さを認識させる（はみ出し防止） */
    .empathy-content-wrapper::after {
        content: "";
        display: table;
        clear: both;
    }
}

/* Read More Details (Accordion) */
.read-more-details {
    margin-top: 15px;
}

.read-more-summary {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--color-primary);
    padding-bottom: 2px;
    margin-bottom: 15px;
    list-style: none;
}

.read-more-summary::-webkit-details-marker {
    display: none;
}

.read-more-summary::after {
    content: " ≫";
}

.read-more-details[open] .read-more-summary::after {
    content: " ≪";
}

.read-more-content {
    animation: fadeInAccordion 0.4s ease-in-out;
    padding-top: 5px;
}

.read-more-content p {
    margin-bottom: 25px;
}

.read-more-content p:last-child {
    margin-bottom: 0;
}

@keyframes fadeInAccordion {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   Articles Grid & Cards
========================================= */
.section-title {
    font-size: 20px;
    border-bottom: 1px solid var(--color-text);
    padding-bottom: 10px;
    margin-bottom: 30px;
    font-weight: 500;
    letter-spacing: 1px;
}

.lp-card-link {
    display: block;
    color: inherit;
    transition: opacity 0.2s;
    position: relative;
}

.lp-card-link:hover {
    opacity: 0.85;
}

.lp-card-link:hover .card-title {
    color: var(--color-primary);
}

.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px 30px;
}

.lp-card {
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: none;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* 画像を上に、シャドウや枠線をなくし、タイトルを下へ */
.lp-card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    margin-bottom: 12px;
}

.card-badge {
    position: absolute;
    top: 10px;
    left: 0;
    background: var(--color-primary-dark);
    color: var(--color-white);
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
}

/* 🌟固定記事（ピン留め）用バッジデザイン強化 */
.pinned-badge {
    position: absolute;
    top: -10px;
    right: 10px;
    background: #FF3D00;
    color: #FFF;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 10;
    transform: translateY(5px);
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.lp-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 15px 15px 20px 15px;
}

.card-title {
    font-size: 17px;
    margin-bottom: 8px;
    color: var(--color-text);
    line-height: 1.5;
    font-weight: 500;
    transition: color 0.2s;
    padding: 0;
}

.article-meta {
    font-size: 11px;
    color: #999;
    margin-bottom: 12px;
    display: flex;
    gap: 15px;
}

.card-text {
    font-size: 14.5px;
    color: var(--color-text-light);
    margin-bottom: 15px;
    line-height: 1.7;
    flex: 1;
    font-weight: 300;
}

.evidence-box {
    background: #f0f4f4;
    border-left: 3px solid var(--color-primary);
    padding: 10px 15px;
    margin-top: auto;
}

.evidence-box h4 {
    color: var(--color-primary-dark);
    font-size: 12px;
    margin-bottom: 4px;
    font-weight: 500;
}

.evidence-box p {
    font-size: 11px;
    color: #666;
    font-weight: 300;
    line-height: 1.5;
    margin-bottom: 0;
}

/* 広告プレースホルダー */
.ad-placeholder {
    background: #f9f9f9;
    border: 1px dashed #ccc;
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 12px;
    margin: 30px 0;
    border-radius: 4px;
}

/* Sidebar */
.sidebar {
    background: var(--color-white);
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
}

/* Sidebar Notice & Ad */
.sidebar-notice {
    background-color: transparent;
    padding: 0 1px 25px 5px;
    margin-bottom: 35px;
    border-bottom: 1px solid var(--color-border);
    margin-top: -15px;
}

.notice-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--color-primary-dark);
    display: flex;
    align-items: center;
}

.notice-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 14px;
    background-color: var(--color-primary);
    margin-right: 6px;
    border-radius: 2px;
}

.sidebar-notice p {
    font-size: 12px;
    color: #292929;
    line-height: 1.5;
    margin: 0;
    font-weight: 300;
}

.ad-sidebar-placeholder {
    background: #f9f9f9;
    border: 1px dashed #ccc;
    text-align: center;
    padding: 60px 10px;
    color: #999;
    font-size: 12px;
    border-radius: 4px;
}

.widget {
    margin-bottom: 40px;
}

/* Sidebar Top Button (Elegant & Simple) */
.sidebar-top-btn-wrapper {
    margin-bottom: 20px;
}

.sidebar-top-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: var(--color-white);
    color: var(--color-primary-dark);
    padding: 12px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 77, 64, 0.15);
    /* 品の良い薄めの枠線 */
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    /* 白背景を目立たせる極薄い影 */
}

.sidebar-top-btn:hover {
    background: #fafafa;
    border-color: #D4AF37;
    /* ホバーで枠線がゴールドに */
    color: var(--color-primary-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.home-icon {
    margin-right: 8px;
    font-size: 16px;
    color: #D4AF37;
    /* リッチなゴールドのアクセント */
}

.sidebar-search {
    display: flex;
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.sidebar-search input {
    border: none;
    padding: 10px 15px;
    flex: 1;
    outline: none;
    font-family: var(--font-base);
}

.sidebar-search button {
    background: var(--color-primary);
    border: none;
    color: white;
    padding: 0 20px;
    cursor: pointer;
}

.widget-title {
    font-size: 16px;
    margin-bottom: 20px;
    display: block;
    padding-bottom: 10px;
    font-weight: 500;
    border-bottom: 1px solid var(--color-text);
    letter-spacing: 1px;
}

.category-list li,
.ranking-list li {
    margin-bottom: 0;
    border-bottom: 1px solid var(--color-border);
    padding: 10px 0;
}

.category-list a,
.ranking-list a {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--color-text-light);
    transition: 0.2s;
}

.category-list a:hover,
.ranking-list a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.cat-icon {
    font-size: 16px;
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

/* =========================================
   Single Article Layout
========================================= */
.article-ad-top {
    padding: 15px;
    margin: 0 0 30px 0;
}

.article-ad-bottom {
    padding: 20px;
    margin: 30px 0;
}

.single-article {
    background: #fff;
    padding: 40px;
    border-radius: 4px;
}

.single-article .card-badge.single-badge {
    position: static;
    display: inline-block;
    margin-bottom: 15px;
    border-radius: 4px;
    background: var(--color-primary-dark);
    color: #fff;
    padding: 5px 12px;
    font-size: 12px;
}

.single-title {
    font-size: 24px;
    margin-bottom: 15px;
    line-height: 1.5;
    font-weight: 500;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
}

.single-meta {
    margin-bottom: 25px;
    font-size: 13px;
    color: #888;
}

.single-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    margin-bottom: 30px;
}

.single-content {
    font-size: 16px;
    line-height: 2.0;
    color: #333;
}

.single-evidence-box {
    padding: 20px;
    background: #f9f9f9;
    border-left: 4px solid var(--color-primary);
    margin: 30px 0;
}

.back-link-container {
    text-align: center;
    margin-top: 40px;
}

.back-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--color-white);
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 30px;
    font-weight: 500;
    transition: 0.3s;
}

.back-btn:hover {
    background: var(--color-primary);
    color: #fff;
}

/* =========================================
   Footer
========================================= */
.site-footer {
    /* グラデーション非対応の古いブラウザ向け・または読み込み遅延時の安全なフォールバック用ソリッドカラー */
    background-color: #032b26;
    /* より深みのある濃い青緑のグラデーションに調整 */
    background-image: linear-gradient(315deg, #032b26 0%, #005047 100%);
    color: var(--color-white);
    padding: 70px 20px 30px;
    margin-top: 60px;
    font-size: 14px;
    position: relative;
    box-shadow: 0 -10px 30px rgba(0, 131, 143, 0.15);
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FFB74D, #FF9800);
}

.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
    flex-direction: column;
}

.footer-brand {
    flex: 1 1 300px;
}

.footer-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 1.5px;
    font-family: var(--font-title);
    background: linear-gradient(to right, #FFF, #B2DFDB);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-links {
    flex: 1 1 200px;
}

.footer-links-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: 2px;
    color: var(--color-white);
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
    border-bottom: none;
    padding: 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: 0.3s;
    font-size: 14px;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--color-white);
    padding-left: 5px;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.legal-disclaimer p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

@media screen and (min-width: 768px) {
    .footer-top {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Desktop View */
@media screen and (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }

    .header-nav-bottom {
        display: flex;
        justify-content: center;
        padding: 5px 0 10px 0;
        margin-bottom: 0;
        background-color: var(--color-white);
    }

    .global-nav ul {
        display: flex;
        justify-content: center;
        gap: 40px;
        align-items: center;
    }

    .global-nav a {
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 400;
        font-size: 14px;
        letter-spacing: 1.5px;
        padding: 5px 10px;
        transition: 0.3s;
        color: var(--color-text);
        position: relative;
    }

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

    /* メニュー修飾アイコン */
    .nav-icon {
        font-size: 14px;
        margin-right: 6px;
        opacity: 0.7;
    }

    /* 薄い矢印アイコン */
    .nav-arrow {
        margin-left: 6px;
        font-size: 12px;
        color: #bbb;
        transition: 0.3s;
    }

    .global-nav a:hover .nav-arrow {
        color: var(--color-primary);
        transform: translateX(3px);
    }

    /* ホバー線 */
    .global-nav a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 10%;
        width: 0%;
        height: 1px;
        background-color: var(--color-primary);
        transition: width 0.3s ease;
    }

    .global-nav a:hover::after {
        width: 80%;
    }

    .main-container {
        display: flex;
        gap: 40px;
        padding: 15px 0 40px 0;
    }

    .content-area {
        flex: 1;
        min-width: 0;
        margin-bottom: 0;
    }

    .sidebar-wrapper {
        width: 250px;
        flex-shrink: 0;
    }

    .sidebar {
        padding: 25px 20px;
        height: max-content;
    }

    .empathy-section {
        padding: 25px 30px;
        margin-bottom: 40px;
    }

    .empathy-content-wrapper {
        flex-direction: row;
        align-items: center;
        gap: 30px;
    }

    .empathy-text-box {
        flex: 3;
    }

    .empathy-image-box {
        flex: 2;
    }

    .empathy-title {
        font-size: 18px;
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 30px;
    }

    .card-title {
        font-size: 18px;
        line-height: 1.6;
    }
}

/* Back to Top Feature */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background-color 0.3s, transform 0.3s;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-3px);
}

/* =========================================
   Article Navigation & Recommended
========================================= */
.article-nav-container {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
    gap: 20px;
}

.article-nav-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 25px;
    background: #fdfdfd;
    color: var(--color-text);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    position: relative;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    justify-content: center;
    overflow: hidden;
}

.article-nav-link:hover {
    background: #f5f8f8;
    border-color: rgba(0, 80, 71, 0.3);
    transform: translateY(-2px);
}

.article-nav-label {
    font-size: 13px;
    color: var(--color-primary);
    margin-bottom: 8px;
    font-weight: bold;
    letter-spacing: 1px;
}

.article-nav-title {
    font-size: 14px;
    color: var(--color-text);
    font-weight: 500;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-nav-link.empty {
    background: transparent;
    box-shadow: none;
    border: none;
    pointer-events: none;
    visibility: hidden;
}

.article-nav-link.empty::before {
    display: none;
}

.recommended-articles {
    margin: 50px 0;
}

.recommended-title {
    font-size: 20px;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 10px;
    margin-bottom: 25px;
    font-weight: 500;
}

.recommended-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media screen and (min-width: 768px) {
    .article-nav-link {
        text-align: left;
    }

    .article-nav-link.next {
        text-align: right;
    }

    .recommended-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.recommended-card {
    display: flex;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: 0.2s;
}

.recommended-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.recommended-img {
    width: 35%;
    background-size: cover;
    background-position: center;
}

.recommended-body {
    padding: 15px;
    width: 65%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.recommended-card-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    line-height: 1.4;
}

.recommended-date {
    font-size: 11px;
    color: #999;
}

/* ==========================================================================
   Author Profile Box (この記事を書いた人)
   ========================================================================== */
.author-profile-box {
    margin-top: 55px;
    background: #fdfdfd;
    border: 2px solid rgba(0, 80, 71, 0.2);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    display: flex;
    gap: 25px;
}

.author-sidebar {
    flex-shrink: 0;
    width: 140px;
    /* 左カラムの幅 */
}

.author-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.author-header-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.author-label {
    display: inline-block;
    background: var(--color-primary-dark);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
}

.author-icon img {
    width: 140px;
    height: 140px;
    border-radius: 0;
    /* 完全な四角 */
    object-fit: cover;
    border: 1px solid #ddd;
}

.author-name {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: var(--color-text);
}

.author-role {
    font-size: 11px;
    background: rgba(0, 80, 71, 0.05);
    color: var(--color-primary-dark);
    padding: 2px 8px;
    border-radius: 12px;
    border: 1px solid rgba(0, 80, 71, 0.1);
}

.author-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 20px;
    flex-grow: 1;
    /* アイコンを下部に押しやる */
}

.author-social {
    display: flex;
    gap: 12px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    /* アイコンを少し縮小 */
    height: 40px;
    background: #f0f0f0;
    color: #555;
    border-radius: 50%;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--color-primary-dark);
    color: #FFDF73;
    transform: translateY(-2px);
}

/* スマホ用の縦並び調整 */
@media screen and (max-width: 767px) {
    .author-profile-box {
        flex-direction: column;
        align-items: center;
    }

    .author-sidebar {
        width: 100%;
        margin-bottom: 20px;
    }

    .author-social {
        justify-content: center;
    }
}



/* =========================================
   記事本文内の見出し（h2, h3）のデザイン・余白調整
========================================= */
.single-content h2 {
    margin-top: 53px; 
    margin-bottom: 15px; 
    
    /* ▼ デザイン追加部分 ▼ */
    padding: 2px 4px 2px 1em; /* ボックスの内側に余白を作って文字を保護 */
    background-color: rgba(0, 81, 183, 0.08); /* テーマカラーの青緑を8%の濃さで透過した背景 */
    border-left: 5px solid var(--color-primary); /* 左側に濃い青緑のアクセント線 */
    font-size: 20px; /* 存在感を出すために少し文字を大きく */
    font-weight: bold;
}

.single-content h3 {
    margin-top: 42px;
    margin-bottom: 12px;
    
    /* ▼ デザイン追加部分 ▼ */
    padding: 2px 4px 2px 1em;
    background-color: rgba(0, 131, 143, 0.03); /* h2よりもさらに薄い背景 */
    border-bottom: 1px dashed var(--color-primary); /* 下線も足して区切りを明確に */
    font-size: 17px;
    font-weight: bold;
}


/* =========================================
   余白調整用 ユーティリティクラス
========================================= */
/* 要素の下に任意の余白を作る（margin-bottom） */
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mb-60 { margin-bottom: 60px; }
.mb-80 { margin-bottom: 80px; }

/* 要素の上に任意の余白を作る（margin-top） */
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }




/* =========================================
   記事装飾用 ユーティリティクラス
========================================= */
/* 太字 */
.bold {
    font-weight: bold;
}

/* 赤文字 */
.red {
    color: #D32F2F; /* 読みやすい少し落ち着いた赤 */
}

/* 赤太字 */
.red-bold {
    color: #D32F2F;
    font-weight: bold;
}

/* 青文字 */
.blue {
    color: #1976D2;
}

/* 黄色マーカー（文字の下半分にマーカーを引いたような装飾） */
.marker-yellow {
    background: linear-gradient(transparent 60%, #ffff66 60%);
    font-weight: bold;
}

/* 緑色マーカー（サイトのテーマカラーに合わせた緑マーカー） */
.marker-green {
    background: linear-gradient(transparent 60%, #a8e6cf 60%);
    font-weight: bold;
}

/* 注釈用の少し小さな文字 */
.text-small {
    font-size: 0.85em;
    color: #666;
}

/* 灰色文字（3段階） */
.gray-dark {
    color: #555555; /* 濃い灰色（少し目立たなくしたい文章に） */
}
.gray {
    color: #777777; /* 標準的な灰色（注釈や補足に） */
}
.gray-light {
    color: #999999; /* 薄い灰色（日付やメタ情報などに） */
}

/* 文字サイズ（3段階） ※基準の大きさ（16px）に対しての割合です */
.text-xs {
    font-size: 0.75em; /* かなり小さめ（約12px） */
}
.text-lg {
    font-size: 1.15em; /* 少し大きめ（約18.4px） */
}
.text-xl {
    font-size: 1.3em; /* かなり大きめ（約20.8px） */
}



/* =========================================
   記事本文内のリンク装飾
========================================= */
/* 記事本文（段落）の中にあるリンクの装飾 */
.single-content p a {
    color: #00838F; /* テーマカラーに合わせて統一感を出す */
    text-decoration: underline; 
    text-decoration-color: rgba(0, 131, 143, 0.3); 
    text-underline-offset: 3px; 
    font-weight: 500; /* ★追加：ほんの少し太字にする（標準は400、一番太いのが700） */
    font-size: 1em; /* ★追加：周りの文字と全く同じサイズを強制する */
    transition: all 0.3s ease; 
}

/* リンクにカーソルを合わせた時（PC）の装飾 */
.single-content p a:hover {
    color: #004D40; 
    text-decoration-color: #004D40; 
    background-color: rgba(0, 131, 143, 0.05); 
}




