/**
 * Public Styles
 *
 * @package Gijiroku_Blog_Converter
 * @since 1.0.0
 */

/* ============================================================
   設定値（カスタマイズ可能）
   ============================================================ */

/* コンテナ設定 */
/* - max-width: コンテンツの最大幅 */
/* - margin: 中央配置 */

/* 動画ボタン設定 */
/* - margin: ボタンの上下余白 */
/* - padding: ボタン内側の余白 */
/* - background-color: ボタン背景色 */
/* - color: ボタンテキスト色 */
/* - border-radius: ボタン角丸 */
/* - font-weight: ボタンフォント太さ */

/* YouTube埋め込み設定 */
/* - max-width: 最大幅（PC表示時） */
/* - margin: 上下左右の余白（右寄せ） */

/* コンテンツエリア設定 */
/* - padding: コンテンツ内側の余白 */

/* 目次リンク設定 */
/* - padding: リンク内側の余白 */
/* - border-radius: リンク角丸 */
/* - font-size: リンクフォントサイズ */
/* - line-height: リンク行間 */

/* 見出し設定 */
/* - margin-top: 見出し上の余白 */
/* - margin-bottom: 見出し下の余白 */
/* - padding-bottom: 見出し内側下余白 */
/* - font-weight: フォント太さ */

/* チャットバブル設定（質問者・答弁者共通） */
/* - gap: アイコンと吹き出しの間隔 */
/* - margin: 吹き出し上下の余白 */
/* - max-width: 吹き出しの最大幅（％） */
/* - padding: 吹き出し内側の余白 */
/* - line-height: 吹き出し内テキストの行間 */
/* - text-align: テキスト揃え */

/* チャットバブル三角形設定 */
/* - left/right: 三角形の位置 */
/* - top: 三角形の上からの位置 */
/* - border-width: 三角形のサイズ */

/* 話者名設定 */
/* - font-weight: 話者名フォント太さ */
/* - margin-bottom: 話者名下余白 */
/* - padding-bottom: 話者名内側下余白 */
/* - border-bottom: 話者名下ボーダー */
/* - opacity: 話者名透明度 */
/* - font-size: 話者名フォントサイズ */

/* 段落間隔設定 */
/* - margin-top: 段落間の余白 */

/* TOCアコーディオン設定 */
/* - position: sticky（固定表示） */
/* - top: 上からの位置 */
/* - margin: 上下の余白 */
/* - border-radius: 角丸 */
/* - z-index: 重なり順 */

/* TOCトグルボタン設定 */
/* - padding: ボタン内側の余白 */
/* - font-size: ボタンフォントサイズ */
/* - font-weight: ボタンフォント太さ */

/* TOCタイトル・会議名設定 */
/* - font-size: フォントサイズ */
/* - font-weight: フォント太さ */

/* TOCアイコン設定 */
/* - margin-right: アイコン右余白 */
/* - width/height: アイコンサイズ */

/* アバター設定 */
/* - width/height: アバターサイズ */
/* - margin-bottom: アバター下余白 */
/* - border-radius: 角丸（50%で円形） */
/* - border: ボーダー太さと色 */

/* アーカイブページ設定 */
/* - max-width: コンテナ最大幅 */
/* - padding: コンテナ内側余白 */
/* - margin-bottom: ヘッダー下余白 */
/* - border-bottom: ヘッダー下ボーダー */
/* - font-size: タイトル/日付フォントサイズ */
/* - gap: リストアイテム間隔 */
/* - border-radius: アイテム角丸 */

/* ============================================================
   レイアウト（固定）
   ============================================================ */

/* Section Visibility Control */
/* Hide all sections by default on single pages (prevents layout shift during section toggle) */
body.single-pmc_minutes .pmc-question {
    display: none;
}

/* Show all sections when no hash or when explicitly set */
body.single-pmc_minutes.pmc-show-all-sections .pmc-question {
    display: block;
}

/* Container */
.pmc-container {
    position: relative;
    max-width: 900px;  /* コンテンツ最大幅 */
    margin: 0 auto;
    font-family: inherit;
}

/* Header */
.pmc-header {
    width: 100%;
    background: var(--gpr-bg-gray);
    padding: 30px 20px;
    margin: 0 0 40px 0;
    border-bottom: 1px solid var(--gpr-border);
}

/* Post Title */
.pmc-post-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 auto 20px auto;
    max-width: 1200px;
    color: var(--gpr-text);
}

/* Post Meta Information */
.pmc-post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    margin: 0 auto;
    max-width: 1200px;
    font-size: 14px;
    color: var(--gpr-text-light);
    background: var(--gpr-bg);
    border-radius: 4px;
}

.pmc-post-date {
    font-weight: 500;
}

