@charset "utf-8";
/*
Theme Name: gud blog
Theme URI: https://www.icu.co.jp/
Author: ICU Inc.
Author URI: https://www.icu.co.jp/
Description: ICU自社用・クライアント向け標準WordPressブログテーマ。シンプル・クリーン・モダンなデザインで、CSS変数によるカスタマイズが容易。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gud-blog
*/

/* ==========================================================================
   共通（PC・SP両方に適用）
   ========================================================================== */

/* --------------------------------------------------------------------------
   カラーパレット — サイトの配色定義（将来的にクライアント別CSSで上書き）
   -------------------------------------------------------------------------- */

:root {
    /* --- ブランドカラー --- */
    --color-primary: #2563eb;        /* メインカラー（カテゴリ背景・検索ボタン・リンク・ページネーション等） */
    --color-primary-hover: #1d4ed8;  /* メインカラーのホバー時 */
    --color-accent: #f59e0b;         /* アクセントカラー（リンクホバー・ナビホバー等のオレンジ） */

    /* --- テキスト --- */
    --color-text: #1f2937;           /* 本文テキスト */
    --color-text-light: #6b7280;     /* 補助テキスト（日付・メタ情報・説明文等） */

    /* --- 背景 --- */
    --color-bg: #ffffff;             /* ページ背景 */
    --color-bg-secondary: #f9fafb;   /* セカンダリ背景（ウィジェット・H2見出し・テーブルヘッダ等） */


    /* --- ボーダー --- */
    --color-border: #e5e7eb;         /* 区切り線・枠線 */
    --color-border-hover: #9ca3af;   /* ボーダーのホバー時（ページネーション数字ボタン等） */

    /* --- 装飾 --- */
    --color-marker: #FFFF00;         /* テキストマーカー（蛍光ペン） */
    --color-code-bg: #f3f4f6;        /* コードブロック背景（ライトグレー） */
    --color-code-text: #1f2937;      /* コードブロック文字色（黒） */

    /* --- レイアウト・フォント --- */
    --font-sans: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', Meiryo, sans-serif;
    --content-width: 740px;
    --sidebar-width: 220px;
    --gap: 1.5rem;
    --border-radius: 4px;
}

/* --------------------------------------------------------------------------
   リセット・ベーススタイル
   -------------------------------------------------------------------------- */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

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

ul,
ol {
    padding-left: 1.5rem;
}

/* --------------------------------------------------------------------------
   ユーティリティ
   -------------------------------------------------------------------------- */

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* スキップリンク（フォーカス時のみ表示） */
.skip-link.screen-reader-text:focus {
    clip: auto;
    clip-path: none;
    height: auto;
    width: auto;
    position: fixed;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 999;
    padding: 0.5rem 1rem;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.9rem;
    border-radius: var(--border-radius);
}

/* --------------------------------------------------------------------------
   レイアウト（共通）
   -------------------------------------------------------------------------- */

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
}

.content-area {
    align-items: start;
}

