/*
 * ヨビカル デザインシステム
 * 題材: 車体の看板・駐車場の黄色いサイン・出店募集の掲示板
 * 大胆さは「看板イエロー」1点に集中させ、ほかは藍と白線で静かに組む
 */
:root {
  --paper: #ffffff;
  --road: #eef1f4; /* 路面グレー: 面の切り替え */
  --ink: #13294b; /* 藍: 文字・主要ボタン */
  --ink-deep: #0c1c36;
  --ink-2: #3c4b66;
  --muted: #5b6780;
  --line: #d5dbe3; /* 白線 */
  --sign: #ffc800; /* 看板イエロー */
  --sign-soft: #fff6cc;
  --star: #e8a200;
  --green: #007a5a;
  --green-soft: #e3f4ee;
  --red: #d6322e;
  --focus: #2b6be8;

  --font-display: 'Dela Gothic One', 'BIZ UDPGothic', sans-serif;
  --font-body: 'BIZ UDPGothic', 'Hiragino Sans', 'Yu Gothic', system-ui, sans-serif;

  --r-sm: 6px;
  --r-md: 10px;
  --gutter: 16px;
}

/* ───────── base ───────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  line-break: strict;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.02em;
  font-feature-settings: 'palt';
  word-break: auto-phrase;
  text-wrap: balance;
  margin: 0 0 0.6em;
}
h1 {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
}
h2 {
  font-size: 1.3rem;
}
h3 {
  font-size: 1.05rem;
}
p {
  margin: 0 0 1em;
}
a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}
img {
  max-width: 100%;
  display: block;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
::selection {
  background: var(--sign);
  color: var(--ink);
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: 8px;
  top: -48px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--r-sm);
}
.skip-link:focus {
  top: 8px;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (min-width: 720px) {
  :root {
    --gutter: 24px;
  }
}
.main {
  padding-top: 20px;
  padding-bottom: 80px;
  min-height: 60vh;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.875rem;
}
.pre {
  white-space: pre-wrap;
}
.prose {
  max-width: 40em;
}
.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.stack-lg {
  display: grid;
  gap: 24px;
  align-content: start;
}
.narrow {
  max-width: 720px;
  margin: 0 auto;
}
.narrow-wide {
  max-width: 880px;
}
.grid-2,
.grid-3 {
  display: grid;
  gap: 12px 16px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 720px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.kicker {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0 0 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: center;
}

/* ───────── buttons ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 20px;
  border: 2px solid var(--ink);
  border-radius: var(--r-sm);
  background: var(--ink);
  color: #fff;
  font: 700 0.95rem/1.4 var(--font-body);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}
.btn:hover {
  background: var(--ink-deep);
  border-color: var(--ink-deep);
}
.btn:disabled {
  opacity: 0.5;
  cursor: wait;
}
.btn-sm {
  min-height: 36px;
  padding: 4px 14px;
  font-size: 0.875rem;
  white-space: nowrap;
}
.btn-lg {
  min-height: 52px;
  padding: 10px 28px;
  font-size: 1rem;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--road);
  border-color: var(--ink);
}
.btn-block {
  width: 100%;
}
/* LINEログイン (公式色 #06C755) */
.btn-line {
  background: #06c755;
  border-color: #06c755;
}
.btn-line:hover {
  background: #05b04b;
  border-color: #05b04b;
}
/* ログイン画面での「または」の区切り */
.auth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
  color: var(--muted);
  font-size: 0.8rem;
}
.auth-or::before,
.auth-or::after {
  content: '';
  flex: 1;
  border-top: 1px solid var(--line);
}
.link-btn {
  background: none;
  border: 0;
  padding: 4px 0;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  font: inherit;
  font-size: 0.875rem;
}
.danger {
  color: var(--red) !important;
  border-color: var(--red) !important;
}

