/*
 * 褻の茶「一期一滴」 共通トークン
 * 地色は PANTONE 5473 C（#00626b）を基準に、より暗い「夜の茶室」側へ寄せる。
 * 文字は生成り。アクセントは弁柄（判子・運の等級だけに使う）。
 */
:root {
  --teal: #00626b;
  --teal-soft: #0b5a61;
  --teal-deep: #024148;
  --ink: #012a2f;
  --ink-deep: #001d21;

  --cream: #f3eee2;
  --cream-2: rgba(243, 238, 226, 0.78);
  --cream-3: rgba(243, 238, 226, 0.56);
  --cream-4: rgba(243, 238, 226, 0.34);
  --line: rgba(243, 238, 226, 0.2);
  --line-strong: rgba(243, 238, 226, 0.42);
  --wash: rgba(243, 238, 226, 0.06);
  --wash-2: rgba(243, 238, 226, 0.11);

  --bengara: #b4583d;
  --bengara-soft: rgba(180, 88, 61, 0.18);
  --hot: #d08a52;
  --cold: #8cc3c4;
  --danger: #e6a08a;

  --font-mincho: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-roman: "Cinzel", "Shippori Mincho", serif;

  --radius: 2px;
  --gutter: 20px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* 紙の粒子（SVG ノイズ）。背景に薄く重ねる */
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95  0 0 0 0 0.93  0 0 0 0 0.88  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--ink);
  color: var(--cream);
  font-family: var(--font-mincho);
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.04em;
  font-feature-settings: "palt" 0;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* 暗い茶室の光: 上からの淡い灯り + 周縁の陰り + 紙の粒子 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    var(--grain),
    radial-gradient(120% 70% at 50% -10%, rgba(0, 98, 107, 0.95) 0%, rgba(2, 65, 72, 0.6) 45%, transparent 75%),
    radial-gradient(140% 100% at 50% 120%, var(--ink-deep) 0%, transparent 60%),
    var(--ink);
  background-blend-mode: soft-light, normal, normal, normal;
  opacity: 1;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--cream-2);
  outline-offset: 3px;
}

.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;
}

.roman {
  font-family: var(--font-roman);
  letter-spacing: 0.18em;
  font-weight: 500;
}

/* ロゴの「器」の曲線をなぞったボタン。左右の縦線が下で内側へ流れる */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 56px;
  padding: 0.6em 2.4em;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--cream);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-decoration: none;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), opacity 0.3s;
}

.btn-bowl::before,
.btn-bowl::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 0;
  width: 22px;
  border-bottom: 1.5px solid currentColor;
  transition: inherit;
}

.btn-bowl::before {
  left: 0;
  border-left: 1.5px solid currentColor;
  border-bottom-left-radius: 22px 18px;
}

.btn-bowl::after {
  right: 0;
  border-right: 1.5px solid currentColor;
  border-bottom-right-radius: 22px 18px;
}

.btn-bowl:hover,
.btn-bowl:active {
  background: var(--wash-2);
}

.btn-solid {
  background: var(--cream);
  color: var(--ink);
}

.btn-solid:hover,
.btn-solid:active {
  background: #fffaf0;
}

.btn-quiet {
  min-height: 44px;
  padding: 0.4em 1em;
  color: var(--cream-3);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.18em;
}

.btn-quiet:hover {
  color: var(--cream);
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.35;
  cursor: default;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.25em 0.9em;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--cream-2);
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
