/*
 * トップページ 2026-10 改修分
 * site-original.css / migration.css の後に読み込み、上書きします。
 */

/* ---------- ヘッダー：サイト名と和文メニュー ---------- */
.site-header {
  border-bottom: 0;
  padding: 26px 0 0;
  align-items: center;
}
.site-name {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--ink);
}
.site-name span { color: var(--blue); }
.site-header nav {
  gap: 26px;
  font-family: inherit;
  letter-spacing: 0;
}
.site-header nav a {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 6px 2px 7px;
  border-bottom: 1px solid #0000;
}
.site-header nav a b {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--ink);
}
.site-header nav a small {
  font: 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .22em;
  color: var(--blue);
}
.site-header nav a:hover,
.site-header nav a:focus-visible { border-color: var(--brown); }

/* ---------- 部屋：キャッチコピーをやめて部屋を主役に ---------- */
.intro { padding: 34px 0 56px; }
.intro .room-section { margin-top: 0; }
.room-note {
  margin: 18px auto 0;
  max-width: 1180px;
  text-align: center;
  font-size: 13px;
  color: #6c6660;
}
/* 部屋に will-change を付けない（吹き出し表示時の画像ブレ対策） */
.pixel-room { will-change: auto; }

/* ---------- 作品：世界ごとに画面を固定し、次の世界が波ごとせり上がる ---------- */
/* 泡（worlds-intro）は元のまま。部屋からこぼれた雫の先に世界が広がる。 */
.works { padding: 0; }
.worlds-intro { height: 230px; }   /* 泡から最初の世界までの間を詰める */
.worlds-intro h2 { bottom: 64px; }
.world-list { position: relative; }
.world-list .world-portal {
  position: sticky;          /* top は site.js が「下端が画面下に来た位置」で固定 */
  inset: auto;
  top: 0;
  width: 100%;
  min-height: 0;
  height: auto;
  clip-path: none;           /* 上端の波は site.js が描く */
  will-change: auto;
  pointer-events: auto;
  overflow: visible;
}
.world-list .world-portal:nth-child(1) { z-index: 1; }
.world-list .world-portal:nth-child(2) { z-index: 2; }
.world-list .world-portal:nth-child(3) { z-index: 3; }

