:root {
  --bg: #ede0c0;
  --panel: rgba(255, 251, 240, 0.84);
  --panel-strong: rgba(255, 252, 244, 0.96);
  --line: rgba(145, 101, 47, 0.2);
  --text: #2a1a08;
  --muted: #7a6040;
  --accent: #c08028;
  --accent-strong: #8a5c18;
  --ok: #17a66a;
  --warn: #f59e0b;
  --danger: #e5484d;
  --glow: rgba(197, 150, 78, 0.24);
  --shadow: 0 18px 42px rgba(60, 38, 14, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 245, 219, 0.68), transparent 24%),
    radial-gradient(circle at 88% 12%, rgba(190, 138, 72, 0.14), transparent 20%),
    radial-gradient(circle at 50% 100%, rgba(160, 111, 54, 0.1), transparent 30%),
    linear-gradient(180deg, #efe1bf 0%, #e6d2aa 52%, #dcc18f 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.member-shell {
  min-height: 100vh;
  padding: 16px 16px 96px;
}

.member-header,
.member-main,
.bottom-nav {
  max-width: 520px;
  margin: 0 auto;
}

.member-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  min-height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0;
}

.brand-mark {
  height: 80px;
  width: auto;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 2px 8px rgba(180, 130, 40, 0.3));
}

.brand-mark img {
  height: 80px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* ロゴ画像にテキスト含まれるため非表示 */
.brand-text {
  display: none;
}

.brand-text small,
.muted {
  color: var(--muted);
}

.ghost-button,
.primary-button,
.secondary-button,
.danger-button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
}

.ghost-button {
  background: rgba(255, 251, 238, 0.84);
  color: var(--text);
  border: 1px solid rgba(145, 101, 47, 0.2);
  box-shadow: 0 10px 22px rgba(60, 38, 14, 0.07);
}

.primary-button {
  background: linear-gradient(160deg, #d4a030, #a87020 60%, #8a5c18);
  color: #fffbe8;
  box-shadow:
    0 14px 28px rgba(120, 70, 10, 0.28),
    0 0 0 1px rgba(255, 240, 180, 0.22) inset;
}

.secondary-button {
  background: linear-gradient(180deg, #fdf5e0, #f0e0b8);
  color: var(--text);
  border: 1px solid rgba(145, 101, 47, 0.18);
  box-shadow: 0 8px 18px rgba(60, 38, 14, 0.08);
}

.danger-button {
  background: var(--danger);
  color: #fff;
}

.member-drawer {
  position: fixed;
  inset: 0;
  background: rgba(52, 34, 18, 0.26);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 10;
}

.member-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-card {
  width: min(320px, 86vw);
  height: 100%;
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 247, 224, 0.88), transparent 18%),
    radial-gradient(circle at 82% 10%, rgba(180, 127, 58, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(247, 238, 214, 0.98), rgba(236, 220, 185, 0.96));
  padding: 24px 20px;
  box-shadow:
    0 20px 44px rgba(79, 51, 25, 0.16),
    0 0 0 1px rgba(122, 83, 42, 0.08) inset;
}

.drawer-user {
  display: grid;
  gap: 4px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(145, 101, 47, 0.14);
  margin-bottom: 16px;
  color: #5b381a;
}

.drawer-nav {
  display: grid;
  gap: 8px;
}

.drawer-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 252, 245, 0.96), rgba(242, 231, 206, 0.9));
  border: 1px solid rgba(145, 101, 47, 0.12);
  box-shadow: 0 8px 18px rgba(79, 51, 25, 0.06);
  color: #5f3c1d;
}

.drawer-nav a:hover {
  background:
    linear-gradient(180deg, rgba(255, 248, 233, 0.98), rgba(236, 221, 190, 0.92));
}

.hero-card,
.panel,
.list-card,
.auth-card {
  background:
    linear-gradient(180deg, rgba(255, 252, 242, 0.97), rgba(245, 233, 205, 0.92));
  border: 1px solid rgba(145, 101, 47, 0.16);
  border-radius: var(--radius);
  box-shadow:
    0 18px 40px rgba(60, 38, 14, 0.1),
    0 1px 0 rgba(255, 248, 220, 0.74) inset;
  backdrop-filter: blur(14px);
}

.hero-card,
.auth-card,
.panel {
  padding: 20px;
}

.hero-card {
  margin-bottom: 16px;
}

.hero-card h1,
.auth-card h1 {
  margin: 0 0 10px;
  font-size: 1.6rem;
}

.stats-grid,
.action-grid,
.list-grid {
  display: grid;
  gap: 12px;
}

.stats-grid,
.action-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-chip,
.action-tile,
.list-card {
  padding: 16px;
}

.stat-chip {
  background: linear-gradient(180deg, rgba(255, 252, 242, 0.98), rgba(243, 228, 196, 0.92));
  border-radius: 16px;
  border: 1px solid rgba(145, 101, 47, 0.14);
  box-shadow: 0 8px 20px rgba(60, 38, 14, 0.07);
}

.stat-chip strong {
  display: block;
  font-size: 1.4rem;
  margin-top: 6px;
}

.action-tile {
  background:
    radial-gradient(circle at top right, rgba(197, 150, 78, 0.14), transparent 40%),
    linear-gradient(180deg, rgba(255, 252, 242, 0.97), rgba(243, 230, 200, 0.93));
  border: 1px solid rgba(145, 101, 47, 0.14);
  border-radius: 16px;
  display: grid;
  gap: 6px;
  box-shadow: 0 10px 24px rgba(60, 38, 14, 0.07);
}

.form-stack,
.form-grid {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 0.95rem;
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(145, 101, 47, 0.22);
  background: linear-gradient(180deg, #fffdf4, #faf0d8);
  box-shadow: 0 2px 0 rgba(255, 252, 230, 0.86) inset;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.inline-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.response-box,
.helper-box,
.empty-state {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
}

.response-box {
  background: linear-gradient(180deg, #fdf8ec, #f5ead0);
  border: 1px solid rgba(145, 101, 47, 0.2);
  white-space: pre-wrap;
  word-break: break-word;
}

.is-hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.response-box.is-error {
  color: var(--danger);
  background: #fff2f0;
  border-color: rgba(180, 35, 24, 0.28);
}

.helper-box {
  background: linear-gradient(180deg, rgba(248, 252, 255, 0.94), rgba(237, 247, 255, 0.9));
  border: 1px dashed rgba(92, 151, 220, 0.32);
}

.compact-helper {
  font-size: 0.92rem;
}

.compact-helper code {
  display: inline-block;
  margin-top: 4px;
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(255, 251, 238, 0.84);
  border: 1px solid rgba(145, 101, 47, 0.22);
}

.checkin-intro {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.checkin-intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.checkin-button {
  min-height: 52px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.checkin-result {
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fffcf2, #f5e8cc);
  border: 1px solid rgba(145, 101, 47, 0.18);
  box-shadow: var(--shadow);
}

.checkin-result.is-success {
  background: linear-gradient(180deg, #f5fff7, #e8f7ec);
  border-color: rgba(33, 115, 70, 0.2);
}

.checkin-result.is-error {
  background: linear-gradient(180deg, #fff7f5, #fde9e5);
  border-color: rgba(180, 35, 24, 0.18);
}

.checkin-result-badge {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(192, 128, 40, 0.12);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.checkin-result.is-success .checkin-result-badge {
  background: rgba(33, 115, 70, 0.12);
  color: var(--ok);
}

.checkin-result.is-error .checkin-result-badge {
  background: rgba(180, 35, 24, 0.1);
  color: var(--danger);
}

.checkin-result-title {
  display: block;
  margin-top: 12px;
  font-size: 1.1rem;
}

.checkin-result-text {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.checkin-result-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 0;
}

.checkin-result-stats div {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(145, 101, 47, 0.16);
}

.checkin-result-stats dt {
  color: var(--muted);
  font-size: 0.82rem;
}

.checkin-result-stats dd {
  margin: 6px 0 0;
  font-size: 1.2rem;
  font-weight: 700;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.card-visual-head {
  display: grid;
  gap: 8px;
}

.card-kicker {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  color: rgba(122, 75, 27, 0.8);
}

.card-title {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  line-height: 1.02;
  letter-spacing: 0.02em;
}

.card-lead {
  margin: 0;
  color: rgba(85, 56, 31, 0.8);
  line-height: 1.6;
}

.card-name {
  font-size: 1.28rem;
  line-height: 1.2;
  color: #4f3017;
}

.card-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.card-meta-item,
.card-points-block,
.card-code-block,
.card-foot {
  position: relative;
  border-radius: 18px;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(255, 247, 227, 0.52), rgba(239, 224, 190, 0.34));
  border: 1px solid rgba(132, 90, 43, 0.16);
  box-shadow: 0 8px 18px rgba(79, 51, 25, 0.08);
}

.card-meta-label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: rgba(116, 76, 35, 0.78);
  text-transform: uppercase;
}

.card-meta-item strong,
.card-foot strong {
  display: block;
  margin-top: 6px;
  font-size: 0.98rem;
  word-break: break-all;
  color: #4f3017;
}

.card-points-block .points {
  margin-top: 6px;
  font-size: 2.7rem;
  font-weight: 700;
  line-height: 1;
  color: #6f431d;
  text-shadow: 0 2px 10px rgba(201, 157, 84, 0.16);
}

.card-points-block .points small {
  font-size: 1rem;
  font-weight: 600;
}

.card-code {
  display: block;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 251, 240, 0.46);
  color: #5b381a;
  font-size: 0.82rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* ── 旅の呼び名 折りたたみ（card.php） ── */

.card-nickname-edit {
  border-radius: 16px;
  border: 1px solid rgba(132, 90, 43, 0.18);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 247, 227, 0.44), rgba(239, 224, 190, 0.28));
}

.card-nickname-toggle {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(100, 62, 22, 0.82);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.card-nickname-toggle::-webkit-details-marker { display: none; }

.card-nickname-toggle::after {
  content: "▾";
  font-size: 1rem;
  color: rgba(130, 85, 30, 0.6);
  transition: transform 220ms ease;
}

.card-nickname-edit[open] .card-nickname-toggle::after {
  transform: rotate(-180deg);
}

.card-nickname-form-body {
  padding: 4px 18px 18px;
  border-top: 1px solid rgba(132, 90, 43, 0.1);
}

.card-nickname-form-body .form-stack {
  gap: 10px;
}

.card-nickname-form-body .inline-actions {
  justify-content: flex-end;
}

/* ── Card page header ── */
.card-page-header {
  display: grid;
  gap: 8px;
}

/* ── Guild Credit Card ── */

/* Outer wrapper: holds the credit-card aspect ratio reliably on all browsers.
   padding-bottom: 53.98/85.6 × 100% = 63.06%                              */
.gcc-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding-bottom: 63.06%;
}

/* Card face: fills the wrapper absolutely */
.guild-credit-card {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  overflow: hidden;

  background:
    radial-gradient(ellipse 65% 45% at 18% 8%,  rgba(255, 200, 80, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 55% 55% at 88% 92%, rgba(100, 55, 8, 0.22)   0%, transparent 60%),
    linear-gradient(145deg,
      #1c1006 0%,
      #2a1a08 18%,
      #1e1206 38%,
      #27180a 58%,
      #1a0e04 78%,
      #231408 100%
    );

  border: 1px solid rgba(200, 155, 60, 0.38);
  box-shadow:
    0 32px 72px rgba(0, 0, 0, 0.68),
    0 8px 24px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 220, 120, 0.22),
    inset 0 0 0 1px rgba(200, 155, 60, 0.1);

  color: rgba(255, 220, 120, 0.9);
  user-select: none;
}

/* Scan-line texture – painted first (below content) */
.gcc-lines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 200, 80, 0.018) 0 1px,
    transparent 1px 8px
  );
  pointer-events: none;
}

/* Shimmer sweep – painted second (still below content) */
.gcc-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 20%,
    rgba(255, 222, 130, 0.06) 38%,
    rgba(255, 240, 180, 0.13) 50%,
    rgba(255, 222, 130, 0.06) 62%,
    transparent 80%
  );
  background-size: 220% 100%;
  animation: gcc-shimmer 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes gcc-shimmer {
  0%   { background-position: 220% center; }
  60%  { background-position: -220% center; }
  100% { background-position: -220% center; }
}

/* ── Content rows: all absolutely positioned within the card ──
   Use fixed px / vw units — avoid % on auto-sized flex items.    */

/* Row 1 – brand text (top-left) + GUILD CARD label (top-right) */
.gcc-top {
  position: absolute;
  top: 9%;
  left: 7%;
  right: 7%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

/* Text brand replaces logo image (logo PNG is dark, invisible on dark card) */
.gcc-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  gap: 0;
}
.gcc-brand-text .gcc-brand-name {
  font-size: min(0.72rem, 3.0vw);
  font-weight: 800;
  letter-spacing: 0.22em;
  color: rgba(212, 160, 48, 0.82);
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}
.gcc-brand-text .gcc-brand-sub {
  font-size: min(0.48rem, 2.0vw);
  font-weight: 600;
  letter-spacing: 0.3em;
  color: rgba(180, 130, 40, 0.55);
  text-transform: uppercase;
}

.gcc-guild-label {
  font-size: min(0.6rem, 2.5vw);
  font-weight: 700;
  letter-spacing: 0.22em;
  color: rgba(200, 155, 60, 0.5);
  text-transform: uppercase;
  padding-top: 2px;
}

/* Row 2 – chip (left) + rank badge (right) */
.gcc-middle {
  position: absolute;
  top: 34%;
  left: 7%;
  right: 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Chip: fixed pixel size so SVG always renders at correct dimensions */
.gcc-chip {
  width: min(48px, 10vw);
  flex-shrink: 0;
}
.gcc-chip svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.gcc-rank-badge {
  display: block;
  border: none;
  background: transparent;
  padding: 0;
  line-height: 0;
  flex-shrink: 0;
}

/* Badge: fixed pixel size — percentage on flex-item with auto width is unreliable */
.gcc-badge-img {
  display: block;
  width: min(72px, 15vw);
  height: min(72px, 15vw);
  object-fit: contain;
  filter:
    drop-shadow(0 0 16px rgba(255, 200, 80, 0.45))
    drop-shadow(0 4px 12px rgba(0, 0, 0, 0.65));
}

/* Row 3 – card number */
.gcc-number {
  position: absolute;
  bottom: 34%;
  left: 7%;
  right: 7%;
  margin: 0;
  font-family: 'Courier New', 'Menlo', 'Monaco', monospace;
  font-size: min(1rem, 4.2vw);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255, 228, 140, 0.9);
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.6),
    0 0 14px rgba(255, 200, 80, 0.2);
}

