/* =================================================================
 * GUILUDA — 現代の「ルイーダの酒場」
 * 使い込まれた木目 × 青銅の紋章 × 羊皮紙 × 松明の揺らぐ光
 * ================================================================= */

:root {
  --wood: #3e2723;
  --wood-deep: #2a1a15;
  --wood-edge: #5b3a2a;

  --parchment: #f4e7c7;
  --parchment-soft: #ede0b8;
  --parchment-edge: #c8a876;
  --parchment-line: #8f6a38;

  --ink: #32211a;
  --ink-soft: #5a3d2b;
  --muted: #8c6a4b;

  --amber: #ffab00;
  --amber-deep: #c27d00;
  --amber-light: #ffd466;
  --amber-glow: rgba(255, 171, 0, 0.45);

  --copper-lite: #d49c5e;
  --copper: #a66a32;
  --copper-deep: #6b3f1f;

  --navy: #1a237e;
  --navy-mid: #2a3db8;
  --navy-deep: #0f0f3a;

  --blood: #8b1a0e;
  --success: #3e6b3a;
  --danger: #8b1a0e;
}

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

/* ========== 酒場の床（木目＋松明の揺らぐ光） ========== */

body {
  font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
  color: var(--ink);
  min-height: 100vh;
  padding: 0 12px 60px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  background:
    /* 松明の暖光が画面上部から落ちる */
    radial-gradient(ellipse 80% 40% at 50% -5%, rgba(255,171,0,0.18) 0%, rgba(255,171,0,0.04) 35%, transparent 60%),
    /* 木目の節 */
    radial-gradient(ellipse 2% 6% at 12% 28%, rgba(0,0,0,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 2% 5% at 78% 60%, rgba(0,0,0,0.16) 0%, transparent 60%),
    radial-gradient(ellipse 1.5% 4% at 35% 82%, rgba(0,0,0,0.12) 0%, transparent 60%),
    /* 縦の板目（ハイライト） */
    repeating-linear-gradient(90deg,
      rgba(255,230,190,0.03) 0px, rgba(255,230,190,0.03) 2px,
      transparent 2px, transparent 36px,
      rgba(255,230,190,0.05) 36px, rgba(255,230,190,0.05) 38px,
      transparent 38px, transparent 84px
    ),
    /* 横方向の木目ライン */
    repeating-linear-gradient(180deg,
      rgba(0,0,0,0.08) 0px, rgba(0,0,0,0.08) 1px,
      transparent 1px, transparent 4px,
      rgba(0,0,0,0.04) 4px, rgba(0,0,0,0.04) 5px,
      transparent 5px, transparent 12px
    ),
    linear-gradient(180deg, #2d1a12 0%, #3e2723 40%, #3e2723 80%, #2a1a13 100%);
}

/* 松明の揺らぎ（body の上にオーバーレイ） */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(255,171,0,0.10) 0%, transparent 35%),
    radial-gradient(ellipse at 80% 20%, rgba(255,140,30,0.08) 0%, transparent 40%);
  animation: torchFlicker 5s ease-in-out infinite;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

@keyframes torchFlicker {
  0%, 100% { opacity: 1; }
  47% { opacity: 0.88; }
  50% { opacity: 0.78; }
  53% { opacity: 0.93; }
}

/* ========== ヒーローヘッダー（hero-bg.png を敷く） ========== */

.hero-header {
  position: relative;
  margin: 0 -12px 14px;
  min-height: 180px;
  background:
    /* 下端に暗い沈み */
    linear-gradient(180deg, transparent 55%, rgba(26,10,5,0.6) 100%),
    url("/assets/images/hero-bg.png") center center / cover no-repeat,
    var(--wood-deep);
  border-bottom: 3px solid var(--copper-deep);
  box-shadow:
    inset 0 -24px 36px rgba(0,0,0,0.45),
    0 3px 0 #120907,
    0 6px 14px rgba(0,0,0,0.6);
}
/* 下端を羊皮紙の破れ目風にフェード */
.hero-header::after {
  content: "";
  position: absolute;
  left: -1px; right: -1px; bottom: -1px;
  height: 14px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 14' preserveAspectRatio='none'><path d='M0,0 L400,0 L400,5 L395,9 L390,6 L384,10 L378,7 L371,11 L366,8 L360,12 L354,9 L348,11 L342,7 L336,10 L329,8 L323,11 L317,9 L311,12 L305,8 L299,10 L293,7 L286,11 L280,9 L274,12 L268,8 L262,10 L256,7 L250,11 L243,9 L237,12 L231,8 L225,10 L219,7 L213,11 L206,9 L200,12 L194,8 L188,10 L182,7 L176,11 L169,9 L163,12 L157,8 L151,10 L145,7 L139,11 L133,9 L127,12 L120,8 L114,10 L108,7 L102,11 L96,9 L90,12 L84,8 L78,10 L72,7 L66,11 L60,9 L54,12 L48,8 L42,10 L36,7 L30,11 L24,9 L18,12 L12,8 L6,10 L0,8 Z' fill='%233e2723'/></svg>");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  z-index: 2;
  pointer-events: none;
}

.hero-header.has-guild-context {
  min-height: 206px;
  padding: 18px;
}

/* ========== ホーム画面限定：雰囲気ヒーロー（女将を取り込む） ========== */
body[data-page="home"] .hero-header,
body[data-page="home"] .hero-header.has-guild-context {
  min-height: 480px;
  padding: 18px 16px 16px;
  overflow: hidden;
}

/* 女将（ヒーロー内、左下から立ち上がる） */
body[data-page="home"] .hero-header-matron {
  position: absolute;
  left: -3%;
  bottom: 6px;
  width: 60%;
  max-width: 340px;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  object-position: left bottom;
  filter: drop-shadow(8px 12px 24px rgba(0, 0, 0, 0.7));
  animation: matronFlicker 8s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
}

/* 看板（コミュニティ名）：デフォルトの inset:0 + flex センター配置をそのまま使い、
   padding-left だけ左の女将スペース分を確保 */
body[data-page="home"] .hero-current-guild {
  padding: 26px 18px 26px 46%;
  gap: 10px;
}

/* 右側テキスト領域の後ろに柔らかい暗いハローを敷いて視認性を上げる */
body[data-page="home"] .hero-current-guild::before {
  content: "";
  position: absolute;
  top: 8%;
  bottom: 8%;
  left: 42%;
  right: 4px;
  background: radial-gradient(ellipse 62% 58% at 52% 50%,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.35) 55%,
    transparent 90%);
  filter: blur(10px);
  z-index: -1;
  pointer-events: none;
}

body[data-page="home"] .hero-current-name {
  color: #fff4d9;
  font-size: clamp(1.3rem, 4.8vw, 1.9rem);
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-shadow:
    0 0 2px rgba(0, 0, 0, 1),
    0 0 6px rgba(0, 0, 0, 0.95),
    0 2px 4px rgba(0, 0, 0, 1),
    0 4px 14px rgba(0, 0, 0, 0.95),
    0 0 22px rgba(255, 189, 75, 0.32);
}

/* ヒーロー内グリーティング見出し：女将のセリフとして見せる */
body[data-page="home"] .hero-greeting-headline {
  margin-top: 14px;
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  font-size: clamp(0.95rem, 3.5vw, 1.2rem);
  line-height: 1.55;
  color: #ffd27a;
  letter-spacing: 0.03em;
  text-shadow:
    0 0 2px rgba(0, 0, 0, 1),
    0 0 5px rgba(0, 0, 0, 0.9),
    0 2px 4px rgba(0, 0, 0, 0.95);
}

/* greeting-hero からは見出しを非表示（ヒーローに移動した） */
body[data-page="home"] #greeting-headline { display: none; }

/* 下の greeting-hero からは女将を消して、テキスト＋ボタンだけの
   コンパクトな羊皮紙カードにする（女将はヒーローに居る） */
body[data-page="home"] .greeting-matron-big { display: none; }

body[data-page="home"] .greeting-hero {
  min-height: auto;
  padding: 16px 16px 14px;
  align-items: stretch;
  gap: 0;
}
body[data-page="home"] .greeting-hero .greeting-text {
  padding: 4px 6px;
  align-self: stretch;
  justify-content: flex-start;
}
body[data-page="home"] .greeting-hero .greeting-text::before { display: none; }

@media (max-width: 420px) {
  body[data-page="home"] .hero-header,
  body[data-page="home"] .hero-header.has-guild-context {
    min-height: 420px;
  }
  body[data-page="home"] .hero-header-matron {
    left: 0%;
    max-height: 340px;
    width: 80%;
  }
}

@media (max-width: 360px) {
  body[data-page="home"] .hero-header,
  body[data-page="home"] .hero-header.has-guild-context {
    min-height: 380px;
  }
  body[data-page="home"] .hero-header-matron {
    /* left: 0%; */
    max-height: 318px;
  }
}

.hero-current-guild {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 72px;
  text-align: center;
  pointer-events: none;
  z-index: 3;
}

body:not([data-page="home"]) .hero-current-guild {
  gap: 6px;
}

body:not([data-page="home"]) .hero-current-members {
  display: none;
}

.hero-current-name {
  color: #fff4d9;
  font-family: "Cinzel", "Noto Serif JP", serif;
  font-size: clamp(1.7rem, 6vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-shadow:
    0 0 18px rgba(255, 189, 75, 0.3),
    0 3px 10px rgba(0, 0, 0, 0.78),
    0 0 2px rgba(0, 0, 0, 0.92);
  word-break: break-word;
}

.hero-current-role {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 3px 12px;
  border: 1px solid rgba(255, 220, 150, 0.52);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(66, 35, 15, 0.72), rgba(34, 18, 9, 0.82)),
    rgba(45, 23, 10, 0.74);
  color: rgba(255, 239, 205, 0.94);
  font-family: "Noto Serif JP", serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  box-shadow:
    inset 0 1px 0 rgba(255, 242, 211, 0.14),
    0 4px 10px rgba(0, 0, 0, 0.2);
}

.hero-current-members {
  position: static;
  position: relative;
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas:
    "label label"
    "count unit";
  align-items: end;
  justify-content: center;
  column-gap: 4px;
  row-gap: 0;
  min-width: 136px;
  min-height: 26px;
  padding: 4px 12px 5px;
  border: 1px solid rgba(228, 236, 246, 0.72);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.35) 0%, transparent 26%),
    linear-gradient(135deg, rgba(58,72,88,0.18) 0%, transparent 38%),
    linear-gradient(180deg, #d7dde5 0%, #b8c0ca 16%, #8e99a6 49%, #d2d9e2 100%);
  color: #13263a;
  font-family: "Cinzel", "Noto Serif JP", serif;
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.54),
    inset 0 -3px 5px rgba(46, 58, 73, 0.28),
    0 2px 0 rgba(50, 59, 72, 0.9),
    0 6px 12px rgba(0, 0, 0, 0.2);
}

.hero-current-members::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 8px;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.7) 0%, rgba(202,210,220,0.9) 35%, rgba(77,89,104,0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.45),
    0 1px 2px rgba(0, 0, 0, 0.35);
}

.hero-current-members::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.7) 0%, rgba(202,210,220,0.9) 35%, rgba(77,89,104,0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.45),
    0 1px 2px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.hero-current-members-label {
  grid-area: label;
  display: block;
  margin-bottom: 0;
  color: rgba(24, 45, 67, 0.92);
  font-family: "Noto Serif JP", serif;
  font-size: 0.38rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255,255,255,0.28);
}

.hero-current-members-count {
  grid-area: count;
  display: block;
  color: #10273d;
  font-family: "Cinzel", "Noto Serif JP", serif;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-shadow:
    0 1px 0 rgba(247, 250, 255, 0.38),
    0 2px 3px rgba(53, 62, 76, 0.2);
}

.hero-current-members-unit {
  grid-area: unit;
  display: block;
  margin-bottom: 1px;
  color: rgba(31, 48, 69, 0.92);
  font-family: "Noto Serif JP", serif;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255,255,255,0.28);
}

/* ========== コミュニティ切替：ホームのナビカード + 羊皮紙モーダル ========== */

