/* =========================================
   1. 基本設定 (Base Settings)
   ========================================= */
html {
    scroll-behavior: smooth;
}

body {
    /* 英数字はLora、日本語は情緒のある明朝体 */
    font-family: 'Lora', "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
    line-height: 2.1;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    /* background-color: #fff; */
}

/* 第3階層（文章主体）の幅を読みやすく絞る */
main article {
    max-width: 670px; 
    margin: 0 auto;
}

/* ★ここに記述：リンクの基本設定（デフォルトルール） */
a {
    color: #2a579a;
    text-decoration: underline;
    /* text-decoration-color: rgba(42, 87, 154, 0.25); */
    text-decoration-color: rgba(42, 87, 154, 0.77);
    text-underline-offset: 4px;
    transition: all 0.3s ease;
}

.lang-note {
    font-size: 0.85em;     /* メインの文字より少し小さく */
    /* color: #888;            目立ちすぎないグレーに */
    font-style: normal;     /* 常に正体で表示（イタリックの中でも斜めにならない） */
    /* margin-left: 0.3em;      前の文字との隙間  */
    /* display: inline-block;   崩れ防止  */
    /* text-decoration: none;   注釈には下線を引かない（スッキリ見せるため）  */
}

/* a:visited {
    color: #707b7c;
    text-decoration-color: rgba(112, 123, 124, 0.2);
    text-decoration-color: rgba(112, 123, 124, 0.77);
} */

a:hover {
    opacity: 0.7;
    text-decoration-color: currentColor;
    /* text-decoration-color: rgba(42, 87, 154, 0.77); */
}

/* --- 2. 既読のホバー (グレーのままフワッと) --- */
a:visited:hover {
    opacity: 0.7;
    /* text-decoration-color: rgba(112, 123, 124, 0.2); */
    text-decoration-color: rgba(112, 123, 124, 0.77);
    color: #707b7c; /* 色が青に戻らないように固定 */
}

/* 1. 別タブで開くリンクの末尾に「右上矢印」を表示 */
a[target="_blank"]::after {
    /* content: "\2197";       */
    /* content: "\29C9";       */
    /* content: "\1F855";       */
    content: "\279A";      
    /* displayをinline-blockに設定し、重なりを防止 */
    display: inline-block; 
    /* pointer-eventsをnoneにしてアイコンがクリックの邪魔をしないようにする */
    pointer-events: none;
    
    /* font-weight: bold;     記号を太くする  */
    font-size: 0.7em;     
    /* margin-left: 4px;      ここでテキストとの距離を確保 */
    margin-left: 2px;
    vertical-align: super; 
    /* vertical-align: middle;  super（上）より middle（中央）の方が文字と馴染みます  */
    /* opacity: 0.5;           */
    opacity: 0.7;         /* 0.5から0.7へ上げ、少し濃くする */
    transition: opacity 0.3s;
    
    /* リンクの末尾に強制的にくっつけるための設定 */
    text-indent: 0; 
}

/* 2. ホバー時にアイコンを少し強調 */
a[target="_blank"]:hover::after {
    opacity: 1;
}

/* 3. 画像リンク（SNSアイコン等）にはアイコンを出さない */
a[target="_blank"]:has(img)::after {
    content: none;
}

/* --- 1. ヘッダー (サイト名) --- */
header p {
    /* スマホ基準：上の余白を詰め、下もロゴらしく最小限に */
    margin: 15px 0 30px 0; 
    font-size: 1rem; /* 視認性を確保しつつ知的なサイズ(16px) */
    /* text-align: left; */
    text-align: center;
}

/* 開始引用符（“）の右側に余白 */
.open-quote {
    padding-right: 2px;
}

/* 終了引用符（”）の左側に余白 */
.close-quote {
    padding-left: 2px;
}

/* =========================================
   TOP PAGE HEADER (Top Page Only)
   ========================================= */
.top-header {
    text-align: center;
    padding: 5px 0 20px 0; 
}

/* トップページのサイト名（h1）を大きく、印象的に */
.top-header h1 {
    /* font-size: 2.1rem;      1.3rem(第3階層)より大きく */
    font-size: 1.5rem;      
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 10px; /* タグラインとの間隔 */
    letter-spacing: 0.02em;
}

