/* Salted Caramel Works — デザイントークン（モック v9 から移植） */
:root {
  --bg: #0b0b0c;            /* 参照デザインに合わせ、わずかに深く */
  --surface: #141415;
  --text: #e8e6e2;
  --muted: #8a8782;
  --accent: #c8965a;        /* salted caramel（参照デザインの深いキャラメル） */
  --accent-hover: #dcae74;
  --accent-ink: #0b0b0c;
  --line: rgba(232, 230, 226, .14);

  --hero-scrim: linear-gradient(to top, rgba(11, 11, 12, .88) 0%, rgba(11, 11, 12, .16) 45%, rgba(11, 11, 12, .22) 100%);
  --hero-ink: #f2efe9;

  --lightbox-bg: rgba(5, 5, 6, .96);
  --lightbox-ink: #d9d6cf;

  --font-display: "Space Grotesk", "Hiragino Sans", sans-serif;
  --font-serif-display: "Instrument Serif", serif;       /* セクション見出し（イタリックで使う） */
  --font-jp-title: "Shippori Mincho", "Hiragino Mincho ProN", serif;  /* イベント名・ライブタイトル */
  --font-body: "Hiragino Sans", "Noto Sans JP", sans-serif;
  --font-mono: "Fragment Mono", monospace;
}
/* 共通構造 CSS。色・書体トークンは各モックの theme.css が定義する */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- ヘッダー ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  transition: background .4s ease, padding .4s ease;
}
.site-header.is-scrolled {
  padding: 12px 32px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .22em;
  text-transform: uppercase;
}

/* Home ではヒーローの大タイポと重複しないよう、最上部でロゴを隠し、
   ヒーローを抜ける頃（site.js が .show-brand を付与）に自然に現れて追従する */
.page-home .brand {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .6s ease, transform .6s ease;
  pointer-events: none;
}
.page-home.show-brand .brand {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.site-nav { display: flex; gap: 28px; align-items: center; }

.site-nav a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .72;
  transition: opacity .3s ease;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { opacity: 1; }

.variant-switch {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  opacity: .72;
}
.variant-switch:hover { opacity: 1; }

/* ---------- ヒーロー（index） ---------- */

.hero {
  position: relative;
  height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: end start;
}

.hero-media {
  position: absolute;
  inset: 0;
}
/* 複数画像のゆったりクロスフェード。site.js が .is-active を巡回させる。
   Ken Burns は全スライドに常時掛けっぱなし（is-active に紐づけるとフェードアウト側の
   transform がアニメ解除で初期値に戻り、ズームが「戻る」カクつきになるため） */
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.8s ease;
  animation: kb-breathe 18s ease-in-out infinite alternate;
}
.hero-media img.is-active { opacity: 1; }
@keyframes kb-breathe {
  from { transform: scale(1); }
  to   { transform: scale(1.07); }
}
@keyframes kb-drift {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--hero-scrim);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 0 32px 56px;
  color: var(--hero-ink);
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
  animation: rise .9s ease .5s forwards;
}

.hero-title {
  margin: 10px 0 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(44px, 8.5vw, 118px);
  line-height: .96;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.hero-title .line {
  display: block;
  opacity: 0;
  animation: rise 1s cubic-bezier(.22,.61,.36,1) forwards;
}
.hero-title .line:nth-child(1) { animation-delay: .65s; }
.hero-title .line:nth-child(2) { animation-delay: .8s; }

.hero-sub {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .08em;
  max-width: 46ch;
  opacity: 0;
  animation: rise .9s ease 1.05s forwards;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-scrolldown {
  position: absolute;
  right: 32px; bottom: 56px;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--hero-ink);
  writing-mode: vertical-rl;
  opacity: 0;
  animation: rise 1s ease 1.3s forwards;
}
.hero-scrolldown::after {
  content: "";
  display: block;
  width: 1px; height: 42px;
  margin: 12px auto 0;
  background: currentColor;
  animation: drip 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes drip {
  0%, 100% { transform: scaleY(.3); opacity: .4; }
  50%      { transform: scaleY(1);  opacity: 1; }
}

/* ---------- セクション骨格 ---------- */

.section {
  max-width: 1360px;
  margin: 0 auto;
  padding: 96px 32px 64px;
}
/* ヒーローを持たないページ（Works 等）の先頭セクション: fixed ヘッダー分 + 呼吸の余白 */
.section.no-hero { padding-top: 150px; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 8px;
}

.section-title {
  margin: 0;
  font-family: var(--font-serif-display, var(--font-display));
  font-style: italic;
  font-weight: 400;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
  letter-spacing: .01em;
}

.section-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

/* フィルタバー（モックでは見た目のみ） */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 0 36px;
}
.filter-bar button {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color .25s ease, border-color .25s ease;
}
.filter-bar button:hover { color: var(--text); border-color: var(--muted); }
.filter-bar button.is-active {
  color: var(--accent-ink, var(--bg));
  background: var(--accent);
  border-color: var(--accent);
}

/* ---------- 公演カードグリッド（index） ---------- */

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 26px;
}
/* 最新公演をフィーチャー: 先頭カードだけ 2 列分（参照デザイン由来） */
.event-grid .event-card:first-child { grid-column: span 2; }
.event-grid .event-card:first-child .frame { aspect-ratio: 16 / 8.4; }
@media (max-width: 960px) {
  .event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .event-grid { grid-template-columns: 1fr; }
  .event-grid .event-card:first-child { grid-column: auto; }
  .event-grid .event-card:first-child .frame { aspect-ratio: 3 / 2; }
}

