:root {
  --night: #0B0712;
  --lacquer: #1A0E14;
  --dusk: #3B2038;
  --hi: #E8443A;
  --gold: #F5C34B;
  --lantern: #FFB25E;
  --kitsunebi: #8FD8FF;
  --paper: #FFF6E8;
  --line: rgb(255 246 232 / 0.14);
  --muted: rgb(255 246 232 / 0.67);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(1.25rem, 5vw, 5.5rem);
  --shell-max: 76rem;
  --section-space: clamp(4.5rem, 9vw, 8rem);
  --mincho: "Hiragino Mincho ProN", "Yu Mincho", "BIZ UDMincho", serif;
  --gothic: "Hiragino Kaku Gothic ProN", "Yu Gothic", "BIZ UDPGothic", sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: dark; background: var(--night); }
html, body { overflow-x: clip; }
body.site-page {
  min-width: 320px;
  margin: 0;
  color: var(--paper);
  background: radial-gradient(circle at 12% 8%, rgb(59 32 56 / .68), transparent 30rem), var(--night);
  font-family: var(--gothic);
  line-height: 1.85;
  /* 段落の最後の行が1〜2文字だけになる行落ちを減らす（未対応のブラウザは通常の折り返し） */
  text-wrap: pretty;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: .25em; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--kitsunebi); outline-offset: 4px; }

