@charset "utf-8";

/* ========================================================
   1. CSS Custom Properties (改善された配色)
======================================================== */
:root {
    /* Color Palette - より視認性の高い配色 */
--color-primary: #4B3832; /* メインテキスト（濃茶） */
    --color-secondary: #79655D; /* サブテキスト（茶色） */
    --color-accent: #59869E; /* アクセント（青緑・藍色系） */
    --color-accent-light: #B2CDD9; /* 薄いアクセント（水浅葱系） */
    --color-accent-hover: #406173; /* ホバー時のアクセント */
    --color-background: #FFFEF9; /* メイン背景（純白に近い） */
    --color-background-alt: #F5F0E5; /* サブ背景（薄いベージュ・白茶系） */
    --color-background-card: #FFFFFF; /* カード背景（純白） */
    --color-background-site: #FAF6F0; /* ページ外背景 */
    --color-link: #59869E; 
    --color-link-hover: #4B3832; 
    --color-border: #D8CDBE; /* ボーダー（利休茶系） */
    --color-border-light: #EFE9E0; /* 薄いボーダー */    
    /* Typography */
    --font-size-base: 1rem;
    --font-size-small: 0.875rem;
    --font-size-tiny: 0.8rem;
    --line-height-base: 1.85;
    --letter-spacing: 0.04em;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 3.5rem;
    --header-height: 70px;

    /* Layout */
    --content-width: 75rem;
    --button-max-width: 50rem;

    /* Effects */
    --shadow-sm: 0 2px 8px rgba(44, 36, 25, 0.08);
    --shadow-md: 0 4px 16px rgba(44, 36, 25, 0.10);
    --shadow-lg: 0 8px 24px rgba(44, 36, 25, 0.12);
    --shadow-card: 0 2px 12px rgba(44, 36, 25, 0.06);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
}

/* ========================================================
   2. Base & Typography
======================================================== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    color: var(--color-primary);
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-color: var(--color-background-site);
    font-family: 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', 'HG明朝E', 'MS P明朝', 'MS 明朝', serif;
    line-height: var(--line-height-base);
    letter-spacing: var(--letter-spacing);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Link */
a {
    color: var(--color-link);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--color-link-hover);
}

/* Heading */
h1, h2, h3, h4 {
    font-family: 'Yu Gothic', 'YuGothic', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    letter-spacing: 0.08em;
}

h2 { 
    font-size: 1.8rem; 
    margin-bottom: var(--spacing-lg);
    color: var(--color-primary);
}
h3 { 
    font-size: 1.4rem; 
    margin-bottom: var(--spacing-md);
    margin-top: var(--spacing-xl);
    color: var(--color-secondary);
}
h4 { 
    font-size: 1.1rem; 
    margin-bottom: var(--spacing-md);
    margin-top: var(--spacing-lg);
    color: var(--color-secondary);
    font-weight: 500;
}

/* ========================================================
   3. Layout & Structure
======================================================== */

/* Main Content */
main {
    max-width: var(--content-width);
    min-height: 100vh;
    margin: 0 auto;
    padding-top: var(--header-height);
	padding-bottom: 3rem; /* ← 追加（footerとの距離を安定化） */
	background: var(--color-background);
    box-shadow: var(--shadow-lg);
    position: relative;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 254, 251, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--spacing-md);
}

/* サイトタイトル「風のささやき」強調 */
header > h1 {
    font-size: 1.6rem; 
    font-weight: 600; 
    letter-spacing: 0.12em;
}

header > h1 a {
    color: var(--color-primary);
    text-decoration: none;
    position: relative;
    /* 前回修正箇所: サブタイトル分のスペースを確保 */
    padding-bottom: 12px; 
}

header > h1 a:hover {
    color: var(--color-primary); 
}

header > h1 a::after {
    content: attr(data-title);
    position: absolute;
    /* 前回修正箇所: padding-bottomと合わせて適切な位置に配置 */
    bottom: -2px; 
    left: 0;
    font-size: 0.4em;
    color: var(--color-secondary);
    opacity: 0.7; 
    letter-spacing: 0.05em;
}

/* Navigation */
nav.menu {
    font-family: 'Yu Gothic', sans-serif;
}

nav.menu > ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

nav.menu > ul > li {
    position: relative;
}

nav.menu a {
    font-size: 0.9rem;
    color: var(--color-secondary);
    font-weight: 500;
    padding: var(--spacing-xs) 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition-fast);
    display: block;
}

nav.menu a:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
    text-decoration: none;
}

