/* PALM HOUSE
   テーマカラーはロゴのオレンジ #E46240（依頼者指定・2026-08-24変更。ロゴ画像の背景色を実測）。
   以前の壁色 #C88868 は廃止。文字の黒はロゴの黒に合わせた温かい黒。
   コントラスト実測: 黒onオレンジ5.4:1 / deep on cream 5.4:1 / dark on cream 8.7:1 */

:root {
  --brand: #E46240;        /* ロゴのオレンジ。テーマカラー */
  --brand-lit: #F49B7F;    /* 暗い地に置くオレンジ */
  --brand-deep: #B23A1D;   /* 白地に置く文字・線用 */
  --brand-dark: #7E2811;   /* 価格など、いちばん強く出したいところ */
  --clay: #F4B39D;
  --sand: #F9D8C9;
  --cream: #FBF2ED;
  --ink: #17120F;          /* ロゴの黒 */
  --ink-soft: #6E5D55;
  --line: rgba(23, 18, 15, 0.14);
  --shadow: 0 16px 44px -26px rgba(23, 18, 15, 0.38);
  --radius: 16px;
  --max: 1180px;
  --pop: 5px 5px 0 var(--ink); /* ステッカー風のベタ影。ロゴとNFTの世界観に合わせる */
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Outfit", "Noto Sans Thai", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  /* 世界観はロゴのステッカーとゴリラNFT＝ストリート寄り。見出しは太い大文字で押す */
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}

h1, h2 { text-transform: uppercase; }

/* 日本語の見出しが単語の途中で折り返さないようにする */
:lang(ja) h1,
:lang(ja) h2,
:lang(ja) h3,
:lang(ja) .hero-lead {
  word-break: auto-phrase;
  line-break: strict;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--brand);
  color: var(--ink);
}

.header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 76px;
}

.logo {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.14em;
  text-decoration: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img { height: 40px; width: auto; display: block; }

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  opacity: 0.82;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover { opacity: 1; border-bottom-color: rgba(23, 18, 15, 0.4); }
.nav a.on { opacity: 1; border-bottom-color: var(--ink); }

.lang {
  border: 1.5px solid rgba(23, 18, 15, 0.4);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.lang:hover { background: rgba(255, 255, 255, 0.24); }

.nav .btn-head {
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 700;
  opacity: 1;
  border-bottom: none;
  box-shadow: 0 6px 18px -10px rgba(23, 18, 15, 0.9);
}

.nav .btn-head:hover { border-bottom-color: transparent; transform: translateY(-1px); }

.burger {
  display: none;
  margin-left: auto;
  background: none;
  border: 1.5px solid rgba(23, 18, 15, 0.4);
  border-radius: 12px;
  color: var(--ink);
  width: 44px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 30px;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary { background: var(--ink); color: var(--cream); border: 2px solid var(--ink); box-shadow: var(--pop); }
.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }

.btn-light { background: var(--cream); color: var(--ink); border: 2px solid var(--ink); box-shadow: var(--pop); }
.btn-light:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }

.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn-ghost:hover { transform: translateY(-2px); }

.btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }

/* Payment Link がまだ入っていない商品 */
.btn-soon {
  background: var(--sand);
  color: var(--ink-soft);
  box-shadow: none;
  cursor: default;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--brand);
  color: var(--ink);
  padding: 96px 0 104px;
}

.hero.short { padding: 76px 0 68px; }

/* 空間の壁と同じで、パームは壁より濃い茶で描かれている */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='none' stroke='%2317120F' stroke-width='1.6' stroke-linecap='round' opacity='0.6'%3E%3Cpath d='M110 200 C110 150 108 110 104 74'/%3E%3Cpath d='M104 74 C78 52 50 46 26 52 C52 40 84 44 104 66'/%3E%3Cpath d='M104 74 C124 46 154 34 184 40 C156 42 128 58 108 82'/%3E%3Cpath d='M106 92 C82 78 54 78 32 90 C56 74 88 74 108 86'/%3E%3Cpath d='M106 92 C132 74 164 72 190 82 C162 80 130 90 110 106'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 220px 220px;
  opacity: 0.14;
  pointer-events: none;
}

.hero .wrap { position: relative; z-index: 1; }

/* ---------- 写真ヒーロー ----------
   建物は左に写っているので、暗くするのは右半分だけ。文字は右に寄せる。 */