/* ───────── header ───────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
@media (max-width: 440px) {
  .header-inner {
    gap: 8px;
  }
  .header-actions {
    gap: 4px !important;
  }
  .logo-lockup {
    height: 32px;
  }
  .header-actions .btn-sm {
    padding: 4px 10px;
  }
}
.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}
.logo-lockup {
  display: block;
  height: 36px;
  width: auto;
}
.logo-for-dark {
  display: none;
}
.site-header .logo {
  min-width: 0;
}
.nav {
  display: flex;
  gap: 4px;
}
.nav a {
  position: relative;
  padding: 8px 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.925rem;
  white-space: nowrap;
}
.nav a:hover,
.nav a[aria-current='page'] {
  box-shadow: inset 0 -3px 0 var(--sign);
}
.nav-desktop {
  display: none;
}
.header-actions {
  flex: none;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-login {
  font-weight: 700;
  font-size: 0.925rem;
  text-decoration: none;
  display: none;
}
.badge-count {
  display: inline-block;
  min-width: 20px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  font-size: 0.75rem;
  line-height: 20px;
  text-align: center;
}
.menu summary {
  list-style: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: var(--r-sm);
  position: relative;
}
.menu summary::-webkit-details-marker {
  display: none;
}
.menu-svg {
  width: 24px;
  height: 24px;
  color: var(--ink);
}
.menu-svg-close,
.menu[open] .menu-svg-open {
  display: none;
}
.menu[open] .menu-svg-close {
  display: block;
}
.menu-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}
.menu-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 64px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(19, 41, 75, 0.12);
  padding: 8px var(--gutter) 16px;
  display: grid;
}
.menu-panel a {
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}
@media (min-width: 560px) {
  .header-login {
    display: inline;
  }
  .menu-panel a[href='/login'] {
    display: none;
  }
}
@media (min-width: 1000px) {
  .nav-desktop {
    display: flex;
  }
  .menu {
    display: none;
  }
}

/* ───────── breadcrumbs / notices ───────── */
.breadcrumbs ol {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  gap: 4px;
  font-size: 0.8125rem;
  color: var(--muted);
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.breadcrumbs li + li::before {
  content: '›';
  margin-right: 4px;
}
.breadcrumbs a {
  color: var(--muted);
}
.breadcrumbs [aria-current] {
  overflow: hidden;
  text-overflow: ellipsis;
}
.notice {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-left: 6px solid var(--green);
  background: var(--green-soft);
  border-radius: var(--r-sm);
  font-weight: 700;
}
.notice-warn {
  border-left-color: var(--sign);
  background: var(--sign-soft);
  margin: 0 0 16px;
  font-weight: 400;
}
.errors {
  border-left: 6px solid var(--red);
  background: #fdecec;
  border-radius: var(--r-sm);
  padding: 12px 16px;
  margin-bottom: 20px;
}
.errors p {
  margin: 0 0 4px;
  font-weight: 700;
  color: var(--red);
}
.errors ul {
  margin: 0;
  padding-left: 1.2em;
}
.empty {
  margin: 0;
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
  background: var(--road);
  border-radius: var(--r-md);
}
.empty p {
  margin: 0 0 6px;
}

/* ───────── forms ───────── */
.form {
  display: grid;
  gap: 18px;
}
.form label,
.form legend {
  display: grid;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
}
input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1.5px solid #b9c2cf;
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--ink);
  font: 400 1rem/1.6 var(--font-body);
}
textarea {
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(43, 107, 232, 0.3);
}
input[type='checkbox'],
input[type='radio'] {
  width: 20px;
  height: 20px;
  min-height: 0;
  accent-color: var(--ink);
  flex: none;
}
input[type='file'] {
  padding: 10px;
}
.form [data-for-role] {
  display: grid;
  gap: 18px;
}
.posted-at {
  margin-top: 20px;
}
.form label.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
}
.check-strong {
  padding: 14px;
  background: var(--sign-soft);
  border-radius: var(--r-sm);
  font-weight: 700 !important;
}
.form-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}
.form-inline > input {
  flex: 1 1 180px;
  width: auto;
  min-width: 0;
  max-width: 100%;
}

/* ───────── home: hero ───────── */
.hero {
  display: grid;
  gap: 32px;
  padding: 12px 0 8px;
}
@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 56px;
    align-items: start;
    padding-top: 32px;
  }
}
.hero-title {
  font-size: clamp(1.85rem, 5.2vw, 3.3rem);
  line-height: 1.28;
  margin-bottom: 20px;
}
.hero-lead {
  color: var(--ink-2);
  font-size: 1.05rem;
  max-width: 34em;
  word-break: auto-phrase;
}
.sign-search {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  margin-top: 24px;
  background: var(--sign);
  border-radius: var(--r-md);
}
.sign-search label {
  display: grid;
  gap: 4px;
  font-size: 0.8125rem;
  font-weight: 700;
}
.sign-search select {
  border-color: var(--ink);
}
.sign-search .btn {
  grid-column: 1 / -1;
  min-height: 52px;
  font-size: 1rem;
}
@media (min-width: 560px) {
  .sign-search {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: end;
    padding: 20px;
  }
  .sign-search .btn {
    grid-column: auto;
    min-height: 48px;
  }
}
.hero-count {
  margin: 14px 0 0;
  font-size: 0.875rem;
  color: var(--ink-2);
}
.hero-count b {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
  margin: 0 2px;
}

/* ───────── 出店募集ボード ───────── */
.hero-board {
  border: 2px solid var(--ink);
  border-radius: var(--r-md);
  overflow: hidden;
}
.board-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
}
.board-head h2 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--sign);
}
.board-head a {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
}
.hero-board .empty {
  border-radius: 0;
}
.board {
  list-style: none;
  margin: 0;
  padding: 0;
}
.board-row {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.board-row:last-child {
  border-bottom: 0;
}
.board-row:hover {
  background: var(--road);
}
:not(.hero-board) > .board {
  border-top: 2px solid var(--ink);
}
:not(.hero-board) > .board .board-row:last-child {
  border-bottom: 1px solid var(--line);
}
.board-row.is-closed {
  color: var(--muted);
}
.board-date {
  display: grid;
  justify-items: center;
  align-content: start;
  line-height: 1.1;
  padding-top: 2px;
}
.board-m,
.board-wd {
  font-size: 0.75rem;
  font-weight: 700;
}
.board-d {
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1.15;
}
.board-body h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 0;
  margin: 0 0 4px;
}
.board-body h3 a {
  text-decoration: none;
}
.board-body h3 a::after {
  /* 行全体をクリック可能に */
  content: '';
  position: absolute;
  inset: 0;
}
.board-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  margin: 0;
  font-size: 0.8125rem;
  color: var(--ink-2);
}
.board-detail,
.board-lock {
  margin: 2px 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}
