/* 国会 両論ギジロク - スタイルシート
 * レスポンシブ3段階: モバイル(デフォルト〜768px) / タブレット(769〜1024px) / デスクトップ(1025px〜)
 */

:root {
    --color-bg: #ffffff;
    --color-text: #333333;
    --color-primary: #1a5276;
    --color-positive: #e8f5e9;
    --color-negative: #fce4ec;
    --color-border: #e0e0e0;
}

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

html {
    font-size: 16px;
}

body {
    font-family: "Noto Sans JP", sans-serif;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
}

.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ------------------------------------------------------------------
 * ヘッダー / フッター
 * ------------------------------------------------------------------ */
.site-header {
    background-color: var(--color-primary);
    padding: 1rem 0;
}

.site-header .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.site-title {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    line-height: 1.15;
}

/* ロゴ: 「国会」を小さく上に乗せ、「両論ギジロク」を主役に大きく見せる */
.site-cat {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    opacity: 0.75;
}

.site-brand {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
}

.site-nav {
    display: flex;
    gap: 1rem;
}

.site-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.9;
}

.site-nav a:hover {
    opacity: 1;
    text-decoration: underline;
}

.site-footer {
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--color-border);
    color: #666666;
    font-size: 0.85rem;
}

.site-footer .disclaimer {
    font-weight: 600;
}

.site-footer .disclaimer-neutral {
    margin-top: 0.5rem;
    font-weight: 600;
}

.site-footer .about-link {
    margin-top: 0.5rem;
}

.site-footer .about-link a {
    color: var(--color-primary);
    text-decoration: none;
}

.site-footer .about-link a:hover {
    text-decoration: underline;
}

.site-footer .copyright {
    margin-top: 0.5rem;
}

/* ------------------------------------------------------------------
 * このサイトについて (about.html)
 * ------------------------------------------------------------------ */
.about-section {
    margin-bottom: 2rem;
}

.about-section h2 {
    font-size: 1.2rem;
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 0.3rem;
    margin-bottom: 0.75rem;
}

.about-section h3 {
    font-size: 1rem;
    margin: 1rem 0 0.4rem;
}

.about-section ul,
.about-section ol {
    padding-left: 1.4rem;
    margin: 0.5rem 0;
}

.about-section li {
    margin-bottom: 0.4rem;
}

.about-section .note {
    font-size: 0.85rem;
    color: #666666;
    margin-top: 0.5rem;
}

.about-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.5rem 0;
}

.about-table th,
.about-table td {
    border: 1px solid var(--color-border);
    padding: 0.5rem 0.75rem;
    text-align: left;
}

.about-table th {
    background-color: #f0f4f8;
}

.prompt-file {
    font-size: 0.8rem;
    color: #888888;
    font-weight: normal;
}

.prompt-text {
    background-color: #f7f7f7;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 0.9rem 1rem;
    font-size: 0.85rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-x: auto;
}

/* お問い合わせ (contact.html) */
.contact-cta {
    margin: 1.25rem 0;
}

.contact-button {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background-color: var(--color-primary);
    color: #ffffff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.contact-button:hover {
    opacity: 0.9;
}

main.container {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

/* ------------------------------------------------------------------
 * 一覧見出し / 絞り込み導線
 * ------------------------------------------------------------------ */
.list-heading {
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.list-tools {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.list-tools .filter-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.list-tools .filter-link:hover {
    text-decoration: underline;
}

.no-results {
    color: #666666;
    padding: 1rem 0;
}

/* ------------------------------------------------------------------
 * 絞り込みフォーム (search.html)
 * ------------------------------------------------------------------ */
.filter-form {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.75rem;
    align-items: flex-end;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.filter-form label {
    display: flex;
    flex-direction: column;
    flex: 1 1 12rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #555555;
    gap: 0.25rem;
}

.filter-form select,
.filter-form input {
    font: inherit;
    padding: 0.45rem 0.6rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: #ffffff;
    color: var(--color-text);
}

.filter-reset {
    flex: 0 0 auto;
    align-self: flex-end;
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: #f0f4f8;
    color: var(--color-primary);
    cursor: pointer;
    font: inherit;
}

.filter-reset:hover {
    background: #e2e9f0;
}

.filter-count {
    color: #666666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* ------------------------------------------------------------------
 * 一覧カード
 * ------------------------------------------------------------------ */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.article-card {
    display: block;
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: var(--color-text);
    transition: box-shadow 0.2s ease;
}

.article-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.article-date {
    display: block;
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 600;
}

.article-title {
    font-size: 1.1rem;
    margin: 0.25rem 0 0.5rem;
}

.article-excerpt {
    font-size: 0.95rem;
    color: #555555;
}

/* ------------------------------------------------------------------
 * ページネーション
 * ------------------------------------------------------------------ */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination a,
.pagination span {
    display: inline-block;
    min-width: 2.25rem;
    padding: 0.4rem 0.7rem;
    text-align: center;
    text-decoration: none;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-primary);
}

.pagination-current {
    background-color: var(--color-primary);
    color: #ffffff !important;
    border-color: var(--color-primary) !important;
    font-weight: 700;
}

.pagination a:hover {
    background-color: #f0f4f8;
}

/* ------------------------------------------------------------------
 * 個別記事
 * ------------------------------------------------------------------ */
.breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

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

.article-header h1 {
    font-size: 1.5rem;
    line-height: 1.4;
}

.article-meta {
    color: #666666;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.article-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.article-links a {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    background-color: var(--color-primary);
    color: #ffffff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
}

.article-links a:hover {
    opacity: 0.9;
}

.article-section {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.article-section h2 {
    font-size: 1.15rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.section-positive {
    background-color: var(--color-positive);
    border-color: transparent;
}

.section-negative {
    background-color: var(--color-negative);
    border-color: transparent;
}

.article-model {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.85rem;
    color: #666666;
}

/* ------------------------------------------------------------------
 * レスポンシブ: タブレット(769〜1024px)
 * ------------------------------------------------------------------ */
@media (min-width: 769px) and (max-width: 1024px) {
    html {
        font-size: 16.5px;
    }

    .container {
        padding: 0 1.5rem;
    }
}

/* ------------------------------------------------------------------
 * レスポンシブ: デスクトップ(1025px〜)
 * ------------------------------------------------------------------ */
@media (min-width: 1025px) {
    html {
        font-size: 17px;
    }

    .article-header h1 {
        font-size: 1.75rem;
    }
}
