/* ===============================
   カネナガ正吉 公式サイト スタイル
   テーマ: 里山の化け狸 — 生成りの和紙 × 木の葉と家紋 × 金長の金
   色・フォントはここでまとめて管理します
   =============================== */

:root {
  /* --- 色(生成りの和紙を基調に、着物と森と金から) --- */
  --washi: #f7f3e9;        /* 生成りの和紙(ページ背景) */
  --paper: #fffdf7;        /* カード等の白い面 */
  --ai: #22486e;           /* 藍(本文・主役色/着物より) */
  --ai-deep: #16324e;      /* 濃い藍 */
  --midori: #3f8f5b;       /* 若葉の緑(自然) */
  --midori-deep: #2c6b44;  /* 深い森の緑(見出し) */
  --shu: #d2492e;          /* 朱(差し色/着物の線より) */
  --kin: #c79a3b;          /* 金(名前「金長」より・ごく控えめに) */
  --tanuki: #7a5a3c;       /* 狸茶(温かみのある中間色) */
  --sumi: #2c2822;         /* 墨(文字) */
  --muted: #7c7364;        /* 控えめな文字 */
  --line: #e6ddca;         /* 罫線(和紙になじむ) */

  /* --- レイアウト(幅いっぱいを基調に) --- */
  --maxw: 1440px;
  --pad: clamp(20px, 5vw, 84px);

  --font-display: "Shippori Mincho B1", serif;
  --font-body: "Zen Kaku Gothic New", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--washi);
  color: var(--sumi);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; }

/* 中央寄せの内側コンテナ(全幅バンドの中で使う) */
.inner { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* 家紋(丸に木の葉) currentColorで色が変わる汎用パーツ */
.mon { display: inline-block; vertical-align: middle; }

/* ---- ヘッダー ---- */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(247, 243, 233, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  z-index: 20;
}

.header-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ai-deep);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.brand .mon { color: var(--shu); }

.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }

.nav a {
  color: var(--sumi);
  text-decoration: none;
  font-size: 0.94rem;
  position: relative;
  padding-bottom: 2px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--shu);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav a:hover { color: var(--ai-deep); }
.nav a:hover::after { transform: scaleX(1); }

/* ---- ヒーロー(里山に立つ狸) ---- */
.hero {
  position: relative;
  overflow: hidden;
  /* 時刻連動で JS が上書きする既定値(昼) */
  --sky-top: #cfe8fb;
  --sky-bot: #eaf5ec;
  --night: 0;
  --cloud-op: 0.85;
  --sun-op: 1;
  --moon-op: 0;
  --hero-ink: #16324e;    /* 見出しの文字色。夜は js/sky.js が明色へ寄せる */
  background: var(--sky-bot);
}

/* 空(時刻でグラデーションが変わる) */
.hero__sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bot) 78%);
  transition: background 2.5s linear;
}

/* 星空(夜に近づくほど濃くなる) */
.hero__stars {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: var(--night);
  transition: opacity 2.5s linear;
  pointer-events: none;
}
.star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  animation: twinkle var(--tw-dur, 3s) ease-in-out var(--tw-delay, 0s) infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.7); }
  50%      { opacity: 1;    transform: scale(1); }
}

/* 流れる雲 */
.hero__clouds {
  position: absolute;
  inset: 0 0 auto 0;
  height: 66%;
  z-index: 1;
  opacity: var(--cloud-op);
  transition: opacity 2.5s linear;
  pointer-events: none;
  overflow: hidden;
}
.cloud {
  position: absolute;
  width: 200px;
  height: 84px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 84'%3E%3Cg fill='%23ffffff'%3E%3Cellipse cx='56' cy='57' rx='33' ry='23'/%3E%3Cellipse cx='102' cy='45' rx='42' ry='31'/%3E%3Cellipse cx='150' cy='58' rx='31' ry='22'/%3E%3Crect x='38' y='55' width='126' height='26' rx='13'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  filter: blur(1px);
  animation: cloudDrift linear infinite;
}
.cloud--a { top: 12%;  transform: scale(0.9);  animation-duration: 66s; animation-delay: 0s; }
.cloud--b { top: 30%;  transform: scale(0.6);  animation-duration: 92s; animation-delay: -30s; }
.cloud--c { top: 6%;   transform: scale(1.15); animation-duration: 80s; animation-delay: -55s; }
.cloud--d { top: 40%;  transform: scale(0.75); animation-duration: 104s; animation-delay: -12s; }
@keyframes cloudDrift {
  from { left: -240px; }
  to   { left: 100%; }
}