.event-card { position: relative; }

.event-card .frame {
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--surface);
}
.event-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.22,.61,.36,1), filter .8s ease;
}
.event-card:hover img { transform: scale(1.045); }

.event-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 12px;
}

.event-name {
  margin: 0;
  font-family: var(--font-jp-title, var(--font-body));
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.event-no {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.event-date {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: .06em;
}

.event-card .accent-tick {
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .5s cubic-bezier(.22,.61,.36,1);
}
.event-card:hover .accent-tick { width: 44px; }

/* ---------- ライブページ ---------- */

.live-hero {
  position: relative;
  height: 78svh;
  overflow: hidden;
}
.live-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: kb-drift 9s ease-out forwards;
}
.live-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--hero-scrim);
}

.live-head { padding-top: 42px; padding-bottom: 0; }

.live-title {
  margin: 0 0 10px;
  font-family: var(--font-jp-title, var(--font-display));
  font-weight: 500;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.2;
  text-wrap: pretty;
}

.live-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .08em;
}
.live-meta .accent { color: var(--accent); }

/* masonry（CSS columns 簡易版） */
.photo-masonry {
  columns: 3;
  column-gap: 22px;
  padding-top: 40px;
}
.photo-masonry figure {
  margin: 0 0 22px;
  break-inside: avoid;
  cursor: zoom-in;
  overflow: hidden;
  background: var(--surface);
}
.photo-masonry img {
  width: 100%;
  transition: transform .8s cubic-bezier(.22,.61,.36,1), opacity .8s ease;
}
.photo-masonry figure:hover img { transform: scale(1.03); }

/* ---------- スクロール reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.22,.61,.36,1);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* ---------- ライトボックス ---------- */

.lightbox {
  position: fixed; inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 48px;
  background: var(--lightbox-bg);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }

.lightbox > img {
  max-width: min(92vw, 1400px);
  max-height: 80vh;   /* 下部フィルムストリップと重ならない高さに抑える */
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  transform: scale(.97);
  transition: transform .35s cubic-bezier(.22,.61,.36,1);
}
.lightbox.is-open > img { transform: scale(1); }

/* 下部バー: カウンター + フィルムストリップ。操作が止まると自動フェード */
.lightbox .lb-ui {
  position: absolute;
  left: 0; right: 0; bottom: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: opacity .4s ease;
}
.lightbox.ui-hidden .lb-ui,
.lightbox.ui-hidden .lb-close,
.lightbox.ui-hidden .lb-prev,
.lightbox.ui-hidden .lb-next { opacity: 0; }

.lb-filmstrip {
  display: flex;
  gap: 6px;
  justify-content: center;
  max-width: 86vw;
  overflow: hidden;
}
.lb-filmstrip img {
  width: 34px; height: 46px;
  object-fit: cover;
  border-radius: 1px;
  cursor: pointer;
  opacity: .38;
  transition: opacity .25s ease;
}
.lb-filmstrip img.is-current {
  opacity: 1;
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}

.lightbox button {
  position: absolute;
  z-index: 1;
  border: 0;
  background: transparent;
  color: var(--lightbox-ink);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .1em;
  cursor: pointer;
  padding: 14px;
  opacity: .75;
  transition: opacity .25s ease;
}
.lightbox button:hover { opacity: 1; }
.lightbox .lb-close { top: 18px; right: 22px; font-size: 15px; }
.lightbox .lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- About（参照デザイン由来の 2 カラム） ---------- */