/* キャッチコピー（Tagline）のスタイル */
.top-header .tagline {
    /* font-size: 1.05rem; */
    font-size: 1.17rem;
    /* color: #666; */
    color: #777;
    font-style: italic;     /* 文学的なニュアンス */
    margin: 0;
    line-height: 1.5;
}

header a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    letter-spacing: 0.03em;
}

/* =========================================
   FOOTER (Site Footer & Search)
   ========================================= */

/* 「body > footer」と書くことで、記事内の引用元footer（blockquote footer）への干渉を防ぎます */
body > footer {
    margin: 100px 0 60px 0;
    text-align: center;
    /* border-top: 1px solid #f0f0f0;  */
    /* padding-top: 40px; */
}

/* ★ここに追記：ヘッダーとフッターのロゴリンク専用の設定 */
header p a,
footer p a {
    color: #333;
    text-decoration: none;
}

header p a:visited,
footer p a:visited,
header p a:hover,
footer p a:hover {
    color: #333; /* 既読やホバーでも色を変えない */
}

body > footer p {
    margin: 0 0 30px 0;
}

.footer-description {
    text-align: left;
    line-height: 1.8;
    max-width: 631px;  /* お好みで 500px などに縮めてもOKです */
    margin: 30px auto 20px auto; /* 左右をautoにして中央に寄せ、下の余白も確保 */
}

body > footer a {
    text-decoration: none;
    color: #888;
    font-size: 0.85rem;
    font-weight: normal;
    letter-spacing: 0.08em;
    transition: color 0.3s;
}

body > footer a:hover {
    color: #333;
}

/* SNSアイコンの設定 */
/* 【基本】スマホ用スタイル（ここから書き始める） */
.official-sns {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 15px 0;
    /* gap: 15px; スマホでは間隔を少し狭めに */
    /* gap: 36px; */
    gap: 18px;
}

.official-sns img {
    display: block;
    width: 64px;  /* スマホでの表示サイズ */
    height: 64px; /* HTMLのwidth/heightをCSSで上書き */
    transition: opacity 0.3s;
}

/* 【PC用】ブレイクポイント（例：600px以上）でサイズを大きくする */
@media (min-width: 600px) {
    .official-sns {
        /* gap: 20px;    */
        gap: 88px;
        gap: 80px;
        margin: 20px 0;
    }

    .official-sns img {
        width: 96px;  /* PCでの表示サイズ */
        height: 96px;
    }
}
/* ホバー演出 */
.official-sns a:hover img {
    opacity: 0.7;
}

/* 検索窓のレスポンシブ設定 */
.footer-search {
    width: 100%;          /* 基本は幅100%（スマホで画面いっぱいになる） */
    max-width: 600px;     /* パソコンでも広がりすぎず、かつ貧相に見えない絶妙な幅 */
    margin: 0 auto;       /* 中央寄せ */
    opacity: 0.6;
    transition: opacity 0.3s ease;
    min-height: 45px;
}

.footer-search:hover {
    opacity: 1.0;
}

/* --- Googleカスタム検索のデザイン上書き --- */
.gsc-control-cse {
    font-family: 'Lora', serif !important;
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.gsc-input-box {
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    box-shadow: none !important;
}

button.gsc-search-button-v2 {
    background-color: #2a579a !important; /* リンク色と同じネイビー */
    border-color: #2a579a !important;
    padding: 8px 15px !important;
    border-radius: 0 4px 4px 0 !important;
}

/* --- トップページのスルスル戻るボタン --- */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    /* スマホでの押しやすさを考え、50pxに少し大きくするのがおすすめ */
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #555;
    color: #fff;
    border: none;
    cursor: pointer;
    z-index: 9999;
    
    /* 最初は隠す */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;

    /* ★ここから追加・修正：フォントと配置の調整 */
    font-family: inherit;      /* bodyの'Lora'や明朝体を引き継ぐ */
    font-size: 11px;           /* Loraの場合、少し小さめが上品です */
    font-weight: 500;
    letter-spacing: 0.1em;     /* 字間を広げて視認性をアップ */
    display: flex;             /* 文字を上下左右中央に置くための設定 */
    align-items: center;
    justify-content: center;
    line-height: 1;            /* 縦位置のズレを防止 */
}