/* Row 4 – issued date */
.gcc-date {
  position: absolute;
  bottom: 20%;
  left: 7%;
  right: 7%;
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.5em;
}
.gcc-date-label {
  font-size: min(0.46rem, 1.9vw);
  letter-spacing: 0.18em;
  color: rgba(180, 135, 50, 0.5);
  text-transform: uppercase;
}
.gcc-date-value {
  font-size: min(0.58rem, 2.4vw);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255, 220, 120, 0.7);
}

/* Row 5 – cardholder name (left) + rank (right) */
.gcc-footer {
  position: absolute;
  bottom: 8%;
  left: 7%;
  right: 7%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.gcc-footer-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gcc-footer-item--right {
  align-items: flex-end;
}

.gcc-footer-label {
  font-size: min(0.5rem, 2.1vw);
  letter-spacing: 0.18em;
  color: rgba(180, 135, 50, 0.52);
  text-transform: uppercase;
}

.gcc-footer-value {
  font-size: min(0.72rem, 3.0vw);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 228, 140, 0.92);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 16ch;
}

.gcc-rank-text {
  letter-spacing: 0.26em;
  color: rgba(255, 205, 80, 0.9);
}

/* ── Rank-specific card backgrounds ── */

/* BRONZE – warm dark copper (default) */
.guild-credit-card.gcc-rank-bronze {
  background:
    radial-gradient(ellipse 65% 45% at 18% 8%,  rgba(210, 130, 50, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 55% 55% at 88% 92%, rgba(120, 60, 8, 0.3)    0%, transparent 60%),
    linear-gradient(145deg, #1c1006 0%, #2a1a08 18%, #1e1206 38%, #27180a 58%, #1a0e04 78%, #231408 100%);
  border-color: rgba(200, 130, 50, 0.4);
}

/* SILVER – dark cold steel */
.guild-credit-card.gcc-rank-silver {
  background:
    radial-gradient(ellipse 65% 45% at 18% 8%,  rgba(180, 200, 220, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 55% 55% at 88% 92%, rgba(80, 100, 130, 0.22)  0%, transparent 60%),
    linear-gradient(145deg, #0d1218 0%, #141e28 18%, #0d1420 38%, #121c28 58%, #0a1018 78%, #10181e 100%);
  border-color: rgba(140, 165, 195, 0.45);
  box-shadow:
    0 32px 72px rgba(0, 0, 0, 0.7),
    0 8px 24px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(200, 220, 255, 0.18),
    inset 0 0 0 1px rgba(140, 170, 210, 0.1);
}
.guild-credit-card.gcc-rank-silver .gcc-brand-text .gcc-brand-name,
.guild-credit-card.gcc-rank-silver .gcc-number,
.guild-credit-card.gcc-rank-silver .gcc-footer-value {
  color: rgba(200, 220, 245, 0.92);
}
.guild-credit-card.gcc-rank-silver .gcc-guild-label,
.guild-credit-card.gcc-rank-silver .gcc-brand-text .gcc-brand-sub,
.guild-credit-card.gcc-rank-silver .gcc-footer-label,
.guild-credit-card.gcc-rank-silver .gcc-date-label { color: rgba(150, 175, 210, 0.55); }
.guild-credit-card.gcc-rank-silver .gcc-date-value { color: rgba(190, 210, 240, 0.7); }
.guild-credit-card.gcc-rank-silver .gcc-rank-text { color: rgba(180, 205, 240, 0.9); }

/* GOLD – deep gold */
.guild-credit-card.gcc-rank-gold {
  background:
    radial-gradient(ellipse 65% 45% at 18% 8%,  rgba(255, 215, 60, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 55% 55% at 88% 92%, rgba(180, 110, 0, 0.35)   0%, transparent 60%),
    linear-gradient(145deg, #1a1200 0%, #261c00 18%, #1c1400 38%, #221a00 58%, #181000 78%, #201800 100%);
  border-color: rgba(220, 175, 40, 0.55);
  box-shadow:
    0 32px 72px rgba(0, 0, 0, 0.65),
    0 8px 24px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 235, 120, 0.25),
    inset 0 0 0 1px rgba(220, 175, 40, 0.12);
}
.guild-credit-card.gcc-rank-gold .gcc-brand-text .gcc-brand-name { color: rgba(255, 220, 80, 0.9); }
.guild-credit-card.gcc-rank-gold .gcc-number { color: rgba(255, 240, 160, 0.95); }

/* PLATINUM – dark titanium blue-gray */
.guild-credit-card.gcc-rank-platinum {
  background:
    radial-gradient(ellipse 65% 45% at 18% 8%,  rgba(150, 175, 220, 0.16) 0%, transparent 60%),
    radial-gradient(ellipse 55% 55% at 88% 92%, rgba(50, 70, 120, 0.24)   0%, transparent 60%),
    linear-gradient(145deg, #06080e 0%, #0c1220 18%, #060c16 38%, #0a1018 58%, #04080e 78%, #080e18 100%);
  border-color: rgba(150, 175, 230, 0.45);
  box-shadow:
    0 32px 72px rgba(0, 0, 0, 0.72),
    0 8px 24px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(180, 200, 255, 0.2),
    inset 0 0 0 1px rgba(150, 180, 240, 0.1);
}
.guild-credit-card.gcc-rank-platinum .gcc-brand-text .gcc-brand-name,
.guild-credit-card.gcc-rank-platinum .gcc-number,
.guild-credit-card.gcc-rank-platinum .gcc-footer-value { color: rgba(190, 210, 255, 0.92); }
.guild-credit-card.gcc-rank-platinum .gcc-guild-label,
.guild-credit-card.gcc-rank-platinum .gcc-brand-text .gcc-brand-sub,
.guild-credit-card.gcc-rank-platinum .gcc-footer-label,
.guild-credit-card.gcc-rank-platinum .gcc-date-label { color: rgba(130, 160, 220, 0.52); }
.guild-credit-card.gcc-rank-platinum .gcc-rank-text { color: rgba(170, 200, 255, 0.9); }
.guild-credit-card.gcc-rank-platinum .gcc-date-value { color: rgba(180, 205, 245, 0.7); }

/* BLACK – pure dark, subtle gold accents */
.guild-credit-card.gcc-rank-black {
  background:
    radial-gradient(ellipse 65% 45% at 18% 8%,  rgba(100, 70, 20, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 55% 55% at 88% 92%, rgba(50, 35, 8, 0.22)   0%, transparent 60%),
    linear-gradient(145deg, #060402 0%, #0c0804 18%, #080604 38%, #0a0804 58%, #040402 78%, #080604 100%);
  border-color: rgba(100, 75, 25, 0.35);
}
.guild-credit-card.gcc-rank-black .gcc-brand-text .gcc-brand-name { color: rgba(200, 165, 60, 0.85); }

/* BLACK_GOLD – pure dark with strong gold shimmer */
.guild-credit-card.gcc-rank-black-gold {
  background:
    radial-gradient(ellipse 65% 45% at 18% 8%,  rgba(255, 195, 50, 0.26) 0%, transparent 60%),
    radial-gradient(ellipse 55% 55% at 88% 92%, rgba(160, 100, 0, 0.4)    0%, transparent 60%),
    linear-gradient(145deg, #0e0900 0%, #160e00 18%, #0e0c00 38%, #140a00 58%, #0c0800 78%, #120e00 100%);
  border-color: rgba(230, 165, 30, 0.55);
  box-shadow:
    0 32px 72px rgba(0, 0, 0, 0.7),
    0 8px 24px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 220, 100, 0.28),
    inset 0 0 0 1px rgba(230, 165, 30, 0.14);
}
.guild-credit-card.gcc-rank-black-gold .gcc-brand-text .gcc-brand-name { color: rgba(255, 215, 70, 0.92); }
.guild-credit-card.gcc-rank-black-gold .gcc-number { color: rgba(255, 235, 140, 0.95); }
.guild-credit-card.gcc-rank-black-gold .gcc-rank-text { color: rgba(255, 210, 60, 0.95); }

.card-helper-box {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #5f4326;
  background: linear-gradient(180deg, rgba(244, 235, 213, 0.92), rgba(232, 215, 180, 0.9));
  border-color: rgba(152, 114, 66, 0.26);
}

.card-seal {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 206, 181, 0.2), transparent 18%),
    linear-gradient(180deg, #944335 0%, #7f2f27 100%);
  box-shadow:
    0 12px 20px rgba(103, 49, 34, 0.18),
    0 0 0 3px rgba(122, 45, 36, 0.12) inset;
  position: relative;
}

.card-seal::before {
  content: "EG";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 239, 221, 0.84);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.checkin-kicker {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: #8b5b2c;
}

.checkin-display-hero {
  text-align: center;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 247, 224, 0.9), transparent 18%),
    linear-gradient(180deg, rgba(247, 238, 214, 0.98), rgba(236, 220, 185, 0.96));
  border-color: rgba(145, 101, 47, 0.18);
  box-shadow:
    0 20px 44px rgba(79, 51, 25, 0.12),
    0 0 0 1px rgba(122, 83, 42, 0.08) inset;
}

.checkin-hero {
  text-align: center;
}

.checkin-hero h1 {
  margin-bottom: 8px;
}

.checkin-panel {
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.96), rgba(245, 236, 216, 0.94));
  border-color: rgba(152, 114, 66, 0.18);
  box-shadow:
    0 18px 40px rgba(79, 51, 25, 0.1),
    0 1px 0 rgba(255, 251, 242, 0.86) inset;
}

.checkin-surface {
  display: grid;
  gap: 18px;
  padding: 16px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 249, 236, 0.86), rgba(241, 228, 198, 0.72));
  border: 1px solid rgba(152, 114, 66, 0.16);
}

.checkin-stage-head {
  display: grid;
  gap: 6px;
  text-align: center;
}

.checkin-stage-head strong {
  font-size: 1.05rem;
  color: #4f3017;
}

.checkin-stage-head p {
  margin: 0;
  color: #755233;
  line-height: 1.6;
}

.checkin-panel .secondary-button {
  background: linear-gradient(180deg, #f6edd9, #e9d8ae);
  color: #56371c;
  border: 1px solid rgba(145, 101, 47, 0.18);
  box-shadow: 0 8px 18px rgba(111, 78, 36, 0.08);
}

.checkin-panel .primary-button {
  background: linear-gradient(180deg, #8d6330, #70481d 60%, #603814);
  box-shadow:
    0 14px 28px rgba(96, 56, 20, 0.2),
    0 0 0 1px rgba(255, 241, 217, 0.18) inset;
}

.checkin-main-button {
  display: grid;
  gap: 6px;
  width: 100%;
  min-height: 96px;
  padding: 20px 22px;
  border-radius: 22px;
  text-align: center;
}

.checkin-main-label {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.checkin-main-button small {
  font-size: 0.88rem;
  color: rgba(255, 243, 223, 0.82);
}

.checkin-manual,
.checkin-dev-note {
  margin: 0;
}

.checkin-manual summary,
.checkin-dev-note summary {
  cursor: pointer;
  list-style: none;
}

.checkin-manual summary::-webkit-details-marker,
.checkin-dev-note summary::-webkit-details-marker {
  display: none;
}

.checkin-manual summary {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 249, 236, 0.72);
  border: 1px dashed rgba(145, 101, 47, 0.28);
  color: #7b5630;
  text-align: center;
  font-size: 0.92rem;
}

.checkin-manual[open] summary {
  margin-bottom: 12px;
}

.checkin-manual form {
  padding-top: 2px;
}

.checkin-panel .field input {
  border-color: rgba(145, 101, 47, 0.18);
  background: linear-gradient(180deg, #fffdf8, #fbf4e5);
}

.checkin-panel .helper-box {
  background: linear-gradient(180deg, rgba(246, 238, 218, 0.94), rgba(235, 221, 190, 0.9));
  border-color: rgba(152, 114, 66, 0.26);
}

.checkin-dev-note {
  margin-top: 14px;
}

.checkin-dev-note summary {
  font-size: 0.82rem;
  color: #86603a;
}

.checkin-dev-note code {
  margin-top: 10px;
}

.checkin-panel .response-box {
  background: linear-gradient(180deg, #fffaf1, #f4ead0);
  border-color: rgba(152, 114, 66, 0.18);
}

.checkin-display-panel {
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.98), rgba(243, 232, 206, 0.94));
  border-color: rgba(145, 101, 47, 0.16);
  box-shadow:
    0 18px 40px rgba(79, 51, 25, 0.1),
    0 1px 0 rgba(255, 251, 242, 0.86) inset;
}

.checkin-display-copy {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
  text-align: center;
}

.checkin-display-copy strong {
  font-size: 1.25rem;
  color: #4f3017;
}

.checkin-display-copy p {
  margin: 0;
  color: #6a4928;
  line-height: 1.65;
}

.checkin-display-copy small {
  color: #87603b;
}

.checkin-display-note {
  margin-top: 18px;
  text-align: center;
  color: #5f4326;
  background: linear-gradient(180deg, rgba(244, 235, 213, 0.92), rgba(232, 215, 180, 0.9));
  border-color: rgba(152, 114, 66, 0.26);
}

.mypage-hero {
  position: relative;
  padding: 16px 18px 18px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 247, 224, 0.88), transparent 18%),
    radial-gradient(circle at 86% 14%, rgba(180, 127, 58, 0.14), transparent 22%),
    linear-gradient(180deg, rgba(247, 238, 214, 0.98), rgba(236, 220, 185, 0.96));
  border-color: rgba(145, 101, 47, 0.18);
  box-shadow:
    0 20px 44px rgba(79, 51, 25, 0.12),
    0 0 0 1px rgba(122, 83, 42, 0.08) inset;
  overflow: hidden;
}

/* ── コンパクトヒーローヘッド：タイトル左・ランクバッジ右 ── */
.mypage-hero-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.mypage-hero-text {
  flex: 1 1 0;
  min-width: 0;
}

.mypage-hero-rank {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding-top: 4px;
}

/* ── インラインランクバッジ（縦並び・コンパクト） ── */
.mypage-rank-inline {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 6px !important;
  width: auto !important;
  min-height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.mypage-rank-inline::before { display: none !important; }

.mypage-rank-inline .member-rank-badge__image {
  width: 64px !important;
  height: auto;
  flex: 0 0 auto;
  display: block;
  filter: drop-shadow(0 8px 14px rgba(73, 45, 17, 0.18));
}

.mypage-rank-inline .member-rank-badge__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 250, 239, 0.9), rgba(238, 224, 191, 0.92));
  border: 1px solid rgba(145, 101, 47, 0.16);
  box-shadow:
    0 4px 10px rgba(87, 57, 26, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #5e4224;
  line-height: 1;
  white-space: nowrap;
}