.pmc-meta-separator {
    color: var(--gpr-border);
}

.pmc-post-category {
    font-weight: 500;
    color: var(--gpr-primary);
}

/* Video Button */
.pmc-video-button-wrapper {
    margin: 20px 0;  /* ボタン上下余白 */
    text-align: center;
}

.pmc-video-button {
    display: inline-block;
    padding: 12px 24px;  /* ボタン内側余白 */
    background-color: var(--gpr-primary-bg);  /* ボタン背景色 */
    color: var(--gpr-text);  /* ボタンテキスト色 */
    text-decoration: none;
    border-radius: 4px;  /* ボタン角丸 */
    font-weight: 600;  /* ボタンフォント太さ */
    transition: background-color 0.2s;
}

.pmc-video-button:hover {
    background-color: var(--gpr-primary-bg);
    color: var(--gpr-text);
}

/* YouTube Embed */
.pmc-youtube-wrapper {
    margin: 20px auto 20px 0;  /* 上下余白、右寄せ */
    max-width: 375px;  /* PC表示時の最大幅 */
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

/* Fallback for older browsers */
@supports not (aspect-ratio: 16 / 9) {
    .pmc-youtube-wrapper {
        position: relative;
        padding-bottom: 56.25%; /* 16:9 aspect ratio */
        height: 0;
    }

    .pmc-youtube-wrapper iframe {
        position: absolute;
        top: 0;
        left: 0;
    }
}

.pmc-youtube-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Mobile: Full width */
@media (max-width: 1024px) {
    .pmc-youtube-wrapper {
        max-width: 100%;
        margin: 15px 0;
    }
}

/* Content Area */
.pmc-content {
    padding: 20px;  /* コンテンツ内側余白 */
    max-width: 100%;
}

/* Tags */
.pmc-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
    justify-content: center;
}

.pmc-tag-badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 500;
    color: var(--gpr-text-light);
    background: var(--gpr-bg-gray);
    border-radius: 3px;
    line-height: 1.4;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.pmc-tag-badge:hover {
    background: var(--gpr-border);
    color: var(--gpr-text);
}

/* TOC Navigation (Next Topic Link) */
.pmc-toc-navigation {
    margin-top: 40px;
    padding: 20px;
    text-align: center;
    background: var(--gpr-bg-gray);
    border-radius: 8px;
    border: 1px solid var(--gpr-border);
}

