:root {
--accent: #dd0000;
--text: #222222;
--bg: #f5f5f5;
--footer: #dbdbdb;
}


@media (prefers-color-scheme: dark) {

:root {
--accent: #dd0000;
--text: #eeeeee;
--bg: #171717;
--footer: #303030;
}

}


* {
margin: 0;
padding: 0;
box-sizing: border-box;
}


body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: sans-serif;
}


a {
    color: var(--accent);
    text-decoration: none;
}
.global-nav {
    width: 100%;
    height: 80px;
    /* 固定しない */
    position: relative;
    z-index: 10;
    /* 真下方向の薄い影 */
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.33);
}
.nav-inner {
    width: 100%;
    height: 100%;
    background:var(--accent);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 5% 20px 5%;
}

/* ロゴ */
.site-logo {
    display: block;
    height: 36px;
}
.site-logo img {
    display: block;
    height: 100%;
    width: auto;
}

/* メニュー */
.nav-menu {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-menu li {
    display: flex;
    align-items: center;
}

.nav-menu li:not(:last-child)::after {
    content: "｜";
    margin: 0 12px;
    color:var(--text);
}

.nav-menu a {
    color:#fff;
    text-decoration: none;
    font-size: 16px;
}

.nav-menu a:hover {
    color: var(--bg);
}
/* ハンバーガーボタン */
.menu-button {
    display: none;
    width: 40px;
    height: 40px;
    padding: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px auto;
    background: #222;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #222;
}


/* 書影を流すエリア */

.hero-marquee {
    position: absolute;
    inset: 0;
    overflow: hidden;
}


/* 横方向に並べる */

.hero-track {
    display: flex;
    width: max-content;
    height: 100%;
    animation: hero-scroll 60s linear infinite;
}


/* 書影1セット */

.hero-covers {
    display: flex;
    height: 100%;
    flex-shrink: 0;
}


/* 書影 */

.hero-covers img {
    display: block;
    max-width:100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}


/* 暗くするためのレイヤー */

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}


/* 中央ロゴ */

.hero-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: min(350px, 100vw);
    text-align: center;
}

.hero-logo img {
    display: block;

    width: 100%;
    height: auto;
}


/* マーキー */

@keyframes hero-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* アニメーションを減らす設定 */
@media (prefers-reduced-motion: reduce) {
    .hero-track {
        animation: none;
    }

}

.content {
    width: 70%;
    margin: 0 auto;
    padding: 20px;
}


h2 {
color:var(--text);
margin-bottom: 20px;
padding: 5px 10px 5px 10px;
border-bottom:2px dotted var(--text);
text-align:center;
}
h2 img{
    max-width:100%;
    height:auto;
}
.spacer_10{height:10px;}
.spacer_20{height:20px;}
.spacer_40{height:40px;}
.spacer_60{height:60px;}
.news-list {
    margin: 0;
    padding: 0;
}
.attention{
color:var(--text);
margin-bottom: 20px;
padding: 5px 10px 5px 10px;
border-bottom:1px solid var(--text);
text-align:center;
}
.list-attention{
    font-size:0.8rem;
    margin-left:1.2rem;
    line-height: 1.6;
}
.news-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    margin: 0;
    padding: 15px 0;
    border-bottom: 1px solid var(--footer);
}

.news-item dt {
    margin: 0;
    padding: 0 20px 0 0;
    font-size: 14px;
    color:var(--text);
}

.news-item dd {
    margin: 0;
    padding: 0 0 0 20px;
    border-left: 1px solid var(--text);
}

.news-item strong {
    display: block;
    font-size: 15px;
    font-weight: bold;
}

.news-item p {
    margin: 6px 0 0;
    font-size: 14px;
    line-height: 1.7;
}
/* バナー */
.banner-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    list-style: none;
}
.banner {
    display: flex;
    justify-content: center;
    align-items: center;
}
.banner-list a:hover{
    opacity:0.8;
    transition: 0.3s;
}
.banner img{
    max-width:100%;
    height:auto;
}

/* 記念号カード */
.book-card {
padding: 20px;
background:var(--footer);
border: 1px solid #ccc;
}
.book-spec,.book-info{
    font-size:0.9rem;
}
.book-info{
    margin:10px 0 0 0;
}

