/*
Theme Name: ANOINE SEARCH
Theme URI: https://anoine-search.example.com
Author: ANOINE SEARCH
Author URI: https://anoine-search.example.com
Description: 世の中のあらゆる「あり or なし」を検索・表示するテーマ。○○○○について あり or なし のデータを美しいプログレスバー風デザインで表示します。1日3回程度の自動更新を想定したデータ表示に最適化。レスポンシブ対応。
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: anoine-search
Tags: custom, progressive, search, japanese, minimal, responsive
*/

/* ========================================
   Reset & Base
======================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

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

a {
    color: inherit;
}

/* ========================================
   Header
======================================== */
.site-header {
    border-bottom: 1px solid #000;
    padding: 18px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.site-title {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none;
    color: #000;
    line-height: 1.2;
}

.site-title:hover {
    opacity: 0.7;
}

.site-description {
    font-size: clamp(0.8rem, 2.5vw, 0.95rem);
    color: #666;
    line-height: 1.3;
}

/* ========================================
   Main Content
======================================== */
.site-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 40px;
    width: 100%;
}

/* ========================================
   Ari-Nashi Card (デザイン画像準拠)
======================================== */
.ari-nashi-card {
    border: 2px solid #000;
    padding: 36px 48px;
    margin-bottom: 36px;
    background: #fff;
    width: 100%;
}

.ari-nashi-header {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 10px;
    padding-bottom: 18px;
    border-bottom: 1px solid #000;
    margin-bottom: 40px;
    font-size: clamp(0.95rem, 2.8vw, 1.2rem);
    line-height: 1.4;
}

.ari-nashi-circles {
    display: flex;
    gap: 5px;
    margin-right: 2px;
    flex-shrink: 0;
}

.ari-nashi-circles span {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #000;
    border-radius: 50%;
}

.ari-nashi-topic {
    font-weight: 400;
    white-space: nowrap;
}

.ari-nashi-topic-name {
    font-weight: 700;
    font-size: clamp(1.1rem, 3.5vw, 1.5rem);
    word-break: break-word;
    overflow-wrap: anywhere;
}

.ari-nashi-or {
    font-weight: 400;
    margin: 0 2px;
    white-space: nowrap;
}

.ari-nashi-result {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* Progress Section */
.ari-nashi-progress-section {
    margin-top: 24px;
    width: 100%;
}

.ari-nashi-labels {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
    font-size: clamp(0.9rem, 2.8vw, 1.1rem);
    font-weight: 600;
    gap: 12px;
    width: 100%;
}

.ari-nashi-labels .left-label {
    text-align: left;
    flex: 1 1 auto;
    min-width: 0;
}

.ari-nashi-labels .right-label {
    text-align: right;
    flex: 1 1 auto;
    min-width: 0;
}

.ari-nashi-bar-container {
    width: 100%;
    height: clamp(40px, 8vw, 60px);
    display: flex;
    overflow: hidden;
    border-radius: 0;
}

.ari-nashi-bar-ari {
    background-color: #000000;
    height: 100%;
    transition: width 0.6s ease;
    min-width: 0;
}

.ari-nashi-bar-nashi {
    background-color: #d0d0d0;
    height: 100%;
    transition: width 0.6s ease;
    min-width: 0;
}

/* ========================================
   List / Archive
======================================== */
.ari-nashi-list {
    display: grid;
    gap: 28px;
    width: 100%;
}

/* ========================================
   Search Form
======================================== */
.search-form-wrapper {
    margin-bottom: 40px;
    text-align: center;
    width: 100%;
}

.search-form {
    display: flex;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
}

.search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    border: 2px solid #000;
    border-right: none;
    font-size: 1rem;
    outline: none;
    -webkit-appearance: none;
    border-radius: 0;
}

.search-form button {
    padding: 12px 20px;
    background: #000;
    color: #fff;
    border: 2px solid #000;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.search-form button:hover {
    background: #333;
}

.search-form button:active {
    background: #111;
}