/* Dropdown Menu */
nav.menu ul ul {
    list-style: none;
    padding: var(--spacing-xs) 0;
    margin: 0;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 140px;
    background: var(--color-background-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    display: none;
    opacity: 0;
    transform: translateY(-8px);
    transition: var(--transition-fast);
}

nav.menu ul > li:hover > ul {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

nav.menu ul ul li {
    white-space: nowrap;
}

nav.menu ul ul a {
    padding: var(--spacing-xs) var(--spacing-sm);
    border-bottom: none;
    font-size: 0.85rem;
}

nav.menu ul ul a:hover {
    background: var(--color-background-alt);
}

/* Menu Toggler */
.menu-toggler {
    display: none;
}

/* Article Sections */
main article {
    padding: var(--spacing-lg) var(--spacing-lg);
}

main article:not(:last-child) {
    border-bottom: 1px solid var(--color-border-light);
}

main article:first-child {
    padding-top: var(--spacing-md);
}

/* ========================================================
   4. Top Section Components
======================================================== */

/* Top Message - スペース調整 */
.top-message {
    font-size: 1.1rem;
    font-weight: 400;
    text-align: center;
    color: var(--color-secondary);
    padding: var(--spacing-sm) 0;
    margin: 0 0 var(--spacing-md) 0;
    line-height: 1.8;
}

/* Media Info Wrapper */
.media-info-wrapper {
    display: flex;
    gap: var(--spacing-lg);
    align-items: flex-start;
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--color-background-alt);
    border-radius: 12px;
    border: 1px solid var(--color-border-light);
}

/* Hero Image */
.hero-image-container {
    flex-shrink: 0;
    width: 280px;
    height: 280px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    transition: var(--transition-base);
    background: var(--color-background-card);
}

.hero-image-container:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Top Info Main */
.top-info-main {
    flex-grow: 1;
}

.top-info-main dl {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: var(--spacing-xs) var(--spacing-md);
    margin-bottom: var(--spacing-md);
    font-family: 'Yu Gothic', sans-serif;
    padding: 0;
}

.top-info-main dt {
    font-weight: 600;
    color: var(--color-accent);
    padding-top: var(--spacing-xs);
    grid-column: 1 / 2;
}

.top-info-main dd {
    grid-column: 2 / 3;
    margin: 0;
}

.top-info-main dd ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.top-info-main dd li {
    margin-bottom: var(--spacing-xs);
    font-size: var(--font-size-small);
    line-height: 1.6;
}

.top-info-main dd a {
    transition: var(--transition-fast);
}

.top-info-main dd a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

/* Radiotalk iframe */
.top-info-main iframe {
    display: block;
    margin-top: var(--spacing-md);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    width: 100%;
    max-width: 460px;
}

/* Update Box */
.box {
    margin-bottom: var(--spacing-lg);
}

.scrollbox {
    overflow-y: auto;
    padding: var(--spacing-sm);
    background: var(--color-background-alt);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: var(--font-size-small);
    max-height: 215px;
    line-height: 1.7;
}

.scrollbox::-webkit-scrollbar {
    width: 8px;
}

.scrollbox::-webkit-scrollbar-track {
    background: transparent;
}

.scrollbox::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}

.scrollbox::-webkit-scrollbar-thumb:hover {
    background: var(--color-secondary);
}

.scrollbox dt {
    font-weight: 600;
    color: var(--color-primary);
    margin-top: var(--spacing-sm);
}

.scrollbox dt:first-child {
    margin-top: 0;
}

.scrollbox dd {
    margin-left: 0;
    color: var(--color-secondary);
    padding-bottom: var(--spacing-xs);
    margin-bottom: var(--spacing-xs);
    border-bottom: 1px dotted var(--color-border);
}

.scrollbox dd:last-child {
    border-bottom: none;
}

/* ========================================================
   5. Works Section Components
======================================================== */

/* Section Headers */
main article h2 {
    position: relative;
    padding-left: var(--spacing-md);
    text-align: left;
    color: var(--color-accent);
}

main article h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-accent), var(--color-accent-light));
    border-radius: 2px;
}

main article h3 {
    position: relative;
    padding-left: var(--spacing-sm);
}

main article h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 70%;
    background: var(--color-accent-light);
    border-radius: 2px;
}

/* Content TOC (Card Style) - 視認性向上 */
ul.content-toc {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-lg) 0;
    display: grid;
    gap: var(--spacing-sm);
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