.book-link a{
    padding:8px;
    border:2px solid var(--accent);
    background:var(--text);
    color:var(--bg);
}
.book-link a:hover{
    background:var(--accent);
    color:#fff;
    transition:0.3s;
}
.cover {
float: left;
width: 33%;
margin-right: 16px;
margin-bottom: 10px;
border: 1px solid var(--accent);
display: flex;
justify-content: center;
align-items: center;
}
.cover img{
    max-width:100%;
    height:auto;
}

.book-card::after {
content: "";
display: block;
clear: both;
}
/*表紙・目次コレクション*/
.toc_and_cover-nav{
    list-style-type: none;
    display:flex;
    justify-content: left;
}
.toc_and_cover-nav li{
margin-right:10px;
}
.toc_and_cover-nav  a{
    padding:8px;
    border:2px solid var(--accent);
    background:var(--text);
    color:var(--bg);
}
.toc_and_cover-nav  a:hover{
    background:var(--accent);
    color:#fff;
    transition:0.3s;
}
.toc-cover-collection summary{
    border:var(--accent) 1px solid;
    border-radius:0.3rem;
    color:var(--text);
    padding:0.5rem;
    margin:0 0 0.5rem 0;

}
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
}
.gallery img{width:100%;}
/* ========================================
   壁
======================================== */
.wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0;
    width: 100%;
}

.wall-item {
    margin: 0;
    padding: 0;
    line-height: 0;
}

.wall-item img {
    display: block;
    border:1px solid var(--bg);
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
}
/* =========================
   PDF一覧
   ========================= */
#pdf-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

/* 年ごとのグループ */
.pdf-item {
    border: 1px solid var(--accent);
    border-radius:0.3rem;
    padding: 10px;
    box-sizing: border-box;
}

/* 年 */
.pdf-item h4 {
    margin: 0 0 15px;
    text-align: center;
}
/* PDFリンク */
.pdf-links {
    display: flex;
    gap: 10px;
}
.pdf-links a {
    flex: 1;
    display: block;
    padding:6px 8px 6px 8px;
    border:2px solid var(--accent);
    background:var(--text);
    color:var(--bg);
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    margin-bottom:6px;
}

.pdf-links a:hover {
    background:var(--accent);
    color:#fff;
    transition:0.3s;
}
/* 関係者コメント */
.comment-section {
margin-bottom: 60px;
}


.comment-card {
max-width: 700px;
margin: 0 auto;
}


.comment-card h3 {
text-align: center;
margin-bottom: 10px;
}

.comment-body h4 {
margin-bottom: 16px;
}


.comment-body p {
line-height: 1.9;

}

.comment-card p{
    color:var(--text);
    text-align: justify;
    line-height: 1.9;
}

.comment-card .author-role {
text-align: center;
margin-bottom: 30px;
font-size: 0.95rem;
opacity: .8;
}

.comment-card figure img{
    max-width: 100%;
}
.comment-card figcaption{
    text-align:center;
}
.comment-section p{
    line-height: 1.9;
}
/* アイコンホバー */

.author-icon {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 20px;
    overflow: visible;
    border-radius: 50%;
    cursor: pointer;
}


.author-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10%;
    display: block;
    border: 3px solid var(--accent);
}



.reader-comments {
    width: 100%;
}

.comment-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 20px 10px 30px;
}
/* 前後コメントへのナビゲーション */
.comment-card .nextandprev {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 100%;
    margin: 40px 0;
}

/* 共通リンク */
.comment-card .nextandprev a {
    position: relative;
    display: inline-block;
    padding: 12px 24px;
    background:var(--accent);
    color:var(--bg);
    font-size: 1rem;
    line-height: 1.5;
    text-decoration: none;
    transition: background-color 0.3s;
}

/* 前のコメント：左向きタグ */
.comment-card .nextandprev .prev {
    margin-left: 12px;
}

.comment-card .nextandprev .prev::before {
    content: "";
    position: absolute;
    top: 0;
    left: -12px;
    width: 0;
    height: 0;
    border-top: 24px solid transparent;
    border-bottom: 24px solid transparent;
    border-right: 12px solid var(--accent);
}

/* 次のコメント：右向きタグ */
.comment-card .nextandprev .next {
    margin-right: 12px;
}

.comment-card .nextandprev .next::before {
    content: "";
    position: absolute;
    top: 0;
    right: -12px;
    width: 0;
    height: 0;
    border-top: 24px solid transparent;
    border-bottom: 24px solid transparent;
    border-left: 12px solid var(--accent)
}

/* ホバー */
.comment-card .nextandprev a:hover {
    color: var(--text);
    transition:  0.1s;
}