/* ========================================
   Footer
======================================== */
.site-footer {
    border-top: 1px solid #000;
    padding: 28px 40px;
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.site-footer p {
    line-height: 1.5;
}

/* ========================================
   Utility
======================================== */
.updated-info {
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    margin-top: 18px;
    line-height: 1.4;
}

.no-results {
    text-align: center;
    padding: 50px 20px;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Pagination */
.navigation.pagination,
.nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
}

.nav-links a,
.nav-links span {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #000;
    text-decoration: none;
    font-size: 0.95rem;
}

.nav-links .current {
    background: #000;
    color: #fff;
}

/* ========================================
   Responsive: Tablet (max-width: 900px)
======================================== */
@media (max-width: 900px) {
    .site-header {
        padding: 16px 28px;
    }

    .site-main {
        padding: 40px 28px;
    }

    .ari-nashi-card {
        padding: 30px 28px;
    }

    .site-footer {
        padding: 24px 28px;
    }
}

/* ========================================
   Responsive: Mobile (max-width: 768px)
======================================== */
@media (max-width: 768px) {
    .site-header {
        padding: 14px 18px;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .site-main {
        padding: 28px 16px;
    }

    .ari-nashi-card {
        padding: 22px 16px;
        margin-bottom: 24px;
        border-width: 1.5px;
    }

    .ari-nashi-header {
        margin-bottom: 28px;
        padding-bottom: 14px;
        gap: 4px 8px;
    }

    .ari-nashi-circles span {
        width: 14px;
        height: 14px;
        border-width: 1.5px;
    }

    .ari-nashi-progress-section {
        margin-top: 16px;
    }

    .ari-nashi-labels {
        margin-bottom: 8px;
        gap: 8px;
    }

    .ari-nashi-list {
        gap: 20px;
    }

    .search-form-wrapper {
        margin-bottom: 28px;
    }

    .search-form {
        flex-direction: row;
        max-width: 100%;
        align-items: stretch;
    }

    .search-form input[type="search"] {
        border-right: none;
        flex: 1;
        min-width: 0;
        width: auto;
        font-size: 16px; /* iOSズーム防止 */
    }

    .search-form button {
        width: auto;
        flex-shrink: 0;
        padding: 12px 16px;
    }

    .site-footer {
        padding: 22px 16px;
        font-size: 0.8rem;
    }

    .updated-info {
        font-size: 0.8rem;
        margin-top: 14px;
    }

    .no-results {
        padding: 40px 16px;
        font-size: 1rem;
    }
}

/* ========================================
   Responsive: Small Mobile (max-width: 480px)
======================================== */
@media (max-width: 480px) {
    .site-header {
        padding: 12px 14px;
    }

    .site-main {
        padding: 22px 12px;
    }

    .ari-nashi-card {
        padding: 18px 12px;
        margin-bottom: 18px;
    }

    .ari-nashi-header {
        margin-bottom: 22px;
        font-size: 0.9rem;
    }

    .ari-nashi-result {
        font-size: 1.25rem;
    }

    .ari-nashi-topic-name {
        font-size: 1.05rem;
    }

    .ari-nashi-labels {
        font-size: 0.9rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: baseline;
        gap: 8px;
        margin-bottom: 8px;
    }

    .ari-nashi-labels .left-label {
        text-align: left;
        flex: 1;
    }

    .ari-nashi-labels .right-label {
        text-align: right;
        flex: 1;
    }

    .ari-nashi-bar-container {
        height: 36px;
    }

    .site-footer {
        padding: 18px 12px;
        font-size: 0.75rem;
    }
}

/* ========================================
   Responsive: Very Small (max-width: 360px)
======================================== */
@media (max-width: 360px) {
    .ari-nashi-header {
        font-size: 0.85rem;
    }

    .ari-nashi-result {
        font-size: 1.15rem;
    }

    .ari-nashi-bar-container {
        height: 32px;
    }
}

/* ========================================
   Print (optional)
======================================== */
@media print {
    .site-header,
    .site-footer,
    .search-form-wrapper {
        display: none;
    }

    .ari-nashi-card {
        break-inside: avoid;
        border: 1px solid #000;
        margin-bottom: 20px;
    }
}

/* ========================================
   Front page hero & section
======================================== */
.front-hero {
    text-align: center;
    margin-bottom: 40px;
}

.front-hero-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #000;
    background: none;
    padding: 0;
}

.front-hero-desc {
    color: #666;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    margin-top: 4px;
}

.section-title {
    text-align: center;
    margin: 32px 0 24px;
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    background: none;
    border: none;
    padding: 0;
    color: #000;
}

.ari-nashi-topic-name a {
    color: #000;
    text-decoration: none;
}

.ari-nashi-topic-name a:hover {
    opacity: 0.7;
}

/* ========================================
   Pagination (responsive)
======================================== */
.anoine-pagination {
    margin-top: 40px;
    margin-bottom: 20px;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.anoine-pagination .page-numbers,
.anoine-pagination ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 100%;
}

.anoine-pagination li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.anoine-pagination a.page-numbers,
.anoine-pagination span.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1.5px solid #000;
    background: #fff;
    color: #000;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1;
    transition: background 0.15s ease, color 0.15s ease;
}