/* JavaScriptで表示される時のクラス */
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* 記事タイトル */
h1 {
    /* font-size: 1.5rem;    長文でも画面を占領しすぎないベストサイズ  */
    /* font-size: 1.4rem; */
    /* font-size: 1.3rem; */
    font-size: 1.2rem;
    line-height: 1.6;    /* 3行以上になっても文字が重ならず、美しい */
    font-weight: 500;
    letter-spacing: -0.02em; /* わずかに詰めることで、知的な緊張感を出す */
    /* margin-bottom: 40px; */
    margin-bottom: 30px;
}

/* 各セクションの見出し共通 */
h2 {
    font-size: 1.15rem;   /* 1.35remから少し下げ、h1との差を明確に（約18.4px） */
    font-weight: 500;     /* 太くしすぎず、h1と同じ500で揃える */
    margin-top: 50px;     /* 余白で「区切り」を伝え、文字の圧を逃がす */
    /* margin-bottom: 15px; */
    /* color: #666;           #444より少しだけ明るくして、存在感を和らげる  */
    letter-spacing: 0.05em; /* わずかに字間を広げて「見出し」としての品を出す */
}

/* --- 共通パーツ：紙の背景と正方形 --- */
.paper-canvas {
    background-color: #F8F4EA; /* 画像に近いベージュ系の色、画像を読み込むまでの暫定 */
    background-image: url("/images/paper-bg.webp"); /* パスは適宜調整してください */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-radius: 2px;
}

/* =========================================
   3. 学習記事の共通装飾 (Article Decoration)
   ========================================= */

/* 通常のボックス（ローマ字や英語訳など） */
blockquote, .styled-box {
    margin: 25px 0;
    padding: 25px;
    /* background-color: #fcfcfc;
    border-left: 3px solid #ddd; */
    background-color: #f8f8f8 ;
    border-left: 3px solid #e0e0e0;
}

/* 日本語（ルビ付き）の引用だけ行間を広げる */
blockquote[lang="ja"] {
    line-height: 2.7;
}

/* ローマ字表記（ja-Latn）にLoraを適用 */
[lang="ja-Latn"] {
    font-family: 'Lora', serif;
}

/* 画像引用：背景設定を paper-canvas に移したので、ここはサイズと余白のみ */
.image-quote {
    border-left: none;
    padding: 0;
    background-color: transparent;
    margin: 0 auto 40px;
    width: 100%;
    max-width: 600px;
}

/* 中の文字SVGのサイズ調整 */
.image-quote img {
    width: 100%;
    /* height: auto; */
    height: 100%; /* heightも指定する */
    object-fit: contain; /* 枠の中に比率を保って収める */
    display: block;
    margin: 0 auto;
}

/* 引用の出典（footer）を左寄せにし、読みやすく整える */
blockquote footer {
    margin-top: 15px;
    font-size: 0.85rem; /* 少しだけ小さくして主文と区別 */
    text-align: left;    /* 右寄せから左寄せに変更 */
    color: #888;
    font-style: italic;
    /* line-height: 1.6; */
    /* line-heightを1.6から2.0程度に広げてルビのスペースを確保 */
    line-height: 2.7; 
    padding-left: 1em;   /* 左側に少し余白を作る */
    text-indent: -1em;   /* 1行目だけ戻して、2行目以降を字下げする（ぶら下げインデント） */
}

/* 引用元（cite）の前にはダッシュ（—）を入れると欧米の文献っぽくなります */
blockquote footer::before {
    content: "— ";
}

/* --- 日本語と英語の対照 (Breakdown) --- */
.responsive-dl .word-entry {
    display: flex;
    flex-wrap: wrap;
    /* border-bottom: 1px dashed #eee; */
    /* border-bottom: 1px dashed #ccc; */
    padding: 18px 10px;
    align-items: baseline;
}

/* 最後の .word-entry にだけ線を設置する */
/* .responsive-dl .word-entry:last-child {
    border-bottom: 1px dashed #ccc;
} */

.word-entry:nth-child(odd) {
    /* background-color: #f9f9f9;  ごく薄いグレー  */
    background-color: #fcfcfc;
    background-color: #f8f8f8;
    /* 左右に少し余裕を持たせると、色がついた時に綺麗に見えます */
    /* padding-left: 10px;
    padding-right: 10px; */
    /* border-radius: 4px; */
}
/* 単語リスト(dt)内のローマ字の前に余白を作る */
.word-entry dt span[lang="ja-Latn"] {
    margin-left: 1.2em; /* 0.8emから1.2emに広げて視認性をアップ */
    /* color: #777;        日本語より少し薄くすると、より知的に見えます */
    color: #555;        /* 日本語より少し薄くすると、より知的に見えます */
    font-size: 0.95rem; /* 漢字よりわずかに小さくして強弱をつける（お好みで） */
}

