/* Admin UI: Minamo Master Club styled (DS/glass) */
:root {
  color-scheme: light;
  --ink: #0b1020;
  --muted: rgba(11, 16, 32, 0.62);
  --stroke: rgba(11, 16, 32, 0.08);
  --panel: rgba(255, 255, 255, 0.72);
  --shadow:
    0 16px 30px rgba(0, 0, 0, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);

  --pink: #ff2ca6;
  --pink2: #ff7fd0;
  --bar-pink-top: rgba(255, 64, 176, 0.98);
  --bar-pink-bottom: rgba(255, 156, 220, 0.98);

  --btn-blue-top: rgba(214, 248, 132, 0.96);
  --btn-blue-bottom: rgba(155, 226, 72, 0.90);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "M PLUS Rounded 1c", system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--ink);
  background:
    radial-gradient(900px 540px at 16% 18%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 60%),
    radial-gradient(720px 520px at 78% 28%, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, #d8f1ff, #ffe0f3 70%, #dfffe9);
}

body::before {
  content: "";
  position: fixed;
  inset: -40px;
  pointer-events: none;
  opacity: 0.55;
  background:
    radial-gradient(34px 34px at 12% 22%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 60%),
    radial-gradient(54px 54px at 22% 62%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 70%),
    radial-gradient(40px 40px at 36% 38%, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0) 70%),
    radial-gradient(70px 70px at 62% 22%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 72%),
    radial-gradient(44px 44px at 78% 58%, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0) 70%),
    radial-gradient(84px 84px at 88% 28%, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0) 72%),
    radial-gradient(6px 6px at 18% 26%, rgba(255, 191, 232, 0.85), rgba(255, 191, 232, 0) 70%),
    radial-gradient(6px 6px at 72% 34%, rgba(184, 215, 255, 0.85), rgba(184, 215, 255, 0) 70%),
    radial-gradient(6px 6px at 86% 64%, rgba(183, 255, 90, 0.55), rgba(183, 255, 90, 0) 70%);
  filter: saturate(1.05);
}

/* Subtle water shimmer (very light) */
body::after {
  content: "";
  position: fixed;
  inset: -60px;
  pointer-events: none;
  opacity: 0.22;
  background:
    radial-gradient(120px 90px at 18% 24%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 70%),
    radial-gradient(140px 110px at 46% 42%, rgba(0, 191, 255, 0.25), rgba(0, 0, 0, 0) 70%),
    radial-gradient(160px 120px at 72% 34%, rgba(255, 44, 166, 0.20), rgba(0, 0, 0, 0) 72%),
    radial-gradient(140px 110px at 82% 68%, rgba(179, 136, 255, 0.12), rgba(0, 0, 0, 0) 72%);
  animation: waterWobble 18s ease-in-out infinite;
  mix-blend-mode: screen;
}