/* mypage-hero-text 内の h1 はコンパクトに */
.mypage-hero-text h1 {
  margin: 0 0 6px;
  font-size: 1.5rem;
}

.mypage-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(118, 83, 38, 0.025) 0 2px, transparent 2px 7px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 24%);
  pointer-events: none;
}

.mypage-kicker {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: #8c5c2f;
}

.mypage-lead {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  color: #6a4928;
  line-height: 1.7;
}

.mypage-member-no {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #8c6033;
  font-weight: 600;
}

.mypage-member-no span {
  color: #a7773d;
}

.mypage-name-form {
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
}

.mypage-name-form .field label {
  color: #6b4825;
}

.mypage-name-form .field input {
  border-color: rgba(145, 101, 47, 0.2);
  background: linear-gradient(180deg, rgba(255, 252, 244, 0.98), rgba(244, 234, 208, 0.94));
  color: #4f3017;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.88) inset,
    0 8px 18px rgba(79, 51, 25, 0.06);
}

.mypage-name-form .field input::placeholder {
  color: #a18260;
}

.mypage-name-button {
  background: linear-gradient(180deg, #f0dfba, #e1c48b);
  color: #4f3017;
  border: 1px solid rgba(145, 101, 47, 0.18);
  box-shadow:
    0 10px 22px rgba(100, 63, 24, 0.14),
    0 1px 0 rgba(255, 250, 238, 0.72) inset;
}

.mypage-response {
  position: relative;
  z-index: 1;
  margin-top: 0;
  margin-bottom: 16px;
  background: linear-gradient(180deg, rgba(250, 241, 217, 0.98), rgba(240, 225, 190, 0.94));
  border-color: rgba(145, 101, 47, 0.16);
  color: #6a4928;
}

.mypage-stat-chip {
  position: relative;
  z-index: 1;
  min-height: 116px;
  padding: 13px 14px;
  background: linear-gradient(180deg, rgba(255, 249, 236, 0.84), rgba(240, 226, 194, 0.72));
  border-color: rgba(145, 101, 47, 0.14);
  box-shadow: 0 8px 20px rgba(87, 57, 26, 0.08);
}

.mypage-stats-grid {
  gap: 9px;
}

.mypage-stats-grid .stat-chip strong {
  margin-top: 3px;
  font-size: 1.22rem;
  line-height: 1.15;
}

.mypage-stat-chip--compact {
  min-height: 96px;
  padding: 11px 13px 10px;
}

.mypage-stat-chip--compact .mypage-stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.01em;
}

.mypage-stat-chip--compact strong {
  font-size: 1.14rem;
}

.mypage-rank-chip {
  gap: 10px;
  min-height: 116px;
}

.mypage-rank-chip .member-rank-badge--image {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.9rem;
  width: 100%;
  min-height: auto;
  padding: 0.3rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #5e4224;
  letter-spacing: 0.12em;
}

.mypage-rank-chip .member-rank-badge--image::before {
  display: none;
}

.mypage-rank-chip .member-rank-badge__image {
  width: 76px;
  height: auto;
  max-width: 100%;
  flex: 0 0 auto;
  display: block;
  filter: drop-shadow(0 12px 18px rgba(73, 45, 17, 0.16));
}

.mypage-rank-chip .member-rank-badge__label {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.42rem 0.82rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 250, 239, 0.88), rgba(238, 224, 191, 0.92));
  border: 1px solid rgba(145, 101, 47, 0.16);
  box-shadow:
    0 8px 16px rgba(87, 57, 26, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
}

.mypage-rank-chip .member-rank-badge--image.is-image-fallback .member-rank-badge__label {
  background: linear-gradient(180deg, rgba(44, 37, 24, 0.96), rgba(18, 15, 10, 0.98));
  border-color: rgba(255, 220, 140, 0.24);
  color: #f4dfad;
  box-shadow:
    0 12px 26px rgba(30, 20, 8, 0.22),
    inset 0 1px 0 rgba(255, 243, 211, 0.12),
    inset 0 0 0 1px rgba(255, 214, 126, 0.08);
}

.card-meta-item .member-rank-badge--card-image {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 8px;
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #5a3a1e;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-meta-item .member-rank-badge--card-image::before {
  display: none;
}

