/* =====================================================================
   修道社 - 『生命物語』公式・創作コミュニティ
   聖堂テーマ：象牙のベージュ × 深紅の祭服 × 金の祭具 × 十字架
   見た目はエレガントな大聖堂、中身はFlex/Gridの完全レスポンシブ。
   PCは3カラム（左：広告／中央：本文／右：大メニュー）、スマホは1カラム。
   ===================================================================== */
/* ---- パレット ----
   深紅（緋の祭服）   #8a1538 / 濃 #6e0f2c / 明 #a31b44
   薔薇紅（可憐）     #c9445f
   金（祭具・燭台）   #c9a227 / 明金 #e7cf8e
   象牙（聖堂の壁）   #f7f1e6 / 明 #fdfaf3
   羊皮紙             #f3eadb
   文字（黒檀）       #463832
*/
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: #f7f1e6;
  background-image:
    radial-gradient(ellipse 90% 50% at 50% -10%, rgba(231, 207, 142, .35), transparent 60%),
    radial-gradient(ellipse 70% 40% at 50% 100%, rgba(138, 21, 56, .05), transparent 70%);
  background-attachment: fixed;
  color: #463832;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, "MS PGothic", sans-serif;
  font-size: 15px;
  line-height: 1.8;
  overflow-x: hidden;
}
a { color: #8a1538; }
a:hover { color: #c9445f; }
img { max-width: 100%; height: auto; }
.mono { font-family: "Courier New", monospace; }

/* =====================================================================
   3カラムレイアウト（PC）：左=広告塔／中央=本文／右=大メニュー
   ===================================================================== */
.layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 230px;
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 12px;
  align-items: start;
}
.main-col { min-width: 0; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 0 60px; }
.side { position: sticky; top: 8px; padding: 14px 0 40px; }
.side-title {
  background: linear-gradient(180deg, #a31b44, #8a1538);
  border: 1px solid #6e0f2c; border-top-color: #e7cf8e;
  box-shadow: 0 0 0 1px #c9a227;
  color: #fdfaf3; font-size: 12px; font-weight: bold; letter-spacing: .12em;
  text-align: center; padding: 5px 8px; margin: 14px 0 8px; border-radius: 2px;
}
.side-title::before { content: "\271D\00A0"; color: #e7cf8e; }

/* 広告スロット（左カラム：横長の小バナー置き場） */
.ad-stack { display: flex; flex-direction: column; gap: 8px; }
.ad-slot {
  width: 100%; min-height: 52px;
  background: #fdfaf3;
  border: 1px dashed #c9a227;
  color: #b09a72; font-size: 10.5px; letter-spacing: .1em;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 6px; text-decoration: none; border-radius: 2px;
}
.ad-slot:hover { background: #f3eadb; color: #8a1538; }
.ad-slot img { display: block; width: 100%; height: auto; }
.ad-note { font-size: 10px; color: #b09a72; text-align: center; margin: 4px 0 0; }

/* 右カラム：大メニュー */
.side-menu { background: #fdfaf3; border: 1px solid #c9a227; border-radius: 2px; box-shadow: 1px 2px 0 #e6d9c2; }
.side-menu a {
  display: block; padding: 7px 12px; font-size: 12.5px; color: #5e4438;
  text-decoration: none; border-bottom: 1px dashed #e6d9c2;
}
.side-menu a:last-child { border-bottom: none; }
.side-menu a:hover { background: #f7ecdd; color: #8a1538; }
.side-menu a b { color: #8a1538; }
.side-mini { font-size: 11px; color: #93785f; line-height: 1.7; padding: 8px 10px; background: #fdfaf3; border: 1px solid #e6d9c2; border-radius: 2px; }

@media (max-width: 1080px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  /* 右の大メニューはハンバーガーに集約するので隠す */
  .side-right { display: none; }
  /* 左の広告塔は本文の下にカードとして表示 */
  .side-left {
    position: static; order: 9;
    margin: 18px 10px 0; padding: 12px 12px 14px;
    background: #fdfaf3; border: 1px solid #e6d9c2; border-radius: 10px;
  }
  .side-left .side-title { text-align: center; margin-bottom: 10px; }
  /* バナーは中央寄せの縦積み・幅をそろえる */
  .side-left .ad-stack {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
  }
  .side-left .ad-slot {
    width: 100%; max-width: 320px; margin: 0; box-sizing: border-box;
    display: flex; align-items: center; justify-content: center;
    min-height: 48px; text-align: center;
  }
  .side-left .ad-slot img { width: auto; max-width: 100%; height: auto; }
  .side-left .side-mini, .side-left .ad-note { text-align: center; max-width: 320px; margin-left: auto; margin-right: auto; }
  .side-left .side-title + .ad-stack { margin-bottom: 6px; }
}

/* =====================================================================
   サイトヘッダー：大聖堂のファサード
   ===================================================================== */
.site-top {
  text-align: center;
  background:
    radial-gradient(ellipse 70% 100% at 50% 0%, rgba(231, 207, 142, .3), transparent 70%),
    linear-gradient(180deg, #fdfaf3, #f7f1e6);
  border-bottom: 3px double #8a1538;
  box-shadow: 0 1px 0 #c9a227, 0 2px 0 #f3eadb;
  padding: 18px 10px 12px;
  position: relative;
}
.site-top::before {
  content: "\271D";
  display: block;
  font-size: 20px; line-height: 1;
  color: #8a1538;
  text-shadow: 0 1px 0 #e7cf8e, 0 0 14px rgba(201, 162, 39, .6);
  margin-bottom: 2px;
}
.site-top .logo {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 32px; letter-spacing: .4em; color: #8a1538;
  text-shadow: 1px 1px 0 #fdfaf3, 2px 2px 0 #e7cf8e;
  margin: 0;
}
.site-top .logo a { color: #8a1538; text-decoration: none; }
.site-top .sub { font-size: 12px; color: #a2566b; letter-spacing: .26em; margin: 2px 0 0; }
.site-top .sub::before, .site-top .sub::after { content: "\2014\00A0\2720\00A0\2014"; color: #c9a227; margin: 0 8px; }
.site-top .counter {
  display: inline-block; margin-top: 7px; font-size: 12px; color: #7c5a48;
  background: #fdfaf3; border: 1px solid #c9a227; border-radius: 2px; padding: 2px 14px;
  box-shadow: inset 0 0 0 2px #f7f1e6;
}
.site-top .counter b { font-family: "Courier New", monospace; color: #8a1538; letter-spacing: 2px; }

/* お知らせティッカー：緋のリボン */
.ticker {
  background: linear-gradient(180deg, #a31b44, #8a1538);
  border-top: 1px solid #e7cf8e; border-bottom: 1px solid #6e0f2c;
  box-shadow: 0 1px 0 #c9a227;
  overflow: hidden; white-space: nowrap; font-size: 13px; color: #fdf1f4;
}
.ticker span {
  display: inline-block; padding: 5px 0; padding-left: 100%;
  animation: tick 26s linear infinite;
  text-shadow: 0 1px 2px rgba(70, 8, 28, .5);
}
@keyframes tick { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* ナビ：聖堂の回廊 */
.retro-nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px;
  background: #fdfaf3; border-bottom: 2px solid #c9a227;
  box-shadow: 0 1px 0 #f3eadb;
  padding: 8px 6px;
  font-size: 13px;
}
.retro-nav a {
  text-decoration: none; padding: 5px 11px; border-radius: 2px;
  border: 1px solid transparent; white-space: nowrap; color: #5e4438;
}
.retro-nav a:hover, .retro-nav a.active {
  background: #f7ecdd; border-color: #c9a227; color: #8a1538;
}
.retro-nav a.nav-post {
  background: linear-gradient(180deg, #a31b44, #8a1538); color: #fdfaf3;
  border: 1px solid #e7cf8e; font-weight: bold;
  box-shadow: 0 0 0 1px #8a1538;
}
.retro-nav a.nav-post:hover { background: linear-gradient(180deg, #b82852, #9a1c40); }
.retro-nav a.nav-official {
  background: linear-gradient(180deg, #a31b44, #8a1538) !important;
  color: #fdfaf3 !important; border: 1px solid #c9a227 !important; font-weight: bold;
}
.retro-nav a.nav-official::before { content: "\271D\00A0"; color: #e7cf8e; font-weight: normal; }
.retro-nav a.nav-official:hover { background: linear-gradient(180deg, #b82852, #9a1c40) !important; }
.login-line { text-align: center; font-size: 12px; color: #7c5a48; background: #fdfaf3; padding: 4px 8px 8px; border-bottom: 1px solid #e6d9c2; }

/* =====================================================================
   見出し・パネル：祭壇と羊皮紙
   ===================================================================== */
.bar {
  background: linear-gradient(180deg, #a31b44 0%, #8a1538 60%, #761230 100%);
  border: 1px solid #6e0f2c; border-top: 1px solid #e7cf8e;
  box-shadow: 0 0 0 1px #c9a227, 2px 2px 0 1px #e6d9c2;
  border-radius: 2px;
  color: #fdfaf3; font-weight: bold; font-size: 15px;
  padding: 7px 14px; margin: 26px 0 12px;
  text-shadow: 0 1px 2px rgba(70, 8, 28, .55);
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px;
}
.bar > span:first-child::before { content: "\271D\00A0"; color: #e7cf8e; font-weight: normal; }
.bar .more { font-size: 12px; font-weight: normal; }
.bar a { color: #ffe9ee; }
.bar a:hover { color: #fff; }

.panel {
  background: #fdfaf3;
  border: 1px solid #c9a227;
  outline: 1px solid #f0e3cd; outline-offset: 2px;
  border-radius: 2px;
  box-shadow: 2px 2px 0 #e6d9c2;
  padding: 14px 16px; margin-bottom: 14px;
}
.panel.dotted { border-style: dashed; }

/* トップバナー：祭壇画の額 */
.top-banner {
  border: 1px solid #c9a227; outline: 3px double #8a1538; outline-offset: 4px;
  background: #fdfaf3; padding: 6px; margin: 18px 0 8px;
  text-align: center; border-radius: 2px;
}
.top-banner img { display: block; width: 100%; border: 1px solid #e7cf8e; }
.top-banner .caption { font-size: 12px; color: #a2566b; padding: 6px 2px 1px; letter-spacing: .06em; }

.blink { animation: blink 1.1s step-start infinite; color: #c9445f; font-weight: bold; }
@keyframes blink { 50% { opacity: 0; } }

/* =====================================================================
   サムネイルギャラリー：聖画の小窓
   ===================================================================== */
.thumb-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
.thumb-card {
  background: #fdfaf3;
  border: 1px solid #c9a227;
  outline: 1px solid #f0e3cd; outline-offset: 2px;
  border-radius: 3px;
  box-shadow: 2px 2px 0 #e6d9c2;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column; overflow: hidden;
  transition: box-shadow .15s;
}
.thumb-card:hover {
  background: #fdfaf3; text-decoration: none;
  box-shadow: 0 0 0 2px #c9a227, 0 0 14px rgba(201, 162, 39, .45);
}
.thumb-card .frame {
  position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden;
  border-bottom: 1px solid #e7cf8e;
  background: linear-gradient(135deg, #f7f1e6, #fdfaf3 50%, #f3eadb);
}
.thumb-card .frame img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }
.t-badge {
  position: absolute; left: 0; top: 0; color: #fff; font-size: 10px; padding: 1px 8px;
  border-bottom-right-radius: 8px; opacity: .96;
  border-bottom: 1px solid #e7cf8e; border-right: 1px solid #e7cf8e;
}
.t-bgm {
  position: absolute; right: 3px; bottom: 3px;
  background: rgba(138, 21, 56, .85); color: #ffe9b0;
  border: 1px solid #e7cf8e;
  font-size: 10px; padding: 0 6px; border-radius: 8px;
}
.t-cmt {
  position: absolute; left: 3px; bottom: 3px;
  background: rgba(253, 250, 243, .92); color: #7c5a48;
  border: 1px solid #d9c7a8;
  font-size: 9.5px; padding: 0 6px; border-radius: 8px; white-space: nowrap;
}
.t-new {
  position: absolute; right: 3px; top: 3px;
  background: #fdfaf3; color: #8a1538; border: 1px solid #c9a227;
  font-size: 9px; font-weight: bold; padding: 1px 6px; border-radius: 8px;
  box-shadow: 0 0 6px rgba(201, 162, 39, .55);
}
.thumb-card .t-title {
  display: block; padding: 6px 7px 2px; font-size: 12px; font-weight: bold; color: #5e2a3a;
  line-height: 1.35; word-break: break-word;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
}
.thumb-card .t-author { padding: 0 7px 7px; font-size: 11px; color: #a2826a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 700px) {
  .thumb-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}

/* ---- タグ・チップ：金縁の聖標 ---- */
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.ptag {
  background: #fdfaf3; border: 1px solid #c9a227; border-radius: 11px;
  color: #8a1538; font-size: 12px; padding: 3px 12px; text-decoration: none;
  box-shadow: inset 0 0 0 1px #f7f1e6;
}
.ptag:hover { background: #f7ecdd; text-decoration: none; }
.ptag.on {
  background: linear-gradient(180deg, #a31b44, #8a1538);
  border-color: #e7cf8e; color: #fdfaf3;
  box-shadow: 0 0 6px rgba(201, 162, 39, .45);
}

/* ---- ボタン：聖具 ---- */
.btn {
  display: inline-block; cursor: pointer; text-decoration: none;
  background: linear-gradient(180deg, #fdfaf3, #f3eadb);
  border: 1px solid #c9a227; border-radius: 3px;
  color: #8a1538; font-family: inherit; font-size: 14px; font-weight: bold;
  padding: 8px 18px;
  box-shadow: inset 0 0 0 1px #fdfaf3, 1px 1px 0 #e6d9c2;
}
.btn:hover { background: #f7ecdd; color: #6e0f2c; text-decoration: none; box-shadow: 0 0 0 1px #c9a227; }
.btn.primary {
  background: linear-gradient(180deg, #a31b44, #8a1538);
  border-color: #e7cf8e; color: #fdfaf3;
  box-shadow: 0 0 0 1px #8a1538, 1px 1px 0 #e6d9c2;
}
.btn.primary:hover { background: linear-gradient(180deg, #b82852, #9a1c40); color: #fff; }
.btn.small { font-size: 12px; padding: 4px 12px; font-weight: normal; }
.btn.gray { color: #7c5a48; border-color: #c8b89e; background: linear-gradient(180deg, #fdfaf3, #efe6d6); }
.btn.danger { color: #fdfaf3; background: linear-gradient(180deg, #b03030, #8a1f1f); border-color: #e7cf8e; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---- フォーム：写本台 ---- */
.form-table { width: 100%; border-collapse: collapse; }
.form-table th {
  width: 170px; text-align: left; vertical-align: top;
  background: #f7ecdd; border: 1px solid #e0cfae;
  color: #6e3a2a; font-size: 13px; padding: 10px 12px;
}
.form-table td { border: 1px solid #e0cfae; padding: 10px 12px; background: #fdfaf3; }
input[type=text], input[type=password], select, textarea {
  width: 100%; max-width: 520px;
  background: #fffdf8; border: 1px solid #c8a87e; border-radius: 2px;
  color: #463832; font-family: inherit; font-size: 15px; padding: 8px 10px;
}
textarea { min-height: 110px; }
input[type=file] { font-size: 13px; max-width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid #e7cf8e; border-color: #8a1538; }
.note { font-size: 12px; color: #a2826a; margin-top: 4px; }
label.check { display: inline-flex; align-items: center; gap: 5px; margin: 0 12px 6px 0; font-size: 13.5px; white-space: nowrap; }
.error-box { background: #fbe9e7; border: 1px solid #d9a097; border-radius: 2px; color: #8a1f1f; font-size: 14px; padding: 9px 13px; margin: 10px 0; border-left: 4px solid #8a1f1f; }
.ok-box { background: #f3f7e9; border: 1px solid #b9cf9a; border-radius: 2px; color: #4a6a2a; font-size: 14px; padding: 9px 13px; margin: 10px 0; border-left: 4px solid #6a8a4a; }

/* ---- レス（祈りの記帳）＋アイコン＋管理人バッジ ---- */
.res-list { display: flex; flex-direction: column; gap: 0; }
.res-item { border-bottom: 1px dashed #d9c7a8; padding: 10px 4px; }
.res-item:last-child { border-bottom: none; }
.res-head { font-size: 12px; color: #a2826a; display: flex; flex-wrap: wrap; gap: 3px 10px; align-items: center; }
.res-name { color: #1f6b2a; font-weight: bold; font-size: 13.5px; }
.trip { color: #1f6b2a; font-size: 12px; font-family: "Courier New", monospace; }
.res-body { margin-top: 4px; font-size: 14.5px; word-break: break-word; }
.spoiler { background: #5a4a50; color: #5a4a50; border-radius: 2px; cursor: pointer; padding: 0 4px; }
.spoiler.revealed, .spoiler:hover { color: #fff; }

.author-chip { display: inline-flex; align-items: center; gap: 6px; }
.author-link { text-decoration: none; }
.author-link:hover .res-name { color: #8a1538; }
.mini-avatar {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid #c9a227; background: #fdfaf3; object-fit: cover;
  box-shadow: 0 0 0 1px #f7f1e6;
}
.owner-badge {
  display: inline-block;
  background: linear-gradient(180deg, #a31b44, #8a1538);
  color: #ffe9b0; border: 1px solid #e7cf8e; border-radius: 9px;
  font-size: 10.5px; font-weight: bold; letter-spacing: .04em;
  padding: 0 8px; line-height: 1.7;
  box-shadow: 0 0 6px rgba(201, 162, 39, .5);
  text-shadow: none;
}

/* ---- 音楽室：聖歌隊席 ---- */
.music-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* ---- 音楽室：詰めたリスト（Spotify風・カード枠なし） ---- */
.music-list2 { display: flex; flex-direction: column; gap: 14px; }
.m2-row {
  background: #fffdf8;
  border: 1px solid #e0cfae;
  border-left: 4px solid #c9a227;
  border-radius: 8px;
  padding: 12px 14px 10px;
  box-shadow: 0 1px 3px rgba(110,15,44,.08);
}
.m2-comment {
  font-size: 13px; color: #5e4438; margin: 9px 0 0; padding: 7px 11px;
  background: #fdf6ea; border-left: 3px solid #c9a227; border-radius: 0 4px 4px 0;
}
.m2-tags { margin: 9px 0 0; display: flex; flex-wrap: wrap; gap: 5px; }
.m2-tags .tag-mini { text-decoration: none; cursor: pointer; }
.m2-tags .tag-mini:hover { background: #f0dcc0; }
/* 作曲者・日付は曲に密着（上に区切り線、次の曲と混同しない） */
.m2-foot {
  margin: 9px 0 0; padding-top: 8px; border-top: 1px dashed #e6d9c2;
  font-size: 12px;
}
.m2-edit { margin-top: 8px; }
.m2-edit > summary { cursor: pointer; font-size: 12px; color: #8a1538; }
.music-item {
  background: #fdfaf3; border: 1px solid #c9a227;
  outline: 1px solid #f0e3cd; outline-offset: 2px;
  border-radius: 2px; box-shadow: 2px 2px 0 #e6d9c2;
  padding: 12px 14px; display: flex; flex-direction: column; gap: 6px;
}
.music-title { font-weight: bold; color: #6e0f2c; font-size: 14.5px; font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; }
.tag-mini { display: inline-block; background: #f7ecdd; border: 1px solid #d9c7a8; border-radius: 9px; color: #8a1538; font-size: 11px; padding: 0 8px; margin: 0 4px 4px 0; }
audio { width: 100%; height: 34px; }

/* =====================================================================
   聖堂デザイン・本格オーディオプレイヤー（.ca2／Spotify風カード）
   ジャケット＋再生・シーク・時間・ミュート。スマホ最適化。
   ===================================================================== */
.ca2 {
  display: flex; align-items: stretch; gap: 12px;
  background: linear-gradient(135deg, #fffdf8 0%, #f7efe0 100%);
  border: 1px solid #c9a227;
  outline: 1px solid #f0e3cd; outline-offset: 1px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(110,15,44,.12), inset 0 1px 0 #fffdf8;
  padding: 10px;
}
/* ジャケット（正方形・CD風） */
.ca2-cover {
  position: relative; flex-shrink: 0;
  width: 76px; height: 76px; border-radius: 8px; overflow: hidden;
  border: 1px solid #c9a227; box-shadow: 0 1px 4px rgba(70,8,28,.25);
  background: #8a1538;
}
.ca2-cover img, .ca2-cover .ca2-autocover { width: 100%; height: 100%; object-fit: cover; display: block; }
.ca2-coverbtn {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; padding: 0;
  background: rgba(70,8,28,.32); color: #fff; opacity: 0; transition: opacity .15s;
}
.ca2-cover:hover .ca2-coverbtn, .ca2.is-playing .ca2-coverbtn { opacity: 1; }
.ca2-cover-ico { display: flex; align-items: center; justify-content: center; }
.ca2-coverbtn .ca-icon-pause { display: none; }
.ca2.is-playing .ca2-coverbtn .ca-icon-play { display: none; }
.ca2.is-playing .ca2-coverbtn .ca-icon-pause { display: flex; }
.ca2-kind {
  position: absolute; left: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(163,27,68,.92), rgba(138,21,56,.92));
  color: #ffe9b0; font-size: 9px; letter-spacing: .04em;
  padding: 1px 7px 1px 5px; border-top-right-radius: 8px; border-top: 1px solid #e7cf8e; border-right: 1px solid #e7cf8e;
}

.ca2-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.ca2-head { line-height: 1.3; }
.ca2-title { font-weight: bold; color: #6e0f2c; font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; font-size: 14px; }
.ca2-by { font-size: 11px; color: #a2826a; margin-left: 6px; }

/* オーディオスペクトラム（canvas） */
.ca-spectrum {
  display: block; width: 100%; height: 34px; border-radius: 6px;
  background: linear-gradient(180deg, rgba(138,21,56,.06), rgba(201,162,39,.04));
}

/* CSS図形アイコン（端末フォント非依存・豆腐化しない） */
.ca-ico { display: inline-block; }
.ca-ico-play {
  width: 0; height: 0; border-style: solid;
  border-width: 8px 0 8px 13px; border-color: transparent transparent transparent currentColor;
  margin-left: 2px;
}
.ca-ico-pause {
  width: 13px; height: 15px; position: relative;
}
.ca-ico-pause::before, .ca-ico-pause::after {
  content: ""; position: absolute; top: 0; width: 4px; height: 15px; background: currentColor; border-radius: 1px;
}
.ca-ico-pause::before { left: 1px; }
.ca-ico-pause::after { right: 1px; }
/* スピーカー（音あり／ミュート）をCSSで */
.ca-ico-vol, .ca-ico-muted { width: 16px; height: 14px; position: relative; }
.ca-ico-vol::before, .ca-ico-muted::before {
  content: ""; position: absolute; left: 0; top: 3px;
  border-style: solid; border-width: 4px 6px 4px 0; border-color: transparent currentColor transparent transparent;
}
.ca-ico-vol::after {
  content: ""; position: absolute; left: 8px; top: 1px; width: 5px; height: 10px;
  border: 2px solid currentColor; border-left: none; border-radius: 0 8px 8px 0;
}
.ca-ico-muted::after {
  content: ""; position: absolute; left: 7px; top: 0; width: 12px; height: 2px;
  background: currentColor; transform: rotate(45deg); transform-origin: left center;
}

.ca2-controls { display: flex; align-items: center; gap: 8px; }
.ca2-play {
  position: relative; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  border: none; cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 35%, #b8264f, #8a1538 70%);
  color: #ffe9b0; box-shadow: 0 2px 6px rgba(110,15,44,.4), inset 0 1px 0 rgba(255,233,176,.4);
  transition: transform .12s, box-shadow .15s;
}
.ca2-play:hover { transform: scale(1.07); box-shadow: 0 3px 10px rgba(110,15,44,.5), 0 0 12px rgba(201,162,39,.55); }
.ca2-play:active { transform: scale(.95); }
.ca2-play .ca-icon-play, .ca2-play .ca-icon-pause { display: flex; align-items: center; justify-content: center; }
.ca2-play .ca-icon-pause { display: none; }
.ca2.is-playing .ca2-play .ca-icon-play { display: none; }
.ca2.is-playing .ca2-play .ca-icon-pause { display: flex; }
.ca2.is-playing .ca2-play { animation: ca2-glow 2.4s ease-in-out infinite; }
@keyframes ca2-glow {
  0%,100% { box-shadow: 0 2px 6px rgba(110,15,44,.4), inset 0 1px 0 rgba(255,233,176,.4); }
  50%     { box-shadow: 0 2px 6px rgba(110,15,44,.4), 0 0 16px rgba(231,207,142,.9); }
}

.ca2-cur, .ca2-dur { font-family: "Courier New", monospace; font-size: 11px; color: #8a6a55; flex-shrink: 0; min-width: 30px; text-align: center; }

/* シークバー：金レール×緋の充填、つまみは聖盤 */
.ca-seek { position: relative; flex: 1; min-width: 60px; height: 18px; display: flex; align-items: center; }
.ca-seek::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  height: 5px; border-radius: 3px; background: #e7d8bf; box-shadow: inset 0 1px 1px rgba(110,15,44,.15);
}
.ca-seek-fill {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  height: 5px; width: 0; border-radius: 3px;
  background: linear-gradient(90deg, #8a1538, #c9445f); pointer-events: none;
}
.ca-seek-range { position: relative; width: 100%; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; height: 18px; cursor: pointer; }
.ca-seek-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 15px; height: 15px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fffdf8, #e7cf8e 70%, #c9a227);
  border: 1px solid #8a1538; box-shadow: 0 0 5px rgba(201,162,39,.75);
}
.ca-seek-range::-moz-range-thumb {
  width: 15px; height: 15px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fffdf8, #e7cf8e 70%, #c9a227);
  border: 1px solid #8a1538; box-shadow: 0 0 5px rgba(201,162,39,.75);
}
.ca-seek-range::-webkit-slider-runnable-track { background: transparent; }
.ca-seek-range::-moz-range-track { background: transparent; }

/* ミュート */
.ca2-mute {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid #d9c7a8; background: #fdfaf3; color: #8a1538; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.ca2-mute:hover { background: #f7ecdd; }
.ca2-mute .ca-ico-muted { display: none; }
.ca2.is-muted .ca2-mute .ca-ico-vol { display: none; }
.ca2.is-muted .ca2-mute .ca-ico-muted { display: inline-block; }
.ca2.is-muted .ca2-mute { color: #b08a72; }

/* music-list2 の行内ではプレイヤーの枠を消す（カードの二重枠を防ぐ） */
.m2-row .ca2 { border: none; outline: none; box-shadow: none; background: transparent; padding: 0; }

@media (max-width: 700px) {
  .ca2 { gap: 10px; padding: 9px; }
  .ca2-cover { width: 64px; height: 64px; }
  .ca2-play { width: 38px; height: 38px; }
  .ca2-cur, .ca2-dur { min-width: 26px; font-size: 10px; }
  .ca-spectrum { height: 28px; }
}
.muted { color: #a2826a; font-size: 12px; }

/* ---- 作品ビューア ---- */
.viewer-v { max-width: 720px; margin: 0 auto; }
.viewer-v img { display: block; width: 100%; border: 1px solid #d9c7a8; background: #fff; margin-bottom: 2px; }
.viewer-h { text-align: center; }
.viewer-h img { max-width: 100%; max-height: 78vh; cursor: pointer; border: 1px solid #d9c7a8; background: #fff; }
.page-controls { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }

/* ---- 聖堂デザインの再生バー（独自オーディオプレイヤー） ---- */
.cathedral-player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; align-items: center; gap: 12px;
  padding: 9px 14px 11px;
  color: #ffe9ee;
  background:
    radial-gradient(ellipse 50% 120% at 50% 0%, rgba(231,207,142,.18), transparent 70%),
    linear-gradient(180deg, #a31b44 0%, #8a1538 55%, #6e0f2c 100%);
  border-top: 2px solid #c9a227;
  box-shadow: 0 -1px 0 #e7cf8e, 0 -6px 18px rgba(70,8,28,.35);
}
.cathedral-player::before,                /* 左右に金の燭台ライン */
.cathedral-player::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, #e7cf8e, transparent);
}
.cathedral-player::before { left: 0; }
.cathedral-player::after { right: 0; }

/* 再生トグル：金縁の聖盤。十字→再生記号がフェードで切替 */
.cp-toggle {
  position: relative; flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid #e7cf8e;
  background: radial-gradient(circle at 50% 38%, #fdf1f4 0%, #f0c6d1 60%, #c9445f 100%);
  cursor: pointer; padding: 0;
  box-shadow: 0 0 0 3px rgba(110,15,44,.5), 0 0 12px rgba(201,162,39,.55);
  transition: transform .15s, box-shadow .15s;
}
.cp-toggle:hover { transform: scale(1.06); box-shadow: 0 0 0 3px rgba(110,15,44,.6), 0 0 18px rgba(231,207,142,.8); }
.cp-toggle .cp-cross, .cp-toggle .cp-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #8a1538; transition: opacity .2s;
}
.cp-toggle .cp-cross { font-size: 22px; opacity: 1; }
.cp-toggle .cp-play { font-size: 16px; opacity: 0; padding-left: 2px; }
.cathedral-player.playing .cp-toggle .cp-cross { opacity: 0; }
.cathedral-player.playing .cp-toggle .cp-play  { opacity: 0; }   /* 再生中は停止記号を出す */
.cathedral-player.playing .cp-toggle::after {
  content: "\25A0"; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #8a1538; font-size: 15px;
}
.cathedral-player.playing .cp-toggle {
  background: radial-gradient(circle at 50% 38%, #fffdf8 0%, #e7cf8e 60%, #c9a227 100%);
  animation: cp-glow 2.4s ease-in-out infinite;
}
@keyframes cp-glow {
  0%,100% { box-shadow: 0 0 0 3px rgba(110,15,44,.5), 0 0 12px rgba(201,162,39,.5); }
  50%     { box-shadow: 0 0 0 3px rgba(110,15,44,.5), 0 0 22px rgba(231,207,142,.95); }
}

.cp-body { flex: 1; min-width: 0; }
/* 曲名：枠内に収まれば中央寄せ、はみ出れば流れる（マーキー） */
.cp-info {
  font-size: 13.5px; line-height: 1.5; overflow: hidden; white-space: nowrap;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; letter-spacing: .03em;
  text-shadow: 0 1px 2px rgba(70,8,28,.6);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
}
.cp-info .cp-track { display: inline-block; padding-left: 0; will-change: transform; }
.cp-info.is-marquee .cp-track { animation: cp-marquee 11s linear infinite; }
@keyframes cp-marquee {
  0%   { transform: translateX(8px); }
  12%  { transform: translateX(8px); }       /* 最初に少し止めて読ませる */
  100% { transform: translateX(-100%); }
}
.cp-eqbar { height: 14px; margin-top: 1px; opacity: 0; transition: opacity .3s; }
.cathedral-player.playing .cp-eqbar { opacity: 1; }
.eq { color: #ffd98e; letter-spacing: -1px; font-family: monospace; font-size: 13px; }
.cp-ornament { flex-shrink: 0; color: #e7cf8e; font-size: 16px; opacity: .85; text-shadow: 0 0 8px rgba(201,162,39,.6); }

@media (max-width: 700px) {
  .cp-ornament { display: none; }
  .cp-toggle { width: 42px; height: 42px; }
  .cp-info { font-size: 13px; }
}

/* =====================================================================
   音声ピッカー（検索付き・大きめクラシックメニュー）
   ===================================================================== */
.cue-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.cue-no {
  flex-shrink: 0; min-width: 56px; text-align: center;
  font-size: 12.5px; font-weight: bold; color: #fdfaf3;
  background: linear-gradient(180deg, #a31b44, #8a1538);
  border: 1px solid #6e0f2c; box-shadow: 0 0 0 1px #c9a227;
  border-radius: 2px; padding: 5px 8px;
}
.cue-page { font-size: 12px; color: #7c5a48; white-space: nowrap; }
.cue-pageno { width: 54px; max-width: 54px; text-align: center; display: inline-block; padding: 6px 4px; }

.sound-picker { position: relative; display: block; width: 100%; min-width: 0; flex: 1 1 240px; }
.sp-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
  background: linear-gradient(180deg, #fffdf8, #f3eadb);
  border: 1px solid #c9a227; border-radius: 3px;
  box-shadow: inset 0 0 0 1px #fffdf8, 0 1px 0 #e6d9c2;
  color: #5e2a3a; font-family: inherit; font-size: 14px; text-align: left;
  padding: 11px 14px; min-height: 46px; cursor: pointer;
}
.sp-trigger:hover { background: #f7ecdd; }
.sound-picker.is-open .sp-trigger { border-color: #8a1538; box-shadow: 0 0 0 2px rgba(201,162,39,.5); }
.sp-current { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; flex: 1; }
.sp-caret { color: #8a1538; flex-shrink: 0; transition: transform .15s; font-size: 12px; }
.sound-picker.is-open .sp-caret { transform: rotate(180deg); }

.sp-menu {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 70;
  background: #fffdf8;
  border: 1px solid #c9a227; outline: 3px double #8a1538; outline-offset: 2px;
  border-radius: 3px;
  box-shadow: 0 12px 30px rgba(70,8,28,.32);
}
.sp-menu::before {                         /* メニュー上辺の十字飾り */
  content: "\271D"; position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  color: #8a1538; font-size: 17px; text-shadow: 0 0 6px rgba(201,162,39,.7);
  background: #fffdf8; padding: 0 7px;
}
/* 検索ボックス（虫眼鏡アイコン付き・大きめ） */
.sp-search-wrap { position: relative; padding: 12px 12px 10px; border-bottom: 1px solid #e6d9c2; background: #fdf6ea; }
.sp-search-icon { position: absolute; left: 24px; top: 50%; transform: translateY(-50%); font-size: 15px; color: #b08a52; pointer-events: none; }
.sp-search {
  width: 100%; max-width: 100%; box-sizing: border-box;
  background: #fff; border: 1px solid #c8a87e; border-radius: 3px;
  font-size: 15px; padding: 10px 12px 10px 38px; min-height: 44px;
  -webkit-appearance: none; appearance: none;
}
.sp-search::-webkit-search-cancel-button { -webkit-appearance: none; }
.sp-search:focus { outline: 2px solid #e7cf8e; border-color: #8a1538; }
.sp-list { list-style: none; margin: 0; padding: 6px; max-height: 320px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sp-item {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 11px 12px; border-bottom: 1px dashed #ecdcc4; border-radius: 2px;
  cursor: pointer; font-size: 14px; color: #463832; min-height: 46px;
}
.sp-item:last-child { border-bottom: none; }
.sp-item:hover, .sp-item:active { background: #f7ecdd; }
.sp-item.is-selected { background: #fdf1f4; box-shadow: inset 4px 0 0 #8a1538; }
.sp-item.sp-none { color: #a2826a; font-style: italic; }
.sp-mark { color: #c9a227; flex-shrink: 0; font-size: 15px; }
.sp-title { font-weight: bold; color: #6e0f2c; font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; }
.sp-by { font-size: 12px; color: #a2826a; }
.sp-tags { font-size: 11px; color: #1f6b2a; width: 100%; padding-left: 23px; }
.sp-empty { text-align: center; color: #a2826a; font-size: 13px; padding: 18px 8px; margin: 0; }

/* スマホ：選びやすいよう画面下からせり出すシート風に */
@media (max-width: 700px) {
  .sound-picker { width: 100%; }
  .sound-picker.is-open .sp-menu {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto;
    border-radius: 12px 12px 0 0; outline: none;
    border: none; border-top: 3px solid #c9a227;
    box-shadow: 0 -10px 30px rgba(70,8,28,.4);
    z-index: 200;
  }
  .sound-picker.is-open .sp-menu::before { display: none; }
  .sound-picker.is-open .sp-list { max-height: 52vh; }
  /* シート表示中の背景オーバーレイ */
  .sound-picker.is-open::after {
    content: ""; position: fixed; inset: 0; background: rgba(70,8,28,.35); z-index: 150;
  }
  .sp-search { font-size: 16px; }   /* iOSのズーム防止に16px */
}

/* ---- テーブル ---- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.list { width: 100%; border-collapse: collapse; background: #fdfaf3; font-size: 13px; }
table.list th, table.list td { border: 1px solid #d9c7a8; padding: 7px 9px; text-align: left; vertical-align: top; }
table.list th { background: #f7ecdd; color: #6e3a2a; white-space: nowrap; }
table.list tr:nth-child(even) td { background: #faf5ea; }
.admin-red { color: #8a1f1f; }

/* ---- マイページ：聖人の間 ---- */
.author-head {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  background: #fdfaf3;
  border: 1px solid #c9a227; outline: 3px double #8a1538; outline-offset: 4px;
  border-radius: 3px; padding: 16px 18px; margin-top: 8px;
}
.author-avatar {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  background: #f7ecdd; border: 2px solid #c9a227; color: #8a1538;
  display: flex; align-items: center; justify-content: center; font-size: 27px; font-weight: bold;
  overflow: hidden;
  box-shadow: 0 0 0 3px #fdfaf3, 0 0 10px rgba(201, 162, 39, .4);
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-head .pen { font-size: 19px; font-weight: bold; color: #6e0f2c; font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; }
.author-head .attrs { font-size: 12.5px; color: #a2826a; }

/* ---- フッター：地下聖堂 ---- */
.site-footer {
  border-top: 3px double #8a1538;
  box-shadow: 0 -1px 0 #c9a227;
  background: linear-gradient(180deg, #fdfaf3, #f3eadb);
  color: #93785f; font-size: 12px; text-align: center; padding: 20px 12px 26px; margin-top: 44px;
}
.site-footer::before { content: "\2720\00A0\271D\00A0\2720"; display: block; color: #c9a227; letter-spacing: .5em; font-size: 12px; margin-bottom: 6px; }
.site-footer .home-banner {
  display: inline-block; border: 1px solid #c9a227; background: #fdfaf3;
  font-size: 11px; padding: 2px 16px; margin-bottom: 8px; color: #8a1538; text-decoration: none;
  border-radius: 2px;
}
.empty-note {
  background: #fdfaf3; border: 2px dashed #c9a227; border-radius: 3px;
  color: #a2826a; padding: 26px 14px; text-align: center; font-size: 14px;
}
.center { text-align: center; }

/* ---- 互換エイリアス（管理画面等） ---- */
.section-head {
  background: linear-gradient(180deg, #a31b44 0%, #8a1538 60%, #761230 100%);
  border: 1px solid #6e0f2c; border-top: 1px solid #e7cf8e;
  box-shadow: 0 0 0 1px #c9a227;
  border-radius: 2px;
  color: #fdfaf3; padding: 7px 14px; margin: 26px 0 12px;
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px;
  text-shadow: 0 1px 2px rgba(70, 8, 28, .55);
}
.section-head h2 { margin: 0; font-size: 15px; color: #fdfaf3; }
.section-head h2::before { content: "\271D\00A0"; color: #e7cf8e; font-weight: normal; }
.section-head .more { font-size: 12px; }
.section-head a { color: #ffe9ee; }
.card {
  background: #fdfaf3; border: 1px solid #c9a227;
  outline: 1px solid #f0e3cd; outline-offset: 2px;
  border-radius: 2px; box-shadow: 2px 2px 0 #e6d9c2;
  padding: 14px 16px; margin-bottom: 14px;
}

/* ---- レスポンシブ（共通） ---- */
@media (max-width: 700px) {
  body { font-size: 14px; }
  .site-top .logo { font-size: 24px; letter-spacing: .25em; }
  .retro-nav { gap: 2px; padding: 6px 4px; font-size: 12.5px; overflow-x: auto; flex-wrap: nowrap; justify-content: flex-start; }
  .form-table, .form-table tbody, .form-table tr, .form-table th, .form-table td { display: block; width: 100%; border: none; }
  .form-table th { background: #f7ecdd; border-left: 3px solid #8a1538; padding: 7px 10px; }
  .form-table td { padding: 9px 2px 14px; background: transparent; }
  .bar { font-size: 14px; }
}

/* =====================================================================
   公式エリア（修道社公式『生命物語』）：最も荘厳な区画
   ===================================================================== */
.official-zone {
  position: relative;
  background-color: #fffdf8;
  background-image:
    radial-gradient(ellipse 60% 38% at 50% 0%, rgba(231, 207, 142, .25), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cg fill='none' stroke='%23f3e0d6' stroke-width='1.4'%3E%3Cpath d='M28 18v20M20 26h16'/%3E%3C/g%3E%3C/svg%3E");
  border: 4px double #8a1538;
  outline: 1px solid #c9a227;
  outline-offset: 3px;
  box-shadow: 0 0 0 7px #fdf1f4, 2px 4px 0 7px #e6d9c2;
  border-radius: 2px;
  padding: 18px 16px 20px;
  margin: 26px 0 14px;
}
.official-zone .oz-head {
  position: relative; text-align: center;
  border-bottom: none;
  padding: 26px 8px 14px; margin-bottom: 14px;
  background:
    linear-gradient(180deg, transparent calc(100% - 3px), #c9a227 calc(100% - 3px), #c9a227 calc(100% - 2px), transparent calc(100% - 2px)),
    linear-gradient(180deg, transparent calc(100% - 1px), #8a1538 calc(100% - 1px));
}
.official-zone .oz-head::before {
  content: "\271D";
  display: block; font-size: 24px; line-height: 1; color: #8a1538;
  text-shadow: 0 1px 0 #e7cf8e, 0 0 14px rgba(201, 162, 39, .6);
  margin-bottom: 4px;
}
.official-zone .oz-head .oz-logo {
  margin: 0; font-size: 23px; letter-spacing: .34em; font-weight: bold; color: #8a1538;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  text-shadow: 1px 1px 0 #fffdf8, 2px 2px 0 #e7cf8e;
}
.official-zone .oz-head .oz-sub { margin: 4px 0 0; font-size: 11px; letter-spacing: .26em; color: #a2566b; }
.official-zone .oz-head .oz-sub::before,
.official-zone .oz-head .oz-sub::after { content: "\2014\00A0\2720\00A0\2014"; color: #c9a227; margin: 0 8px; }

.official-bar {
  background: linear-gradient(180deg, #a31b44 0%, #8a1538 55%, #761230 100%);
  color: #fffdf8; font-weight: bold; font-size: 14px; letter-spacing: .06em;
  padding: 7px 14px; margin: 18px 0 12px;
  border: 1px solid #5e0e26; border-top: 1px solid #e7cf8e;
  box-shadow: inset 0 1px 0 rgba(255, 253, 248, .25), 0 0 0 1px #c9a227, 2px 2px 0 1px #fdf1f4;
  border-radius: 2px;
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px;
  text-shadow: 0 1px 2px rgba(70, 8, 28, .6);
}
.official-bar > span:first-child::before { content: "\271D\00A0"; color: #e7cf8e; font-weight: normal; }
.official-bar a { color: #ffe9ee; text-decoration: underline; }
.official-bar a:hover { color: #fff; background: transparent; }
.official-bar .more { font-size: 11.5px; font-weight: normal; }
.official-bar .more::after { content: "\00A0\2720"; color: #e7cf8e; }

.of-grid { display: grid; gap: 13px; grid-template-columns: repeat(auto-fill, minmax(142px, 1fr)); }
.of-card {
  border: 1px solid #c9a227;
  outline: 1px solid #f0c6d1; outline-offset: 2px;
  background: linear-gradient(180deg, #fffdf8, #fdf1f4);
  padding: 6px 6px 4px;
  text-decoration: none; color: #6b4450; display: block;
  border-radius: 3px;
  box-shadow: 2px 2px 0 #f6dde4;
  transition: box-shadow .15s;
}
.of-card:hover {
  text-decoration: none; color: #8a1538; background: #fffdf8;
  box-shadow: 0 0 0 2px #c9a227, 0 0 14px rgba(201, 162, 39, .45);
}
.of-card .frame {
  position: relative; aspect-ratio: 3 / 2; overflow: hidden;
  border: 1px solid #c9a227;
  border-top-left-radius: 999px 340px;
  border-top-right-radius: 999px 340px;
  background: linear-gradient(135deg, #fdf1f4 0%, #fff 45%, #fdeef2 100%);
}
.of-card .frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.of-cat {
  position: absolute; left: 0; top: 0;
  background: linear-gradient(180deg, #a31b44, #8a1538);
  color: #fffdf8; font-size: 9.5px; letter-spacing: .04em;
  padding: 2px 9px 2px 7px;
  border-bottom-right-radius: 10px;
  border-bottom: 1px solid #e7cf8e; border-right: 1px solid #e7cf8e;
}
.of-new {
  position: absolute; right: 4px; top: 4px;
  background: #fffdf8; color: #8a1538;
  border: 1px solid #c9a227; border-radius: 9px;
  font-size: 9px; font-weight: bold; padding: 1px 6px;
  box-shadow: 0 0 6px rgba(201, 162, 39, .6);
}
.of-snd {
  position: absolute; right: 4px; bottom: 4px;
  background: rgba(138, 21, 56, .88); color: #ffe9b0;
  border: 1px solid #e7cf8e; border-radius: 9px;
  font-size: 10px; padding: 0 7px;
}
/* アーチ型サムネではバッジを内側に寄せる（角丸で切れないように） */
.honpen-card .of-new { top: 30%; right: 8px; }
.honpen-card .of-snd { bottom: 8px; right: 8px; }
.of-card .t {
  font-size: 12px; font-weight: bold; color: #6b2138; margin-top: 5px; line-height: 1.45;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em;
}
.of-card .m { font-size: 10.5px; color: #ad7d8a; font-family: "Courier New", monospace; }
.of-card .m::before { content: "\2720\00A0"; color: #c9a227; }

.of-list {
  border: 1px solid #c9a227;
  outline: 1px solid #f0c6d1; outline-offset: 2px;
  background: #fffdf8; font-size: 13px; border-radius: 2px;
}
.of-list .row { padding: 7px 12px; border-bottom: 1px dashed #e8b9c4; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.of-list .row:last-child { border-bottom: none; }
.of-list .row:hover { background: #fdf1f4; }
.of-list .time { font-family: "Courier New", monospace; font-size: 11px; color: #a2566b; flex-shrink: 0; }
.of-list a { color: #8a1538; }
.of-list a:hover { color: #c9445f; background: transparent; }

.of-cat-label {
  display: inline-block;
  border: 1px solid #c9a227; background: #fffdf8; color: #8a1538;
  font-size: 10.5px; letter-spacing: .04em; padding: 1px 10px; border-radius: 10px;
  text-decoration: none; white-space: nowrap;
  box-shadow: inset 0 0 0 1px #fdeef2;
}
a.of-cat-label:hover, .of-cat-label.on {
  background: linear-gradient(180deg, #a31b44, #8a1538);
  color: #fffdf8; border-color: #e7cf8e;
  box-shadow: 0 0 6px rgba(201, 162, 39, .5);
}

article.official-post { max-width: 760px; margin: 0 auto; color: #50393f; }
article.official-post .of-title {
  position: relative;
  font-size: 24px; line-height: 1.55; color: #8a1538;
  text-align: center; padding: 10px 6px 14px; margin: 10px 0 6px;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  letter-spacing: .08em;
  text-shadow: 1px 1px 0 #fffdf8;
  border-bottom: 3px double #c9a227;
  background: linear-gradient(180deg, transparent calc(100% - 6px), #fdf1f4 calc(100% - 6px));
}
article.official-post .of-title::before {
  content: "\2720\00A0\271D\00A0\2720";
  display: block; font-size: 13px; letter-spacing: .5em; color: #c9a227;
  margin-bottom: 4px;
  text-shadow: 0 0 8px rgba(201, 162, 39, .5);
}
.of-meta { font-size: 12px; font-family: "Courier New", monospace; color: #a2566b; text-align: center; margin-bottom: 16px; }

.of-eyecatch {
  border: 1px solid #c9a227;
  outline: 3px double #8a1538; outline-offset: 4px;
  margin: 6px 0 22px; padding: 5px;
  background: linear-gradient(180deg, #fffdf8, #fdf1f4);
  border-top-left-radius: 999px 130px;
  border-top-right-radius: 999px 130px;
  overflow: hidden;
}
.of-eyecatch img {
  display: block; width: 100%;
  border-top-left-radius: 999px 124px;
  border-top-right-radius: 999px 124px;
}

.of-body { font-size: 15.5px; color: #50393f; background: transparent; }
.of-body h2 {
  font-size: 19px; color: #8a1538;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  border-left: none; border-bottom: 2px solid #c9a227;
  background: linear-gradient(90deg, #fdf1f4, transparent 80%);
  padding: 5px 12px 4px; margin: 28px 0 12px;
  letter-spacing: .05em;
}
.of-body h2::before { content: "\271D\00A0"; color: #c9a227; font-size: 15px; }
.of-body h3 {
  font-size: 16px; color: #a31b44;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  border-bottom: 1px dashed #c9a227; padding-bottom: 3px; margin: 22px 0 9px;
}
.of-body h3::before { content: "\2720\00A0"; color: #c9a227; font-size: 12px; }
.of-body p { margin: 0 0 1.25em; }
.of-body a { color: #8a1538; }
.of-body blockquote {
  margin: 1.1em 0; padding: 10px 16px;
  border-left: 4px solid #c9a227;
  background: #fdf1f4;
  border-top: 1px dashed #e8b9c4; border-bottom: 1px dashed #e8b9c4;
  color: #6b2138;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
}
.of-body hr { border: none; height: 18px; margin: 26px 0; background: none; text-align: center; }
.of-body hr::before {
  content: "\2720\00A0\00A0\271D\00A0\00A0\2720";
  color: #c9a227; font-size: 13px; letter-spacing: .4em;
}

figure.of-photo {
  margin: 20px 0; padding: 6px;
  border: 1px solid #c9a227;
  outline: 1px solid #f0c6d1; outline-offset: 3px;
  background: #fffdf8;
  box-shadow: 2px 2px 0 #f6dde4; border-radius: 2px;
}
figure.of-photo img { display: block; width: 100%; }

.of-gallery { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); margin: 14px 0; }
.of-gallery a {
  border: 1px solid #c9a227; display: block; padding: 4px; background: #fffdf8;
  border-top-left-radius: 999px 220px; border-top-right-radius: 999px 220px;
  overflow: hidden;
  box-shadow: 2px 2px 0 #f6dde4;
}
.of-gallery a:hover { box-shadow: 0 0 0 2px #c9a227, 0 0 12px rgba(201, 162, 39, .45); }
.of-gallery img {
  display: block; width: 100%; aspect-ratio: 1/1; object-fit: cover;
  border-top-left-radius: 999px 214px; border-top-right-radius: 999px 214px;
}

.of-panel {
  background: #fffdf8;
  border: 1px solid #c9a227;
  outline: 1px solid #f0c6d1; outline-offset: 2px;
  border-radius: 2px;
  box-shadow: 2px 2px 0 #f6dde4;
  padding: 14px 16px; margin-bottom: 14px; color: #50393f;
}
.of-filled {
  background: linear-gradient(180deg, #a31b44, #761230);
  color: #ffe9ee; text-align: center; font-size: 13px;
  border: 1px solid #5e0e26; box-shadow: 0 0 0 1px #c9a227;
  padding: 12px; margin: 10px 0; border-radius: 2px;
}
.of-filled::before { content: "\271D"; display: block; color: #e7cf8e; font-size: 16px; margin-bottom: 2px; }
.of-comment-aborn { opacity: .5; font-style: italic; }

.btn.official {
  border: 1px solid #c9a227; box-shadow: 0 0 0 1px #fdeef2 inset, 1px 1px 0 #f3cdd6;
  color: #8a1538; background: linear-gradient(180deg, #fffdf8, #fdf1f4);
  border-radius: 3px;
}
.btn.official:hover { background: #fdf1f4; color: #761230; box-shadow: 0 0 0 1px #c9a227; }
.btn.official-primary {
  border: 1px solid #e7cf8e;
  background: linear-gradient(180deg, #a31b44, #8a1538);
  color: #fffdf8; box-shadow: 0 0 0 1px #8a1538, 1px 1px 0 #f3cdd6;
  border-radius: 3px; font-weight: bold; letter-spacing: .04em;
}
.btn.official-primary:hover { background: linear-gradient(180deg, #b82852, #9a1c40); color: #fff; }
.btn.official-primary::before { content: "\2720\00A0"; color: #e7cf8e; font-weight: normal; }

@media (max-width: 700px) {
  .of-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  article.official-post .of-title { font-size: 19px; letter-spacing: .05em; }
  .official-zone { padding: 14px 10px 16px; box-shadow: 0 0 0 5px #fdf1f4, 2px 3px 0 5px #e6d9c2; }
  .official-zone .oz-head .oz-logo { font-size: 18px; letter-spacing: .22em; }
  .of-eyecatch { border-top-left-radius: 999px 70px; border-top-right-radius: 999px 70px; }
  .of-eyecatch img { border-top-left-radius: 999px 66px; border-top-right-radius: 999px 66px; }
}
/* --- 該当箇所を以下のように書き換えてください --- */

.of-grid { 
  display: grid; 
  gap: 10px; 
  /* ★ここを修正：PCでは画面幅に合わせて4列、5列、6列と綺麗に正方形で横並びにする設定 */
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); 
}

.of-card { 
  border: 1px solid #000; 
  background: #fff; 
  padding: 4px; 
  text-decoration: none; 
  color: #000; 
  display: flex;         /* ★追加：縦長化を防ぐ */
  flex-direction: column;/* ★追加：縦長化を防ぐ */
}

.of-card:hover { outline: 2px solid #000; text-decoration: none; color: #000; background: #fff; }

.of-card .frame {
  position: relative;
  width: 100%;            /* ★追加：幅を100%に */
  aspect-ratio: 1 / 1;    /* ★追加：PCでも絶対に1:1の正方形にする */
  overflow: hidden;
  border: 1px solid #000;
  background: #fff;
}
.of-card .frame img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  display: block; 
}

/* =====================================================================
   V15：本編ゾーン／メディアカード（動画・ゲーム）／埋め込みステージ
   モバイル・ボトム固定ナビ／メニューシート
   ===================================================================== */

/* 本編（Web漫画）ゾーン：公式より格上の見せ方 */
.honpen-zone {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(231,207,142,.25), transparent 70%),
    linear-gradient(180deg, #fffdf8, #f7efe0);
  border: 1px solid #c9a227; outline: 2px solid #8a1538; outline-offset: 3px;
  border-radius: 10px; padding: 16px 16px 14px; margin: 4px 0 26px;
  box-shadow: 0 4px 14px rgba(110,15,44,.14);
}
.hz-head { text-align: center; margin-bottom: 12px; }
.hz-logo {
  font-family: "Hiragino Mincho ProN","Yu Mincho",serif; font-weight: bold;
  font-size: 21px; color: #8a1538; margin: 0; letter-spacing: .06em;
}
.hz-logo::before, .hz-logo::after { content: "\271D"; color: #c9a227; margin: 0 .5em; font-size: .8em; vertical-align: 2px; }
.hz-sub { font-size: 11.5px; color: #9a7a52; margin: 2px 0 0; letter-spacing: .08em; }
.honpen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.honpen-card {
  display: flex; flex-direction: column; text-decoration: none; color: #5e2a3a;
  background: #fffdf8; border: 1px solid #d9c7a8; border-radius: 8px; overflow: hidden;
  transition: transform .12s, box-shadow .15s;
}
.honpen-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(110,15,44,.2); }
.honpen-card .frame {
  position: relative; aspect-ratio: 3/4; background: #f3eadb; overflow: hidden;
  /* 教会のアーチ窓：上部を半円に */
  border-radius: 50% 50% 8px 8px / 30% 30% 8px 8px;
  border: 1px solid #d8b87a;
  box-shadow: inset 0 0 0 2px #fffdf8, inset 0 0 0 3px #e7cf8e;
}
.honpen-card .frame img { width: 100%; height: 100%; object-fit: cover; }
/* アーチ頂部に小さな十字の装飾 */
.honpen-card .frame::after {
  content: "\271D"; position: absolute; top: 4px; left: 50%; transform: translateX(-50%);
  color: #fffdf8; font-size: 13px; text-shadow: 0 1px 3px rgba(70,8,28,.6); z-index: 2;
}
.honpen-card .t { font-weight: bold; font-size: 13px; padding: 7px 9px 2px; line-height: 1.35; }
.honpen-card .m { font-size: 11px; color: #a2826a; padding: 0 9px 8px; }

/* メディアカード共通グリッド（動画・ゲーム） */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 8px; }
.media-card {
  display: flex; flex-direction: column; text-decoration: none; color: #5e2a3a;
  background: #fffdf8; border: 1px solid #d9c7a8; border-radius: 8px; overflow: hidden;
  transition: transform .12s, box-shadow .15s;
}
.media-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(110,15,44,.18); }
.mc-thumb {
  position: relative; width: 100%;
  background: radial-gradient(circle at 50% 40%, #b8264f, #8a1538 75%);
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
}
/* サムネ画像があるときは再生ボタンを半透明オーバーレイに */
.mc-thumb[style*="background-image"] .mc-play { background: rgba(253,250,243,.85); }
.mc-thumb.ar-16-9 { aspect-ratio: 16/9; }
.mc-thumb.ar-4-3  { aspect-ratio: 4/3; }
.mc-thumb.ar-1-1  { aspect-ratio: 1/1; }
.mc-thumb.ar-3-4  { aspect-ratio: 3/4; }
.mc-play {
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(253,250,243,.92); color: #8a1538;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.mc-kind {
  position: absolute; left: 0; bottom: 0;
  background: rgba(110,15,44,.92); color: #ffe9b0; border-top-right-radius: 8px;
  font-size: 9px; letter-spacing: .1em; padding: 2px 8px; border-top: 1px solid #e7cf8e; border-right: 1px solid #e7cf8e;
}
.mc-title { font-weight: bold; font-size: 13px; padding: 7px 9px 1px; line-height: 1.35; color: #6e0f2c; }
.mc-by { font-size: 11px; color: #a2826a; padding: 0 9px 8px; }

/* 埋め込みステージ（iframe・比率維持） */
.game-stage, .video-stage {
  position: relative; width: 100%; margin: 4px auto 0;
  background: #1a0810; border: 1px solid #c9a227; border-radius: 10px; overflow: hidden;
  box-shadow: 0 4px 16px rgba(70,8,28,.35);
}
.game-stage.ar-4-3  { aspect-ratio: 4/3; max-width: 720px; }
.game-stage.ar-16-9 { aspect-ratio: 16/9; max-width: 900px; }
.game-stage.ar-1-1  { aspect-ratio: 1/1; max-width: 620px; }
.game-stage.ar-3-4  { aspect-ratio: 3/4; max-width: 540px; }
.video-stage.ar-16-9 { aspect-ratio: 16/9; max-width: 900px; }
.game-stage iframe, .video-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.g-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.g-tags .tag-mini { text-decoration: none; }

/* =====================================================================
   モバイル・ボトム固定ナビ（PCでは非表示）
   ===================================================================== */
/* =====================================================================
   V19：モバイル教会風ハンバーガーメニュー（ボトムナビ廃止）
   ===================================================================== */
.hb-btn { display: none; }
.hb-drawer { display: none; }

@media (max-width: 1080px) {
  /* 旧ボトムナビの余白は不要 */
  body { padding-bottom: 0; }

  /* 右上に固定するハンバーガーボタン（金枠の聖印） */
  .hb-btn {
    display: flex; align-items: center; justify-content: center;
    position: fixed; top: 10px; right: 12px; z-index: 340;
    width: 46px; height: 46px; border: none; cursor: pointer;
    border-radius: 50% 50% 12px 12px;
    background: radial-gradient(circle at 50% 35%, #a31b44, #6e0f2c 80%);
    box-shadow: 0 3px 12px rgba(70,8,28,.45), 0 0 0 2px #fbf3e3, 0 0 0 3px #c9a227;
    transition: transform .15s, box-shadow .2s;
  }
  .hb-btn:active { transform: scale(.93); }
  .hb-lines { position: relative; width: 22px; height: 16px; display: block; }
  .hb-lines i {
    position: absolute; left: 0; width: 100%; height: 2.4px; border-radius: 2px;
    background: #f3dca0; transition: transform .35s cubic-bezier(.7,0,.3,1), opacity .25s, top .35s;
  }
  .hb-lines i:nth-child(1) { top: 0; }
  .hb-lines i:nth-child(2) { top: 7px; }
  .hb-lines i:nth-child(3) { top: 14px; }
  /* 開いている間は×印に変形（CSSアニメ） */
  .hb-open .hb-lines i:nth-child(1) { top: 7px; transform: rotate(45deg); }
  .hb-open .hb-lines i:nth-child(2) { opacity: 0; }
  .hb-open .hb-lines i:nth-child(3) { top: 7px; transform: rotate(-45deg); }
  .hb-open .hb-btn { border-radius: 12px; }

  /* ドロワー本体 */
  .hb-drawer { display: block; position: fixed; inset: 0; z-index: 335; pointer-events: none; }
  .hb-scrim {
    position: absolute; inset: 0; background: rgba(40,4,16,.55);
    opacity: 0; transition: opacity .4s ease; backdrop-filter: blur(2px);
  }
  .hb-panel {
    position: absolute; top: 0; right: 0; height: 100%; width: min(86%, 360px);
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    background:
      radial-gradient(ellipse 120% 40% at 70% 0%, rgba(231,207,142,.28), transparent 60%),
      linear-gradient(170deg, #fffdf8 0%, #f7efe0 60%, #f0e4cd 100%);
    border-left: 1px solid #8a1538;
    box-shadow: -14px 0 40px rgba(40,4,16,.45);
    transform: translateX(105%);
    transition: transform .5s cubic-bezier(.22,1,.36,1);
    padding-bottom: 28px;
  }
  .hb-open .hb-drawer { pointer-events: auto; }
  .hb-open .hb-scrim { opacity: 1; }
  .hb-open .hb-panel { transform: translateX(0); }

  /* 中身は開いたとき順番にふわっと（スタッガー） */
  .hb-panel > * { opacity: 0; transform: translateY(10px); }
  .hb-open .hb-panel > * { animation: hb-in .5s cubic-bezier(.22,1,.36,1) forwards; }
  .hb-open .hb-panel > *:nth-child(1) { animation-delay: .10s; }
  .hb-open .hb-panel > *:nth-child(2) { animation-delay: .16s; }
  .hb-open .hb-panel > *:nth-child(3) { animation-delay: .22s; }
  .hb-open .hb-panel > *:nth-child(4) { animation-delay: .27s; }
  .hb-open .hb-panel > *:nth-child(5) { animation-delay: .31s; }
  .hb-open .hb-panel > *:nth-child(6) { animation-delay: .35s; }
  .hb-open .hb-panel > *:nth-child(7) { animation-delay: .39s; }
  .hb-open .hb-panel > *:nth-child(8) { animation-delay: .43s; }
  .hb-open .hb-panel > *:nth-child(9) { animation-delay: .47s; }
  @keyframes hb-in { to { opacity: 1; transform: translateY(0); } }

  /* 上部：サイトの紋章 */
  .hb-crest {
    position: relative; text-align: center;
    padding: 22px 16px 18px;
    background:
      radial-gradient(ellipse 90% 80% at 50% 0%, rgba(201,162,39,.16), transparent 70%),
      linear-gradient(180deg, #8a1538, #6e0f2c);
    color: #ffe9b0;
    border-bottom: 2px solid #c9a227;
  }
  .hb-x {
    position: absolute; top: 8px; right: 10px; background: none; border: none;
    color: #f3dca0; font-size: 26px; line-height: 1; cursor: pointer; opacity: .85;
  }
  .hb-cross { font-size: 22px; color: #e7cf8e; margin-bottom: 2px; }
  .hb-title {
    font-family: "Hiragino Mincho ProN","Yu Mincho",serif; font-weight: bold;
    font-size: 28px; letter-spacing: .28em; text-indent: .28em;
    color: #fff; text-shadow: 0 1px 6px rgba(201,162,39,.6);
  }
  .hb-sub { font-size: 10.5px; color: #e7cf8e; letter-spacing: .08em; margin-top: 6px; }

  /* アカウント */
  .hb-acct, .hb-login { margin: 14px 14px 0; display: block; }
  .hb-acct {
    background: #fffdf8; border: 1px solid #e0cfae; border-radius: 10px;
    padding: 11px 13px; font-size: 13px; color: #5e4438;
  }
  .hb-acct-name { display: block; margin-bottom: 8px; }
  .hb-acct-act { display: flex; gap: 8px; }
  .hb-acct-act a {
    flex: 1; text-align: center; text-decoration: none; font-weight: bold; font-size: 12.5px;
    padding: 8px 0; border-radius: 6px; background: #f3eadb; color: #8a1538; border: 1px solid #c9a227;
  }
  .hb-acct-act a.ghost { background: #fff; color: #8a6a55; }
  .hb-login {
    text-decoration: none; text-align: center; border-radius: 10px;
    padding: 12px; background: linear-gradient(180deg,#a31b44,#8a1538);
    border: 1px solid #6e0f2c; box-shadow: 0 2px 8px rgba(110,15,44,.3);
  }
  .hb-login-t { display: block; color: #fff; font-weight: bold; font-size: 14px; }
  .hb-login-d { display: block; color: #f3dca0; font-size: 10.5px; margin-top: 3px; }

  /* セクション見出し */
  .hb-sec {
    margin: 18px 18px 8px; font-size: 11px; letter-spacing: .18em; color: #a3835a;
    font-family: "Hiragino Mincho ProN","Yu Mincho",serif; position: relative;
  }
  .hb-sec::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
    background: linear-gradient(90deg, #d8b87a, transparent);
  }

  /* 導線リンク */
  .hb-links { margin: 0 12px; display: flex; flex-direction: column; gap: 2px; }
  .hb-link {
    display: flex; align-items: center; gap: 13px; text-decoration: none;
    padding: 12px 12px; border-radius: 9px; color: #5e2a3a;
    transition: background .15s, transform .1s;
  }
  .hb-link:active { background: #f3e6cd; transform: scale(.99); }
  .hb-link.active { background: #fdf1dd; box-shadow: inset 3px 0 0 #8a1538; }
  .hb-li {
    flex-shrink: 0; width: 38px; height: 38px; border-radius: 50% 50% 9px 9px;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle at 50% 36%, #fff6e9, #f0dcc0);
    box-shadow: inset 0 0 0 1px #d8b87a; color: #8a1538;
  }
  .hb-li svg { width: 21px; height: 21px; fill: currentColor; }
  .hb-li svg [stroke] { fill: none; }
  .hb-lt { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
  .hb-lt small { display: block; font-size: 10.5px; color: #a2826a; font-weight: normal; margin-top: 1px; }

  /* 投稿3カード */
  .hb-post3 { margin: 0 12px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .hb-pcard {
    display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none;
    padding: 12px 4px; border-radius: 10px; color: #6e0f2c; font-size: 11.5px; font-weight: bold;
    background: #fffdf8; border: 1px solid #e0cfae; border-top: 3px solid #c9a227;
  }
  .hb-pcard:active { background: #fdf6ea; }
  .hb-pi {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle at 50% 36%, #fff6e9, #f0dcc0);
    box-shadow: inset 0 0 0 1px #d8b87a; color: #8a1538;
  }
  .hb-pi svg { width: 22px; height: 22px; fill: currentColor; }
  .hb-pi svg [stroke] { fill: none; }

  .hb-mini { text-align: center; margin: 16px 14px 0; font-size: 12px; }
  .hb-mini a { color: #8a6a55; text-decoration: none; }
  .hb-mini span { color: #cbb58e; margin: 0 6px; }

  /* 下部：著作権 */
  .hb-foot {
    margin: 18px 14px 0; padding: 14px 12px;
    border-top: 1px solid #e0cfae; text-align: center;
    font-size: 10.5px; line-height: 1.7; color: #9a8264;
  }
  .hb-foot-mark { color: #c9a227; font-size: 16px; margin-bottom: 6px; }
  .hb-foot-c { display: block; margin-top: 8px; color: #b09a72; letter-spacing: .04em; }
}

/* PC ではハンバーガーもドロワーも出さない */
@media (min-width: 1081px) {
  .hb-btn, .hb-drawer { display: none !important; }
}

/* =====================================================================
   V16/V17：視聴回数（目）＆複数リアクション（すてき/お気に入り/祈り/感動）
   ===================================================================== */
.rx-bar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin: 10px 0 2px; padding: 6px 0;
}
.rx-views {
  display: inline-flex; align-items: center; gap: 5px;
  color: #8a6a55; font-size: 13px; font-family: "Courier New", monospace;
}
.rx-eye { width: 19px; height: 19px; fill: #b08a72; }
.rx-views .rx-num { color: #6e4a38; }

/* リアクションボタン群 */
.rx-react { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; }
.rx-rform { margin: 0; }
.rx-rbtn {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  background: #fffdf8; border: 1px solid #e0cfae; border-radius: 999px;
  padding: 7px 13px 7px 11px; font-family: inherit; font-size: 12.5px; color: #8a6a55;
  transition: background .15s, border-color .15s, transform .1s, color .15s;
}
.rx-rbtn:hover { background: #fdf6ea; border-color: #c9a227; }
.rx-rbtn:active { transform: scale(.93); }
.rx-ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; transition: fill .15s, stroke .15s; }
.rx-rbtn .rx-rlabel { font-size: 12px; }
.rx-rbtn .rx-num { font-family: "Courier New", monospace; font-weight: bold; }

/* 押下済み：種別ごとに色を変えてアイコンを塗る */
.rx-rbtn.active { color: #fff; border-color: transparent; }
.rx-rbtn.active .rx-ico { fill: currentColor; stroke: #fff; stroke-width: 1; }
.rx-heart.active, .rx-rbtn.rx-heart.active { background: linear-gradient(180deg,#c9445f,#a31b44); }
.rx-rbtn.rx-star.active  { background: linear-gradient(180deg,#d8a72a,#b3851a); }
.rx-rbtn.rx-pray.active  { background: linear-gradient(180deg,#8a6db8,#5f4a8c); }
.rx-rbtn.rx-bravo.active { background: linear-gradient(180deg,#c9445f,#8a1538); }
/* 各種別の通常時のアイコン色 */
.rx-rbtn.rx-heart .rx-ico { stroke: #c9445f; }
.rx-rbtn.rx-star  .rx-ico { stroke: #c9a227; }
.rx-rbtn.rx-pray  .rx-ico { stroke: #7c5fae; }
.rx-rbtn.rx-bravo .rx-ico { stroke: #c9445f; }

/* メディアカードのメタ（視聴・反応） */
.mc-meta {
  display: flex; align-items: center; gap: 10px; padding: 0 9px 8px;
  font-size: 11px; color: #a2826a; font-family: "Courier New", monospace;
}
.mc-meta .rx-views { font-size: 11px; }
.mc-meta .rx-eye { width: 14px; height: 14px; }
.mc-react { display: inline-flex; align-items: center; gap: 3px; }
.mc-react .rx-ico { width: 13px; height: 13px; fill: #c9445f; stroke: none; }

@media (max-width: 700px) {
  .rx-rbtn { padding: 8px 14px 8px 12px; font-size: 13px; }  /* 指で押しやすく */
  .rx-react { gap: 7px; }
}

/* V19：いいね押下時のポップ（その場フィードバック） */
.rx-rbtn.rx-pop { animation: rx-pop .22s ease; }
@keyframes rx-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.18); }
  100% { transform: scale(1); }
}