/* モーダル（羊皮紙パネル） */
.community-switch-modal {
  position: fixed;
  inset: 0;
  z-index: 9800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.community-switch-modal.hidden { display: none; }

.community-switch-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 5, 3, 0.72);
  backdrop-filter: blur(3px);
  cursor: pointer;
}
.community-switch-panel {
  position: relative;
  max-width: 440px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  background:
    radial-gradient(ellipse 70% 35% at 50% 0%, rgba(255, 171, 0, 0.1) 0%, transparent 60%),
    linear-gradient(180deg, var(--parchment) 0%, var(--parchment-soft) 100%);
  border: 2px solid var(--copper);
  border-radius: 10px;
  padding: 24px 22px 20px;
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25), 0 18px 44px rgba(0, 0, 0, 0.55);
}
.community-switch-panel h3 {
  margin: 0 0 6px;
  font-family: "Noto Serif JP", serif;
  color: var(--wood);
  border-bottom: 2px solid var(--copper);
  padding-bottom: 8px;
  font-size: 1.1em;
}
.community-switch-note {
  margin: 0 0 14px;
  font-size: 0.86em;
  color: var(--ink-soft);
}
.community-switch-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--wood);
  font-size: 1.3em;
  cursor: pointer;
  border-radius: 50%;
  line-height: 1;
}
.community-switch-close:hover { background: rgba(0, 0, 0, 0.08); }

.community-switch-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.community-switch-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--parchment-edge);
  border-radius: 6px;
  background: rgba(255, 250, 230, 0.6);
  color: var(--ink);
  font-family: "Noto Serif JP", serif;
  font-size: 0.98em;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.22);
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}
.community-switch-item:hover:not(:disabled),
.community-switch-item:focus-visible:not(:disabled) {
  transform: translateY(-1px);
  background: rgba(255, 242, 200, 0.9);
  border-color: var(--copper);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.22);
  outline: none;
}
.community-switch-item:disabled { opacity: 0.6; cursor: wait; }

.community-switch-item-name {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.community-switch-item-name::before {
  content: "▸";
  color: var(--amber-deep);
  font-size: 0.9em;
}
.community-switch-item-status {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(96, 38, 17, 0.14);
  color: #6e2c14;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.community-switch-empty {
  margin: 8px 0;
  color: var(--muted);
  font-size: 0.9em;
  text-align: center;
}

/* ロゴスタンプ（左上に寄せる） */
.brand-logo-stamp {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.55));
}
.brand-logo-sigil {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255,171,0,0.4));
  animation: sigilPulse 4.5s ease-in-out infinite;
}
.brand-logo-wordmark {
  height: 26px;
  width: auto;
  filter:
    brightness(0) invert(1)
    drop-shadow(0 0 8px rgba(255,171,0,0.55))
    drop-shadow(0 1px 2px rgba(0,0,0,0.7));
  opacity: 0.95;
}
@keyframes sigilPulse {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(255,171,0,0.3)); }
  50%      { filter: drop-shadow(0 0 18px rgba(255,171,0,0.6)); }
}
@media (max-width: 380px) {
  .brand-logo-sigil { width: 44px; height: 44px; }
  .brand-logo-wordmark { height: 22px; }
  .hero-header { min-height: 150px; }
  .hero-header.has-guild-context {
    min-height: 190px;
    padding: 16px 12px;
  }
  .hero-current-guild {
    padding: 18px 52px;
    gap: 6px;
  }
  .hero-current-role {
    min-height: 22px;
    padding: 2px 10px;
    font-size: 0.67rem;
  }
  .hero-current-members {
    min-width: 124px;
    min-height: 24px;
    padding: 4px 10px 5px;
  }
  .hero-current-members-label {
    font-size: 0.35rem;
  }
  .hero-current-members-count {
    font-size: 0.88rem;
  }
  .hero-current-members-unit {
    font-size: 0.46rem;
  }
}

main {
  max-width: 560px;
  margin: 0 auto;
  padding: 6px 0;
}

/* ========== ホーム：大きな女将ヒーロー ========== */

.greeting-hero {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 14px;
  padding: 14px 14px 0 12px;
  margin: 4px 0 18px;
  min-height: 300px;
  border: 1px solid var(--copper);
  border-radius: 6px;
  overflow: hidden;

  background:
    radial-gradient(circle at 8% 10%, rgba(120,60,20,0.22) 0%, transparent 18%),
    radial-gradient(circle at 92% 92%, rgba(120,60,20,0.22) 0%, transparent 18%),
    radial-gradient(ellipse 70% 50% at 30% 100%, rgba(255,130,20,0.22) 0%, transparent 70%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.54  0 0 0 0 0.41  0 0 0 0 0.22  0 0 0 0.22 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>"),
    linear-gradient(145deg, #ecd7a2 0%, #d8bc79 100%);

  box-shadow:
    inset 0 0 0 2px rgba(255,212,102,0.3),
    inset 0 0 0 4px rgba(166,106,50,0.4),
    inset 0 0 30px rgba(139,105,56,0.25),
    0 3px 0 rgba(0,0,0,0.2),
    0 8px 18px rgba(0,0,0,0.45);
}

.greeting-matron-big {
  flex: 0 0 52%;
  align-self: stretch;
  position: relative;
  margin: -8px -14px -10px -12px;
  z-index: 1;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  min-height: 0;
}
.greeting-matron-big .greeting-matron-img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: contain;
  object-position: left bottom;
  position: relative;
  z-index: 1;
  filter: drop-shadow(-4px 8px 14px rgba(0,0,0,0.5));
  animation: matronFlicker 8s ease-in-out infinite;
}
.greeting-hero .greeting-text {
  flex: 1 1 auto;
  min-width: 0;
  padding: 14px 6px 14px 6px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* 背景を薄いスモークで読みやすく */
  background: radial-gradient(ellipse 110% 90% at 30% 50%,
    rgba(253,243,220,0.85) 0%, rgba(253,243,220,0.65) 55%, rgba(253,243,220,0) 100%);
  border-radius: 8px;
  align-self: stretch;
}

/* 上部の空きを炎で埋める（女将の頭上に松明のような琥珀光） */
.greeting-hero .greeting-text::before {
  content: "";
  position: absolute;
  top: -2px;
  right: -4px;
  width: 70px;
  height: 90px;
  background: radial-gradient(ellipse 60% 55% at 50% 30%,
    rgba(255,196,80,0.35) 0%,
    rgba(255,140,30,0.2) 40%,
    transparent 70%);
  filter: blur(6px);
  pointer-events: none;
  z-index: -1;
  animation: flameBreathe 5s ease-in-out infinite;
}
/* 女将の周囲に炎の揺らぎ */
.flame-aura {
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at 50% 100%,
    rgba(255,140,30,0.35) 0%, rgba(255,171,0,0.15) 30%, transparent 60%);
  pointer-events: none;
  animation: flameBreathe 7s ease-in-out infinite;
  z-index: 0;
}
@keyframes flameBreathe {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  30%      { opacity: 1; transform: scale(1.06); }
  50%      { opacity: 0.75; transform: scale(0.98); }
  70%      { opacity: 0.95; transform: scale(1.04); }
}
@keyframes matronFlicker {
  0%, 100% { filter: drop-shadow(-4px 8px 12px rgba(0,0,0,0.45)) drop-shadow(0 0 14px rgba(255,160,30,0.15)); }
  50%      { filter: drop-shadow(-4px 8px 12px rgba(0,0,0,0.45)) drop-shadow(0 0 22px rgba(255,171,0,0.3)); }
}