.hero.photo {
  background-color: var(--ink);
  background-image: var(--hero-img);
  background-size: cover;
  background-position: 30% 60%;
  color: var(--cream);
  padding: 132px 0 116px;
  min-height: min(82vh, 780px);
  display: flex;
  align-items: center;
}

.hero.photo::after {
  background-image: linear-gradient(
    to left,
    rgba(32, 19, 13, 0.86) 0%,
    rgba(32, 19, 13, 0.74) 26%,
    rgba(32, 19, 13, 0.42) 52%,
    rgba(32, 19, 13, 0.08) 76%,
    rgba(32, 19, 13, 0) 100%
  );
  background-size: auto;
  opacity: 1;
}

.hero.photo .wrap { text-align: right; }
.hero.photo h1 { margin-left: auto; max-width: 13ch; }
.hero.photo .hero-lead { margin-left: auto; max-width: 46ch; opacity: 0.92; }
.hero.photo .eyebrow { color: var(--brand-lit); opacity: 1; }
.hero.photo .hero-cta { justify-content: flex-end; }
.hero.photo .btn-ghost { color: var(--cream); }

.hero-note {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 1;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(251, 242, 237, 0.62);
  text-align: right;
}

.hero-note .wrap { text-align: right; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.72;
  margin: 0 0 18px;
}

.hero h1 {
  font-size: clamp(40px, 7.4vw, 84px);
  max-width: 15ch;
  margin: 0 0 26px;
  white-space: pre-line;
}

.hero.short h1 { margin-bottom: 18px; }

.hero-lead {
  font-size: clamp(17px, 1.6vw, 20px);
  max-width: 58ch;
  margin: 0 0 34px;
  opacity: 0.88;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- sections ---------- */

.section { padding: 96px 0; }
.section.tight { padding: 68px 0; }
.section.peach { background: var(--sand); }
.section.grad { background: var(--clay); }
.section.ink { background: var(--ink); color: var(--cream); }
.section.ink .lead { color: rgba(251, 242, 237, 0.8); }

.section h2 {
  font-size: clamp(30px, 4.2vw, 50px);
  max-width: 20ch;
  margin: 0 0 20px;
}

.lead { font-size: 18px; color: var(--ink-soft); max-width: 62ch; margin: 0 0 28px; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}

.step {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 28px 32px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* 写真つきのカードは、写真をカード幅いっぱいに出す */
.step.has-photo { padding: 0; }

.step-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--sand);
}

.step.has-photo .step-body { padding: 26px 28px 30px; }

/* 写真がまだない枠。壁の色にヤシの柄を敷いておく */
.step-photo-empty {
  aspect-ratio: 4 / 3;
  background-color: var(--clay);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150' viewBox='0 0 220 220'%3E%3Cg fill='none' stroke='%2317120F' stroke-width='2' stroke-linecap='round' opacity='0.5'%3E%3Cpath d='M110 200 C110 150 108 110 104 74'/%3E%3Cpath d='M104 74 C78 52 50 46 26 52 C52 40 84 44 104 66'/%3E%3Cpath d='M104 74 C124 46 154 34 184 40 C156 42 128 58 108 82'/%3E%3Cpath d='M106 92 C82 78 54 78 32 90 C56 74 88 74 108 86'/%3E%3Cpath d='M106 92 C132 74 164 72 190 82 C162 80 130 90 110 106'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 150px 150px;
}

.step .num {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--brand-deep);
  display: block;
  margin-bottom: 12px;
}

.step h3 { font-size: 24px; margin-bottom: 10px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 16px; }

.rooms { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }

.room {
  border-radius: var(--radius);
  padding: 28px 26px 30px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
}

.section.ink .room {
  background: rgba(251, 242, 237, 0.07);
  border-color: rgba(251, 242, 237, 0.18);
}

.room h3 { font-size: 21px; margin-bottom: 8px; }
.room p { margin: 0; font-size: 16px; color: var(--ink-soft); }
.section.ink .room p { color: rgba(251, 242, 237, 0.76); }

/* ---------- tickets ---------- */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }

/* 商品が1〜2件のときは横に伸ばさない */
.cards.few { grid-template-columns: repeat(auto-fit, minmax(280px, 360px)); justify-content: start; }

.card {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px 30px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 34px -28px rgba(23, 18, 15, 0.55);
}