/* サイドバーなし（フルワイド）時 */
.content-area.no-sidebar {
    grid-template-columns: 1fr;
    max-width: var(--content-width);
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   ヘッダー（共通）
   -------------------------------------------------------------------------- */

.site-header {
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-branding {
    flex-shrink: 0;
}

.site-logo-link {
    display: block;
    line-height: 1;
}

.site-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.site-title a {
    color: var(--color-text);
    text-decoration: none;
}

.site-title a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

.site-description {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-top: 0.1rem;
}

/* ヘッダーナビゲーション（共通） */
.header-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.header-nav-list a {
    display: block;
    padding: 0.4rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text);
    border-radius: var(--border-radius);
    transition: background-color 0.15s, color 0.15s;
    white-space: nowrap;
}

.header-nav-list a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

.header-nav-list a[target="_blank"]::after {
    content: '';
    display: inline-block;
    width: 0.65em;
    height: 0.65em;
    margin-left: 0.25em;
    vertical-align: baseline;
    background: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

/* --------------------------------------------------------------------------
   ドロワーメニュー（SP専用サイドスライド）
   -------------------------------------------------------------------------- */

/* PC View */
@media print, screen and (min-width: 650px) {
    .drawer-toggle,
    .drawer-overlay,
    .drawer-nav {
        display: none;
    }
}

/* Smart Phone View */
@media only screen and (max-width: 649px) {

    .drawer-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        width: 44px;
        height: 44px;
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        color: var(--color-text);
        line-height: 1;
    }

    .drawer-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 200;
        opacity: 0;
        transition: opacity 0.3s;
    }

    .drawer-overlay.is-open {
        display: block;
        opacity: 1;
    }

    .drawer-nav {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100%;
        background: var(--color-bg);
        z-index: 201;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }

    .drawer-nav.is-open {
        transform: translateX(0);
    }

    .drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.25rem;
        border-bottom: 1px solid var(--color-border);
    }

    .drawer-title {
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--color-text);
        text-decoration: none;
    }

    .drawer-title:hover {
        color: var(--color-accent);
        text-decoration: none;
    }

    .drawer-close {
        background: none;
        border: none;
        padding: 0.25rem;
        cursor: pointer;
        color: var(--color-text-light);
        line-height: 1;
    }

    .drawer-nav-list {
        list-style: none;
        padding: 0.5rem 0;
        margin: 0;
    }

    .drawer-nav-list li {
        border-bottom: 1px solid var(--color-border);
    }

    .drawer-nav-list a {
        display: block;
        padding: 0.85rem 1.25rem;
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--color-text);
        text-decoration: none;
    }

    .drawer-nav-list a:hover {
        background-color: var(--color-bg-secondary);
        color: var(--color-accent);
        text-decoration: none;
    }

    .drawer-nav-list a[target="_blank"]::after {
        content: '';
        display: inline-block;
        width: 0.65em;
        height: 0.65em;
        margin-left: 0.25em;
        vertical-align: baseline;
        background: currentColor;
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
        -webkit-mask-size: contain;
        mask-size: contain;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
    }
}

/* --------------------------------------------------------------------------
   右ドロワー（SP専用 — ブログ情報: カテゴリ・最近の投稿・月別アーカイブ）
   -------------------------------------------------------------------------- */

/* PC View */
@media print, screen and (min-width: 650px) {
    .drawer-right-toggle,
    .drawer-right {
        display: none;
    }
}

/* Smart Phone View */
@media only screen and (max-width: 649px) {

    .drawer-right-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        width: 44px;
        height: 44px;
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        color: var(--color-text);
        line-height: 1;
    }

    .drawer-right {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        height: 100%;
        background: var(--color-bg);
        z-index: 201;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }

    .drawer-right.is-open {
        transform: translateX(0);
    }

    .drawer-right .drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.25rem;
        border-bottom: 1px solid var(--color-border);
    }

    .drawer-right-close {
        background: none;
        border: none;
        padding: 0.25rem;
        cursor: pointer;
        color: var(--color-text-light);
        line-height: 1;
    }

    .drawer-right-section {
        padding: 1rem 1.25rem 0.5rem;
        border-bottom: 1px solid var(--color-border);
    }

    .drawer-right-section:last-child {
        border-bottom: none;
    }

    .drawer-right-heading {
        font-size: 0.8rem;
        font-weight: 700;
        color: var(--color-text-light);
        letter-spacing: 0.04em;
        margin-bottom: 0.5rem;
        padding-bottom: 0.35rem;
        border-bottom: 2px solid var(--color-primary);
    }

    .drawer-right-list {
        list-style: none;
        padding: 0;
        margin: 0 0 0.75rem;
    }

    .drawer-right-list li {
        border-bottom: 1px solid var(--color-border);
    }

    .drawer-right-list li:last-child {
        border-bottom: none;
    }

    .drawer-right-list a {
        display: block;
        padding: 0.55rem 0;
        font-size: 0.85rem;
        color: var(--color-text);
        text-decoration: none;
    }

    .drawer-right-list a:hover {
        color: var(--color-accent);
    }
}