/* 古い greeting-card（subpage用にサブ名で残す） */
.greeting-card {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 14px 14px 0;
  margin: 4px 0 14px;
  border: 1px solid var(--copper);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  min-height: 210px;

  background:
    radial-gradient(circle at 8% 10%, rgba(120,60,20,0.22) 0%, transparent 16%),
    radial-gradient(circle at 92% 92%, rgba(120,60,20,0.22) 0%, transparent 16%),
    radial-gradient(ellipse at 25% 100%, rgba(255,171,0,0.14) 0%, transparent 60%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.54  0 0 0 0 0.41  0 0 0 0 0.22  0 0 0 0.22 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>"),
    repeating-linear-gradient(112deg,
      transparent 0px, transparent 4px,
      rgba(139,105,56,0.05) 4px, rgba(139,105,56,0.05) 5px
    ),
    linear-gradient(145deg, #ecd7a2 0%, #d8bc79 100%);

  box-shadow:
    inset 0 0 0 2px rgba(255,212,102,0.3),
    inset 0 0 0 4px rgba(166,106,50,0.4),
    inset 0 0 30px rgba(139,105,56,0.25),
    0 3px 0 rgba(0,0,0,0.2),
    0 6px 14px rgba(0,0,0,0.4);
}

/* サブページ用：大きめの女将＋吹き出し */
.page-matron {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  padding: 16px 18px 18px 12px;
  margin: 4px 0 14px;
  border: 1px solid var(--copper);
  border-radius: 5px;
  position: relative;
  overflow: hidden;

  background:
    radial-gradient(circle at 8% 10%, rgba(120,60,20,0.22) 0%, transparent 18%),
    radial-gradient(circle at 92% 92%, rgba(120,60,20,0.22) 0%, transparent 18%),
    radial-gradient(ellipse 70% 40% at 25% 100%, rgba(255,140,30,0.2) 0%, transparent 70%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.54  0 0 0 0 0.41  0 0 0 0 0.22  0 0 0 0.22 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>"),
    linear-gradient(145deg, #ecd7a2 0%, #d8bc79 100%);
  box-shadow:
    inset 0 0 0 2px rgba(255,212,102,0.3),
    inset 0 0 0 4px rgba(166,106,50,0.4),
    0 3px 0 rgba(0,0,0,0.18),
    0 6px 14px rgba(0,0,0,0.4);
}
.page-matron-img {
  flex: 0 0 38%;
  max-width: 200px;
  height: auto;
  align-self: flex-end;
  margin: 0 -4px -8px -6px;
  filter: drop-shadow(-2px 4px 8px rgba(0,0,0,0.4))
          drop-shadow(0 0 12px rgba(255,171,0,0.12));
  animation: matronFlicker 8s ease-in-out infinite;
}
.page-matron-bubble {
  flex: 1 1 auto;
  padding: 14px 14px 14px 14px;
  min-width: 0;
  align-self: flex-end;
  margin-bottom: 4px;
  background: radial-gradient(ellipse 110% 90% at 30% 50%,
    rgba(253,243,220,0.9) 0%, rgba(253,243,220,0.65) 55%, rgba(253,243,220,0.2) 100%);
  border-radius: 8px;
}
.page-matron-title {
  margin: 0 0 6px;
  font-family: "Noto Serif JP", serif;
  font-size: 1.1em;
  font-weight: 700;
  color: var(--copper-deep);
  letter-spacing: 0.04em;
}
.page-matron-voice {
  margin: 0;
  font-family: "Noto Serif JP", serif;
  font-size: 0.92em;
  line-height: 1.7;
  color: var(--ink);
  letter-spacing: 0.02em;
}

/* ========== 炎オーバーレイ（ヘッダー左右） ========== */
.flame-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.flame {
  position: absolute;
  width: 70px;
  height: 110px;
  bottom: -14px;
  background: radial-gradient(ellipse at 50% 100%,
    rgba(255,230,130,0.95) 0%,
    rgba(255,170,40,0.8) 28%,
    rgba(255,110,20,0.55) 52%,
    rgba(180,40,10,0.25) 78%,
    transparent 95%);
  border-radius: 50% 50% 42% 42%;
  filter: blur(7px);
  animation: flameDance 2.6s ease-in-out infinite;
  mix-blend-mode: screen;
}
.flame::after {
  content: "";
  position: absolute;
  inset: 20% 20% 0 20%;
  background: radial-gradient(ellipse at 50% 100%,
    rgba(255,255,200,0.95) 0%, rgba(255,200,80,0.75) 40%, transparent 70%);
  filter: blur(3px);
  animation: flameDance 1.6s ease-in-out infinite reverse;
}
.flame-left  { left: 16px; animation-delay: 0s; }
.flame-right { right: 16px; animation-delay: 0.7s; }
@keyframes flameDance {
  0%, 100% { transform: translateY(0) scale(1, 1) skewX(0deg); opacity: 0.88; }
  25%      { transform: translateY(-10px) scale(1.09, 0.93) skewX(-4deg); opacity: 1; }
  50%      { transform: translateY(-4px) scale(0.95, 1.06) skewX(3deg); opacity: 0.82; }
  75%      { transform: translateY(-12px) scale(1.11, 0.9) skewX(-2deg); opacity: 1; }
}

/* カードに置く小さな炎（任意要素で発動） */
.card-flame, .mini-flame {
  position: absolute;
  width: 36px;
  height: 56px;
  background: radial-gradient(ellipse at 50% 100%,
    rgba(255,230,130,0.9) 0%,
    rgba(255,160,30,0.7) 35%,
    rgba(255,90,10,0.4) 65%,
    transparent 90%);
  border-radius: 50% 50% 42% 42%;
  filter: blur(4px);
  animation: flameDance 3s ease-in-out infinite;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 2;
}

/* ホームヒーロー内の炎（カードの両下角に） */
.greeting-hero::before,
.greeting-hero::after {
  content: "";
  position: absolute;
  width: 44px;
  height: 70px;
  bottom: -8px;
  background: radial-gradient(ellipse at 50% 100%,
    rgba(255,220,120,0.85) 0%,
    rgba(255,160,30,0.7) 32%,
    rgba(255,100,20,0.45) 58%,
    transparent 88%);
  border-radius: 50% 50% 42% 42%;
  filter: blur(5px);
  mix-blend-mode: screen;
  animation: flameDance 3s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
.greeting-hero::before { left: 20px; animation-delay: 0s; }
.greeting-hero::after  { right: 20px; animation-delay: 1s; }

/* page-matron にも小さな炎 */
.page-matron::before,
.page-matron::after {
  content: "";
  position: absolute;
  width: 32px;
  height: 52px;
  bottom: -6px;
  background: radial-gradient(ellipse at 50% 100%,
    rgba(255,220,120,0.8) 0%,
    rgba(255,160,30,0.6) 32%,
    rgba(255,100,20,0.35) 58%,
    transparent 88%);
  border-radius: 50% 50% 42% 42%;
  filter: blur(4px);
  mix-blend-mode: screen;
  animation: flameDance 3.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
.page-matron::before { left: 24px; animation-delay: 0s; }
.page-matron::after  { right: 24px; animation-delay: 1.2s; }

/* ステータスカード上辺の光の揺らぎ */
.status-card::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 30%;
  right: 30%;
  height: 10px;
  background: radial-gradient(ellipse at 50% 100%,
    rgba(255,171,0,0.6), transparent 75%);
  filter: blur(4px);
  animation: flameBreathe 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

/* ホームナビカードの左端に光の帯 */
.home-nav-card {
  position: relative;
  overflow: hidden;
}
.home-nav-card::before {
  content: "";
  position: absolute;
  left: 50px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 70%;
  background: linear-gradient(180deg,
    transparent 0%, rgba(255,230,120,0.85) 30%, rgba(255,160,30,0.6) 70%, transparent 100%);
  filter: blur(2px);
  animation: flameBreathe 3.5s ease-in-out infinite;
}

/* 画面下からゆらぐ環境光 */
body::after {
  content: "";
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  height: 180px;
  background: radial-gradient(ellipse 60% 100% at 15% 100%, rgba(255,110,20,0.14), transparent 60%),
              radial-gradient(ellipse 60% 100% at 85% 100%, rgba(255,140,30,0.12), transparent 60%);
  pointer-events: none;
  animation: flameBreathe 5.5s ease-in-out infinite;
  z-index: 0;
}

/* ========== ホーム専用：3つの大きなナビカード ========== */
.home-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0;
}
.home-nav-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  grid-template-rows: auto auto;
  gap: 2px 14px;
  padding: 16px 18px;
  background:
    linear-gradient(180deg, #eac394 0%, #d29a5c 22%, #b4783a 55%, #8a5520 80%, #b4783a 100%);
  border: 1px solid #5a3317;
  border-radius: 5px;
  text-decoration: none;
  color: #2a1607;
  font-family: "Noto Serif JP", serif;
  box-shadow:
    inset 0 1px 0 rgba(255,240,200,0.5),
    inset 0 -2px 3px rgba(0,0,0,0.25),
    0 2px 0 #3a1f0e,
    0 4px 10px rgba(0,0,0,0.35);
  transition: filter 0.15s, transform 0.05s;
}
.home-nav-card:hover { filter: brightness(1.08); }
.home-nav-card:active { transform: translateY(1px); }
.home-nav-icon {
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: center;
  font-family: "Cinzel", serif;
  font-size: 2em;
  color: #fdf0d0;
  text-shadow: 0 2px 0 rgba(0,0,0,0.4), 0 0 10px rgba(255,200,100,0.6);
}
.home-nav-title {
  font-size: 1.05em;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 0 rgba(255,240,200,0.45);
}
.home-nav-sub {
  font-size: 0.85em;
  color: #3a1f0e;
  opacity: 0.82;
  letter-spacing: 0.02em;
}

/* ========== サブページ用フッターナビ ========== */
.page-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 14px;
  border-top: 1px dashed rgba(255,171,0,0.25);
}
.footer-link {
  flex: 1 1 40%;
  padding: 10px 12px;
  background: rgba(255,171,0,0.08);
  border: 1px solid rgba(255,171,0,0.35);
  border-radius: 4px;
  color: var(--amber-light);
  text-decoration: none;
  font-family: "Noto Serif JP", serif;
  font-size: 0.88em;
  letter-spacing: 0.05em;
  text-align: center;
  transition: background 0.15s;
}
.footer-link:hover { background: rgba(255,171,0,0.18); }
.greeting-matron {
  flex: 0 0 40%;
  align-self: flex-end;
  margin-bottom: -14px;
  pointer-events: none;
}
.greeting-matron-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
  object-position: left bottom;
  filter: drop-shadow(4px 6px 8px rgba(0,0,0,0.35));
}
.greeting-text {
  flex: 1 1 auto;
  padding: 6px 4px 16px 0;
  min-width: 0;
}
.greeting-headline {
  margin: 0 0 10px;
  padding: 2px 8px;
  font-family: "Noto Serif JP", serif;
  font-size: 1.2em;
  font-weight: 700;
  color: var(--copper-deep);
  line-height: 1.3;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 0 rgba(255,240,200,0.55);
}
.greeting-voice {
  margin: 0;
  padding: 2px 8px 4px;
  font-family: "Noto Serif JP", serif;
  font-size: 0.88em;
  line-height: 1.75;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.greeting-voice span {
  color: var(--copper-deep);
  font-weight: 700;
}
.greeting-subtitle {
  margin: 10px 0 0;
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  font-style: italic;
  font-size: 0.82em;
  color: var(--muted);
}

/* 女将の挨拶内の行動ボタン（小さな鋳金プレート） */
.voice-ctas {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}
.voice-cta {
  display: inline-block;
  padding: 12px 16px;
  font-family: "Noto Serif JP", serif;
  font-size: 0.96em;
  font-weight: 700;
  color: #fff8e4;
  background: linear-gradient(180deg, #c27d00 0%, #8a5520 100%);
  border: 1px solid #3e2215;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.04em;
  text-align: left;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 200, 0.35),
    0 3px 0 #3e2215,
    0 5px 10px rgba(0, 0, 0, 0.38);
  margin-top: 0;
  transition: filter 0.15s, transform 0.05s, box-shadow 0.15s;
}
.voice-cta:hover { filter: brightness(1.12); }
.voice-cta:active {
  transform: translateY(2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 200, 0.25),
    0 1px 0 #3e2215,
    0 2px 4px rgba(0, 0, 0, 0.35);
}

/* アクション別に色を振り分けて識別しやすく */
.voice-cta[data-voice-action="edit"] {
  color: #fff8e4;
  background: linear-gradient(180deg, #c27d00 0%, #8a5520 100%);
  border-color: #3e2215;
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 200, 0.35),
    0 3px 0 #3e2215,
    0 5px 10px rgba(0, 0, 0, 0.38);
}
.voice-cta[data-voice-action="search"] {
  color: #fff;
  background: linear-gradient(180deg, #2a3db8 0%, #1a237e 100%);
  border-color: #0a0f3a;
  box-shadow:
    inset 0 1px 0 rgba(200, 215, 255, 0.35),
    0 3px 0 #0a0f3a,
    0 5px 10px rgba(0, 0, 0, 0.42);
}
.voice-cta[data-voice-action="search"]:active {
  box-shadow:
    inset 0 1px 0 rgba(200, 215, 255, 0.25),
    0 1px 0 #0a0f3a,
    0 2px 4px rgba(0, 0, 0, 0.38);
}
.voice-cta[data-voice-action="invite"] {
  color: #fff5e0;
  background: linear-gradient(180deg, #4f7a3a 0%, #2e5021 100%);
  border-color: #1f3517;
  box-shadow:
    inset 0 1px 0 rgba(220, 240, 200, 0.35),
    0 3px 0 #1f3517,
    0 5px 10px rgba(0, 0, 0, 0.4);
}
.voice-cta[data-voice-action="invite"]:active {
  box-shadow:
    inset 0 1px 0 rgba(220, 240, 200, 0.25),
    0 1px 0 #1f3517,
    0 2px 4px rgba(0, 0, 0, 0.36);
}

/* スマホ向け：女将と吹き出しの比率を調整 */
@media (max-width: 480px) {
  .greeting-hero {
    gap: 8px;
    padding: 10px 10px 0 8px;
    min-height: 260px;
  }
  .greeting-matron-big {
    flex: 0 0 48%;
    margin: -6px -10px -8px -8px;
  }
  .greeting-matron-big .greeting-matron-img { max-height: 300px; }
  .greeting-headline { font-size: 1.18em; }
  .greeting-voice { font-size: 0.86em; }

  .page-matron {
    gap: 10px;
    padding: 12px 12px 14px 10px;
  }
  .page-matron-img {
    flex: 0 0 32%;
    max-width: 140px;
    margin: 0 -2px -6px -4px;
  }
  .page-matron-bubble {
    padding: 10px 12px;
  }
  .page-matron-title { font-size: 1.02em; }
  .page-matron-voice { font-size: 0.86em; line-height: 1.6; }
}

@media (max-width: 360px) {
  .greeting-hero { min-height: 230px; }
  .greeting-matron-big { flex: 0 0 46%; }
  .greeting-matron-big .greeting-matron-img { max-height: 270px; }
  .page-matron-img { flex: 0 0 30%; max-width: 120px; }
  .page-matron-bubble { padding: 8px 10px; }
  .page-matron-voice { font-size: 0.82em; }
}

.welcome-meta { margin-top: 0; }

/* ========== 独立：招待セクション（仲間拡大） ========== */

.invite-section {
  position: relative;
}
.invite-section::before {
  content: "";
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 36px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  opacity: 0.7;
}
.invite-header {
  text-align: center;
  margin: 4px 0 14px;
}
.invite-header h3 {
  margin: 0;
  font-family: "Noto Serif JP", serif;
  font-size: 1.14em;
  font-weight: 700;
  color: var(--copper-deep);
  letter-spacing: 0.1em;
}
.invite-header p {
  margin: 5px 0 0;
  font-size: 0.88em;
  color: var(--ink-soft);
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  font-style: italic;
  letter-spacing: 0.02em;
}
.invite-big-btn {
  width: 100%;
  padding: 16px 18px;
  font-size: 1.08em;
  font-family: "Noto Serif JP", serif;
  letter-spacing: 0.16em;
  font-weight: 700;
}
.invite-big-btn::before {
  content: "📜 ";
  margin-right: 2px;
}
.invite-panel {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed rgba(139,105,56,0.4);
}
.invite-panel-caption {
  margin: 0 0 10px;
  font-size: 0.9em;
  color: var(--ink);
  text-align: center;
  font-family: "Noto Serif JP", serif;
  letter-spacing: 0.02em;
}
.invite-qr-wrap {
  display: flex;
  justify-content: center;
  padding: 18px;
  margin: 8px 0 14px;
  background: #f6ecd6;
  border: 2px solid var(--copper);
  border-radius: 6px;
  box-shadow:
    inset 0 0 0 1px rgba(255,212,102,0.45),
    inset 0 0 18px rgba(139,105,56,0.12),
    0 2px 6px rgba(0,0,0,0.3);
}
#invite-qr { display: block; }
#invite-qr img, #invite-qr canvas {
  display: block;
  margin: 0 auto;
  image-rendering: pixelated;
}
.invite-hint-label {
  margin: 10px 0 4px;
  font-size: 0.84em;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.04em;
}
.invite-url-row {
  display: flex;
  gap: 6px;
  align-items: stretch;
}
.invite-url-row input {
  flex: 1 1 auto;
  margin-top: 0;
  font-size: 0.82em;
}
.invite-url-row button {
  flex: 0 0 auto;
  margin-top: 0;
  padding: 10px 14px;
  font-size: 0.85em;
  white-space: nowrap;
}
.invite-hint {
  margin: 12px 0 0;
  font-size: 0.78em;
  color: var(--muted);
  font-style: italic;
  text-align: center;
}

/* ========== モダンなプロフィールステータスカード ========== */

.status-card {
  position: relative;
  margin: 0 0 16px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(255,171,0,0.3);
  border-radius: 10px;
  color: var(--parchment);
  font-family: "Noto Sans JP", sans-serif;

  background:
    radial-gradient(ellipse 120% 70% at 50% -10%, rgba(255,171,0,0.1) 0%, transparent 60%),
    radial-gradient(ellipse at 100% 100%, rgba(191,54,12,0.08) 0%, transparent 50%),
    linear-gradient(180deg, #2a1a13 0%, #1a0e08 100%);

  box-shadow:
    inset 0 1px 0 rgba(255,171,0,0.18),
    inset 0 0 0 1px rgba(255,171,0,0.08),
    0 4px 14px rgba(0,0,0,0.55),
    0 0 0 1px rgba(0,0,0,0.35);
}

/* 細い光のハイライトライン（上辺） */
.status-card::before {
  content: "";
  position: absolute;
  top: -1px; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  opacity: 0.6;
  pointer-events: none;
}

.status-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255,171,0,0.22);
}

.status-avatar {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255,171,0,0.1);
  border: 2px solid var(--copper);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.4),
    0 0 0 3px var(--copper-deep),
    0 0 12px rgba(255,171,0,0.35);
  /* 古写真のような温かみを付ける */
  filter:
    sepia(0.22) saturate(0.95) contrast(1.03)
    drop-shadow(0 2px 3px rgba(0,0,0,0.5));
}

.status-identity {
  flex: 1 1 auto;
  min-width: 0;
}
.status-name {
  font-family: "Noto Serif JP", serif;
  font-size: 1.15em;
  font-weight: 700;
  color: var(--amber-light);
  letter-spacing: 0.03em;
  line-height: 1.3;
  text-shadow: 0 0 10px rgba(255,171,0,0.2), 0 1px 2px rgba(0,0,0,0.6);
  word-break: break-all;
}
.status-company {
  margin-top: 3px;
  font-size: 0.82em;
  color: rgba(244,231,199,0.72);
  letter-spacing: 0.02em;
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  font-style: italic;
  word-break: break-all;
}

.status-level {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 30%, #ffd466 0%, #ffab00 50%, #c27d00 100%);
  color: #2a1607;
  font-family: "Cinzel", serif;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.5),
    inset 0 -2px 4px rgba(139,69,19,0.4),
    0 0 0 2px rgba(166,106,50,0.5),
    0 2px 6px rgba(0,0,0,0.45),
    0 0 14px rgba(255,171,0,0.4);
}
.status-level-num {
  font-size: 1.55em;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255,240,200,0.4);
}
.status-level-label {
  font-size: 0.52em;
  letter-spacing: 0.2em;
  margin-top: 2px;
  font-weight: 700;
  opacity: 0.85;
}