.responsive-dl dt {
    width: 100%;
    font-weight: normal; /* 太字を解除し、通常の太さに戻す */
    font-size: 1.1rem;   /* 必要に応じて、ddと同じサイズ（1.1rem等）に調整 */
    /* margin-bottom: 8px; */
    /* color: #333;          ddと同じ色味に合わせる  */
}

.responsive-dl dd {
    width: 100%;
    /* margin: 0 0 0 10px; */
    margin: 0 0 0 3px;
    /* color: #555; */
}

/* ruby（ふりがな）による漢字の広がりを抑える設定 */
ruby {
    ruby-align: center;
}

/* ルビ（ふりがな）の調整 */
rt {
    /* font-family: sans-serif;  */
    font-size: 0.65rem;
    /* color: #999; */
    color: #666;
    /* ルビが長い場合に漢字を広げすぎないための設定 */
    ruby-overhang: auto; 
    /* ↓ここを追加：ルビを右に移動させる設定 */
    position: relative;
    left: 2px; /* 2px右に移動。1px〜4pxの間で微調整してみてください */
    ruby-position: over;    /* ルビを上側に配置することを明示 */
    padding-bottom: 0.3em;  /* 数値（0.1em〜0.5em）で隙間の広さを調整 */
    /* ===================================================
       ★ここに追記：ユーザー選択・コピー時にルビ（読みがな）を除外する設定
       =================================================== */
    -webkit-user-select: none; /* Safari, Chrome, Edge用 */
    -moz-user-select: none;    /* Firefox用 */
    -ms-user-select: none;     /* 過去のIE/Edge用 */
    user-select: none;         /* 標準プロパティ */
}

.bracket-adj {
    /* margin-right: -0.2em; 漢字を左に引き寄せる */
    margin-right: 0.2em; /* 漢字を右に引き離す？ */
    /* 必要に応じて padding-left: 0.1em; などで全体の微調整も可能 */
}

/* PCサイズ（600px以上）のレイアウト */
@media (min-width: 600px) {
    .responsive-dl dt { width: 45%; margin-bottom: 0; }
    .responsive-dl dd { width: 55%; margin: 0; }
}

/* --- 自分なりのコメント欄 --- */
.my-comment {
    padding: 10px 0;
}

.my-comment p {
    /* margin-bottom: 15px; */
    /* 15pxから、思い切って1.8em〜2.0em程度（文字約2個分）に広げる */
    margin-bottom: 2rem; 
    /* line-heightを2.1から1.8くらいに落とす */
    line-height: 1.8; 
}

/* 日本語テキスト特有の調整（もし必要なら） */
.my-comment p[lang="ja"] {
    /* 英語より少しだけ字間を広げると、日本語の圧迫感が消えて読みやすくなります */
    letter-spacing: 0.02em;
    /* 日本語（ルビ付き）の考察だけ行間を広げる */
    line-height: 2.6; /* 1.8から2.2へ引き上げ、ルビのスペースを確保 */
}

.my-comment p.romaji {
    font-size: 0.9rem;
    /* color: #888; */
}

/* ハッシュタグ風のスタイル */
.category-tag {
    display: inline-block;
    color: #666;            /* #888から少し濃くして、文字として認識しやすく */
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-decoration: underline;      /* 最初から下線を引く */
    text-decoration-color: #ddd;     /* 線だけを薄いグレーにして、主張を抑える */
    text-underline-offset: 5px;      /* Loraの優雅さを邪魔しない位置に線を置く */
    transition: all 0.3s ease;
}

/* ホバー時はnavのリンク色と同期 */
.category-tag:hover {
    color: #2a579a;                  /* 鮮やかなリンク色に変化 */
    text-decoration-color: #2a579a;  /* 下線の色もリンク色に合わせる */
}

.category-tag-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.category-tag-list li {
    margin: 0;
    text-indent: 0;
}

