/* 広告CM確認サイト - 顧客確認用の静的UI */

:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f9fafc;
  --ink: #172033;
  --ink-soft: #45556f;
  --muted: #7b8798;
  --line: #dfe5ee;
  --line-soft: #edf1f6;
  --accent: #2f6df6;
  --accent-deep: #1f55c9;
  --accent-soft: #edf4ff;
  --green: #168a54;
  --green-soft: #e8f6ee;
  --danger: #c2415b;
  --danger-soft: #fff0f3;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
  --radius: 8px;
  --sans: "Inter", "Noto Sans JP", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, textarea { font: inherit; }
img, video { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 64px;
  display: block;
  padding: 10px clamp(18px, 4vw, 48px);
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.site-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  font-weight: 700;
}

.brand-copy small {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.site-link {
  flex: 0 0 auto;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  color: var(--ink-soft);
  background: var(--surface);
  font-size: .84rem;
  font-weight: 600;
}

.site-link.is-current {
  border-color: var(--accent);
  color: var(--accent-deep);
  background: var(--accent-soft);
}

.header-phases {
  max-width: 980px;
  margin: 8px auto 0;
}

.main {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 22px clamp(18px, 4vw, 32px) 56px;
}

.review-hero {
  margin-bottom: 10px;
}

.review-hero h1 {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.35;
  letter-spacing: 0;
}

.review-subtitle {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: .95rem;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: .82rem;
}

.phase-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 0;
}

.phase {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 46px;
  padding: 8px;
  text-align: left;
}

button.phase { cursor: pointer; }

.phase-index {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--line-soft);
  color: var(--ink-soft);
  font-weight: 800;
  font-size: .84rem;
}

.phase-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.phase-label {
  font-weight: 800;
  font-size: .86rem;
}

.phase-sub {
  color: var(--muted);
  font-size: .68rem;
}

.phase.done .phase-index {
  background: var(--green-soft);
  color: var(--green);
}

.phase.current,
.phase.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.phase.current .phase-index,
.phase.is-active .phase-index {
  background: var(--accent);
  color: #fff;
}

.phase.upcoming {
  opacity: .68;
}

.panel {
  display: none;
  scroll-margin-top: 132px;
}
.panel.is-active { display: block; }

.panels {
  max-width: 760px;
  margin: 0 auto;
}

.stage-lead {
  margin-bottom: 14px;
  color: var(--ink-soft);
}

.stage-lead span {
  display: inline-block;
  margin-bottom: 5px;
  color: var(--accent-deep);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
}

.story-flow {
  list-style: none;
  display: grid;
  gap: 12px;
}

.story-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.story-card.is-approved {
  border-color: rgba(22, 138, 84, .42);
}

.story-card.text-only {
  padding-left: 42px;
}

.story-number {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(23, 32, 51, .88);
  color: #fff;
  font-weight: 800;
  font-size: .82rem;
}

.story-media {
  aspect-ratio: 16 / 9;
  max-height: 360px;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
}

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

.story-media.placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.story-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  background: var(--surface);
  padding: 14px 18px 16px;
  display: flex;
  flex-direction: column;
}

.story-card.text-only .story-copy {
  padding: 18px 18px 18px 10px;
}

.story-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}

.story-meta b {
  color: var(--accent-deep);
  font-size: 1rem;
}

.story-sec {
  color: var(--muted);
  font-size: .82rem;
}

.story-copy p {
  color: var(--ink-soft);
}

.cut-review {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}

.cut-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.cut-approve {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--ink);
  cursor: pointer;
  padding: 0 14px;
  font-weight: 800;
}

.cut-approve.is-approved {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
}

.cut-approve:disabled,
.cut-save:disabled {
  cursor: wait;
  opacity: .72;
}

.cut-comment-label {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: .86rem;
  font-weight: 800;
}

.cut-comment {
  width: 100%;
  min-height: 76px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 9px 11px;
  line-height: 1.6;
}

.cut-comment:focus {
  outline: 3px solid rgba(47, 109, 246, .16);
  border-color: var(--accent);
}

.cut-save {
  min-height: 34px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  padding: 0 14px;
  font-weight: 800;
}

.cut-save:hover {
  background: var(--accent-deep);
}

.cut-approve-time,
.cut-save-status {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 800;
}

.video-panel {
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
  box-shadow: var(--shadow);
}

.video-panel video {
  width: 100%;
}

.empty {
  padding: 48px 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}

.pub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.pub-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.pub-card:hover {
  border-color: var(--accent);
}

.pub-thumb {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
}

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

.pub-body {
  display: grid;
  gap: 5px;
  padding: 14px 16px 16px;
}

.card-now {
  color: var(--accent-deep);
  font-size: .78rem;
  font-weight: 800;
}

.pub-card-name {
  font-size: 1rem;
  font-weight: 800;
}

.pub-card-meta {
  color: var(--muted);
  font-size: .78rem;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.rdots {
  display: inline-flex;
  gap: 6px;
}

.rdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
}

.rdot.on { background: var(--green); }
.rdot.now { background: var(--accent); transform: scale(1.25); }

.site-foot {
  padding: 24px 18px 44px;
  color: var(--muted);
  text-align: center;
  font-size: .78rem;
}

@media (max-width: 760px) {
  body { font-size: 14px; }

  .site-header {
    align-items: flex-start;
    min-height: 0;
  }

  .site-header-main {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .site-nav {
    justify-content: flex-start;
    width: 100%;
  }

  .site-link {
    max-width: 220px;
  }

  .main {
    padding-top: 18px;
  }

  .header-phases {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .header-phases::-webkit-scrollbar { display: none; }

  .phase-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-width: 0;
    gap: 5px;
  }

  .phase {
    min-height: 38px;
    gap: 5px;
    padding: 6px 5px;
  }

  .phase-index {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
    font-size: .76rem;
  }

  .phase-label {
    font-size: .78rem;
  }

  .phase-sub {
    display: none;
  }

  .story-copy {
    padding: 14px;
  }

  .panel {
    scroll-margin-top: 154px;
  }

  .story-card.text-only {
    padding-left: 0;
  }

  .story-card.text-only .story-copy {
    padding: 50px 16px 16px;
  }

  .cut-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }

  .cut-approve,
  .cut-save {
    width: 100%;
  }

  .cut-approve-time,
  .cut-save-status {
    min-height: 1.2em;
    font-size: .74rem;
  }
}