/* --------------------------------------------------------------------------
   ブログヒーロー画像（共通）
   -------------------------------------------------------------------------- */

.blog-hero {
}

.blog-hero .container {
    padding-top: 0;
    padding-bottom: 0;
}

.blog-hero-image {
    height: auto;
    display: block;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   記事カード（共通）
   -------------------------------------------------------------------------- */

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* カード枠なし — 記事間を水平線で区切るフラットレイアウト */
.card {
    background-color: var(--color-bg);
    border: none;
    border-radius: 0;
    overflow: visible;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    transition: none;
}

.card:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.card:hover {
    box-shadow: none;
}

.card-inner {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.card-body {
    flex: 1;
    min-width: 0;
    order: -1;
}

.card-thumbnail {
    flex-shrink: 0;
    width: 200px;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.card-thumbnail img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    transition: transform 0.3s;
}

.card:hover .card-thumbnail img {
    transform: scale(1.02);
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-bottom: 0.6rem;
}

.card-category a {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    background-color: var(--color-primary);
    color: #fff;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    text-decoration: none;
}

.card-category a:hover {
    background-color: var(--color-primary-hover);
    text-decoration: none;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    padding-left: 0.75rem;
    border-left: 3px solid var(--color-primary);
}

.card-title a {
    color: var(--color-text);
    text-decoration: none;
}

.card-title a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

.card-excerpt {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    padding: 0.75rem 0 0;
    border-top: none;
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.read-more {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--color-primary);
    font-weight: 600;
}

.read-more:hover {
    color: var(--color-accent);
}

/* 「続きを読む」ボタン（<!--more--> タグ用 — 全文表示型トップページ等） */
.more-link-wrap {
    margin-top: 1.5rem;
    text-align: center;
}

.entry-content .more-link,
.more-link {
    display: inline-block;
    padding: 0.6rem 2rem;
    background-color: var(--color-accent);
    color: var(--color-bg);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.entry-content .more-link:hover,
.more-link:hover {
    opacity: 0.85;
    color: var(--color-bg);
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   個別記事（共通）
   -------------------------------------------------------------------------- */

.entry-header {
    margin-bottom: 2rem;
    padding-bottom: calc(1.5rem - 5px);
    border-bottom: 1px solid var(--color-border);
}

.entry-title {
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    padding: 0;
}

.entry-title a {
    color: var(--color-text);
    text-decoration: none;
}

.entry-title a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

.entry-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.entry-category-list {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.entry-category-list a {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    background-color: var(--color-primary);
    color: #fff;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    text-decoration: none;
}

.entry-category-list a:hover {
    background-color: var(--color-primary-hover);
    text-decoration: none;
    color: #fff;
}

.entry-thumbnail {
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

/* 本文スタイル（共通） */
.entry-content {
    font-size: 1rem;
    line-height: 1.9;
}

.entry-content h1 {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--color-text);
    margin: 2.5rem 0 1.5rem;
    padding: 0;
}

.entry-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--color-border);
    background-color: var(--color-bg-secondary);
}

.entry-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 1.75rem 0 0.75rem;
    padding-top: 2px;
    padding-bottom: calc(0.35rem - 3px);
    border-bottom: 1px solid var(--color-border);
}

.entry-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 1.5rem 0 0.5rem;
    display: inline-block;
    padding-bottom: calc(0.3rem - 4px);
    padding-right: 7px;
    border-bottom: 1px dashed var(--color-border);
}

.entry-content h4::after {
    content: '';
    display: block;
}

.entry-content h5 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 1.25rem 0 0.5rem;
    color: var(--color-text);
    background-color: var(--color-bg-secondary);
    padding: 0.3rem 0.5rem;
    display: inline-block;
}

.entry-content h5::after {
    content: '';
    display: block;
}