@keyframes waterWobble {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-10px, 8px, 0) scale(1.02);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 22px;
  margin: 12px auto 0;
  max-width: 1100px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px) saturate(1.2);
  overflow: hidden;
}
.top::before {
  /* crisp diagonal dots (header pattern vibe) */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 6px 6px, rgba(0, 0, 0, 0.28) 2.2px, transparent 2.4px) 0 0 / 18px 18px,
    radial-gradient(circle at 15px 15px, rgba(0, 0, 0, 0.18) 2px, transparent 2.2px) 0 0 / 18px 18px;
  opacity: 0.12;
  transform: rotate(-6deg) scale(1.1);
  transform-origin: center;
  pointer-events: none;
}
.top::after {
  /* glossy wash */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0) 60%);
  opacity: 0.55;
  pointer-events: none;
}
.top__inner {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.brand__title {
  font-weight: 900;
  letter-spacing: 0.06em;
  color: rgba(255, 44, 166, 0.92);
  text-shadow:
    0 0 18px rgba(255, 255, 255, 0.95),
    0 0 60px rgba(255, 255, 255, 0.55);
}
.brand__sub {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.top__note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.92);
  font-size: 12px;
  color: rgba(10, 28, 42, 0.8);
  box-shadow:
    0 10px 18px rgba(0, 0, 0, 0.08),
    0 0 34px rgba(255, 255, 255, 0.65);
}
.pill--warn {
  border-color: rgba(255, 44, 166, 0.25);
  color: rgba(255, 44, 166, 0.9);
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 16px 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.card {
  border: 1px solid rgba(255, 255, 255, 0.90);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  outline: 1px solid rgba(11, 16, 32, 0.06);
  border-radius: 22px;
  padding: 16px;
  overflow: hidden;
}
.card__title {
  margin: -16px -16px 12px;
  padding: 12px 14px;
  font-size: 13px;
  letter-spacing: 0.12em;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.22);
  background: linear-gradient(180deg, var(--bar-pink-top), var(--bar-pink-bottom));
  border-bottom: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 22px 22px 16px 16px;
}
.card__desc {
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.form__hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.form__hint strong {
  color: rgba(0, 120, 190, 0.95);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.6px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.95);
  outline: 1px solid rgba(11, 16, 32, 0.07);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--btn-blue-top), var(--btn-blue-bottom));
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 55%);
  opacity: 0.92;
}
.btn > * {
  position: relative;
  z-index: 1;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.file {
  flex: 1 1 320px;
}

.status {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(0, 90, 140, 0.9);
  min-height: 1.2em;
}

.list {
  margin-top: 12px;
}
.list__head {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.list__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.list__row .list__head {
  margin-bottom: 0;
}
.list__title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.list__note {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.list__empty {
  padding: 14px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
}
.last-published {
  padding: 10px 14px;
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.5;
  background: linear-gradient(135deg, rgba(214, 248, 132, 0.5), rgba(155, 226, 72, 0.35));
  border: 1px solid rgba(100, 180, 60, 0.5);
  border-radius: 12px;
  color: var(--ink);
}
.last-published strong {
  color: rgba(0, 100, 60, 0.95);
}
.tabs {
  display: flex;
  gap: 4px;
}
.tabs__btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  color: var(--muted);
}
.tabs__btn:hover {
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
}
.tabs__btn--on {
  background: linear-gradient(180deg, var(--btn-blue-top), var(--btn-blue-bottom));
  color: #fff;
  border-color: rgba(255, 255, 255, 0.9);
}

.grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.thumb {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.88);
}
.thumb img {
  width: 100%;
  height: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.thumb__meta {
  padding: 8px 10px;
  font-size: 11px;
  color: rgba(10, 28, 42, 0.72);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}
.thumb__meta a {
  color: rgba(0, 120, 190, 0.95);
  text-decoration: none;
}
.thumb__meta a:hover {
  text-decoration: underline;
}

.form {
  display: grid;
  gap: 10px;
}
.label__name {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.08em;
  font-weight: 800;
}
.input,
.textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  outline: 1px solid rgba(11, 16, 32, 0.06);
  background: rgba(255, 255, 255, 0.74);
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
}
.input:focus,
.textarea:focus {
  outline: 2px solid rgba(0, 191, 255, 0.25);
  box-shadow:
    0 0 0 6px rgba(0, 191, 255, 0.10),
    0 16px 30px rgba(0, 0, 0, 0.10);
}
.textarea {
  resize: vertical;
  min-height: 140px;
  font-family: inherit;
  line-height: 1.65;
}

.preview {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.90);
  outline: 1px solid rgba(11, 16, 32, 0.06);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow);
}
.preview__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.22);
  background: linear-gradient(180deg, rgba(0, 191, 255, 0.85), rgba(82, 255, 210, 0.55));
  border-bottom: 1px solid rgba(255, 255, 255, 0.86);
}
.btn--small {
  min-height: 28px;
  padding: 4px 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
}
.btn--secondary {
  background: linear-gradient(180deg, rgba(0, 191, 255, 0.5), rgba(82, 255, 210, 0.4));
  color: var(--ink);
}
.form__editing {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: rgba(0, 100, 160, 0.95);
}
.preview__body {
  padding: 12px;
  min-height: 60px;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(11, 16, 32, 0.90);
}
.preview__body:empty::before {
  content: "（ここに表示されます）";
  display: block;
  font-size: 13px;
  color: var(--muted);
  opacity: 0.85;
}
.preview__title {
  font-weight: 900;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  color: rgba(255, 44, 166, 0.92);
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.95);
}
.preview__body p {
  margin: 0 0 10px;
}
.preview__body p:last-child {
  margin-bottom: 0;
}
.preview__body a {
  color: rgba(0, 120, 190, 0.95);
  text-decoration: none;
}
.preview__body a:hover {
  text-decoration: underline;
}

.posts {
  display: grid;
  gap: 8px;
}
.post {
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 14px;
  padding: 10px 12px;
}
.post__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.post__main {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.post__status {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.post__status--live {
  background: linear-gradient(180deg, rgba(100, 200, 120, 0.9), rgba(60, 160, 80, 0.85));
  color: #fff;
}
.post__status--archived {
  background: rgba(11, 16, 32, 0.12);
  color: var(--muted);
}
.post__title {
  font-weight: 900;
  min-width: 0;
}
.post__actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.post__archive {
  background: linear-gradient(180deg, rgba(0, 191, 255, 0.75), rgba(82, 255, 210, 0.65));
}
.post__delete {
  background: linear-gradient(180deg, rgba(220, 80, 80, 0.9), rgba(180, 60, 60, 0.85));
}
.post--new {
  box-shadow: 0 0 0 3px rgba(155, 226, 72, 0.7);
  background: rgba(214, 248, 132, 0.25);
  animation: postNewPulse 1.5s ease-out 2;
}
@keyframes postNewPulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(155, 226, 72, 0.7);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(155, 226, 72, 0.4);
  }
}
.post__meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.foot {
  padding: 16px;
  border-top: 0;
  background: transparent;
}
.foot__inner {
  max-width: 1080px;
  margin: 0 auto;
  color: rgba(10, 28, 42, 0.62);
  font-size: 12px;
}

@media (min-width: 980px) {
  .wrap {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  #photos {
    grid-column: 1;
  }
  #blog {
    grid-column: 2;
  }
}

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

