/*
Theme Name: 北斗｜墨と和紙
Theme URI: https://hokuto-kobo.com/
Author: Manus AI
Description: 文芸同人誌「北斗」の公式サイト用テーマ。採用デザイン「墨と和紙」をWordPress向けに実装しています。
Version: 1.6.5
Text Domain: hokuto-washi
*/

/* ============================================================
   文芸同人誌「北斗」 デザイン案 A「墨と和紙」
   コンセプト：和紙の温かみ × 墨色 × 朱のアクセント
              伝統的な日本文学誌の格調を現代のWebで表現
   ============================================================ */

/* ===== Google Fonts（Noto Serif JP） ===== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@300;400;700&display=swap');

/* ===== リセット・基本設定 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Noto Serif JP", "游明朝", "YuMincho", "ヒラギノ明朝 Pro W3", serif;
  font-size: 18px;
  line-height: 2.0;
  color: #1c1208;
  /* 和紙テクスチャ風の背景：温かみのある薄い黄土色 */
  background-color: #f2ead8;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 28px,
      rgba(180,160,110,0.07) 28px,
      rgba(180,160,110,0.07) 29px
    );
}
a { color: #7a2020; text-decoration: none; }
a:hover { text-decoration: underline; color: #b03030; }

/* ===== キーボード利用者向け本文移動リンク ===== */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  padding: 10px 16px;
  color: #fff;
  background: #1c1208;
  border: 2px solid #f2ead8;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.15s ease;
}
.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid #8b2020;
  outline-offset: 2px;
}

/* ===== ヘッダー ===== */
header {
  background: #f8f3e8;
  border-bottom: 2px solid #1c1208;
  position: relative;
}
/* 上部の細い臙脂線 */
header::before {
  content: "";
  display: block;
  height: 5px;
  background: #8b2020;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 20px;
}
.site-title {
  line-height: 1;
}
.site-title img.title-img {
  height: 90px;
  width: auto;
  display: block;
}
/* 題字画像がない場合のフォールバック */
.site-title span.title-text {
  font-size: 3.6rem;
  letter-spacing: 0.7em;
  font-weight: 700;
  color: #1c1208;
  line-height: 1;
  text-shadow: 2px 2px 0 rgba(139,32,32,0.12);
  display: block;
}
.site-subtitle {
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  color: #7a6a50;
  margin-top: 12px;
  font-weight: 300;
}
.header-badge {
  text-align: right;
  font-size: 0.78rem;
  color: #7a6a50;
  line-height: 2.0;
  border-left: 1px solid #c8b89a;
  padding-left: 22px;
}

/* ===== ナビゲーション（全て臙脂色に統一） ===== */
nav {
  background: #8b2020;
  border-bottom: 3px solid #6b1010;
}
nav ul {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  list-style: none;
  padding: 0 28px;
  flex-wrap: wrap;
}
nav ul li a {
  display: block;
  color: #f2ead8;
  padding: 14px 26px;
  font-size: 0.98rem;
  letter-spacing: 0.18em;
  transition: background 0.2s, color 0.2s;
  font-weight: 300;
}
nav ul li a:hover,
nav ul li a.active {
  background: #6b1010;
  color: #fff;
  text-decoration: none;
}

/* ===== ページタイトル ===== */
.page-title {
  font-size: 1.6rem;
  color: #1c1208;
  border-bottom: 2px solid #8b2020;
  padding-bottom: 12px;
  margin-bottom: 30px;
  letter-spacing: 0.2em;
  position: relative;
}
.page-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background: #8b2020;
  position: absolute;
  bottom: -4px;
  left: 0;
}

/* ===== 2カラムレイアウト ===== */
.page-wrapper {
  max-width: 1280px;
  margin: 36px auto 52px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 36px;
}

/* 記事内の画像幅で外側の列が画面幅を超えないようにします。 */
.page-wrapper > main,
.page-wrapper > aside { min-width: 0; }

/* ===== 1カラムレイアウト ===== */
.page-content {
  max-width: 1100px;
  margin: 36px auto 52px;
  padding: 0 20px;
}