.pmc-toc-nav-link {
    display: inline-block;
    padding: 12px 24px;
    background: var(--gpr-primary-bg);
    color: var(--gpr-text);
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pmc-toc-nav-link:hover {
    background: var(--gpr-primary-bg);
    color: var(--gpr-text);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.pmc-toc-nav-label {
    font-weight: 500;
    opacity: 0.9;
}

.pmc-toc-nav-heading {
    font-weight: 700;
}

.pmc-toc-nav-all {
    background: var(--gpr-text-light);
}

.pmc-toc-nav-all:hover {
    background: var(--gpr-text-light);
}

/* Post Navigation (Next/Previous) */
.pmc-post-navigation {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--gpr-border);
}

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

.pmc-nav-previous,
.pmc-nav-next {
    flex: 1;
    max-width: 48%;
}

.pmc-nav-previous a,
.pmc-nav-next a {
    display: block;
    padding: 12px 16px;
    background: var(--gpr-bg-gray);
    border-radius: 8px;
    text-decoration: none;
    color: var(--gpr-text);
    transition: all 0.3s ease;
    border: 1px solid var(--gpr-border);
    font-size: 12px;
    line-height: 1.6;
}

.pmc-nav-previous a:hover,
.pmc-nav-next a:hover {
    background: #fff;
    border-color: var(--gpr-primary);
    box-shadow: 0 2px 8px rgba(34, 113, 177, 0.1);
}

.pmc-nav-label {
    font-weight: 500;
    color: var(--gpr-primary);
    display: inline;
}

.pmc-nav-arrow {
    font-weight: bold;
    display: inline;
}

.pmc-nav-title {
    color: var(--gpr-text-light);
    display: block;
    margin-top: 4px;
    line-height: 1.5;
}

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

/* Mobile Adjustments */
@media (max-width: 1024px) {
    .pmc-content {
        padding: 15px;  /* モバイル時余白 */
    }

    /* TOC navigation on mobile */
    .pmc-toc-navigation {
        display: block;
        margin-top: 30px;
        padding: 15px;
    }

    .pmc-toc-nav-link {
        font-size: 14px;
        padding: 10px 20px;
    }

    /* Post navigation on mobile */
    .pmc-nav-links {
        flex-direction: column;
    }

    .pmc-nav-previous,
    .pmc-nav-next {
        max-width: 100%;
    }

    .pmc-nav-previous a,
    .pmc-nav-next a {
        padding: 8px 12px;
        font-size: 11px;
    }
}

/* Table of Contents */
.pmc-toc {
    padding: 20px;  /* 目次内側余白 */
    border-left: 1px solid var(--gpr-border);
    border-right: 1px solid var(--gpr-border);
    border-bottom: 1px solid var(--gpr-border);
}

.pmc-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pmc-toc li {
    margin-bottom: 0;
}

.pmc-toc a {
    display: block;
    padding: 8px 12px;  /* リンク内側余白 */
    color: var(--gpr-text);
    text-decoration: none;
    border-radius: 4px;  /* リンク角丸 */
    transition: background-color 0.2s, color 0.2s;
    font-size: 14px;  /* リンクフォントサイズ */
    line-height: 1.5;  /* リンク行間 */
}

.pmc-toc a:hover {
    background-color: var(--gpr-primary-bg);
    color: var(--gpr-text);
}

.pmc-toc a:focus {
    outline: 2px solid var(--gpr-primary);
    outline-offset: 2px;
    color: var(--gpr-text);
}

.pmc-toc a.active {
    background-color: var(--gpr-primary-bg);
    color: var(--gpr-text);
    font-weight: 600;
}

/* Headings */
.pmc-heading {
    margin-top: 100px;  /* 見出し上余白 */
    margin-bottom: 20px;  /* 見出し下余白 */
    padding-bottom: 10px;  /* 見出し内側下余白 */
    border-bottom: 2px solid var(--gpr-primary);
}

.pmc-heading:first-of-type {
    margin-top: 40px;  /* 最初の見出しの上余白 */
}

.pmc-heading h2 {
    font-size: 1.5em;
    color: var(--gpr-text);
    font-weight: 600 !important;  /* フォント太さ */
    margin: 0;
}

.pmc-container .pmc-content h2.pmc-heading {
    font-weight: 600 !important;
}

/* Chat Bubbles - Questioner (LEFT) */
.pmc-chat-user {
    display: flex;
    align-items: flex-start;
    gap: 18px;  /* アイコンと吹き出しの間隔 */
    margin: 28px 0;  /* 吹き出し上下余白 */
    clear: both;
}

.pmc-chat-user .pmc-avatar {
    flex-shrink: 0;
}

.pmc-chat-user .pmc-speaker-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 75%;  /* 吹き出し最大幅 */
}

.pmc-chat-user .bubble {
    position: relative;
    display: inline-block;
    background: var(--gpr-primary-bg);
    color: var(--gpr-text);
    padding: 14px 18px;  /* 吹き出し内側余白 */
    border-radius: 18px;
    max-width: 100%;
    word-wrap: break-word;
    line-height: 1.6;  /* テキスト行間 */
    font-size: 0.95em;
    text-align: justify;  /* テキスト揃え */
}

.pmc-chat-user .bubble::before {
    content: '';
    position: absolute;
    left: -7px;  /* 三角形左位置 */
    top: 18px;  /* 三角形上位置 */
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 10px 10px 0;  /* 三角形サイズ */
}

.pmc-chat-user .bubble .pmc-speaker-name {
    font-weight: 700;  /* 話者名フォント太さ */
    margin-bottom: 8px;  /* 話者名下余白 */
    padding-bottom: 6px;  /* 話者名内側下余白 */
    border-bottom: 1px solid;  /* 話者名下ボーダー */
    opacity: 0.9;  /* 話者名透明度 */
    font-size: 14px;  /* 話者名フォントサイズ */
}

.pmc-chat-user .bubble p {
    margin: 0;
}

.pmc-chat-user .bubble p + p {
    margin-top: 0.8em;  /* 段落間余白 */
}

/* Chat Bubbles - Responder (RIGHT) */
.pmc-chat-responder {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 18px;  /* アイコンと吹き出しの間隔 */
    margin: 28px 0;  /* 吹き出し上下余白 */
    clear: both;
}

.pmc-chat-responder .pmc-responder-icon {
    flex-shrink: 0;
    order: 2;
}

.pmc-chat-responder .bubble {
    position: relative;
    display: inline-block;
    background: var(--gpr-secondary-bg);
    color: var(--gpr-text);
    padding: 14px 18px;  /* 吹き出し内側余白 */
    border-radius: 18px;
    max-width: 75%;  /* 吹き出し最大幅 */
    word-wrap: break-word;
    line-height: 1.6;  /* テキスト行間 */
    font-size: 0.95em;
    order: 1;
    text-align: justify;  /* テキスト揃え */
}

.pmc-chat-responder .bubble::before {
    content: '';
    position: absolute;
    right: -7px;  /* 三角形右位置 */
    top: 18px;  /* 三角形上位置 */
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 10px;  /* 三角形サイズ */
}