.board-lock::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 12px;
  margin-right: 6px;
  vertical-align: -1px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12'%3E%3Cpath d='M2 5V3.5a3 3 0 0 1 6 0V5h1a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h1Zm1.5 0h3V3.5a1.5 1.5 0 0 0-3 0V5Z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12'%3E%3Cpath d='M2 5V3.5a3 3 0 0 1 6 0V5h1a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h1Zm1.5 0h3V3.5a1.5 1.5 0 0 0-3 0V5Z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.board-closed {
  display: inline-block;
  padding: 0 6px;
  border: 1px solid var(--muted);
  border-radius: 3px;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted);
}

/* 主催者の種類: 色の四角で識別 (色だけに頼らずラベルも併記) */
.org {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--ink);
}
.org::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--org, var(--muted));
}
.org-university { --org: #2b59c3; }
.org-government { --org: #007a5a; }
.org-company { --org: #6b4fbb; }
.org-commercial { --org: #c2410c; }
.org-event { --org: #d6322e; }
.org-individual { --org: #b7791f; }
.org-other { --org: #5b6780; }

/* ───────── sections ───────── */
.section {
  margin-top: 56px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
}
.section-head h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
}
.section-head a {
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
}
.org-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}
.org-link {
  display: flex;
  min-height: 52px;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  text-decoration: none;
}
.org-link:hover {
  border-color: var(--ink);
}
.audiences {
  display: grid;
  gap: 16px;
}
@media (min-width: 860px) {
  .audiences {
    grid-template-columns: 1fr 1fr;
  }
}
.audience {
  padding: 24px;
  background: var(--road);
  border-radius: var(--r-md);
}
.audience h2 {
  margin-bottom: 4px;
}
.audience-price {
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 12px;
}
.steps {
  counter-reset: step;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 40px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--sign);
  font-family: var(--font-display);
  font-size: 0.85rem;
  line-height: 26px;
  text-align: center;
}

/* ───────── truck tiles ───────── */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 14px;
}
@media (min-width: 720px) {
  .tile-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px 24px;
  }
}
@media (min-width: 1080px) {
  .tile-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.truck-tile {
  position: relative;
  display: flex;
  flex-direction: column;
}
.truck-tile-media {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--road);
  margin-bottom: 10px;
}
.truck-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.truck-tile:hover img {
  transform: scale(1.03);
}
.truck-tile-kicker {
  margin: 0 0 2px;
  font-size: 0.8125rem;
  color: var(--muted);
}
.truck-tile h3 {
  font-size: 1.05rem;
  margin: 0 0 4px;
}
.truck-tile h3 a {
  text-decoration: none;
}
.truck-tile h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.truck-tile h3 a::after {
  content: '';
  position: absolute;
  inset: 0;
}
.truck-tile:hover h3 a {
  text-decoration: underline;
}
.truck-tile-catch {
  margin: 0 0 8px;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.truck-tile-meta {
  margin: auto 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  font-size: 0.8125rem;
  color: var(--ink-2);
}

/* 写真がない出店者の看板プレート */
.plate {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 12px;
  background: var(--plate, var(--ink));
  outline: 2px solid rgba(255, 200, 0, 0.45);
  outline-offset: -10px;
  border-radius: inherit;
}
.plate span {
  font-family: var(--font-display);
  color: var(--sign);
  font-size: clamp(1rem, 3.4vw, 1.5rem);
  line-height: 1.3;
  text-align: center;
  word-break: auto-phrase;
  font-feature-settings: 'palt';
}
.plate-lg span {
  font-size: clamp(1.6rem, 5vw, 2.6rem);
}

/* stars */
.stars {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
}
.stars-fill {
  --pct: calc(var(--r) / 5 * 100%);
  background: linear-gradient(90deg, var(--star) var(--pct), #cfd6e0 var(--pct));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 1px;
}
.stars b {
  font-weight: 700;
}
.stars-count,
.stars-none {
  color: var(--muted);
}

/* ───────── search / list pages ───────── */
.page-title {
  margin-bottom: 20px;
}
.page-title h1 {
  margin-bottom: 4px;
}
.page-title p {
  margin: 0;
}
.page-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 28px;
  padding: 12px;
  background: var(--road);
  border-radius: var(--r-md);
}
.filters-q {
  grid-column: 1 / -1;
}
/* キーワード欄がないフォーム (選択肢2つ) はボタンを全幅に。ある場合は並び順と横並び */
.filters:not(:has(.filters-q)) .btn {
  grid-column: 1 / -1;
}
@media (min-width: 860px) {
  .filters {
    display: flex;
  }
  .filters > label {
    flex: 1 1 0;
  }
  .filters-q {
    flex-grow: 2 !important;
  }
  .filters .btn {
    flex: none;
  }
}

/* ───────── truck detail ───────── */
.truck-hero {
  display: grid;
  gap: 20px;
  margin-bottom: 8px;
}
@media (min-width: 880px) {
  .truck-hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
  }
}
.truck-hero-media {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--road);
  margin: 0 calc(var(--gutter) * -1);
}
@media (min-width: 720px) {
  .truck-hero-media {
    margin: 0;
  }
}
@media (max-width: 719px) {
  .truck-hero-media {
    border-radius: 0;
  }
}
/* 写真がないときはプレートを控えめなサイズに */
.truck-hero-media:has(.plate) {
  aspect-ratio: 16 / 7;
}
@media (min-width: 880px) {
  .truck-hero-media:has(.plate) {
    aspect-ratio: 4 / 3;
    max-height: 320px;
    width: 100%;
  }
}
.truck-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 719px) {
  .truck-hero-body .btn-lg {
    width: 100%;
  }
}
.truck-name {
  font-size: clamp(1.9rem, 4.6vw, 2.9rem);
  line-height: 1.25;
  margin-bottom: 10px;
}
.truck-catch {
  font-size: 1.05rem;
  color: var(--ink-2);
  word-break: auto-phrase;
}
.truck-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 8px 28px;
  margin: 0 0 20px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.truck-stats dt {
  font-size: 0.75rem;
  color: var(--muted);
}
.truck-stats dd {
  margin: 0;
  font-size: 0.875rem;
}
.truck-stats dd b {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
  margin-right: 2px;
}
.truck-stats .stars b {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.1rem;
}