/* ===== カード共通 ===== */
.card {
  background: #faf6ee;
  border: 1px solid #d4c8a8;
  border-radius: 0;
  box-shadow: 3px 3px 10px rgba(100,80,40,0.10);
}

/* ===== 最新号エリア ===== */
.latest-issue { overflow: hidden; margin-bottom: 28px; }
.latest-issue-header {
  background: #8b2020;
  color: #f2ead8;
  padding: 13px 24px;
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  border-left: 5px solid #6b1010;
}
.latest-issue-body {
  display: flex;
  gap: 36px;
  padding: 30px;
  align-items: flex-start;
}

/* 表紙（面积比4/9倍・ウィンドウサイズに追従） */
/* 560px × 4/9 = 373px */
.cover-area {
  flex: 0 0 clamp(200px, 28vw, 373px);
  max-width: 373px;
  text-align: center;
}
.cover-img {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 7;
  object-fit: cover;
  object-position: top;
  border-radius: 0;
  box-shadow: 6px 6px 20px rgba(100,80,40,0.35);
  display: block;
  border: 1px solid #c8b89a;
}
.cover-caption { font-size: 0.78rem; color: #9a8a70; margin-top: 10px; }

/* 目次（残り幅を占有、最小幅を確保） */
.toc-area { flex: 1; min-width: 0; }
.toc-area h2 {
  font-size: 1.4rem;
  color: #1c1208;
  border-bottom: 1px solid #c8b89a;
  padding-bottom: 10px;
  margin-bottom: 18px;
  letter-spacing: 0.25em;
}
.toc-meta { font-size: 0.85rem; color: #9a8a70; margin-bottom: 18px; letter-spacing: 0.1em; }
.toc-genre { margin-bottom: 16px; }
.toc-genre-label {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  background: transparent;
  color: #8b2020;
  border: 1px solid #8b2020;
  padding: 2px 12px;
  margin-bottom: 7px;
}
.toc-genre-label.essay  { color: #3a6030; border-color: #3a6030; }
.toc-genre-label.poem   { color: #4a3a70; border-color: #4a3a70; }
.toc-genre-label.critic { color: #6a4a10; border-color: #6a4a10; }
.toc-genre-label.misc   { color: #2a5a6a; border-color: #2a5a6a; }
.toc-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.toc-table tr { border-bottom: 1px dotted #c8b89a; }
.toc-table tr:last-child { border-bottom: none; }
.toc-table td { padding: 7px 6px; vertical-align: top; }
.toc-table .work-title  { font-weight: bold; color: #1c1208; width: 55%; }
.toc-table .work-author { color: #6a5a40; width: 35%; }
.toc-table .work-page   { color: #b0a080; font-size: 0.82rem; width: 10%; text-align: right; }
.toc-cut { margin-top: 14px; font-size: 0.82rem; color: #b0a080; }

/* ===== お知らせ ===== */
.notice-section { padding: 22px 26px; margin-bottom: 28px; }
.notice-section h3 {
  font-size: 1.05rem;
  color: #1c1208;
  border-left: 4px solid #8b2020;
  padding-left: 12px;
  margin-bottom: 16px;
  letter-spacing: 0.15em;
}
.notice-list { list-style: none; }
.notice-list li {
  display: flex;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px dotted #d4c8a8;
  font-size: 0.92rem;
  align-items: baseline;
}
.notice-list li:last-child { border-bottom: none; }
.notice-date { color: #8b2020; flex-shrink: 0; font-size: 0.82rem; min-width: 90px; }
.notice-new {
  background: #8b2020;
  color: #f2ead8;
  font-size: 0.68rem;
  padding: 1px 6px;
  margin-right: 5px;
}

/* ===== サイドバー ===== */
.sidebar-block { margin-bottom: 22px; overflow: hidden; }
.sidebar-block-header {
  background: #8b2020;
  color: #f2ead8;
  padding: 10px 16px;
  font-size: 0.88rem;
  letter-spacing: 0.2em;
  border-left: 4px solid #6b1010;
}
.sidebar-block-body { padding: 14px 16px; }

.bn-side-list { list-style: none; }
.bn-side-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dotted #d4c8a8;
  font-size: 0.88rem;
}
.bn-side-list li:last-child { border-bottom: none; }
.bn-thumb {
  width: 40px; height: 57px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid #c8b89a;
  box-shadow: 2px 2px 5px rgba(100,80,40,0.18);
}
.bn-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.bn-thumb-placeholder {
  width: 40px; height: 57px;
  background: #8b2020;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #f2ead8; font-size: 0.5rem; letter-spacing: 0.05em;
}
.bn-info { flex: 1; }
.bn-num { font-weight: bold; color: #1c1208; }
.bn-date { font-size: 0.75rem; color: #9a8a70; }
.sidebar-more { text-align: right; margin-top: 10px; }
.sidebar-more a { font-size: 0.85rem; color: #8b2020; }

.blog-side-list { list-style: none; }
.blog-side-list li {
  padding: 9px 0;
  border-bottom: 1px dotted #d4c8a8;
  font-size: 0.88rem;
}
.blog-side-list li:last-child { border-bottom: none; }
.blog-side-date { font-size: 0.75rem; color: #9a8a70; display: block; margin-bottom: 2px; }

.about-text { font-size: 0.88rem; line-height: 2.0; color: #6a5a40; }
.about-text strong { color: #8b2020; }

/* ===== トップページ末尾：関連リンク（追加は既存バナーの左側へ） ===== */
.literary-guide-links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: stretch;
  gap: 16px;
  width: 100%;
  max-width: 100%;
}
.literary-guide-banner {
  display: block;
  /* デスクトップの「発行情報」と同じ幅。画像の縦横比を保持します。 */
  flex: 0 0 240px;
  width: 240px;
  max-width: 100%;
  min-width: 0;
  padding: 0;
  position: relative;
  box-sizing: border-box;
  color: #fff;
  background: transparent;
  border: 0;
  box-shadow: none;
  text-align: center;
  text-decoration: none;
  line-height: 0;
  cursor: pointer;
}
.literary-guide-banner:hover {
  color: #fff;
  opacity: 0.95;
  text-decoration: none;
}
.literary-guide-banner:active {
  transform: translateY(1px);
}
.literary-guide-banner:focus-visible {
  outline: 3px solid #1457a6;
  outline-offset: 3px;
}
.literary-guide-banner-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  border: 0;
  box-shadow: none;
}

/* ===== バックナンバーページ ===== */
.year-section { margin-bottom: 40px; }
.year-label {
  background: #8b2020; color: #f2ead8;
  padding: 7px 20px; font-size: 0.95rem; letter-spacing: 0.2em;
  display: inline-block; margin-bottom: 16px;
  border-left: 4px solid #6b1010;
}
.bn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
}
.bn-card { overflow: hidden; transition: box-shadow 0.2s; }
.bn-card:hover { box-shadow: 4px 4px 16px rgba(100,80,40,0.20); }
.bn-card-cover {
  width: 100%; height: 220px; overflow: hidden; background: #fff;
  display: flex; align-items: center; justify-content: center;
}
.bn-card-cover img { width: 100%; height: 220px; object-fit: contain; object-position: center; }
.bn-card-cover-placeholder {
  width: 100%; height: 220px;
  background: linear-gradient(160deg, #1c1208 0%, #3a2a14 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #f2ead8;
}
.bn-card-cover-title { font-size: 1.4rem; font-weight: 700; letter-spacing: 0.4em; }
.bn-card-cover-num { font-size: 0.72rem; color: #c8b89a; margin-top: 5px; }
.bn-card-body { padding: 12px 14px; }
.bn-card-no { font-weight: bold; color: #1c1208; font-size: 0.96rem; }
.bn-card-meta {
  min-height: 50px;
  margin-top: 2px;
}
.bn-card-date {
  font-size: 0.78rem;
  color: #9a8a70;
  line-height: 1.35;
}
.bn-card-price {
  margin-top: 2px;
  font-size: 0.78rem;
  color: #9a8a70;
  line-height: 1.35;
}
.bn-card-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  min-height: 31px;
}
.bn-card-actions .btn-download {
  margin-top: 0;
  padding: 6px 8px;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}
.bn-toc-link {
  display: inline-block;
  font-size: 0.82rem;
  color: #8b2020;
  text-decoration: none;
  border-bottom: 1px solid rgba(139, 32, 32, 0.45);
  line-height: 1.5;
}
.bn-toc-link::before {
  content: "▸";
  display: inline-block;
  margin-right: 4px;
  font-size: 0.9em;
}
.bn-toc-link:hover { color: #6b1010; border-bottom-color: #6b1010; }
.bn-toc-link.unavailable { color: #8a8174; border-bottom-color: transparent; cursor: default; }
.bn-toc-link.unavailable::before { color: #8a8174; }
.bn-thumb-placeholder {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; min-height: 62px;
  color: #f2ead8; background: #5b4a32; font-size: 0.72rem; text-align: center; line-height: 1.4;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 7px 14px;
  background: #8b2020;
  color: #f2ead8;
  font-size: 0.82rem;
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}
.btn-download:hover { background: #6b1010; color: #fff; text-decoration: none; }
.btn-download::before { content: "↓"; font-size: 0.9em; }
.btn-download.disabled { background: #bbb; color: #fff; cursor: default; pointer-events: none; }
.btn-download.preparing::before { content: "●"; font-size: 0.62em; }

/* ===== ブログページ ===== */
.blog-post { padding: 26px 30px; margin-bottom: 24px; }
.blog-post-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.blog-post-date { font-size: 0.85rem; color: #9a8a70; }
.blog-post-tag {
  font-size: 0.72rem; background: #8b2020; color: #f2ead8;
  padding: 3px 10px;
}
.blog-post-tag.event  { background: #8b2020; }
.blog-post-tag.news   { background: #3a6030; }
.blog-post-tag.column { background: #4a3a70; }
.blog-post-h { font-size: 1.15rem; font-weight: bold; color: #1c1208; margin-bottom: 14px; letter-spacing: 0.1em; }
.blog-post-h a { color: inherit; }
.blog-post-h a:hover { color: #8b2020; }
.blog-post-body { font-size: 0.95rem; line-height: 2.1; color: #3a2a14; }
.blog-post-body p { margin-bottom: 12px; }
.blog-post-body p:last-child { margin-bottom: 0; }

/* ブログ記事内の写真（1枚） */
.blog-post-body img {
  max-width: 100%; height: auto;
  margin: 16px 0;
  border: 1px solid #d4c8a8;
  box-shadow: 3px 3px 10px rgba(100,80,40,0.15);
  display: block;
}

/* ブログ記事内の写真グリッド（複数枚） */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px; margin: 16px 0;
}
.photo-grid a { display: block; }
.photo-grid img {
  width: 100%; height: 160px; object-fit: cover;
  border: 1px solid #d4c8a8;
  box-shadow: 2px 2px 6px rgba(100,80,40,0.12);
  margin: 0;
}
.photo-caption { text-align: center; font-size: 0.78rem; color: #9a8a70; margin-top: -8px; margin-bottom: 12px; }

/* 写真1枚（左寄せ・テキスト回り込み） */
.photo-float-left {
  float: left;
  margin: 0 20px 16px 0;
  max-width: 280px;
}
.photo-float-left img {
  width: 100%;
  border: 1px solid #d4c8a8;
  box-shadow: 3px 3px 10px rgba(100,80,40,0.15);
}
.photo-float-right {
  float: right;
  margin: 0 0 16px 20px;
  max-width: 280px;
}
.photo-float-right img {
  width: 100%;
  border: 1px solid #d4c8a8;
  box-shadow: 3px 3px 10px rgba(100,80,40,0.15);
}
.clearfix::after { content: ""; display: block; clear: both; }

.arch-list { list-style: none; }
.arch-list li { padding: 8px 0; border-bottom: 1px dotted #d4c8a8; font-size: 0.88rem; }
.arch-list li:last-child { border-bottom: none; }

/* ===== 北斗についてページ ===== */
.about-card { padding: 30px 34px; margin-bottom: 26px; }
.about-card h2 {
  font-size: 1.1rem; color: #8b2020;
  border-left: 4px solid #8b2020; padding-left: 12px;
  margin-bottom: 18px; letter-spacing: 0.12em;
}
.about-card p { font-size: 0.96rem; line-height: 2.1; color: #3a2a14; margin-bottom: 14px; }
.about-card p:last-child { margin-bottom: 0; }
.history-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin-top: 8px; }
.history-table tr { border-bottom: 1px dotted #d4c8a8; }
.history-table td { padding: 9px 6px; vertical-align: top; }
.history-table td:first-child { color: #8b2020; white-space: nowrap; width: 180px; }
.info-dl { font-size: 0.95rem; }
.info-dl dt { font-weight: bold; color: #1c1208; margin-top: 14px; }
.info-dl dd { color: #6a5a40; margin-left: 1em; }

/* 沿革内の歴代表紙 */
.about-page { max-width: 960px; }
.history-cover-grid {
  display: grid;
  gap: 18px;
  margin: 20px 0 8px;
  align-items: start;
}
.history-cover-grid-two { grid-template-columns: repeat(2, minmax(140px, 220px)); }
.history-cover-grid-one { grid-template-columns: minmax(140px, 220px); }
.history-cover-grid figure { margin: 0; }
.history-cover-grid img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid #c8b89a;
  box-shadow: 3px 3px 9px rgba(100,80,40,0.18);
}
.history-cover-grid figcaption {
  margin-top: 6px;
  color: #7a6a50;
  font-size: 0.8rem;
  line-height: 1.5;
  text-align: center;
}

/* 沿革内の創刊号目次 */
.history-document {
  max-width: 640px;
  margin: 22px auto 18px;
}
.history-document figure { margin: 0; }
.history-document img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid #c8b89a;
  box-shadow: 3px 3px 9px rgba(100,80,40,0.18);
}
.history-document figcaption {
  margin-top: 7px;
  color: #7a6a50;
  font-size: 0.8rem;
  line-height: 1.5;
  text-align: center;
}

/* ===== お問い合わせページ ===== */
.contact-form { padding: 30px 34px; }
.contact-form h2 {
  font-size: 1.1rem; color: #8b2020;
  border-left: 4px solid #8b2020; padding-left: 12px;
  margin-bottom: 20px; letter-spacing: 0.1em;
}
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-size: 0.95rem; font-weight: bold; color: #1c1208; margin-bottom: 6px; }
.form-row input[type="text"],
.form-row input[type="email"],
.form-row textarea {
  width: 100%; padding: 10px 14px;
  font-size: 1rem; font-family: inherit;
  border: 1px solid #c8b89a;
  background: #fdf8f0; color: #1c1208;
  transition: border-color 0.2s;
}
.form-row input:focus,
.form-row textarea:focus { outline: none; border-color: #8b2020; background: #fff; }
.form-row textarea { height: 160px; resize: vertical; }
.form-submit {
  background: #8b2020; color: #f2ead8;
  border: none; padding: 12px 40px;
  font-size: 1rem; font-family: inherit;
  cursor: pointer; letter-spacing: 0.15em;
  transition: background 0.2s;
}
.form-submit:hover { background: #6b1010; }
.contact-info { padding: 22px 28px; }
.contact-info p { font-size: 0.92rem; line-height: 2; color: #6a5a40; }

/* ===== Contact Form 7 ===== */
.contact-form { padding: 30px 34px; margin-bottom: 28px; }
.contact-form h2 {
  font-size: 1.1rem; color: #8b2020;
  border-left: 4px solid #8b2020; padding-left: 12px;
  margin-bottom: 16px; letter-spacing: 0.1em;
}
.contact-form-lead, .contact-form-status {
  margin: 0 0 20px; font-size: 0.9rem; line-height: 2; color: #6a5a40;
}
.contact-form .wpcf7-form p { margin: 0 0 18px; }
.contact-form .wpcf7-form label { display: block; font-size: 0.95rem; font-weight: bold; color: #1c1208; }
.contact-form .wpcf7-form-control-wrap { display: block; margin-top: 6px; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  width: 100%; padding: 10px 12px; font: inherit; font-size: 0.92rem;
  color: #1c1208; background: #fffdf8; border: 1px solid #c8b89a;
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: 3px solid rgba(139, 32, 32, 0.25); outline-offset: 1px; border-color: #8b2020; }
.contact-form input[type="submit"] {
  padding: 10px 22px; color: #f2ead8; background: #8b2020; border: none;
  font: inherit; font-size: 0.9rem; cursor: pointer; letter-spacing: 0.1em;
}
.contact-form input[type="submit"]:hover { background: #6b1010; }
.contact-form .wpcf7-not-valid-tip { margin-top: 5px; color: #8b2020; font-size: 0.84rem; }
.contact-form .wpcf7-response-output { margin: 16px 0 0 !important; padding: 10px 12px !important; font-size: 0.88rem; }

/* ===== 会員投稿ページ ===== */
.member-post-card { padding: 30px 34px; margin-bottom: 28px; }
.member-post-card h2 {
  font-size: 1.1rem; color: #8b2020;
  border-left: 4px solid #8b2020; padding-left: 12px;
  margin-bottom: 16px; letter-spacing: 0.1em;
}
.member-post-card h3 { font-size: 1rem; color: #3a2a14; margin: 30px 0 12px; }
.member-post-lead { margin: 0 0 20px; font-size: 0.94rem; line-height: 2; color: #6a5a40; }
.member-post-form p { margin: 0 0 20px; }
.member-post-form label { display: block; font-size: 0.95rem; font-weight: bold; color: #1c1208; }
.member-post-form input[type="text"],
.member-post-form textarea,
.member-post-form input[type="file"] {
  display: block; width: 100%; margin-top: 7px; padding: 10px 12px;
  font: inherit; font-size: 0.94rem; color: #1c1208;
  background: #fffdf8; border: 1px solid #c8b89a;
}
.member-post-form textarea { min-height: 180px; resize: vertical; }
.member-post-form input:focus,
.member-post-form textarea:focus { outline: 3px solid rgba(139, 32, 32, 0.25); outline-offset: 1px; border-color: #8b2020; }
.member-post-form input[type="file"] { padding: 8px; }
.member-post-form .member-post-consent { line-height: 1.8; }
.member-post-form .member-post-consent input { width: auto; margin-right: 7px; }
.member-post-optional { font-weight: normal; color: #6a5a40; font-size: 0.86rem; }
.member-post-submit,
.member-post-login {
  display: inline-block; padding: 11px 24px; color: #f2ead8; background: #8b2020;
  border: none; font: inherit; font-size: 0.95rem; cursor: pointer; letter-spacing: 0.08em;
  text-decoration: none;
}
.member-post-submit:hover,
.member-post-login:hover { background: #6b1010; color: #f2ead8; }
.member-post-notice { margin: 0 0 20px; padding: 12px 15px; line-height: 1.8; border: 1px solid #c8b89a; }
.member-post-notice.is-success { color: #31552a; background: #eff5e9; border-color: #aebf9d; }
.member-post-notice.is-error { color: #7a2020; background: #fbf0ed; border-color: #d9aaa1; }
.member-post-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.member-post-history { margin-top: 32px; padding-top: 22px; border-top: 1px solid #d4c8a8; }
.member-post-history ul { list-style: none; margin: 0; padding: 0; }
.member-post-history li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dotted #d4c8a8; line-height: 1.7; }
.member-post-history li span { flex: 0 0 auto; color: #6a5a40; font-size: 0.86rem; }
.member-post-byline { color: #6a5a40; font-size: 0.9rem; }
.member-post-images { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 18px 0; }
.member-post-images p { margin: 0; }
.member-post-images a { display: block; }
.member-post-images img { width: 100%; height: auto; object-fit: contain; margin: 0; border: 1px solid #d4c8a8; box-shadow: 3px 3px 10px rgba(100,80,40,0.15); }
.member-post-pdf { margin: 18px 0; }
.member-post-pdf a { display: inline-block; padding: 8px 13px; color: #f2ead8; background: #8b2020; text-decoration: none; font-size: 0.9rem; }
.member-post-pdf a:hover { color: #fff; background: #6b1010; text-decoration: none; }

/* ===== 管理者向けメモ ===== */
.admin-note {
  background: #fdf8f0; border: 1px solid #d4c8a8;
  padding: 16px 20px;
  font-size: 0.85rem; color: #6a5a40; margin-bottom: 26px; line-height: 2.0;
}
.admin-note strong { color: #8b2020; }

/* ===== フッター ===== */
footer {
  background: #1c1208;
  color: #c8b89a;
  text-align: center;
  padding: 32px 16px;
  font-size: 0.82rem;
  line-height: 2.2;
  border-top: 4px solid #8b2020;
}
footer a { color: #d4c8a8; }
.footer-nav { margin-top: 10px; }
.footer-nav a { margin: 0 8px; }
/* ===== トップページの訪問者数（目安） ===== */
.visitor-counter-row {
  margin: 18px 2px 2px;
  text-align: right;
  line-height: 1;
  opacity: 0.72;
}
.visitor-counter {
  display: inline-block;
  min-width: 92px;
  min-height: 20px;
  vertical-align: middle;
  color: #6a5a40;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

/* ===== レスポンシブ（スマートフォン対応） ===== */
@media (max-width: 768px) {
  /* 基本フォントサイズ */
  body { font-size: 16px; }

  /* ヘッダー */
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 16px 14px;
    gap: 10px;
  }
  .site-title img.title-img { height: 60px; }
  .site-title span.title-text { font-size: 2.4rem; }
  .header-badge {
    border-left: none;
    border-top: 1px solid #c8b89a;
    padding-left: 0;
    padding-top: 8px;
    font-size: 0.72rem;
    width: 100%;
  }

  /* ナビゲーション */
  nav ul {
    padding: 0;
    flex-wrap: wrap;
  }
  nav ul li {
    width: 50%;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  nav ul li a {
    padding: 12px 14px;
    font-size: 0.9rem;
    text-align: center;
  }

  /* 2カラム → 1カラム */
  .page-wrapper {
    grid-template-columns: minmax(0, 1fr);
    margin: 20px auto 36px;
    padding: 0 12px;
    gap: 20px;
  }
  .page-content {
    margin: 20px auto 36px;
    padding: 0 12px;
  }

  /* 末尾リンクも、1カラム化した「発行情報」と同じ幅にします。 */
  .literary-guide-banner { flex-basis: 100%; width: 100%; }

  /* 最新号エリア */
  .latest-issue-body {
    flex-direction: column;
    align-items: center;
    padding: 20px 16px;
    gap: 20px;
  }
  .cover-area { flex: none; width: 100%; max-width: 300px; }
  .toc-area { width: 100%; }
  .toc-area h2 { font-size: 1.1rem; }
  .toc-table { font-size: 0.85rem; }

  /* バックナンバーグリッド */
  .bn-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* ブログ写真 */
  .photo-float-left,
  .photo-float-right {
    float: none;
    max-width: 100%;
    margin: 0 0 16px 0;
  }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .member-post-images { grid-template-columns: repeat(2, 1fr); }
  .member-post-images img { height: auto; }

  /* ページタイトル */
  .page-title { font-size: 1.2rem; }

  /* 沿革ページ */
  .history-table,
  .history-table tbody,
  .history-table tr,
  .history-table td { display: block; width: 100%; }
  .history-table tr { padding: 12px 0; }
  .history-table td { padding: 3px 0; }
  .history-table td:first-child { width: auto; }
  .history-cover-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* フッター */
  footer { font-size: 0.75rem; padding: 24px 12px; }
  .footer-nav a { margin: 0 5px; }
}

@media (max-width: 480px) {
  /* 極小画面（iPhone SE等） */
  nav ul li { width: 100%; }
  .bn-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr; }
  .history-cover-grid-two { grid-template-columns: 1fr; max-width: 220px; }
  .history-cover-grid-one { max-width: 220px; }
  .blog-post { padding: 18px 16px; }
  .about-card { padding: 20px 16px; }
  .contact-form { padding: 20px 16px; }
  .member-post-card { padding: 20px 16px; }
  .member-post-history li { display: block; }
  .member-post-history li span { display: block; margin-top: 3px; }
  .toc-table .work-author { display: none; }
}