.pmc-chat-responder .bubble .pmc-speaker-name {
    font-weight: 700;  /* 話者名フォント太さ */
    margin-bottom: 8px;  /* 話者名下余白 */
    padding-bottom: 6px;  /* 話者名内側下余白 */
    border-bottom: 1px solid;  /* 話者名下ボーダー */
    opacity: 0.9;  /* 話者名透明度 */
    font-size: 14px;  /* 話者名フォントサイズ */
}

.pmc-chat-responder .bubble p {
    margin: 0;
}

.pmc-chat-responder .bubble p + p {
    margin-top: 0.8em;  /* 段落間余白 */
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .pmc-chat-user .pmc-speaker-wrapper,
    .pmc-chat-responder .bubble {
        max-width: 85%;  /* タブレット時最大幅 */
    }

    .pmc-chat-user .bubble,
    .pmc-chat-responder .bubble {
        padding: 12px 16px;  /* タブレット時内側余白 */
        font-size: 0.9em;
    }

    .pmc-chat-user {
        gap: 10px;  /* タブレット時アイコン間隔 */
    }

    .pmc-heading {
        margin-top: 30px;  /* タブレット時見出し上余白 */
    }

    .pmc-heading h2 {
        font-size: 1.3em;
    }
}

@media (max-width: 480px) {
    .pmc-chat-user .pmc-speaker-wrapper,
    .pmc-chat-responder .bubble {
        max-width: 90%;  /* スマホ時最大幅 */
    }

    .pmc-chat-user .bubble,
    .pmc-chat-responder .bubble {
        padding: 10px 14px;  /* スマホ時内側余白 */
        font-size: 0.9em;
    }

    .pmc-chat-user {
        gap: 8px;  /* スマホ時アイコン間隔 */
    }

    .pmc-content {
        padding: 10px;  /* スマホ時コンテンツ余白 */
    }
}

/* Accessibility */
.pmc-drawer-toggle:focus-visible,
.pmc-toc a:focus-visible {
    outline: 3px solid var(--gpr-primary);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .pmc-sidebar-toc {
        border: 1px solid #000;
    }

    .pmc-chat-user .bubble,
    .pmc-chat-responder .bubble {
        box-shadow: none;
        border: 1px solid var(--gpr-border);
    }
}

/* Loading State */
.pmc-loading-indicator {
    text-align: center;
    padding: 40px;
    color: var(--gpr-text-light);
}

.pmc-loading-indicator::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--gpr-primary);
    border-radius: 50%;
    animation: pmc-spin 1s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes pmc-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Sidebar TOC */
.pmc-sidebar-toc {
    position: sticky;
    top: 20px;
    padding: 20px;
    background: var(--gpr-bg-gray);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* TOC Toggle Button */
.pmc-toc-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 0;
    margin: 0;
    background: transparent;
    border: none;
    border-top: 2px solid var(--gpr-primary);
    border-bottom: 2px solid var(--gpr-primary);
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.pmc-toc-toggle:hover {
    opacity: 0.7;
}

.pmc-toc-toggle:focus {
    outline: 2px solid var(--gpr-primary);
    outline-offset: 2px;
}

/* TOC Icon (Menu Alt3 - Lines with dots) */
.pmc-toc-icon {
    position: relative;
    width: 20px;
    height: 16px;
    flex-shrink: 0;
}

.pmc-toc-icon::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 3px;
    height: 3px;
    background: var(--gpr-primary);
    border-radius: 50%;
    box-shadow:
        0 6px 0 0 var(--gpr-primary),
        0 12px 0 0 var(--gpr-primary);
}

.pmc-toc-icon::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2.5px;
    width: 14px;
    height: 2px;
    background: var(--gpr-primary);
    border-radius: 1px;
    box-shadow:
        0 6px 0 0 var(--gpr-primary),
        0 12px 0 0 var(--gpr-primary);
}

.pmc-toc-toggle[aria-expanded="false"] .pmc-toc-icon {
    opacity: 0.6;
}

.pmc-sidebar-toc .pmc-sidebar-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    padding: 4px 0 0 0;
    color: var(--gpr-text);
    flex: 1;
    text-align: left;
}

/* TOC Content */
.pmc-toc-content {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 1;
    margin-top: 15px;
}

/* Custom scrollbar for TOC */
.pmc-toc-content::-webkit-scrollbar {
    width: 6px;
}

.pmc-toc-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.pmc-toc-content::-webkit-scrollbar-thumb {
    background: var(--gpr-primary);
    border-radius: 3px;
}

.pmc-toc-content::-webkit-scrollbar-thumb:hover {
    background: var(--gpr-primary-dark);
}

.pmc-toc-content.pmc-toc-collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}