/* --- Comment Quote Style (Revised) --- */
.comment-quote {
    /* margin: 2.5rem 0; */
    margin: 0;
    /* padding: 2.5rem 2rem;   上下の余白を広げて引用符のスペースを確保 */
    padding: 1.9rem 1.4rem;   /* 上下の余白を広げて引用符のスペースを確保 */
    background-color: #f5f5f5; /* 背景色を少し濃くして「別枠感」を強調 */
    border-left: none;      /* 左側の線を削除 */
    position: relative;
    font-family: var(--font-lora), serif;
    border-radius: 4px;     /* わずかに角を丸めて柔らかい印象に */
}

/* 左上の引用符 */
.comment-quote::before {
    content: "“";
    /* font-size: 5rem; */
    font-size: 4rem;
    color: #ddd;            /* 背景が濃くなった分、記号も少し濃く */
    position: absolute;
    top: 10px;
    left: 15px;
    line-height: 1;
}

/* 右下の引用符を追加 */
.comment-quote::after {
    content: "”";
    /* font-size: 5rem; */
    font-size: 4rem;
    color: #ddd;
    position: absolute;
    /* bottom: -10px;          右下に配置 */
    bottom: -26px;
    right: 15px;
    line-height: 1;
}

.comment-quote p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #333;
    font-style: italic;
    position: relative;
    z-index: 1;
    /* text-align: center;     中央寄せにすると、前後の引用符とバランスが取れます */
}

.comment-quote cite {
    display: block;
    text-align: center;     /* 引用符に合わせて引用元も中央に */
    font-size: 0.85rem;
    color: #666;
    font-style: normal;
    letter-spacing: 0.05em;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}

/* =========================================
   TIMELINE NAVIGATION (Grid style)
   ========================================= */
/* 【スマホ用】まずベース（2列）を定義 */
.timeline-nav ul {
    list-style: none;
    padding: 0;
    /* margin: 0 0 50px 0; */
    margin: 0 auto 25px auto; /* 左右をautoにして中央寄せ */
    display: grid;
    /* grid-template-columns: repeat(2, 1fr);  スマホは2列  */
    grid-template-columns: repeat(3, 1fr); /* スマホは3列 */
    /* ★ここがポイント：スマホでの最大幅を制限する（例: 250px） */
    max-width: 250px;
    /* 15pxは「上下の間隔」、10pxが「左右の間隔」です */
    gap: 15px 10px;
    gap: 5px 10px;
}

.timeline-nav li {
    margin: 0;
    text-indent: 0;
    text-align: center;
}

.timeline-nav a {
    display: inline-block;
    text-decoration: none;
    font-family: 'Lora', serif;
    font-size: 0.95rem;
    color: #888;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
    /* 下の数字を 4px から減らす（例：上下 1px、左右 8px） */
    /* padding: 4px 8px; */
    padding: 2px 8px;
}

.timeline-nav a:hover {
    color: #2a579a;
    border-bottom-color: #2a579a;
}