ul.content-toc > li {
    display: block;
    /* 【修正】Newアイコンが小さくなったため、標準のパディングに戻す */
    padding: var(--spacing-md); 
    background: var(--color-background-card);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    transition: var(--transition-base);
    line-height: 1.6;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

ul.content-toc > li.new::before {
    content: "New";
    position: absolute;
    top: 0;
    right: 0;
    background: var(--color-accent);
    color: white;
    /* 【修正】フォントサイズを0.7remに縮小 */
    font-size: 0.7rem; 
    /* 【修正】パディングを2px 8pxに縮小 */
    padding: 2px 8px; 
    border-bottom-left-radius: 10px;
    font-family: 'Yu Gothic', sans-serif;
    font-weight: 600;
    letter-spacing: 0.05em;
}

ul.content-toc > li a {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
    transition: var(--transition-fast);
}

ul.content-toc > li a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

ul.content-toc > li .description {
    display: block;
    font-size: var(--font-size-small);
    color: var(--color-secondary);
    line-height: 1.5;
}

ul.content-toc > li:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}

/* Buttons - 視認性とレイアウト改善 */
.btn {
    display: inline-block;
    padding: 0.7rem 1.6rem;
    margin: var(--spacing-xs) var(--spacing-xs) var(--spacing-xs) 0;
    background: var(--color-background-card);
    border: 2px solid var(--color-accent);
    border-radius: 28px;
    color: var(--color-accent);
    font-family: 'Yu Gothic', sans-serif;
    font-size: var(--font-size-small);
    font-weight: 600;
    transition: var(--transition-fast);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    background: var(--color-accent);
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
    border-color: var(--color-accent-hover);
    box-shadow: var(--shadow-md);
}

/* Button Group - 画面いっぱいではなく中央寄せ */
.column {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin: var(--spacing-md) auto;
    max-width: var(--button-max-width);
    justify-content: flex-start;
}

.column-4 {
    justify-content: flex-start;
}

.column-4 > a {
    flex: 0 1 auto;
    min-width: 120px;
}

/* Content History */
ul.content-history {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul.content-history li {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px dotted var(--color-border);
    line-height: 1.7;
}

ul.content-history li:last-child {
    border-bottom: none;
}

ul.content-history a {
    font-weight: 500;
    color: var(--color-primary);
    transition: var(--transition-fast);
}

ul.content-history a:hover {
    color: var(--color-accent);
}

ul.content-history .description {
    font-size: var(--font-size-small);
    color: var(--color-secondary);
    margin-left: var(--spacing-sm);
}

/* ========================================================
   6. Footer
======================================================== */
footer {
    padding: var(--spacing-md) var(--spacing-lg);
    color: var(--color-secondary);
    text-align: center;
    border-top: 1px solid var(--color-border-light);
    font-size: var(--font-size-tiny);
    font-family: 'Yu Gothic', sans-serif;
    background: rgba(255, 254, 251, 0.97);
    backdrop-filter: blur(12px);
    line-height: 1.6;
}

footer a {
    color: var(--color-secondary);
    transition: var(--transition-fast);
}

footer a:hover {
    color: var(--color-accent);
}

/* ========================================================
   7. Fixed Menu (Page Top Button) - 動作に必要なCSSはすべて揃っています
======================================================== */
.fixed-menu {
    position: fixed;
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    z-index: 9999;
    /* JavaScriptで制御される動作部分 */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.fixed-menu.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fixed-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fixed-menu button {
    width: 54px;
    height: 54px;
    border: none;
    background: var(--color-accent);
    color: white;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    position: relative;
}

.fixed-menu button:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    background: var(--color-accent-hover);
}

.fixed-menu button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    border-top: 3px solid #fff;
    border-left: 3px solid #fff;
    transform: translate(-50%, -40%) rotate(45deg);
    border-radius: 1px;
}

/* ========================================================
   8. Mobile Responsive
======================================================== */
/* モバイルメニュー開閉時のスクロール固定用クラス */
body.no-scroll {
    overflow: hidden;
}