.pmc-sidebar-toc .pmc-toc {
    background: transparent;
    padding: 0;
    margin: 0;
}

.pmc-sidebar-toc .pmc-sidebar-subtitle {
    font-size: 14px;
    font-weight: 500;
    color: var(--gpr-text-light);
    margin: 0 0 10px 0;
}

/* Avatar */
.pmc-avatar {
    width: 50px;  /* アバター幅 */
    height: 50px;  /* アバター高さ */
    margin-bottom: 8px;  /* アバター下余白 */
}

.pmc-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;  /* 円形 */
    object-fit: cover;
    border: 2px solid var(--gpr-border);  /* ボーダー */
}

/* Responder Icon */
.pmc-responder-icon {
    width: 50px;  /* アイコン幅 */
    height: 50px;  /* アイコン高さ */
}

.pmc-responder-icon-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;  /* 円形 */
    object-fit: cover;
    border: 2px solid var(--gpr-border);  /* ボーダー */
}

/* アーカイブページ 議事録スタイル */
.pmc-archive-container {
    width:100%;
    max-width: 900px;  /* コンテナ最大幅 */
    margin: 0 auto;  /* 中央配置 */
    padding: 20px;  /* コンテナ内側余白 */
}

.pmc-archive-header {
    margin-bottom: 40px;  /* ヘッダー下余白 */
    border-bottom: 2px solid var(--gpr-primary);  /* ヘッダー下ボーダー */
    padding-bottom: 20px;  /* ヘッダー内側下余白 */
    border-top: 2px solid var(--gpr-primary);  /* ヘッダー下ボーダー */
    padding-top: 20px;  /* ヘッダー内側下余白 */
}

.pmc-archive-title {
    font-size: 2em;  /* タイトルフォントサイズ */
    margin-bottom: 20px;  /* タイトル下余白 */
    color: var(--gpr-text);  /* タイトル色 */
}

/* 年フィルター */
.pmc-year-filter {
    display: flex;
    align-items: center;
    gap: 12px;  /* ラベルとセレクトの間隔 */
    margin-bottom: 8px;  /* 下余白 */
}

.pmc-year-filter label {
    text-wrap: nowrap;
    font-size: 15px;  /* ラベルフォントサイズ */
    font-weight: 500;  /* ラベルフォント太さ */
    color: var(--gpr-text);  /* ラベル色 */
}

.pmc-year-filter select {
    padding: 7px 16px;  /* セレクト内側余白 */
    font-size: 15px;  /* セレクトフォントサイズ */
    font-weight: 500;  /* セレクトフォント太さ */
    font-family: sans-serif;
    color: var(--gpr-text);  /* セレクト文字色 */
    border: 1px solid var(--gpr-border);  /* セレクトボーダー */
    border-radius: 2px;  /* セレクト角丸 */
    background: #f8f9fa;  /* セレクト背景色 */
    cursor: pointer;  /* カーソル形状 */
    outline: none;  /* アウトライン削除 */
    transition: all 0.2s ease;  /* トランジション */
    appearance: none;  /* デフォルトスタイル削除 */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path fill="%23666" d="M1.41 0L6 4.59L10.59 0L12 1.41l-6 6l-6-6z"/></svg>');  /* カスタム矢印アイコン */
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;  /* 矢印アイコン分の右余白 */
}

.pmc-year-filter select:hover {
    border-color: #c0c0c0;  /* ホバー時ボーダー色 */
    background-color: var(--gpr-bg);  /* ホバー時背景色 */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path fill="%23666" d="M1.41 0L6 4.59L10.59 0L12 1.41l-6 6l-6-6z"/></svg>');  /* カスタム矢印アイコン */
}

.pmc-year-filter select:focus {
    border-color: var(--gpr-primary);  /* フォーカス時ボーダー色 */
    background-color: var(--gpr-bg);  /* フォーカス時背景色 */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path fill="%23666" d="M1.41 0L6 4.59L10.59 0L12 1.41l-6 6l-6-6z"/></svg>');  /* カスタム矢印アイコン */
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);  /* フォーカス時シャドウ */
}

/* 検索フィルター */
.pmc-search-filter {
    margin-top: 16px;  /* 上余白 */
}

.pmc-search-filter label {
    display: block;
    font-size: 15px;  /* ラベルフォントサイズ */
    font-weight: 500;  /* ラベルフォント太さ */
    color: var(--gpr-text);  /* ラベル色 */
    margin-bottom: 8px;  /* ラベル下余白 */
}

.pmc-search-form {
    width: 100%;
}

.pmc-search-input-wrapper {
    display: flex;
    gap: 8px;  /* インプットとボタンの間隔 */
    align-items: stretch;
}