.detail-layout {
  display: grid;
  gap: 8px 48px;
}
@media (min-width: 960px) {
  .detail-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
  .detail-side {
    position: sticky;
    top: 88px;
    align-self: start;
  }
}
.detail-main,
.detail-side {
  min-width: 0;
}
.detail-side {
  display: grid;
  gap: 20px;
  align-content: start;
  margin-top: 32px;
}
.block {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}
.block h2 {
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.h-count {
  margin-left: 10px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0;
}
.side-block {
  padding: 20px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
}
.side-block h2 {
  font-size: 1.05rem;
}
.side-block > :last-child {
  margin-bottom: 0;
}
.side-consult {
  border: 2px solid var(--ink);
  border-top: 8px solid var(--sign);
}
.side-consult .btn + .btn {
  margin-top: 8px;
}
.specs {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 16px;
  margin: 0 0 12px;
  font-size: 0.925rem;
}
.specs dt {
  color: var(--muted);
  font-size: 0.8125rem;
  padding-top: 2px;
}
.specs dd {
  margin: 0;
}
.links {
  display: flex;
  gap: 16px;
  margin: 0;
  font-weight: 700;
  font-size: 0.925rem;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 720px) {
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.gallery figure {
  margin: 0;
}
.gallery img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  border-radius: var(--r-sm);
  background: var(--road);
}
.gallery figcaption {
  font-size: 0.8125rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-top: 4px;
}
.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  max-width: 40em;
}
.menu-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 700;
}
.menu-dots {
  flex: 1;
  min-width: 16px;
  border-bottom: 2px dotted #b9c2cf;
}
.menu-price {
  font-variant-numeric: tabular-nums;
}
.menu-desc {
  margin: 2px 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}
.history {
  list-style: none;
  margin: 0;
  padding: 0;
}
.history li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.history li:first-child {
  padding-top: 0;
}
.history time {
  font-weight: 700;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
  padding-top: 1px;
}
.history p {
  margin: 0;
}
.history-title {
  font-weight: 700;
}
.history-meta,
.history-note {
  font-size: 0.8125rem;
  color: var(--muted);
}
.verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding: 0 8px;
  border-radius: 3px;
  background: var(--green-soft);
  color: var(--green);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0;
  white-space: nowrap;
  vertical-align: 2px;
}
.verified::before {
  content: '✓';
}
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 15;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
}
@media (min-width: 960px) {
  .sticky-cta {
    display: none;
  }
}

/* reviews */
.review-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 44em;
}
.review {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.review:first-child {
  padding-top: 0;
}
.review p {
  margin: 6px 0 0;
}
.review-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}
.review-by {
  font-size: 0.8125rem;
  font-weight: 700;
}
.paywall {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 18px 20px;
  background: var(--sign-soft);
  border-left: 6px solid var(--sign);
  border-radius: var(--r-sm);
}
.paywall p {
  margin: 0;
}
.paywall-title {
  font-weight: 700;
}
.review-list-locked {
  width: 100%;
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
  opacity: 0.8;
}