.card.featured { border: 2px solid var(--ink); box-shadow: var(--pop); }

.card .badge {
  position: absolute;
  top: -13px;
  left: 26px;
  background: var(--brand-deep);
  color: var(--cream);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}

.card h3 { font-size: 23px; margin-bottom: 14px; }

.price {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--brand-dark);
}

.price .per { font-size: 16px; font-weight: 600; color: var(--ink-soft); letter-spacing: 0; }

.pay-type {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 6px 0 20px;
}

.card ul { list-style: none; margin: 0 0 26px; padding: 0; font-size: 16px; }

.card li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--ink-soft);
}

.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 14px;
  height: 8px;
  border-left: 2.5px solid var(--brand-deep);
  border-bottom: 2.5px solid var(--brand-deep);
  transform: rotate(-45deg);
}

.card .btn { margin-top: auto; width: 100%; }

/* オープン前のお知らせ帯 */
.notice {
  background: var(--clay);
  border-left: 4px solid var(--brand-dark);
  border-radius: 0 14px 14px 0;
  padding: 16px 22px;
  margin: 0 0 36px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  max-width: 66ch;
}

.checkout-error {
  display: none;
  background: #fff;
  border: 2px solid var(--brand-deep);
  color: var(--brand-dark);
  border-radius: 14px;
  padding: 14px 18px;
  margin: 0 0 28px;
  font-size: 16px;
  font-weight: 600;
}

.checkout-error.on { display: block; }

/* ---------- schedule ---------- */

.slots { display: grid; gap: 14px; }

.slot {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 26px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
}

.slot .time { font-size: 28px; font-weight: 800; color: var(--brand-dark); letter-spacing: -0.02em; }
.slot .len { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.slot h3 { font-size: 21px; margin-bottom: 6px; }
.slot p { margin: 0; color: var(--ink-soft); font-size: 16px; }

.hours { list-style: none; margin: 0; padding: 0; max-width: 520px; }

.hours li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
}

.hours li span:last-child { font-weight: 700; }

/* ---------- lists, faq ---------- */

.plain { list-style: none; margin: 0; padding: 0; }

.plain li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  color: var(--ink-soft);
}

.plain li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--brand);
}

details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 4px 24px;
  margin-bottom: 12px;
}

summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 18px;
  padding: 20px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  border-right: 2.5px solid var(--brand-deep);
  border-bottom: 2.5px solid var(--brand-deep);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s ease;
}

details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
details p { margin: 0 0 22px; color: var(--ink-soft); }

/* ---------- 規約ページ ---------- */

.legal { max-width: 760px; }
.legal-updated { font-size: 14px; color: var(--ink-soft); margin: 0 0 44px; }
.legal-block { margin-bottom: 44px; }
.legal-block h2 { font-size: 24px; max-width: none; margin-bottom: 14px; }
.legal-text {
  font-size: 17px;
  color: var(--ink-soft);
  margin: 0 0 16px;
  white-space: pre-line;
}
.legal-text:last-child { margin-bottom: 0; }

.footer .legal-line {
  font-size: 13px;
  color: rgba(251, 242, 237, 0.5);
  line-height: 1.7;
  margin-top: 18px;
}

.footer .base-links { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; }
.footer .base-links a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 780px) {
  .footer .base-links { margin-left: 0; }
}

/* ---------- contact block ---------- */

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 34px; }
.contact-grid h3 { font-size: 18px; margin-bottom: 10px; }
.contact-grid p { margin: 0 0 8px; color: var(--ink-soft); }
.contact-grid a { color: var(--brand-dark); font-weight: 600; }

/* ---------- result page ---------- */

.result { text-align: center; padding: 120px 0 130px; }
.result h1 { font-size: clamp(38px, 6vw, 66px); margin: 0 auto 22px; }
.result p { max-width: 52ch; margin: 0 auto 34px; font-size: 19px; }
.result .result-text { font-size: 18px; margin: 0 auto 18px; opacity: 0.92; }
.result .result-text:last-of-type { margin-bottom: 34px; }
.result .hero-cta { justify-content: center; }

/* ---------- footer ---------- */