.pmc-search-input {
    flex: 1;
    padding: 8px 14px;  /* 入力欄内側余白 */
    font-size: 15px;  /* フォントサイズ */
    color: var(--gpr-text);  /* 文字色 */
    border: 1px solid var(--gpr-border);  /* ボーダー */
    border-radius: 2px;  /* 角丸 */
    background: #f8f9fa;  /* 背景色 */
    outline: none;  /* アウトライン削除 */
    transition: all 0.2s ease;  /* トランジション */
}

.pmc-search-input:hover {
    border-color: #c0c0c0;  /* ホバー時ボーダー色 */
    background-color: var(--gpr-bg);  /* ホバー時背景色 */
}

.pmc-search-input:focus {
    border-color: var(--gpr-primary);  /* フォーカス時ボーダー色 */
    background-color: var(--gpr-bg);  /* フォーカス時背景色 */
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);  /* フォーカス時シャドウ */
}

.pmc-search-button {
    padding: 8px 16px;  /* ボタン内側余白 */
    font-size: 15px;  /* フォントサイズ */
    font-weight: 500;  /* フォント太さ */
    color: var(--gpr-bg);  /* 文字色 */
    background: var(--gpr-primary);  /* 背景色 */
    border: none;  /* ボーダーなし */
    border-radius: 2px;  /* 角丸 */
    cursor: pointer;  /* カーソル形状 */
    transition: all 0.2s ease;  /* トランジション */
    white-space: nowrap;  /* 改行なし */
}

.pmc-search-button:hover {
    background: var(--gpr-primary-dark);  /* ホバー時背景色 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);  /* ホバー時シャドウ */
}

.pmc-search-button:active {
    transform: translateY(1px);  /* クリック時の押下効果 */
}

/* 議事録リスト */
.pmc-archive-list {
    display: flex;
    flex-direction: column;
    gap: 30px;  /* アイテム間隔 */
}

/* 議事録アイテム */
.pmc-archive-item {
    border: 0px solid var(--gpr-border);  /* アイテムボーダー */
    border-radius: 0px;  /* アイテム角丸 */
    padding: 15px;  /* アイテム内側余白 */
    background: var(--gpr-bg);  /* アイテム背景色 */
    transition: box-shadow 0.2s;  /* ホバー時のアニメーション */
}

.pmc-archive-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);  /* ホバー時の影 */
}

/* アイテムヘッダー */
.pmc-item-header {
    margin-bottom: 15px;  /* ヘッダー下余白 */
}

/* アイテムタイトル */
.pmc-item-title {
    font-size: 1.6em;  /* タイトルフォントサイズ */
    margin: 0 0 5px 0 !important;  /* タイトル上下余白 */
    margin-block-start: 0 !important;  /* ブラウザデフォルトを上書き */
    margin-block-end: 5px !important;  /* ブラウザデフォルトを上書き */
    padding-top:6px;
    padding-bottom:6px;
}

.pmc-item-title a {
    color: var(--gpr-text);  /* タイトルリンク色 */
    text-decoration: none;  /* 下線なし */
    transition: color 0.2s;  /* ホバー時のアニメーション */
}

.pmc-item-title a:hover {
    color: var(--gpr-primary);  /* ホバー時の色 */
}

/* アイテム日付 */
.pmc-item-date {
    display: block;
    color: var(--gpr-text-light);  /* 日付色 */
    font-size: 14px;  /* 日付フォントサイズ */
}

/* アイテム抜粋（目次） */
.pmc-item-excerpt {
    margin: 16px 0;  /* 抜粋上下余白 */
    color: var(--gpr-text);  /* 抜粋テキスト色 */
    line-height: 1.6;  /* 抜粋行間 */
    font-weight:600;
    font-size:16px;
}

.pmc-item-excerpt .pmc-toc {
    padding: 0;  /* 目次内側余白 */
    background: transparent;  /* 目次背景透明 */
    border: none;  /* 目次ボーダーなし */
}

.pmc-item-excerpt .pmc-toc ul {
    max-height: 200px;  /* 目次最大高さ */
    overflow-y: auto;  /* スクロール可能 */
}

.pmc-item-excerpt .pmc-toc a:hover,
.pmc-item-excerpt .pmc-toc a.active {
    background-color: var(--gpr-primary-bg);
    color: var(--gpr-text);
}

/* 検索結果なし */
.pmc-no-results {
    text-align: center;  /* 中央揃え */
    padding: 40px;  /* 内側余白 */
    color: var(--gpr-text-light);  /* テキスト色 */
}

/* 検索結果ページ専用スタイル */
.pmc-search-results .search-keyword {
    color: var(--gpr-primary);  /* 検索キーワード色 */
    font-weight: 600;  /* フォント太さ */
}