.status-list {
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  grid-template-columns: 5.5em 1fr;
  gap: 10px 14px;
  align-items: start;
}
.status-list dt {
  font-family: "Cinzel", "Noto Sans JP", serif;
  font-size: 0.7em;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-light);
  opacity: 0.85;
  padding-top: 4px;
  font-weight: 600;
  white-space: nowrap;
}
.status-list dd {
  margin: 0;
  color: #fff;
  font-family: "Noto Serif JP", "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: 0.96em;
  line-height: 1.65;
  letter-spacing: 0.03em;
  word-break: break-word;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}

/* 経験値バー */
.status-exp {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,171,0,0.22);
}
.status-exp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85em;
  margin-bottom: 7px;
}
.status-exp-label {
  font-family: "Cinzel", serif;
  letter-spacing: 0.16em;
  font-size: 0.78em;
  color: var(--amber-light);
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.9;
}
.status-exp-value {
  color: #fff;
  font-weight: 600;
  font-family: "Cinzel", "Noto Sans JP", serif;
  letter-spacing: 0.05em;
}
.status-exp-bar {
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,171,0,0.25);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
  box-shadow:
    inset 0 1px 2px rgba(0,0,0,0.6),
    0 0 0 1px rgba(0,0,0,0.3);
}
.status-exp-fill {
  height: 100%;
  width: 0%;
  background:
    linear-gradient(90deg, var(--amber-deep) 0%, var(--amber) 50%, var(--amber-light) 100%);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    0 0 8px rgba(255,171,0,0.45);
  transition: width 0.9s cubic-bezier(.22,.9,.3,1);
}
.status-exp-hint {
  margin-top: 7px;
  font-size: 0.78em;
  color: rgba(244,231,199,0.7);
  letter-spacing: 0.04em;
  text-align: right;
}

.invite-tree-focus {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.invite-tree-column {
  display: grid;
  gap: 8px;
}

.invite-tree-arrow {
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
}

.invite-tree-person {
  padding: 12px 14px;
  border: 1px solid rgba(111, 71, 27, 0.16);
  border-radius: 10px;
  background: rgba(255, 250, 239, 0.62);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.24);
}

.invite-tree-person-current {
  border-color: rgba(166, 106, 50, 0.4);
  background:
    linear-gradient(180deg, rgba(255, 245, 213, 0.96), rgba(245, 227, 184, 0.88)),
    rgba(255, 250, 239, 0.72);
}

.invite-tree-name {
  color: var(--ink);
  font-weight: 700;
}

.invite-tree-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8em;
}

.invite-tree-descendants {
  min-width: 0;
}

.invite-tree-descendants-title {
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-family: "Noto Serif JP", serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.invite-tree-branch {
  list-style: none;
  margin: 10px 0 0;
  padding: 0 0 0 18px;
  border-left: 2px solid rgba(166, 106, 50, 0.24);
}

.invite-tree-node {
  position: relative;
  margin-top: 10px;
}

.invite-tree-node::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 18px;
  width: 14px;
  border-top: 2px solid rgba(166, 106, 50, 0.24);
}

/* ========== 羊皮紙カード ========== */

.card {
  position: relative;
  border-radius: 4px;
  padding: 24px 22px 22px;
  margin-bottom: 16px;
  color: var(--ink);
  border: 1px solid #8f6a38;

  background:
    /* 使い込まれた染み（四隅・端） */
    radial-gradient(circle at 5% 8%, rgba(120,60,20,0.22) 0%, transparent 16%),
    radial-gradient(circle at 93% 7%, rgba(120,60,20,0.18) 0%, transparent 14%),
    radial-gradient(circle at 8% 92%, rgba(120,60,20,0.22) 0%, transparent 16%),
    radial-gradient(circle at 90% 93%, rgba(120,60,20,0.22) 0%, transparent 16%),
    radial-gradient(circle at 50% 20%, rgba(100,45,15,0.08) 0%, transparent 35%),
    radial-gradient(circle at 30% 70%, rgba(100,45,15,0.07) 0%, transparent 30%),
    /* 中央のくすみ */
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(145,105,55,0.14) 0%, transparent 70%),
    /* 紙繊維ノイズ（SVG noise texture） */
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.54  0 0 0 0 0.41  0 0 0 0 0.22  0 0 0 0.22 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/></svg>"),
    /* 繊維ライン */
    repeating-linear-gradient(110deg,
      transparent 0px, transparent 3px,
      rgba(139,105,56,0.05) 3px, rgba(139,105,56,0.05) 4px
    ),
    linear-gradient(140deg, #e8d4a0 0%, #d6ba78 100%);

  box-shadow:
    0 3px 0 rgba(0,0,0,0.28),
    0 10px 24px rgba(0,0,0,0.5),
    inset 0 0 0 2px rgba(180,140,80,0.45),
    inset 0 0 26px rgba(139,105,56,0.22);
}
/* 羊皮紙の焦げた角 */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 4px;
  pointer-events: none;
  background:
    radial-gradient(circle at 0% 0%,   rgba(80,40,15,0.18) 0%, transparent 4%),
    radial-gradient(circle at 100% 0%, rgba(80,40,15,0.16) 0%, transparent 4%),
    radial-gradient(circle at 0% 100%, rgba(80,40,15,0.17) 0%, transparent 4%),
    radial-gradient(circle at 100% 100%, rgba(80,40,15,0.19) 0%, transparent 4%);
}
.card h2 {
  margin: 0 0 10px;
  font-family: "Noto Serif JP", serif;
  font-size: 1.15em;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.hidden { display: none !important; }
.muted { color: var(--muted); font-size: 0.92em; }

.notice {
  margin: 12px 0;
  padding: 11px 14px;
  background: rgba(255,171,0,0.12);
  border-left: 3px solid var(--amber);
  border-radius: 3px;
  font-size: 0.9em;
  color: var(--ink-soft);
  font-family: "Noto Serif JP", serif;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.actions button { margin-top: 0; flex: 1 1 auto; }

/* ========== 金属ボタン（青銅・カッパー・ネイビー） ========== */

button {
  cursor: pointer;
  font-family: "Noto Serif JP", "Noto Sans JP", serif;
  padding: 11px 18px;
  border-radius: 3px;
  border: 1px solid transparent;
  font-size: 0.96em;
  font-weight: 700;
  margin-top: 10px;
  letter-spacing: 0.05em;
  transition: transform 0.05s, filter 0.15s;
}
button:disabled { opacity: 0.5; cursor: not-allowed; }
button:active:not(:disabled) { transform: translateY(1px); }

/* カッパー（プライマリ） */
button.primary {
  color: #2a1607;
  background:
    linear-gradient(180deg,
      #e9c08d 0%, #d29a5c 20%,
      #b4783a 50%, #8a5520 75%, #b4783a 100%);
  border-color: #5a3317;
  text-shadow: 0 1px 0 rgba(255,240,200,0.4);
  box-shadow:
    inset 0 1px 0 rgba(255,240,200,0.55),
    inset 0 -2px 3px rgba(0,0,0,0.3),
    0 2px 0 #3a1f0e,
    0 3px 6px rgba(0,0,0,0.3);
}
button.primary:hover:not(:disabled) {
  filter: brightness(1.08);
}

/* ブロンズ・ネイビー（セカンダリ） */
button.secondary {
  color: #d8dbff;
  background:
    linear-gradient(180deg,
      #3a4ac9 0%, #2a3db8 30%,
      #1a237e 65%, #12174e 100%);
  border-color: #0a0c2e;
  text-shadow: 0 1px 0 rgba(0,0,0,0.4);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.2),
    inset 0 -2px 3px rgba(0,0,0,0.4),
    0 2px 0 #070820,
    0 3px 6px rgba(0,0,0,0.3);
}
button.secondary:hover:not(:disabled) {
  filter: brightness(1.12);
}

/* ゴースト（刻まれた木片風） */
button.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(139,105,56,0.4);
  font-size: 0.85em;
  font-weight: 500;
  padding: 6px 12px;
  box-shadow: none;
  letter-spacing: 0.02em;
}
button.ghost:hover:not(:disabled) {
  background: rgba(139,105,56,0.08);
  color: var(--ink-soft);
}

/* ========== 入力フィールド（羊皮紙に書き込む） ========== */

input[type=text], input[type=url], textarea, select {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255, 253, 240, 0.75);
  color: var(--ink);
  border: 1px solid rgba(139,105,56,0.35);
  border-radius: 3px;
  font-family: "Noto Serif JP", "Noto Sans JP", sans-serif;
  font-size: 0.96em;
  margin-top: 8px;
  transition: all 0.15s;
  box-shadow: inset 0 1px 2px rgba(139,105,56,0.12);
}
input[type=text]:focus, input[type=url]:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--amber);
  background: #fffdf4;
  box-shadow:
    inset 0 1px 2px rgba(139,105,56,0.1),
    0 0 0 3px rgba(255,171,0,0.2),
    0 0 14px rgba(255,171,0,0.18);
}
select {
  padding-right: 38px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(90, 61, 43, 0.88) 50%),
    linear-gradient(135deg, rgba(90, 61, 43, 0.88) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 1px),
    calc(100% - 12px) calc(50% - 1px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
textarea { resize: vertical; min-height: 84px; line-height: 1.7; }

/* ========== Welcome：プロフィール ========== */

.profile {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 0;
}
.profile img {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 3px solid var(--copper);
  background: var(--parchment-soft);
  object-fit: cover;
  box-shadow:
    0 0 0 1px var(--parchment),
    0 0 0 4px var(--copper-deep),
    0 0 14px var(--amber-glow);
}
.field {
  display: flex;
  gap: 8px;
  font-size: 0.9em;
  margin: 3px 0;
}
.field .label {
  color: var(--muted);
  min-width: 8em;
  font-size: 0.86em;
  letter-spacing: 0.05em;
}

pre {
  background: var(--wood-deep);
  color: var(--parchment);
  padding: 12px;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 0.8em;
}
code {
  color: var(--copper);
  background: rgba(166,106,50,0.12);
  padding: 1px 5px;
  border-radius: 2px;
  font-size: 0.9em;
}

/* ========== タロット風プロフィールカード ========== */

.profile-card {
  position: relative;
  margin: 14px 0;
  padding: 20px 20px 20px;
  border-radius: 3px;
  background:
    radial-gradient(ellipse 60% 45% at 50% 0%, rgba(255,171,0,0.12) 0%, transparent 60%),
    radial-gradient(circle at 10% 10%, rgba(120,60,20,0.12) 0%, transparent 18%),
    radial-gradient(circle at 90% 90%, rgba(120,60,20,0.12) 0%, transparent 18%),
    linear-gradient(135deg, #fbefc8 0%, #f0dda4 100%);
  border: 1px solid var(--copper);
  box-shadow:
    inset 0 0 0 2px rgba(255,212,102,0.35),
    inset 0 0 0 4px rgba(166,106,50,0.5),
    inset 0 0 0 6px rgba(255,212,102,0.25),
    0 2px 0 rgba(0,0,0,0.15),
    0 6px 16px rgba(0,0,0,0.4);
}
/* 四隅の装飾（菱型の打ち鋲） */
.profile-card::before,
.profile-card::after {
  content: "✦";
  position: absolute;
  color: var(--copper);
  font-size: 0.9em;
  pointer-events: none;
  text-shadow: 0 0 4px var(--amber-glow);
}
.profile-card::before { top: 8px; left: 10px; }
.profile-card::after { bottom: 8px; right: 10px; }

.profile-card-label {
  font-family: "Cinzel", serif;
  font-size: 0.72em;
  color: var(--copper-deep);
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: uppercase;
  position: relative;
  padding: 0 30px;
}
.profile-card-label::before,
.profile-card-label::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--copper));
}
.profile-card-label::before { left: 0; }
.profile-card-label::after { right: 0; transform: scaleX(-1); }