/* ========================================
   読者コメント（プラザ）
======================================== */
.comment {
    position: relative;
    padding: 18px;

    /* 付箋らしいサイズ感 */
    min-height: 180px;

    /* 黄色 */
    background: #fff9c4;

    /* 付箋の影 */
    box-shadow: 3px 5px 10px rgba(0, 0, 0, 0.18);

    /* 少しだけ傾ける */
    transform: rotate(-1deg);
}
/* 2枚目 */
.comment:nth-child(3n + 2) {
    background: #dff5ff;
    transform: rotate(1deg);
}

/* 3枚目 */
.comment:nth-child(3n) {
    background: #e2f5dc;
    transform: rotate(-0.5deg);
}
.comment:nth-child(4n) {
    background: #f4dfff;
    transform: rotate(1deg);
}

.comment-body {
    margin: 0 0 25px;
    color:#222222;
    line-height: 1.6;
}

.comment-user {
    margin: 0;
    text-align: right;
    color:#222222;
    font-weight: 700;
    font-size: 0.9em;
}
/* ========================================
    年表・沿革
======================================== */
.chronicle {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 0;
}
/* 中央の縦線 */
.chronicle::before {
    content: "";
    position: absolute;
    top: 200px;
    bottom: 128px;
    left: 50%;
    width: 2px;
    background: #dd0000;
    transform: translateX(-50%);
}
/* 1つの出来事 */
.chronicle-item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 100px;
}
.chronicle-year {
    margin: 0 0 8px;
    font-family:"Arial Black",Arial,Helvetica,sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color:var(--accent);
}
.chronicle-image {
    grid-column: 1;
    text-align: right;
}
.chronicle-image img {
    display: inline-block;
    width: 100%;
    max-width: 260px;
    height: auto;
}
.chronicle-content {
    grid-column: 2;
    text-align: left;
}
.chronicle-year {
    margin: 0 0 8px;
    font-size: 2rem;
    font-weight: bold;
    color: #dd0000;
}

.chronicle-event {
    margin: 0 0 12px;
    font-size: 1.3rem;
}

.chronicle-summary {
    margin: 0;
    line-height: 1.8;
}
.chronicle-item:nth-child(even) .chronicle-image {
    grid-column: 2;
    grid-row: 1;

    text-align: left;
}
.chronicle-item:nth-child(even) .chronicle-content {
    grid-column: 1;
    grid-row: 1;
    text-align: right;
}
.chronicle-item:nth-child(even) .chronicle-summary {
    text-align: justify;
}
.tobecontinued{
    font-size:1.2rem;
    text-align:center;
    color:#fff;
    background:var(--accent);
    padding:10px;
    border-radius:6px;
}

.coming-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 60px auto;
}

/* 吹き出し */
.coming-soon-message {
    position: relative;
    max-width: 500px;
    padding: 15px;
    background:var(--bg);
    border: 2px solid var(--accent);
    border-radius: 10px;
    text-align: center;
}

/* 吹き出しの尻尾 */
.coming-soon-message::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -16px;
    width: 28px;
    height: 28px;
    background:var(--bg);
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: translateX(-50%) rotate(45deg);
}

/* メッセージ */
.coming-soon-message p {
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
}

/* キャラクター */
.coming-soon-character {
    margin-top: 30px;

    text-align: center;
}

.coming-soon-character img {
    display: block;

    max-width: 200px;
    width: 100%;
    height: auto;

    margin: 0 auto;
}
/* ========================================
    フッター
======================================== */
footer {
    background: var(--footer);
    text-align: center;
    padding:12px;
}
.share {
    position: relative;
    text-align: center;
    margin: 20px 0;
}

.share button {
    padding: 10px 20px;
    border: 1px solid var(--text);
    border-radius: 4px;
    background: var(--bg);
    color: var(--text);
    font-size:14px;
    cursor:pointer;
}

.share button:hover {
    background: var(--footer);
    transition:0.3s;
}

.copy-message {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 12px);
    transform: translateX(-50%);
    padding: 8px 14px;
    border-radius: 6px;
    background: var(--text);
    color: var(--bg);
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
}

.copy-message::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color:var(--text)
}

.copy-message.show {
    opacity: 1;
    visibility: visible;
}
.footer-nav-menu {
    display: flex;
    align-items: center;
    margin: 12px auto;
    padding: 0;
    list-style: none;
    justify-content: center;
}