/* host / posting detail */
.host-head {
  margin-bottom: 8px;
}
.host-head h1 {
  margin-bottom: 6px;
}
.posting-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 20px;
}
.posting-date-lg {
  display: grid;
  justify-items: center;
  min-width: 72px;
  padding: 10px 8px;
  background: var(--sign);
  border-radius: var(--r-sm);
  line-height: 1.1;
}
.posting-date-lg span {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.2;
}
.posting-date-lg small {
  font-weight: 700;
  font-size: 0.75rem;
}
.posting-title {
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  margin: 0;
}
.detail-main > .specs {
  font-size: 1rem;
  padding: 16px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

/* ───────── guide (article) ───────── */
.article {
  max-width: 42em;
  min-width: 0;
}
.article-side {
  display: none;
}
@media (min-width: 1000px) {
  .article-layout {
    display: grid;
    grid-template-columns: minmax(0, 42em) 280px;
    justify-content: space-between;
    gap: 48px;
  }
  .article-side {
    display: grid;
    gap: 12px;
    align-content: start;
    align-self: start;
    position: sticky;
    top: 88px;
  }
  .article-side .toc ol {
    font-size: 0.875rem;
  }
  .article > .toc {
    display: none;
  }
}
.article-head {
  margin-bottom: 28px;
}
.article-head h1 {
  font-size: clamp(1.8rem, 4.4vw, 2.6rem);
}
.article-lead {
  font-size: 1.1rem;
  color: var(--ink-2);
}
.article section {
  margin-top: 40px;
}
.article h2 {
  font-size: clamp(1.25rem, 2.6vw, 1.55rem);
  padding-top: 16px;
  border-top: 2px solid var(--ink);
}
.article ul {
  padding-left: 1.3em;
}
.article li {
  margin-bottom: 4px;
}
.toc {
  padding: 16px 20px;
  background: var(--road);
  border-radius: var(--r-md);
}
.toc-title {
  font-weight: 700;
  margin: 0 0 4px;
}
.toc ol {
  margin: 0;
  padding-left: 1.4em;
}
.note {
  font-size: 0.9rem;
  padding: 12px 16px;
  background: var(--road);
  border-radius: var(--r-sm);
}
.defs dt {
  font-weight: 700;
  margin-top: 16px;
}
.defs dd {
  margin: 4px 0 0;
  color: var(--ink-2);
}
.faq {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  padding: 14px 32px 14px 0;
  font-weight: 700;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 10px;
  font-size: 1.4rem;
  line-height: 1.4;
}
.faq[open] summary::after {
  content: '−';
}
.article-cta {
  margin-top: 48px;
  padding: 24px;
  background: var(--sign);
  border-radius: var(--r-md);
}
.article-cta p {
  font-weight: 700;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.925rem;
  margin-bottom: 16px;
}
.table th,
.table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.table th {
  font-size: 0.8125rem;
  color: var(--muted);
  border-bottom: 2px solid var(--ink);
}

/* ───────── footer ───────── */
.site-footer {
  background: var(--ink);
  color: #dfe5ee;
  padding: 40px 0 24px;
  font-size: 0.875rem;
}
.site-footer a {
  color: #fff;
}
.site-footer .logo-for-light {
  display: none;
}
.site-footer .logo-for-dark {
  display: block;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 24px;
}
.footer-brand {
  grid-column: 1 / -1;
}
.footer-brand p {
  margin: 10px 0 0;
}
.footer-grid nav {
  display: grid;
  gap: 8px;
  align-content: start;
}
.footer-grid h2 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--sign);
  margin: 0;
}
.site-footer .muted {
  color: #aab6c8;
}
.footer-bottom {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: #aab6c8;
}
@media (min-width: 860px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
  .footer-brand {
    grid-column: auto;
  }
}

/* ───────── app screens (マイページ・メッセージ・フォーム) ───────── */
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.page-head h1 {
  margin: 0;
}
.card {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px;
  min-width: 0;
}
.card h2 {
  font-size: 1.1rem;
}
.card > :last-child {
  margin-bottom: 0;
}
.card-accent {
  border: 2px solid var(--ink);
  border-top: 8px solid var(--sign);
}
.card-warn {
  background: var(--sign-soft);
  border-color: var(--sign);
  border-left-width: 6px;
}
.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.card-link:hover {
  border-color: var(--ink);
}
.chip {
  display: inline-block;
  padding: 0 8px;
  border-radius: 3px;
  background: var(--road);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0;
  vertical-align: middle;
}
.checklist {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 6px;
}
.checklist li {
  display: flex;
  gap: 8px;
}
.checklist li::before {
  content: '';
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 5px;
  border: 2px solid #b9c2cf;
  border-radius: 50%;
}
.checklist li.done::before {
  border-color: var(--green);
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.5l4.5-5' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.checklist li.done a {
  color: var(--muted);
}
.tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.tabs a {
  flex: none;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 0.925rem;
  text-decoration: none;
}
.tabs a:hover {
  box-shadow: inset 0 -3px 0 var(--sign);
}
.edit-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.edit-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.gallery-edit figcaption {
  align-items: center;
}
.status {
  display: inline-block;
  padding: 0 8px;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.8;
  background: var(--road);
  color: var(--ink-2);
  white-space: nowrap;
}
.status-proposed { background: var(--sign-soft); color: #7a5b00; }
.status-confirmed { background: var(--green-soft); color: var(--green); }
.status-completed { background: #e6ecf8; color: #2b59c3; }
.status-declined,
.status-canceled { color: var(--muted); }
.booking-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.booking {
  display: grid;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.booking:first-child {
  padding-top: 0;
}
.booking-main {
  display: grid;
  gap: 2px;
  justify-items: start;
}
.booking-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.plan-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-bottom: 12px;
}
.plan-yen {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1.2;
}

/* auth */
.auth-box {
  max-width: 480px;
  margin: 8px auto 0;
}
.auth-box h1 {
  margin-bottom: 20px;
}
.role-picker {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.role-picker legend {
  margin-bottom: 8px;
}
.form .role-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
  font-weight: 400;
}
.role-option:has(input:checked) {
  border: 2px solid var(--ink);
  background: var(--sign-soft);
}
.role-option span {
  display: grid;
}
.role-option small {
  color: var(--muted);
  font-size: 0.8125rem;
}
.rating-input {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 2px;
}
.form .rating-input label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  color: var(--star);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 2px;
}

/* messages */
.thread-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ink);
}
.thread-list a {
  display: grid;
  gap: 2px;
  padding: 14px 4px 14px 16px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  position: relative;
}
.thread-list a:hover {
  background: var(--road);
}
.thread-list a.unread::before {
  content: '';
  position: absolute;
  left: 0;
  top: 22px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}