/* 【PC用】600px以上で「列数」と「全体の幅」を上書き */
@media (min-width: 600px) {
    .timeline-nav ul {
        /* grid-template-columns: repeat(4, 1fr);  PCは4列  */
        grid-template-columns: repeat(6, 1fr); /* PCは6列 */
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* =========================================
   DOCUMENTARY TIMELINE DESIGN
   ========================================= */

/* 日本語版リンク */
.lang-switch-top p {
    text-align: right; /* 右寄せ */
    margin: 0 0 40px 0; /* 下に少し余白 */
}

.lang-switch-top a {
    font-size: 0.85rem;
    /* color: #999; */
    /* text-decoration: none; */
    /* border-bottom: 1px solid #eee; */
}

/* タイトルと導入文 */
main h2.main-section-title {
    margin-bottom: 10px;
    margin-top: 35px;
    line-height: 1.3; /* 行の高さ自体を少し詰めると、より密着します */
    text-align: center;
}

.intro-text {
    /* text-align: center; */
    /* max-width: 600px; */
    /* max-width: 700px; */
    max-width: 100%;
    margin: 0 auto 30px auto;
    /* color: #666; */
    /* font-style: italic; */
    line-height: 1.8;
}

/* 2. 導入文の中にある「pタグ」の上の余白をピンポイントで消す */
.intro-text p {
    margin-top: 0;
    /* margin-bottom: 40px; タイトルとの間ではなく、その下のタイムラインとの距離を作る */
}

/* ★ここから追記：PCサイズ（600px以上）の時だけ両端揃えにする */
@media (min-width: 600px) {
    .intro-text {
        text-align: justify;
        margin: 0 auto 50px auto;
    }
}

/* タイムライン全体のコンテナ：左側に縦線を引く */
.history-timeline {
    position: relative;
    padding-left: 20px; /* 線と文字の距離 */
    /* margin-bottom: 100px; */
    margin-bottom: 60px;
}

/* 縦の一本線 */
.history-timeline::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 0;
    width: 1px;
    background-color: #eee; /* 薄いグレーの細い線 */
}

/* 各年のセクション */
.timeline-item {
    position: relative;
    margin-bottom: 60px;
    padding-top: 2px;
}

/* 西暦の横にある「起点」のドット */
.timeline-item::before {
    content: "";
    position: absolute;
    /* left: -33px; 縦線の真上に重ねる（padding-left 30px + 半分の調整） */
    left: -25px;
    /* top: 12px; */
    top: 7px;
    width: 10px;
    height: 10px;
    background-color: #fff;
    /* background-color: #FEFBEA; */
    border: 1px solid #ccc;
    border-radius: 50%;
    z-index: 2;
}

/* 西暦（数字） */
.timeline-item time {
    /* font-family: 'Lora', serif; */
    /* font-size: 1.6rem; */
    color: #666;
    font-size: 1.5rem;
    font-weight: 700;
    /* color: #1a1a1a; */
    display: block;
    margin-bottom: 15px;
    line-height: 1;
}

/* エピソードリスト */
.event-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.event-list li {
    position: relative;
    /* ここを 1.5em から 1.0em 程度に減らすと、全体が左に寄ります */
    padding-left: 0;    
    /* 1行目を左に戻す量も、paddingに合わせて調整します */
    text-indent: -0.8em;    
    
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 1.05rem;
    color: #444;
}

/* 箇条書きの小さな点（•） */
.event-list li::before {
    content: "-";
    /* color: #aaa; */
    /* ドットと文字の距離を詰める場合は、ここを少し小さくします */
    margin-right: 0.3em;    
    font-size: 1.1rem;
}

.event-list li:last-child {
    margin-bottom: 0;
}

.event-source {
    display: block;      /* 改行して配置 */
    font-size: 0.85rem;
    color: #888;
    margin-top: 6px;
    font-style: normal;  /* ブラウザ標準の斜体を解除 */
    letter-spacing: 0.02em;
    /* 左側の位置を本文の1文字目に合わせる調整 */
    padding-left: 1.55em; /* 本文の字下げ幅に合わせて調整してください */
}

/* --- PCサイズ（600px以上）の微調整 --- */
@media (min-width: 600px) {
    .history-timeline {
        /* padding-left: 150px; 西暦を左に置くための広い余白 */
        padding-left: 130px;
    }

    .history-timeline::before {
        /* left: 120px; 線を少し右に寄せる */
        left: 100px;
    }

    .timeline-item::before {
        left: -35.5px; /* 線に合わせてドットの位置を調整 */
    }

    .timeline-item time {
        position: absolute;
        left: -150px; /* 線よりさらに左側に配置 */
        width: 100px;
        text-align: right;
        margin-bottom: 0;
    }

    .timeline-item time {
        /* 現状の top: 2px; などを、4px や 6px に増やして調整します */
        top: 3px; 
    }
    
    /* 丸（ドット）を下にずらす */
    .timeline-item::before {
        /* 現状の top: 12px; などを、16px や 18px に増やして調整します */
        top: 10px; 
    }
}

.timeline-footer-note {
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
    text-align: center;
    margin-top: 60px;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    line-height: 1.8;
}

/* =========================================
   NEW: アドセンス広告エリア (Advertisement)
   ========================================= */
/* アドセンス広告のコンテナ */
.ad-container {
    /* margin: 80px auto; コンテナ全体を中央寄せ */
    margin: 40px auto; /* コンテナ全体を中央寄せ */
    width: 100%;       /* スマホでは画面いっぱいに */
    max-width: 600px;  /* パソコンではこの幅で止める（デザインの保護） */
    text-align: center; /* 広告本体を中央に配置 */
    overflow: hidden;
}

/* ラベル部分だけを左寄せにする設定 */
.ad-container::before {
    content: "ADVERTISEMENT";
    display: block;
    font-size: 0.6rem;
    color: #ccc;
    letter-spacing: 0.2em;
    margin-bottom: 15px;
    /* 中央寄せの親要素の中でも、テキストだけ左に寄せる */
    /* text-align: left;  */
}

/* =========================================
   ARTICLE TITLE (H1) - 第3階層および詳細ページ用
   ========================================= */
/* main article の中にある h1 だけを対象にする（トップページを除外） */
main article h1 {
    font-size: 1.25rem;
    /* line-height: 1.6; */
    margin: 40px 0 20px 0;
    /* text-align: left; 基本は左寄せ */
    /* max-width: 900px; */
}

/* .h1-quote {
    font-weight: 700;
    color: #333;
} */

.h1-sub {
    /* font-size: 0.95rem; */
    font-size: 1rem;
    color: #555;
    font-weight: normal;
    /* margin-left: 0.3em; */
}

.h1-brand {
    display: block;
    /* text-align: left; */
    font-size: 0.9rem;
    color: #888;
    font-weight: normal;
    font-family: 'Lora', serif;
    margin-top: 5px;
    padding-left: 10px;
}

/* --- 例外処理：第2階層だけ中央寄せに戻したい場合 --- */
.archive-page h1 {
    text-align: center !important;
    margin: 20px auto !important;
}

/* =========================================
   4. コンテンツグリッド (Content Grid)
   ========================================= */

/* 親要素が nav でも main でも、セクション見出しの上に余白を作る */
nav h2, main h2.grid-title {
    /* margin-top: 80px; */
    margin-top: 40px;
}

/* リスト自体のリセット設定（タグ名 nav ul への依存を解消） */
.quote-grid {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    display: flex;
    flex-direction: column; /* スマホでは縦に積む */
    gap: 15px;
}

/* 記事カード全体のリンク設定 */
.quote-grid a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none; /* 下線を消す（基本設定の上書き） */
    transition: background 0.2s, opacity 0.2s;
}