@media only screen and (max-width: 48rem) {
    :root {
        --spacing-xs: 0.5rem;
        --spacing-sm: 0.75rem;
        --spacing-md: 1.25rem;
        --spacing-lg: 2rem;
        --spacing-xl: 2.5rem;
    }

    main {
        padding-top: 60px;
    }

    header {
        height: 60px;
        padding: 0 var(--spacing-sm);
    }

    header > h1 {
        font-size: 1.3rem;
    }

    /* タイトルがモバイルでも重ならないよう、こちら側でも調整 */
    header > h1 a {
        padding-bottom: 8px; 
    }
    
    header > h1 a::after {
        bottom: 0; /* 調整 */
    }


    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }
    h4 { font-size: 1rem; }
    
    /* --------------------------------------------------------
       🚨【追記・修正】ハンバーガーメニューの基本スタイルとアニメーション
    -------------------------------------------------------- */
    /* ハンバーガーボタンの配置と基本設定 */
    .menu-toggler {
        display: block; 
        width: 30px;
        height: 24px;
        position: absolute;
        right: var(--spacing-sm);
        top: 50%;
        transform: translateY(-50%);
        padding: 0;
        border: none;
        background: transparent;
        z-index: 1001; 
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        cursor: pointer;
    }

    /* ハンバーガーボタンの棒のスタイル */
    .menu-toggler span {
        display: block;
        width: 100%;
        height: 3px; /* 棒の太さ */
        background-color: var(--color-primary); 
        border-radius: 2px;
        transition: var(--transition-base);
        transform-origin: 1px 50%;
    }

    /* ハンバーガーアイコンを「X」に変換するアニメーション */
    .menu-toggler.is-active span:nth-child(1) {
        transform: translateY(10.5px) rotate(45deg); 
    }

    .menu-toggler.is-active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggler.is-active span:nth-child(3) {
        transform: translateY(-10.5px) rotate(-45deg);
    }
    /* -------------------------------------------------------- */
    
    /* モバイルメニューのオーバーレイ設定 (JavaScriptのクラスis-activeで制御) */
    nav.menu {
        position: fixed;
        top: 60px; /* ヘッダーの高さ(60px)から開始 */
        left: 0;
        width: 100%;
        height: calc(100vh - 60px); /* 画面全体 - ヘッダー */
        background: var(--color-background); /* 背景色を設定 */
        z-index: 999;
        overflow-y: auto;
        padding: var(--spacing-lg) var(--spacing-md);
        
        /* デフォルトで非表示 */
        visibility: hidden;
        opacity: 0;
        transform: translateX(100%);
        transition: var(--transition-base);
    }
    
    /* メニューがアクティブな時の表示 */
    nav.menu.is-active {
        visibility: visible;
        opacity: 1;
        transform: translateX(0);
    }

    /* モバイルメニュー内のリスト配置を縦に */
    nav.menu > ul {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }

    /* モバイルメニュー内のリンクスタイル */
    nav.menu a {
        font-size: 1.1rem; /* リンクを大きく */
        padding: var(--spacing-sm) 0;
        border-bottom: none;
    }
    nav.menu a:hover {
        border-bottom: none;
    }
    
    /* モバイルメニューでのドロップダウン非表示（フラット化） */
    nav.menu ul ul {
        position: static;
        display: block;
        opacity: 1;
        transform: none;
        background: transparent;
        border: none;
        box-shadow: none;
        padding-left: var(--spacing-md);
    }
    