/* 太陽と月(同じ位置でクロスフェード) */
.sun, .moon {
  position: absolute;
  z-index: 1;
  width: clamp(120px, 16vw, 240px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  right: clamp(8%, 14vw, 20%);
  top: clamp(28px, 6vw, 74px);
  transition: opacity 2.5s linear;
}
.sun {
  opacity: var(--sun-op);
  background: radial-gradient(circle at 50% 46%, #fff6d8, #ffe28c 56%, #ffcf6b 100%);
  box-shadow: 0 0 70px rgba(255, 218, 130, 0.55);
}
.moon {
  opacity: var(--moon-op);
  background: radial-gradient(circle at 42% 40%, #f6f8fe, #dfe4f0 68%, #c6ccdd 100%);
  box-shadow: 0 0 46px rgba(214, 224, 255, 0.5);
}

.hero__inner {
  position: relative;
  z-index: 3;              /* 立ち絵・文言・配信カードを山より手前に */
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 5.5vw, 80px) var(--pad) 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  gap: 24px;
}

/* 左カラム: 上に配信カード、下にリード(名前など) */
.hero__text {
  display: flex; flex-direction: column;
  min-width: 0;
  container-type: inline-size;   /* 名前の文字サイズをこの幅から決める */
}
.hero__lead { margin-top: auto; min-width: 0; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--shu);
  font-weight: 700;
  font-size: clamp(0.8rem, 1.4vw, 0.95rem);
  letter-spacing: 0.14em;
  text-shadow:
    0 1px 6px rgba(255, 255, 255, calc((1 - var(--night, 0)) * 0.55)),
    0 1px 8px rgba(6, 14, 32, calc(var(--night, 0) * 0.5));
}

.hero__eyebrow .mon { color: var(--shu); }

.hero__name {
  font-family: var(--font-display);
  font-weight: 800;
  /* 「カネナガ正吉」6文字 × (1em + 字間0.06em) ≒ 6.4em。
     欄の幅(100cqw)に必ず1行で収まるよう 15cqw を上限にする */
  font-size: clamp(2rem, 8vw, 6rem);
  white-space: nowrap;
  line-height: 1.04;
  letter-spacing: 0.06em;
  color: var(--hero-ink, #16324e);   /* 時刻で明暗が変わる(夜は明色に) */
  margin: 14px 0 6px;
  text-shadow:
    0 2px 12px rgba(255, 255, 255, calc((1 - var(--night, 0)) * 0.6)),
    0 2px 16px rgba(6, 14, 32, calc(var(--night, 0) * 0.7));
  transition: color 2.5s linear;
}

.hero__kana {
  font-family: var(--font-display);
  color: var(--hero-ink, #16324e);
  opacity: 0.85;
  white-space: nowrap;
  font-size: clamp(1.05rem, 3vw, 1.7rem);
  letter-spacing: 0.14em;
  margin-bottom: 30px;
  text-shadow:
    0 1px 6px rgba(255, 255, 255, calc((1 - var(--night, 0)) * 0.5)),
    0 1px 8px rgba(6, 14, 32, calc(var(--night, 0) * 0.55));
  transition: color 2.5s linear;
}

/* コンテナ幅が使えるブラウザでは、欄の幅に合わせて必ず1行に収める */
@supports (width: 1cqw) {
  .hero__name { font-size: min(clamp(2rem, 8vw, 6rem), 15cqw); }
  .hero__kana { font-size: min(clamp(1.05rem, 3vw, 1.7rem), 9cqw); }
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.hero__art { align-self: end; justify-self: end; }

.tachie--hero {
  display: block;
  width: clamp(200px, 32vw, 420px);
  height: auto;
  filter: drop-shadow(0 14px 24px rgba(44, 40, 34, 0.22));
}

/* 里山の風景(奥に山、手前に森の梢)。夜は暗く沈む */
.hero__scenery {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: clamp(150px, 22vw, 260px);
  z-index: 1;              /* 立ち絵・文言(z-index:3)より後ろ */
  display: block;
  filter: brightness(calc(1 - var(--night) * 0.55)) saturate(calc(1 - var(--night) * 0.35));
  transition: filter 2.5s linear;
}

/* 舞い落ちる木の葉(ごく控えめに) */
.leaf {
  position: absolute;
  top: -6%;
  z-index: 1;
  color: var(--kin);
  opacity: 0;
  pointer-events: none;
  animation: leafFall linear infinite;
}
.leaf--1 { left: 16%; width: 20px; animation-duration: 15s; animation-delay: 0s; color: var(--kin); }
.leaf--2 { left: 42%; width: 15px; animation-duration: 19s; animation-delay: 5s; color: var(--shu); }
.leaf--3 { left: 70%; width: 18px; animation-duration: 17s; animation-delay: 9s; color: var(--midori); }

@keyframes leafFall {
  0%   { transform: translateY(-10px) rotate(0deg);  opacity: 0; }
  12%  { opacity: 0.75; }
  100% { transform: translateY(78vh) rotate(300deg); opacity: 0; }
}

/* ---- ボタン ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  padding: 13px 32px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
}

.btn--primary { background: var(--ai); color: #fff; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(34, 72, 110, 0.32); }

.btn--ghost { background: transparent; color: var(--ai-deep); border-color: var(--ai); }
.btn--ghost:hover { background: rgba(34, 72, 110, 0.07); transform: translateY(-2px); }

/* ヒーロー内のゴーストボタンは空の色に左右されず読めるよう和紙地に */
.hero .btn--ghost {
  background: rgba(255, 253, 247, 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border-color: rgba(34, 72, 110, 0.45);
}
.hero .btn--ghost:hover { background: rgba(255, 253, 247, 0.92); }

/* ---- 全幅バンド + セクション ---- */
.band { width: 100%; }
.band--alt {
  background: linear-gradient(180deg, rgba(63, 143, 91, 0.08), rgba(63, 143, 91, 0.05)), var(--washi);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 100px) var(--pad);
}

/* 見出し(家紋 + 小見出し + タイトル) */
.sec-head { margin-bottom: clamp(26px, 4vw, 44px); }

.sec-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--midori-deep);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
}
.sec-eyebrow .mon { color: var(--midori); }

.sec-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  color: var(--ai-deep);
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.note { color: var(--muted); font-size: 0.9rem; margin-bottom: 16px; }

/* ---- ヒーロー内の配信ステータス(3Dの木目テレビ + 吹き出し) ---- */
.hero-stream {
  /* 画面サイズに合わせてテレビが大きくなる。高さ・奥行きは幅から比率で決まる */
  --tvw: clamp(160px, 17vw, 300px);
  --tvh: calc(var(--tvw) * 0.79);
  --tvd: calc(var(--tvw) * 0.3);
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.4vw, 34px);
  max-width: min(620px, 100%);
  margin: 14px 0 18px;
  color: var(--sumi);
  text-decoration: none;
}

/* --- 3Dテレビ --- */
.tv3d { display: block; flex: 0 0 auto; perspective: 760px; padding-top: 20px; }
.tv3d__body {
  display: block;
  position: relative;
  width: var(--tvw); height: var(--tvh);
  transform-style: preserve-3d;
  transform: rotateX(7deg) rotateY(24deg);
  transition: transform 0.45s cubic-bezier(.3,.7,.3,1);
}
.hero-stream:hover .tv3d__body { transform: rotateX(4deg) rotateY(12deg); }

.tv3d__face { position: absolute; }
/* 前面(画面と操作パネル) */
.tv3d__front {
  inset: 0;
  display: flex; gap: 6px; align-items: stretch;
  padding: 9px;
  border-radius: 9px 9px 6px 6px;
  background: linear-gradient(150deg, #8a5f3b 0%, #6b4830 48%, #543722 100%);
  box-shadow: inset 0 1px 0 rgba(255, 226, 184, 0.28);
}
/* 側面と天面(木口) */
.tv3d__side {
  top: 0; left: 100%;
  width: var(--tvd); height: 100%;
  transform-origin: left center; transform: rotateY(90deg);
  background: linear-gradient(180deg, #4a321f, #3a2617);
  border-radius: 0 6px 6px 0;
}
.tv3d__side--left {
  left: auto; right: 100%;
  transform-origin: right center; transform: rotateY(-90deg);
}
.tv3d__top {
  top: 0; left: 0;
  width: 100%; height: var(--tvd);
  transform-origin: center top; transform: rotateX(-90deg);
  background: linear-gradient(180deg, #9a6c44, #6d4a2f);
  border-radius: 6px 6px 0 0;
}
/* 脚 */
.tv3d__leg {
  position: absolute; bottom: -11px;
  width: 12px; height: 12px;
  background: #3a2617;
  border-radius: 0 0 4px 4px;
  transform: translateZ(calc(var(--tvd) / -2));
}
.tv3d__leg--l { left: 16px; }
.tv3d__leg--r { right: 16px; }
/* アンテナ(V字。テレビの上に立てる) */
.tv3d__antenna {
  position: absolute; bottom: 100%; left: 50%;
  width: 3px; height: 9px;
  background: #4b3220;
  transform: translateZ(calc(var(--tvd) / -2));
}
.tv3d__antenna::before, .tv3d__antenna::after {
  content: ""; position: absolute; bottom: 100%; left: 0;
  width: 3px; height: 30px; background: #4b3220; border-radius: 2px;
  transform-origin: bottom center;
}
.tv3d__antenna::before { transform: rotate(-26deg); }
.tv3d__antenna::after  { transform: rotate(26deg); }

/* ブラウン管の画面 */
.tv3d__screen {
  position: relative;
  flex: 1 1 auto;
  align-self: center;
  aspect-ratio: 16 / 9;
  border-radius: 8px / 10px;   /* 少し丸いブラウン管らしさ */
  overflow: hidden;
  background: #0b0f0c;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.85), 0 0 0 2px #3a2617;
}
.tv3d__screen img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; }
.hero-stream:hover .tv3d__screen img { transform: scale(1.06); }
/* 走査線 + ブラウン管の反射 */
.tv3d__scan {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 80% at 30% 12%, rgba(255,255,255,0.22), rgba(255,255,255,0) 55%),
    linear-gradient(rgba(0,0,0,0) 62%, rgba(0,0,0,0.3)),
    repeating-linear-gradient(rgba(255,255,255,0.055) 0 1px, rgba(0,0,0,0) 1px 3px);
  animation: tvScan 7s linear infinite;
}
@keyframes tvScan { from { background-position: 0 0, 0 0, 0 0; } to { background-position: 0 0, 0 0, 0 6px; } }
/* 待機画面(カラーバー) */
.tv3d__bars {
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    #c8c8c8 0 14.28%, #cfcf4a 14.28% 28.57%, #4acfcf 28.57% 42.85%,
    #4acf4a 42.85% 57.14%, #cf4acf 57.14% 71.42%, #cf4a4a 71.42% 85.71%, #4a4acf 85.71% 100%);
  opacity: 0.92;
}
.tv3d__bars span {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2px 0; text-align: center;
  font-size: 0.5rem; font-weight: 700; letter-spacing: 0.1em;
  color: #fff; background: rgba(0, 0, 0, 0.6);
}
/* 操作パネル(つまみ・スピーカー・ランプ) */
.tv3d__panel {
  flex: 0 0 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.tv3d__knob {
  width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle at 34% 32%, #d9b183, #8a5f3b 70%, #5a3c26);
  box-shadow: inset 0 -1px 2px rgba(0,0,0,0.45);
}
.tv3d__grill {
  width: 13px; height: 22px; border-radius: 2px;
  background: repeating-linear-gradient(#3a2617 0 2px, #7a5334 2px 4px);
  opacity: 0.85;
}
.tv3d__led { width: 6px; height: 6px; border-radius: 50%; background: #7bd66a; box-shadow: 0 0 6px #7bd66a; }
.hero-stream--live .tv3d__led { background: var(--shu); box-shadow: 0 0 7px var(--shu); animation: livePulse 1.4s ease-in-out infinite; }
.hero-stream--none .tv3d__led { background: #caa64a; box-shadow: 0 0 6px #caa64a; }

/* --- 吹き出し(テレビからの声) --- */
.tv-bubble {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  padding: 13px 16px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(16, 26, 46, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero-stream:hover .tv-bubble { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(16, 26, 46, 0.2); }
/* しっぽ(テレビ側を指す) */
.tv-bubble::before, .tv-bubble::after {
  content: "";
  position: absolute; top: 30px;
  width: 0; height: 0;
  border-style: solid;
}
.tv-bubble::before {
  left: -13px;
  border-width: 8px 13px 8px 0;
  border-color: transparent var(--line) transparent transparent;
}
.tv-bubble::after {
  left: -11px;
  border-width: 7px 12px 7px 0;
  border-color: transparent var(--paper) transparent transparent;
}
.hero-stream--live .tv-bubble { border-color: rgba(210, 73, 46, 0.5); }
.hero-stream--live .tv-bubble::before { border-right-color: rgba(210, 73, 46, 0.5); }

.hero-stream__label { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; }
.hero-stream--live .hero-stream__label { color: var(--shu); }
.hero-stream--next .hero-stream__label { color: var(--midori-deep); }
.hero-stream--none .hero-stream__label { color: var(--tanuki); }
.hero-stream__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--shu); animation: livePulse 1.4s ease-in-out infinite; }
.hero-stream__title {
  font-weight: 700; font-size: 0.92rem; line-height: 1.45; margin: 3px 0;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.hero-stream__meta { display: block; font-size: 0.76rem; color: var(--muted); }

@keyframes livePulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ---- アーカイブ カード(にじさんじNEWS風: 16:9サムネ + 日付 + タイトル) ---- */
.archive-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: var(--sumi);
  box-shadow: 0 4px 14px rgba(44, 40, 34, 0.07);
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.archive-card:hover { transform: translateY(-4px); border-color: var(--ai); box-shadow: 0 14px 26px rgba(44, 40, 34, 0.15); }
.archive-card__thumb { position: relative; aspect-ratio: 16 / 9; background: #eef3ea; overflow: hidden; }
.archive-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.archive-card:hover .archive-card__thumb img { transform: scale(1.05); }
.archive-card__play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s ease; background: rgba(22, 50, 78, 0.28);
}
.archive-card:hover .archive-card__play { opacity: 1; }
.archive-card__play svg { width: 48px; height: 48px; }
.archive-card__body { padding: 13px 15px 16px; display: flex; flex-direction: column; gap: 6px; }
.archive-card__date { display: inline-flex; align-items: center; gap: 7px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.03em; color: var(--muted); }
.archive-card__date::before { content: ""; width: 15px; height: 2px; border-radius: 2px; background: var(--shu); }
.archive-card__title {
  font-weight: 700; font-size: 0.92rem; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.archive-empty { color: var(--muted); }
.archive-empty a { color: var(--ai); }

/* トップ: 横スクロールのカルーセル(左右矢印つき) */
.archive-carousel { position: relative; }
.archive-strip {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  padding: 4px 4px 16px;
  margin: 0 -4px;
  scrollbar-color: var(--midori) #e3ddcb;
}
.archive-strip::-webkit-scrollbar { height: 9px; }
.archive-strip::-webkit-scrollbar-thumb { background: var(--midori); border-radius: 8px; }
.archive-strip::-webkit-scrollbar-track { background: #e3ddcb; border-radius: 8px; }
.archive-strip .archive-card { flex: 0 0 clamp(230px, 74vw, 300px); scroll-snap-align: start; }

.archive-arrow {
  position: absolute; top: calc(50% - 30px);
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.95);
  color: var(--ai-deep);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2;
  box-shadow: 0 4px 14px rgba(44, 40, 34, 0.16);
  transition: background 0.15s, transform 0.15s;
}
.archive-arrow:hover { background: #fff; transform: scale(1.06); }
.archive-arrow--prev { left: -10px; }
.archive-arrow--next { right: -10px; }
.archive-arrow svg { width: 18px; height: 18px; }

/* 一覧ページ: グリッド表示 */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 26px 22px;
}

/* セクション見出しの右側に置く「一覧へ」リンク */
.sec-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.more-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700; font-size: 0.9rem; text-decoration: none;
  color: #fff; background: var(--ai);
  padding: 10px 22px; border-radius: 999px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.more-link:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(34, 72, 110, 0.3); }
.more-link svg { width: 14px; height: 14px; }

/* ---- プロフィール ---- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(200px, 300px) 1fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}

/* 顔アイコンを家紋の丸で囲む */
.portrait { position: relative; width: 100%; aspect-ratio: 1; }
.portrait__img { position: absolute; inset: 9%; width: 82%; height: 82%; border-radius: 50%; object-fit: cover; background: var(--paper); }
.portrait__ring { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--ai); }

.about-text > p { font-size: clamp(1.02rem, 1.6vw, 1.2rem); margin-bottom: 24px; }

.profile-list { list-style: none; }
.profile-list li { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.profile-list li span { flex: 0 0 5.5em; color: var(--midori-deep); font-weight: 700; }

/* ---- スケジュール表 ---- */
.schedule-table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: 14px; overflow: hidden; box-shadow: 0 4px 14px rgba(44, 40, 34, 0.07); }
.schedule-table th, .schedule-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.schedule-table th { color: #fff; background: var(--midori-deep); font-size: 0.88rem; letter-spacing: 0.04em; }
.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table a { color: var(--ai); font-weight: 500; }

/* ---- リンク集 ---- */
.link-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.link-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 14px; padding: 22px 24px;
  color: var(--sumi); font-weight: 700; text-decoration: none;
  box-shadow: 0 4px 14px rgba(44, 40, 34, 0.06);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.link-card .mon { color: var(--kin); flex: 0 0 auto; }
.link-card small { display: block; color: var(--muted); font-weight: 400; font-size: 0.84rem; margin-top: 3px; }
.link-card:hover { border-color: var(--ai); transform: translateY(-3px); box-shadow: 0 12px 24px rgba(44, 40, 34, 0.13); }
.link-card:hover .mon { color: var(--shu); }

/* ---- フォーム(リクエスト・問い合わせ共通) ---- */
.form-card {
  width: 100%; max-width: 720px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 16px; padding: clamp(22px, 4vw, 36px);
  box-shadow: 0 4px 14px rgba(44, 40, 34, 0.07);
  margin-top: 6px;
}
.form-row { margin-bottom: 22px; }
.form-row label { display: block; font-weight: 700; color: var(--midori-deep); margin-bottom: 7px; font-size: 0.95rem; }
.form-row .optional { color: var(--muted); font-weight: 400; font-size: 0.85rem; }
.form-row input[type="text"],
.form-row input[type="email"],
.form-row select,
.form-row textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--sumi); background: #fff;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: 2px solid var(--ai); outline-offset: 1px; border-color: var(--ai); }
.form-card .btn:disabled { opacity: 0.6; cursor: wait; transform: none; box-shadow: none; }
.form-message { margin-top: 14px; font-size: 0.95rem; }
.form-message--ok { color: var(--midori-deep); font-weight: 700; }
.form-message--error { color: var(--shu); font-weight: 700; }
.lead { font-size: clamp(1rem, 1.5vw, 1.12rem); margin-bottom: 8px; }

/* ---- 絵馬(みんなのリクエスト) ---- */
:root { --ema-fs: 0.95rem; }   /* 願いごとの文字サイズ(絵馬の幅もこれで決まる) */
.ema-board { margin-top: clamp(24px, 4vw, 44px); }
.ema-cat { margin-bottom: clamp(30px, 4vw, 44px); }
.ema-cat__head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
  font-family: var(--font-display); font-weight: 700;
  color: var(--ai-deep); font-size: 1.15rem;
}
.ema-cat__count { font-family: var(--font-body); font-size: 0.78rem; font-weight: 700; color: #fff; background: var(--midori); border-radius: 999px; padding: 2px 10px; }
.ema-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 22px 16px; }

.ema { position: relative; border: 0; background: none; padding: 0; cursor: pointer; font: inherit; -webkit-tap-highlight-color: transparent; }
.ema__cord { position: absolute; z-index: 2; top: 0; left: 50%; width: 2px; height: 15px; background: #b23b2e; transform: translateX(-50%); }
.ema__cord::before { content: ""; position: absolute; top: -5px; left: 50%; width: 11px; height: 11px; border-radius: 50%; border: 2px solid #b23b2e; background: rgba(255,255,255,0.6); transform: translateX(-50%); }
.ema__plaque {
  position: relative;
  margin-top: 12px;
  font-size: var(--ema-fs);       /* 中の 10em を文字サイズ基準にそろえる */
  width: calc(10em + 30px);       /* 全角10文字 + 左右の余白。全ての絵馬が同じ幅になる */
  clip-path: polygon(50% 0, 100% 22%, 100% 100%, 0 100%, 0 22%);
  background: linear-gradient(155deg, #ecd0a1 0%, #ddb886 52%, #cfa974 100%);
  box-shadow: 0 6px 14px rgba(44, 40, 34, 0.16);
  padding: 34px 15px 26px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.18s ease, filter 0.18s ease;
}
.ema__plaque::before {
  content: ""; position: absolute; inset: 0; clip-path: inherit; pointer-events: none;
  background: repeating-linear-gradient(93deg, rgba(120, 80, 40, 0.06) 0 7px, rgba(120, 80, 40, 0) 7px 15px);
}
.ema:hover .ema__plaque { transform: rotate(-1.8deg); filter: brightness(1.03); }
/* 願いごとは「1行10文字 × 最大3行」に固定(絵馬の大きさを揃えるため) */
.ema__text {
  position: relative;
  font-family: "Yomogi", var(--font-body);
  color: #5a3c26;
  font-size: 1em;         /* 親(.ema__plaque)の --ema-fs をそのまま使う */
  line-height: 1.62;
  text-align: center;
  width: 10em;            /* 全角ちょうど10文字ぶん */
  height: calc(1.62em * 3);
  word-break: break-all;  /* 10文字目で必ず折り返す */
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
/* 聞き届けた印(肉球の朱印)。大きさと角度は絵馬ごとに少しずつ変わる */
.ema__paw {
  position: absolute;
  left: 9px; bottom: 6px;
  width: calc(44px * var(--paw-scale, 1));
  color: rgba(178, 59, 46, 0.68);
  transform: rotate(var(--paw-rot, -12deg));
  mix-blend-mode: multiply;
  pointer-events: none;
}
.ema__paw svg { display: block; width: 100%; height: auto; fill: currentColor; }

.ema__like { position: absolute; right: 11px; bottom: 9px; display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 0.8rem; color: #9a6a44; }
.ema__like svg { width: 15px; height: 15px; }
.ema__like svg path { fill: currentColor; }
.ema.is-liked .ema__plaque { box-shadow: 0 6px 18px rgba(178, 59, 46, 0.32); outline: 2px solid rgba(178, 59, 46, 0.55); outline-offset: -2px; }
.ema.is-liked .ema__like { color: #b23b2e; }
.ema-empty { color: var(--muted); }

/* ===============================
   夜の絵馬掛け所(リクエスト一覧ページ)
   =============================== */
.night-page {
  --yoru-deep: #0a1526;
  --yoru: #12243c;
  --yoru-hi: #1d3550;
  --hotaru: #cdf58a;
  --tomoshibi: #f0c274;
  background: var(--yoru-deep);
  color: #e7edf5;
}
.night-page .site-header { background: rgba(10, 21, 38, 0.86); border-bottom-color: rgba(255, 255, 255, 0.12); }
.night-page .brand { color: #f2e6cb; }
.night-page .nav a { color: #d6e0ee; }
.night-page .nav a:hover { color: #fff; }
.night-page .site-footer { background: #081120; }

/* 夜空 + 林の空気 */
.night-sky {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 70% at 50% 0%, #1d3550 0%, #12243c 45%, #0a1526 100%);
}
.night-sky::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(80% 55% at 50% 120%, rgba(205, 245, 138, 0.09), transparent 70%);
  pointer-events: none;
}
.night-band {
  position: relative; z-index: 2;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.night-band .inner { padding-top: clamp(40px, 6vw, 64px); padding-bottom: clamp(30px, 4vw, 46px); }
.night-band .sec-eyebrow { color: var(--hotaru); }
.night-band .sec-eyebrow .mon { color: var(--hotaru); }
.night-band .sec-head h2 { color: #f4ead4; }
.night-note { color: #a9bad0; font-size: 0.9rem; }

/* ホタル */
.fireflies { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.firefly {
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--hotaru);
  box-shadow: 0 0 8px 2px rgba(205, 245, 138, 0.75), 0 0 20px 6px rgba(180, 230, 120, 0.28);
  opacity: 0;
  animation: fireflyDrift linear infinite, fireflyGlow ease-in-out infinite;
}
@keyframes fireflyDrift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(var(--dx1), var(--dy1)); }
  50%  { transform: translate(var(--dx2), var(--dy2)); }
  75%  { transform: translate(var(--dx3), var(--dy3)); }
  100% { transform: translate(0, 0); }
}
@keyframes fireflyGlow {
  0%, 100% { opacity: 0.05; }
  40%      { opacity: 0.95; }
  60%      { opacity: 0.5; }
}

/* 絵馬掛け(梁 + 吊るされた絵馬) */
.rack-area { position: relative; z-index: 2; }
.rack { margin-bottom: clamp(44px, 6vw, 74px); }
.rack__beam {
  position: relative;
  height: 17px;
  border-radius: 4px;
  background: linear-gradient(180deg, #6b4a30 0%, #543722 55%, #3c2717 100%);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 220, 170, 0.22);
}
.rack__beam::before, .rack__beam::after {
  content: "";
  position: absolute; top: -8px;
  width: 13px; height: 30px;
  border-radius: 3px;
  background: linear-gradient(180deg, #5d4029, #3a2515);
}
.rack__beam::before { left: -13px; }
.rack__beam::after  { right: -13px; }

.rack__label {
  position: absolute; left: 50%; top: -34px;
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 700;
  color: #f4e6c6; font-size: 1.02rem;
  background: rgba(10, 21, 38, 0.72);
  border: 1px solid rgba(240, 194, 116, 0.4);
  border-radius: 999px;
  padding: 4px 16px;
  white-space: nowrap;
}
.rack__label em { font-style: normal; font-family: var(--font-body); font-size: 0.76rem; color: var(--tomoshibi); }

.rack__hang {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(14px, 2.4vw, 26px);
  padding-top: 0;
}

/* 吊るされた絵馬 */
.ema--hung { transform-origin: top center; animation: emaSway 5.2s ease-in-out infinite; }
.ema--hung .ema__cord { height: 30px; background: #c9553f; }
.ema--hung .ema__cord::before { border-color: #c9553f; background: rgba(255, 236, 200, 0.35); }
.ema--hung .ema__plaque { margin-top: 27px; box-shadow: 0 10px 22px rgba(0, 0, 0, 0.5); }
.ema--hung .ema__text { color: #513622; }
@keyframes emaSway {
  0%, 100% { transform: rotate(-1.4deg); }
  50%      { transform: rotate(1.4deg); }
}
.ema--hung:hover { animation-play-state: paused; }
.ema--hung:hover .ema__plaque { transform: rotate(0deg) translateY(-3px); filter: brightness(1.07); }
.ema--hung.is-liked .ema__plaque { box-shadow: 0 10px 26px rgba(240, 194, 116, 0.45); outline-color: rgba(240, 194, 116, 0.8); }

/* いま奉納された絵馬 */
.ema--new .ema__plaque { animation: emaArrive 1.1s cubic-bezier(.2,.8,.3,1) both, emaShine 2.6s ease-out 1.1s 2; }
@keyframes emaArrive {
  0%   { transform: translateY(-70px) rotate(-12deg); opacity: 0; }
  60%  { transform: translateY(6px) rotate(4deg); opacity: 1; }
  100% { transform: translateY(0) rotate(0); opacity: 1; }
}
@keyframes emaShine {
  0%, 100% { box-shadow: 0 10px 22px rgba(0, 0, 0, 0.5); }
  50%      { box-shadow: 0 0 34px 8px rgba(240, 194, 116, 0.7); }
}

.night-empty { color: #a9bad0; text-align: center; padding: 40px 0; }
.night-empty a { color: var(--hotaru); }

/* ===============================
   絵馬に書くフォーム(リクエスト記入)
   =============================== */
.ema-form-wrap { display: flex; justify-content: center; }
.ema-form {
  position: relative;
  width: min(520px, 100%);
  margin-top: 26px;
  transition: transform 0.6s cubic-bezier(.4,0,.6,1), opacity 0.6s ease;
}
.ema-form__cord { position: absolute; z-index: 2; top: -22px; left: 50%; width: 3px; height: 30px; background: #c9553f; transform: translateX(-50%); }
.ema-form__cord::before {
  content: ""; position: absolute; top: -9px; left: 50%;
  width: 18px; height: 18px; border-radius: 50%;
  border: 3px solid #c9553f; background: rgba(255, 253, 247, 0.7);
  transform: translateX(-50%);
}
.ema-form__plaque {
  position: relative;
  clip-path: polygon(50% 0, 100% 15%, 100% 100%, 0 100%, 0 15%);
  background: linear-gradient(155deg, #eed3a6 0%, #e0bd8c 55%, #d2ac79 100%);
  box-shadow: 0 12px 28px rgba(44, 30, 16, 0.28);
  padding: clamp(76px, 12vw, 104px) clamp(26px, 6vw, 52px) clamp(30px, 5vw, 44px);
}
.ema-form__plaque::before {
  content: ""; position: absolute; inset: 0; clip-path: inherit; pointer-events: none;
  background: repeating-linear-gradient(93deg, rgba(120, 80, 40, 0.055) 0 8px, rgba(120, 80, 40, 0) 8px 17px);
}
.ema-form__title {
  position: relative;
  text-align: center;
  font-family: var(--font-display); font-weight: 700;
  color: #6b4223; font-size: 1.06rem; letter-spacing: 0.14em;
  margin-bottom: 24px;
}
.ema-form .form-row { position: relative; margin-bottom: 20px; }
.ema-form label { color: #7a5330; font-size: 0.84rem; font-weight: 700; letter-spacing: 0.04em; margin-bottom: 5px; display: block; }
.ema-form .optional { color: #9a7248; font-weight: 400; }
.ema-form input[type="text"],
.ema-form select,
.ema-form textarea {
  width: 100%;
  font-family: "Yomogi", var(--font-body);
  font-size: 1rem;
  color: #4a3018;
  background: rgba(255, 250, 238, 0.5);
  border: 0;
  border-bottom: 2px dashed rgba(122, 83, 48, 0.5);
  border-radius: 5px 5px 0 0;
  padding: 9px 11px;
}
.ema-form textarea { line-height: 1.9; resize: vertical; }
.ema-form input:focus, .ema-form select:focus, .ema-form textarea:focus {
  outline: 2px solid #b5763c;
  outline-offset: 1px;
  background: rgba(255, 252, 244, 0.8);
}
.ema-form input::placeholder, .ema-form textarea::placeholder { color: rgba(122, 83, 48, 0.45); }
.ema-form__counter { text-align: right; margin-top: 5px; font-size: 0.8rem; color: #8a6238; }
.ema-form__counter.is-full { color: #b23b2e; font-weight: 700; }
.ema-form__actions { position: relative; text-align: center; margin-top: 26px; }
.btn--offer {
  background: #b23b2e; color: #fff;
  border: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; letter-spacing: 0.1em;
  font-size: 1.02rem; padding: 13px 40px; border-radius: 999px;
  box-shadow: 0 6px 16px rgba(178, 59, 46, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn--offer:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(178, 59, 46, 0.45); }
.btn--offer:disabled { opacity: 0.65; cursor: wait; transform: none; }

/* 奉納アニメーション: 絵馬が浮き上がって夜へ */
.ema-form.is-offering { transform: translateY(-46vh) scale(0.42) rotate(6deg); opacity: 0; }

/* 一覧ページへの導線 */
.board-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 8px;
  font-weight: 700; text-decoration: none;
  color: #fff; background: var(--ai-deep);
  padding: 12px 26px; border-radius: 999px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.board-link:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(22, 50, 78, 0.32); }
.board-link svg { width: 15px; height: 15px; }

/* ページ見出し帯 */
.page-band { background: linear-gradient(180deg, #fbf8ef, #eef2e6); border-bottom: 1px solid var(--line); }
.page-band .inner { padding-top: clamp(40px, 6vw, 64px); padding-bottom: clamp(34px, 5vw, 52px); }

/* ---- フッターの水面(揺れるアニメーション) ---- */
.water { width: 100%; line-height: 0; overflow: hidden; margin-top: clamp(40px, 6vw, 72px); }
.water__svg { width: 200%; height: clamp(58px, 8vw, 96px); display: block; }
.water__wave { will-change: transform; }
.water__wave--back  { animation: waterFlow 22s linear infinite; opacity: 0.85; }
.water__wave--front { animation: waterFlow 14s linear infinite reverse; }

@keyframes waterFlow {
  from { transform: translateX(0); }
  to   { transform: translateX(-1440px); } /* viewBox幅2880の半分。継ぎ目なくループ */
}

/* ---- フッター(深い森) ---- */
.site-footer { text-align: center; padding: 30px 22px 34px; color: #e5ede2; background: #223a2c; font-size: 0.85rem; }
.site-footer .mon { color: var(--kin); margin-bottom: 8px; }
.site-footer p { margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin: 4px 0 14px; }
.footer-nav a { color: #c9d8c6; text-decoration: none; font-size: 0.86rem; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }

/* ---- フォーカス可視化(キーボード操作) ---- */
a:focus-visible, button:focus-visible, .btn:focus-visible { outline: 3px solid var(--kin); outline-offset: 2px; border-radius: 6px; }

/* ---- スマホ対応 ---- */
@media (max-width: 760px) {
  /* ---- スマホ(縦長): レイアウトはすべて中央揃え ---- */
  .header-inner { justify-content: center; }
  .nav { justify-content: center; }

  .hero__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .hero__text { align-items: center; width: 100%; }
  .hero__lead { text-align: center; }
  .hero__cta { justify-content: center; }
  .hero__art { justify-self: center; order: 2; }
  .hero__text { order: 1; }
  .tachie--hero { width: clamp(190px, 56vw, 260px); }

  .section { text-align: center; }
  .sec-head--row { justify-content: center; }
  .about-grid { justify-items: center; }
  .profile-list li { justify-content: center; }
  .profile-list li span { flex: 0 0 auto; }
  .link-card { justify-content: center; text-align: center; }
  .archive-strip { justify-content: flex-start; }
  .rack__hang { justify-content: center; }
  .ema-form label { text-align: center; }
  .ema-form__counter { text-align: center; }
  /* 入力欄の中身だけは読みやすさのため左寄せのまま */
  .ema-form input, .ema-form textarea, .ema-form select,
  .form-row input, .form-row textarea, .form-row select { text-align: left; }
  .form-card { margin-left: auto; margin-right: auto; }

  /* スマホ: テレビの上に吹き出しを置き、しっぽを下向きにする */
  .hero-stream {
    --tvw: clamp(150px, 42vw, 230px);
    flex-direction: column-reverse;
    align-items: center;
    gap: 16px;
    max-width: 100%;
    width: 100%;
  }
  .tv3d { align-self: center; }
  .tv-bubble { width: 100%; text-align: center; }
  .hero-stream__label { justify-content: center; }
  .tv-bubble::before, .tv-bubble::after { top: auto; }
  .tv-bubble::before {
    bottom: -13px; left: 50%; margin-left: -8px;
    border-width: 13px 8px 0 8px;
    border-color: var(--line) transparent transparent transparent;
  }
  .tv-bubble::after {
    bottom: -11px; left: 50%; margin-left: -7px;
    border-width: 12px 7px 0 7px;
    border-color: var(--paper) transparent transparent transparent;
  }
  .hero-stream--live .tv-bubble::before { border-top-color: rgba(210, 73, 46, 0.5); border-right-color: transparent; }
  .about-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 200px; margin: 0 auto; }
  .archive-arrow { display: none; }   /* スマホはスワイプで操作 */
}

/* ---- 動きを控える設定を尊重 ---- */
@media (prefers-reduced-motion: reduce) {
  .leaf { display: none; }
  .stream-badge--live { animation: none; }
  .water__wave--back, .water__wave--front { animation: none; }
  .cloud { animation: none; }
  .star { animation: none; opacity: 0.85; }
  .hero-stream__dot, .tv3d__led { animation: none; }
  .tv3d__scan { animation: none; }
  .tv3d__body, .hero-stream:hover .tv3d__body { transition: none; }
  .archive-strip { scroll-behavior: auto; }
  .ema:hover .ema__plaque { transform: none; }
  .firefly { animation: fireflyGlow 4s ease-in-out infinite; }
  .ema--hung { animation: none; }
  .ema--new .ema__plaque { animation: none; }
  .ema-form.is-offering { transform: none; }
  * { scroll-behavior: auto; }
}
