:root {
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --surface: #f8fafc;
  --panel: #ffffff;
  --accent: #fb7185;
  --accent-strong: #f43f5e;
  --accent-soft: #ffe4e6;
  --accent-border: #fecdd3;
  --shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
  --radius: 22px;
  --transition: 160ms ease;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo",
    sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 45%);
  line-height: 1.7;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0.01em;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ad-rail {
  display: none;
  padding: 12px;
}

.ad-rail-inner {
  position: sticky;
  top: 120px;
}

.ad-slot {
  display: block;
  width: 100%;
}

.ad-slot--rail {
  min-height: 600px;
}

.ad-block {
  display: flex;
  justify-content: center;
  padding: 8px 0;
}

.ad-block--square {
  padding: 12px;
}

.ad-slot--square {
  width: 100%;
  max-width: 360px;
  min-height: 300px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  padding: 18px 22px;
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-text {
  display: grid;
  gap: 4px;
}

.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.site-header h1 {
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
}

.lead {
  max-width: 720px;
  color: var(--text-muted);
  font-size: 1rem;
}

.layout {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: start;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.panel-head h2 {
  font-size: 1.15rem;
}

.panel-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dropzone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
  border-radius: 18px;
  border: 2px dashed var(--border);
  background: var(--surface);
  text-align: center;
  transition: border-color var(--transition), transform var(--transition),
    box-shadow var(--transition);
  cursor: pointer;
}

.dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.dropzone.is-active {
  border-color: var(--accent);
  box-shadow: 0 10px 20px rgba(14, 165, 233, 0.12);
  transform: translateY(-1px);
}

.dropzone-content {
  display: grid;
  gap: 6px;
}

.drop-title {
  font-size: 1.05rem;
  font-weight: 600;
}

.drop-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.drop-note {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.meta {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.primary,
.ghost {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition),
    background var(--transition), color var(--transition),
    border-color var(--transition);
}

.primary {
  background: var(--accent-strong);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(14, 165, 233, 0.2);
}

.primary:disabled {
  background: #cbd5e1;
  box-shadow: none;
  cursor: not-allowed;
}

.ghost {
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--border);
}

.primary:hover:not(:disabled),
.ghost:hover {
  transform: translateY(-1px);
}

.status {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  margin-bottom: 16px;
}

.status.error {
  color: #9f1239;
  border-color: #fecdd3;
  background: #fff1f2;
}

.slice-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.slice-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.slice-card img {
  width: 100%;
  display: block;
}

.slice-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  background: var(--surface);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.slice-meta span {
  font-weight: 600;
  color: var(--text);
}

.slice-meta a {
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 600;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.footer-link {
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 600;
}

.footer-link:hover {
  text-decoration: underline;
}

@media (max-width: 720px) {
  .page {
    padding: 24px 16px 40px;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .panel {
    padding: 20px;
  }

  .panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .slice-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 1280px) {
  .shell {
    grid-template-columns: minmax(160px, 220px) minmax(0, 1120px)
      minmax(160px, 220px);
    gap: 24px;
    justify-content: center;
    align-items: start;
    padding: 24px 16px;
  }

  .page {
    margin: 0;
  }

  .ad-rail {
    display: block;
  }
}

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