/* Englishリンクのモバイル対応 */
	#mainMenu > ul > li.menu-english {
    margin-top: var(--spacing-md);
	}

    /* Top Section Mobile */
    .top-message {
        font-size: 0.95rem;
        padding: var(--spacing-xs) 0;
        margin-bottom: var(--spacing-sm);
    }

    .media-info-wrapper {
        flex-direction: column;
        gap: var(--spacing-md);
        padding: var(--spacing-sm);
    }

    .hero-image-container {
        width: 100%;
        height: auto;
        padding-bottom: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .top-info-main dl {
        grid-template-columns: 1fr;
        gap: var(--spacing-xs);
    }

    .top-info-main dt {
        grid-column: 1 / 2;
        margin-top: var(--spacing-sm);
    }

    .top-info-main dt:first-of-type {
        margin-top: 0;
    }

    .top-info-main dd {
        grid-column: 1 / 2;
    }

    /* Article Spacing */
    main article {
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    main article:first-child {
        padding-top: var(--spacing-sm);
    }

    /* Content Cards */
    ul.content-toc {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    ul.content-toc > li {
        /* 【修正】Newアイコンの小型化により、モバイルでの標準パディング(1.25rem)に戻す */
        padding: var(--spacing-md);
    }

    /* Fixed Menu */
    .fixed-menu {
        bottom: var(--spacing-md);
        right: var(--spacing-md);
    }

    .fixed-menu button {
        width: 48px;
        height: 48px;
    }

    /* Scrollbox */
    .scrollbox {
        max-height: 180px;
    }
}

/* ===============================================
   Poem Card Layout Style
   For: autumn-a.html and similar haiku collections
   =============================================== */

.poem-group {
  margin-bottom: 4rem;
}

.poem-group h4 {
  font-family: 'Playfair Display', serif;
  font-weight: normal;
  letter-spacing: 0.1em;
  font-size: 1.2rem;
  margin-top: 2.5rem;
  position: relative;
  color: var(--text-main, #3b2f25);
}

.poem-group h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 60px;
  height: 2px;
  background: var(--color-accent, rgba(89,134,158,0.6));
}

.poem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.poem-card {
  display: block;
  padding: 1.2rem 1.4rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 10px rgba(44, 36, 25, 0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.poem-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(44, 36, 25, 0.15);
}

.poem-card p {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 0.4rem;
}

.poem-card span {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .poem-grid {
    grid-template-columns: 1fr;
  }
  .poem-card {
    padding: 1rem 1.2rem;
  }
}


/* ========================================================
   Haiku / Poem Page Styles (整理・統合版)
   ======================================================== */


/* ---- 詩ページ本体 ---- */
.poem-detail.no-image {
  max-width: 880px;
  margin: 6rem auto 0;
  padding: 3rem 3rem 3rem 3.5rem;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 1.5rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
}

/* ---- 俳句本文（中央配置・バー削除） ---- */
.haiku-center {
  text-align: center;
  font-family: "YuMincho", "Noto Serif JP", serif;
  font-size: 1.45rem;
  line-height: 2.2;
  color: #2e261d;
  margin-bottom: 3.2rem;
  letter-spacing: 0.05em;
  padding-left: 0;
  position: relative;
}

.haiku-center::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -1.2rem;
  width: 40px;
  height: 1px;
  background: rgba(80, 80, 80, 0.15);
}

/* ---- 詩説明文（<pre>対応） ---- */
.poem-explanation pre {
  font-family: "Noto Serif JP", serif;
  font-size: 1.05rem;
  color: #40352b;
  line-height: 2;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 0 auto;
  max-width: 90%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 0;
}

/* ---- 戻るボタン（外配置） ---- */
.back-button-wrapper.outer {
  text-align: center;
  margin: 2.5rem auto 5rem;
}

.back-button {
  display: inline-block;
  font-family: "Noto Serif JP", serif;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: #3b2f25;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.15);
  padding: 0.6rem 1.6rem;
  border-radius: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.back-button:hover {
  background: rgba(240, 236, 230, 0.85);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* ---- フェードアニメーション ---- */
@keyframes fadeInSoft {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- 詩ページの日付・注記 (#2015 夏に) ---- */
.note {
  text-align: right;
  font-family: "Noto Serif JP", serif;
  font-size: 0.95rem;
  color: rgba(60, 50, 40, 0.65);
  margin-top: 1.8rem;
  letter-spacing: 0.05em;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 0.8rem;
  font-style: italic;
  transition: color 0.3s ease, letter-spacing 0.3s ease;
}

.note:hover {
  color: rgba(60, 40, 20, 0.9);
  letter-spacing: 0.08em;
}
.poem-explanation pre {
  font-family: "Noto Serif JP", serif;
  font-size: 1.05rem;
  color: #40352b;
  line-height: 2;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 0 auto;
  max-width: 90%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 0;
}
.poem-header {
  text-align: center;
  margin-bottom: 2.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.poem-title {
  font-family: "YuMincho", "Noto Serif JP", serif;
  font-size: 1.9rem;
  color: #2e241c;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.poem-kigo {
  font-size: 0.9rem;
  color: #666;
  font-family: var(--font-sans);
  margin-top: 0.3rem;   /* ← 上を少し詰める */
  margin-bottom: 0.8rem; /* ← 下を控えめに */
  letter-spacing: 0.03em;
  opacity: 0.9;
}

/* アンカー位置補正（固定ヘッダー分） */
:target {
  scroll-margin-top: 100px; /* 固定ヘッダーの高さに合わせて調整 */
}

/* スムーズスクロール */
html {
  scroll-behavior: smooth;
}
/* ===== Informationボタンスタイル ===== */
.info-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.4rem 0 1rem 0;
}

.info-btn {
  display: inline-block;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 1.6rem;
  background-color: #fafafa;
  color: #333;
  text-decoration: none;
  font-size: 0.9rem;
  font-family: "Noto Sans JP", sans-serif;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.info-btn:hover {
  background-color: #f0f3f6;
  color: #1b3d6e;
  border-color: rgba(27, 61, 110, 0.2);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}
@media (max-width: 600px) {
  .info-buttons {
    flex-direction: column;
  }
  .info-btn {
    width: 100%;
    text-align: center;
  }
}
/* ===== 見出しタイトル（共通） ===== */
.update-title {
  font-family: "YuMincho", "Noto Serif JP", serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: #2e241c;
  text-align: center;
  margin: 0 0 0.8rem 0;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  display: inline-block;
  padding-bottom: 0.2rem;
}
/* ===== Poem Grid & Card (Final Unified Version) ===== */
.poem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
  margin: 1.5rem 0;
  padding: 0 1rem;
}

.poem-card {
  display: block;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 1.0rem;
  box-sizing: border-box;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poem-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.poem-card a {
  display: block;
  color: #333;
  font-family: "Noto Serif JP", serif;
  line-height: 1.8;
  text-decoration: none;
}

.poem-card a:hover {
  color: var(--color-accent);
  text-decoration: none;
}
/* ===============================================
   Poem Card Layout Style
   For: autumn-a.html and similar haiku collections
   =============================================== */
/* ... 既存のスタイル ... */

/* 【追記】短歌のように直接テキストを格納するカードのスタイル */
.poem-card a {
  display: block;
  font-family: 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', serif;
  font-size: 1.05rem; /* 既存のpタグのサイズに合わせる */
  line-height: 1.8;
  color: inherit;
  margin: 0;
}
/* 【追記】短歌ファイルのように、カードの中のaタグを持たない場合のスタイル */
.poem-card {
  font-family: 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', serif;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* --- 【カスタム】verse-foryou.html の画像表示用CSS --- */

.main-visual-container {
    /* コンテンツ幅の65%に制限 */
    max-width: 65%; 
    
    text-align: center; 
    /* 上下余白、左右autoで中央揃え */
    margin: 4rem auto 6rem auto; 
    overflow: hidden; 
    border-radius: 1rem; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); 
}

.main-visual-image {
    width: 100%; /* コンテナ（main-visual-container）に合わせて幅を調整 */
    height: auto; 
    display: block; 
}

/* SPでの調整 */
@media only screen and (max-width: 1000px) {
    .main-visual-container {
        /* モバイルでは画面の80%の幅を使うようにする */
        max-width: 80%; 
        margin-block: 3rem 4rem; 
    }
}
/* 短歌の説明部分の最小の高さを保証し、文字数によるレイアウトのズレを防ぐ */
.poem-explanation p.note:empty {
    /* 中身が空の .note 要素を完全に非表示にする */
    display: none; 
}

/* --- 2列表示の定義を確実に追記/修正（英語） --- */
/* 2列表示の定義（タブレット縦向き/広めのスマホ） */
/* 768px以上の画面幅で2列にする */
@media screen and (min-width: 768px) { 
    .poem-grid.is-2-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===============================================
   Content Table of Contents (content-toc) Style
   （リンク削除に伴う表示維持のための修正）
   =============================================== */

/* リストアイテムの基本スタイル: li要素全体がクリック可能なデザインに見えるようにする */
.content-toc li {
    display: block;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-border-light);
    line-height: 1.6;
    transition: background-color 0.2s;
    cursor: default; /* 非リンクなのでカーソルをデフォルトに */
}

/* ホバー時のスタイルを li に適用 */
.content-toc li:hover {
    background-color: var(--color-background-alt);
}

/* Haiku/Tanka の本文テキストをはっきり見せるためのスタイル (ご提示いただいた内容) */
.content-toc li .haiku-text,
.content-toc li .tanka-text {
    display: block; /* 1行を占有 */
    color: var(--color-primary); /* メインカラー（濃い茶色）で文字を濃く */
    text-decoration: none;
    font-size: 1.15rem;
    font-family: var(--font-serif);
    font-weight: 500; /* 文字をはっきり（太めに）設定 */
}

/* ----- ▲ 童話レイアウト ▲ ----- */

.story-detail {
  max-width: 720px;
  margin: 2em auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 2em;
}
.hero-image img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 1.5em;
}
.story-title {
  text-align: center;
  color: #546c54;
  font-size: 1.8em;
  margin-bottom: 1em;
}
.story-body pre {
  white-space: pre-wrap;
  line-height: 1.8;
}
/* ▼ 今週のおまけ（特集枠） レイアウト調整 ▼ */
.extra-section {
    max-width: 680px;      /* 本文と同じ横幅に合わせる */
    margin: 40px auto;     /* 上下40px・左右自動 → 中央配置 */
    text-align: center;
    background: #f7f7f7;
    padding: 20px 15px;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
}

/* タイトル */
.extra-section .extra-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #444;
    margin-bottom: 15px;
}

/* 画像 */
.extra-section img {
    max-width: 85%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* コメント */
.extra-section .extra-comment {
    font-size: 1.1em;
    font-weight: bold;
    color: #222;
    margin-top: 5px;
}

/* ▼ about部分 レイアウト調整 ▼ */

.about {
  margin: 2em auto;
  max-width: 800px;
}

.about p {
  line-height: 1.8;
}

.about-history h3 {
  margin-top: 1.5em;
  font-size: 1.1em;
}

.about-history ul {
  list-style: none;
  padding-left: 0;
}

.about-history li {
  margin-bottom: 1em;
}

.about-history li strong {
  display: block;
  margin-bottom: 0.2em;
}

/* ===== ZINE Archive ===== */

.zine-archive {
  max-width: 1000px;
  margin: 0 auto;
}

.zine-lead {
  text-align: center;
  color: var(--color-secondary);
  line-height: 1.9;
  margin-bottom: 3rem;
  font-size: 1rem;
}

.zine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin: 2rem 0 4rem;
}

.zine-card {
  background: var(--color-background-card);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition-base);
}

.zine-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.zine-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: var(--color-background-alt);
  max-height: 220px;
}

.zine-card-body {
  padding: 1.4rem;
}

.zine-card-body h3 {
  margin: 0 0 0.8rem;
  padding-left: 0;
  font-size: 1.15rem;
  color: var(--color-primary);
}

.zine-card-body h3::before {
  display: none;
}

.zine-card-body p {
  color: var(--color-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

/* ===== ZINEボタン ===== */

#mainMenu > ul > li.menu-zine {
    background-color: #8B6F9C;
    border-radius: 6px;
    padding: var(--spacing-xs) var(--spacing-sm);
    display: inline-block;
    transition: var(--transition-fast);
}

#mainMenu > ul > li.menu-zine > a {
    color: #FFFFFF !important;
    font-weight: 600;
    border-bottom: none !important;
    padding: 0;
}

#mainMenu > ul > li.menu-zine:hover {
    background-color: #715582;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* ===== Englishボタン ===== */

#mainMenu > ul > li.menu-english {
    background-color: var(--color-accent);
    border-radius: 6px;
    padding: var(--spacing-xs) var(--spacing-sm);
    display: inline-block;
    transition: var(--transition-fast);
}

#mainMenu > ul > li.menu-english > a {
    color: #FFFFFF !important;
    font-weight: 600;
    border-bottom: none !important;
    padding: 0;
}

#mainMenu > ul > li.menu-english:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* ===== Essay note link card ===== */

.essay-archive-page .essay-note-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.65rem;
}