.about-grid {
  min-height: calc(100svh - 200px);
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 7vw;
  align-items: start;
  padding-top: 150px;
}
/* お気に入り写真のカードスタック: 少しずつ回転・ずらして重ね、hover したカードが前面に出てカラーに */
.about-stack {
  position: relative;
  aspect-ratio: 3 / 4;
  margin: 32px 9% 0;
}
.about-stack img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 3px;
  filter: grayscale(1) contrast(1.05) brightness(.8);
  box-shadow: 0 14px 44px rgba(0, 0, 0, .5);
  transform: rotate(calc((var(--i) - 1.5) * 3deg)) translateX(calc((var(--i) - 1.5) * 4%));
  transform-origin: 50% 90%;
  transition: transform .55s cubic-bezier(.22,.61,.36,1), filter .55s ease;
  /* 中央に近いカードほど上に重ねる（開いた時に各カードの露出が均等になり、どれにも hover が届く） */
  z-index: calc(10 - max(var(--i) - 1.5, 1.5 - var(--i)) * 2);
}
/* スタックに hover → 扇状に開く（開くと各カードの露出が増えて個別に hover できる） */
.about-stack:hover img {
  transform: rotate(calc((var(--i) - 1.5) * 7deg)) translateX(calc((var(--i) - 1.5) * 10%)) translateY(calc(max(var(--i) - 1.5, 1.5 - var(--i)) * -8px));
}
/* 開いた中の 1 枚に hover → そのカードが前面に出てカラーに */
.about-stack img:hover {
  z-index: 10;
  transform: rotate(0deg) translateX(calc((var(--i) - 1.5) * 10%)) translateY(-14px) scale(1.05);
  filter: grayscale(0) contrast(1) brightness(1);
}
.about-body { max-width: 560px; }
.about-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 22px;
}
.about-text {
  font-size: 14.5px;
  line-height: 2.1;
  color: var(--muted);
  margin-top: 26px;
}
.about-links { display: flex; gap: 28px; margin-top: 44px; }
.about-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  padding-bottom: 5px;
  transition: border-color .3s ease;
}
.about-links a:hover { border-color: var(--accent); }
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 110px; }
  .about-portrait { max-width: 320px; }
}

/* ---------- 次の公演 / フッター ---------- */

.more-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

/* footer はコピーライトのみ中央配置（ブランドは左上に常在、SNS は About にあるため） */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 64px;
  padding: 36px 32px 44px;
  display: flex;
  justify-content: center;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: .08em;
}
.site-footer a:hover { color: var(--text); }

/* 編集画面への隠し導線: © 表記そのものがリンク（見た目・カーソルとも通常テキストと同じ） */
.secret-admin { cursor: default; }
.secret-admin:hover { color: var(--muted); }

/* ---------- Home: フォトウォール ---------- */

.wall-section {
  max-width: 1600px;
  margin: 0 auto;
  padding: 108px 20px 40px;
}
.wall {
  columns: 4;
  column-gap: 10px;
}
.wall figure {
  margin: 0 0 10px;
  break-inside: avoid;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--surface);
}
.wall img {
  width: 100%;
  display: block;
  transition: transform .8s cubic-bezier(.22,.61,.36,1), filter .6s ease;
}
.wall figure:hover img { transform: scale(1.03); filter: brightness(1.1); }
@media (max-width: 1100px) { .wall { columns: 3; } }
@media (max-width: 760px)  { .wall { columns: 2; } }

/* Home の 1 枚ビュー（フィルムストリップなし。画像をもう一度クリックで公演ページへ） */
.viewer {
  position: fixed; inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--lightbox-bg);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.viewer.is-open { opacity: 1; pointer-events: auto; }
.viewer img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  cursor: pointer;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  transform: scale(.97);
  transition: transform .4s cubic-bezier(.22,.61,.36,1);
}
.viewer.is-open img { transform: scale(1); }
.viewer-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  color: var(--muted);
  cursor: pointer;
  transition: color .3s ease;
}
.viewer-label:hover { color: var(--accent); }
.viewer .lb-close {
  position: absolute;
  top: 18px; right: 22px;
  border: 0; background: transparent;
  color: var(--lightbox-ink);
  font-size: 15px;
  padding: 14px;
  cursor: pointer;
  opacity: .75;
}
.viewer .lb-close:hover { opacity: 1; }

