﻿@charset "UTF-8";

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: #fff;
  color: #050505;
  font-family: "Helvetica Neue",
    Arial,
    "Hiragino Kaku Gothic ProN",
    "Hiragino Sans",
    "Noto Sans JP",
    sans-serif;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

button {
  appearance: none;
  border: 0.0625rem solid #d8d8d8;
  border-radius: 0.5rem;
  background: #fff;
  color: #050505;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.5625rem 0.9375rem;
}

button:hover {
  border-color: #bdbdbd;
}

button:focus-visible {
  outline: 0.1875rem solid rgba(37, 99, 235, 0.28);
  outline-offset: 0.125rem;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.btn-primary {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.btn-primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.btn-danger {
  color: #c43b2f;
}

header.site {
  border-bottom: 0.0625rem solid #e0e0e0;
  background: #fff;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.125rem;
  padding: 0 1.6875rem;
}

.brand {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: 0;
}

.greet {
  font-size: 0.875rem;
  font-weight: 700;
}

main {
  padding-bottom: 3.5rem;
}

.hero {
  padding: 2.4375rem 1.5rem 2.4375rem;
  text-align: center;
}

.hero-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin: 0 0 0.5rem;
  color: #050505;
  font-size: 0.9375rem;
  font-weight: 600;
}

.hero-subtitle-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 auto;
  fill: #16a34a;
}

.hero h1 {
  margin: 0;
  font-size: 1.625rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.62;
}

.hero h1 span {
  color: #2563eb;
}

.tool {
  max-width: 73.75rem;
  margin: 0 auto;
  padding: 0;
}

.zone {
  display: flex;
  min-height: 14.25rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 0.09375rem dashed #2563eb;
  border-radius: 1.1875rem;
  background: #f1f4fc;
  cursor: pointer;
  text-align: center;
  transition: background 0.16s, border-color 0.16s;
}

.zone:hover,
.zone.drag {
  border-color: #1d4ed8;
  background: #edf2ff;
}

.zone-lead {
  margin: 0 0 0.6875rem;
  font-size: 1.1875rem;
  font-weight: 600;
}

.zone-or {
  margin: 0 0 1.375rem;
  font-size: 1.1875rem;
  font-weight: 600;
}

.zone .btn-primary {
  min-width: 7.375rem;
  padding: 0.5625rem 1rem;
  font-size: 0.9375rem;
}

.zone-note {
  margin: 0.875rem 0 0;
  color: #555;
  font-size: 0.8125rem;
  font-weight: 700;
}

.feature-movies {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.feature-movie {
  min-width: 0;
}

.feature-movie video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0.625rem solid #e7e7e7;
  border-radius: 0.75rem;
  background: #f5f5f5;
  object-fit: cover;
}

.feature-movie h2 {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.45;
}

.feature-movie p {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.75;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18.75rem;
  gap: 1.5rem;
  align-items: start;
  margin-top: 1.5rem;
}

.editor-column {
  min-width: 0;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1.125rem;
}

.toolbar .count {
  margin-right: auto;
  color: #555;
  font-size: 0.8125rem;
  font-weight: 700;
}

.view-toggle {
  display: inline-flex;
  overflow: hidden;
  border: 0.0625rem solid #d8d8d8;
  border-radius: 0.5rem;
  background: #f7f7f7;
}

.view-toggle button {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0.5625rem 0.8125rem;
}

.view-toggle button[aria-pressed="true"] {
  background: #2563eb;
  color: #fff;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.625rem, 1fr));
  gap: 1rem;
  align-items: start;
}

.grid.list {
  display: flex;
  max-width: 24.5rem;
  flex-direction: column;
  gap: 0.625rem;
  margin: 0 auto;
}

.card {
  position: relative;
  overflow: hidden;
  border: 0.0625rem solid #e2e2e2;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 0.0625rem 0.125rem rgba(0, 0, 0, 0.05);
  outline: 0.125rem solid transparent;
  transition: box-shadow 0.15s, outline-color 0.15s, transform 0.12s;
  user-select: none;
  touch-action: none;
}

.card.sel {
  outline-color: #2563eb;
}

.card.drag-source {
  opacity: 1;
  border-color: #2563eb;
  background: rgba(37, 99, 235, 0.07);
  outline-color: rgba(37, 99, 235, 0.35);
  box-shadow: none;
  transition: background 120ms ease, border-color 120ms ease, outline-color 120ms ease;
}

.card.drag-source>* {
  opacity: 0;
}

.card.reordering {
  pointer-events: none;
  will-change: transform;
}