.entry-content p {
    margin-bottom: 1.4rem;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.4rem;
    padding-left: 1.75rem;
}

.entry-content li {
    margin-bottom: 0.4rem;
}

.entry-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--color-accent);
    background-color: var(--color-bg-secondary);
    color: var(--color-text-light);
    font-style: italic;
}

.entry-content code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.875em;
    background-color: var(--color-bg-secondary);
    padding: 0.1em 0.4em;
    border-radius: 3px;
    border: 1px solid var(--color-border);
}

.entry-content pre {
    position: relative;
    background-color: var(--color-code-bg);
    color: var(--color-code-text);
    border: 1px solid var(--color-border);
    padding: 1.25rem 1.5rem;
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin-bottom: 1.4rem;
    font-size: 0.875rem;
    line-height: 1.6;
}

.entry-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

/* コードブロック コピーボタン（ホバー時に表示） */
.code-copy-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s;
    color: var(--color-text-light);
    padding: 0;
    line-height: 1;
}

.entry-content pre:hover .code-copy-btn {
    opacity: 1;
}

.code-copy-btn:hover {
    color: var(--color-text);
    border-color: var(--color-border-hover);
}

.code-copy-btn.is-copied {
    color: #16a34a;
    border-color: #16a34a;
}

/* Gutenberg テキスト配置クラス */
.has-text-align-left {
    text-align: left;
}

.has-text-align-center {
    text-align: center;
}

.has-text-align-right {
    text-align: right;
}

/* 横線（区切り線）— Classic / Gutenberg 共通 */
.entry-content hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 1.4rem 0;
}

/* 黄色マーカー（WordPress Gutenberg の Ctrl+U は span[style] で出力される） */
.entry-content u,
.entry-content span.text_underline,
.entry-content span[style*="text-decoration: underline"] {
    text-decoration: none !important;
    background: linear-gradient(transparent 60%, var(--color-marker) 0%);
}

.entry-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

.entry-content img {
    border-radius: var(--border-radius);
    margin: 1rem 0;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.4rem;
    font-size: 0.9rem;
}

.entry-content th,
.entry-content td {
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--color-border);
    text-align: left;
}

.entry-content th {
    background-color: var(--color-bg-secondary);
    font-weight: 600;
}

/* タグ */
.entry-tags {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.entry-tags .tags-label {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-right: 0.5rem;
}

.entry-tags a {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin: 0.2rem 0.2rem 0.2rem 0;
}

.entry-tags a:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    text-decoration: none;
}

/* ===== 関連記事 ===== */
.related-posts {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.related-posts-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-left: 0.75rem;
    border-left: 3px solid var(--color-primary);
}

.related-posts-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.related-post-card {
    border-bottom: 1px solid var(--color-border);
}

.related-post-card:last-child {
    border-bottom: none;
}

.related-post-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    text-decoration: none;
    color: var(--color-text);
    transition: background 0.15s;
}

.related-post-link:hover {
    text-decoration: none;
}

.related-post-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 56px;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.related-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post-info {
    flex: 1;
    min-width: 0;
}

.related-post-title {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--color-text);
}

.related-post-link:hover .related-post-title {
    color: var(--color-accent);
}

.related-post-date {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin-top: 0.25rem;
}