.pmc-search-highlight {
    background-color: var(--gpr-primary-bg);  /* ハイライト背景色（プライマリカラーの薄い色） */
    color: var(--gpr-text);  /* ハイライトテキスト色 */
    padding: 2px 4px;  /* ハイライト内側余白 */
    border-radius: 2px;  /* ハイライト角丸 */
    font-weight: 600;  /* ハイライトフォント太さ */
}

.pmc-search-excerpt {
    line-height: 1.8;  /* 検索抜粋行間 */
    color: var(--gpr-text);  /* 抜粋テキスト色 */
    font-size: 14px;  /* 抜粋フォントサイズ */
}

/* シングルページでの検索ハイライト */
.pmc-content .pmc-search-highlight {
    background-color: var(--gpr-primary-bg);  /* ハイライト背景色（プライマリカラーの薄い色） */
    color: var(--gpr-text);  /* ハイライトテキスト色 */
    padding: 2px 4px;  /* ハイライト内側余白 */
    border-radius: 2px;  /* ハイライト角丸 */
    font-weight: 600;  /* ハイライトフォント太さ */
}

/* ページネーション */
.pagination {
    display: flex;
    justify-content: center;  /* 中央揃え */
    gap: 10px;  /* ボタン間隔 */
    margin-top: 40px;  /* 上余白 */
    flex-wrap: wrap;  /* 折り返し */
}

.pagination .page-numbers {
    display: inline-block;
    width: 24px;
    height: 24px;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    padding: 4px 4px;  /* ボタン内側余白 */
    background: var(--gpr-bg);  /* ボタン背景色 */
    border: 1px solid var(--gpr-border);  /* ボタンボーダー */
    color: var(--gpr-primary);  /* ボタンテキスト色 */
    text-decoration: none;  /* 下線なし */
    border-radius: 4px;  /* ボタン角丸 */
    transition: background-color 0.2s, color 0.2s;  /* ホバー時のアニメーション */
}
.pagination .page-numbers.prev,.pagination .page-numbers.next {
    display: inline-block;
    width: unset;
    height: 24px;
    line-height: 24px;
    text-align: center;
    padding: 4px 4px;  /* ボタン内側余白 */
   
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--gpr-primary-bg);  /* ホバー・現在ページ背景色 */
    color: var(--gpr-text);  /* ホバー・現在ページテキスト色 */
    border-color: var(--gpr-primary-bg);  /* ホバー・現在ページボーダー色 */
}

.pagination .page-numbers.dots {
    background: transparent;  /* ドット背景透明 */
    border: none;  /* ドットボーダーなし */
    color: var(--gpr-text-light);  /* ドット色 */
}

/* レスポンシブ: タブレット・スマホ */
@media (max-width: 1024px) {
    .pmc-archive-container {
        padding: 15px;  /* モバイル時コンテナ余白 */
    }

    .pmc-archive-title {
        font-size: 1.5em;  /* モバイル時タイトルサイズ */
    }

    .pmc-item-title {
        font-size: 1.2em;  /* モバイル時アイテムタイトルサイズ */
    }

    .pmc-year-filter {
        flex-direction: column;  /* モバイル時縦並び */
        align-items: flex-start;  /* モバイル時左揃え */
    }

    .pmc-search-input-wrapper {
        flex-direction: column;  /* モバイル時縦並び */
        gap: 10px;  /* モバイル時の間隔 */
    }

    .pmc-search-button {
        width: 100%;  /* モバイル時フル幅 */
        justify-content: center;  /* 中央揃え */
    }
}

/* ============================================================
   シングルページ - グリッドレイアウト & サイドバー
   ============================================================ */

/* グリッドコンテナ */
.pmc-single-container {
    display: flex;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* メインコンテンツエリア */
.pmc-main-content {
    flex: 1;
    min-width: 0;
    order: 1;
}

/* サイドバー */
.pmc-sidebar {
    flex: 0 0 300px;
    position: sticky;
    top: 20px;
    height: fit-content;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    order: 2;
}

/* サイドバータイトル */
.pmc-sidebar-title {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--gpr-text);
    margin: 0px 0 0px 0;
    padding-bottom: 10px;
}

/* ============================================================
   Footer Section
   ============================================================ */

.pmc-footer {
    max-width: 1140px;
    margin: 60px auto 0;
    padding: 0 20px 40px;
}

/* Section Title */
.pmc-section-title {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--gpr-text);
    margin: 0 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--gpr-primary);
    text-align: center;
}

/* Related Posts Container */
.pmc-related-container {
    margin-bottom: 60px;
}