.site-nav {
  position: fixed;
  z-index: 80;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px solid transparent;
  background: linear-gradient(to bottom, rgb(11 7 18 / .94), rgb(11 7 18 / .52), transparent) no-repeat;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.site-nav.is-scrolled { border-color: var(--line); background: rgb(11 7 18 / .94); backdrop-filter: blur(1.1rem) saturate(1.25); -webkit-backdrop-filter: blur(1.1rem) saturate(1.25); }
.site-nav-inner { display: flex; align-items: center; gap: .8rem; width: min(calc(100% - (var(--gutter) * 2)), var(--shell-max)); min-height: 4.5rem; margin: 0 auto; padding: .55rem 0; }
.site-nav-brand { flex: none; font-family: var(--mincho); font-size: .95rem; font-weight: 700; letter-spacing: .12em; text-decoration: none; white-space: nowrap; }
.site-nav-links { margin-left: auto; }
.site-nav-desktop { display: flex; align-items: center; gap: .05rem; }
.site-nav-mobile { display: none; }
.site-nav a, .more-menu summary { border-radius: .25rem; padding: .45rem .52rem; font-size: .7rem; letter-spacing: .04em; text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"], .more-menu summary:hover { color: var(--gold); background: rgb(245 195 75 / .09); }
.more-menu { position: relative; }
.more-menu summary { list-style: none; cursor: pointer; }
.more-menu summary::-webkit-details-marker { display: none; }
.more-menu-list { position: absolute; right: 0; display: grid; width: 10rem; padding: .45rem; border: 1px solid var(--line); background: var(--lacquer); box-shadow: 0 .8rem 2rem rgb(0 0 0 / .28); }
.more-menu:not([open]) .more-menu-list { display: none; }
.sound-toggle, .nav-toggle {
  flex: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .4rem .65rem;
  color: var(--paper);
  background: rgb(11 7 18 / .45);
  font-size: .67rem;
  letter-spacing: .08em;
}
.nav-toggle { display: none; }

/* 通常のページ遷移は同じ夜色を挟むフェードだけにする。
   画像の再読込・構図のリセットが文書切替時に見えないよう、幕に画像を使わない。 */
.page-loader, .page-transition {
  position: fixed;
  z-index: 120;
  inset: 0;
  pointer-events: none;
  background: var(--night);
}
.page-loader {
  opacity: 1;
  transition: opacity .42s ease-in-out, visibility 0s linear .42s;
  /* JSが到着しなくても、本文を覆い続けない。 */
  animation: scene-failsafe 0s 7s forwards;
}
.is-ready .page-loader { visibility: hidden; opacity: 0; }
.page-motion-skip .page-loader { display: none !important; }
.page-transition {
  z-index: 130;
  visibility: hidden;
  opacity: 0;
  transition: opacity .28s ease-in-out, visibility 0s linear .28s;
}
.page-transition.is-leaving {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity .28s ease-in-out, visibility 0s;
}
@keyframes scene-failsafe { to { visibility: hidden; pointer-events: none; } }

.ambient-canvas { position: fixed; z-index: -1; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .65; }
.site-main { position: relative; }
.subhero { position: relative; display: grid; align-items: end; min-height: min(56vw, 32rem); padding: 8rem var(--gutter) 4.5rem; overflow: hidden; border-bottom: 1px solid var(--line); }
.subhero::before { position: absolute; inset: 0; background: linear-gradient(90deg, rgb(11 7 18 / .94), rgb(11 7 18 / .45)), url("profile.webp") center top / cover; opacity: .38; content: ""; transform: translate(var(--hero-x, 0), var(--hero-y, 0)) scale(1.06); }
.subhero--story::before { background-position: center; background-image: linear-gradient(90deg, rgb(11 7 18 / .94), rgb(11 7 18 / .45)), url("story.webp"); }
.subhero--market::before { background-image: linear-gradient(90deg, rgb(11 7 18 / .94), rgb(11 7 18 / .45)), url("gallery-2.webp"); }
.subhero--sky::before { background-position: center; background-image: linear-gradient(90deg, rgb(11 7 18 / .94), rgb(11 7 18 / .45)), url("night-sky.webp"); }
.subhero--work::before { background-image: linear-gradient(90deg, rgb(11 7 18 / .94), rgb(11 7 18 / .45)), url("connect.webp"); }
.subhero-content { position: relative; width: min(100%, var(--shell-max)); max-width: 54rem; margin: 0 auto; }
.eyebrow { margin: 0 0 .35rem; color: var(--gold); font-size: .72rem; font-weight: 700; letter-spacing: .16em; line-height: 1.5; }
/* 下層の表題は既存の 2rem〜3rem、章題は従来の compact 階層へ統一する。 */
.subhero h1,
.subhero .subhero-title { margin: 0; font-family: var(--mincho); font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 600; line-height: 1.35; letter-spacing: .05em; text-wrap: balance; }
.subhero-lead { max-width: 42rem; margin: 1.25rem 0 0; color: var(--muted); }
.section-shell { width: min(calc(100% - (var(--gutter) * 2)), var(--shell-max)); margin: auto; }
.site-section { padding: var(--section-space) 0; }
.section-heading { margin-bottom: 1.5rem; }
.section-title,
.section-heading h2 { margin: 0; font-family: var(--mincho); font-size: clamp(1.45rem, 2.6vw, 2rem); font-weight: 600; line-height: 1.45; letter-spacing: .05em; }
.section-heading > p:not(.eyebrow) { margin: .65rem 0 0; color: var(--muted); }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card, .info-card, .support-card, .next-card, .notice-card { border: 1px solid var(--line); background: linear-gradient(145deg, rgb(59 32 56 / .62), rgb(26 14 20 / .85)); box-shadow: 0 1rem 2rem rgb(0 0 0 / .12); }
.card, .info-card, .support-card { padding: clamp(1.2rem, 3vw, 2rem); }
.card h3, .info-card h3, .support-card h3 { margin: 0 0 .6rem; font-family: var(--mincho); font-size: 1.25rem; }
.card p, .info-card p, .support-card p { margin: 0; color: var(--muted); }
.card-image { aspect-ratio: 4 / 3; margin: -1.2rem -1.2rem 1.1rem; overflow: hidden; background: var(--dusk); }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.button, .copy-button, .chip-button { display: inline-flex; align-items: center; justify-content: center; min-width: 220px; min-height: 2.8rem; padding: .55rem 1rem; border: 1px solid var(--gold); color: var(--night); background: var(--gold); font-weight: 700; text-decoration: none; transition: transform .2s var(--ease), background .2s; }
.button:hover, .copy-button:hover { transform: translateY(-2px); background: var(--lantern); }
.button--quiet { color: var(--paper); background: transparent; border-color: var(--line); }
.badge { display: inline-block; padding: .18rem .55rem; white-space: nowrap; border: 1px solid currentColor; border-radius: 999px; color: var(--kitsunebi); font-size: .72rem; font-weight: 700; letter-spacing: .08em; }
.badge--hot, .badge--open, .status-on { color: var(--gold); }
.badge--consult { color: var(--lantern); }
.badge--off, .status-off { color: var(--muted); }
.badge--ng { color: #ff8787; }
.badge--ok { color: #8fe0ab; }
.badge--ask { color: var(--gold); }

.profile-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.profile-portrait { position: sticky; top: 5.5rem; margin: 0; overflow: hidden; border: 1px solid var(--line); }
.profile-portrait img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.profile-portrait::after { position: absolute; inset: 0; border: 1px solid rgb(245 195 75 / .45); content: ""; pointer-events: none; }
.profile-tags { display: flex; flex-wrap: wrap; gap: .55rem; padding: 0; margin: 1.2rem 0 2rem; list-style: none; }
.profile-tags li { padding: .3rem .65rem; border: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.detail-list { margin: 0; border-top: 1px solid var(--line); }
.detail-list div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.detail-list dt { color: var(--gold); font-weight: 700; }
.detail-list dd { margin: 0; }
.lore-chapter { position: relative; display: grid; grid-template-columns: minmax(10rem, .7fr) minmax(0, 1.3fr); gap: clamp(1.5rem, 6vw, 6rem); align-items: center; min-height: 34rem; padding: 4rem 0; border-top: 1px solid var(--line); }
.lore-chapter figure { margin: 0; }
.lore-chapter img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(.8) brightness(.8); }
.chapter-no { color: var(--gold); font-family: var(--mincho); font-size: 1rem; letter-spacing: .12em; }
.lore-chapter h2 { margin: .5rem 0 1rem; font-family: var(--mincho); font-size: clamp(1.7rem, 3vw, 2.7rem); }
.lore-chapter p { margin: 0; color: var(--muted); }
.lore-chapter .chapter-no { margin: 0 0 .9rem; color: var(--gold); }
.chapter-torii { position: absolute; z-index: -1; right: -15%; width: min(60vw, 45rem); color: rgb(232 68 58 / .19); transform: scale(.45); transform-origin: center; transition: transform 1s var(--ease); }
.lore-chapter.is-visible .chapter-torii { transform: scale(1.5); }

.reference-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.reference-card { position: relative; min-height: 18rem; padding: 1.25rem; overflow: hidden; border: 1px solid var(--line); background: var(--lacquer); }
.reference-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .65; }
.reference-card > div { position: relative; z-index: 1; }
.reference-card h3 { margin: 0; font-family: var(--mincho); }
.placeholder { display: grid; place-items: center; align-content: center; gap: .35rem; min-height: 12rem; padding: 1rem; border: 1px dashed rgb(255 246 232 / .35); color: var(--muted); text-align: center; }
.placeholder p { margin: 0; }
.palette { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .8rem; }
.swatch { display: grid; gap: .35rem; width: 8rem; border: 0; color: var(--paper); background: none; text-align: left; }
.swatch i { display: block; height: 4rem; border: 1px solid var(--line); background: var(--swatch); }

.music-grid, .goods-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.music-card { position: relative; min-height: 21rem; padding: 1.25rem; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(135deg, var(--song-color), var(--lacquer) 48%, var(--night)); transition: box-shadow .35s, transform .35s; }
.music-card::before { position: absolute; top: 2rem; right: 1.6rem; width: 1.5rem; height: 1.9rem; border-radius: 58% 42% 58% 42% / 68% 68% 32% 32%; content: ""; background: radial-gradient(ellipse at 48% 64%, #effaff 0 12%, var(--kitsunebi) 28%, var(--song-color) 53%, transparent 74%); box-shadow: 0 .1rem 1.15rem var(--song-color); opacity: .82; transform: rotate(12deg); transition: box-shadow .35s, transform .35s; }
.music-card:hover { box-shadow: 0 0 4rem var(--song-color); transform: translateY(-.4rem); }
.music-card:hover::before { box-shadow: 0 0 2.5rem var(--song-color); transform: translateY(-.25rem) rotate(18deg) scale(1.08); }
.music-card > * { position: relative; z-index: 1; }
.music-card h3 { margin: 4rem 0 .6rem; font-family: var(--mincho); font-size: 1.6rem; }
.music-card p { margin: .35rem 0; color: rgb(255 246 232 / .82); font-size: .86rem; }
.music-links { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; }
.music-links a { color: var(--paper); font-size: .8rem; }

.goods-card { position: relative; overflow: hidden; border: 1px solid var(--line); background: var(--lacquer); }
.goods-image { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.goods-image::after { position: absolute; inset: 0; background: linear-gradient(135deg, rgb(245 195 75 / .12), transparent); content: ""; }
.goods-image img { width: 100%; height: 100%; object-fit: cover; }
.goods-card-body { padding: 1rem 1.15rem 1.2rem; }
.goods-card h3 { margin: 0; font-family: var(--mincho); font-size: 1.2rem; }
.goods-card p { margin: .35rem 0; color: var(--muted); font-size: .83rem; }
.goods-tag { position: absolute; z-index: 2; top: .8rem; right: .8rem; padding: .4rem .6rem; color: var(--night); background: var(--paper); transform: rotate(3deg); animation: tag-sway 3.8s ease-in-out infinite alternate; transform-origin: top center; }
@keyframes tag-sway { to { transform: rotate(-3deg); } }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.condition-list { padding: 0; margin: 0; list-style: none; }
.condition-list li { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.contact-box { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: 2rem; border: 1px solid var(--gold); background: rgb(245 195 75 / .08); }
.support-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.support-card { display: flex; flex-direction: column; align-items: start; min-height: 15rem; }
.support-card .button { margin-top: auto; }

.next-card { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; padding: clamp(1.2rem, 4vw, 2.5rem); border-color: rgb(245 195 75 / .58); }
.count-lanterns { display: flex; gap: .35rem; }
.count-lanterns i { display: block; width: .9rem; height: 1.15rem; border-radius: 58% 42% 58% 42% / 68% 68% 32% 32%; background: var(--kitsunebi); box-shadow: 0 0 .8rem var(--kitsunebi); opacity: .18; transform: rotate(12deg); }
.count-lanterns i.is-lit { opacity: 1; background: radial-gradient(ellipse at 48% 64%, #effaff 0 12%, var(--kitsunebi) 30%, #4D8DFF 72%); box-shadow: 0 0 1.2rem var(--kitsunebi); }
.next-card h2 { margin: 0; font-family: var(--mincho); font-size: clamp(1.4rem, 3vw, 2.2rem); }
.next-card p { margin: .25rem 0; color: var(--muted); }
.timezone-switch { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.3rem 0; }
.chip-button { min-width: auto; min-height: 2.4rem; border-color: var(--line); color: var(--paper); background: transparent; font-size: .82rem; }
.chip-button.is-selected { border-color: var(--gold); color: var(--night); background: var(--gold); }
.schedule-table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.schedule-page-table { width: 100%; min-width: 38rem; border-collapse: collapse; }
.schedule-page-table th, .schedule-page-table td { padding: 1rem; border-bottom: 1px solid var(--line); text-align: left; }
.schedule-page-table th { color: var(--gold); font-size: .75rem; letter-spacing: .12em; white-space: nowrap; }
.schedule-page-table td:nth-child(2) { white-space: nowrap; }
.upcoming-events { margin: 3.25rem 0; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); background: linear-gradient(145deg, rgb(59 32 56 / .38), rgb(26 14 20 / .72)); }
.section-heading--compact { margin-bottom: 1.5rem; }
.event-list { display: grid; gap: .75rem; }
.event-card { display: grid; grid-template-columns: minmax(9.5rem, 11rem) minmax(0, 1fr); gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); transition: opacity .25s var(--ease); }
.event-card > time { color: var(--gold); font-size: .85rem; font-weight: 700; line-height: 1.55; }
.event-card-copy .badge { margin: 0 0 .55rem; }
.event-card h3 { margin: 0; font-family: var(--mincho); font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.45; }
.event-card p:not(.badge) { margin: .35rem 0 0; color: var(--muted); font-size: .88rem; }
.event-card.is-past { opacity: .42; }
.event-link { display: inline-flex; gap: .35rem; margin-top: .8rem; color: var(--kitsunebi); font-size: .82rem; font-weight: 700; }
.events-empty { margin: 0; color: var(--muted); }

.news-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; }
.news-list-item { border: 1px solid var(--line); background: linear-gradient(135deg, rgb(59 32 56 / .56), rgb(26 14 20 / .88)); transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); }
.news-list-item:hover { border-color: rgb(245 195 75 / .58); box-shadow: 0 .9rem 2rem rgb(0 0 0 / .18); transform: translateY(-.18rem); }
.news-list-item a { display: block; padding: clamp(1.1rem, 3vw, 1.5rem); text-decoration: none; }
.news-list-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.news-date { color: var(--muted); font-size: .8rem; }
.news-pinned { color: var(--gold); }
.news-list-item h2 { margin: .8rem 0 .55rem; font-family: var(--mincho); font-size: clamp(1.2rem, 2.4vw, 1.65rem); line-height: 1.45; }
.news-list-item p { margin: 0; color: var(--muted); }
.news-read { display: inline-block; margin-top: .8rem; color: var(--gold); font-size: .88rem; font-weight: 700; }
.news-post-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(13rem, 18rem); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.news-article { min-width: 0; padding: clamp(1.4rem, 4vw, 2.8rem); border: 1px solid var(--line); background: linear-gradient(145deg, rgb(59 32 56 / .52), rgb(26 14 20 / .9)); }
.news-post-header { padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.news-post-header h1 { margin: 1rem 0 .7rem; font-family: var(--mincho); font-size: clamp(1.8rem, 4vw, 3.1rem); line-height: 1.38; }
.news-post-body { margin-top: 1.75rem; }
.news-post-body p, .news-not-found { margin: 0; color: var(--muted); white-space: normal; }
.news-post-body .news-video-link { margin-top: 1.2rem; }
.news-video-link a { color: var(--kitsunebi); font-weight: 700; }
.news-sidebar { min-width: 0; }
.news-sidebar-section { padding: 1.1rem; border: 1px solid var(--line); background: rgb(26 14 20 / .7); }
.news-sidebar-section + .news-sidebar-section { margin-top: 1rem; }
.news-sidebar-section h2 { margin: 0 0 .8rem; color: var(--gold); font-family: var(--mincho); font-size: 1.05rem; line-height: 1.5; }
.news-sidebar-recent, .news-sidebar-categories { padding: 0; margin: 0; list-style: none; }
.news-sidebar-recent li + li, .news-sidebar-categories li + li { border-top: 1px solid var(--line); }
.news-sidebar-recent a { display: grid; gap: .15rem; padding: .7rem 0; text-decoration: none; }
.news-sidebar-recent a:hover, .news-sidebar-categories a:hover { color: var(--gold); }
.news-sidebar-recent span { overflow-wrap: anywhere; font-size: .88rem; line-height: 1.55; }
.news-sidebar-categories a { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; padding: .55rem 0; text-decoration: none; }
.news-sidebar-categories a span { color: var(--muted); font-size: .8rem; }

.page-end-links { display: flex; flex-wrap: wrap; gap: .7rem; width: min(calc(100% - (var(--gutter) * 2)), var(--shell-max)); margin: 0 auto; padding: 0 0 var(--section-space); }
.page-end-links .page-end-link { min-width: auto; }

.content-grid .content-card--link { display: block; min-height: 16rem; color: var(--paper); text-decoration: none; background: var(--lacquer); isolation: isolate; transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.content-grid .content-card--link::before { position: absolute; z-index: 0; inset: 0; content: ""; background: linear-gradient(160deg, rgb(11 7 18 / .43), rgb(11 7 18 / .84)), var(--content-image) center / cover; transition: transform .65s var(--ease), filter .35s var(--ease); }
.content-grid .content-card--link > * { position: relative; z-index: 1; }
.content-grid .content-card--link:hover, .content-grid .content-card--link:focus-visible { box-shadow: 0 0 2.8rem rgb(245 195 75 / .26); transform: translateY(-.3rem); }
.content-grid .content-card--link:hover::before, .content-grid .content-card--link:focus-visible::before { filter: brightness(1.15) saturate(1.08); transform: scale(1.055); }
.content-card .card-action { display: inline-block; margin-top: 1.45rem; color: var(--gold); font-size: .86rem; font-weight: 700; }

.guideline-table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.guideline-table { width: 100%; min-width: 43rem; border-collapse: collapse; }
.guideline-table th, .guideline-table td { padding: .8rem; border-bottom: 1px solid var(--line); text-align: left; }
.guideline-table th { color: var(--gold); white-space: nowrap; }
/* 項目と内容の2列表は、項目の列を中身なりの幅にして内容に幅を回す */
.guideline-table--pair th:first-child, .guideline-table--pair tbody th { width: 1%; }
.credit-quote { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: 1.2rem; border: 1px dashed var(--gold); font-family: var(--mincho); }

.admin-notice { margin: 4.5rem 0 0; padding: 1rem var(--gutter); color: var(--night); background: var(--gold); text-align: center; font-size: .88rem; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.5rem; }
.admin-panel { display: grid; gap: 1rem; }
.admin-row { display: grid; grid-template-columns: 1fr auto; gap: .8rem; align-items: start; padding: 1rem; border: 1px solid var(--line); background: var(--lacquer); }
.admin-row h3 { margin: 0; font-size: 1rem; }
.admin-fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin-top: .8rem; }
.admin-fields label { display: grid; gap: .3rem; color: var(--muted); font-size: .8rem; }
.admin-fields input, .admin-fields textarea, .admin-fields select { width: 100%; min-height: 2.6rem; padding: .55rem; border: 1px solid var(--line); color: var(--paper); background: rgb(11 7 18 / .7); }
.admin-fields textarea { min-height: 5rem; resize: vertical; }
.admin-actions, .admin-toolbar { display: flex; flex-wrap: wrap; gap: .55rem; }
.admin-actions button, .admin-toolbar button { min-width: auto; min-height: 2.35rem; padding: .4rem .7rem; }
.admin-message { min-height: 1.5rem; color: var(--kitsunebi); }

.site-page .site-footer { padding: 3rem max(var(--gutter), calc((100% - var(--shell-max)) / 2)); border-top: 1px solid var(--line); background: #08050d; }
.footer-links { display: flex; flex-wrap: wrap; gap: .45rem 1rem; margin: 0 0 1rem; }
.footer-links a { color: var(--muted); font-size: .78rem; }
.site-page .site-footer p { margin: .4rem 0; color: var(--muted); font-size: .75rem; }
/* heading-polish.js が差し込む「このテンプレートで制作を依頼する」は出さない（トップ・くらら・ゆきと同じ。スマホで本文とフッターに重なるため） */
.template-request-button,
[data-template-request-button] { display: none !important; }
.home-news-list { display: grid; gap: .65rem; margin-top: 1.5rem; }
.top-news-link { display: grid; grid-template-columns: 8rem 1fr auto; gap: 1rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.top-news-link span { color: var(--muted); font-size: .78rem; }
.top-news-link strong { font-family: var(--mincho); font-weight: 400; }
.home-news-more,
.section-link { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-width: 220px; min-height: 3rem; margin-top: 1.75rem; padding: .65rem 1.1rem; border: 1px solid rgb(245 195 75 / .72); color: var(--paper); background: linear-gradient(135deg, rgb(245 195 75 / .16), rgb(143 216 255 / .08)); box-shadow: inset 0 0 0 1px rgb(255 246 232 / .05), 0 0 .9rem rgb(245 195 75 / .12); font-size: .88rem; font-weight: 700; letter-spacing: .04em; text-decoration: none; transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease); }
.home-news-more:hover,
.section-link:hover { border-color: var(--lantern); color: var(--paper); background: linear-gradient(135deg, rgb(245 195 75 / .3), rgb(143 216 255 / .15)); box-shadow: inset 0 0 0 1px rgb(255 246 232 / .12), 0 0 1.5rem rgb(245 195 75 / .28); transform: translateY(-.15rem); }
.home-news-more::after,
.section-link::after { content: "→"; }
.section-link--center { display: flex; width: fit-content; margin-inline: auto; }
.section-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.section-actions .section-link { margin-top: 0; }
/* サブページ専用（トップは GSAP が data-reveal を扱うので対象外） */
.site-page [data-reveal] { opacity: 0; transform: translateY(1rem); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.site-page [data-reveal].is-visible { opacity: 1; transform: none; }

/* 下層ページの禁則：行頭に小さい「ョ・ッ」や「ー」が来ないようにする（QK 総点検：「ナレーシ／ョン」「ア／ーカイブ」などの折れ） */
.site-page { line-break: strict; }

/* 本文の最後の行に1〜2文字だけ落ちるのを避け、日本語は文節で折り返す（対応していないブラウザでは今の折り返しのまま）。詳細度0なので部品ごとの指定が優先される */
:where(p, li, td, th, dd, dt, figcaption, blockquote) { text-wrap: pretty; word-break: auto-phrase; }