/* 前後の記事ナビゲーション（共通） */
.post-navigation {
    margin-top: 2.5rem;
    margin-bottom: 25px;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

/* WordPress が出力する中間ラッパーにグリッドを設定 */
.post-navigation .nav-links {
    display: grid;
    gap: 0.75rem;
}

.nav-previous,
.nav-next {
    padding: 0.6rem 0.75rem;
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    min-width: 0;
    overflow: hidden;
}

.nav-label {
    display: block;
    font-size: 0.7rem;
    color: var(--color-text-light);
    margin-bottom: 0.15rem;
}

.nav-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-previous a:hover .nav-title,
.nav-next a:hover .nav-title {
    color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   アーカイブ・検索 ページタイトル（共通）
   -------------------------------------------------------------------------- */

.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.archive-description,
.page-description {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-top: 0.5rem;
}

/* 検索フォーム（検索結果ページ） */
.search-form-wrapper {
    margin-bottom: 2rem;
}

.search-form-wrapper .search-form {
    display: flex;
    gap: 0.25rem;
    max-width: 480px;
    width: 100%;
}

.search-form-wrapper .search-field {
    flex: 1;
    min-width: 0;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
}

.search-form-wrapper .search-field:focus {
    outline: none;
    border-color: var(--color-primary);
}

.search-form-wrapper .search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    padding: 0;
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.search-form-wrapper .search-submit:hover {
    background-color: var(--color-primary-hover);
}

.search-form-wrapper .search-submit svg {
    display: block;
}

/* --------------------------------------------------------------------------
   ページネーション（共通）
   -------------------------------------------------------------------------- */

.pagination {
    margin-top: 2.5rem;
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
}

.pagination .nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

/* A-02 アウトラインスタイル: 数字ページボタン共通 */
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    color: var(--color-text);
    background: var(--color-bg);
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

/* 数字ボタン: ホバー */
.pagination .page-numbers:hover {
    background: var(--color-bg-secondary);
    border-color: var(--color-border-hover);
    text-decoration: none;
}

/* 現在ページ: 青背景白文字 */
.pagination .page-numbers.current {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    font-weight: 700;
}

/* 三点リーダー */
.pagination .page-numbers.dots {
    border: none;
    background: transparent;
    padding: 0 4px;
    color: var(--color-text-light);
}

/* 前へ・次へボタン: 青ボーダー・青文字 */
.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    color: var(--color-primary);
    border-color: var(--color-primary);
    font-weight: 600;
    white-space: nowrap;
}

/* 前へ・次へボタン: ホバーで青背景白文字 */
.pagination .page-numbers.prev:hover,
.pagination .page-numbers.next:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   サイドバー（共通）
   -------------------------------------------------------------------------- */

.widget {
    margin-bottom: 2rem;
    padding: 1.25rem;
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
}

.widget:last-child {
    margin-bottom: 0;
}

/* ウィジェットタイトル */
.widget-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary);
}

/* ウィジェットリスト */
.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.875rem;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: var(--color-text);
}

.widget ul li a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

/* 月別アーカイブ — 年別アコーディオン */
.archive-year {
    margin-bottom: 0.25rem;
}

.archive-year:last-child {
    margin-bottom: 0;
}

.archive-year-toggle {
    display: flex;
    align-items: center;
    gap: calc(0.4rem + 3px);
    width: 100%;
    padding: 0.45rem 0.25rem;
    background: none;
    border: none;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-text);
    cursor: pointer;
    text-align: left;
    font-family: var(--font-sans);
}

.archive-year-toggle:hover {
    color: var(--color-accent);
}

.archive-year-arrow {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--color-text-light);
    border-bottom: 2px solid var(--color-text-light);
    transform: rotate(-45deg) translateY(-2px);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.archive-year-toggle.is-open .archive-year-arrow {
    transform: rotate(45deg) translateY(-5px);
}

.archive-year-toggle:hover .archive-year-arrow {
    border-color: var(--color-accent);
}

.archive-month-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.archive-month-list li {
    padding: 0.25rem 0.25rem 0.25rem 0.25rem;
    margin-left: calc(1.6rem + 3px);
    border-bottom: 1px solid var(--color-border);
    font-size: 0.825rem;
}

.archive-month-list li:last-child {
    border-bottom: none;
}

.archive-month-list a {
    color: var(--color-text);
}

.archive-month-list a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

/* プロフィールウィジェット（E-E-A-T対策） */
.widget-profile {
    text-align: center;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
}

.profile-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.profile-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    border-bottom: none;
}

.profile-title {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-bottom: 0.75rem;
}

.profile-bio {
    font-size: 0.8rem;
    line-height: 1.7;
    color: var(--color-text);
    text-align: left;
}