.drag-ghost {
  position: fixed;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.78;
  box-shadow: 0 0.5rem 1.125rem rgba(0, 0, 0, 0.12);
  transform: scale(0.98) rotate(0deg);
  transform-origin: 50% 1.375rem;
  transition: opacity 130ms ease, box-shadow 130ms ease, transform 130ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.drag-ghost.is-held {
  opacity: 0.88;
  box-shadow: 0 1.25rem 2.875rem rgba(0, 0, 0, 0.2);
  transform: scale(1.025) rotate(2deg);
}

.is-dragging-page {
  cursor: grabbing;
}

.drag-handle {
  position: absolute;
  top: 0.5625rem;
  left: 0.5625rem;
  z-index: 5;
  display: grid;
  width: 1.5rem;
  height: 1.875rem;
  grid-template-columns: repeat(2, 0.25rem);
  grid-auto-rows: 0.25rem;
  gap: 0.25rem;
  align-content: center;
  justify-content: center;
  border: 0;
  border-radius: 0.375rem;
  background: rgba(255, 255, 255, 0.8);
  cursor: grab;
  padding: 0;
}

.drag-handle:active {
  cursor: grabbing;
}

.drag-handle span {
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 50%;
  background: #cfcfcf;
}

.thumbwrap {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1.3;
  overflow: hidden;
  background: #f5f5f5;
}

.thumbwrap img {
  max-width: 90%;
  max-height: 90%;
  background: #fff;
  box-shadow: 0 0.0625rem 0.4375rem rgba(0, 0, 0, 0.15);
}

.grid.list .card {
  display: grid;
  min-height: 4.125rem;
  grid-template-columns: 2.625rem 1fr 4rem;
  align-items: center;
  border-color: #d8d8d8;
  box-shadow: none;
}

.grid.list .drag-handle {
  position: static;
  grid-column: 1;
  justify-self: center;
}

.grid.list .thumbwrap {
  grid-column: 3;
  grid-row: 1;
  width: 2.75rem;
  height: 2.75rem;
  justify-self: center;
  aspect-ratio: auto;
  background: #d8d8d8;
}

.grid.list .thumbwrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: none;
}

.meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.375rem;
  padding: 0.5rem 0.625rem;
  border-top: 0.0625rem solid #e2e2e2;
}

.grid.list .meta {
  grid-column: 2;
  grid-row: 1;
  justify-content: flex-start;
  border-top: 0;
  padding: 0;
}

.pnum {
  font-size: 0.75rem;
  font-weight: 600;
}

.grid.list .pnum {
  font-size: 1.625rem;
  line-height: 1;
}

.fname {
  max-width: 5.25rem;
  overflow: hidden;
  color: #555;
  font-size: 0.6875rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.grid.list .fname {
  max-width: 11.875rem;
  margin-left: 0.75rem;
  font-size: 0.75rem;
}

.ctl {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 26%, transparent 74%, rgba(0, 0, 0, 0.18));
  opacity: 0;
  transition: opacity 0.15s;
}

.card:hover .ctl,
.card:focus-within .ctl {
  opacity: 1;
}

.is-dragging-page .card:hover .ctl,
.is-dragging-page .card:focus-within .ctl,
.is-dragging-page .ctl {
  opacity: 0;
}

.ctl-row {
  display: flex;
  align-items: flex-start;
  gap: 0.375rem;
  padding: 0.5rem;
}

.delete-button {
  margin-left: auto;
  border-color: transparent;
  background: #ffe3e3;
  color: #c43b2f;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.4375rem 0.8125rem;
}

.delete-button:hover {
  border-color: #ffd0d0;
  background: #ffd8d8;
}

.grid.list .ctl {
  justify-content: center;
  background: transparent;
}

.grid.list .ctl-row {
  height: 100%;
  align-items: center;
  justify-content: flex-end;
  padding: 0 4.0625rem 0 0;
}

.grid.list .delete-button {
  margin-left: 0;
}

.save-panel {
  position: sticky;
  top: 5.375rem;
  border: 0.0625rem solid #e2e2e2;
  border-radius: 0.5rem;
  background: #fff;
  padding: 1.125rem;
}

.save-panel h2 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.save-summary,
.save-note,
.filename-preview {
  margin: 0;
}

.save-summary {
  margin-bottom: 1.125rem;
  color: #555;
  font-size: 0.875rem;
  font-weight: 700;
}