/* カードのテキスト色設定（既読になっても黒系を維持） */
.quote-grid a, 
.quote-grid a:visited {
    color: #444;
}

/* ホバー時の挙動 */
.quote-grid a:hover {
    background-color: #fcfcfc;
    opacity: 0.8;
}

/* サムネイルボックス：paper-canvas と組み合わせて使用 */
.thumb-box {
    flex-shrink: 0;
    width: 100px;
    overflow: hidden;
    /* background-color を削除しました */
}

.thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* タイトルテキスト */
.quote-card-title {
    flex-grow: 1;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    /* 3行以上になる場合は三点リーダーを表示 */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- 汎用リストスタイル (パターン1: ul/li) --- */
main ul.standard-list {
    list-style: none;
    padding: 0;
    margin: 30px 0 60px 0;
}

main ul.standard-list li {
    position: relative;
    padding-left: 1.2em;
    margin-bottom: 12px;
    line-height: 1.8;
}

/* タイムラインと合わせたハイフンの装飾 */
main ul.standard-list li::before {
    content: "-";
    position: absolute;
    left: 0;
    color: #888;
}

/* --- 汎用説明リストスタイル (パターン2: dl/dt/dd) --- */
main dl.standard-dl {
    margin: 30px 0 60px 0;
}

main dl.standard-dl dt {
    font-weight: normal; /* 太字を解除 */
    /* color: #4a6a96;      先ほどの落ち着いた青 */
    /* font-size: 1.1rem;   ほんの少しだけ大きくして「項目」であることを示す */
    /* font-size: 1rem; */
    margin-top: 25px;
    letter-spacing: 0.03em; /* わずかに字間を広げて品を出す */
}

main dl.standard-dl dd {
    margin-left: 0;
    padding-left: 1.2em;
    color: #555;
    border-left: 2px solid #eee; /* 左側に薄い線を入れて引用風に */
    margin-top: 5px;
}

/* --- PCサイズ（600px以上）のレイアウト切り替え --- */
@media (min-width: 600px) {
    .quote-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr); 
        gap: 20px;
    }

    .thumb-box {
        width: 120px;
    }
    .sp-only {
        display: none;
    }
}