.profile-card-text {
  font-family: "Cormorant Garamond", "Noto Serif JP", "Hiragino Mincho ProN", serif;
  font-size: 1.02em;
  line-height: 1.95;
  white-space: pre-wrap;
  color: var(--ink);
  letter-spacing: 0.02em;
}

/* ========== 区切り：✦（刻印） ========== */

.divider {
  border: none;
  border-top: 1px solid rgba(139,105,56,0.3);
  margin: 28px 0 20px;
  position: relative;
}
.divider::before {
  content: "❖";
  position: absolute;
  left: 50%;
  top: -12px;
  transform: translateX(-50%);
  color: var(--amber);
  background: var(--parchment);
  padding: 0 12px;
  font-size: 1em;
  text-shadow: 0 0 8px var(--amber-glow);
}

/* ========== 「賢者の導き」—— 魔法陣風 ========== */

#match-section {
  position: relative;
  padding: 22px 4px 4px;
  margin: 8px -4px 0;
  border-radius: 4px;
}
#match-section::before {
  /* 四隅の魔法陣ルーン */
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(26,35,126,0.25);
  border-radius: 2px;
  pointer-events: none;
}

.match-title {
  margin: 0 0 4px;
  font-family: "Cinzel", "Noto Serif JP", serif;
  font-size: 1.1em;
  font-weight: 700;
  color: var(--copper-deep);
  letter-spacing: 0.1em;
  text-align: center;
  position: relative;
}
.match-title::before,
.match-title::after {
  content: "✦";
  color: var(--amber);
  margin: 0 10px;
  font-size: 0.7em;
  vertical-align: middle;
  text-shadow: 0 0 6px var(--amber-glow);
}

#match-section .muted {
  text-align: center;
  font-style: italic;
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
}

/* 賢者のテキスト：夜空の水晶盤 + 魔法陣 */
#match-section {
  position: relative;
}
/* 魔法陣（回転する円環ルーン）を textarea の背面に重ねる */
#match-section::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 110px;           /* textarea の中央付近 */
  transform: translate(-50%, -50%);
  width: 240px;
  height: 240px;
  pointer-events: none;
  opacity: 0.22;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><g fill='none' stroke='%23ffab00' stroke-width='0.8'><circle cx='100' cy='100' r='96'/><circle cx='100' cy='100' r='80'/><circle cx='100' cy='100' r='62'/><circle cx='100' cy='100' r='44'/><polygon points='100,12 23,156 177,156'/><polygon points='100,188 23,44 177,44'/><g stroke-width='0.4'><line x1='4' y1='100' x2='196' y2='100'/><line x1='100' y1='4' x2='100' y2='196'/><line x1='32' y1='32' x2='168' y2='168'/><line x1='168' y1='32' x2='32' y2='168'/></g></g><g fill='%23ffab00' opacity='0.8'><circle cx='100' cy='12' r='1.5'/><circle cx='100' cy='188' r='1.5'/><circle cx='12' cy='100' r='1.5'/><circle cx='188' cy='100' r='1.5'/><circle cx='35' cy='35' r='1.2'/><circle cx='165' cy='35' r='1.2'/><circle cx='35' cy='165' r='1.2'/><circle cx='165' cy='165' r='1.2'/></g></svg>");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  animation: runeRotate 90s linear infinite;
  z-index: 0;
  filter: drop-shadow(0 0 14px rgba(255,171,0,0.4));
}
@keyframes runeRotate { to { transform: translate(-50%, -50%) rotate(360deg); } }

#match-section textarea {
  position: relative;
  z-index: 1;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 199, 102, 0.14) 0%, transparent 58%),
    linear-gradient(180deg, rgba(252, 243, 214, 0.98) 0%, rgba(243, 228, 185, 0.98) 100%);
  color: var(--ink);
  border: 1px solid rgba(255,171,0,0.55);
  font-family: "Noto Serif JP", serif;
  box-shadow:
    inset 0 0 0 1px rgba(255,171,0,0.1),
    inset 0 1px 10px rgba(255, 240, 205, 0.55),
    inset 0 -10px 24px rgba(166, 106, 50, 0.08),
    0 0 0 1px rgba(0,0,0,0.4),
    0 0 18px rgba(255,171,0,0.14);
  min-height: 110px;
  letter-spacing: 0.02em;
}
#match-section textarea::placeholder {
  color: rgba(90, 61, 43, 0.58);
  font-style: normal;
}
#match-section textarea:focus {
  border-color: var(--amber-light);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 206, 122, 0.18) 0%, transparent 60%),
    linear-gradient(180deg, #fff7de 0%, #f7e7b8 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255,171,0,0.18),
    inset 0 1px 12px rgba(255, 248, 229, 0.72),
    inset 0 -12px 28px rgba(166, 106, 50, 0.08),
    0 0 0 2px rgba(255,171,0,0.45),
    0 0 22px rgba(255,171,0,0.22);
  animation: none;
}
/* textarea の下に小さな水晶玉モチーフを添える */
#match-section .actions { position: relative; }
#match-section .actions::before {
  content: "◈";
  position: absolute;
  left: 50%;
  top: -18px;
  transform: translateX(-50%);
  color: var(--amber);
  font-size: 0.9em;
  text-shadow: 0 0 10px var(--amber-glow);
  pointer-events: none;
}

/* ========== 進捗バー ========== */

.progress {
  height: 8px;
  background: rgba(62,39,35,0.18);
  border: 1px solid rgba(139,105,56,0.35);
  border-radius: 2px;
  margin: -4px 0 14px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background:
    linear-gradient(90deg, var(--amber-deep) 0%, var(--amber) 50%, var(--amber-light) 100%);
  width: 0%;
  transition: width 0.5s ease;
  box-shadow: 0 0 10px var(--amber-glow), inset 0 1px 0 rgba(255,255,255,0.3);
}

.wizard-question {
  font-family: "Noto Serif JP", "Cormorant Garamond", serif;
  font-size: 1.16em;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
  letter-spacing: 0.03em;
}
.wizard-hint {
  color: var(--muted);
  font-size: 0.85em;
  margin: 0 0 14px;
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  font-style: italic;
}
.wizard-section-label {
  font-size: 0.86em;
  font-weight: 700;
  color: var(--ink-soft);
  margin: 10px 0 6px;
  font-family: "Noto Serif JP", serif;
  letter-spacing: 0.04em;
}