.anoine-pagination a.page-numbers:hover {
    background: #000;
    color: #fff;
}

.anoine-pagination span.page-numbers.current {
    background: #000;
    color: #fff;
    font-weight: 700;
}

.anoine-pagination span.page-numbers.dots {
    border: none;
    min-width: 24px;
    background: transparent;
}

.anoine-pagination .prev,
.anoine-pagination .next {
    min-width: auto;
    padding: 0 14px;
    font-size: 0.9rem;
}

/* モバイル向けページネーション */
@media (max-width: 768px) {
    .anoine-pagination {
        margin-top: 28px;
    }

    .anoine-pagination a.page-numbers,
    .anoine-pagination span.page-numbers {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 0.9rem;
    }

    .anoine-pagination .prev,
    .anoine-pagination .next {
        padding: 0 12px;
        font-size: 0.85rem;
    }

    .front-hero {
        margin-bottom: 28px;
    }

    .front-hero-title {
        padding: 0;
        font-size: 1.35rem;
    }

    .section-title {
        margin: 24px 0 18px;
        padding: 0;
        font-size: 1.05rem;
    }
}

@media (max-width: 480px) {
    .anoine-pagination a.page-numbers,
    .anoine-pagination span.page-numbers {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 0.85rem;
        border-width: 1px;
    }

    .anoine-pagination .prev,
    .anoine-pagination .next {
        padding: 0 10px;
        font-size: 0.8rem;
    }

    /* 小さい画面では「前へ」「次へ」を短縮表示も可能だが、現状のテキストのまま */
    .anoine-pagination ul {
        gap: 4px;
    }
}

@media (max-width: 360px) {
    .anoine-pagination .prev,
    .anoine-pagination .next {
        /* 極小画面では矢印のみに近い印象に */
        font-size: 0.75rem;
        padding: 0 8px;
    }
}

/* ========================================
   Header with Hamburger (全画面共通)
======================================== */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    gap: 16px;
}

.site-header {
    position: relative;
    border-bottom: 1px solid #000;
    padding: 14px 24px;
    display: block;
    max-width: none;
    width: 100%;
}

.site-header .site-title {
    font-size: clamp(1.2rem, 3.5vw, 1.7rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: #000;
    line-height: 1.2;
    z-index: 1002;
}

/* Hamburger button — PC・スマホ共通表示 */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 2px solid #000;
    background: #fff;
    cursor: pointer;
    gap: 5px;
    flex-shrink: 0;
    z-index: 1002;
    transition: background 0.2s ease;
}

.hamburger:hover {
    background: #f5f5f5;
}

.hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: #000;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.hamburger.is-open .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.is-open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.is-open .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Navigation panel */
.site-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    height: 100dvh;
    background: #fff;
    border-left: 2px solid #000;
    z-index: 1001;
    padding: 80px 28px 40px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

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

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