.card-meta-item .member-rank-badge--card-image .member-rank-badge__image {
  width: 58px;
  height: auto;
  flex: 0 0 auto;
  display: block;
  filter: drop-shadow(0 10px 14px rgba(73, 45, 17, 0.14));
}

.card-meta-item .member-rank-badge--card-image .member-rank-badge__label {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: 0.34rem 0.68rem;
  border-radius: 999px;
  border: 1px solid rgba(145, 101, 47, 0.16);
  background: linear-gradient(180deg, rgba(255, 250, 239, 0.88), rgba(238, 224, 191, 0.92));
  box-shadow:
    0 6px 14px rgba(87, 57, 26, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
}

.card-meta-item .member-rank-badge--card-image.is-image-fallback .member-rank-badge__label {
  background: linear-gradient(180deg, rgba(44, 37, 24, 0.96), rgba(18, 15, 10, 0.98));
  border-color: rgba(255, 220, 140, 0.24);
  color: #f4dfad;
  box-shadow:
    0 10px 22px rgba(30, 20, 8, 0.2),
    inset 0 1px 0 rgba(255, 243, 211, 0.12),
    inset 0 0 0 1px rgba(255, 214, 126, 0.08);
}

@media (max-width: 640px) {
  .mypage-hero {
    padding: 16px;
  }

  .mypage-rank-chip .member-rank-badge--image {
    gap: 0.7rem;
  }

  .mypage-rank-chip .member-rank-badge__image {
    width: 62px;
  }

  .mypage-rank-chip .member-rank-badge__label {
    padding: 0.36rem 0.68rem;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }

  .card-meta-item .member-rank-badge--card-image {
    gap: 0.56rem;
  }

  .card-meta-item .member-rank-badge--card-image .member-rank-badge__image {
    width: 50px;
  }

  .card-meta-item .member-rank-badge--card-image .member-rank-badge__label {
    padding: 0.32rem 0.6rem;
    font-size: 0.64rem;
  }
}

.mypage-stat-label {
  color: #8a6038;
  line-height: 1.35;
}

.mypage-next-rank-note {
  display: block;
  margin-top: 3px;
  color: #7d5b3a;
  font-size: 0.72rem;
  line-height: 1.35;
}

.mypage-banner-panel {
  position: relative;
  z-index: 1;
  /* full-bleed: 親ヒーローの padding (18px 右左・18px 下) を相殺して端まで広げる */
  margin: 10px -18px -18px;
  padding: 0;
  border-radius: 0;
  background: none;
  border: none;
  box-shadow: none;
}

.mypage-banner-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  /* フルブリード panel なので横に padding を足して文字を揃える */
  padding: 0 18px;
  margin-bottom: 8px;
}

.mypage-banner-kicker {
  margin: 0;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: #9a6c34;
  white-space: nowrap;
}

.mypage-banner-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #5a381c;
}

.mypage-banner-carousel {
  position: relative;
  touch-action: pan-y;
}

.mypage-banner-viewport {
  overflow: hidden;
  /* 角丸・影は親 .mypage-hero の overflow:hidden に委ねる */
  border-radius: 0;
  border: none;
  background: none;
  box-shadow: none;
}

.mypage-banner-track {
  display: flex;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.mypage-banner-track.is-dragging {
  transition: none;
}

.mypage-banner-slide {
  position: relative;
  flex: 0 0 100%;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  /* aspect-ratio は画像本来の比率に委ねる */
  overflow: hidden;
  background: linear-gradient(180deg, rgba(245, 232, 204, 0.72), rgba(232, 213, 176, 0.82));
  cursor: pointer;
}

.mypage-banner-slide img {
  width: 100%;
  height: auto;   /* 画像を切らずに全体表示 */
  display: block;
}

.mypage-banner-overlay {
  position: absolute;
  inset: 0;
  /* height:auto の親でも全面を覆う */
  width: 100%;
  height: 100%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(72, 43, 16, 0.08)),
    linear-gradient(90deg, rgba(70, 41, 14, 0.04), transparent 28%, transparent 72%, rgba(70, 41, 14, 0.08));
  pointer-events: none;
}

.mypage-banner-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  padding-bottom: 14px;
}

.mypage-banner-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(137, 98, 55, 0.26);
  box-shadow: inset 0 1px 1px rgba(255, 252, 245, 0.6);
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.mypage-banner-dot.is-active {
  background: linear-gradient(180deg, #c8923b, #9f6923);
  box-shadow:
    0 4px 10px rgba(139, 91, 28, 0.24),
    inset 0 1px 0 rgba(255, 243, 208, 0.7);
  transform: scale(1.1);
}

.mypage-banner-dot:focus-visible {
  outline: 2px solid rgba(166, 112, 32, 0.46);
  outline-offset: 2px;
}

.mypage-banner-modal__dialog {
  width: min(94vw, 760px);
}

.mypage-banner-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.mypage-banner-modal__title {
  margin: 0;
  color: #4d3018;
}

.mypage-banner-modal__subtitle {
  margin: 4px 0 0;
  color: #765739;
  line-height: 1.6;
}

.mypage-banner-modal__close {
  flex: 0 0 auto;
}

.mypage-banner-modal__frame {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(83, 58, 31, 0.08);
  border: 1px solid rgba(145, 101, 47, 0.14);
}

.mypage-banner-modal__frame img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  background: rgba(255, 250, 240, 0.82);
}

.mypage-banner-modal__actions {
  justify-content: center;
  margin-top: 16px;
}

@media (max-width: 640px) {
  .mypage-banner-panel {
    /* mobile: 親ヒーローの padding は 16px (全辺) */
    margin: 10px -16px -16px;
  }

  .mypage-banner-viewport {
    border-radius: 0;
  }

  .mypage-banner-dots {
    margin-top: 10px;
  }

  .mypage-stat-chip {
    min-height: 108px;
  }

  .mypage-stat-chip--compact {
    min-height: 88px;
    padding: 10px 12px 9px;
  }

  .mypage-stats-grid .stat-chip strong {
    font-size: 1.16rem;
  }

  .mypage-banner-modal__dialog {
    width: min(94vw, 560px);
  }

  .mypage-banner-modal__head {
    display: grid;
    gap: 10px;
  }
}

.member-rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.2rem;
  padding: 0.52rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 220, 140, 0.24);
  background:
    linear-gradient(180deg, rgba(44, 37, 24, 0.96), rgba(18, 15, 10, 0.98)),
    linear-gradient(120deg, rgba(255, 228, 155, 0.18), rgba(255, 228, 155, 0));
  color: #f4dfad;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow:
    0 12px 26px rgba(30, 20, 8, 0.22),
    inset 0 1px 0 rgba(255, 243, 211, 0.12),
    inset 0 0 0 1px rgba(255, 214, 126, 0.08);
}

.member-rank-badge::before {
  content: "";
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #f0c48a, #ae6430);
  box-shadow: 0 0 0 4px rgba(255, 215, 146, 0.12);
}

.member-rank-badge[data-rank="silver"]::before {
  background: linear-gradient(180deg, #f5f8fb, #aeb9c8);
}

.member-rank-badge[data-rank="gold"]::before {
  background: linear-gradient(180deg, #fff0a8, #d19a25);
}

.member-rank-badge[data-rank="black"] {
  border-color: rgba(255, 216, 117, 0.36);
  background:
    radial-gradient(circle at top, rgba(255, 213, 101, 0.18), transparent 52%),
    linear-gradient(180deg, rgba(34, 31, 27, 0.98), rgba(10, 10, 10, 1));
  color: #ffe29a;
  box-shadow:
    0 16px 30px rgba(14, 12, 8, 0.32),
    inset 0 1px 0 rgba(255, 240, 190, 0.16),
    inset 0 0 0 1px rgba(255, 214, 126, 0.12);
}

.member-rank-badge[data-rank="black"]::before {
  background: linear-gradient(180deg, #ffe49d, #b88412);
  box-shadow: 0 0 0 4px rgba(255, 216, 117, 0.16);
}

.member-rank-badge--compact {
  padding: 0.42rem 0.78rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.card-rank-progress {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  color: #6a4d2b;
}

.card-rank-progress-label {
  font-size: 0.82rem;
  color: #86613a;
}

.mypage-menu {
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.98), rgba(243, 232, 206, 0.94));
  border-color: rgba(145, 101, 47, 0.16);
  box-shadow:
    0 18px 40px rgba(79, 51, 25, 0.1),
    0 1px 0 rgba(255, 251, 242, 0.86) inset;
}

.mypage-menu-title {
  margin: 0 0 14px;
  color: #5b381a;
}

.mypage-menu .action-tile {
  background:
    radial-gradient(circle at top right, rgba(197, 150, 78, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(255, 252, 245, 0.96), rgba(242, 231, 206, 0.9));
  border: 1px solid rgba(145, 101, 47, 0.14);
  box-shadow: 0 10px 24px rgba(79, 51, 25, 0.08);
}

.mypage-menu .action-tile--primary {
  grid-column: 1 / -1;
  gap: 8px;
  padding: 18px 18px 17px;
  background:
    radial-gradient(circle at top right, rgba(215, 169, 89, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(255, 251, 241, 0.98), rgba(238, 223, 189, 0.94));
  border-color: rgba(145, 101, 47, 0.2);
  box-shadow:
    0 14px 30px rgba(79, 51, 25, 0.1),
    0 1px 0 rgba(255, 248, 228, 0.72) inset;
}

.mypage-menu .action-tile--primary .action-tile__eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #9a6c2f;
  text-transform: uppercase;
}

.mypage-menu .action-tile--primary strong {
  font-size: 1.06rem;
}

.mypage-menu .action-tile strong {
  color: #4f3017;
}

.mypage-menu .action-tile .muted {
  color: #7a5734;
}

.ledger-list .primary-button {
  background: linear-gradient(180deg, #eed8aa, #dfbd7a 62%, #c99649);
  color: #4d2f16;
  border: 1px solid rgba(132, 87, 36, 0.18);
  box-shadow:
    0 12px 24px rgba(98, 62, 24, 0.14),
    0 1px 0 rgba(255, 246, 224, 0.76) inset;
}

.ledger-list .primary-button:disabled {
  background: linear-gradient(180deg, #e8dcc4, #d8c8a8);
  color: #8b775b;
  box-shadow: none;
}

.ledger-hero {
  position: relative;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 247, 224, 0.88), transparent 18%),
    radial-gradient(circle at 86% 14%, rgba(180, 127, 58, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(247, 238, 214, 0.98), rgba(236, 220, 185, 0.96));
  border-color: rgba(145, 101, 47, 0.18);
  box-shadow:
    0 20px 44px rgba(79, 51, 25, 0.12),
    0 0 0 1px rgba(122, 83, 42, 0.08) inset;
  overflow: hidden;
}

.ledger-hero--sealed {
  padding-top: 28px;
  transition: box-shadow 420ms ease, transform 420ms ease, border-color 420ms ease;
}

.ledger-hero--sealed.is-unlocked {
  border-color: rgba(173, 127, 52, 0.24);
  box-shadow:
    0 24px 52px rgba(79, 51, 25, 0.14),
    0 0 0 1px rgba(170, 121, 44, 0.12) inset;
}

.ledger-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(118, 83, 38, 0.025) 0 2px, transparent 2px 7px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 24%);
  pointer-events: none;
}

.ledger-secret-gate {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 84px 1fr auto;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(52, 41, 24, 0.92), rgba(28, 22, 14, 0.96)),
    linear-gradient(120deg, rgba(255, 220, 136, 0.08), rgba(255, 220, 136, 0));
  border: 1px solid rgba(255, 214, 126, 0.18);
  box-shadow:
    0 16px 30px rgba(44, 27, 9, 0.18),
    inset 0 1px 0 rgba(255, 237, 188, 0.08);
}

.ledger-secret-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.ledger-secret-copy strong {
  color: #f4dfad;
  font-size: 0.96rem;
  letter-spacing: 0.06em;
}

.ledger-secret-copy span {
  color: rgba(244, 223, 173, 0.78);
  font-size: 0.82rem;
  line-height: 1.55;
}

.ledger-secret-copy span em {
  font-style: normal;
  color: rgba(255, 224, 130, 0.96);
  font-weight: 700;
}

.ledger-seal-button {
  position: relative;
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 230, 140, 0.16), transparent 58%),
    radial-gradient(circle, rgba(58, 44, 22, 0.46), rgba(18, 13, 7, 0.82));
  box-shadow:
    0 16px 32px rgba(36, 20, 6, 0.26),
    inset 0 0 0 1px rgba(255, 219, 138, 0.28),
    inset 0 1px 0 rgba(255, 240, 197, 0.16);
  cursor: pointer;
  /* iOSで画像の長押しコンテキストメニューを抑制 */
  -webkit-touch-callout: none;
  user-select: none;
  touch-action: none;
  will-change: transform;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 220ms ease;
}