/* ========== チップ（ステータス札） ========== */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.chip {
  display: inline-block;
  padding: 7px 13px;
  border-radius: 2px;
  background: linear-gradient(180deg, #f4e7c7 0%, #e5d3a0 100%);
  border: 1px solid rgba(139,105,56,0.45);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.88em;
  font-family: "Noto Serif JP", sans-serif;
  user-select: none;
  transition: all 0.15s;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.5),
    0 1px 2px rgba(0,0,0,0.1);
}
.chip:active { transform: translateY(1px); box-shadow: inset 0 1px 2px rgba(0,0,0,0.15); }
.chip.active {
  color: #fdf0d0;
  background:
    linear-gradient(180deg, #2f4ac9 0%, #1a237e 60%, #0f144a 100%);
  border-color: #070820;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -2px 3px rgba(0,0,0,0.4),
    0 0 0 1px rgba(255,171,0,0.25),
    0 1px 3px rgba(0,0,0,0.2);
  text-shadow: 0 1px 0 rgba(0,0,0,0.3);
}
.chip.extracted::before {
  content: "★ ";
  color: var(--copper);
  font-weight: 700;
}
.chip.active.extracted::before { color: var(--amber); }
.chip.added::before { content: "＋ "; color: var(--navy); }
.chip.active.added::before { color: var(--amber-light); }

.url-list { margin: 8px 0; }
.url-row {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}
.url-row input { margin-top: 0; }
.url-row button {
  margin-top: 0;
  padding: 6px 10px;
  font-size: 0.85em;
}
.ingest-result {
  background: rgba(255,171,0,0.1);
  border-left: 3px solid var(--amber);
  border-radius: 3px;
  padding: 8px 11px;
  font-size: 0.85em;
  color: var(--ink-soft);
  margin: 8px 0;
  font-family: "Noto Serif JP", serif;
}
.ingest-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ingest-row button {
  margin-top: 0;
  padding: 4px 10px;
  font-size: 0.8em;
  flex: 0 0 auto;
}

.wizard-nav {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.wizard-nav button { flex: 1; }
.wizard-foot {
  text-align: center;
  margin-top: 10px;
}
.scale-group {
  border: 1px solid rgba(139,105,56,0.35);
  border-radius: 3px;
  padding: 12px;
  margin-bottom: 8px;
  background: rgba(255,255,255,0.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}
.scale-group .skill-name {
  font-weight: 700;
  font-size: 0.95em;
  color: var(--ink);
  margin-bottom: 6px;
  font-family: "Noto Serif JP", serif;
}

.loading-inline {
  display: inline-block;
  width: 11px; height: 11px;
  border: 2px solid rgba(62,39,35,0.2);
  border-top-color: var(--amber);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== 「Why ask?」— 羊皮紙の注釈 ========== */

.why-box {
  background:
    repeating-linear-gradient(180deg,
      transparent 0, transparent 22px,
      rgba(139,105,56,0.06) 22px, rgba(139,105,56,0.06) 23px),
    rgba(255,171,0,0.08);
  border: 1px solid rgba(139,105,56,0.3);
  border-left: 3px solid var(--copper);
  padding: 11px 13px;
  border-radius: 3px;
  font-size: 0.88em;
  color: var(--ink-soft);
  margin: 10px 0 16px;
  line-height: 1.75;
  font-family: "Noto Serif JP", serif;
}

.form-label {
  display: block;
  font-size: 0.9em;
  font-weight: 700;
  margin-top: 14px;
  color: var(--ink);
  font-family: "Noto Serif JP", serif;
  letter-spacing: 0.04em;
}
.form-label .required {
  color: var(--blood);
  margin-left: 2px;
}
.form-hint {
  font-size: 0.78em;
  color: var(--muted);
  margin: 2px 0 4px;
  font-style: italic;
}
.toggle-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86em;
  color: var(--ink-soft);
  margin-top: 4px;
  cursor: pointer;
  font-family: "Noto Serif JP", serif;
}
.toggle-row input[type=checkbox] {
  width: 16px; height: 16px;
  accent-color: var(--amber);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}
.section-actions button,
.section-actions-only button {
  padding: 4px 10px;
  font-size: 0.78em;
  margin-left: 4px;
  margin-top: 0;
}
.section-actions-only {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin: 4px 0 6px;
}
.admin-section-panel {
  margin-top: 6px;
}
.chip-remove {
  margin: 0 0 0 4px;
  padding: 0 4px;
  background: transparent;
  color: inherit;
  border: none;
  font-size: 1em;
  cursor: pointer;
  line-height: 1;
}
.chip.active .chip-remove { color: #fff; }

/* ========== ステップナビ（鍛金プレート風） ========== */

.step-nav {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 5px;
  padding: 4px 2px 12px;
  margin-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.step-nav::-webkit-scrollbar { height: 4px; }
.step-nav::-webkit-scrollbar-thumb { background: var(--copper); border-radius: 2px; }
.step-nav-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: rgba(244,231,199,0.35);
  border: 1px solid rgba(139,105,56,0.35);
  border-radius: 2px;
  padding: 5px 8px 6px;
  min-width: 58px;
  font-size: 0.72em;
  color: var(--muted);
  cursor: pointer;
  margin-top: 0;
  font-weight: 500;
  box-shadow: none;
  transition: all 0.15s;
}
.step-nav-item:disabled:not(.is-current) { cursor: default; }
.step-nav-item.is-done {
  color: #fdf0d0;
  background: linear-gradient(180deg, #3a4ac9 0%, #1a237e 80%);
  border-color: #0a0c2e;
}
.step-nav-item.is-current {
  color: #2a1607;
  background:
    linear-gradient(180deg, #e9c08d 0%, #d29a5c 20%, #b4783a 55%, #8a5520 80%, #b4783a 100%);
  border-color: #5a3317;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255,240,200,0.5),
    0 0 10px var(--amber-glow),
    0 1px 0 #3a1f0e;
  text-shadow: 0 1px 0 rgba(255,240,200,0.4);
}
.step-nav-item.is-future { opacity: 0.4; }
.step-nav-badge {
  font-weight: 700;
  font-size: 0.95em;
  line-height: 1;
  font-family: "Cinzel", serif;
}
.step-nav-label {
  white-space: nowrap;
  font-size: 0.9em;
}

/* ========== 保存ステータス ========== */

.save-status {
  font-size: 0.8em;
  color: var(--muted);
  text-align: right;
  min-height: 1.2em;
  margin: -6px 0 8px;
  font-style: italic;
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
}
.save-status.save-saving { color: var(--navy); }
.save-status.save-saved { color: var(--success); }
.save-status.save-error { color: var(--danger); }
.save-status.save-pending { color: var(--copper); }

/* ========== マッチング結果（酒場の貼り紙たち） ========== */

.match-empty {
  background:
    radial-gradient(ellipse at center, rgba(255,171,0,0.12) 0%, transparent 60%),
    rgba(255,171,0,0.08);
  border: 1px solid rgba(139,105,56,0.4);
  border-radius: 3px;
  padding: 16px 18px;
  font-size: 1em;
  color: var(--ink);
  margin-top: 14px;
  text-align: center;
  font-family: "Noto Serif JP", serif;
  line-height: 1.85;
}
.match-empty b { color: var(--copper-deep); }

.match-card {
  position: relative;
  padding: 16px 18px 18px;
  margin: 12px 0;
  border-radius: 3px;
  border: 1px solid var(--copper);
  color: var(--ink);

  background:
    radial-gradient(circle at 6% 8%, rgba(120,60,20,0.22) 0%, transparent 16%),
    radial-gradient(circle at 94% 92%, rgba(120,60,20,0.22) 0%, transparent 16%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.54  0 0 0 0 0.41  0 0 0 0 0.22  0 0 0 0.22 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>"),
    repeating-linear-gradient(112deg,
      transparent 0px, transparent 4px,
      rgba(139,105,56,0.05) 4px, rgba(139,105,56,0.05) 5px
    ),
    linear-gradient(145deg, #ecd7a2 0%, #d8bc79 100%);

  box-shadow:
    inset 0 0 0 2px rgba(255,212,102,0.3),
    inset 0 0 0 4px rgba(166,106,50,0.4),
    inset 0 0 30px rgba(139,105,56,0.2),
    0 2px 0 rgba(0,0,0,0.2),
    0 5px 12px rgba(0,0,0,0.4);
}
/* 貼り紙のピン（ダイヤ風） */
.match-card::before,
.match-card::after {
  content: "◆";
  position: absolute;
  top: 6px;
  color: var(--copper);
  font-size: 0.7em;
  text-shadow: 0 0 4px var(--amber-glow);
  pointer-events: none;
}
.match-card::before { left: 10px; }
.match-card::after { right: 10px; }

.match-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 0 10px;
}
.match-identity {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 1 1 auto;
  min-width: 0;
}
.match-name {
  font-weight: 700;
  font-size: 1.2em;
  color: var(--ink);
  font-family: "Noto Serif JP", serif;
  flex: 1 1 auto;
  min-width: 0;
  letter-spacing: 0.03em;
}
.match-company {
  font-weight: 500;
  color: var(--ink-soft);
  font-size: 0.95em;
  font-family: "Noto Serif JP", serif;
}

.avatar {
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  background: var(--parchment-soft);
  border: 2px solid var(--copper);
  box-shadow:
    0 0 0 1px var(--parchment),
    0 0 0 3px var(--copper-deep),
    0 0 8px var(--amber-glow);
}
.avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--parchment);
  font-weight: 700;
  font-size: 1.1em;
  user-select: none;
  font-family: "Cinzel", "Noto Serif JP", serif;
}

.match-score {
  flex: 0 0 auto;
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 0.8em;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.03em;
  font-family: "Cinzel", "Noto Sans JP", serif;
}
.match-score-high { background: #16a34a; }   /* 緑 */
.match-score-mid  { background: #1f3a8a; }   /* ネイビー */
.match-score-low  { background: #a16207; }   /* アンバー */
.match-score-vlow { background: #6b7280; }   /* グレー */

.match-reason {
  background:
    linear-gradient(135deg, rgba(26,35,126,0.14), rgba(26,35,126,0.08));
  border-left: 4px solid var(--navy);
  border-radius: 2px;
  padding: 12px 14px;
  font-size: 1em;
  color: var(--ink);
  margin-bottom: 12px;
  font-family: "Noto Serif JP", serif;
  line-height: 1.85;
}
.match-reason b {
  color: var(--navy);
  font-family: "Noto Serif JP", serif;
  letter-spacing: 0.05em;
}

.match-profile {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 1.05em;
  line-height: 1.95;
  white-space: pre-wrap;
  color: var(--ink);
  margin: 12px 0 14px;
  letter-spacing: 0.03em;
}
.profile-card-text {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif !important;
  letter-spacing: 0.04em !important;
}

.match-contact {
  border-top: 1px dashed rgba(139,105,56,0.4);
  padding-top: 11px;
  margin-top: 12px;
  font-size: 1em;
  line-height: 1.75;
  color: var(--ink);
  font-family: "Noto Serif JP", serif;
}
.match-contact-note {
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 0.92em;
  line-height: 1.6;
}
.match-contact-title {
  font-size: 0.85em;
  color: var(--copper-deep);
  margin-bottom: 6px;
  letter-spacing: 0.08em;
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
}
.match-contact-hidden {
  border-top: 1px dashed rgba(139,105,56,0.4);
  padding-top: 10px;
  margin-top: 12px;
  font-size: 0.95em;
  color: var(--ink-soft);
  font-family: "Noto Serif JP", serif;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.admin-stat {
  text-align: center;
  padding-top: 18px;
  padding-bottom: 18px;
}

.admin-stat-label {
  font-family: "Cinzel", serif;
  font-size: 0.8em;
  letter-spacing: 0.12em;
  color: var(--copper-deep);
  text-transform: uppercase;
}

.admin-stat-value {
  margin-top: 8px;
  font-family: "Cinzel", serif;
  font-size: 2.1em;
  color: var(--ink);
}

.ledger-list {
  display: grid;
  gap: 12px;
}

.ledger-row {
  padding: 15px 16px;
  border-radius: 3px;
  border: 1px solid rgba(111, 71, 27, 0.26);
  background: rgba(250, 241, 214, 0.66);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
}

.admin-card-toggle {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.admin-card-toggle:focus-visible {
  outline: 2px solid rgba(166, 106, 50, 0.55);
  outline-offset: 6px;
}

.ledger-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ledger-title {
  font-family: "Noto Serif JP", serif;
  font-size: 1.03em;
  font-weight: 700;
  color: var(--ink);
}

.ledger-sub {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.84em;
}

.ledger-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ledger-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(111, 71, 27, 0.24);
  background: rgba(104, 65, 24, 0.1);
  color: var(--ink-soft);
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.ledger-body {
  margin: 9px 0 0;
  line-height: 1.7;
  color: var(--ink-soft);
}

.ledger-meta {
  display: flex;
  gap: 10px 16px;
  flex-wrap: wrap;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.8em;
}

.copy-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.copy-row input[type=text] {
  flex: 1 1 320px;
  margin-top: 0;
}

.copy-row button {
  margin-top: 0;
}

.admin-flash-success {
  border-color: rgba(16, 110, 50, 0.3);
  background: rgba(220, 245, 226, 0.72);
}

.admin-flash-error {
  border-color: rgba(139, 26, 14, 0.35);
  background: rgba(252, 227, 224, 0.8);
}

.admin-community-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.admin-card-toggle-meta {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.admin-card-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(111, 71, 27, 0.16);
  background: rgba(255, 250, 239, 0.72);
  color: var(--ink-soft);
  font-size: 0.76em;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.admin-card-toggle-label::after {
  content: "▾";
  font-size: 0.92em;
}

.admin-community-collapsed .admin-card-toggle-label::after {
  content: "▸";
}

.admin-community-body {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(111, 71, 27, 0.14);
}

.admin-field {
  display: block;
}

.admin-field .form-label {
  display: block;
  margin-bottom: 6px;
}

.admin-field textarea,
.admin-field select,
.admin-field input[type=text] {
  margin-top: 0;
}

.admin-field-wide {
  grid-column: 1 / -1;
}

.admin-member-section {
  margin-top: 14px;
}

.admin-member-roster {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.admin-member-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(111, 71, 27, 0.16);
  border-radius: 8px;
  background: rgba(255, 250, 239, 0.5);
}

.admin-member-main {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-report-badge {
  background: rgba(186, 122, 27, 0.18);
}

.admin-warn-badge {
  background: rgba(186, 122, 27, 0.18);
}

.admin-ban-badge {
  background: rgba(139, 26, 14, 0.16);
  color: #7a2014;
  border-color: rgba(139, 26, 14, 0.28);
}

.admin-member-name {
  color: var(--ink);
  font-weight: 700;
}

.admin-member-meta {
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.78em;
  white-space: nowrap;
}

.admin-member-empty {
  margin: 8px 0 0;
}

.admin-invite-tree,
.admin-invite-tree-branch {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

.admin-invite-tree {
  display: grid;
  gap: 10px;
}

.admin-invite-tree-branch {
  margin-left: 18px;
  padding-left: 16px;
  border-left: 2px solid rgba(166, 106, 50, 0.24);
}

.admin-invite-tree-node {
  position: relative;
  margin-top: 10px;
}

.admin-invite-tree-node::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 19px;
  width: 12px;
  border-top: 2px solid rgba(166, 106, 50, 0.24);
}

.admin-invite-tree-card {
  padding: 10px 12px;
  border: 1px solid rgba(111, 71, 27, 0.16);
  border-radius: 8px;
  background: rgba(255, 250, 239, 0.54);
}

.admin-report-card .ledger-body,
.admin-feedback-card .ledger-body {
  white-space: pre-wrap;
}

.admin-report-note-input,
.admin-feedback-note-input {
  margin-top: 8px;
}

.admin-report-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0 12px;
}

.admin-report-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.admin-report-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(111, 71, 27, 0.18);
  background: rgba(255, 250, 239, 0.68);
  color: var(--ink);
  font-size: 0.82em;
}

.admin-action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.admin-billing-card {
  display: grid;
  gap: 10px;
}

.admin-coupon-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.admin-coupon-quick-card {
  display: grid;
  gap: 10px;
  background: linear-gradient(180deg, rgba(255, 248, 231, 0.82) 0%, rgba(245, 230, 201, 0.78) 100%);
}

.admin-coupon-quick-card .copy-row {
  margin-top: 0;
}

.admin-coupon-quick-card .copy-row input[type=text] {
  flex-basis: 100%;
}

.admin-billing-documents {
  margin-top: 4px;
}

.admin-billing-empty {
  margin: 8px 0 0;
}

.admin-invoice-list {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.admin-invoice-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(111, 71, 27, 0.16);
  border-radius: 8px;
  background: rgba(255, 250, 239, 0.54);
}

.admin-invoice-copy {
  min-width: 0;
}

.admin-invoice-title {
  color: var(--ink);
  font-weight: 700;
}

.admin-doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.admin-doc-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(111, 71, 27, 0.28);
  background: rgba(255, 250, 239, 0.8);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.82em;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.24);
}

.admin-doc-link:hover {
  filter: brightness(1.04);
}

.admin-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(111, 71, 27, 0.18);
  border-radius: 10px;
  background: rgba(255, 250, 239, 0.72);
}

.admin-status-copy {
  min-width: 0;
}

.admin-retire-panel {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(139, 26, 14, 0.26);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 242, 232, 0.9) 0%, rgba(247, 228, 216, 0.82) 100%);
}

.admin-retire-title {
  font-family: "Noto Serif JP", serif;
  font-size: 1.02em;
  font-weight: 700;
  color: #7a2014;
}

.admin-retire-copy {
  margin-top: 8px;
  color: var(--ink-soft);
  line-height: 1.75;
  font-size: 0.92em;
}

.admin-retire-check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  color: var(--ink);
  font-size: 0.9em;
}

.admin-retire-check-row input[type=checkbox] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #8b1a0e;
}

.admin-retire-actions {
  margin-top: 16px;
}

.admin-status-title {
  color: var(--ink);
  font-family: "Noto Serif JP", serif;
  font-size: 0.95rem;
  font-weight: 700;
}

.admin-status-note {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.admin-status-actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-action-row button {
  margin-top: 0;
}

.admin-danger-button {
  border-color: rgba(139, 26, 14, 0.45) !important;
  color: #fff !important;
  background: linear-gradient(180deg, #a62d1d 0%, #6d170d 100%) !important;
}

.admin-danger-button:hover:not(:disabled) {
  filter: brightness(1.06);
}

.admin-inline-link {
  flex: 1 1 220px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 18px;
  margin-top: 0;
  border-radius: 3px;
  border: 1px solid #5a3317;
  color: #2a1607;
  text-decoration: none;
  text-align: center;
  line-height: 1.4;
  white-space: nowrap;
  background:
    linear-gradient(180deg,
      #e9c08d 0%, #d29a5c 20%,
      #b4783a 50%, #8a5520 75%, #b4783a 100%);
  text-shadow: 0 1px 0 rgba(255,240,200,0.4);
  box-shadow:
    inset 0 1px 0 rgba(255,240,200,0.55),
    inset 0 -2px 3px rgba(0,0,0,0.3),
    0 2px 0 #3a1f0e,
    0 3px 6px rgba(0,0,0,0.3);
  transition: transform 0.05s, filter 0.15s;
}

.admin-inline-link:hover {
  filter: brightness(1.08);
}

.admin-inline-link:active {
  transform: translateY(1px);
}

.admin-compact-link {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 9px 14px;
}

@media (max-width: 720px) {
  .admin-stat-grid {
    grid-template-columns: 1fr;
  }

  .ledger-top {
    flex-direction: column;
  }

  .ledger-badges {
    justify-content: flex-start;
  }

  .admin-community-fields {
    grid-template-columns: 1fr;
  }

  .admin-status-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-invoice-row {
    flex-direction: column;
  }

  .admin-doc-links {
    justify-content: flex-start;
  }

  .admin-status-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .admin-report-summary {
    grid-template-columns: 1fr;
  }

  .invite-tree-focus {
    grid-template-columns: 1fr;
  }

  .admin-member-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ========== 法務ページ（規約・ポリシー・特商法） ========== */

.legal-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 4px 40px;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 2px 20px;
  padding: 10px 14px;
  background: linear-gradient(180deg, var(--parchment-soft), var(--parchment));
  border: 1px solid var(--parchment-edge);
  border-radius: 10px;
  box-shadow: 0 2px 0 rgba(0,0,0,0.25);
}
.legal-nav a {
  flex: 1 1 auto;
  text-align: center;
  padding: 8px 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95em;
  border-radius: 6px;
  transition: background 0.2s;
}
.legal-nav a:hover {
  background: var(--amber-light);
}

.legal-card {
  padding: 26px 22px;
  line-height: 1.85;
}
.legal-card h2 {
  font-family: "Cinzel", "Noto Serif JP", serif;
  color: var(--wood);
  border-bottom: 2px solid var(--copper);
  padding-bottom: 8px;
  margin-top: 0;
}
.legal-card h3 {
  font-family: "Noto Serif JP", serif;
  color: var(--wood);
  margin-top: 26px;
  margin-bottom: 10px;
  font-size: 1.08em;
  border-left: 4px solid var(--amber);
  padding-left: 10px;
}
.legal-card p,
.legal-card li {
  color: var(--ink);
  font-size: 0.96em;
}
.legal-card ol,
.legal-card ul {
  padding-left: 1.4em;
  margin: 8px 0 14px;
}
.legal-card ol li,
.legal-card ul li {
  margin-bottom: 6px;
}
.legal-card strong {
  color: var(--copper-deep);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 8px;
  background: var(--parchment);
  border: 1px solid var(--parchment-edge);
  border-radius: 8px;
  overflow: hidden;
}
.legal-table th,
.legal-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--parchment-edge);
  font-size: 0.95em;
}
.legal-table th {
  width: 32%;
  background: var(--parchment-soft);
  color: var(--wood);
  font-weight: 700;
  white-space: nowrap;
}
.legal-table tr:last-child th,
.legal-table tr:last-child td {
  border-bottom: none;
}
@media (max-width: 560px) {
  .legal-table th,
  .legal-table td {
    display: block;
    width: auto;
    white-space: normal;
    border-bottom: none;
    padding: 10px 14px;
  }
  .legal-table th {
    padding-bottom: 2px;
    font-size: 0.85em;
    color: var(--ink-soft);
  }
  .legal-table td {
    padding-top: 2px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--parchment-edge);
  }
  .legal-table tr:last-child td {
    border-bottom: none;
  }
}

.legal-footer {
  margin: 22px 2px 0;
  padding: 14px 12px;
  text-align: center;
  color: var(--parchment-soft);
  font-size: 0.88em;
}
.legal-footer a {
  color: var(--amber-light);
  text-decoration: none;
  margin: 0 4px;
}
.legal-footer a:hover {
  color: var(--amber);
  text-decoration: underline;
}

/* ページ下部の共通フッター（規約リンク用） */
.page-legal-foot {
  margin: 28px 2px 12px;
  padding: 12px 10px;
  text-align: center;
  font-size: 0.82em;
  color: var(--parchment-soft);
  border-top: 1px dashed var(--copper-deep);
  opacity: 0.85;
}
.page-legal-foot a {
  color: var(--amber-light);
  text-decoration: none;
  margin: 0 4px;
}
.page-legal-foot a:hover {
  color: var(--amber);
  text-decoration: underline;
}

/* ========== 通報ボタン・モーダル ========== */

.match-report-row {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(166, 106, 50, 0.3);
  text-align: right;
}
.btn-report {
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
  padding: 4px 10px;
  font-size: 0.82em;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-report:hover {
  background: rgba(139, 26, 14, 0.1);
  color: var(--blood);
  border-color: rgba(139, 26, 14, 0.3);
}

.report-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.report-modal.hidden {
  display: none;
}
.report-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 5, 3, 0.75);
  backdrop-filter: blur(3px);
  cursor: pointer;
}
.report-modal-panel {
  position: relative;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  background:
    radial-gradient(ellipse 60% 30% at 50% 0%, rgba(255,171,0,0.06) 0%, transparent 60%),
    linear-gradient(180deg, var(--parchment) 0%, var(--parchment-soft) 100%);
  border: 2px solid var(--copper);
  border-radius: 12px;
  padding: 26px 22px 22px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.25),
    0 20px 50px rgba(0, 0, 0, 0.6);
  color: var(--ink);
}
.report-modal-panel h2 {
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--wood);
  font-family: "Noto Serif JP", serif;
  border-bottom: 2px solid var(--copper);
  padding-bottom: 8px;
}
.report-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: var(--wood);
  font-size: 1.4em;
  cursor: pointer;
  border-radius: 50%;
  line-height: 1;
}
.report-modal-close:hover {
  background: rgba(0, 0, 0, 0.08);
}
.report-modal-lead {
  margin: 4px 0 12px;
  font-size: 0.9em;
  line-height: 1.6;
}
.report-modal-target {
  background: var(--parchment-soft);
  border-left: 3px solid var(--copper);
  padding: 8px 12px;
  border-radius: 4px;
  margin: 8px 0 14px;
  font-size: 0.95em;
}
.report-categories {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
  padding: 8px 10px;
  background: var(--parchment-soft);
  border: 1px solid var(--parchment-edge);
  border-radius: 6px;
}
.report-cat-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 0.95em;
}
.report-cat-row:hover {
  background: rgba(255, 171, 0, 0.15);
}
.report-cat-row input[type="radio"] {
  accent-color: var(--blood);
  flex-shrink: 0;
}
#report-text {
  width: 100%;
  padding: 10px;
  font-size: 0.95em;
  font-family: inherit;
  border: 1px solid var(--parchment-edge);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  resize: vertical;
}
#report-submit {
  background: var(--blood);
  color: #fff;
}
#report-submit:hover:not(:disabled) {
  background: #6b130a;
}