.pmc-related-posts-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Related Post Item */
.pmc-related-post-item {
    padding: 20px;
    background: var(--gpr-bg-gray);
    border-radius: 8px;
    border: 1px solid var(--gpr-border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pmc-related-post-item:hover {
    background: #fff;
    border-color: var(--gpr-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

/* Related Post Title */
.pmc-related-post-title {
    font-size: 1.1em;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.pmc-related-post-title a {
    color: var(--gpr-text);
    text-decoration: none;
    transition: color 0.2s;
}

.pmc-related-post-title a:hover {
    color: var(--gpr-primary);
}

/* Related Post Date */
.pmc-related-post-date {
    display: block;
    font-size: 13px;
    color: var(--gpr-text-light);
    margin-bottom: 12px;
}

/* Related Excerpt */
.pmc-related-excerpt {
    font-size: 13px;
    line-height: 1.6;
    margin-top: auto;
}

.pmc-related-excerpt .pmc-toc {
    padding: 0;
    background: transparent;
    border: none;
}

.pmc-related-excerpt .pmc-toc ul {
    padding-left: 0;
    max-height: 120px;
    overflow-y: auto;
}

.pmc-related-excerpt .pmc-toc li {
    margin-bottom: 4px;
}

.pmc-related-excerpt .pmc-toc a {
    font-size: 12px;
    padding: 4px 8px;
    color: var(--gpr-text);
}

.pmc-related-excerpt .pmc-toc a:hover {
    background-color: #f5f5f5;
}

/* Common Tags */
.pmc-common-tags {
    font-size: 12px;
    color: var(--gpr-text-light);
    margin-top: 12px;
    padding: 8px 12px;
    background: #fff;
    border-left: 3px solid var(--gpr-primary);
    border-radius: 4px;
}

.pmc-common-tags-label {
    font-weight: 600;
    color: var(--gpr-primary);
}

.pmc-common-tag-link {
    color: var(--gpr-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.pmc-common-tag-link:hover {
    color: var(--gpr-primary);
    text-decoration: underline;
}

/* Year Filter Container */
.pmc-year-filter-container {
    text-align: center;
    max-width: 100%;
    margin: 0 auto 40px;
}

.pmc-year-filter-container .pmc-year-select {
    width: 100%;
    max-width: 300px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
    color: var(--gpr-text);
    border: 2px solid var(--gpr-border);
    border-radius: 6px;
    background: var(--gpr-bg);
    cursor: pointer;
    transition: all 0.2s ease;
}

.pmc-year-filter-container .pmc-year-select:hover {
    border-color: var(--gpr-primary);
}

.pmc-year-filter-container .pmc-year-select:focus {
    outline: none;
    border-color: var(--gpr-primary);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

/* Search Filter Container (Single Page Footer) */
.pmc-search-filter-container {
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
}

.pmc-search-filter-container .pmc-search-form {
    max-width: 500px;
    margin: 0 auto;
}

.pmc-search-filter-container .pmc-search-input-wrapper {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.pmc-search-filter-container .pmc-search-input {
    flex: 1;
    padding: 12px 16px;
    font-size: 16px;
    color: var(--gpr-text);
    border: 2px solid var(--gpr-border);
    border-radius: 6px;
    background: var(--gpr-bg);
    outline: none;
    transition: all 0.2s ease;
}

.pmc-search-filter-container .pmc-search-input:hover {
    border-color: #c0c0c0;
}

.pmc-search-filter-container .pmc-search-input:focus {
    border-color: var(--gpr-primary);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

.pmc-search-filter-container .pmc-search-button {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    color: var(--gpr-bg);
    background: var(--gpr-primary);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.pmc-search-filter-container .pmc-search-button:hover {
    background: var(--gpr-primary-dark);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pmc-search-filter-container .pmc-search-button:active {
    transform: translateY(1px);
}

/* Tablet & Mobile - Footer */
@media (max-width: 992px) {
    .pmc-related-posts-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 1024px) {
    .pmc-footer {
        margin-top: 40px;
        padding-bottom: 30px;
    }

    .pmc-related-container {
        margin-bottom: 40px;
    }

    .pmc-related-posts-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pmc-section-title {
        font-size: 1.3em;
        margin-bottom: 20px;
    }

    .pmc-search-filter-container .pmc-search-input-wrapper {
        flex-direction: column;
        gap: 10px;
    }

    .pmc-search-filter-container .pmc-search-button {
        width: 100%;
        justify-content: center;
    }
}

/* モバイル対応 */
@media (max-width: 1024px) {
    .pmc-single-container {
        flex-direction: column;
        gap: 30px;
        padding: 0 15px;
    }

    .pmc-main-content {
        order: 2;
    }

    .pmc-sidebar {
        flex: 1 1 auto;
        order: 1;
        position: sticky;
        top: 0;
        max-height: none;
        background: var(--gpr-bg);
        z-index: 10;
    }
}