/* 暗転オーバーレイ（Home 1 枚ビュー → 公演ページ遷移用） */
.blackout {
  position: fixed; inset: 0;
  z-index: 120;
  background: #060607;
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease;
}
.blackout.is-on { opacity: 1; pointer-events: auto; }

/* ---------- 編集画面（admin モック、参照デザイン由来） ---------- */

.admin-actions { display: flex; gap: 10px; align-items: center; }
.btn-ghost, .btn-accent {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  border-radius: 999px;
  padding: 7px 16px;
  cursor: pointer;
  transition: all .3s ease;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
}
.btn-ghost:hover { color: var(--text); border-color: var(--muted); }
.btn-accent {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-accent:hover { background: var(--accent-hover, var(--accent)); }

.editable {
  outline: 1.5px dashed color-mix(in srgb, var(--accent) 60%, transparent);
  outline-offset: 6px;
  cursor: text;
}

.add-tile {
  break-inside: avoid;
  margin-bottom: 22px;
  aspect-ratio: 3 / 4;
  border: 1.5px dashed color-mix(in srgb, var(--accent) 50%, transparent);
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  color: var(--accent);
  transition: border-color .3s ease, background .3s ease;
}
.add-tile:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}
.add-tile .plus { font-size: 30px; font-weight: 300; line-height: 1; }
.add-tile .label { font-size: 11.5px; }
.add-tile .hint { font-size: 10px; color: var(--muted); }

.photo-del {
  position: absolute;
  top: 8px; right: 8px;
  width: 26px; height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.65);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  transition: background .25s ease, color .25s ease;
}
.photo-del:hover { background: var(--accent); color: var(--accent-ink); }
.photo-masonry figure { position: relative; }

/* 公演カバーの編集ツール（カバー変更・表示位置調整） */
.cover-tools {
  position: absolute;
  right: 24px; bottom: 24px;
  display: flex;
  gap: 10px;
}
.cover-tools .btn-ghost {
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(8px);
  color: var(--text);
}

/* 管理画面のタブナビ（公演 / Home / About） */
.admin-nav { display: flex; gap: 6px; }
.admin-nav a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: color .25s ease, border-color .25s ease;
}
.admin-nav a:hover { color: var(--text); }
.admin-nav a[aria-current="page"] {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}

/* 公演の管理一覧 */
.admin-list { display: flex; flex-direction: column; gap: 10px; margin-top: 32px; }
.admin-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  transition: border-color .25s ease;
}
.admin-row:hover { border-color: var(--muted); }
.admin-row .thumb {
  width: 84px; height: 56px;
  object-fit: cover;
  border-radius: 2px;
  flex: none;
}
.admin-row .row-main { flex: 1; min-width: 0; }
.admin-row .row-title {
  font-family: var(--font-jp-title, var(--font-body));
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-row .row-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  padding: 4px 10px;
  border-radius: 999px;
  flex: none;
}
.badge.published { color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.badge.draft { color: var(--muted); border: 1px solid var(--line); }

/* 編集フォームフィールド（About の SNS リンク等） */
.field { margin-top: 22px; }
.field-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field-input {
  width: 100%;
  padding: 10px 14px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
}
.field-input:focus { outline: 1.5px solid var(--accent); border-color: transparent; }

/* 管理画面の選定グリッド（Home ウォール・ヒーロースライド等） */
.pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.pick-grid figure {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 3px;
}
.pick-grid img { width: 100%; height: 100%; object-fit: cover; }
.pick-grid .add-tile { aspect-ratio: 3 / 2; margin: 0; }
.pick-order {
  position: absolute;
  top: 8px; left: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,.65);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
}

.admin-section-note {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 8px;
}

.admin-bar {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  z-index: 55;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 26px;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  backdrop-filter: blur(10px);
}
.admin-bar .accent { color: var(--accent); }

/* ---------- レスポンシブ ---------- */

@media (max-width: 960px) {
  .photo-masonry { columns: 2; }
}
@media (max-width: 640px) {
  .site-header { padding: 16px 18px; }
  .section { padding: 64px 18px 48px; }
  .hero-copy { padding: 0 18px 44px; }
  .photo-masonry { columns: 1; }
  .lightbox { padding: 16px; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