/* ========== メンバープロフィール閲覧モーダル（admin専用） ========== */

/* クリック可能ノード（button要素）— .invite-tree-person の padding/border/背景を壊さないように UA リセットのみ */
button.invite-tree-person-clickable {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  display: block;
  width: 100%;
  text-align: left;
  white-space: normal;
  transition: transform 120ms ease, filter 120ms ease;
}
button.invite-tree-person-clickable:hover,
button.invite-tree-person-clickable:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.04);
  outline: none;
  border-color: var(--copper);
}
button.invite-tree-person-clickable .invite-tree-name::after {
  content: " ▸";
  color: var(--copper);
  opacity: 0.7;
  font-size: 0.9em;
  font-weight: 400;
}

.member-profile-modal {
  position: fixed;
  inset: 0;
  z-index: 9900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.member-profile-modal.hidden { display: none; }
.member-profile-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 5, 3, 0.78);
  backdrop-filter: blur(4px);
  cursor: pointer;
}
.member-profile-panel {
  position: relative;
  max-width: 520px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  background:
    radial-gradient(ellipse 70% 35% at 50% 0%, rgba(255,171,0,0.1) 0%, transparent 60%),
    linear-gradient(180deg, var(--parchment) 0%, var(--parchment-soft) 100%);
  border: 2px solid var(--copper);
  border-radius: 10px;
  padding: 26px 22px 22px;
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25), 0 20px 48px rgba(0, 0, 0, 0.6);
}
.member-profile-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: var(--wood);
  font-size: 1.4em;
  cursor: pointer;
  border-radius: 50%;
  line-height: 1;
}
.member-profile-close:hover { background: rgba(0, 0, 0, 0.08); }

.member-profile-head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--copper);
}
.member-profile-identity { flex: 1 1 auto; min-width: 0; }
.member-profile-name {
  margin: 0 0 6px;
  font-family: "Noto Serif JP", serif;
  font-size: 1.2em;
  color: var(--wood);
  line-height: 1.3;
}
.member-profile-company {
  font-size: 0.88em;
  color: var(--ink-soft);
  font-weight: 500;
  margin-left: 4px;
}
.member-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.member-profile-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(166, 106, 50, 0.15);
  color: var(--wood);
  font-size: 0.78em;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.member-profile-tag-status {
  background: rgba(26, 35, 126, 0.18);
  color: var(--navy-deep);
}