.essay-archive-page .essay-card-title {
  display: block;
  font-size: inherit;
  line-height: inherit;
  opacity: 1;
}

.essay-archive-page .essay-note-label {
  display: block;
  align-self: flex-start;
  font-family: 'Yu Gothic', 'YuGothic', sans-serif;
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  opacity: 0.85;
}

.essay-archive-page .essay-note-card:hover .essay-note-label {
  color: var(--color-accent-hover);
  opacity: 1;
}

.essay-archive-page .essay-note-guide {
  max-width: 46rem;
  margin: 0 auto 2rem;
  color: var(--color-secondary);
  font-size: var(--font-size-small);
  line-height: 1.8;
}
/* ===== Fairytale note link ===== */

.fairytale-note-link {
  margin: 0 0 1.6rem;
  padding: 0 0 1rem;
  border-bottom: 1px dotted var(--color-border);
  color: var(--color-secondary);
  font-size: var(--font-size-small);
  line-height: 1.8;
}

.fairytale-note-link p {
  margin: 0 0 0.4rem;
}

.fairytale-note-link a {
  display: inline-block;
  font-family: 'Yu Gothic', 'YuGothic', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
}

.fairytale-note-link a:hover {
  color: var(--color-accent-hover);
  text-decoration: none;
}

/* ========================================
   めぐり・こみち・ゆくえ
   写真＋言葉の作品
======================================== */