.thread-list a.unread .thread-subject {
  font-weight: 700;
}
.thread-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.875rem;
}
.ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.thread-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* 1 列表示のとき中身の最小幅で列が広がらないように */
  gap: 20px;
}
@media (min-width: 960px) {
  .thread-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
  }
}
.thread-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.thread-head h1 {
  font-size: 1.3rem;
  margin: 4px 0;
}
.thread-head p {
  margin: 0;
}
.messages {
  list-style: none;
  margin: 0;
  padding: 16px 12px;
  background: var(--road);
  border-radius: var(--r-md);
  height: min(62vh, 600px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.msg {
  display: grid;
  gap: 2px;
  max-width: 82%;
}
.msg-me {
  align-self: flex-end;
  justify-items: end;
}
.msg-them {
  align-self: flex-start;
}
.msg-system {
  align-self: center;
  justify-items: center;
  max-width: 94%;
}
.msg-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--paper);
  line-height: 1.7;
}
.msg-me .msg-bubble {
  background: var(--ink);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg-them .msg-bubble {
  border-bottom-left-radius: 4px;
}
.msg-system .msg-bubble {
  background: var(--sign-soft);
  font-size: 0.8125rem;
  text-align: center;
  border-radius: var(--r-sm);
}
.msg-time {
  font-size: 0.6875rem;
  color: var(--muted);
}
.composer {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.composer textarea {
  flex: 1;
  min-height: 52px;
}

/* スレッド: 出店依頼フォームは折りたたみ */
.propose summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding-right: 32px;
}
.propose summary::-webkit-details-marker {
  display: none;
}
.propose summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: -4px;
  font-size: 1.6rem;
  line-height: 1.4;
}
.propose[open] summary::after {
  content: '−';
}
.propose summary p {
  margin: 0;
}
.propose[open] summary {
  margin-bottom: 16px;
}
@media (max-width: 719px) {
  .thread-main .messages {
    margin: 0 calc(var(--gutter) * -1);
    border-radius: 0;
    height: 58vh;
  }
}