.profile-schedule {
    font-size: 0.75rem;
    color: var(--color-text-light);
    text-align: center;
    margin-top: 0.75rem;
}

.profile-links {
    list-style: none;
    padding: 0;
    margin-top: 0.75rem;
    border-top: 1px solid var(--color-border);
    padding-top: 0.75rem;
}

.profile-links li {
    font-size: 0.8rem;
    padding: 0.2rem 0;
}

.profile-links a {
    color: var(--color-primary);
}

.profile-links a[target="_blank"]::after {
    content: '';
    display: inline-block;
    width: 0.7em;
    height: 0.7em;
    margin-left: 0.3em;
    vertical-align: baseline;
    background: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.profile-links a:hover {
    color: var(--color-accent);
}

/* サイドバー内検索フォーム */
.widget .search-form {
    display: flex;
    gap: 0.25rem;
}

.widget .search-field {
    flex: 1;
    min-width: 0;
    padding: 0.35rem 0.5rem;
    font-size: 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    background-color: var(--color-bg);
    color: var(--color-text);
}

.widget .search-field:focus {
    outline: none;
    border-color: var(--color-primary);
}

.widget .search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    padding: 0;
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.widget .search-submit:hover {
    background-color: var(--color-primary-hover);
}

.widget .search-submit svg {
    display: block;
}

/* --------------------------------------------------------------------------
   コメント（共通）
   -------------------------------------------------------------------------- */

.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.comments-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment {
    margin-bottom: 1.5rem;
}

.comment-body {
    padding: 1.25rem;
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.comment-author img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.comment-author .fn {
    font-weight: 600;
    font-size: 0.9rem;
    font-style: normal;
}

.comment-metadata {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.comment-content {
    font-size: 0.9rem;
    line-height: 1.7;
}

.comment-content p {
    margin-bottom: 0.75rem;
}

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

.reply a {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-top: 0.5rem;
    display: inline-block;
}

.reply a:hover {
    color: var(--color-accent);
}

/* 子コメント */
.children {
    list-style: none;
    padding-left: 1.5rem;
    margin-top: 1rem;
}

/* コメントフォーム */
.comment-respond {
    margin-top: 2rem;
}

.comment-reply-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.comment-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
    font-family: var(--font-sans);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    background-color: var(--color-bg);
    color: var(--color-text);
    transition: border-color 0.15s;
    margin-bottom: 1rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.comment-form textarea {
    min-height: 140px;
    resize: vertical;
}

.comment-form .form-submit {
    margin-bottom: 0;
}

.comment-form .submit {
    padding: 0.6rem 1.5rem;
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s;
}

.comment-form .submit:hover {
    background-color: var(--color-primary-hover);
}

.comment-notes {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   404・記事なし（共通）
   -------------------------------------------------------------------------- */

.error-404,
.no-results {
    text-align: center;
    padding: 4rem 1rem;
}

.error-404 .page-title,
.no-results .page-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-404 .page-content,
.no-results .page-content {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

.error-404 .search-form,
.no-results .search-form {
    display: inline-flex;
    gap: 0.25rem;
    max-width: 400px;
    width: 100%;
}

.error-404 .search-field,
.no-results .search-field {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-family: var(--font-sans);
    color: var(--color-text);
}

.error-404 .search-submit,
.no-results .search-submit {
    padding: 0.5rem 1rem;
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   フッター（共通）
   -------------------------------------------------------------------------- */

.site-footer {
    background-color: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.site-footer a {
    color: var(--color-text-light);
}

.site-footer a:hover {
    color: var(--color-accent);
}


/* ==========================================================================
   PC View
   ========================================================================== */

@media print, screen and (min-width: 650px) {

    /* レイアウト */
    .site {
        min-width: 1048px;
    }

    .container {
        max-width: calc(var(--content-width) + var(--sidebar-width) + var(--gap) + 4rem);
        min-width: 1000px;
        margin: 0 auto;
        padding: 0 1.5rem;
    }

    .content-area {
        display: grid;
        grid-template-columns: 756px var(--sidebar-width);
        gap: var(--gap);
        padding: 0;
    }

    /* ヘッダー */
    .site-header {
        height: 54px;
    }

    .site-header .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        height: 54px;
        padding-top: 2px;
        padding-bottom: 2px;
        max-width: calc(1000px + 3rem);
    }

    .site-logo-default {
        height: 50px;
        width: auto;
        display: block;
    }

    /* ヘッダーナビゲーション — 横並び */
    .header-nav {
        display: flex;
        align-items: center;
    }

    .header-nav-list {
        display: flex;
        gap: 0.25rem;
    }

    /* ブログヒーロー画像 */
    .blog-hero {
        margin-top: 0;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .blog-hero-image {
        width: 1000px;
    }

    /* SP用ヒーロー画像 — PC時は非表示 */
    .blog-hero-sp {
        display: none;
    }

    /* 個別記事メインエリア — 四辺ボーダーで囲む */
    .site-main {
        border: 1px solid var(--color-border);
        padding: 15px 2rem 2rem;
    }

    /* トップページ全文表示型 — 記事ごとにボーダーで分割 */
    .site-main.home-full-view {
        border: none;
        padding: 0;
    }

    .site-main.home-full-view > article {
        border: 1px solid var(--color-border);
        padding: 15px 2rem 2rem;
        margin-bottom: 20px;
    }

    /* 記事タイトル */
    .entry-title {
        font-size: 1.85rem;
    }

    /* 前後ナビゲーション — 2カラム */
    .post-navigation .nav-links {
        grid-template-columns: 1fr 1fr;
    }

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

    /* サイドバー — 本文と一緒にスクロール */
    .sidebar {
        position: static;
    }

    /* フッター */
    .site-footer {
        height: 50px;
    }

}


/* ==========================================================================
   Smart Phone View
   ========================================================================== */

@media only screen and (max-width: 649px) {

    /* レイアウト — 1カラム化 */
    .container {
        padding: 0 10px;
    }

    .content-area {
        display: grid;
        grid-template-columns: 1fr;
        padding: 10px 0;
    }

    /* サイドバー — 通常フロー */
    .sidebar {
        position: static;
    }

    /* ヘッダー — SP版: 64px固定、ロゴ中央、左に家アイコン */
    .site-header {
        height: 64px;
    }

    .site-header .container {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        height: 64px;
        max-width: 100%;
        padding: 0 10px;
    }

    /* ロゴ — 中央配置 */
    .site-logo-default {
        height: 36px;
        width: auto;
        display: block;
    }

    /* ヘッダーナビゲーション — SP時は非表示（ドロワーに移行） */
    .header-nav {
        display: none;
    }

    /* ブログヒーロー画像 — SP用に切り替え */
    .blog-hero {
        margin-top: 0;
    }

    .blog-hero .container {
        padding: 0;
        max-width: 100%;
    }

    /* PC用ヒーロー画像 — SP時は非表示 */
    .blog-hero-pc {
        display: none;
    }

    /* SP用ヒーロー画像 — SP時は表示 */
    .blog-hero-sp {
        display: block;
        max-width: 100%;
    }

    /* 個別記事メインエリア — ボーダー解除 */
    .site-main {
        border: none;
        padding: 10px 0 0;
    }

    /* トップページ全文表示型 — SP: 記事ごとに区切り線 */
    .site-main.home-full-view > article {
        border-bottom: 1px solid var(--color-border);
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .site-main.home-full-view > article:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

    /* 記事タイトル */
    .entry-title {
        font-size: 1.4rem;
    }

    /* 前後ナビゲーション — 1カラム化 */
    .post-navigation .nav-links {
        grid-template-columns: 1fr;
    }

    .nav-next {
        text-align: left;
    }

    /* ページネーション */
    .pagination {
        margin-bottom: 20px;
    }

    /* 前後ナビゲーション */
    .post-navigation {
        margin-bottom: 20px;
    }

    /* プロフィール — 2カラム（写真左・名前+紹介文右） */
    .widget-profile {
        text-align: left;
    }

    .profile-main {
        display: flex;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .profile-avatar {
        width: 80px;
        height: 80px;
        margin: 10px 0 0;
        flex-shrink: 0;
    }

    .profile-photo {
        width: 80px;
        height: 80px;
    }

    .profile-name {
        font-size: 1rem;
        margin-bottom: 0.2rem;
    }

    .profile-bio {
        font-size: 0.75rem;
        line-height: 1.6;
    }

    .profile-schedule {
        text-align: left;
    }

    .profile-links {
        text-align: center;
        margin-top: 5px;
        margin-bottom: 5px;
    }

    /* カード — SP: 右上に小サムネ、本文は回り込み解除で全幅 */
    .card-inner {
        display: block;
    }

    .card-thumbnail {
        float: right;
        width: 70px;
        margin: 0 0 8px 10px;
    }

    .card-thumbnail img {
        width: 70px;
        height: 70px;
    }

    .card-excerpt {
        clear: both;
    }

    .card-title {
        font-size: 1rem;
    }

    .card-excerpt {
        -webkit-line-clamp: 2;
    }

    /* フッター */
    .site-footer {
        height: auto;
        padding: 1rem;
    }

}

/* ==========================================================================
   画像モーダル（ライトボックス）
   ========================================================================== */

/* --- オーバーレイ --- */
#gud-modal-overlay {
    display: none;              /* JSで .is-active を付与して表示 */
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.9);   /* Colorboxと同等の暗さ */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#gud-modal-overlay.is-active {
    display: flex;
    animation: gud-modal-fadein 0.3s ease forwards;
}

@keyframes gud-modal-fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* --- モーダル本体（画像コンテナ） --- */
#gud-modal {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 90vh;
}

/* --- 表示画像 --- */
#gud-modal-img {
    display: block;
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 2px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    transition: opacity 0.2s ease;
}

/* --- ×（閉じる）ボタン --- */
#gud-modal-close {
    position: fixed;
    top: 16px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 0.85;
    transition: opacity 0.2s ease;
    z-index: 10001;
}

#gud-modal-close:hover,
#gud-modal-close:focus {
    opacity: 1;
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}

/* --- 前へ / 次へ 矢印ボタン（共通） --- */
#gud-modal-prev,
#gud-modal-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 64px;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 0.75;
    transition: opacity 0.2s ease, background 0.2s ease;
    z-index: 10001;
    border-radius: 2px;
}

#gud-modal-prev:hover,
#gud-modal-prev:focus,
#gud-modal-next:hover,
#gud-modal-next:focus {
    opacity: 1;
    background: rgba(0, 0, 0, 0.65);
    outline: none;
}

#gud-modal-prev {
    left: 8px;
}

#gud-modal-next {
    right: 8px;
}

/* --- 記事本文内の .gud-lightbox リンク（装飾なし） --- */
a.gud-lightbox {
    display: inline-block;
    cursor: zoom-in;
    line-height: 0;   /* インライン画像の余白を除去 */
    text-decoration: none;
}

/* --- SP対応（768px以下） --- */
@media screen and (max-width: 768px) {

    /* 矢印ボタン: タッチしやすいサイズに拡大 */
    #gud-modal-prev,
    #gud-modal-next {
        width: 44px;
        height: 56px;
        font-size: 1.2rem;
        background: rgba(0, 0, 0, 0.55);
        opacity: 0.9;
    }

    #gud-modal-prev {
        left: 0;
    }

    #gud-modal-next {
        right: 0;
    }

    /* ×ボタン: SP用位置調整 */
    #gud-modal-close {
        top: 8px;
        right: 8px;
        font-size: 1.8rem;
    }

    /* 画像: SP幅いっぱいを活用 */
    #gud-modal-img {
        max-width: 100vw;
        max-height: 85vh;
    }
}