.nav-list li {
    border-bottom: 1px solid #eee;
}

.nav-list a {
    display: block;
    padding: 16px 4px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    transition: background 0.15s ease, padding-left 0.15s ease;
}

.nav-list a:hover {
    background: #f5f5f5;
    padding-left: 10px;
}

/* Overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

body.nav-open {
    overflow: hidden;
}

/* 旧 description は非表示（ハンバーガー優先） */
.site-header > .site-description {
    display: none;
}

/* ========================================
   Static pages (About / Privacy / Sitemap)
======================================== */
.page-content {
    max-width: 720px;
}

.static-page {
    width: 100%;
}

.page-title {
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    font-weight: 700;
    margin-bottom: 24px;
    padding: 0;
    letter-spacing: 0.02em;
    background: none;
    color: #000;
    border: none;
    line-height: 1.35;
}

.page-body h2 {
    background: none;
    padding: 0;
    border-left: none;
    margin: 28px 0 12px;
    font-size: 1.15rem;
    font-weight: 700;
}

.page-body {
    font-size: 1rem;
    line-height: 1.8;
}



.page-body p {
    margin-bottom: 14px;
}

.page-body ul {
    margin: 0 0 16px 1.4em;
    padding: 0;
}

.page-body li {
    margin-bottom: 6px;
}

/* Sitemap */
.sitemap-lead {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 28px;
}

.sitemap-section {
    margin-bottom: 36px;
}

.sitemap-section h2 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.sitemap-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid #eee;
}

.sitemap-list li {
    border-bottom: 1px solid #eee;
    margin: 0;
}

.sitemap-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 4px;
    color: #000;
    text-decoration: none;
    font-size: 0.98rem;
}

.sitemap-list a:hover {
    background: #f8f8f8;
}

.sitemap-pct {
    font-size: 0.85rem;
    color: #666;
    white-space: nowrap;
    flex-shrink: 0;
}

.sitemap-empty {
    color: #888;
    padding: 12px 0;
}

.sitemap-ari-list {
    max-height: none;
}

/* Responsive adjustments for header/nav */
@media (max-width: 768px) {
    .site-header {
        padding: 12px 16px;
    }

    .hamburger {
        width: 40px;
        height: 40px;
    }

    .hamburger-line {
        width: 18px;
    }

    .site-nav {
        width: min(300px, 88vw);
        padding: 72px 20px 32px;
    }

    .nav-list a {
        padding: 14px 2px;
        font-size: 1.05rem;
    }

    .page-title {
        margin-bottom: 20px;
        padding: 0;
    }

    .page-body h2 {
        margin: 24px 0 10px;
        padding: 0;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 10px 12px;
    }

    .site-nav {
        width: 100%;
        border-left: none;
        border-top: 2px solid #000;
    }
}

/* ========================================
   404 Error Page (参考: anoine.com)
======================================== */
.error-404 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    text-align: center;
}

.error-404-inner {
    max-width: 480px;
    width: 100%;
    padding: 20px 16px;
}