/* ───────── マイページ ───────── */
.dash {
  display: grid;
  gap: 24px;
}
.dash-head h1 {
  margin-bottom: 4px;
}
.dash-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 0.875rem;
}
.dash-tabs {
  align-items: center;
}
.tabs a[aria-current='page'] {
  box-shadow: inset 0 -3px 0 var(--ink);
}
.tabs-logout {
  margin-left: auto;
  flex: none;
  padding-left: 12px;
}
.tabs-logout .link-btn {
  color: var(--muted);
}
.link-btn {
  white-space: nowrap;
}
.edit-list form,
.gallery figcaption form {
  flex: none;
}
.dash-upsell .btn {
  margin-top: 4px;
}
.dash-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 860px) {
  .dash-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.stat-card {
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 16px 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  color: inherit;
  text-decoration: none;
}
.stat-card:hover {
  border-color: var(--ink);
}
.stat-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
@media (min-width: 860px) {
  .stat-card:last-child:nth-child(odd) {
    grid-column: auto;
  }
}
.stat-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink-2);
}
.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.3;
}
.stat-value small {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  margin-left: 4px;
}
.stat-text {
  font-size: 1.3rem;
}
.stat-note {
  font-size: 0.8125rem;
  color: var(--muted);
}
.stat-action {
  background: var(--sign);
  border-color: var(--sign);
}
.stat-action .stat-label {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--ink);
}
.stat-action .stat-note {
  color: var(--ink-2);
}
.dash-cols {
  display: grid;
  gap: 16px;
  align-items: start;
}
@media (min-width: 960px) {
  .dash-cols {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  }
}
.dash .block {
  margin-top: 8px;
}
.section-head-inline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.section-head-inline a {
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
}
.side-block .board {
  border-top: 0 !important;
}
.meter {
  width: 100%;
  height: 8px;
  margin: -4px 0 12px;
  appearance: none;
  border: 0;
  border-radius: 4px;
  background: var(--road);
  overflow: hidden;
}
.meter::-webkit-progress-bar {
  background: var(--road);
}
.meter::-webkit-progress-value {
  background: var(--green);
}
.meter::-moz-progress-bar {
  background: var(--green);
}
.block .board {
  border-top: 1px solid var(--line) !important;
}
.req {
  display: inline-block;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 3px;
  background: var(--red);
  color: #fff;
  font-size: 0.6875rem;
  line-height: 1.6;
  vertical-align: 1px;
}
.form-lead {
  color: var(--ink-2);
  font-size: 0.925rem;
  max-width: 40em;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
/* アプリ画面の読みやすい最大幅 (タブは全幅のまま) */
.measure > :not(.tabs) {
  max-width: 720px;
}
.not-found {
  max-width: 40em;
  padding: 40px 0 24px;
}
.not-found p {
  color: var(--ink-2);
}

/* ───────── 紹介プログラム ───────── */
.referral-banner {
  margin-bottom: 16px;
  padding: 14px 16px;
  background: var(--sign-soft);
  border-left: 6px solid var(--sign);
  border-radius: var(--r-sm);
}
.referral-banner p {
  margin: 0;
}
.referral-banner-title {
  font-weight: 700;
}
.referral-perks {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
@media (min-width: 640px) {
  .referral-perks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.referral-perks p {
  margin: 0;
}
.referral-perk {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.4;
  margin: 2px 0 6px !important;
}
.qr {
  margin: 0 auto 16px;
  width: min(100%, 280px);
  text-align: center;
}
.qr svg {
  display: block;
  width: 100%;
  height: auto;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
}
.copy-field {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.copy-field input {
  flex: 1;
  min-width: 0;
}
.referral-qr label {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  font-weight: 700;
  font-size: 0.9rem;
}

/* ───────── アカウント ───────── */
.card-danger {
  border-color: #f0c2c1;
}
.card-danger ul {
  padding-left: 1.2em;
}
.btn-danger {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.btn-danger:hover {
  background: #b02824;
  border-color: #b02824;
}

/* ───────── ポートフォリオ編集 ───────── */
.field-note {
  margin: -8px 0 0;
}
.edit-list li {
  display: block;
}
.edit-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.edit-row-main {
  flex: 1;
  min-width: 0;
}
.edit-row form {
  flex: none;
}
.edit-details summary {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.875rem;
  color: var(--ink-2);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.edit-details[open] summary {
  margin-bottom: 8px;
}
.edit-details .form {
  gap: 10px;
  padding: 12px;
  background: var(--road);
  border-radius: var(--r-sm);
}
.menu-thumb {
  flex: none;
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--r-sm);
  background: var(--road);
}
.move-buttons {
  display: inline-flex;
  gap: 4px;
  flex: none;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--ink);
  font: 700 0.95rem/1 var(--font-body);
  cursor: pointer;
}
.icon-btn:hover:not(:disabled) {
  border-color: var(--ink);
}
.icon-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.gallery-edit figcaption {
  display: grid;
  gap: 6px;
}
.caption-form {
  display: flex;
  gap: 6px;
  align-items: center;
}
.caption-form input {
  min-height: 36px;
  padding: 4px 8px;
  font-size: 0.875rem;
}
.photo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}
.upload-status {
  margin: 0;
  font-weight: 700;
}

/* ───────── 地図・距離 ───────── */
.map {
  height: 360px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: var(--road);
  z-index: 0;
}
.map-sm {
  height: 220px;
}
.map-board {
  height: 70vh;
  min-height: 360px;
}
@media (min-width: 860px) {
  .map-board {
    height: min(72vh, 720px);
    min-height: 480px;
  }
}
.map-toggle {
  margin: 0 0 20px;
}
.map-toggle summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-weight: 700;
  cursor: pointer;
}
.map-popup {
  display: grid;
  gap: 2px;
  font-family: var(--font-body);
  font-size: 0.875rem;
}
.map-popup a {
  font-weight: 700;
  color: var(--ink);
}
.map-popup span {
  color: var(--muted);
  font-size: 0.8125rem;
  margin-bottom: 4px;
}
.distance {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 3px;
  background: var(--sign-soft);
  color: #6b4d00;
  font-size: 0.75rem;
  font-weight: 700;
}
/* 距離の条件を含むフォーム: 広い画面では 2 段に折り返す */
@media (min-width: 860px) {
  .filters-wide {
    flex-wrap: wrap;
  }
  .filters-wide .filters-q {
    flex-basis: 100%;
  }
}
.filters-hint {
  margin: -20px 0 24px;
}
.menu-list li.has-photo {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
}
.menu-photo {
  grid-row: span 2;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--r-sm);
  background: var(--road);
}
.menu-list li.has-photo > :not(.menu-photo) {
  grid-column: 2;
}
.specs + .map {
  margin-top: 12px;
}

/* ───────── 書類（非公開・1:1 開示） ───────── */
.credential {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
}
.credential-head {
  display: flex;
  gap: 6px;
  align-items: center;
}
.credential-fields {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 12px;
  margin: 0;
  font-size: 0.875rem;
}
.credential-fields dt {
  color: var(--muted);
}
.credential-fields dd {
  margin: 0;
  font-weight: 700;
}
.credential-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 0;
}
.credential-item {
  display: grid;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.credential-disclosed ul {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.credential-disclosed li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}
.credential-delete {
  margin-top: 8px;
}
.disclosure-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 6px;
}
.disclosure-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.disclosure-form fieldset {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  border: 0;
}
.disclosure-form legend {
  margin-bottom: 4px;
  font-weight: 700;
}
#credentials .stack {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}
/* サイドバー (スレッド画面) では項目名と値を縦に積む */
.side-block .credential-fields {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
.side-block .credential-fields dd {
  margin-bottom: 4px;
}
/* フォーム内の小さいボタンは全幅に伸ばさない */
.form > .btn-sm {
  justify-self: start;
}
.disclosure-form .btn {
  white-space: normal;
  height: auto;
}

/* ───────── テスト環境・規約・通報・ページ送り ───────── */
.staging-bar {
  padding: 4px 16px;
  background: repeating-linear-gradient(135deg, var(--sign) 0 12px, #ffd84d 12px 24px);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 700;
  text-align: center;
}
.legal h2 {
  margin-top: 28px;
  font-size: 1.05rem;
}
.legal ol,
.legal ul {
  padding-left: 1.4em;
}
.legal li {
  margin-bottom: 4px;
}
.legal-table {
  display: grid;
  grid-template-columns: minmax(0, 11em) minmax(0, 1fr);
  border-top: 1px solid var(--line);
}
.legal-table dt,
.legal-table dd {
  margin: 0;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
}
.legal-table dt {
  font-weight: 700;
  background: var(--road);
}
@media (max-width: 560px) {
  .legal-table {
    grid-template-columns: minmax(0, 1fr);
  }
  .legal-table dt {
    border-bottom: 0;
  }
}
.report summary,
.report-link {
  font-size: 0.8125rem;
  color: var(--muted);
  cursor: pointer;
}
.report[open] summary {
  margin-bottom: 8px;
}
.report .form {
  max-width: 420px;
  gap: 10px;
}
.inline-form {
  display: inline;
}
.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  font-weight: 700;
}
.cf-turnstile {
  min-height: 65px;
}

/* ───────── カレンダー (募集のカレンダー表示・出店可能日) ───────── */
.view-switch {
  margin: -16px 0 16px;
}
.calendar-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.month-grid {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.8125rem;
}
.month-grid caption {
  text-align: left;
  font-weight: 700;
  padding-bottom: 4px;
}
.month-grid th {
  padding: 4px 0;
  font-weight: 700;
  color: var(--ink-2);
}
.month-grid td {
  height: 84px;
  padding: 4px;
  vertical-align: top;
  border: 1px solid var(--line);
  overflow: hidden;
}
.month-grid .sun,
.month-grid .sun .month-day {
  color: #c0392b;
}
.month-grid .sat,
.month-grid .sat .month-day {
  color: #2b59c3;
}
.month-grid td.past {
  background: #f7f8fa;
  color: var(--muted);
}
.month-grid td.today {
  box-shadow: inset 0 0 0 2px var(--ink);
}
.month-grid td.blank {
  background: var(--road);
}
.month-day {
  display: block;
  font-weight: 700;
  color: var(--ink);
}
.month-items {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.month-items a {
  display: block;
  padding: 1px 4px;
  border-radius: 3px;
  background: var(--sign-soft);
  color: var(--ink);
  font-size: 0.75rem;
  line-height: 1.4;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.day-select {
  width: 100%;
  min-height: 30px;
  padding: 2px 4px;
  font-size: 0.75rem;
}
.day-select.day-open {
  background: var(--green-soft);
}
.day-select.day-busy {
  background: #f3f4f6;
}
.day-mark {
  display: inline-block;
  font-weight: 700;
}
.day-open {
  color: var(--green);
}
.day-busy {
  color: var(--muted);
}
.day-booked {
  padding: 0 4px;
  border-radius: 3px;
  background: var(--ink);
  color: #fff;
  font-size: 0.75rem;
}
.calendar-form {
  display: grid;
  gap: 16px;
  justify-items: start;
}
.availability-months {
  display: grid;
  gap: 16px;
}
.availability-months .month-grid td {
  height: 44px;
  text-align: center;
}
@media (min-width: 720px) {
  .availability-months {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .month-grid td {
    height: 64px;
    padding: 2px;
  }
  .month-items a {
    font-size: 0.6875rem;
  }
}
.open-day {
  background: var(--green-soft);
  color: var(--green);
}

/* ───────── メッセージ: 添付・通報・ブロック ───────── */
.thread-safety {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  margin-top: 4px;
  font-size: 0.8125rem;
}
.older-link {
  margin: 0 0 8px;
}
.msg-file {
  display: inline-block;
  max-width: min(320px, 80%);
  margin-top: 4px;
}
.msg-file img {
  display: block;
  max-width: 100%;
  max-height: 240px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
}
.msg-file span {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  font-size: 0.875rem;
}
.composer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.attach {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.attach input[type='file'] {
  min-height: 0;
  padding: 4px;
  font-size: 0.8125rem;
}
.booking-edit .form {
  gap: 8px;
}

/* ───────── 募集の掲載者の操作 ───────── */
.owner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

/* ───────── 有料会員: 最終確認・領収書 ───────── */
.final-confirm {
  margin: 16px 0;
}
.final-confirm h2 {
  font-size: 1rem;
  margin-bottom: 8px;
}
.receipt {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
}
.receipt h1 {
  text-align: center;
  letter-spacing: 0.4em;
}
.receipt-no {
  text-align: right;
  font-size: 0.8125rem;
  color: var(--muted);
}
.receipt-to {
  font-size: 1.2rem;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 4px;
}
.receipt-amount {
  font-family: var(--font-display);
  font-size: 2.2rem;
  text-align: center;
  margin: 20px 0;
}
.receipt-amount small {
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.receipt-issuer {
  margin-top: 24px;
  text-align: right;
}
.receipt-issuer p {
  margin: 0;
}
@media print {
  .site-header,
  .site-footer,
  .staging-bar,
  .breadcrumbs,
  .notice,
  .no-print,
  .skip-link {
    display: none !important;
  }
  .receipt {
    border: 0;
    padding: 0;
  }
}

/* ───────── 運営画面 ───────── */
.admin-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
}
.admin-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.admin-list > li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.admin-list p {
  margin: 0 0 4px;
}
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px 12px;
}
.admin-suspend {
  gap: 8px;
  max-width: 420px;
}
.table-wrap {
  overflow-x: auto;
}
.workspace-switch {
  display: flex;
  align-items: center;
  gap: 6px;
}
.workspace-switch select,
.workspace-current {
  max-width: 12rem;
  font-size: 0.85rem;
}
.workspace-current {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.member-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.member-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line, #d5dbe3);
}
.member-actions,
.inline-form {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.msg-author {
  margin: 0 0 2px;
}