.ledger-seal-button.is-pressing .ledger-seal-ring {
  animation: none; /* ブレス停止・プレス演出に切り替え */
  transform: scale(1.12);
  opacity: 1;
}

.ledger-seal-button.is-pressing {
  transform: translateY(-1px) scale(1.02);
}

.ledger-seal-button.is-awakened .ledger-seal-ring {
  animation: ledgerSealPulse 900ms ease-out;
}

.ledger-seal-image,
.ledger-seal-ring {
  position: absolute;
}

.ledger-seal-image {
  inset: 6px; /* ボタン内側に余白を設けてリングとの間隔を確保 */
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  display: block;
  object-fit: contain;
  border-radius: 999px;
  filter:
    drop-shadow(0 0 8px rgba(255, 210, 100, 0.28))
    drop-shadow(0 6px 14px rgba(15, 10, 6, 0.32));
}

.ledger-seal-ring {
  inset: -5px;
  border: 1.5px solid rgba(255, 219, 138, 0.52);
  border-radius: 999px;
  opacity: 0.64;
  pointer-events: none;
  animation: ledgerSealBreath 2.8s ease-in-out infinite;
}

.ledger-whisper {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  color: #8a6841;
  font-size: 0.88rem;
  line-height: 1.7;
}

.ledger-rank-trigger {
  border: 0;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 220ms ease;
}

[data-secret-trigger].is-pressing:not(.ledger-seal-button) {
  transform: translateY(-1px) scale(1.02);
}

[data-secret-trigger].is-awakened:not(.ledger-seal-button) {
  box-shadow:
    0 0 0 1px rgba(255, 214, 126, 0.18),
    0 16px 30px rgba(20, 12, 6, 0.16);
}

.brand[data-secret-trigger] {
  transition: transform 180ms ease, filter 180ms ease;
}

.brand[data-secret-trigger].is-pressing {
  filter: drop-shadow(0 8px 20px rgba(154, 112, 46, 0.12));
}

.brand[data-secret-trigger].is-dormant {
  opacity: 0.96;
}

[data-secret-hide-on-unlock].is-hidden {
  display: none !important;
}

@media (max-width: 640px) {
  .ledger-secret-gate {
    grid-template-columns: 84px 1fr;
    gap: 14px;
    padding: 14px 16px;
  }

  .ledger-rank-trigger {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

.ledger-kicker {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: #8c5c2f;
}

.ledger-lead {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #6a4928;
  line-height: 1.7;
}

.ledger-list .list-card {
  background:
    radial-gradient(circle at top right, rgba(197, 150, 78, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(255, 252, 245, 0.96), rgba(242, 231, 206, 0.9));
  border: 1px solid rgba(145, 101, 47, 0.14);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(79, 51, 25, 0.08);
}

.ledger-list--sealed .ledger-entry {
  background:
    radial-gradient(circle at top right, rgba(155, 120, 66, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(252, 248, 239, 0.96), rgba(234, 226, 204, 0.92));
}

.ledger-list--open .ledger-entry {
  background:
    radial-gradient(circle at top right, rgba(255, 213, 112, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 251, 240, 0.98), rgba(243, 232, 205, 0.94));
}

.ledger-list.is-revealed .ledger-entry {
  animation: ledgerRevealIn 420ms ease both;
}

.ledger-entry {
  position: relative;
  overflow: hidden;
  padding: 18px;
}

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

.ledger-entry__amount {
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #5d3e1f;
}

.ledger-entry--debit .ledger-entry__amount {
  color: #754223;
}

.ledger-entry__detail {
  color: #6f563c;
  line-height: 1.7;
}

.ledger-entry__balance {
  color: #8a6640;
  font-size: 0.9rem;
}

.ledger-entry__mark {
  position: absolute;
  right: 16px;
  bottom: 14px;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: rgba(125, 87, 45, 0.62);
}

.ledger-entry__mark--sealed {
  color: rgba(136, 111, 78, 0.66);
}

.travel-hero {
  padding-bottom: 26px;
}

.travel-record-list {
  display: grid;
  gap: 18px;
}

.travel-record-card {
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 22px;
  background:
    radial-gradient(circle at 84% 18%, rgba(204, 164, 96, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(240, 231, 209, 0.94));
  border: 1px solid rgba(145, 101, 47, 0.14);
  border-radius: 22px;
  box-shadow:
    0 14px 28px rgba(76, 50, 25, 0.08),
    inset 0 1px 0 rgba(255, 250, 238, 0.78);
}

.travel-record-card__crest {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(67, 45, 18, 0.94), rgba(38, 25, 8, 0.98));
  color: #f6d487;
  font-size: 1.12rem;
  box-shadow:
    0 12px 24px rgba(36, 23, 9, 0.16),
    inset 0 1px 0 rgba(255, 234, 186, 0.12);
}

.travel-record-card__body {
  display: grid;
  gap: 8px;
}

.travel-record-card__narrative {
  margin: 0;
  color: #6d5235;
  line-height: 1.8;
}

.travel-record-card__support {
  color: #8a6840;
  font-size: 0.84rem;
  letter-spacing: 0.03em;
}

.travel-record-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── 来店記録 封印/解除 状態 ── */

.travel-record-card {
  position: relative;
  overflow: hidden;
}

.travel-record-card__mark {
  position: absolute;
  right: 16px;
  bottom: 14px;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: rgba(125, 87, 45, 0.5);
  font-weight: 600;
}

.travel-record-card__mark--sealed {
  color: rgba(130, 100, 65, 0.55);
}

/* 封印中：カードをやや暗く・パーチメント調 */
.travel-record-list.ledger-list--sealed .travel-record-card {
  background:
    radial-gradient(circle at 84% 18%, rgba(140, 110, 60, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(248, 243, 230, 0.98), rgba(232, 221, 196, 0.94));
  border-color: rgba(130, 92, 40, 0.12);
  box-shadow:
    0 10px 22px rgba(65, 42, 18, 0.09),
    inset 0 1px 0 rgba(245, 236, 214, 0.72);
}

.travel-record-list.ledger-list--sealed .travel-record-card__crest {
  background: linear-gradient(180deg, rgba(52, 36, 14, 0.88), rgba(30, 20, 6, 0.92));
  color: rgba(212, 165, 82, 0.82);
}

.travel-record-list.ledger-list--sealed .travel-record-card__narrative {
  color: #7a6147;
  font-style: italic;
}

/* 解除済み：金の光沢をまとう */
.travel-record-list.ledger-list--open .travel-record-card {
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 213, 112, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(255, 252, 242, 0.99), rgba(244, 233, 207, 0.96));
  border-color: rgba(160, 112, 48, 0.18);
  box-shadow:
    0 16px 32px rgba(76, 50, 25, 0.1),
    inset 0 1px 0 rgba(255, 248, 224, 0.88);
}

/* 封印解除時のスライドイン */
.travel-record-list.is-revealed .travel-record-card {
  animation: ledgerRevealIn 420ms ease both;
}

.secret-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
}

.secret-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 16, 10, 0.48);
  backdrop-filter: blur(6px);
}

.secret-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 460px);
  margin: 10vh auto 0;
  background:
    radial-gradient(circle at top, rgba(255, 217, 128, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 250, 240, 0.98), rgba(239, 228, 201, 0.96));
  border-color: rgba(145, 101, 47, 0.18);
  box-shadow:
    0 26px 52px rgba(34, 22, 9, 0.22),
    inset 0 1px 0 rgba(255, 248, 228, 0.84);
}

.secret-modal__lead {
  margin: 0 0 16px;
  color: #6f5332;
  line-height: 1.8;
}

.has-secret-modal {
  overflow: hidden;
}

@keyframes ledgerSealBreath {
  0%, 100% {
    opacity: 0.36;
    transform: scale(1);
    border-color: rgba(255, 219, 138, 0.42);
  }
  50% {
    opacity: 0.82;
    transform: scale(1.08);
    border-color: rgba(255, 219, 138, 0.72);
  }
}

@keyframes ledgerSealPulse {
  0% {
    transform: scale(1);
    opacity: 0.82;
  }
  60% {
    transform: scale(1.18);
    opacity: 1;
  }
  100% {
    transform: scale(1.28);
    opacity: 0;
  }
}

@keyframes ledgerRevealIn {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.ledger-list .list-card strong {
  color: #4f3017;
}

.ledger-list .list-card .meta {
  color: #7a5734;
}

.ledger-list .badge {
  background: linear-gradient(180deg, #f6edd9, #e9d8ae);
  color: #6a4320;
  box-shadow: 0 6px 14px rgba(111, 78, 36, 0.08);
}

.rewards-list .reward-item {
  display: flex;
  gap: 12px;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 18px;
}

.rewards-list .reward-item .badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
}

.rewards-list .reward-thumb {
  width: 130px;
  flex: 0 0 130px;
}

.rewards-list .reward-thumb[hidden] {
  display: none;
}

.rewards-list .reward-thumb img {
  width: 130px;
  height: 78px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 8px;
  border: 1px solid rgba(126, 86, 38, 0.16);
  background: linear-gradient(180deg, rgba(252, 247, 236, 0.96), rgba(232, 216, 181, 0.92));
  box-shadow:
    0 6px 14px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 247, 228, 0.58);
}

.rewards-list .reward-body {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 8px;
}

.rewards-list .reward-title {
  padding-right: 92px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.45;
  color: #4f3017;
}

.rewards-list .reward-desc {
  font-size: 13px;
  line-height: 1.7;
  color: #6b5a3a;
}

.rewards-list .reward-actions {
  margin-top: 4px;
}

/* ── benefits list ─────────────────────────────────────────── */