.image-work {
  max-width: 880px;
  margin: 6rem auto 0;
  padding: 3rem 3rem 3rem 3.5rem;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 1.5rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
}

/* 写真 */

.image-work-visual {
  width: min(100%, 680px);
  margin: 2.5rem auto 3.2rem;
}

.image-work-visual img {
  display: block;
  width: 100%;
  height: auto;
}

/* 本文 */

.image-work-text {
  max-width: 580px;
  margin: 0 auto;
}

.image-work-text pre {
  font-family: "Noto Serif JP", serif;
  font-size: 1.05rem;
  color: #40352b;
  line-height: 2;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 0;
  text-align: left;
  background: transparent;
  border: none;
  padding: 0;
}

@media screen and (max-width: 600px) {

.image-work {
  margin: 3rem 1rem 0;
  padding: 2rem 1.25rem 2.5rem;
  border-radius: 1rem;
}
  .image-work-visual {
    width: 100%;
    margin: 2rem auto 2.5rem;
  }

  .image-work-text {
    max-width: 100%;
  }

}
/* ========================================
   めぐり・こみち・ゆくえ　一覧ページ
======================================== */

/* 一覧グリッド */

.image-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;

  max-width: 1040px;
  margin: 4rem auto 0;
}

/* 作品カード */

.image-archive-card {
  min-width: 0;
  overflow: hidden;

  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(120, 100, 85, 0.16);
  border-radius: 1rem;

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.035);
}

/* 写真部分 */

.image-archive-card > a {
  display: block;
  margin: 0;
  padding: 0;
}

.image-archive-card img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

/* タイトルとボタン */

.image-archive-card-body {
  padding: 1.25rem 1.5rem 1.6rem;
}

