:root {
    /* 全体の共通パディング基準（縦書きタイトルと揃える） */
    --content-padding-left: 2rem;
}

/* ------------------------------
   基本リセット・初期化設定
------------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Noto Serif JP", serif;
    background: #f9f9f7;
    color: #222;
    position: relative;
}

/* ------------------------------
   汎用型
------------------------------ */
.mt-1 {
    margin-top: 1rem;
}

.mt-12 {
    margin-top: 1.2rem;
}

.mb-12 {
    margin-bottom: 1.2rem;
}

/* ==============================
   <header>（ヘッダー部分）
   - タイトル（縦書き）
   - 説明文（英語）
============================== */
header {
    padding: 4rem var(--content-padding-left);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    z-index: 2;
    background-color: #f9f9f7;
}

/* 縦書きタイトルブロック */
.logo-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

/* 縦書きタイトル文字（例：日蓮宗神奈川県第三部宗務所） */
.title {
    writing-mode: vertical-rl;
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 0.1em;
}

/* 英語による説明文 */
.description {
    margin-top: 1rem;
    max-width: 200px;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ==============================
   <nav>（右上の縦書きナビ）
============================== */
.vertical-nav {
    position: absolute;
    top: 2rem;
    right: 2rem;
    writing-mode: vertical-rl;
    font-size: 0.9rem;
    color: #ccc;
}

.vertical-nav ul {
    list-style: none;
}

/* ==============================
   <main>（コンテンツ本体）
   - .bg-image 背景画像エリア
   - .content 本文ブロック
============================== */

/* 通常時（PC・iPadなど） */
main .bg-image {
    position: relative;
    width: 100%;
    height: 80vh;
    background: url("../imgs/top/main.jpg") no-repeat center center / cover;
    background-attachment: scroll;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    transform: translateZ(0); /* iOSのちらつき対策 */
    will-change: background-position;
    background-color: black;
}

/* 📱 スマホ・タブレット（768px未満）の場合は高さを少し低く */
@media (max-width: 767px) {
    main .bg-image {
        height: 60vh;
    }
}

/* 本文を囲むセクション */
.content {
    position: relative;
    padding: 4rem var(--content-padding-left);
    background: #f9f9f7;
    z-index: 2;
}

/* 縦書き本文（管轄地域の紹介など） */
.main-text {
    /* writing-mode: vertical-rl; ← 必要なら解除 */
    font-family: "Noto Serif JP", serif;
    font-size: 1rem;
    line-height: 2;
    color: #333;
    max-height: 80vh;
    margin: 0; /* autoを使わず左寄せ */
    padding-right: 2rem;
    text-align: justify;
}

/* 「詳しく見る」リンク風スタイル */
.more {
    font-size: 0.9rem;
    color: #444;
    font-weight: bold;
    margin-top: 2rem;
    position: relative;
    cursor: pointer;
    display: inline-block; /* ←inline-blockにすることでmargin-topを反映  */
}

/* 下線アニメーション */
.more::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    height: 1px;
    width: 0;
    background-color: #444;
    transition: width 0.4s ease;
}

.more:hover::after {
    width: 100%;
}

/* ==============================
   SECTION 02（固定画像 + お知らせ）
============================== */

/* 背景画像ブロック */
.fixed-image-section {
    width: 60%;
    height: 60vh;
    background: url("../imgs/top/main_2.jpg") no-repeat right center / cover;
    background-repeat: no-repeat;
    background-size: cover;
}

/* 📱 スマホサイズでの高さ＆幅＆位置調整 */
@media (max-width: 767px) {
    .fixed-image-section {
        height: 30vh;
        width: 77%;
        background-position: right center;
    }
}


/* ul 初期化 */
.news-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 各お知らせ行 */
.news-list li {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding: 1rem 0;
    font-size: 0.95rem;
    gap: 1rem;

    /* 背景画像の幅と揃える */
    width: 60%;
    margin-left: 0;
}

/* スマホ用幅調整 */
@media (max-width: 767px) {
    .news-list li {
        width: 77%;
    }
}

/* 日付部分 */
.news-list .date {
    color: #888;
    width: 7rem;
    flex-shrink: 0;
    font-size: 0.9rem;
}

/* タイトル部分 */
.news-list .news-title {
    flex-grow: 1;
    color: #222;
}

/* 矢印アイコン（必要に応じて） */
.news-list .arrow {
    color: #bbb;
    font-size: 0.8rem;
}