.benefits-list {
  display: grid;
  gap: 14px;
}

/* slip card — two-column: 4px ledge + body */
.benefit-slip {
  display: grid;
  grid-template-columns: 4px 1fr;
  background:
    radial-gradient(ellipse at top right, rgba(197, 150, 78, 0.09) 0%, transparent 55%),
    linear-gradient(170deg, rgba(255, 253, 246, 0.97) 0%, rgba(243, 232, 208, 0.93) 100%);
  border: 1px solid rgba(145, 101, 47, 0.13);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 8px 22px rgba(60, 38, 14, 0.07),
    inset 0 1px 0 rgba(255, 248, 231, 0.65);
  transition: box-shadow 0.2s;
}

.benefit-slip--used,
.benefit-slip--expired,
.benefit-slip--canceled {
  opacity: 0.62;
}

/* left status ledge */
.benefit-slip__ledge {
  width: 4px;
  border-radius: 0;
}

.benefit-slip--owned    .benefit-slip__ledge { background: linear-gradient(180deg, #d4a84b, #b8873a); }
.benefit-slip--used     .benefit-slip__ledge { background: linear-gradient(180deg, #a09074, #887b68); }
.benefit-slip--expired  .benefit-slip__ledge { background: linear-gradient(180deg, #a0664a, #8a4c32); }
.benefit-slip--canceled .benefit-slip__ledge { background: linear-gradient(180deg, #7e7068, #6a5f58); }

.benefit-slip__body {
  padding: 16px 18px;
}

/* head: title + badge inline */
.benefit-slip__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.benefit-slip__title {
  display: block;
  color: #3d2508;
  font-size: 1rem;
  line-height: 1.45;
}

/* status badge pill */
.benefit-slip__badge {
  flex: 0 0 auto;
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.74rem;
  letter-spacing: 0.07em;
  font-weight: 600;
  white-space: nowrap;
}

.benefit-slip__badge--owned {
  background: linear-gradient(180deg, #f6edcf, #e8d29a);
  color: #6a3f14;
  border: 1px solid rgba(180, 130, 60, 0.22);
}

.benefit-slip__badge--used {
  background: linear-gradient(180deg, #eae6de, #d4cdc0);
  color: #52473a;
  border: 1px solid rgba(130, 118, 100, 0.18);
}

.benefit-slip__badge--expired {
  background: linear-gradient(180deg, #ecddd1, #d9c0a8);
  color: #7a3e22;
  border: 1px solid rgba(160, 100, 70, 0.18);
}

.benefit-slip__badge--canceled {
  background: linear-gradient(180deg, #e4ddd8, #cec5bc);
  color: #5a4f48;
  border: 1px solid rgba(120, 100, 90, 0.15);
}

/* coupon image — full-bleed top of slip */
.benefit-slip__image-wrap {
  margin: -16px -18px 14px;
  overflow: hidden;
}

.benefit-slip__image-wrap[hidden] {
  display: none;
}

.benefit-slip__image {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  object-position: center;
}

.benefit-slip__desc {
  margin: 10px 0 0;
  color: #6b5535;
  font-size: 0.9rem;
  line-height: 1.8;
}

/* expiry line */
.benefit-slip__expiry {
  margin-top: 10px;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}

.benefit-slip__expiry--owned   { color: #7a5c2e; }
.benefit-slip__expiry--used    { color: #7a7060; }
.benefit-slip__expiry--expired { color: #9a4c2e; }
.benefit-slip__expiry--canceled { color: #7a7070; }

/* present_note — owned only */
.benefit-slip__note {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px dashed rgba(145, 101, 47, 0.2);
  color: #6f5030;
  font-size: 0.86rem;
  line-height: 1.75;
}

/* CTA area */
.benefit-slip__actions {
  margin-top: 14px;
}

.benefit-slip__cta {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(160deg, #c8992a, #a87520);
  color: #fffbe8;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow:
    0 3px 10px rgba(100, 60, 10, 0.22),
    inset 0 1px 0 rgba(255, 240, 180, 0.3);
  transition: background 0.18s, box-shadow 0.18s, transform 0.12s;
}

.benefit-slip__cta:hover {
  background: linear-gradient(160deg, #d9a93a, #be8528);
  box-shadow:
    0 5px 16px rgba(100, 60, 10, 0.3),
    inset 0 1px 0 rgba(255, 240, 180, 0.35);
}

.benefit-slip__cta:active {
  transform: translateY(1px);
}

/* custom empty state */
.benefit-empty {
  padding: 48px 20px 40px;
  text-align: center;
}

.benefit-empty__msg {
  color: #8a7050;
  font-size: 0.96rem;
  margin-bottom: 18px;
}

.benefit-empty__link {
  display: inline-block;
  padding: 9px 22px;
  background: linear-gradient(160deg, rgba(197, 150, 78, 0.14), rgba(197, 150, 78, 0.08));
  border: 1px solid rgba(145, 101, 47, 0.22);
  border-radius: 24px;
  color: #7a5728;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s;
}

.benefit-empty__link:hover {
  background: linear-gradient(160deg, rgba(197, 150, 78, 0.24), rgba(197, 150, 78, 0.14));
  border-color: rgba(145, 101, 47, 0.36);
}

/* ── activating（使用中）カード ─────────────────────────────── */

.benefit-slip--activating {
  opacity: 1 !important;
  border-color: rgba(197, 150, 60, 0.38);
  animation: benefitActivatingPulse 2.4s ease-in-out infinite;
}

@keyframes benefitActivatingPulse {
  0%, 100% {
    box-shadow:
      0 8px 22px rgba(60, 38, 14, 0.07),
      inset 0 1px 0 rgba(255, 248, 231, 0.65);
  }
  50% {
    box-shadow:
      0 8px 32px rgba(197, 150, 60, 0.28),
      0 0 0 2px rgba(197, 150, 60, 0.18),
      inset 0 1px 0 rgba(255, 248, 231, 0.65);
  }
}

.benefit-slip--activating .benefit-slip__ledge {
  background: linear-gradient(180deg, #f0c040, #c89020);
  animation: activatingLedgePulse 2.4s ease-in-out infinite;
}

@keyframes activatingLedgePulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.7; }
}

.benefit-slip__staff-note {
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(197, 150, 60, 0.1);
  border: 1px solid rgba(197, 150, 60, 0.22);
  border-radius: 8px;
  color: #6a4010;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-align: center;
}

.benefit-slip__countdown {
  margin: 12px 0 2px;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #8a6020;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.benefit-slip__progress {
  height: 5px;
  background: rgba(197, 150, 60, 0.18);
  border-radius: 3px;
  overflow: hidden;
  margin: 2px 0 14px;
}

.benefit-slip__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #c89020, #f0d060);
  border-radius: 3px;
  transition: width 1s linear;
}

/* ── 使用確定スライドモーダル ───────────────────────────────── */

.benefit-use-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.benefit-use-modal.is-hidden {
  display: none;
}

.benefit-use-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 12, 4, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.benefit-use-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  border-radius: 20px;
  padding: 28px 24px 32px;
  background:
    radial-gradient(ellipse at top, rgba(197, 150, 78, 0.1) 0%, transparent 60%),
    linear-gradient(180deg, rgba(255, 253, 246, 0.99) 0%, rgba(245, 234, 210, 0.97) 100%);
}

.benefit-use-modal__title {
  font-size: 1.15rem;
  color: #3d2508;
  margin: 8px 0 10px;
}

.benefit-use-modal__lead {
  color: #6b5030;
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 14px;
}

.benefit-use-modal__name {
  font-size: 1rem;
  font-weight: 700;
  color: #4a2e08;
  margin: 0 0 18px;
  padding: 10px 14px;
  background: rgba(197, 150, 78, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(145, 101, 47, 0.16);
}

.benefit-use-modal__cancel {
  margin-top: 16px;
}

.notification-image-button {
  display: block;
  width: 100%;
  margin: 8px 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.notification-image-button img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 8px;
}

.notification-image-modal__dialog {
  width: min(94vw, 560px);
}

.notification-image-modal__title {
  margin: 0 0 12px;
}

.notification-image-modal__frame {
  border-radius: 14px;
  overflow: hidden;
  background: rgba(83, 58, 31, 0.08);
  border: 1px solid rgba(145, 101, 47, 0.12);
}

.notification-image-modal__frame img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  background: rgba(255, 250, 240, 0.82);
}

.notification-image-modal__actions {
  justify-content: center;
  margin-top: 14px;
}

/* ── スライド確認コンポーネント ─────────────────────────────── */

.slide-confirm__track {
  position: relative;
  height: 54px;
  background: rgba(197, 150, 78, 0.14);
  border: 1px solid rgba(145, 101, 47, 0.22);
  border-radius: 27px;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.slide-confirm__fill {
  position: absolute;
  inset: 0 0 0 0;
  width: 0%;
  background: linear-gradient(90deg, rgba(197, 150, 60, 0.28), rgba(240, 192, 64, 0.36));
  pointer-events: none;
  transition: width 0.05s linear;
}

.slide-confirm__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7a5020;
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  pointer-events: none;
  transition: opacity 0.1s;
}

.slide-confirm__thumb {
  position: absolute;
  left: 4px;
  top: 4px;
  bottom: 4px;
  width: 46px;
  background: linear-gradient(160deg, #d4a84b, #a87520);
  border-radius: 23px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fffbe8;
  font-size: 1rem;
  cursor: grab;
  touch-action: none;
  box-shadow:
    0 2px 8px rgba(100, 60, 10, 0.28),
    inset 0 1px 0 rgba(255, 240, 180, 0.3);
  transition: background 0.15s;
  will-change: transform;
}

.slide-confirm__thumb:active {
  cursor: grabbing;
  background: linear-gradient(160deg, #e0b84e, #b8852a);
}

/* ── benefit-slip__badge activating ────────────────────────── */

.benefit-slip__badge--activating {
  background: linear-gradient(180deg, #f6e580, #e8c830);
  color: #5a3e08;
  border: 1px solid rgba(200, 150, 20, 0.3);
  animation: activatingBadgePulse 2.4s ease-in-out infinite;
}

@keyframes activatingBadgePulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.78; }
}

.reward-chest-modal__dialog {
  width: min(92vw, 520px);
}

.reward-chest-modal__summary {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.reward-chest-modal__thumb {
  width: 72px;
  flex: 0 0 72px;
}

.reward-chest-modal__thumb[hidden] {
  display: none;
}

.reward-chest-modal__thumb img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(126, 86, 38, 0.16);
  background: linear-gradient(180deg, rgba(252, 247, 236, 0.96), rgba(232, 216, 181, 0.92));
  box-shadow:
    0 8px 18px rgba(46, 28, 10, 0.16),
    inset 0 1px 0 rgba(255, 247, 228, 0.58);
}

.reward-chest-modal__meta {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.reward-chest-modal__title {
  color: #4f3017;
  font-size: 1rem;
}

.reward-chest-modal__points {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #f6edd9, #e9d8ae);
  color: #6a4320;
  box-shadow: 0 6px 14px rgba(111, 78, 36, 0.08);
  font-weight: 700;
}

.reward-chest-modal__text {
  margin: 0;
  color: #6b5a3a;
  line-height: 1.7;
  font-size: 0.92rem;
}

.reward-chest-ritual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 168px;
  margin: 10px 0 16px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 220, 144, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(101, 71, 35, 0.08), rgba(56, 36, 16, 0.12));
  border: 1px solid rgba(145, 101, 47, 0.12);
  overflow: hidden;
}

.reward-chest-ritual__image {
  width: min(170px, 54vw);
  height: auto;
  display: block;
  transform-origin: 50% 80%;
  filter: drop-shadow(0 16px 22px rgba(43, 25, 8, 0.2));
}

.reward-chest-ritual.is-opening .reward-chest-ritual__image {
  animation: rewardChestSettle 820ms ease forwards;
}

.reward-chest-ritual[data-state="openLight"] .reward-chest-ritual__image,
.reward-chest-ritual[data-state="opened"] .reward-chest-ritual__image {
  filter:
    drop-shadow(0 0 18px rgba(255, 205, 112, 0.32))
    drop-shadow(0 16px 24px rgba(43, 25, 8, 0.18));
}

.reward-chest-modal__response {
  margin-bottom: 12px;
}

.reward-chest-modal__actions {
  justify-content: flex-end;
}

@keyframes rewardChestSettle {
  0% {
    transform: translateY(0);
  }
  18% {
    transform: translateY(6px);
  }
  52% {
    transform: translateY(2px);
  }
  100% {
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  /* ── mobile: vertical card layout ─────────────────────── */
  .rewards-list .reward-item {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
  }

  .rewards-list .reward-thumb {
    width: 100%;
    flex-basis: auto;
  }

  .rewards-list .reward-thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 3;
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: none;
  }

  .rewards-list .reward-body {
    padding: 14px 16px 16px;
  }

  .rewards-list .reward-item .badge {
    position: absolute;
    top: 10px;
    right: 10px;
    margin-bottom: 0;
  }

  .rewards-list .reward-title {
    padding-right: 52px; /* badge がコンテンツ上に来る場合の余白 */
  }

  .rewards-list .reward-actions {
    margin-top: 10px;
  }

  .rewards-list .reward-actions .primary-button {
    width: 100%;
    text-align: center;
  }

  .reward-chest-modal__summary {
    align-items: flex-start;
  }

  .reward-chest-modal__thumb {
    width: 60px;
    flex-basis: 60px;
  }

  .reward-chest-modal__thumb img {
    width: 60px;
    height: 60px;
  }

  .reward-chest-ritual {
    min-height: 152px;
  }

  .reward-chest-ritual__image {
    width: min(154px, 62vw);
  }
}

.list-card {
  display: grid;
  gap: 8px;
}

.list-card .meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #eef8ff, #dcefff);
  color: var(--accent-strong);
  font-size: 0.85rem;
  width: fit-content;
  box-shadow: 0 6px 14px rgba(40, 110, 190, 0.1);
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  background: linear-gradient(180deg, rgba(255, 250, 241, 0.96), rgba(239, 227, 198, 0.94));
  border-top: 1px solid rgba(145, 101, 47, 0.14);
  backdrop-filter: blur(18px);
  box-shadow: 0 -10px 28px rgba(79, 51, 25, 0.08);
}

.bottom-nav a {
  background: transparent;
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 48px;
  padding: 12px 4px;
  font-size: 0.8rem;
  line-height: 1.2;
  color: #6e4a28;
}

.bottom-nav a:hover {
  background: rgba(255, 248, 233, 0.42);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%) translateY(18px);
  background: linear-gradient(180deg, rgba(30, 42, 62, 0.94), rgba(22, 58, 104, 0.92));
  color: #fff;
  padding: 12px 16px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  box-shadow: 0 14px 26px rgba(35, 74, 126, 0.22);
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.auth-wrap {
  max-width: 520px;
  margin: 18px auto 0;
}

.auth-card {
  margin-top: 22px;
}

.auth-shell .member-header {
  margin-bottom: 10px;
}

.tavern-auth {
  display: grid;
  gap: 18px;
}

.auth-hero-card,
.auth-tavern-card {
  position: relative;
  overflow: hidden;
}

.auth-start-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 14%, rgba(214, 164, 89, 0.14), transparent 22%),
    linear-gradient(180deg, rgba(63, 17, 14, 0.96), rgba(40, 10, 8, 0.98));
  border: 1px solid rgba(214, 164, 89, 0.24);
  box-shadow:
    0 22px 46px rgba(35, 12, 9, 0.22),
    0 1px 0 rgba(255, 226, 176, 0.08) inset;
}

.auth-start-card--compact {
  padding: 10px 12px;
  border-radius: 18px;
}

.auth-start-card--compact .auth-start-head {
  gap: 2px;
  margin-bottom: 8px;
}

.auth-start-card--compact .auth-start-head h2 {
  font-size: 1rem;
  line-height: 1.35;
}

.auth-start-card--compact .auth-section-kicker--start {
  margin-bottom: 0;
  font-size: 0.64rem;
  letter-spacing: 0.12em;
}

.auth-start-card--compact .auth-start-head .auth-section-note {
  font-size: 0.76rem;
  line-height: 1.35;
  color: rgba(255, 233, 201, 0.72);
}

.auth-start-card--compact .auth-start-button {
  padding: 10px 12px;
  border-radius: 14px;
  gap: 2px;
  box-shadow:
    0 10px 20px rgba(16, 5, 3, 0.18),
    0 1px 0 rgba(255, 230, 186, 0.12) inset;
}

.auth-start-card--compact .auth-start-button span {
  font-size: 0.86rem;
  line-height: 1.25;
}

.auth-start-card--compact .auth-start-button small {
  display: block;
  font-size: 0.68rem;
  color: #ddb97f;
}

.auth-start-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 180, 91, 0.08), transparent 30%),
    repeating-linear-gradient(90deg, rgba(255, 225, 182, 0.02) 0 2px, transparent 2px 8px);
  pointer-events: none;
}

.auth-hero-card {
  color: #fff4dd;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 214, 123, 0.16), transparent 18%),
    radial-gradient(circle at 82% 20%, rgba(255, 173, 76, 0.12), transparent 20%),
    linear-gradient(180deg, rgba(43, 23, 10, 0.96), rgba(24, 13, 6, 0.96));
  border: 1px solid rgba(179, 128, 59, 0.24);
  box-shadow:
    0 24px 54px rgba(35, 19, 7, 0.28),
    0 0 0 1px rgba(255, 216, 150, 0.06) inset;
}

.auth-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 184, 76, 0.08), transparent 28%),
    repeating-linear-gradient(90deg, rgba(255, 232, 185, 0.02) 0 2px, transparent 2px 8px);
  pointer-events: none;
}

.auth-ribbon {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin: -6px auto 16px;
  padding: 10px 18px;
  background: linear-gradient(180deg, #dfc08c, #c59a58);
  color: #533215;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow:
    0 10px 20px rgba(20, 10, 4, 0.22),
    0 1px 0 rgba(255, 243, 217, 0.48) inset;
}

.auth-kicker {
  position: relative;
  z-index: 1;
  margin-bottom: 8px;
  color: #d6a85c;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
}

.auth-hero-card h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(2.1rem, 8vw, 3.4rem);
  line-height: 0.98;
  color: #ffd36e;
  text-shadow:
    0 2px 0 rgba(76, 39, 10, 0.8),
    0 10px 24px rgba(0, 0, 0, 0.34);
}

.auth-catch {
  position: relative;
  z-index: 1;
  display: inline-grid;
  gap: 6px;
  margin: 16px 0 0;
  padding: 12px 16px;
  background: linear-gradient(180deg, rgba(110, 24, 16, 0.94), rgba(77, 15, 11, 0.94));
  border: 1px solid rgba(214, 164, 89, 0.32);
  border-radius: 16px;
  color: #fff0d2;
  font-size: 1.15rem;
  font-weight: 800;
  box-shadow:
    0 14px 30px rgba(12, 5, 2, 0.28),
    0 1px 0 rgba(255, 228, 173, 0.12) inset;
}

.auth-catch span {
  font-size: 0.88rem;
  font-weight: 600;
  color: #f1d8ac;
}

.auth-lead {
  position: relative;
  z-index: 1;
  margin: 16px 0 0;
  color: rgba(255, 237, 204, 0.88);
  line-height: 1.8;
}

.auth-benefit-grid,
.auth-quest-board {
  position: relative;
  z-index: 1;
  margin-top: 18px;
}

.auth-benefit-grid {
  display: grid;
  gap: 10px;
}

.auth-benefit-tile,
.auth-quest-board {
  background:
    linear-gradient(180deg, rgba(240, 218, 180, 0.96), rgba(220, 189, 136, 0.94));
  border: 1px solid rgba(140, 93, 38, 0.28);
  color: #4d2e16;
  border-radius: 18px;
  box-shadow:
    0 14px 28px rgba(18, 8, 3, 0.16),
    0 1px 0 rgba(255, 245, 218, 0.52) inset;
}

.auth-benefit-tile {
  padding: 14px 16px;
  display: grid;
  gap: 4px;
}

.auth-benefit-tile strong,
.auth-quest-title {
  font-weight: 800;
}

.auth-benefit-tile span {
  color: #6a4724;
  line-height: 1.5;
}

.auth-quest-board {
  padding: 16px;
}

.auth-quest-title {
  margin-bottom: 10px;
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  color: #6b3f1b;
}

.auth-quest-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.auth-quest-list li {
  position: relative;
  padding-left: 18px;
  line-height: 1.5;
}

.auth-quest-list li::before {
  content: "□";
  position: absolute;
  left: 0;
  top: 0;
  color: #8c5a28;
}

.auth-tavern-card {
  background:
    radial-gradient(circle at 90% 14%, rgba(214, 164, 89, 0.16), transparent 22%),
    radial-gradient(circle at 14% 86%, rgba(168, 109, 45, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(250, 242, 223, 0.98), rgba(236, 219, 184, 0.96));
  border-color: rgba(145, 101, 47, 0.16);
  box-shadow:
    0 22px 46px rgba(79, 51, 25, 0.14),
    0 1px 0 rgba(255, 251, 242, 0.82) inset;
}

.auth-card-head {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.auth-start-head {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.auth-section-kicker {
  margin: 0 0 6px;
  color: #9a6a34;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
}

.auth-section-kicker--start {
  color: #efbc74;
}

.auth-card-head h2 {
  margin: 0;
  color: #4f3017;
  font-size: 1.6rem;
}

.auth-start-head h2 {
  margin: 0;
  color: #fff0d2;
  font-size: 1.72rem;
}

.auth-section-note {
  margin: 0;
  color: #6d4d2c;
  line-height: 1.65;
}

.auth-start-head .auth-section-note {
  color: rgba(255, 233, 201, 0.86);
}

.auth-start-button {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 18px 18px;
  border-radius: 20px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(122, 27, 20, 0.98), rgba(86, 16, 12, 0.98));
  border: 1px solid rgba(230, 176, 99, 0.34);
  color: #fff0d2;
  box-shadow:
    0 18px 34px rgba(16, 5, 3, 0.24),
    0 1px 0 rgba(255, 230, 186, 0.14) inset;
}

.auth-start-button span {
  font-size: 1.08rem;
  font-weight: 800;
}

.auth-start-button small {
  font-size: 0.86rem;
  color: #f0cf9b;
}

.auth-start-button:hover,
.auth-start-button:active {
  filter: brightness(1.05);
}

.auth-tavern-card .field label {
  color: #5d3b1d;
}

.auth-tavern-card .field input {
  border-color: rgba(145, 101, 47, 0.2);
  background: #f7edd9;
  color: #4f3017;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 8px 18px rgba(79, 51, 25, 0.06);
}

.auth-tavern-card .field input:focus {
  outline: none;
  border-color: rgba(173, 121, 57, 0.5);
  background: #fbf3e3;
  box-shadow:
    0 0 0 4px rgba(214, 164, 89, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 8px 18px rgba(79, 51, 25, 0.08);
}

.auth-tavern-card .field input:-webkit-autofill,
.auth-tavern-card .field input:-webkit-autofill:hover,
.auth-tavern-card .field input:-webkit-autofill:focus {
  -webkit-text-fill-color: #4f3017;
  -webkit-box-shadow: 0 0 0 1000px #f7edd9 inset;
  transition: background-color 9999s ease-out 0s;
}

.auth-tavern-card .field input::placeholder {
  color: #a17f59;
}

.auth-submit-button {
  min-height: 56px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #eed8aa, #dfbd7a 62%, #c99649);
  color: #4d2f16;
  box-shadow:
    0 14px 28px rgba(98, 62, 24, 0.16),
    0 1px 0 rgba(255, 246, 224, 0.76) inset;
}

.auth-submit-button:hover,
.auth-submit-button:active {
  filter: brightness(1.03);
}

.split-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
  color: #8a5d2e;
  font-weight: 700;
}

.auth-tavern-card .response-box {
  background: linear-gradient(180deg, rgba(249, 240, 216, 0.98), rgba(237, 222, 186, 0.94));
  border: 1px solid rgba(145, 101, 47, 0.18);
  color: #5e3b1d;
  box-shadow:
    0 10px 18px rgba(79, 51, 25, 0.08),
    0 1px 0 rgba(255, 250, 238, 0.72) inset;
}

.legal-wrap {
  max-width: 720px;
  margin: 24px auto 48px;
}

.legal-updated,
.legal-consent {
  margin: 12px 0 0;
  color: #765637;
  font-size: 0.82rem;
  line-height: 1.7;
}

.legal-consent {
  text-align: center;
}

.legal-consent a,
.legal-prose a {
  color: #8d4c23;
  font-weight: 700;
}

.auth-trust-copy {
  margin: 16px 0 0;
  text-align: center;
  color: #6f4d2c;
  font-size: 0.88rem;
  line-height: 1.7;
}

.auth-line-start {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.legal-prose {
  display: grid;
  gap: 22px;
  line-height: 1.85;
}

.legal-prose h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.legal-prose p {
  margin: 0 0 10px;
}

.legal-prose ul {
  margin: 8px 0 0;
  padding-left: 1.25rem;
}

.legal-prose li + li {
  margin-top: 6px;
}

.legal-prose table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin-top: 10px;
  font-size: 0.92rem;
  background: rgba(255, 251, 242, 0.68);
  border: 1px solid rgba(145, 101, 47, 0.12);
  border-radius: 14px;
  overflow: hidden;
}

.legal-prose th,
.legal-prose td {
  padding: 0.8rem 0.9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(145, 101, 47, 0.12);
  line-height: 1.8;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.legal-prose tr:last-child th,
.legal-prose tr:last-child td {
  border-bottom: 0;
}

.legal-prose th {
  width: 30%;
  min-width: 9rem;
  color: #6e4c2a;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(245, 232, 200, 0.42);
}

.legal-prose td {
  color: #3f2c1a;
}

.legal-prose td small {
  display: inline-block;
  margin-top: 0.2rem;
  color: #72563a;
  line-height: 1.7;
}

.legal-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}

@media (max-width: 640px) {
  .legal-prose table,
  .legal-prose tbody,
  .legal-prose tr,
  .legal-prose th,
  .legal-prose td {
    display: block;
  }

  .legal-prose table {
    border-radius: 12px;
  }

  .legal-prose tr + tr {
    border-top: 1px solid rgba(145, 101, 47, 0.12);
  }

  .legal-prose th,
  .legal-prose td {
    width: 100%;
    min-width: 0;
    border-bottom: 0;
  }

  .legal-prose th {
    padding-bottom: 0.3rem;
    background: rgba(245, 232, 200, 0.36);
  }

  .legal-prose td {
    padding-top: 0.15rem;
  }
}

.store-shell {
  padding-bottom: 36px;
}

.admin-shell {
  padding-bottom: 36px;
}

.panel-title {
  display: block;
  margin-bottom: 12px;
  font-size: 1rem;
}

.store-terminal-summary {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(246, 255, 250, 0.98), rgba(232, 250, 241, 0.94));
  border: 1px solid rgba(23, 166, 106, 0.18);
}

.store-terminal-summary strong {
  font-size: 1rem;
}

.store-terminal-summary small {
  color: var(--muted);
  line-height: 1.5;
}

.store-recent-result {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 247, 255, 0.92));
  border: 1px solid rgba(145, 101, 47, 0.16);
}

.store-recent-result.is-empty {
  color: var(--muted);
}

.admin-list-toolbar {
  align-items: end;
  justify-content: space-between;
  margin-bottom: 12px;
}

.admin-inline-field {
  min-width: 140px;
  margin: 0;
}

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

.admin-terminal-card {
  gap: 10px;
}

.admin-terminal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.reward-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rewards-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.rewards-table th,
.rewards-table td {
  padding: 0.55rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(145, 101, 47, 0.14);
  white-space: nowrap;
}

.rewards-table th {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.rewards-table td.pt {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.status-badge {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 103, 220, 0.1);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
}

.status-badge.active,
.status-badge.confirmed {
  background: rgba(33, 115, 70, 0.12);
  color: var(--ok);
}

.status-badge.inactive,
.status-badge.requested {
  background: rgba(245, 158, 11, 0.12);
  color: var(--warn);
}

select {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(145, 101, 47, 0.22);
  background: linear-gradient(180deg, #fffdf4, #faf0d8);
}

@media (max-width: 520px) {
  .stats-grid,
  .action-grid,
  .reward-form-grid {
    grid-template-columns: 1fr;
  }

  .checkin-result-stats {
    grid-template-columns: 1fr;
  }

  .card-meta-grid {
    grid-template-columns: 1fr;
  }

  .card-points-block .points {
    font-size: 2.1rem;
  }

  .gcc-wrap {
    max-width: 100%;
  }
  .guild-credit-card {
    border-radius: 14px;
  }

  .mypage-banner-head {
    padding: 0 16px;
  }

  .mypage-banner-title {
    font-size: 0.82rem;
  }

}

/* ── QRスキャナー ── */
.qr-scan-button {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 10px 18px;
  width: 100%;
  justify-content: center;
  border: 2px dashed var(--accent);
  border-radius: 12px;
  background: transparent;
  color: var(--accent-strong);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.qr-scan-button:hover {
  background: rgba(203, 123, 45, 0.08);
}

.qr-scanner-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(20, 10, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-scanner-overlay.is-hidden {
  display: none;
}

.qr-scanner-inner {
  width: 100%;
  max-width: 480px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.qr-scanner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-size: 0.88rem;
}

.qr-scanner-close {
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  font-size: 0.85rem;
  white-space: nowrap;
}

.qr-scanner-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}

.qr-scanner-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qr-scanner-canvas {
  display: none;
}

.qr-scanner-frame {
  position: absolute;
  inset: 15%;
  border: 3px solid var(--accent);
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.qr-scanner-frame::before,
.qr-scanner-frame::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: #fff;
  border-style: solid;
}

.qr-scanner-frame::before {
  top: -3px;
  left: -3px;
  border-width: 3px 0 0 3px;
  border-radius: 4px 0 0 0;
}

.qr-scanner-frame::after {
  bottom: -3px;
  right: -3px;
  border-width: 0 3px 3px 0;
  border-radius: 0 0 4px 0;
}

.qr-scanner-status {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
}

.qr-scanner-status.is-success {
  color: #6ee7a0;
  font-weight: 700;
}

/* ── QR カメラ読取 UI ─────────────────────────── */
.qr-camera-wrap {
  position: relative;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.qr-camera-wrap.is-hidden {
  display: none;
}

.qr-video {
  display: block;
  width: 100%;
  max-height: 60vw;   /* 縦長画面でもはみ出さない */
  object-fit: cover;
}

.qr-canvas {
  display: none;      /* 処理専用：画面には出さない */
}

.qr-status {
  position: absolute;
  bottom: 2.75rem;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
}

.qr-controls {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0.75rem 0.75rem;
  background: rgba(0, 0, 0, 0.55);
}

.qr-controls .ghost-button {
  font-size: 0.85rem;
  padding: 0.35rem 1.1rem;
}

/* ── 区切り線「または」 ──────────────────────── */
.qr-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.9rem 0;
  color: #8b6844;
  font-size: 0.82rem;
}

.qr-divider::before,
.qr-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(145, 101, 47, 0.18);
}

/* ── カメラ起動ボタン ───────────────────────── */
.qr-start-btn {
  width: 100%;
}

/* ── LINE ログインボタン ────────────────────────── */
.line-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.72rem 1rem;
    background: linear-gradient(180deg, #1db564, #0f944d);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, opacity .15s;
    line-height: 1;
    box-shadow:
      0 12px 24px rgba(15, 87, 40, 0.18),
      0 1px 0 rgba(255, 255, 255, 0.18) inset;
}

.line-button:hover,
.line-button:active {
    background: linear-gradient(180deg, #20c06b, #109c52);
    opacity: 0.92;
}

.line-notice {
  margin-bottom: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(249, 241, 220, 0.96), rgba(239, 226, 193, 0.92));
  border: 1px solid rgba(145, 101, 47, 0.16);
}

.line-notice-title {
  margin: 0 0 6px;
  font-weight: 800;
  color: #5a381a;
}

.line-notice-body {
  margin: 0;
  color: #735131;
  line-height: 1.7;
}

@media (max-width: 520px) {
  .auth-hero-card h1 {
    font-size: 2.5rem;
  }

  .auth-ribbon {
    margin-right: 0;
  }
}

/* ===== LINE配信履歴 ===== */
.log-filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .375rem;
    margin-bottom: .75rem;
}

.log-filter-bar .primary-button,
.log-filter-bar .secondary-button {
    padding: .25rem .75rem;
    font-size: .8125rem;
    min-width: unset;
}

.rewards-table .col-id   { width: 4rem;  white-space: nowrap; }
.rewards-table .col-date { width: 11rem; white-space: nowrap; font-size: .8125rem; }
.rewards-table .col-code { width: 4rem;  text-align: center; }
.rewards-table .col-err  { font-size: .8125rem; word-break: break-all; }

/* ── 景品・特典の利用可能店舗タグ ── */
.reward-shop-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}

.reward-shop-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(145, 101, 47, 0.10);
  color: #7a5228;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid rgba(145, 101, 47, 0.18);
}

.reward-shop-label {
  font-size: 0.72rem;
  color: #9a6c34;
  margin-right: 4px;
}