.image-archive-card-body h3 {
  margin: 0 0 1.3rem;

  font-size: 1.05rem;
  font-weight: normal;
  color: #40352b;
}

/* 「読む」ボタン */

.image-archive-card-body > a {
  display: inline-block;

  padding: 0.55rem 1.4rem;

  color: #5f8da5;
  text-decoration: none;

  border: 1px solid #5f8da5;
  border-radius: 999px;

  font-size: 0.9rem;
  transition: 0.2s ease;
}

.image-archive-card-body > a:hover {
  color: #fff;
  background: #5f8da5;
}


/* ========================================
   タブレット
======================================== */

@media screen and (max-width: 900px) {

  .image-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }

}


/* ========================================
   スマートフォン
======================================== */

@media screen and (max-width: 600px) {

  .image-archive-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2.5rem;
  }

  .image-archive-card > a {
    padding: 1.25rem 1.25rem 0;
  }

  .image-archive-card-body {
    padding: 1.2rem 1.25rem 1.4rem;
  }

}

/* ========================================
   めぐり・こみち・ゆくえ
   一覧カード：共通article指定を解除
======================================== */

main article.image-archive-card,
main article.image-archive-card:first-child,
main article.image-archive-card:not(:last-child) {
  padding: 0;
  border-bottom: none;
}

/* ===============================================
   こみち 個別作品
   =============================================== */

.komichi-work {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* 四コマ＋本文 */
.komichi-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
    gap: 4rem;
    align-items: center;
}

/* 四コマ画像 */
.komichi-visual {
    text-align: center;
}

.komichi-visual img {
    display: block;
    width: 100%;
    max-width: 520px;
    height: auto;
    margin: 0 auto;
}

/* 本文 */
.komichi-text {
    display: flex;
    align-items: center;
}

.komichi-text pre {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    white-space: pre-wrap;
    font-family: 'Yu Mincho', 'YuMincho',
                 'Hiragino Mincho ProN', serif;
    font-size: 1.05rem;
    line-height: 2;
    color: inherit;
}


/* -------------------------------
   スマートフォン
   ------------------------------- */

@media screen and (max-width: 767px) {

    .komichi-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .komichi-visual img {
        max-width: 100%;
    }

    .komichi-text {
        display: block;
    }

}

/* ===============================================
   ポストカード作品
   =============================================== */

.postcard-gallery {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
}


/* タイトル */

.postcard-gallery h2 {
    text-align: center;
}


/* 紹介文 */

.postcard-lead {
    margin: 2rem auto 4rem;
    text-align: center;
    line-height: 2;
}


/* ポストカード一覧 */

.postcard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3.5rem 2rem;
    align-items: start;
}


/* 1作品 */

.postcard-item {
    margin: 0;
}


/* 画像 */

.postcard-item img {
    display: block;
    width: 100%;
    height: auto;

    /* 紙が置かれているような、ごく薄い影 */
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.06);
}


/* 戻る */

.postcard-gallery .back-button-wrapper {
    margin-top: 5rem;
    text-align: center;
}


/* ===============================================
   タブレット
   =============================================== */

@media screen and (max-width: 900px) {

    .postcard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 3rem 1.5rem;
    }

}


/* ===============================================
   スマートフォン
   =============================================== */

@media screen and (max-width: 767px) {

    .postcard-gallery {
        padding-left: 1.2rem;
        padding-right: 1.2rem;
    }

    .postcard-lead {
        margin-bottom: 3rem;
    }

    .postcard-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

}

/* ===============================================
   ポストカード ライトボックス
   =============================================== */

/* 一覧画像はクリックできることを示す */
.postcard-item img {
    cursor: zoom-in;
}


/* 背景 */
.postcard-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 3rem;

    background: rgba(245, 242, 236, 0.94);
}


/* 開いている状態 */
.postcard-lightbox.is-open {
    display: flex;
}


/* 拡大画像 */
.postcard-lightbox img {
    display: block;

    max-width: 92vw;
    max-height: 88vh;

    width: auto;
    height: auto;

    object-fit: contain;

    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
}


/* 閉じるボタン */
.postcard-lightbox-close {
    position: fixed;
    top: 1.5rem;
    right: 2rem;

    width: 44px;
    height: 44px;

    padding: 0;
    border: 0;
    background: transparent;

    color: #777;
    font-size: 2rem;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;
}


/* 閉じるボタン hover */
.postcard-lightbox-close:hover {
    color: #333;
}


/* スマートフォン */
@media screen and (max-width: 767px) {

    .postcard-lightbox {
        padding: 1rem;
    }

    .postcard-lightbox img {
        max-width: 96vw;
        max-height: 85vh;
    }

    .postcard-lightbox-close {
        top: 0.8rem;
        right: 0.8rem;
    }

}