.footer { background: var(--ink); color: rgba(251, 242, 237, 0.76); padding: 72px 0 40px; font-size: 16px; }
.footer a { color: rgba(251, 242, 237, 0.76); text-decoration: none; }
.footer a:hover { color: var(--cream); }
.footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--brand-lit); margin: 0 0 16px; font-weight: 800; }
.footer .logo { color: var(--cream); font-size: 20px; margin-bottom: 14px; font-weight: 800; letter-spacing: 0.1em; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 10px; }

.footer .base {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(251, 242, 237, 0.16);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 14px;
  color: rgba(251, 242, 237, 0.5);
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  body { font-size: 16px; }
  .section { padding: 68px 0; }
  .hero { padding: 72px 0 78px; }

  /* 縦画面では写真が寄るので、全面に暗さをのせて文字を確実に読ませる */
  .hero.photo {
    padding: 96px 0 104px;
    min-height: min(76vh, 680px);
    background-position: 42% 60%;
  }

  .hero.photo::after {
    background-image: linear-gradient(
      to bottom,
      rgba(32, 19, 13, 0.72) 0%,
      rgba(32, 19, 13, 0.58) 45%,
      rgba(32, 19, 13, 0.78) 100%
    );
  }

  /* 縦画面では左右の分割がなくなるので、読みやすさを優先して左寄せに戻す */
  .hero.photo .wrap,
  .hero-note .wrap { text-align: left; }
  .hero.photo h1,
  .hero.photo .hero-lead { max-width: none; margin-left: 0; }
  .hero.photo .hero-cta { justify-content: flex-start; }
  .hero-note { text-align: left; font-size: 11px; }

  .burger { display: block; }

  .nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--brand-deep);
    color: var(--cream);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 24px;
  }

  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(251, 242, 237, 0.2); opacity: 1; }
  .nav a.on { border-bottom-color: rgba(251, 242, 237, 0.2); }
  .nav .lang { text-align: center; margin-top: 16px; border-bottom: none; border-color: rgba(251, 242, 237, 0.5); }
  .nav .btn-head { text-align: center; margin-top: 12px; border-bottom: none; background: var(--cream); color: var(--ink); }

  .slot { grid-template-columns: 1fr; gap: 10px; }
  .footer .cols { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- 会員ポイント3画面（account / staff / admin） ---------- */

.pts-wrap { max-width: 640px; }

.pts-card {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--pop);
  padding: 28px 26px;
  margin-bottom: 22px;
}

.pts-card h2 { font-size: 22px; margin-bottom: 12px; }
.pts-card .lead { font-size: 16px; margin: 0 0 18px; color: var(--ink-soft); }

.pts-loading { text-align: center; color: var(--ink-soft); padding: 30px 0; }

