/* ========== Design tokens ========== */
/* ピンク基調のかわいめデザイン */
/* :root {
  --bg: #fff6f4;
  --card: #ffffff;
  --text: #3a2f2f;
  --muted: #7a6b6b;

  --primary: #eb6a7a;
  --primary-hover: #d85a6a;

  --accent: #42dbc6;
  --border: #f1d6d9;

  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
} */

/* ラベンダー × ロイヤルパープル × ティール */
:root {
  --bg: #F6F4FF;            /* 薄ラベンダー */
  --card: #ffffff;
  --text: #2B2430;          /* 黒より柔らかい濃色 */
  --muted: #6B6472;

  --primary: #6D28D9;       /* ロイヤルパープル */
  --primary-hover: #5B21B6;

  --accent: #14B8A6;        /* 安心感のあるティール */
  --border: #E8E0FF;

  --radius: 16px;
  --shadow: 0 10px 30px rgba(35, 16, 70, 0.08);
  --shadow-sm: 0 2px 10px rgba(35, 16, 70, 0.06);
}

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

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP",
               "Segoe UI", "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
}

/* 背景の薄いグラデーション */
body {
  background: radial-gradient(1200px 600px at 20% 0%, rgba(109,40,217,0.08), transparent 60%),
              radial-gradient(1000px 500px at 90% 20%, rgba(20,184,166,0.06), transparent 55%),
              var(--bg);
}

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

a:hover {
  text-decoration: underline;
}

/* ========== Layout ========== */
.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.03em;
}

.nav {
  display: flex;
  gap: 12px;
}

.nav a {
  font-size: 14px;
  color: var(--muted);
}

.site-footer {
  margin-top: 40px;
  padding: 24px 0;
  color: var(--muted);
}

/* ========== Typography ========== */
.h1 {
  font-size: 22px;
  margin: 0 0 8px;
}

.h2 {
  font-size: 18px;
  margin: 0;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* ========== Components ========== */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.03);
}

.card-body {
  padding: 16px;
}

.card-footer {
  padding: 12px 16px 16px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.avatar {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: #EEE8FF;
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 800;
  flex: 0 0 auto;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-lg {
  width: 76px;
  height: 76px;
  border-radius: 18px;
}

.row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.muted {
  color: var(--muted);
}

.price {
  font-weight: 800;
  color: var(--primary);
}

.badge {
  display: inline-block;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.10);
  color: #0F766E;
  border: 1px solid rgba(20, 184, 166, 0.25);
}

.badge-primary {
  background: rgba(109, 40, 217, 0.10);
  color: #5B21B6;
  border: 1px solid rgba(109, 40, 217, 0.25);
}

.badge-wrap {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(109, 40, 217, 0.24);
}

.btn:hover {
  background: var(--primary-hover);
  text-decoration: none;
}

.btn-secondary {
  background: #fff;
  color: var(--primary);
  border-color: rgba(235,106,122,0.3);
  box-shadow: none;
}

.btn-secondary:hover {
  background: #fff2f4;
}

.btn-small {
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 14px;
}

/* Forms */
.form {
  display: grid;
  gap: 14px;
}

.field label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
}

.input, .textarea {
  width: 100%;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 12px;
  padding: 12px 12px;
  font-size: 16px;
  background: #fff;
  outline: none;
}

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

.input:focus, .textarea:focus {
  border-color: rgba(109, 40, 217, 0.55);
  box-shadow: 0 0 0 4px rgba(109, 40, 217, 0.12);
}

/* Flash */
.flash {
  margin: 16px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
}

.flash-notice {
  border-color: rgba(66,219,198,0.5);
  background: #e7fffa;
}

.flash-alert {
  border-color: rgba(235,106,122,0.45);
  background: #fff2f4;
}

/* Lists */
.grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.slot-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
}

.slot-time {
  font-weight: 700;
  font-size: 14px;
}

.auth-wrap {
  min-height: calc(100vh - 220px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 0;
}

.auth-card {
  width: 100%;
  max-width: 460px;
}

.brand, .h1, .h2 {
  font-family: ui-serif, "Hiragino Mincho ProN", "Yu Mincho", serif;
  letter-spacing: 0.02em;
}

.field-error {
  margin-top: 6px;
  font-size: 12px;
  color: #b42318;
}

.input.is-invalid, .textarea.is-invalid {
  border-color: rgba(180, 35, 24, 0.55);
  box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.12);
}

/* 一覧：画像＋名前のタップ領域 */
.ft-hit {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  border-radius: 14px;
  padding: 2px;
}

.ft-hit:hover {
  text-decoration: none;
}

.ft-hit:focus-visible {
  outline: 3px solid rgba(109, 40, 217, 0.25);
  outline-offset: 2px;
}

.ft-hit-text {
  min-width: 120px;
  padding-top: 2px;
}

a.brand:hover {
  text-decoration: none;
}

/* ===== Teller header nav (mobile friendly) ===== */
.nav--teller a,
.nav--teller form button {
  white-space: nowrap;
}

.nav--teller form {
  margin: 0;
}

@media (max-width: 600px) {
  /* ヘッダーは上下2段にして、ナビを全幅へ */
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .nav--teller {
    width: 100%;
    overflow-x: auto;                 /* 横スクロール */
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    flex-wrap: nowrap;
  }

  .nav--teller::-webkit-scrollbar {
    display: none;
  }

  /* タップしやすさ＋圧縮 */
  .nav--teller a {
    font-size: 13px;
    padding: 6px 2px;
  }

  .nav--teller .btn-small {
    height: 34px;
    padding: 0 12px;
  }
}

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