.footer-nav-menu li:not(:last-child)::after {
    content: "｜";
    margin: 0 12px;
    color:var(--text);
}

.footer-nav-menu a {
    color:var(--text);
    text-decoration: none;
    font-size: 14px;
}

.footer-nav-menu a:hover {
    background: var(--accent);
}
.return {
    width: 40px;
    height: 40px;
    padding: 0;
    margin:15px auto;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
}
.return::before {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    border-top: 3px solid var(--text);
    border-left: 3px solid var(--text);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -25%) rotate(45deg);
}

/* スマホ */

@media (max-width: 768px) {

.content {
width: 100%;
}
    .global-nav {
        height: 50px;
    }

    .nav-inner {
        padding: 0 12px;
    }

    .site-logo {
        height: 30px;
    }

    .menu-button {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 50px;
        left: 0;
        width: 100%;
        padding: 10px 20px;
        flex-direction: column;
        align-items: stretch;
        background: rgb(0 0 0 / 70%);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.12);
    }

    .nav-menu.is-open {
        display: flex;
    }

    .nav-menu li {
        display: block;
        border-bottom: 1px solid #ddd;
    }

    .nav-menu li:not(:last-child)::after {
        display: none;
    }

    .nav-menu a {
        display: block;
        padding: 14px 0;
        font-size: 14px;
    }
    .nav-menu a:active,.nav-menu a:hover{
        color:var(--accent);
    }
/* メニューが開いている状態 */
.menu-button.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-button.is-open span:nth-child(2) {
    opacity: 0;
}

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

    .news-item {
        grid-template-columns: 105px 1fr;
    }

    .news-item dt {
        padding-right: 12px;
        font-size: 12px;
    }

    .news-item dd {
        padding-left: 12px;
    }

    .news-item strong {
        font-size: 14px;
    }

    .news-item p {
        font-size: 13px;
    }



.book-track{
display:block;
}
.book-card {
    width:100%;
}
.book-name{
     font-size:1rem;
}
.cover {
width: 40%;
}
.comment-list {
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
        padding: 15px 5px 25px;
}

.comment {
    min-height: 160px;
    padding:18px;
}

.comment-body {
    line-height: 1.7;
}

    .comment-card .nextandprev {
        gap: 12px;
        margin: 30px 0;
    }

    .comment-card .nextandprev a {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .comment-card .nextandprev .prev {
        margin-left: 8px;
    }

    .comment-card .nextandprev .prev::before {
        left: -8px;
        border-top-width: 21px;
        border-bottom-width: 21px;
        border-right-width: 8px;
    }

    .comment-card .nextandprev .next {
        margin-right: 8px;
    }

    .comment-card .nextandprev .next::before {
        right: -8px;
        border-top-width: 21px;
        border-bottom-width: 21px;
        border-left-width: 8px;
    }



.chronicle {
    padding: 40px 20px;
}

    .chronicle::before {
        top:50px;
        bottom:60px;
        left: 10px;
    }

    .chronicle-item {
        display: block;
        background:var(--footer);
        padding:15px;
        margin-bottom: 60px;
    }

    .chronicle-image,
    .chronicle-content,
    .chronicle-item:nth-child(even) .chronicle-image,
    .chronicle-item:nth-child(even) .chronicle-content {
        text-align: left;
        grid-column: auto;
        grid-row: auto;
    }

    .chronicle-image {
        margin-bottom: 8px;
    }
    .tobecontinued{
        font-size: 1rem;
        margin:20px 0 20px 30px;
        width:90%;
    }

.book-spec,.book-info{
    font-size:0.8rem;
}
.gallery {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
}
.toc_and_cover-nav{
    justify-content: space-between;
}
.toc_and_cover-nav li{
font-size:0.7rem;
}
.wall {
    grid-template-columns: repeat(3, 1fr);
}

#pdf-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    }

.pdf-item {
    padding: 10px;
    }

.pdf-item h4 {
    margin-bottom: 10px;
}
.pdf-links {
    flex-direction: column;
    gap: 5px;
    }

.pdf-links a {
    padding: 8px 5px;
    }
.banner-list {
grid-template-columns: 1fr;
}
/* メッセージ */
.coming-soon-message p {
    font-size: 13px;
    line-height: 1.5;
}
footer{
    font-size:0.8rem;
}
.footer-nav-menu li a{
    font-size:0.8rem;
}
.hero__image,
.hero__logo {
width: 100%;
    width: min(500px, 100vw);
}

}