/* 絵とタイトル：世界の中では画面に貼りついたまま */
.world-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
}
.world-list .portal-art { left: -6px; width: calc(100% + 12px); max-width: none; }
.world-list .portal-copy {
  width: min(1120px, 100% - 64px);
  min-height: 0;
  height: 100%;
  padding: 23svh 32px 0;   /* 波の先端からタイトルを離す */
  justify-content: flex-start;
  transform: none;
  color: #283034;
}
.world-list .portal-copy h3 { font-size: clamp(40px, 6vw, 76px); }
.world-portal.esperanza .portal-copy { color: #f8eee8; }

/* 作品番号の小さな札：少し傾けて、タイトルの左上に */
.world-list .portal-copy .world-number {
  align-self: flex-start;
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  margin: 0 0 14px -6px;
  padding: 7px 15px 6px 13px;
  outline: 1px dashed #c9b49d;
  outline-offset: -5px;
  background: #f7f3ea;
  border: 1px solid #b9a48e;
  border-radius: 3px;
  box-shadow: 2px 3px 0 #523e2d26;
  color: #7a5b43;
  font: 600 24px/1 "Yu Mincho", "Hiragino Mincho ProN", serif;
  letter-spacing: .06em;
  opacity: 1;
  text-shadow: none;
  transform: rotate(-6deg);
  transform-origin: left bottom;
}
.world-list .portal-copy .world-number small { font-size: 11px; letter-spacing: .1em; color: var(--blue); }
.world-list .world-portal:nth-child(2) .world-number { transform: rotate(4deg); }
.world-list .world-portal.esperanza .world-number { background: #2b1416; border-color: #6b3a36; color: #f0c1b8; outline-color: #6b3a36; transform: rotate(-3deg); }
.world-list .world-portal.esperanza .world-number small { color: #e7a39a; }

/* 説明はタイトルのすぐ下に置き、絵と一緒に固定（タイトルと重ならない） */
.world-detail { height: 60svh; }   /* この長さぶん、世界が画面に留まる */
.detail-card {
  margin-top: 26px;
  width: min(440px, 100%);
  padding: 22px 26px 20px;
  background: #f7f3eaee;
  border: 1px solid #cfc5b8;
  box-shadow: 8px 10px 0 #523e2d1f;
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.95;
  text-shadow: none;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s .45s, transform .8s cubic-bezier(.2,.75,.2,1) .45s;
}
.world-portal.is-visible .detail-card { opacity: 1; transform: none; }
.detail-card p { margin: 0 0 12px; }
.detail-label {
  font: 700 10px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .14em;
  color: var(--blue);
}
/* 作品ページへの入口：説明文と見分けがつくよう、ボタンにする */
.world-list .detail-link {
  display: inline-flex;
  flex-direction: row;
  align-self: flex-start;
  width: auto;
  border: 0;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  padding: 12px 14px 12px 20px;
  background: #4c6672;
  color: #f7f3ea;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .1em;
  box-shadow: 4px 5px 0 #523e2d2e;
  transition: background .25s, transform .25s, box-shadow .25s;
}
.detail-link .link-arrow {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid #f7f3ea99;
  border-radius: 50%;
  font-size: 13px;
  transition: transform .25s;
}
.world-list .detail-link:hover,
.world-list .detail-link:focus-visible { background: #7a5b43; transform: translate(-1px, -1px); box-shadow: 6px 7px 0 #523e2d2e; }
.detail-link:hover .link-arrow { transform: translateX(3px); }
.world-list .detail-link.is-soon { background: none; box-shadow: none; padding: 0; border-bottom: 1px dashed currentColor; font-weight: 400; opacity: .75; }
.world-portal.esperanza .detail-card { background: #2b1416ee; border-color: #6b3a36; color: #f6e9e4; box-shadow: 8px 10px 0 #0000004d; }
.world-portal.esperanza .detail-label { color: #e7a39a; }
.world-list .world-portal.esperanza .detail-link.is-soon { color: #e7a39a; }

/* 世界の後ろのセクションも固定された最後の世界の上に重なる */
.trpg-section, footer { position: relative; z-index: 4; }
/* 最後の世界を固定したまま、「遊べる物語」を波ごと下からせり上がらせる */
.world-tail { height: 100svh; }
.trpg-section { margin-top: -100svh; }

/* その他の制作物に言祝探偵事務所を加えて5列 */
.small-works { grid-template-columns: repeat(5, 1fr); position: relative; z-index: 4; }

/* ---------- フッター：一行の案内だけ ---------- */
footer {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 36px max(24px, 50vw - 590px);
}
footer .footer-name {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 16px;
  letter-spacing: .14em;
  color: var(--ink);
}

@media (width <= 800px) {
  .site-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .site-header nav { gap: 18px; }
  .site-header nav a:nth-child(2) { display: grid; }
  .world-list .portal-copy { width: 100%; padding: 15svh 18px 0; }
  .worlds-intro { height: 190px; }
  .world-detail { height: 50svh; }
  .detail-card { padding: 18px 18px; font-size: 13px; }
  .small-works { grid-template-columns: 1fr 1fr; }
  footer { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- 重ねた絵：背景と立ち絵を分け、人物は右側にまとめる ---------- */
.layer-bg { position: absolute; inset: -4% 0 auto; width: 100%; height: 108%; object-fit: cover; z-index: -3; max-width: none; }
.layer-chars {
  position: absolute; z-index: -1; right: 2vw; bottom: 0; height: 66svh;
  display: flex; align-items: flex-end; pointer-events: none;
}
/* どの立ち絵も元の縮尺のまま同じ高さで並べる（大小をつけない） */
.layer-chars img { height: 100%; width: auto; max-width: none; filter: drop-shadow(0 14px 22px #2d4a5a33); }
.layer-chars img + img { margin-left: -5svh; }
/* 虹色の花も4人の集合絵1枚。腰から下は画面の外に出し、零からゼロへと顔の大きさを揃える */
.world-portal.rainbow .layer-chars { right: -2vw; height: 68svh; }
.world-portal.rainbow .layer-bg { object-position: center 60%; }
/* 零からゼロへは4人の集合絵1枚 */
.world-portal.zero .layer-chars { right: 2vw; height: 82svh; }
/* 左側に淡い紙色をかけ、タイトルと説明を読みやすく */
.world-portal.zero .portal-wash,
.world-portal.rainbow .portal-wash {
  opacity: 1;
  background: linear-gradient(90deg, #f4f0e8d9 0%, #f4f0e8a6 30%, #f4f0e800 56%);
}
@media (width <= 800px) {
  .layer-chars { right: -10vw; height: 44svh; }
  .world-portal.zero .layer-chars { right: -6vw; height: 52svh; }
  .world-portal.rainbow .layer-chars { right: -40vw; height: 40svh; }
  .world-portal.zero .portal-wash,
  .world-portal.rainbow .portal-wash { background: linear-gradient(180deg, #f4f0e8d9 0%, #f4f0e8a6 45%, #f4f0e800 70%); }
}

/* ---------- 遊べる物語：正方形の表紙を5冊並べ、下に作品情報 ---------- */
.trpg-section .scenario-grid { grid-template-columns: repeat(5, 1fr); gap: 22px; }
.scenario-cover { display: grid; gap: 10px; align-content: start; color: var(--ink); }
.scenario-cover img {
  width: 100%; height: auto; aspect-ratio: 1; display: block;
  border: 1px solid #2d303233;
  box-shadow: 6px 8px 0 #523e2d22;
  transition: transform .2s, box-shadow .2s;
}
.scenario-cover:hover img,
.scenario-cover:focus-visible img { transform: translate(-3px, -4px); box-shadow: 10px 12px 0 #523e2d2b; }
.scenario-cover b { margin-top: 6px; font: 600 16px/1.5 "Yu Mincho", "Hiragino Mincho ProN", serif; letter-spacing: .04em; }
.scenario-cover small { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11px; line-height: 1.6; color: #6c6660; }
.scenario-cover small em { font-style: normal; padding: 1px 8px; border: 1px solid #b9a48e; border-radius: 999px; color: #7a5b43; white-space: nowrap; }
@media (width <= 800px) {
  .trpg-section .scenario-grid { grid-template-columns: 1fr 1fr; gap: 22px 14px; }
}
.world-list .world-portal.esperanza .detail-link:not(.is-soon) { background: #8a3a32; }
.world-list .world-portal.esperanza .detail-link:not(.is-soon):hover { background: #a8473c; }

/* 虹色の花のカモメは元の形（弧2本）のまま */

/* フッターはページの一番下で、ふわっと表示の判定に入らず透明のまま残っていたので、常に表示する */
footer [data-repeat-reveal] { opacity: 1 !important; transform: none !important; }

/* ---------- ヘッダー：画面の上に固定して、いつでもメニューから移動できるように ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  width: 100%;
  margin: 0;
  padding: 10px max(24px, 50vw - 590px);
  background: #eef1eee0;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 #2d303214;
}
.site-header nav a { padding: 4px 2px 5px; }
section[id], article[id] { scroll-margin-top: 64px; }

/* ---------- noteの記事 ---------- */
.note-section { position: relative; z-index: 4; padding: 72px max(24px, 50vw - 590px) 88px; background: #f4eddf; }
.note-section .section-heading a { border-bottom: 1px solid var(--brown); padding-bottom: 3px; }
.note-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1180px; margin: 0 auto; }
.note-card { display: grid; align-content: start; gap: 8px; color: var(--ink); }
.note-card img { width: 100%; aspect-ratio: 1.91 / 1; object-fit: cover; border: 1px solid #2d303226; box-shadow: 5px 6px 0 #523e2d1f; transition: transform .2s, box-shadow .2s; }
.note-card:hover img, .note-card:focus-visible img { transform: translate(-2px, -3px); box-shadow: 8px 9px 0 #523e2d29; }
.note-card small { margin-top: 6px; font: 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; color: var(--blue); }
.note-card b { font: 600 15px/1.6 "Yu Mincho", "Hiragino Mincho ProN", serif; }
.note-empty { grid-column: 1 / -1; font-size: 13px; color: #6c6660; }
.note-empty a { border-bottom: 1px solid var(--brown); }
.trpg-section { padding-bottom: 64px; }

@media (width <= 800px) {
  .site-header { flex-direction: row; align-items: center; gap: 10px; padding: 8px 14px; }
  .site-name { font-size: 15px; letter-spacing: .08em; white-space: nowrap; }
  .site-header nav { gap: 12px; }
  .site-header nav a small { display: none; }
  .site-header nav a b { font-size: 13px; letter-spacing: .04em; }
  section[id], article[id] { scroll-margin-top: 48px; }
  .note-list { grid-template-columns: 1fr; gap: 20px; }
  .note-section { padding: 56px 18px 64px; }
}

/* ---------- このサイトについて：部屋のすぐ下に短い案内 ---------- */
.about-site { position: relative; z-index: 4; padding: 8px max(24px, 50vw - 590px) 72px; }
.about-inner { max-width: 680px; margin: 0 auto; padding: 32px 36px; background: #fbf8f1; border: 1px solid #2d30321f; box-shadow: 6px 7px 0 #523e2d17; }
.about-inner h2 { margin: 0 0 14px; font: 600 18px/1.5 "Yu Mincho", "Hiragino Mincho ProN", serif; letter-spacing: .12em; color: var(--ink); }
.about-inner p { margin: 0; font-size: 14px; line-height: 2; color: #4a4642; }
.about-inner p + p { margin-top: 10px; }

/* 作品の見出しは日本語で */
.worlds-intro h2 { font: 600 clamp(22px, 2.6vw, 30px)/1.4 "Yu Mincho", "Hiragino Mincho ProN", serif; letter-spacing: .24em; color: var(--ink); }

/* TRPGの説明文 */
.trpg-section .section-heading > p { max-width: 460px; font-size: 13px; line-height: 1.9; }
.trpg-section .section-heading > p small { display: inline-block; margin-top: 6px; color: #6c6660; }

/* ---------- そのほかの活動：横一列をやめ、1項目ずつ説明付きで ---------- */
.small-works { display: block; padding: 72px max(24px, 50vw - 590px) 88px; background: #eef1ee; border: 0; }
.small-works .section-heading { margin-bottom: 24px; }
.other-list { list-style: none; max-width: 1180px; margin: 0 auto; padding: 0; border-top: 1px solid #2d303226; }
.other-list li { border-bottom: 1px solid #2d303226; }
.other-list a {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 28px;
  align-items: baseline;
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 20px 6px;
  border: 0;
  box-shadow: none;
  background: none;
  letter-spacing: normal;
  text-align: left;
  color: var(--ink);
  transition: background .2s;
}
.other-list a:hover, .other-list a:focus-visible { background: #ffffff8c; }
.other-list b { grid-column: 1; grid-row: 1; font: 600 16px/1.5 "Yu Mincho", "Hiragino Mincho ProN", serif; letter-spacing: .06em; }
.other-list small { grid-column: 1; grid-row: 2; position: static; margin: 0; font-size: 11px; color: var(--blue); letter-spacing: .06em; }
.other-list .other-desc { letter-spacing: normal; grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 13px; line-height: 1.8; color: #4a4642; }
.other-list .other-more { grid-column: 3; grid-row: 1 / 3; align-self: center; font-size: 12px; color: var(--brown); white-space: nowrap; }
.other-list li#teito .other-more { color: #8d8780; }

@media (width <= 800px) {
  .about-site { padding: 0 16px 56px; }
  .about-inner { padding: 24px 20px; }
  .small-works { padding: 56px 18px 64px; }
  .other-list a { grid-template-columns: 1fr auto; column-gap: 14px; padding: 16px 4px; }
  .other-list b { grid-column: 1; }
  .other-list small { grid-column: 1; grid-row: 2; position: static; margin: 0; }
  .other-list .other-desc { grid-column: 1 / -1; grid-row: 3; margin-top: 6px; }
  .other-list .other-more { grid-column: 2; grid-row: 1 / 3; }
}
.other-list .other-desc, .other-list .other-more { margin: 0; font-family: inherit; letter-spacing: normal; }
.other-list .other-desc { font-size: 13px; line-height: 1.8; }
.other-list .other-more { font-size: 12px; line-height: 1.5; }

/* プロフィール：羊のアイコンと短い紹介 */
.profile { display: grid; grid-template-columns: 88px 1fr; gap: 22px; align-items: start; }
.profile-icon { width: 88px; height: 88px; border-radius: 50%; background: #eef1ee; border: 1px solid #2d30321f; }
.about-inner .profile-name { margin-bottom: 4px; font: 600 16px/1.6 "Yu Mincho", "Hiragino Mincho ProN", serif; letter-spacing: .08em; color: var(--ink); }
.profile-name small { margin-left: 4px; font-size: 12px; font-weight: 400; color: #6c6660; }
.about-inner .profile-note { margin-top: 8px; font-size: 12px; color: #6c6660; }
.about-inner .site-guide { margin-top: 20px; padding-top: 16px; border-top: 1px dashed #2d303233; }
@media (width <= 800px) {
  .profile { grid-template-columns: 64px 1fr; gap: 14px; }
  .profile-icon { width: 64px; height: 64px; }
}

/* 「創作作品紹介」の下に、前の英字の見出しを小さく残す */
.worlds-intro h2 { bottom: 78px; }
.worlds-en { position: absolute; bottom: 52px; left: 50%; transform: translateX(-50%); z-index: 1; margin: 0; white-space: nowrap; font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .28em; color: #617077; }

/* noteの記事：タイトルは小さく、本文を枠の中でスクロールして読めるように */
.note-card { gap: 10px; }
.note-frame {
  height: 380px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 0 18px;
  background: #fffdf8;
  border: 1px solid #2d303226;
  box-shadow: 5px 6px 0 #523e2d1f;
  scrollbar-width: thin;
  scrollbar-color: #b9ab98 transparent;
}
.note-frame:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.note-frame > img { display: block; width: 100%; aspect-ratio: 1.91 / 1; object-fit: cover; border: 0; box-shadow: none; }
.note-card:hover .note-frame > img { transform: none; box-shadow: none; }
.note-frame > small { display: block; margin: 14px 18px 0; }
.note-title { display: block; margin: 6px 18px 0; font: 600 14px/1.6 "Yu Mincho", "Hiragino Mincho ProN", serif; color: var(--ink); }
.note-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.note-body { margin: 10px 18px 0; padding-top: 10px; border-top: 1px dashed #2d303226; font-size: 12.5px; line-height: 1.9; color: #4a4642; }
.note-body p { margin: 0 0 .9em; }
.note-body h2, .note-body h3, .note-body h4 { margin: 1.2em 0 .5em; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.note-body blockquote { margin: 0 0 .9em; padding: 6px 10px; border-left: 3px solid #c9bba6; background: #f4eddf; }
.note-body blockquote p { margin: 0; }
.note-body figure { margin: 0 0 .9em; }
.note-body figcaption:empty { display: none; }
.note-body figcaption { font-size: 11px; color: #8d8780; }
.note-body img { max-width: 100%; height: auto; margin: 4px 0; }
.note-body a { color: var(--blue); text-decoration: underline; }
.note-body pre { white-space: pre-wrap; font-size: 11.5px; }
.note-more { justify-self: end; font-size: 12px; color: var(--brown); border-bottom: 1px solid currentColor; }
@media (width <= 800px) {
  .note-frame { height: 320px; }
}

/* TRPG：説明文は見出しの下に左寄せで。縁はまっすぐな線 */
.trpg-section { box-shadow: 0 -1px 0 #523e2d26, 0 -14px 28px #2d30321f; }
.trpg-section .trpg-lead { margin: 18px 0 0; max-width: none; font-size: 13.5px; line-height: 2; color: #4a4642; text-align: left; }
.trpg-section .trpg-hint { font-size: 12px; color: #6c6660; }
@media (width <= 800px) {
  .trpg-section .trpg-lead br { display: none; }
}

/* このサイトについて（作り直し）：箱をやめ、横長の一段にまとめる */
.about-site { padding: 0 max(24px, 50vw - 590px) 56px; }
.about-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 250px;
  gap: 32px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 4px;
  background: none;
  border: 0;
  border-top: 1px solid #2d303226;
  border-bottom: 1px solid #2d303226;
  box-shadow: none;
}
.profile-head { display: flex; align-items: center; gap: 14px; }
.profile-icon { width: 60px; height: 60px; }
.about-inner h2 { margin: 0 0 4px; font-size: 12px; font-weight: 500; line-height: 1.4; letter-spacing: .1em; color: #6c6660; }
.about-inner h2 span { margin-right: 8px; font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .24em; color: var(--blue); }
.about-inner .profile-name { margin: 0; font-size: 15px; white-space: nowrap; }
.about-inner .profile-text p { font-size: 12.5px; line-height: 1.85; }
.about-inner .profile-note { margin-top: 4px; font-size: 11px; }
.about-inner .site-guide { margin: 0; padding: 0 0 0 20px; border-top: 0; border-left: 1px dashed #2d303233; font-size: 11px; line-height: 1.8; color: #8d8780; }
@media (width <= 800px) {
  .about-site { padding: 0 16px 44px; }
  .about-inner { grid-template-columns: 1fr; gap: 12px; padding: 18px 2px; }
  .profile-icon { width: 52px; height: 52px; }
  .about-inner .site-guide { padding: 10px 0 0; border-left: 0; border-top: 1px dashed #2d303233; }
}

/* 「このサイトについて」は帯の上の線にかかる小さな見出しにして、名前と分ける */
.about-inner { position: relative; padding-top: 28px; }
.about-inner .about-label { position: absolute; top: -8px; left: 0; margin: 0; padding-right: 12px; background: #f3efe6; font-size: 12px; line-height: 16px; }
@media (width <= 800px) { .about-inner { padding-top: 24px; } }

/* noteの記事（作り直し）：最新の1件を大きく、それ以前は小さく並べる */
.note-list { display: block; }
.note-feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: start; }
.note-feature-side { display: grid; gap: 8px; }
.note-feature-thumb img { display: block; width: 100%; aspect-ratio: 1.91 / 1; object-fit: cover; border: 1px solid #2d303226; box-shadow: 5px 6px 0 #523e2d1f; }
.note-date { font: 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; color: var(--blue); }
.note-feature-side .note-date { margin-top: 8px; }
.note-feature-side .note-title { margin: 0; font-size: 15px; }
.note-feature-main { display: grid; gap: 10px; }
.note-feature-main .note-frame { height: 300px; padding: 4px 0 16px; }
.note-feature-main .note-body { border-top: 0; padding-top: 6px; }
.note-sub { margin: 40px 0 12px; font-size: 12px; letter-spacing: .1em; color: #6c6660; }
.note-mini-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 16px; }
.note-mini { display: grid; align-content: start; gap: 5px; color: var(--ink); }
.note-mini img { width: 100%; aspect-ratio: 1.91 / 1; object-fit: cover; border: 1px solid #2d30321f; transition: transform .2s; }
.note-mini:hover img, .note-mini:focus-visible img { transform: translateY(-2px); }
.note-mini b { font-size: 12px; font-weight: 600; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.note-mini .note-date { font-size: 10px; }
@media (width <= 800px) {
  .note-feature { grid-template-columns: 1fr; gap: 14px; }
  .note-feature-main .note-frame { height: 260px; }
  .note-mini-list { grid-template-columns: repeat(2, 1fr); gap: 14px 12px; }
}

/* ---------- エスペランサ：電波ノイズを「入った瞬間だけ」から「数秒おきに続く」へ ---------- */
/* 普段はうっすら走査線が残り、約5秒ごとに0.7秒ほどジジッと乱れる。明るさの点滅は控えめに、横ずれで見せる */
.world-portal.esperanza .signal-noise { opacity: .16; }
.world-portal.esperanza.is-active .signal-noise,
.world-portal.esperanza.is-visible .signal-noise { animation: signal-loop 5.2s steps(1, end) infinite; }
.world-portal.esperanza .signal-noise::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 30%;
  height: 7%;
  background: linear-gradient(90deg, #0000, #ff8f7a55 20%, #fff0e844 50%, #ff5c4b55 80%, #0000), repeating-linear-gradient(90deg, #0000 0 6px, #ffe6db30 6px 9px);
  opacity: 0;
}
.world-portal.esperanza.is-active .signal-noise::before,
.world-portal.esperanza.is-visible .signal-noise::before { animation: signal-tear 5.2s steps(1, end) infinite; }
@keyframes signal-loop {
  0%, 84%, 100% { opacity: .16; transform: none; }
  86% { opacity: .55; transform: translateX(-14px); }
  89% { opacity: .35; transform: translateX(8px); }
  92% { opacity: .6; transform: translateX(-5px); }
  95% { opacity: .3; transform: translateX(3px); }
}
@keyframes signal-tear {
  0%, 84%, 100% { opacity: 0; transform: none; }
  86% { opacity: 1; top: 28%; transform: translateX(-24px) scaleY(1); }
  89% { opacity: .8; top: 54%; transform: translateX(16px) scaleY(.6); }
  92% { opacity: 1; top: 41%; transform: translateX(-8px) scaleY(1.4); }
  95% { opacity: .6; top: 68%; transform: translateX(4px) scaleY(.5); }
}
@media (prefers-reduced-motion: reduce) {
  .world-portal.esperanza .signal-noise, .world-portal.esperanza .signal-noise::before { animation: none !important; }
}

/* ---------- 見出しと説明文を「このサイトについて」と同じ細さ・小ささにそろえる ---------- */
.note-section .section-heading,
.trpg-section .section-heading,
.small-works .section-heading { display: flex; align-items: center; gap: 12px; max-width: 1180px; margin: 0 auto 22px; padding: 0; }
.note-section .section-heading > div,
.trpg-section .section-heading > div,
.small-works .section-heading > div { display: flex; align-items: baseline; gap: 8px; flex: none; }
.note-section .section-heading::after,
.trpg-section .section-heading::after,
.small-works .section-heading::after { content: ""; order: 1; flex: 1; border-top: 1px solid #2d303226; }
.note-section .section-heading > p,
.trpg-section .section-heading > p,
.small-works .section-heading > p { order: 2; margin: 0; max-width: none; font-size: 11px; line-height: 1.6; color: #8d8780; text-align: right; }
.note-section .section-heading .eyebrow,
.trpg-section .section-heading .eyebrow,
.small-works .section-heading .eyebrow { margin: 0; font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .24em; color: var(--blue); }
.note-section .section-heading h2,
.trpg-section .section-heading h2,
.small-works .section-heading h2 { margin: 0; font: 400 12px/1.4 inherit; font-family: inherit; font-size: 12px; letter-spacing: .1em; color: #6c6660; }
.note-section .section-heading a { border-bottom: 0; color: #8d8780; }
.note-section .section-heading a:hover { color: var(--brown); }

.trpg-section .trpg-lead { max-width: 1180px; margin: -8px auto 22px; font-size: 12.5px; line-height: 1.85; color: #4a4642; }
.trpg-section .trpg-hint { font-size: 11px; }

.note-sub { margin: 32px 0 10px; font-size: 11px; color: #8d8780; }
.note-feature-side .note-title { font-size: 14px; }
.note-body { font-size: 12.5px; line-height: 1.85; }

.other-list b { font-size: 14px; }
.other-list small { font-size: 10.5px; }
.other-list .other-desc { font-size: 12.5px; line-height: 1.85; }
.other-list .other-more { font-size: 11px; }
.other-list a { padding: 16px 6px; }

@media (width <= 800px) {
  .note-section .section-heading, .trpg-section .section-heading, .small-works .section-heading { flex-wrap: wrap; row-gap: 6px; }
  .note-section .section-heading > p, .trpg-section .section-heading > p { flex-basis: 100%; text-align: left; }
}

/* noteの並び（作り直し）：一覧を上、最新記事の本文を下に */
.note-mini-list { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 16px 14px; }
.note-new { margin-left: 6px; padding: 1px 4px; font-size: 8.5px; letter-spacing: .12em; color: #fff; background: var(--brown); vertical-align: 1px; }
.note-feature { display: grid; grid-template-columns: 1fr; gap: 10px; max-width: 1180px; margin: 36px auto 0; }
.note-feature-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.note-feature-head .note-title { margin: 0; font-size: 14px; }
.note-feature .note-frame { height: 340px; padding: 8px 0 16px; }
.note-feature .note-body { max-width: 760px; margin: 10px auto 0; padding: 0 22px; border-top: 0; }
@media (width <= 800px) {
  .note-mini-list { grid-template-columns: repeat(2, 1fr); }
  .note-feature .note-frame { height: 300px; }
  .note-feature .note-body { padding: 0 14px; }
  .small-works .section-heading { flex-wrap: nowrap; }
  .note-section .section-heading::after, .trpg-section .section-heading::after, .small-works .section-heading::after { min-width: 24px; }
}
@media (width <= 800px) {
  .note-section .section-heading, .trpg-section .section-heading, .small-works .section-heading { flex-direction: row; justify-content: flex-start; align-items: center; text-align: left; }
  .note-section .section-heading > p, .trpg-section .section-heading > p { text-align: left; }
  .note-mini-list { grid-template-columns: repeat(3, 1fr); gap: 12px 8px; }
  .note-mini b { font-size: 11px; }
  .note-mini .note-date { font-size: 9px; letter-spacing: .04em; }
}
/* 最新記事の本文は横幅いっぱいに */
.note-feature .note-body { max-width: none; margin: 10px 0 0; padding: 0 28px; }
.note-feature .note-frame { height: 420px; }

/* 記事一覧は横にスクロールして、もっと前の記事も見られるように */
.note-mini-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 140px;
  grid-template-columns: none;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: 2px 2px 12px;
  scrollbar-width: thin;
  scrollbar-color: #b9ab98 transparent;
}
.note-mini { scroll-snap-align: start; }
@media (width <= 800px) {
  .note-mini-list { grid-template-columns: none; grid-auto-columns: 118px; gap: 10px; }
}
.note-rail { position: relative; max-width: 1180px; margin: 0 auto; }
.note-rail-btn {
  position: absolute; top: 26px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid #2d303233; background: #fffdf8ee; color: var(--brown);
  font-size: 18px; line-height: 26px; cursor: pointer; box-shadow: 2px 3px 0 #523e2d1a;
}
.note-rail-btn.prev { left: -14px; }
.note-rail-btn.next { right: -14px; }
.note-rail-btn:disabled { opacity: 0; pointer-events: none; }
@media (width <= 800px) { .note-rail-btn { display: none; } }

/* フッターの文字がぼやけたまま残る（ふわっと表示のぼかしが解けない）のを止める */
footer [data-repeat-reveal], footer [data-repeat-reveal] * { filter: none !important; }

/* ---------- 作品の説明枠：文字を小さく、文は短く、区切り線と小さな画像で見やすく ---------- */
.world-list .detail-card { padding: 20px 22px 22px; font-size: 12.5px; line-height: 1.85; }
.world-list .detail-card .detail-label { margin: 0 0 8px; font-size: 10.5px; letter-spacing: .1em; }
.world-list .detail-card .detail-lead { margin: 0 0 12px; font-size: 13px; line-height: 1.85; }
.detail-specs { margin: 0 0 14px; border-top: 1px solid currentColor; border-color: #2d30321f; }
.detail-specs > div { display: grid; grid-template-columns: 5.5em 1fr; gap: 8px; padding: 6px 0; border-bottom: 1px dashed #2d303226; }
.detail-specs dt { font-size: 10.5px; letter-spacing: .08em; opacity: .7; }
.detail-specs dd { margin: 0; font-size: 12px; }
.detail-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 0 16px; }
.detail-thumbs img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border: 1px solid #2d303226; }
.world-portal.esperanza .detail-specs, .world-portal.esperanza .detail-specs > div { border-color: #f6e9e426; }
.world-portal.esperanza .detail-thumbs img { border-color: #f6e9e433; }
.world-list .detail-link { font-size: 12.5px; }
@media (width <= 800px) {
  .world-list .detail-card { padding: 16px 16px 18px; }
  .detail-thumbs { gap: 4px; margin-bottom: 12px; }
}

/* 部屋の案内は、マウスとスマホで出し分けて一文だけに */
.room-note { font-size: 11.5px; color: #8d8780; }
.room-note .for-touch { display: none; }
@media (hover: none) {
  .room-note .for-mouse { display: none; }
  .room-note .for-touch { display: inline; }
}

/* note：一覧のスクロールバーは隠し、左右の丸ボタンで送る */
.note-mini-list { scrollbar-width: none; }
.note-mini-list::-webkit-scrollbar { display: none; }

/* note：最新記事の本文は白い箱をやめて、ページの上に線で区切って並べる */
.note-feature .note-frame {
  height: 420px;
  padding: 18px 0 40px;
  background: none;
  border: 0;
  border-top: 1px solid #2d303233;
  border-bottom: 1px solid #2d303233;
  box-shadow: none;
  scrollbar-width: thin;
  scrollbar-color: #c9bba6 transparent;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 48px), #0000);
  mask-image: linear-gradient(#000 calc(100% - 48px), #0000);
}
.note-feature .note-frame::-webkit-scrollbar { width: 4px; }
.note-feature .note-frame::-webkit-scrollbar-thumb { background: #c9bba6; border-radius: 2px; }
.note-feature .note-body { padding: 0 4px; }
.note-feature .note-body blockquote { background: #ece3d3; }
.note-feature-head { padding-bottom: 2px; }
.note-feature-head::after { content: "ここから note の本文"; margin-left: auto; font-size: 10.5px; letter-spacing: .08em; color: #8d8780; }
.note-feature .note-body img { display: block; max-width: min(100%, 560px); }

/* note本文：段落の間をはっきり空け、画像の説明は小さく薄く */
.note-feature .note-body p { margin: 0 0 1.7em; line-height: 1.85; }
.note-feature .note-body figure { margin: 2em 0 .6em; }
.note-feature .note-body figure:has(blockquote) { margin: 0 0 1.7em; }
.note-feature .note-body figcaption:not(:empty),
.note-feature .note-body figure:has(img) + p { margin: 0 0 2.2em; font-size: 11px; line-height: 1.7; color: #8d8780; }

/* 引用の中の段落には余白をつけない（余計な空きが出ていた） */
.note-feature .note-body blockquote { margin: 0 0 1.7em; padding: 8px 14px; }
.note-feature .note-body blockquote p { margin: 0; }
/* 画像の説明は、note側の改行を使わず横幅いっぱいに流す */
.note-feature .note-body figure:has(img) + p br,
.note-feature .note-body figcaption br { display: none; }

/* note本文（調整）：文字を少し大きく、枠を高く。画像の説明は画像の横に縦線を引いてメモとして置く */
.note-feature .note-frame { height: min(78vh, 720px); }
.note-feature .note-body { font-size: 14px; line-height: 1.9; }
.note-feature .note-body .note-photo { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 20px; align-items: end; margin: 2em 0 2.2em; }
.note-feature .note-body .note-photo figure { margin: 0; }
.note-feature .note-body .note-photo figcaption { display: none; }
.note-feature .note-body .note-photo-memo { margin: 0; padding: 4px 0 4px 16px; border-left: 2px solid #c9bba6; font-size: 12px; line-height: 1.8; color: #6c6660; }
.note-feature .note-body .note-photo-memo br { display: inline; }
@media (width <= 800px) {
  .note-feature .note-frame { height: 70vh; }
  .note-feature .note-body { font-size: 13.5px; }
  .note-feature .note-body .note-photo { grid-template-columns: 1fr; gap: 8px; }
  .note-feature .note-body .note-photo-memo br { display: none; }
}

/* ---------- 作品の小さな画像は説明枠の外へ。写真を置いたように少し傾けて散らす ---------- */
.scatter-thumbs { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.scatter-thumbs img {
  position: absolute;
  width: clamp(110px, 11vw, 168px);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  padding: 5px;
  background: #fbf8f1;
  box-shadow: 4px 6px 14px #2d303240;
  opacity: 0;
  transition: opacity .8s ease, transform .8s ease;
}
.world-portal.is-visible .scatter-thumbs img { opacity: 1; }
.scatter-thumbs img:nth-child(1) { left: 47%; top: 17%; transform: rotate(-5deg); }
.scatter-thumbs img:nth-child(2) { left: 39%; top: 58%; transform: rotate(4deg); }
.scatter-thumbs img:nth-child(3) { left: 50%; top: 80%; transform: rotate(-2deg); }
.world-portal.zero .scatter-thumbs img:nth-child(1) { left: 44%; top: 14%; transform: rotate(4deg); }
.world-portal.zero .scatter-thumbs img:nth-child(2) { left: 41%; top: 64%; transform: rotate(-3deg); }
.world-portal.zero .scatter-thumbs img:nth-child(3) { left: 52%; top: 84%; transform: rotate(5deg); }
.world-portal.esperanza .scatter-thumbs img { background: #2b1416; box-shadow: 4px 6px 14px #0000006b; }
.world-portal.esperanza .scatter-thumbs img:nth-child(1) { left: 46%; top: 12%; transform: rotate(3deg); }
.world-portal.esperanza .scatter-thumbs img:nth-child(2) { left: 40%; top: 60%; transform: rotate(-4deg); }
.world-portal.esperanza .scatter-thumbs img:nth-child(3) { left: 51%; top: 82%; transform: rotate(2deg); }
@media (width <= 800px) { .scatter-thumbs { display: none; } }

/* 虹色の花の4人を少し上へ（絵の下端は画面の外のまま、少し大きくして顔の位置を上げる） */
.world-portal.rainbow .layer-chars { height: 76svh; }
/* 2枚目が説明枠の下に隠れないよう、枠の右へずらす */
.scatter-thumbs img:nth-child(2),
.world-portal.zero .scatter-thumbs img:nth-child(2),
.world-portal.esperanza .scatter-thumbs img:nth-child(2) { left: calc(min(1120px, 100% - 64px) * 0 + 45.5%); }

/* note（調整）：本文の枠は前の高さに戻す。本文の上の日付・タイトルはやめ、一覧の最新記事を強調する */
.note-feature .note-frame { height: 420px; }
@media (width <= 800px) { .note-feature .note-frame { height: 300px; } }
.note-feature { margin-top: 24px; }
.note-feature-head { justify-content: flex-end; padding: 0; }
.note-mini.is-current { position: relative; padding: 6px 6px 8px; margin: -6px 0 0; background: #fffdf8; box-shadow: 0 0 0 1px #c9bba6, 3px 4px 0 #523e2d1a; }
.note-mini.is-current img { border-color: #c9bba6; }
.note-current-tag { font-size: 10px; letter-spacing: .06em; color: var(--brown); }
.note-mini-list { padding-top: 8px; padding-left: 4px; }

/* 一覧は押すと下の本文が切り替わるボタン */
button.note-mini { appearance: none; margin: 0; padding: 6px 6px 8px; border: 0; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
button.note-mini:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
button.note-mini:not(.is-current):hover { background: #fffdf880; }
.note-mini.is-current { margin: 0; }
.note-mini .note-current-tag { display: none; }
.note-mini.is-current .note-current-tag { display: block; }

/* ---------- 小さな画像（置き直し）：右側をやめ、文字の左にある余白にだけ縦に散らす ---------- */
.scatter-thumbs img,
.world-portal.zero .scatter-thumbs img,
.world-portal.esperanza .scatter-thumbs img { width: 150px; left: calc((100% - 1120px) / 2 + 8px - 150px); }
.scatter-thumbs img:nth-child(1), .world-portal.zero .scatter-thumbs img:nth-child(1), .world-portal.esperanza .scatter-thumbs img:nth-child(1) { top: 30%; transform: rotate(-4deg); }
.scatter-thumbs img:nth-child(2), .world-portal.zero .scatter-thumbs img:nth-child(2), .world-portal.esperanza .scatter-thumbs img:nth-child(2) { top: 52%; transform: rotate(3deg) translateX(-14px); }
.scatter-thumbs img:nth-child(3), .world-portal.zero .scatter-thumbs img:nth-child(3), .world-portal.esperanza .scatter-thumbs img:nth-child(3) { top: 74%; transform: rotate(-2deg) translateX(6px); }
/* 左の余白が足りない画面幅では出さない */
@media (width < 1440px) { .scatter-thumbs { display: none; } }
.world-portal .scatter-thumbs img:nth-child(n) { left: calc((100% - 1120px) / 2 + 8px - 150px) !important; }

/* ---------- 小さな画像（3回目）：2枚だけ。1枚は説明枠の左下の角に重ね、もう1枚は離して置く ---------- */
.world-list .detail-card { position: relative; }
.card-photos img {
  position: absolute;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  padding: 5px;
  background: #fbf8f1;
  box-shadow: 3px 5px 12px #2d303238;
}
.card-photos img:nth-child(1) { width: 132px; left: -84px; bottom: -34px; transform: rotate(-6deg); }
.card-photos img:nth-child(2) { width: 100px; left: -178px; top: 18%; transform: rotate(4deg); }
.world-portal.zero .card-photos img:nth-child(1) { transform: rotate(5deg); bottom: -28px; }
.world-portal.zero .card-photos img:nth-child(2) { transform: rotate(-3deg); top: 34%; width: 92px; }
.world-portal.esperanza .card-photos img { background: #3a1d1f; box-shadow: 3px 5px 12px #00000066; }
.world-portal.esperanza .card-photos img:nth-child(1) { transform: rotate(-3deg); }
.world-portal.esperanza .card-photos img:nth-child(2) { transform: rotate(6deg); top: 8%; }
@media (width < 1440px) { .card-photos { display: none; } }
.world-portal .card-photos img:nth-child(1) { left: -118px; bottom: -42px; }
/* noteの一覧と本文の間を詰める */
.note-mini-list { padding-bottom: 4px; }
.note-feature { margin-top: 4px; gap: 4px; }
.note-feature .note-frame { padding-top: 12px; }

/* 小さな画像（4回目）：上の1枚を大きくして枠の左上の角に重ね、下の1枚は元の小さいサイズ */
.world-portal .card-photos img:nth-child(2) { --w: clamp(176px, 12.5vw, 240px); width: var(--w); left: calc(18px - var(--w)); top: -34px; z-index: 1; }
.world-portal.zero .card-photos img:nth-child(2) { width: var(--w); top: -24px; }
.world-portal.esperanza .card-photos img:nth-child(2) { top: -40px; }

/* note本文：横に長すぎて読みにくいので、文章の幅を画像と同じくらいに抑えて折り返す */
.note-feature .note-body > p,
.note-feature .note-body > blockquote,
.note-feature .note-body > figure:has(blockquote),
.note-feature .note-body > h2, .note-feature .note-body > h3, .note-feature .note-body > h4,
.note-feature .note-body > ul, .note-feature .note-body > ol { max-width: 40em; }

/* ---------- ヘッダーの「作品」：マウスを重ねると3作品の名前が出て、そこから各作品ページへ ---------- */
.nav-works { position: relative; }
.nav-drop {
  position: absolute; top: calc(100% + 6px); left: 50%; translate: -50% 4px;
  display: grid; min-width: 168px; padding: 6px 0;
  background: #f8f3e9; border: 1px solid #c9bba6; box-shadow: 4px 5px 0 #523e2d1a;
  opacity: 0; visibility: hidden; transition: opacity .18s, translate .18s, visibility .18s;
}
.nav-drop::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.nav-works:hover .nav-drop, .nav-works:focus-within .nav-drop, .nav-works.is-open .nav-drop { opacity: 1; visibility: visible; translate: -50% 0; }
.site-header nav .nav-drop a {
  display: flex; align-items: baseline; gap: 10px; padding: 7px 16px; border: 0;
  font: 600 13px/1.4 "Yu Mincho", "Hiragino Mincho ProN", serif; letter-spacing: .08em; color: var(--ink); white-space: nowrap;
}
.site-header nav .nav-drop a small { display: inline; font-size: 8px; letter-spacing: .14em; color: var(--brown); }
.site-header nav .nav-drop a:hover, .site-header nav .nav-drop a:focus-visible { background: #ece3d3; }
@media (width <= 800px) { .nav-drop { left: auto; right: -40px; translate: 0 4px; } .nav-works:hover .nav-drop, .nav-works:focus-within .nav-drop, .nav-works.is-open .nav-drop { translate: 0 0; } }

/* ヘッダーの「作品」の中身（見直し）：ヘッダーと同じすりガラスの帯から下にのびる形。枠線や影は控えめにして、項目はメニューと同じ下線で示す */
.nav-drop {
  top: calc(100% + 11px); min-width: 0; padding: 10px 22px 14px; gap: 2px;
  background: #eef1eee6; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 0; box-shadow: 0 1px 0 #2d303214, 0 10px 18px -12px #2d303240;
}
.nav-drop::before { inset: -12px 0 auto; height: 12px; }
.site-header nav .nav-drop a {
  display: grid; grid-template-columns: auto auto; justify-content: start; align-items: baseline; column-gap: 12px;
  padding: 7px 0 6px; border-bottom: 1px solid #0000;
  font: 600 13px/1.4 "Yu Mincho", "Hiragino Mincho ProN", serif; letter-spacing: .1em;
}
.site-header nav .nav-drop a + a { border-top: 1px dashed #2d30321f; }
.site-header nav .nav-drop a small { font: 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .18em; color: var(--blue); }
.site-header nav .nav-drop a:hover, .site-header nav .nav-drop a:focus-visible { background: none; color: var(--brown); }

/* note・TRPGシナリオ・そのほかの活動は大見出し：「創作作品紹介」と同じ明朝の大きさにし、英語は下に小さく添える（ABOUTは小見出しのまま） */
.note-section .section-heading > div,
.trpg-section .section-heading > div,
.small-works .section-heading > div { flex-direction: column-reverse; align-items: flex-start; gap: 8px; }
.note-section .section-heading h2,
.trpg-section .section-heading h2,
.small-works .section-heading h2 { font: 600 clamp(22px, 2.6vw, 30px)/1.4 "Yu Mincho", "Hiragino Mincho ProN", serif; letter-spacing: .24em; color: var(--ink); }
.note-section .section-heading .eyebrow,
.trpg-section .section-heading .eyebrow,
.small-works .section-heading .eyebrow { font-weight: 700; letter-spacing: .28em; color: #617077; }
.note-section .section-heading,
.trpg-section .section-heading,
.small-works .section-heading { align-items: flex-end; margin-bottom: 28px; }
.note-section .section-heading::after,
.trpg-section .section-heading::after,
.small-works .section-heading::after { align-self: center; }

/* 虹色の花：カモメは立ち絵の後ろを飛ぶ（背景 → 白いもや → カモメ → 立ち絵 の順に重ねる） */
.world-portal.rainbow .layer-bg { z-index: -4; }
.world-portal.rainbow .portal-wash { z-index: -3; }
.world-portal.rainbow .world-effect { z-index: -2; }

/* noteの一覧（見直し）：タイトルは太字をやめて控えめに。表示中の記事は箱で囲まず、画像の下の細い線と文字の濃さで示す */
.note-mini b { font-weight: 400; font-size: 11.5px; line-height: 1.6; letter-spacing: .02em; color: #6c6660; }
.note-new { margin-left: 6px; padding: 0; font-size: 8.5px; letter-spacing: .16em; color: var(--brown); background: none; }
.note-mini.is-current { padding: 6px 6px 8px; background: none; box-shadow: none; }
.note-mini.is-current img { border-color: #2d30321f; box-shadow: 0 3px 0 -1px var(--brown); }
.note-mini.is-current b { color: var(--ink); }
button.note-mini:not(.is-current) img { opacity: .82; transition: opacity .2s, transform .2s; }
button.note-mini:not(.is-current):hover { background: none; }
button.note-mini:not(.is-current):hover img { opacity: 1; }
button.note-mini:not(.is-current):hover b { color: var(--ink); }
.note-mini.is-current .note-current-tag { font-size: 9px; letter-spacing: .12em; color: #8d8780; }

/* プロフィールのアイコン：本人の羊のアイコン。黒い四角の枠ごと見せるため、丸く切らない */
.profile-icon { border-radius: 0; border: 0; background: none; }

/* noteの表示中（中間案）：箱の影はつけず、うすいクリームの地と細い枠、下に茶色の線。「↓ 本文を表示中」を茶色で添える */
.note-mini.is-current { background: #fbf7ee; box-shadow: inset 0 0 0 1px #d8ccb8, inset 0 -2px 0 var(--brown); }
.note-mini.is-current img { box-shadow: none; border-color: #c9bba6; }
.note-mini.is-current .note-current-tag { font-size: 10px; letter-spacing: .08em; color: var(--brown); }

/* note本文は一覧より一段右へ。ここから本文だと分かるように、左に余白を取る */
.note-feature .note-body { padding-left: 56px; padding-right: 4px; }
@media (width <= 800px) { .note-feature .note-body { padding-left: 18px; } }

/* note本文を吹き出しに：うすいクリームの枠から、表示中の記事へしっぽを伸ばす（「表示中」の文字はやめる） */
.note-feature { position: relative; margin-top: 18px; padding: 4px 0 14px; background: #fbf7ee; border: 1px solid #d8ccb8; border-radius: 6px; }
.note-feature::before,
.note-feature::after { content: ""; position: absolute; left: var(--tail-x, 70px); width: 0; height: 0; border: 10px solid transparent; translate: -50% 0; transition: left .25s; }
.note-feature::before { top: -21px; border-bottom-color: #d8ccb8; }
.note-feature::after { top: -19px; border-bottom-color: #fbf7ee; }
.note-feature.tail-hidden::before, .note-feature.tail-hidden::after { opacity: 0; }
.note-feature .note-frame { border: 0; }
.note-feature-head::after { content: none; }
.note-feature .note-more { margin-right: 18px; }
.note-mini .note-current-tag { display: none !important; }
.note-mini.is-current { background: none; box-shadow: none; }
.note-mini.is-current img { border-color: #c9bba6; }

/* 説明枠のすぐ下に、小さく最終更新日を添える */
.detail-updated { margin: 10px 0 0 2px; font: 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; color: #4a4642; opacity: .75; }
.world-portal.esperanza .detail-updated { color: #f3e6dc; }

/* 最終更新は、説明枠の下からピロッと垂れたタグにする（枠と同じ紙の色・細い枠線） */
.detail-updated {
  position: relative; z-index: 1; display: block; width: max-content; max-width: none; margin: -1px 0 0 22px; padding: 6px 12px 6px 22px;
  font: 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; color: #6b5847; opacity: 1;
  background: #f7f3ea; border: 1px solid #cfc5b8; border-top: 0; border-radius: 0 0 4px 4px;
  box-shadow: 3px 4px 0 #523e2d1a;
}
.detail-updated::before { content: ""; position: absolute; left: 9px; top: 50%; width: 5px; height: 5px; margin-top: -3px; border-radius: 50%; background: #4c6672; opacity: .7; }
.world-portal.esperanza .detail-updated { color: #e8cfc4; background: #2b1416; border-color: #6b3a36; box-shadow: 3px 4px 0 #0000004d; }
.world-portal.esperanza .detail-updated::before { background: #8a3a32; opacity: 1; }

/* 虹色の花：リメイク版の公開状況（控えめな小さな印と配布先リンク） */
.spec-remake .remake-status { display: inline-block; margin-right: 10px; padding: 2px 7px; font-size: 10px; letter-spacing: .1em; color: #fff; background: #4c6672; border-radius: 2px; vertical-align: 1px; }
.spec-remake a { display: inline; width: auto; padding: 0; color: #4c6672; border: 0; border-bottom: 1px solid currentColor; }
.spec-remake a:hover { color: var(--brown); }

/* note本文の埋め込み：YouTubeは16:9でそのまま再生、ほかのリンクは控えめなカードに */
.note-feature .note-body .note-embed-video { max-width: 560px; margin: 2em 0; aspect-ratio: 16 / 9; background: #2d3032; }
.note-feature .note-body .note-embed-video iframe { display: block; width: 100%; height: 100%; border: 0; }
.note-feature .note-body .note-embed-card {
  display: grid; gap: 4px; max-width: 560px; margin: 1.6em 0; padding: 12px 16px;
  background: #fffdf8; border: 1px solid #d8ccb8; border-left: 3px solid #c9bba6; border-radius: 3px;
  color: var(--ink); text-decoration: none; transition: border-color .2s;
}
.note-feature .note-body .note-embed-card:hover { border-color: #b9a88f; border-left-color: var(--brown); }
.note-embed-title { font-size: 13px; font-weight: 600; line-height: 1.6; }
.note-embed-lead { font-size: 11.5px; line-height: 1.7; color: #6c6660; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.note-embed-site { font: 10px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; color: #4c6672; }