.error-404-code {
    font-size: clamp(1.6rem, 5vw, 2rem);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

.error-404-lead {
    font-size: clamp(1.1rem, 3.5vw, 1.25rem);
    font-weight: 600;
    margin-bottom: 14px;
}

.error-404-desc {
    font-size: 0.98rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 28px;
}

.error-404-home a {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid #000;
    color: #000;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.error-404-home a:hover {
    background: #000;
    color: #fff;
}


/* ========================================
   Breadcrumb
======================================== */
.anoine-breadcrumb {
    margin-bottom: 20px;
    font-size: 0.88rem;
    color: #666;
    line-height: 1.5;
    padding: 0 0 12px;
    background: none;
    border: none;
    border-bottom: 1px solid #000;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb-item {
    margin: 0;
    padding: 0;
}

.breadcrumb-item a {
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.breadcrumb-item a:hover {
    color: #000;
    border-bottom-color: #000;
}

.breadcrumb-item.is-current {
    color: #000;
    font-weight: 600;
}

.breadcrumb-sep {
    color: #aaa;
    margin: 0 2px;
    user-select: none;
    list-style: none;
}

@media (max-width: 480px) {
    .anoine-breadcrumb {
        font-size: 0.8rem;
        margin-bottom: 18px;
    }

    .page-title {
        padding: 0;
        font-size: 1.2rem;
    }
}

/* ========================================
   Search autocomplete (存在するデータのみ)
======================================== */
.search-autocomplete {
    position: relative;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
}

.search-autocomplete .search-form {
    max-width: 100%;
    width: 100%;
}

.search-suggest {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border: 2px solid #000;
    border-top: none;
    z-index: 50;
    max-height: 280px;
    overflow-y: auto;
    text-align: left;
}

.search-suggest[hidden] {
    display: none !important;
}

.search-suggest-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

.search-suggest-item:last-child {
    border-bottom: none;
}

.search-suggest-item:hover,
.search-suggest-item.is-active {
    background: #f0f0f0;
}

.suggest-title {
    font-weight: 600;
    color: #000;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.suggest-pct {
    flex-shrink: 0;
    font-size: 0.85rem;
    color: #666;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .search-suggest-item {
        padding: 11px 12px;
        font-size: 0.9rem;
    }
}

/* ========================================
   Detail page (single ari_nashi)
======================================== */
.detail-card {
    margin-bottom: 28px;
}

.detail-section {
    margin-bottom: 36px;
    width: 100%;
}

.detail-heading {
    font-size: clamp(1.15rem, 3.5vw, 1.35rem);
    font-weight: 700;
    background: none;
    color: #000;
    padding: 0;
    margin-bottom: 18px;
}

.detail-block {
    margin-bottom: 22px;
    padding: 16px 18px;
    border: 1px solid #e5e5e5;
    background: #fafafa;
}

.detail-subheading {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #ddd;
}

.detail-text {
    font-size: 0.98rem;
    line-height: 1.75;
    color: #222;
}

.detail-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 22px;
}

.detail-col {
    padding: 16px 18px;
    border: 1px solid #e5e5e5;
    background: #fff;
}

.detail-col-ari {
    border-top: 3px solid #000;
}

.detail-col-nashi {
    border-top: 3px solid #bbb;
}

.detail-disclaimer {
    color: #666;
    font-size: 0.9rem;
}

.detail-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 24px;
    margin: 28px 0 12px;
}

.detail-nav-link {
    color: #000;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid #000;
    padding-bottom: 2px;
}

.detail-nav-link:hover {
    opacity: 0.7;
}

@media (max-width: 768px) {
    .detail-columns {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .detail-block,
    .detail-col {
        padding: 14px 14px;
    }

    .detail-heading {
        padding: 10px 14px;
    }
}


/* ========================================
   Fixed page hero band (ヘッダー下)
======================================== */
.page-hero {
    width: 100%;
    max-width: none;
    margin: 0 0 28px;
    padding: 48px 24px;
    background: #111;
    color: #fff;
    text-align: center;
    box-sizing: border-box;
}

.page-hero-inner {
    max-width: 900px;
    margin: 0 auto;
}

.page-hero-title {
    font-size: clamp(1.4rem, 4vw, 1.85rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    margin: 0 0 8px;
    color: #fff;
    background: none;
    padding: 0;
}

.page-hero-sub {
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    color: rgba(255,255,255,0.75);
    margin: 0;
    letter-spacing: 0.02em;
}

/* 固定ページ本体はヒーローの下 */
.page-content.with-hero {
    padding-top: 8px;
}

@media (max-width: 768px) {
    .page-hero {
        padding: 36px 16px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding: 28px 14px;
    }
}

.archive-heading {
    text-align: center;
    font-size: clamp(1.3rem, 4vw, 1.6rem);
    font-weight: 700;
    margin-bottom: 28px;
    background: none;
    color: #000;
    padding: 0;
    border: none;
}
