:root {
  color-scheme: light;
  --bg: #f6f2e8;
  --panel: rgba(255, 252, 246, 0.88);
  --text: #211a16;
  --muted: #5a4b43;
  --gold: #bd5b3f;
  --accent: #d97655;
  --line: rgba(91, 65, 51, 0.25);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans JP", "Yu Gothic UI", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 10% 0%, rgba(200, 36, 48, 0.2) 0, transparent 32%),
    radial-gradient(circle at 92% 6%, rgba(22, 47, 93, 0.2) 0, transparent 34%),
    linear-gradient(180deg, #fbf5ea 0%, #f1e7d8 55%, #efe3d2 100%);
}

.bg-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(115, 82, 62, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(115, 82, 62, 0.08) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.16;
}

.posts-page::before,
.posts-page::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 999px;
}

.posts-page::before {
  width: 260px;
  height: 260px;
  top: 64px;
  right: 4vw;
  background: radial-gradient(circle at 36% 36%, rgba(255, 255, 255, 0.78) 0 14%, rgba(220, 118, 138, 0.26) 15% 58%, rgba(220, 118, 138, 0) 59%);
  filter: blur(0.2px);
  opacity: 0.85;
}

.posts-page::after {
  width: 190px;
  height: 190px;
  bottom: 80px;
  left: 3vw;
  background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.8) 0 13%, rgba(232, 154, 172, 0.22) 14% 56%, rgba(232, 154, 172, 0) 57%);
  opacity: 0.78;
}

.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 32px 16px 56px;
  position: relative;
  z-index: 1;
}

.hero {
  margin-bottom: 28px;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #9b2f2f;
  font-size: 12px;
  margin: 0 0 10px;
}

h1 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Times New Roman", serif;
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
}

.lead {
  margin: 12px 0 0;
  color: var(--muted);
  max-width: 800px;
}

.page-links {
  margin: 14px 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.text-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease, color 180ms ease;
}

.text-link:hover {
  color: #f4e3be;
  border-color: rgba(244, 227, 190, 0.6);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  margin-top: 18px;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 22px rgba(54, 38, 28, 0.12);
}

h2 {
  margin: 0 0 14px;
  font-size: 1.4rem;
}

.prompt {
  margin: 6px 0;
  color: var(--muted);
}

.form {
  margin-top: 16px;
  display: grid;
  gap: 14px;
}

.form.compact {
  max-width: 430px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  padding: 12px;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(189, 91, 63, 0.2);
}

button {
  width: fit-content;
  border: none;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--gold), var(--accent));
  color: #fffaf4;
  font-weight: 700;
  padding: 10px 18px;
  cursor: pointer;
}

button:hover {
  filter: brightness(1.05);
}

.status {
  margin: 0;
  color: var(--muted);
}

.status-link {
  display: inline-block;
  margin-left: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--gold), var(--accent));
  color: #17130d;
  font-weight: 700;
  text-decoration: none;
  vertical-align: middle;
}

.status-link:hover {
  filter: brightness(1.06);
}

.feed {
  display: grid;
  gap: 14px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.58);
}

.luxe-feed {
  gap: 24px;
}

.posts-page .gallery-panel {
  padding: 24px;
  background: linear-gradient(160deg, rgba(255, 249, 240, 0.92), rgba(244, 235, 221, 0.94));
  overflow: hidden;
}

.posts-page .card {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.84), rgba(255, 249, 242, 0.78));
  box-shadow: 0 16px 34px rgba(62, 41, 33, 0.2);
  overflow: hidden;
}

.card h3 {
  margin: 0 0 8px;
  font-family: "Times New Roman", serif;
  font-size: 1.2rem;
}

.card time {
  color: var(--muted);
  font-size: 0.92rem;
}

.suggestions {
  margin: 6px 0 10px;
  color: #2b211b;
  background: rgba(255, 250, 244, 0.82);
  border: 1px solid rgba(128, 95, 74, 0.22);
  border-left: 4px solid rgba(189, 91, 63, 0.7);
  border-radius: 10px;
  padding: 10px 12px;
  line-height: 1.5;
}

.photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}

.photos img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.posts-page .photos {
  margin-top: 10px;
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  padding-right: 2px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.posts-page .photos img {
  flex: 0 0 clamp(220px, 26vw, 330px);
  width: clamp(220px, 26vw, 330px);
  height: clamp(220px, 26vw, 330px);
  border-radius: 14px;
  border: 1px solid rgba(108, 73, 57, 0.24);
  box-shadow: 0 12px 24px rgba(65, 43, 32, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.45) inset;
  transform: translateY(0) scale(1);
  transition: transform 260ms ease, box-shadow 260ms ease, filter 260ms ease;
  filter: saturate(1.12) contrast(1.05);
  scroll-snap-align: start;
}

.posts-page .photos::-webkit-scrollbar {
  height: 10px;
}

.posts-page .photos::-webkit-scrollbar-track {
  background: rgba(113, 84, 66, 0.16);
  border-radius: 999px;
}

.posts-page .photos::-webkit-scrollbar-thumb {
  background: linear-gradient(120deg, rgba(189, 91, 63, 0.82), rgba(217, 118, 85, 0.82));
  border-radius: 999px;
}

.posts-page .photos img:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 30px rgba(62, 39, 29, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.62) inset;
  filter: saturate(1.14) contrast(1.07);
}

.posts-page .suggestions {
  color: #241a15;
  font-size: 1.02rem;
  max-width: 72ch;
  background: rgba(255, 252, 247, 0.9);
  border-color: rgba(120, 87, 68, 0.26);
}

@media (max-width: 640px) {
  .page-links {
    flex-wrap: wrap;
  }

  .posts-page::before {
    width: 180px;
    height: 180px;
    top: 80px;
  }

  .posts-page::after {
    width: 130px;
    height: 130px;
    bottom: 100px;
  }

  .posts-page .photos {
    gap: 10px;
  }

  .posts-page .photos img {
    flex-basis: 82vw;
    width: 82vw;
    height: 250px;
  }
}

.admin-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.admin-actions .reject {
  background: linear-gradient(120deg, #b36366, #d28184);
}

.empty {
  color: var(--muted);
}
