@charset "UTF-8";

/* =========================================
   Base / Reset
   ========================================= */
:root {
    --color-black: #1a1a1a;
    --color-gray-dark: #333333;
    --color-gray-mid: #666666;
    --color-gray-light: #e5e5e5;
    --color-bg: #ffffff;
    --color-bg-secondary: #f9f9f9;
    --color-accent: #a33e3e; /* 落ち着いた赤 */
    --font-serif: 'Noto Serif JP', serif;
    --font-sans: 'Noto Sans JP', sans-serif;
    --font-en: 'Cinzel', serif;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--color-gray-dark);
    background-color: var(--color-bg);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
h1, h2, h3, h4 { margin: 0; line-height: 1.4; color: var(--color-black); }
a { text-decoration: none; color: inherit; transition: opacity 0.3s; }
a:hover { opacity: 0.7; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; padding: 0; margin: 0; }

/* =========================================
   Utility
   ========================================= */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 800px; }
.btn { display: inline-block; padding: 10px 30px; border-radius: 4px; font-weight: bold; cursor: pointer; text-align: center; }
.btn--outline { border: 1px solid var(--color-black); background: transparent; }
.btn--outline:hover { background: var(--color-black); color: #fff; }

.js-fade-up { opacity: 0; transform: translateY(20px); transition: 0.8s ease; }
.js-fade-up.is-active { opacity: 1; transform: translateY(0); }

/* =========================================
Header
   ========================================= */

.header { border-bottom: 1px solid var(--color-gray-light); padding: 20px 0; background: #fff; position: sticky; top: 0; z-index: 1000; }
.header__inner { display: flex; align-items: center; justify-content: space-between; }
.header__brand { text-align: center; }
.header__logo { font-family: var(--font-en); font-size: 28px; letter-spacing: 0.05em; }
.header__tagline { font-size: 10px; color: var(--color-gray-mid); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 2px; }

.header__nav { display: none; }
.header__list { display: flex; gap: 20px; }
.header__link { font-family: var(--font-sans); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; color: var(--color-black); }
.header__link:hover, .header__link.is-current { color: var(--color-accent); border-bottom: 2px solid var(--color-accent); text-decoration: none; }



/* =========================================
   Mobile Menu Force Override (スマホメニュー強制上書き)
   ========================================= */
@media screen and (max-width: 768px) {
    header.header { height: 60px !important; position: fixed !important; top: 0 !important; left: 0 !important; width: 100% !important; z-index: 9999 !important; background: #fff !important; padding: 0 !important; display: flex !important; align-items: center !important; justify-content: space-between !important; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
    header .header__inner { width: 100% !important; max-width: none !important; padding: 0 15px !important; display: flex !important; justify-content: space-between !important; align-items: center !important; height: 100% !important; }
    .header__brand { margin: 0 !important; padding: 0 !important; width: auto !important; }
    .header__logo { margin: 0 !important; line-height: 1 !important; }
    .header__logo a { font-size: 15px !important; text-decoration: none !important; }
    .header__tagline { display: none !important; }
    .header__hamburger { display: block !important; position: relative !important; width: 44px !important; height: 44px !important; background: transparent !important; border: none !important; padding: 0 !important; margin: 0 !important; top: auto !important; right: auto !important; bottom: auto !important; left: auto !important; z-index: 10000 !important; border-radius: 0 !important; }
    .header__hamburger span { display: block !important; position: absolute !important; width: 26px !important; height: 2px !important; background-color: #333 !important; border-radius: 2px !important; left: 9px !important; transition: 0.3s ease !important; transform: none !important; opacity: 1 !important; }
    .header__hamburger span:nth-child(1) { top: 13px !important; }
    .header__hamburger span:nth-child(2) { top: 21px !important; }
    .header__hamburger span:nth-child(3) { top: 29px !important; }
    .header__hamburger.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg) !important; }
    .header__hamburger.is-active span:nth-child(2) { opacity: 0 !important; }
    .header__hamburger.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg) !important; }
    .header__nav { display: block !important; position: fixed !important; top: 60px !important; left: 0 !important; width: 100% !important; height: calc(100vh - 60px) !important; background: #fff !important; z-index: 9998 !important; overflow-y: auto !important; padding: 20px 0 !important; visibility: hidden !important; opacity: 0 !important; pointer-events: none !important; transition: opacity 0.3s ease !important; }
    .header__nav.is-active { visibility: visible !important; opacity: 1 !important; pointer-events: auto !important; }
    .header__list { display: block !important; margin: 0 !important; padding: 0 !important; list-style: none !important; }
    .header__item { width: 100% !important; margin: 0 !important; border-bottom: 1px solid #eee !important; text-align: center !important; }
    .header__link { display: block !important; padding: 20px !important; color: #333 !important; font-size: 16px !important; text-decoration: none !important; }
}
/* =========================================
   Magazine Hero (Grid Layout)
   ========================================= */
.mag-hero { margin: 40px auto 60px; }
.mag-hero__grid { display: grid; gap: 20px; grid-template-columns: 1fr; }

.mag-card { position: relative; overflow: hidden; border-radius: 4px; }
.mag-card__link { display: block; height: 100%; }
.mag-card__thumb { position: relative; width: 100%; overflow: hidden; margin: 0; aspect-ratio: 16/9; }
.mag-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.mag-card:hover .mag-card__thumb img { transform: scale(1.05); }

.category-tag { position: absolute; top: 15px; left: 15px; background: var(--color-black); color: #fff; font-size: 11px; padding: 4px 10px; text-transform: uppercase; font-weight: bold; border-radius: 2px; z-index: 1; }
.category-tag--accent { background: var(--color-accent); }

.mag-card__content { padding: 15px 0; }
.mag-card__meta { font-size: 12px; color: var(--color-gray-mid); margin-bottom: 8px; font-family: var(--font-en); }
.mag-card__title { font-family: var(--font-serif); font-weight: 600; margin-bottom: 10px; }
.mag-card__excerpt { font-size: 14px; color: var(--color-gray-mid); line-height: 1.6; display: none; }

/* PC specific styles for Hero */
@media (min-width: 768px) {
    .header__nav { display: block; }
    .header__hamburger { display: none; }
    .header__brand { text-align: left; }
    
    .mag-hero__grid { grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, 1fr); height: 500px; }
    
    /* Main Card (Left, Full Height) */
    .mag-card--main { grid-row: 1 / 3; grid-column: 1 / 2; position: relative; }
    .mag-card--main .mag-card__thumb { height: 100%; aspect-ratio: auto; }
    /* メイン記事は画像の上に文字を載せるスタイルに */
    .mag-card--main .mag-card__content { position: absolute; bottom: 0; left: 0; width: 100%; padding: 30px; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); color: #fff; }
    .mag-card--main .mag-card__title { font-size: 28px; color: #fff; }
    .mag-card--main .mag-card__excerpt { display: block; color: rgba(255,255,255,0.9); margin-top: 10px; }
    .mag-card--main .mag-card__meta { color: rgba(255,255,255,0.7); }

    /* Sub Cards (Right, Stacked) */
    .mag-card--sub .mag-card__thumb { height: 160px; aspect-ratio: auto; }
    .mag-card--sub .mag-card__title { font-size: 16px; }
}

/* =========================================
   Layout: Main + Sidebar
   ========================================= */
.layout-wrapper { display: flex; flex-direction: column; gap: 40px; margin-bottom: 80px; }
.main-column { width: 100%; }
.sidebar-column { width: 100%; }

.section-header { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--color-black); padding-bottom: 10px; margin-bottom: 30px; }
.section-title { font-family: var(--font-en); font-size: 24px; }
.section-more { font-size: 12px; font-weight: bold; }

/* Feed List */
.feed-item { margin-bottom: 30px; border-bottom: 1px solid var(--color-gray-light); padding-bottom: 30px; }
.feed-item__link { display: flex; gap: 20px; align-items: flex-start; }
.feed-item__thumb { width: 120px; height: 120px; flex-shrink: 0; border-radius: 4px; overflow: hidden; }
.feed-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.feed-item__content { flex-grow: 1; }
.feed-item__cat { font-size: 11px; color: var(--color-accent); font-weight: bold; text-transform: uppercase; margin-bottom: 5px; display: block; }
.feed-item__title { font-family: var(--font-serif); font-size: 18px; font-weight: 600; margin-bottom: 10px; transition: color 0.3s; }
.feed-item__link:hover .feed-item__title { color: var(--color-accent); }
.feed-item__date { font-size: 12px; color: var(--color-gray-mid); font-family: var(--font-en); }

.feed-pager { text-align: center; margin-top: 40px; }

/* Sidebar Widgets */
.widget { margin-bottom: 40px; }
.widget-title { font-size: 14px; font-weight: bold; text-transform: uppercase; border-bottom: 1px solid var(--color-gray-light); padding-bottom: 10px; margin-bottom: 20px; letter-spacing: 0.1em; }

/* Search Form */
.search-form { display: flex; border: 1px solid var(--color-gray-light); border-radius: 4px; overflow: hidden; }
.search-form__input { border: none; padding: 10px; width: 100%; outline: none; }
.search-form__btn { background: var(--color-bg-secondary); border: none; padding: 0 15px; cursor: pointer; }

/* Ranking List */
.ranking-list { counter-reset: rank; }
.ranking-list__item { display: flex; gap: 10px; margin-bottom: 15px; align-items: baseline; }
.ranking-list__num { font-family: var(--font-en); font-weight: bold; font-size: 18px; color: var(--color-accent); width: 20px; flex-shrink: 0; }
.ranking-list__item a { font-size: 14px; font-weight: 500; line-height: 1.5; }
.ranking-list__item a:hover { text-decoration: underline; }

/* Banner Box */
.banner-box { display: block; position: relative; border-radius: 4px; overflow: hidden; }
.banner-box img { width: 100%; transition: transform 0.5s; }
.banner-box:hover img { transform: scale(1.05); }
.banner-box__text { position: absolute; bottom: 0; left: 0; width: 100%; padding: 15px; background: rgba(0,0,0,0.7); color: #fff; text-align: center; }
.banner-box__text p { font-family: var(--font-en); font-weight: bold; margin-bottom: 5px; }
.banner-box__text span { font-size: 12px; }

/* Tag Cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-cloud a { font-size: 12px; background: var(--color-bg-secondary); padding: 5px 10px; border-radius: 20px; color: var(--color-gray-mid); }
.tag-cloud a:hover { background: var(--color-black); color: #fff; }

/* PC Styles for Layout */
@media (min-width: 900px) {
    .layout-wrapper { flex-direction: row; align-items: flex-start; gap: 60px; }
    .main-column { flex: 1; }
    .sidebar-column { width: 300px; flex-shrink: 0; position: sticky; top: 100px; }
    
    .feed-item__thumb { width: 240px; height: 160px; }
    .feed-item__title { font-size: 20px; }
}

/* =========================================
   Newsletter & Footer
   ========================================= */
.newsletter-section { background-color: var(--color-bg-secondary); padding: 60px 0; text-align: center; margin-top: 60px; }
.newsletter-section__title { font-family: var(--font-en); font-size: 24px; margin-bottom: 10px; }
.newsletter-section__text { font-size: 14px; color: var(--color-gray-mid); margin-bottom: 30px; }
.newsletter-form { display: flex; justify-content: center; gap: 10px; max-width: 500px; margin: 0 auto; }
.newsletter-form input { flex: 1; padding: 12px; border: 1px solid #ddd; border-radius: 4px; }
.newsletter-form button { padding: 12px 30px; background: var(--color-black); color: #fff; border: none; border-radius: 4px; font-weight: bold; cursor: pointer; }

.footer { background-color: #111; color: #999; padding: 60px 0 20px; font-size: 13px; }
.footer__inner { display: flex; flex-direction: column; gap: 40px; border-bottom: 1px solid #333; padding-bottom: 40px; margin-bottom: 20px; }
.footer__logo { color: #fff; font-family: var(--font-en); font-size: 24px; margin-bottom: 10px; }
.footer__head { font-family: var(--font-sans); font-weight: 700; letter-spacing: 0.05em; }
.footer__nav a { font-family: var(--font-sans); font-size: 13px; letter-spacing: 0.02em; }
.footer__nav a:hover { color: #fff; text-decoration: underline; }
.footer__nav li { margin-bottom: 10px; }
.footer__copyright { text-align: center; font-size: 11px; }

@media (min-width: 768px) {
    .footer__inner { flex-direction: row; justify-content: space-between; }
    .footer__col { width: 30%; }
}

/* Sticky Bar (Bottom) */
.sticky-bar { position: fixed; bottom: 0; left: 0; width: 100%; background: #fff; border-top: 1px solid #ddd; padding: 15px 20px; display: flex; justify-content: center; align-items: center; gap: 20px; transform: translateY(100%); transition: transform 0.3s; z-index: 999; box-shadow: 0 -2px 10px rgba(0,0,0,0.05); }
.sticky-bar.is-visible { transform: translateY(0); }
.sticky-bar__text { font-weight: bold; font-size: 13px; display: none; }
.sticky-bar__btn { background: var(--color-accent); color: #fff; padding: 8px 24px; border-radius: 4px; font-weight: bold; font-size: 13px; }
@media (min-width: 768px) {
    .sticky-bar__text { display: block; }
}
/* =========================================
   Base / Reset
   ========================================= */
:root {
    --color-black: #1a1a1a;
    --color-gray-dark: #333333;
    --color-gray-mid: #666666;
    --color-gray-light: #e5e5e5;
    --color-bg: #ffffff;
    --color-bg-secondary: #f9f9f9;
    --color-accent: #a33e3e; /* ワインレッド */
    --font-serif: 'Noto Serif JP', serif;
    --font-sans: 'Noto Sans JP', sans-serif;
    --font-en: 'Cinzel', serif;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--color-gray-dark);
    background-color: var(--color-bg);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
h1, h2, h3, h4 { margin: 0; line-height: 1.4; color: var(--color-black); }
a { text-decoration: none; color: inherit; transition: opacity 0.3s, color 0.3s; }
a:hover { opacity: 0.7; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; padding: 0; margin: 0; }

/* =========================================
   Utility
   ========================================= */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.js-fade-up { opacity: 0; transform: translateY(20px); transition: 0.8s ease; }
.js-fade-up.is-active { opacity: 1; transform: translateY(0); }

/* =========================================
   Header (Shared)
   ========================================= */
.header { border-bottom: 1px solid var(--color-gray-light); padding: 20px 0; background: #fff; position: sticky; top: 0; z-index: 1000; }
.header__inner { display: flex; align-items: center; justify-content: space-between; }
.header__brand { text-align: left; }
.header__logo { font-family: var(--font-en); font-size: 20px; letter-spacing: 0.05em; font-weight: bold; }
.header__tagline { font-size: 10px; color: var(--color-gray-mid); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 2px; }

.header__nav { display: none; }
.header__list { display: flex; gap: 20px; }
.header__link { font-weight: bold; font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; }
.header__link:hover, .header__link.is-current { color: var(--color-accent); border-bottom: 2px solid var(--color-accent); }

.header__hamburger { background: none; border: none; width: 30px; height: 20px; position: relative; cursor: pointer; display: block; }
.header__hamburger span { display: block; width: 100%; height: 2px; background: var(--color-black); position: absolute; transition: 0.3s; }
.header__hamburger span:nth-child(1) { top: 0; }
.header__hamburger span:nth-child(2) { top: 9px; }
.header__hamburger span:nth-child(3) { bottom: 0; }

/* =========================================
   Breadcrumbs & Page Header (Archive Specific)
   ========================================= */
.breadcrumbs-area { background: var(--color-bg-secondary); padding: 10px 0; font-size: 12px; color: var(--color-gray-mid); border-bottom: 1px solid var(--color-gray-light); }
.breadcrumbs ol { display: flex; gap: 10px; }
.breadcrumbs li::after { content: '/'; margin-left: 10px; opacity: 0.5; }
.breadcrumbs li:last-child::after { content: none; }
.breadcrumbs a:hover { text-decoration: underline; }

.page-header { padding: 60px 0 40px; border-bottom: 1px solid var(--color-black); margin-bottom: 40px; }
.page-header__title { font-family: var(--font-en); font-size: 48px; margin-bottom: 15px; letter-spacing: 0.05em; }
.page-header__desc { font-size: 15px; color: var(--color-gray-mid); max-width: 600px; }

/* =========================================
   Layout: Main + Sidebar
   ========================================= */
.layout-wrapper { display: flex; flex-direction: column; gap: 40px; margin-bottom: 80px; }
.main-column { width: 100%; }
.sidebar-column { width: 100%; }

/* Archive Filter */
.archive-filter { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; font-size: 13px; color: var(--color-gray-mid); border-bottom: 1px solid var(--color-gray-light); padding-bottom: 10px; }
.archive-select { border: 1px solid var(--color-gray-light); padding: 5px; border-radius: 4px; color: var(--color-black); }

/* Archive List (Horizontal Cards) */
.archive-list { display: flex; flex-direction: column; gap: 30px; }
.archive-item { padding-bottom: 30px; border-bottom: 1px solid var(--color-gray-light); }
.archive-item__link { display: flex; flex-direction: column; gap: 20px; group; }
.archive-item__thumb { width: 100%; aspect-ratio: 16/9; overflow: hidden; border-radius: 4px; margin: 0; }
.archive-item__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.archive-item:hover .archive-item__thumb img { transform: scale(1.05); }

.archive-item__body { flex: 1; display: flex; flex-direction: column; }
.archive-item__meta { display: flex; align-items: center; gap: 15px; margin-bottom: 10px; font-size: 12px; }
.archive-item__cat { color: var(--color-accent); font-weight: bold; text-transform: uppercase; letter-spacing: 0.05em; }
.archive-item__date { color: var(--color-gray-mid); font-family: var(--font-en); }
.archive-item__title { font-family: var(--font-serif); font-size: 20px; font-weight: 600;transition: color 0.3s; line-height: 1.5; }
.archive-item:hover .archive-item__title { color: var(--color-accent); }
.archive-item__excerpt { font-size: 14px; color: var(--color-gray-mid); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Pagination */
.page-numbers{ display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 60px; font-family: var(--font-en); font-weight: bold; }
.page-numbers a, .page-numbers span { display: flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; border-radius: 4px; font-size: 14px; }
.page-numbers a { border: 1px solid var(--color-gray-light); transition: 0.3s; }
.page-numbers a:hover { border-color: var(--color-black); background: var(--color-black); color: #fff; }
.pagination__current { background: var(--color-black); color: #fff; }
.pagination__next { padding: 0 20px; width: auto; }
.pagination__dots { border: none; }

/* Sidebar Widgets */
.widget { margin-bottom: 40px; }
.widget-title { font-size: 14px; font-weight: bold; text-transform: uppercase; border-bottom: 1px solid var(--color-gray-light); padding-bottom: 10px; margin-bottom: 20px; letter-spacing: 0.1em; }

.search-form { display: flex; border: 1px solid var(--color-gray-light); border-radius: 4px; overflow: hidden; }
.search-form__input { border: none; padding: 10px; width: 100%; outline: none; }
.search-form__btn { background: var(--color-bg-secondary); border: none; padding: 0 15px; cursor: pointer; }

.side-nav li { border-bottom: 1px dashed var(--color-gray-light); }
.side-nav a { display: flex; justify-content: space-between; padding: 10px 0; font-size: 14px; font-weight: 500; }
.side-nav .count { color: var(--color-gray-mid); font-size: 12px; }
.side-nav a:hover { color: var(--color-accent); padding-left: 5px; }

.ranking-list { counter-reset: rank; }
.ranking-list__item { display: flex; gap: 10px; margin-bottom: 15px; align-items: baseline; }
.ranking-list__num { font-family: var(--font-en); font-weight: bold; font-size: 18px; color: var(--color-accent); width: 20px; flex-shrink: 0; }
.ranking-list__item a { font-size: 14px; font-weight: 500; line-height: 1.5; }
.ranking-list__item a:hover { text-decoration: underline; }

.banner-box { display: block; position: relative; border-radius: 4px; overflow: hidden; }
.banner-box img { width: 100%; transition: transform 0.5s; }
.banner-box:hover img { transform: scale(1.05); }
.banner-box__text { position: absolute; bottom: 0; left: 0; width: 100%; padding: 15px; background: rgba(0,0,0,0.7); color: #fff; text-align: center; }
.banner-box__text p { font-family: var(--font-en); font-weight: bold; margin-bottom: 5px; }
.banner-box__text span { font-size: 12px; }

/* =========================================
   Footer & Sticky Bar (Shared)
   ========================================= */
.footer { background-color: #111; color: #999; padding: 60px 0 20px; font-size: 13px; }
.footer__inner { display: flex; flex-direction: column; gap: 40px; border-bottom: 1px solid #333; padding-bottom: 40px; margin-bottom: 20px; }
.footer__logo { color: #fff; font-family: var(--font-en); font-size: 24px; margin-bottom: 10px; }
.footer__head { color: #fff; margin-bottom: 15px; font-size: 14px; text-transform: uppercase; }
.footer__nav li { margin-bottom: 10px; }
.footer__nav a:hover { color: #fff; text-decoration: underline; }
.footer__copyright { text-align: center; font-size: 11px; }

.sticky-bar { position: fixed; bottom: 0; left: 0; width: 100%; background: #fff; border-top: 1px solid #ddd; padding: 15px 20px; display: flex; justify-content: center; align-items: center; gap: 20px; transform: translateY(100%); transition: transform 0.3s; z-index: 999; box-shadow: 0 -2px 10px rgba(0,0,0,0.05); }
.sticky-bar.is-visible { transform: translateY(0); }
.sticky-bar__text { font-weight: bold; font-size: 13px; display: none; }
.sticky-bar__btn { background: var(--color-accent); color: #fff; padding: 8px 24px; border-radius: 4px; font-weight: bold; font-size: 13px; }

/* =========================================
   Responsive (PC)
   ========================================= */
@media (min-width: 768px) {
    .header__nav { display: block; }
    .header__hamburger { display: none; }
    
    .footer__inner { flex-direction: row; justify-content: space-between; }
    .footer__col { width: 30%; }
    .sticky-bar__text { display: block; }
    .layout-wrapper { flex-direction: row; align-items: flex-start; gap: 60px; }
    .main-column { flex: 1; }
    .sidebar-column { width: 300px; flex-shrink: 0; position: sticky; top: 100px; }
    
    .archive-item__link { flex-direction: row; }
    .archive-item__thumb { width: 280px; height: 180px; flex-shrink: 0; }
    /* .archive-item__title { font-size: 24px; } */
}


/* =========================================
   Single Post Specific Styles
   ========================================= */

/* Post Header */
.post-header { margin-bottom: 60px; text-align: center; }
.post-meta { display: flex; justify-content: center; gap: 15px; margin-bottom: 20px; align-items: center; }
.category-label { background: var(--color-accent); color: #fff; font-size: 11px; padding: 4px 10px; font-weight: bold; text-transform: uppercase; }
.post-date { font-family: var(--font-en); color: var(--color-gray-mid); font-size: 13px; }

.post-title { font-size: 20px; font-weight: bold; margin-bottom: 30px; font-feature-settings: "palt"; line-height: 1.5; text-align: left;}



.post-thumbnail { margin: 0 0 20px 0; width: 100%; border-radius: 4px; overflow: hidden; }
.post-thumbnail figcaption { font-size: 12px; color: var(--color-gray-mid); text-align: right; margin-top: 5px; }

/* Post Body (Typography Focus) */
.post-body { font-family: var(--font-serif); font-size: 17px; line-height: 1.9; color: #111; margin-bottom: 60px; }
.post-body p { margin-bottom: 1em;  }
.post-lead { font-weight: bold; font-size: 1.1em; color: var(--color-accent); margin-bottom: 3em; }

.post-body h2 { font-family: var(--font-sans); font-size: 20px; font-weight: bold; margin: 3em 0 1.5em; padding-bottom: 10px; border-bottom: 2px solid var(--color-black); }
.post-body h3 { font-family: var(--font-sans); font-size: 19px; font-weight: bold; margin: 2.5em 0 1em; padding-left: 15px; border-left: 4px solid var(--color-accent); }

.post-body blockquote { background: var(--color-bg-secondary); padding: 30px; border-left: 4px solid var(--color-gray-mid); margin: 3em 0; font-style: italic; color: #555; }
.post-body cite { display: block; text-align: right; font-size: 12px; margin-top: 10px; font-style: normal; color: var(--color-gray-mid); }

.post-body ul { background: var(--color-bg-secondary); padding: 30px 30px 30px 50px; border-radius: 4px; margin-bottom: 2em; }
.post-body ul li { list-style: disc; margin-bottom: 10px; }



/* -------------------------------------------
   目次（Table of Contents）のデザイン
   ------------------------------------------- */
#toc_container {background: #fcfcfc;border: 1px solid #ddd; border-radius: 4px; padding: 0px 10px;margin: 30px 0 50px 0;display: block;width: 100%;box-sizing: border-box;}
.toc_title {text-align: center; /* 中央寄せ */font-size: 18px;font-weight: bold;color: #333;margin-bottom: 15px;position: relative;padding-bottom: 10px;}
.toc_title::after {content: "";display: block;width: 60px; height: 3px; background-color: #cda435; margin: 10px auto 0;}
#toc_container ul,
#toc_container ol {list-style: none !important; padding: 0;margin: 0;}
#toc_container ul li,
#toc_container ol li {margin-bottom: 0;padding: 0; list-style: none;}
#toc_container ul li a,
#toc_container ol li a {display: block;padding:8px 0;color: #333;text-decoration: none;border-bottom: 1px dashed #e5e5e5; transition: 0.3s;font-size: 15px;}
#toc_container ul ul,
#toc_container ol ol {margin-left: 20px;}
#toc_container ul ul li a {font-size: 14px;color: #666;}
#toc_container ul li a:hover {color: #cda435; /* カーソルを乗せるとゴールドに */padding-left: 5px; /* 少し右に動く */background-color: #fafafa;}
#toc_container ul {counter-reset: toc-counter;}
#toc_container ul li a::before {content: counters(toc-counter, ".") ". ";counter-increment: toc-counter;color: #cda435;font-weight: bold;margin-right: 5px;}



/* Contextual CTA */
.cta-box { margin: 4em 0; border: 1px solid var(--color-gray-light); padding: 20px; border-radius: 4px; background: #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.cta-box__inner { display: flex; align-items: center; gap: 20px; font-family: var(--font-sans); }
.cta-box__img { width: 100px; flex-shrink: 0; }
.cta-box__label { font-size: 10px; color: var(--color-accent); font-weight: bold; text-transform: uppercase; border: 1px solid var(--color-accent); padding: 2px 6px; display: inline-block; margin-bottom: 5px; }
.cta-box__title { font-size: 16px; margin-bottom: 5px; }
.cta-box__desc { font-size: 12px; color: var(--color-gray-mid); margin-bottom: 15px; }


/* Share Area */
.share-area { margin: 60px 0; text-align: center; }
.share-area__title { font-size: 12px; color: var(--color-gray-mid); margin-bottom: 15px; font-family: var(--font-en); }
.share-area__btns { display: flex; justify-content: center; gap: 10px; }
.share-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; font-size: 12px; font-weight: bold; transition: opacity 0.3s; }
.share-btn--x { background: #000; }
.share-btn--fb { background: #3b5998; }
.share-btn--li { background: #00c300; }
.share-btn:hover { opacity: 0.8; }

/* Related Posts */
.related-posts { border-top: 1px solid var(--color-black); padding-top: 40px; margin-top: 60px; }
.related-posts__head { font-family: var(--font-en); font-size: 20px; margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.related-grid .feed-item__link{display: block;}
.related-grid .feed-item__title{font-size: 18px;}
/* Responsive adjustments */
@media (max-width: 767px) {
    .cta-box__inner { flex-direction: column; text-align: center; }
    .cta-box__img { width: 80px; }
}

/* =========================================
   404 Error Page
   ========================================= */
.error-page { padding: 80px 20px 120px; display: flex; flex-direction: column-reverse; align-items: center; gap: 60px; min-height: 80vh; }
.error-page__content { width: 100%; text-align: center; }
.error-page__label { font-family: var(--font-en); font-size: 14px; font-weight: bold; color: var(--color-accent); letter-spacing: 0.1em; margin-bottom: 20px; display: inline-block; border-bottom: 1px solid var(--color-accent); }
.error-page__title { font-family: var(--font-en); font-size: 42px; line-height: 1.2; margin-bottom: 30px; }
.error-page__desc { font-size: 15px; color: var(--color-gray-mid); margin-bottom: 40px; line-height: 2; }
.error-page__search { max-width: 400px; margin: 0 auto 40px; }
.error-page__visual { width: 100%; max-width: 500px; aspect-ratio: 4/3; overflow: hidden; border-radius: 4px; filter: grayscale(100%); opacity: 0.8; }
.error-page__visual img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 900px) {
    .error-page { flex-direction: row; justify-content: space-between; align-items: center; padding: 120px 20px; }
    .error-page__content { width: 45%; text-align: left; }
    .error-page__search { margin: 0 0 40px 0; }
    .error-page__visual { width: 50%; }
    .error-page__title { font-size: 64px; }
}

/* =========================================
   Privacy Policy Page
   ========================================= */
.policy-content { padding: 60px 0 100px; max-width: 800px; margin: 0 auto; }
.policy-title { font-family: var(--font-en); font-size: 32px; text-align: center; margin-bottom: 40px; letter-spacing: 0.05em; border-bottom: 2px solid var(--color-black); padding-bottom: 20px; }
.policy-lead { margin-bottom: 60px; font-weight: bold; }
.policy-section { margin-bottom: 50px; }
.policy-head { font-size: 18px; font-weight: bold; border-left: 4px solid var(--color-accent); padding-left: 15px; margin-bottom: 20px; line-height: 1.4; }
.policy-subhead { font-size: 16px; font-weight: bold; margin: 30px 0 10px; }
.policy-section p { margin-bottom: 1.5em; text-align: justify; }
.policy-section ul { list-style: disc; padding-left: 20px; margin-bottom: 1.5em; background: var(--color-bg-secondary); padding: 20px 20px 20px 40px; border-radius: 4px; }
.policy-section li { margin-bottom: 0.5em; }
.policy-section a { color: var(--color-accent); text-decoration: underline; }
.policy-section a:hover { text-decoration: none; }
.policy-contact { background: var(--color-bg-secondary); padding: 30px; border-radius: 4px; margin-top: 20px; }
.policy-contact p { margin-bottom: 0.5em; }
.policy-contact p:last-child { margin-bottom: 0; }
.policy-date { text-align: right; color: var(--color-gray-mid); font-size: 14px; margin-top: 40px; border-top: 1px solid var(--color-gray-light); padding-top: 20px; }

@media (min-width: 768px) {
    .policy-title { font-size: 42px; }
    .policy-head { font-size: 20px; }
}

/* =========================================
   Contact Page Specific Styles
   ========================================= */

/* Header Area */
.contact-header { padding: 60px 0 40px; text-align: center; max-width: 700px; margin: 0 auto; }
.contact-title { font-family: var(--font-en); font-size: 36px; margin-bottom: 20px; letter-spacing: 0.05em; }
.contact-desc { font-size: 15px; color: var(--color-gray-mid); line-height: 1.8; text-align: left; }

/* Form Layout */
.contact-form-wrapper { margin-bottom: 80px; background: #fff; }
.contact-form { width: 100%; }
.form-group { margin-bottom: 30px; }

/* Labels */
.form-label { display: block; font-weight: bold; margin-bottom: 10px; font-size: 14px; color: var(--color-black); }
.form-required { display: inline-block; background: var(--color-accent); color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 2px; margin-left: 8px; vertical-align: middle; }
.form-optional { display: inline-block; background: var(--color-gray-light); color: var(--color-gray-mid); font-size: 10px; padding: 2px 6px; border-radius: 2px; margin-left: 8px; vertical-align: middle; }

/* Inputs & Textarea */
.form-input, .form-textarea, .form-select { width: 100%; padding: 15px; border: 1px solid #ccc; border-radius: 4px; font-family: inherit; font-size: 16px; appearance: none; -webkit-appearance: none; background: #fff; transition: border-color 0.3s, box-shadow 0.3s; }
.form-input:focus, .form-textarea:focus, .form-select:focus { outline: none; border-color: var(--color-black); box-shadow: 0 0 0 2px rgba(0,0,0,0.1); }
.form-input::placeholder, .form-textarea::placeholder { color: #ccc; }

/* Select Box Customization */
.form-select-wrap { position: relative; }
.form-select-wrap::after { content: ''; position: absolute; top: 50%; right: 15px; transform: translateY(-50%); width: 0; height: 0; border-style: solid; border-width: 6px 5px 0 5px; border-color: var(--color-gray-mid) transparent transparent transparent; pointer-events: none; }

/* Privacy Check */
.form-privacy-check { margin: 30px 0 40px; text-align: center; }
.checkbox-label { cursor: pointer; display: inline-flex; align-items: center; gap: 10px; }
.checkbox-text { font-size: 14px; }
.checkbox-text a { color: var(--color-accent); text-decoration: underline; }

/* Submit Button */
.form-actions { text-align: center; }
.btn--submit { background: var(--color-black); color: #fff; border: 1px solid var(--color-black); padding: 15px 60px; font-size: 16px; min-width: 200px; transition: all 0.3s; }
.btn--submit:hover { background: #fff; color: var(--color-black); }

/* Additional Contact Info */
.contact-info { background: var(--color-bg-secondary); padding: 40px; border-radius: 4px; text-align: center; margin-bottom: 80px; }
.contact-info__title { font-size: 18px; font-weight: bold; margin-bottom: 15px; border-bottom: 2px solid var(--color-gray-light); display: inline-block; padding-bottom: 5px; }
.contact-info__text { font-size: 15px; margin-bottom: 10px; line-height: 1.8; }
.contact-info__note { font-size: 12px; color: var(--color-gray-mid); margin: 0; }

@media (min-width: 768px) {
    .contact-desc { text-align: center; }
    .contact-form-wrapper { padding: 40px; border: 1px solid var(--color-gray-light); border-radius: 4px; }
}