.member-profile-section {
  margin: 14px 0 0;
}
.member-profile-section-title {
  font-family: "Noto Serif JP", serif;
  font-size: 0.85em;
  font-weight: 700;
  color: var(--copper-deep);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.member-profile-text {
  font-family: "Noto Serif JP", serif;
  font-size: 1em;
  line-height: 1.85;
  color: var(--ink);
  white-space: pre-wrap;
  background: rgba(255, 255, 255, 0.4);
  border-left: 3px solid var(--amber);
  border-radius: 4px;
  padding: 10px 12px;
}
.member-profile-contact {
  font-size: 0.98em;
  line-height: 1.8;
  color: var(--ink);
}

/* ========== 招待ページ：LP共有カード ========== */

.invite-lp-card {
  margin-top: 14px;
}
.invite-lp-title {
  margin: 0 0 6px;
  font-family: "Noto Serif JP", serif;
  font-size: 1.02em;
  color: var(--wood);
}
.invite-lp-note {
  margin: 0 0 14px;
  font-size: 0.92em;
  line-height: 1.75;
  color: var(--ink);
}
.invite-lp-actions {
  margin: 8px 0 12px;
}
.invite-lp-open {
  display: inline-block;
  padding: 12px 22px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ========== 管理画面：経営指標（トークン・売上） ========== */

.admin-analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 12px 0 0;
}
@media (max-width: 900px) {
  .admin-analytics-grid { grid-template-columns: 1fr; }
}

.admin-analytics-card {
  padding: 16px 18px;
}
.admin-analytics-card h3 {
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--copper);
  font-family: "Noto Serif JP", serif;
  color: var(--wood);
  font-size: 1.02em;
}

.admin-analytics-stat {
  margin: 4px 0 14px;
}
.admin-analytics-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.admin-analytics-stat-row > div {
  padding: 10px 12px;
  background: rgba(255, 250, 230, 0.6);
  border: 1px solid var(--parchment-edge);
  border-radius: 4px;
  font-size: 0.88em;
  line-height: 1.45;
}
.admin-analytics-stat-row b {
  font-size: 1.15em;
  color: var(--wood-deep);
}
@media (max-width: 560px) {
  .admin-analytics-stat-row { grid-template-columns: 1fr 1fr; }
}

.admin-analytics-subtitle {
  margin: 14px 0 6px;
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  color: var(--copper-deep);
  font-size: 0.92em;
  letter-spacing: 0.05em;
}

.admin-analytics-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88em;
  margin-bottom: 8px;
}
.admin-analytics-table th,
.admin-analytics-table td {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(139,105,56,0.25);
  text-align: left;
  vertical-align: top;
}
.admin-analytics-table th {
  background: rgba(255, 250, 230, 0.5);
  color: var(--wood-deep);
  font-weight: 700;
  font-size: 0.82em;
  letter-spacing: 0.05em;
}
.admin-analytics-table .ta-right { text-align: right; font-variant-numeric: tabular-nums; }

.admin-analytics-note {
  margin-top: 8px;
  font-size: 0.82em;
}

/* ========== はじめてガイド（未承認メンバー向けチュートリアル） ========== */

.tutorial-card {
  margin: 0 0 14px;
  padding: 18px 18px 16px;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(255,171,0,0.12) 0%, transparent 60%),
    linear-gradient(180deg, var(--parchment) 0%, var(--parchment-soft) 100%);
  border: 2px solid var(--amber);
  border-radius: 6px;
  box-shadow: 0 3px 0 rgba(0,0,0,0.35), 0 10px 22px rgba(0,0,0,0.5);
  color: var(--ink);
}

.tutorial-title {
  font-family: "Noto Serif JP", serif;
  font-size: 1.05em;
  font-weight: 700;
  color: var(--wood-deep);
  margin-bottom: 4px;
  letter-spacing: 0.06em;
  border-bottom: 2px solid var(--copper);
  padding-bottom: 6px;
  display: inline-block;
}
.tutorial-lead {
  margin: 8px 0 14px;
  font-size: 0.95em;
  line-height: 1.75;
  color: var(--ink);
}
.tutorial-lead b {
  color: var(--copper-deep);
  background: rgba(255, 171, 0, 0.2);
  padding: 0 4px;
  border-radius: 2px;
}

.tutorial-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tutorial-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--parchment-edge);
  border-radius: 4px;
  position: relative;
}
.tutorial-step-num {
  grid-row: 1 / span 2;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #c0c5d0, #7a818f);
  color: #fff;
  font-family: "Cinzel", serif;
  font-weight: 700;
  font-size: 1.15em;
  border-radius: 50%;
  border: 2px solid #4a5260;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 2px 4px rgba(0,0,0,0.35);
}
.tutorial-step-body strong {
  display: block;
  font-family: "Noto Serif JP", serif;
  font-size: 1em;
  color: var(--wood);
  margin-bottom: 2px;
}
.tutorial-step-body p {
  margin: 0;
  font-size: 0.9em;
  line-height: 1.75;
  color: var(--ink-soft);
}
.tutorial-step-cta-wrap {
  margin-top: 10px;
}

/* 現在のステップは強調 */
.tutorial-step-current {
  background: linear-gradient(180deg, rgba(255,245,213,0.95), rgba(245,225,170,0.85));
  border-color: var(--amber);
  box-shadow: 0 0 0 2px rgba(255,171,0,0.25), inset 0 1px 0 rgba(255,255,255,0.4);
}
.tutorial-step-current .tutorial-step-num {
  background: linear-gradient(180deg, #ffd466, var(--amber-deep));
  border-color: var(--copper-deep);
  color: var(--wood-deep);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 0 12px rgba(255,171,0,0.5);
}
.tutorial-step-current .tutorial-step-body strong { color: var(--wood-deep); }

.tutorial-step-done {
  opacity: 0.72;
}
.tutorial-step-done .tutorial-step-num {
  background: linear-gradient(180deg, #3e6b3a, #2a4a28);
  border-color: #1b3018;
}
.tutorial-step-done .tutorial-step-num::after {
  content: "✓";
}
.tutorial-step-future {
  opacity: 0.68;
}

@media (max-width: 480px) {
  .tutorial-step { grid-template-columns: 36px 1fr; gap: 10px; padding: 10px 12px; }
  .tutorial-step-num { width: 32px; height: 32px; font-size: 1em; }
}

/* ========== 友だち追加バナー（未追加ユーザー向け） ========== */
.friend-add-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 14px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #06c755 0%, #049942 100%);
  border: 1px solid #04712f;
  border-radius: 6px;
  color: #fff;
  box-shadow: 0 3px 0 #035526, 0 6px 14px rgba(0,0,0,0.35);
}
.friend-add-icon {
  flex: 0 0 auto;
  font-size: 1.6em;
  line-height: 1;
  padding-top: 2px;
}
.friend-add-body {
  flex: 1 1 auto;
  min-width: 0;
}
.friend-add-title {
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: 1.02em;
  margin-bottom: 4px;
  text-shadow: 0 1px 0 rgba(0,0,0,0.25);
}
.friend-add-note {
  margin: 0 0 10px;
  font-size: 0.88em;
  line-height: 1.7;
  opacity: 0.95;
}
.friend-add-btn {
  display: inline-block;
  padding: 10px 18px;
  background: #fff;
  color: #06c755;
  font-weight: 700;
  font-size: 0.98em;
  text-decoration: none;
  border-radius: 4px;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
  transition: transform 0.1s;
}
.friend-add-btn:hover { transform: translateY(-1px); }
.friend-add-btn:active { transform: translateY(1px); }

/* ========== 友だち追加ゲート（未追加ユーザー向け・ヒーロー下のシンプル版） ========== */
.friend-gate-card {
  margin: 0 0 16px;
  padding: 20px 20px 18px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(255,171,0,0.14) 0%, transparent 60%),
    linear-gradient(180deg, var(--parchment) 0%, var(--parchment-soft) 100%);
  border: 2px solid var(--amber);
  border-radius: 6px;
  box-shadow: 0 3px 0 rgba(0,0,0,0.35), 0 10px 22px rgba(0,0,0,0.5);
  color: var(--ink);
}
.friend-gate-title {
  margin: 0 0 10px;
  font-family: "Noto Serif JP", serif;
  font-size: 1.08em;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--wood-deep);
}
.friend-gate-note {
  margin: 0 0 14px;
  font-size: 0.92em;
  line-height: 1.75;
  color: var(--ink);
}
.friend-gate-note b {
  color: var(--copper-deep);
  background: rgba(255, 171, 0, 0.2);
  padding: 0 4px;
  border-radius: 2px;
}
.friend-gate-cta { margin: 0 0 14px; }
.friend-gate-cta-top {
  margin: 0 0 16px;
  text-align: center;
}
.friend-gate-cta-top .tutorial-friend-btn {
  display: block;
  width: 100%;
  padding: 42px 20px;
  font-size: 1.18em;
  letter-spacing: 0.06em;
  line-height: 1.3;
  position: relative;
  animation: friend-gate-pulse 1.8s ease-in-out infinite;
}
.friend-gate-cta-top .tutorial-friend-btn:hover {
  animation-play-state: paused;
  filter: brightness(1.1);
}

@keyframes friend-gate-pulse {
  0%, 100% {
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.35),
      0 3px 0 #035526,
      0 5px 10px rgba(0,0,0,0.3),
      0 0 0 0 rgba(27, 217, 102, 0.55),
      0 0 18px 2px rgba(27, 217, 102, 0.35);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.45),
      0 3px 0 #035526,
      0 5px 10px rgba(0,0,0,0.3),
      0 0 0 10px rgba(27, 217, 102, 0),
      0 0 30px 6px rgba(27, 217, 102, 0.7);
  }
}
.friend-gate-hint {
  margin: 10px 0 0;
  font-size: 0.82em;
  color: var(--ink-soft);
  line-height: 1.6;
  font-style: italic;
}
.friend-gate-recheck {
  display: block;
  margin: 14px 0 0;
  font-size: 0.85em;
  color: var(--copper-deep);
  text-decoration: underline;
  text-align: center;
  cursor: pointer;
}
.friend-gate-recheck:hover { color: var(--wood-deep); }

/* ========== チュートリアル STEP 1：友だち追加の警告ブロック ========== */
.tutorial-step-warn {
  margin: 10px 0 4px;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(139,26,14,0.12), rgba(139,26,14,0.04));
  border: 1px solid rgba(139,26,14,0.4);
  border-left: 3px solid var(--blood);
  border-radius: 4px;
  font-size: 0.88em;
  line-height: 1.7;
  color: var(--ink);
}
.tutorial-step-warn-title {
  font-weight: 700;
  color: var(--blood);
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}
.tutorial-step-warn ul {
  margin: 4px 0 2px;
  padding-left: 1.2em;
  list-style: disc;
}
.tutorial-step-warn ul li { margin: 2px 0; }
.tutorial-step-warn b { color: var(--blood); }

/* チュートリアル内の "追加後に再読込してね" ヒント */
.tutorial-step-hint {
  margin: 10px 0 0;
  font-size: 0.82em;
  color: var(--ink-soft);
  line-height: 1.6;
  font-style: italic;
}

/* 友だち追加ボタン（LINE 緑） */
.tutorial-friend-btn {
  display: inline-block;
  padding: 12px 18px;
  background: linear-gradient(180deg, #1bd966 0%, #06c755 45%, #049942 100%);
  color: #fff !important;
  font-family: "Noto Serif JP", serif;
  font-size: 0.98em;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid #04712f;
  border-radius: 4px;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    0 3px 0 #035526,
    0 5px 10px rgba(0,0,0,0.3);
  transition: transform 0.1s, filter 0.1s;
}
.tutorial-friend-btn:hover { filter: brightness(1.08); }
.tutorial-friend-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #035526; }

/* 非活性化されたプロフィール登録ボタン（STEP 1 未完了時） */
.voice-cta:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.6);
}

/* 未来のステップは薄めに表示 */
.tutorial-step-future .tutorial-step-cta-wrap {
  opacity: 0.6;
  pointer-events: none;
}