.pts-card form { display: flex; flex-direction: column; gap: 14px; }
.pts-card label { display: block; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.pts-card input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.pts-card input:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
.pts-card form .btn { width: 100%; }

#pt-step-code { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }

.pts-dev {
  background: var(--sand);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  margin: 0 0 14px;
}
.pts-dev strong { font-size: 22px; letter-spacing: 0.2em; display: block; }

.pts-error { color: #a03024; font-size: 15px; margin: 12px 0 0; }
.pts-ok { color: #2c6e49; font-size: 15px; margin: 12px 0 0; }

.pts-balance { text-align: center; }
.pts-num { font-size: 64px; font-weight: 800; line-height: 1.1; color: var(--brand-dark); }
.pts-num .pts-unit { font-size: 22px; margin-left: 6px; color: var(--ink-soft); font-weight: 600; }
.pts-who { color: var(--ink-soft); font-size: 14px; margin: 8px 0 0; }

.pts-qr { max-width: 260px; margin: 20px auto 0; }
.pts-qr svg { width: 100%; height: auto; display: block; border-radius: 8px; }
.pts-count { text-align: center; color: var(--ink-soft); font-size: 14px; margin: 10px 0 0; }

.pts-history { list-style: none; margin: 0; padding: 0; }
.pts-history li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.pts-history li:last-child { border-bottom: none; }
.pts-h-date { color: var(--ink-soft); font-size: 13px; white-space: nowrap; }
.pts-h-label { flex: 1; }
.pts-h-delta { font-weight: 700; white-space: nowrap; }
.pts-h-delta.plus { color: #2c6e49; }
.pts-h-delta.minus { color: var(--brand-dark); }
.pts-empty { color: var(--ink-soft); border-bottom: none; }

.pts-logout { text-align: center; font-size: 14px; }
.pts-logout a { color: var(--ink-soft); }

.pts-fac { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.pts-fac-btn {
  font: inherit;
  padding: 14px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
  color: var(--ink);
  cursor: pointer;
  text-align: center;
}
.pts-fac-btn span { display: block; font-weight: 700; font-size: 15px; }
.pts-fac-btn small { color: var(--ink-soft); }
.pts-fac-btn.on { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.pts-fac-btn.on small { color: var(--sand); }

.pts-scan { margin-top: 16px; }
.pts-scan video { width: 100%; border-radius: 12px; background: #000; }

.pts-result {
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 22px;
  font-size: 16px;
}
.pts-result strong { display: block; font-size: 20px; margin-bottom: 6px; }
.pts-result p { margin: 2px 0; }
.pts-result.ok { background: #e7f2ea; border: 1px solid #2c6e49; color: #1e4a32; }
.pts-result.bad { background: #f9e8e5; border: 1px solid #a03024; color: #6e1f16; }

.pts-table { overflow-x: auto; }
.pts-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pts-table th, .pts-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.pts-table th { color: var(--ink-soft); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.pts-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
#ad-reload { margin-top: 14px; }

/* 受付画面のモード切り替え（ポイント利用 / 売上登録）と金額入力 */
.pts-modes { display: flex; gap: 8px; margin-bottom: 20px; }
.pts-mode {
  flex: 1;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
  color: var(--ink-soft);
  cursor: pointer;
}
.pts-mode.on { background: var(--brand-dark); color: var(--cream); border-color: var(--brand-dark); }
.pts-amount { display: block; margin-top: 16px; }

/* 役割表示・管理者（出資者）まわり・月次分配 */
.pts-role { color: var(--brand-dark); font-weight: 700; font-size: 15px; margin: 6px 0 0; }
.pts-owner-note { color: var(--ink-soft); font-size: 14px; margin: 10px 0 0; }
.pts-card select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.pts-dist { font-size: 15px; margin-bottom: 18px; }
.pts-dist p { margin: 4px 0; }
.pts-dist-share { color: var(--ink-soft); font-size: 14px; padding-left: 12px; }
.pts-subtitle { font-size: 17px; margin: 24px 0 12px; }

/* 配当NFTのアイコン（管理者のマイページ） */
.pts-avatar[hidden] { display: none; }
.pts-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  display: block;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--brand);
  background: #fff;
}

/* 金額入力の▲▼スピナーを消す。1バーツずつ増やす操作に意味がなく、
   回数を数える欄だと誤解されるため（2026-08-24 はる指摘） */
.pts-card input[type="number"]::-webkit-inner-spin-button,
.pts-card input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pts-card input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

/* 運用ガイドの表。セル内で普通に折り返す（管理画面の表と違い文章が長いため） */
.guide-table th, .guide-table td { white-space: normal; vertical-align: top; }
.guide-table th:first-child, .guide-table td:first-child { white-space: nowrap; font-weight: 700; }

/* 管理者（出資者）の入り口。フッターの隅にひっそり */
.owners-door { opacity: 0.55; }
.owners-door:hover { opacity: 1; }

/* 入館QRの表示ボタンはカードの真ん中に（はる指定） */
#pt-qr-btn { display: flex; width: fit-content; margin-left: auto; margin-right: auto; }

/* 運用ガイドの表はスマホでカード型に崩す（3列はスマホでは読めない） */
@media (max-width: 720px) {
  .guide-table table, .guide-table tbody, .guide-table tr, .guide-table td { display: block; width: 100%; }
  .guide-table tr:first-child { display: none; } /* 列名の行はカード内ラベルで代替 */
  .guide-table tr {
    background: #fff;
    border: 2px solid var(--ink);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 14px;
    box-shadow: 3px 3px 0 var(--ink);
  }
  .guide-table td { border: none; padding: 5px 0; white-space: normal; }
  .guide-table td:first-child { font-size: 18px; font-weight: 800; white-space: normal; padding-bottom: 8px; }
}

/* 運用ガイドのカード式セクション。スマホでは1列に落ちる */
.guide-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.guide-card {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--ink);
  padding: 18px 20px;
}
.guide-card h3 { font-size: 16px; margin-bottom: 8px; }
.guide-card p { margin: 0; font-size: 15px; color: var(--ink-soft); line-height: 1.7; }