.filename-field {
  display: grid;
  gap: 0.4375rem;
  margin-bottom: 0.625rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

.filename-field input {
  width: 100%;
  border: 0.0625rem solid #d8d8d8;
  border-radius: 0.5rem;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 0.625rem 0.75rem;
}

.filename-field input:focus-visible {
  outline: 0.1875rem solid rgba(37, 99, 235, 0.28);
  outline-offset: 0.125rem;
}

.filename-preview {
  overflow-wrap: anywhere;
  color: #2563eb;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.45;
}

.save-button {
  width: 100%;
  margin-top: 1rem;
  padding: 0.6875rem 0.875rem;
}

.save-note {
  margin-top: 0.75rem;
  color: #555;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.6;
}

.loading {
  display: flex;
  min-height: 14.25rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 0.09375rem solid #2563eb;
  border-radius: 1.1875rem;
  background: #f1f4fc;
  color: #2563eb;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.55;
  text-align: center;
}

.loading p {
  margin: 0;
}

.err {
  margin-bottom: 1rem;
  border: 0.0625rem solid #efb8af;
  border-radius: 0.5rem;
  background: #fff0ee;
  color: #a23428;
  font-size: 0.875rem;
  padding: 0.75rem 0.9375rem;
}

.copy {
  max-width: 56.1875rem;
  margin: 3.5rem auto 0;
  background: #ededed;
  padding: 2rem;
  border-radius: 0.5rem;
}

.copy-block+.copy-block {
  margin-top: 1.875rem;
}

.copy h2 {
  margin: 0 0 0.6875rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.5;
}

.copy p {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.58;
}

.dialog {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.28);
  padding: 1.5rem;
}

.dialog-panel {
  width: min(22.5rem, 100%);
  border: 0.0625rem solid #e2e2e2;
  border-radius: 0.625rem;
  background: #fff;
  box-shadow: 0 1.25rem 3.75rem rgba(0, 0, 0, 0.2);
  padding: 1.375rem;
}

.dialog-panel h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
}

.dialog-check {
  display: flex;
  align-items: center;
  gap: 0.5625rem;
  margin-bottom: 1.25rem;
  color: #333;
  font-size: 0.875rem;
  font-weight: 700;
}

.dialog-check input {
  width: 1.0625rem;
  height: 1.0625rem;
  accent-color: #2563eb;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.625rem;
}

.btn-danger-solid {
  border-color: #ef4444;
  background: #ef4444;
  color: #fff;
}

.btn-danger-solid:hover {
  border-color: #dc2626;
  background: #dc2626;
}

.site-footer {
  border-top: 0.0625rem solid #e0e0e0;
  color: #555;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 1.5rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.footer-notes {
  max-width: 56.1875rem;
  margin: 0 auto 1.25rem;
  text-align: left;
}

.footer-notes h2 {
  margin: 0 0 0.625rem;
  color: #050505;
  font-size: 0.8125rem;
  font-weight: 600;
}

.footer-notes h3 {
  margin: 0.875rem 0 0.25rem;
  color: #050505;
  font-size: 0.8125rem;
  font-weight: 600;
}

.footer-notes p {
  line-height: 1.7;
}

.footer-notes p+p {
  margin-top: 0.5rem;
}

@media (max-width: 60rem) {

  .tool,
  .copy {
    width: auto;
    margin-right: 1.5rem;
    margin-left: 1.5rem;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .feature-movies {
    grid-template-columns: 1fr;
  }

  .save-panel {
    position: static;
  }
}

@media (max-width: 40rem) {
  .bar {
    height: auto;
    min-height: 4rem;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.875rem 1.125rem;
  }

  .brand {
    font-size: 1.125rem;
  }

  .hero {
    padding: 2rem 1.25rem;
    text-align: left;
  }

  .hero-subtitle {
    font-size: 0.875rem;
  }

  .hero h1 {
    font-size: 1.125rem;
  }

  .zone {
    align-items: flex-start;
    min-height: 13.75rem;
    padding: 1.875rem 1.125rem;
    text-align: left;
  }

  .zone-lead,
  .zone-or {
    font-size: 1rem;
  }

  .zone .btn-primary,
  .zone-note {
    font-size: 0.875rem;
  }

  .feature-movie h2 {
    font-size: 1.125rem;
  }

  .feature-movie p {
    font-size: 1rem;
  }

  .copy {
    margin-top: 2.75rem;
    padding: 1.25rem;
  }

  .copy h2 {
    font-size: 1.125rem;
  }

  .copy p {
    font-size: 1rem;
  }

  .site-footer {
    font-size: 0.8125rem;
    text-align: left;
  }

  .footer-notes h2 {
    font-size: 0.8125rem;
  }

  .footer-notes h3,
  .footer-notes p {
    font-size: 0.8125rem;
  }

  .toolbar {
    flex-wrap: wrap;
  }
}

@media (hover: none) {
  .ctl {
    background: none;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
