:root {
  color: #1f2430;
  background: #f1f2f4;
  --decor-color: #dfe7ef;
  font-family: Inter, "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 1540px;
}

button,
input {
  font: inherit;
}

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

.controls {
  background: #ffffff;
  border-right: 1px solid #d9dce3;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100vh;
  padding: 24px;
  position: sticky;
  top: 0;
}

.brand {
  align-items: center;
  display: flex;
  gap: 12px;
  padding-bottom: 10px;
}

.mark {
  background: #07104a;
  border-radius: 8px;
  color: #ffffff;
  display: grid;
  font-weight: 800;
  height: 44px;
  place-items: center;
  width: 44px;
}

h1,
h2,
p {
  margin: 0;
}

.brand h1 {
  font-size: 18px;
  line-height: 1.1;
}

.brand p {
  color: #667085;
  font-size: 12px;
  margin-top: 4px;
}

label {
  color: #363c4a;
  display: grid;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
}

.page-control {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 34px;
}

.nudge-buttons {
  display: grid;
  gap: 4px;
}

.nudge {
  align-items: center;
  border-radius: 7px;
  display: flex;
  font-size: 15px;
  justify-content: center;
  min-height: 25px;
  padding: 0;
}

input[type="file"],
input[type="color"] {
  background: #fbfbfc;
  border: 1px solid #cfd4dc;
  border-radius: 8px;
  min-height: 40px;
  padding: 8px;
  width: 100%;
}

input[type="color"] {
  padding: 4px;
}

.actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

button {
  background: #07104a;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  font-weight: 800;
  min-height: 44px;
  padding: 0 14px;
}

button.secondary {
  background: #e7e9ee;
  color: #232733;
}

.preview-zone {
  overflow: auto;
  padding: 32px;
}

.poster-scale {
  height: 800px;
  width: 1200px;
}

.poster {
  background:
    radial-gradient(circle at 70px 42px, rgba(7, 16, 74, 0.03), transparent 110px),
    #ffffff;
  box-shadow: 0 22px 70px rgba(22, 26, 38, 0.12);
  height: 800px;
  overflow: hidden;
  position: relative;
  width: 1200px;
}

.poster::before {
  background:
    linear-gradient(135deg, transparent 0 45%, color-mix(in srgb, var(--decor-color) 56%, transparent) 45% 46%, transparent 46% 100%),
    linear-gradient(135deg, transparent 0 52%, color-mix(in srgb, var(--decor-color) 42%, transparent) 52% 53%, transparent 53% 100%);
  content: "";
  height: 240px;
  left: -42px;
  opacity: 0.9;
  position: absolute;
  top: -34px;
  width: 320px;
}

.poster::after {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--decor-color) 44%, transparent) 1px, transparent 1px),
    linear-gradient(0deg, color-mix(in srgb, var(--decor-color) 34%, transparent) 1px, transparent 1px);
  background-size: 26px 26px;
  bottom: 34px;
  content: "";
  height: 118px;
  opacity: 0.62;
  position: absolute;
  right: 24px;
  width: 180px;
  z-index: 0;
}

.poster-title {
  left: 80px;
  position: absolute;
  top: 95px;
  z-index: 2;
}

.poster-title h2 {
  color: #07104a;
  font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 60px;
  font-weight: 700;
  line-height: 1;
}

.accent-line {
  background: #63cdd6;
  height: 1px;
  margin: 20px 0 9px 5px;
  width: 262px;
}

.poster-title p {
  color: #63cdd6;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 20px;
  line-height: 1;
  margin-left: 5px;
}

.pc-mock {
  height: 415px;
  left: 35px;
  position: absolute;
  top: 275px;
  transform: scale(0.9);
  transform-origin: left top;
  width: 635px;
  z-index: 3;
}

.pc-mock::before {
  background: #111318;
  border-radius: 15px 15px 5px 5px;
  content: "";
  height: 332px;
  left: 32px;
  position: absolute;
  top: 0;
  width: 535px;
}

.pc-camera {
  background: #2a2e36;
  border-radius: 50%;
  height: 5px;
  left: 299px;
  position: absolute;
  top: 9px;
  width: 5px;
  z-index: 4;
}

.pc-screen {
  background: #ffffff;
  height: 288px;
  left: 45px;
  overflow: hidden;
  position: absolute;
  top: 22px;
  width: 509px;
  z-index: 4;
}

.pc-screen img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  width: 100%;
}

.pc-keyboard {
  background: linear-gradient(#d9dce1, #aeb4bc);
  border-radius: 0 0 28px 28px;
  height: 55px;
  left: 0;
  position: absolute;
  top: 326px;
  width: 600px;
}

.pc-trackpad {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 0 0 10px 10px;
  height: 15px;
  left: 245px;
  position: absolute;
  top: 326px;
  width: 110px;
  z-index: 4;
}

.phone-mock {
  background: #111318;
  border-radius: 26px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  height: 296px;
  left: 515px;
  overflow: hidden;
  padding: 10px;
  position: absolute;
  top: 382px;
  width: 140px;
  z-index: 6;
}

.phone-notch {
  background: #111318;
  border-radius: 0 0 12px 12px;
  height: 14px;
  left: 42px;
  position: absolute;
  top: 9px;
  width: 56px;
  z-index: 8;
}

.phone-screen {
  background: #ffffff;
  border-radius: 18px;
  height: 276px;
  overflow: hidden;
  position: relative;
  width: 120px;
}

.phone-screen img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  width: 100%;
}

.page-grid {
  display: contents;
}

.page-capture {
  background: #ffffff;
  border: 1px solid #e0e4ea;
  box-shadow: 12px 16px 24px rgba(19, 24, 34, 0.14);
  height: 670px;
  overflow: hidden;
  position: absolute;
  top: 50px;
  width: 110px;
  z-index: 2;
}

.page-capture:nth-child(1) {
  left: 700px;
}

.page-capture:nth-child(2) {
  left: 825px;
}

.page-capture:nth-child(3) {
  left: 950px;
}

.page-capture:nth-child(4) {
  left: 1075px;
}

.page-capture img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  width: 100%;
}

@media (max-width: 980px) {
  body {
    min-width: 0;
  }

  .app-shell {
    display: block;
    min-height: 100vh;
  }

  .controls {
    border-bottom: 1px solid #d9dce3;
    border-right: 0;
    gap: 12px;
    height: auto;
    padding: 16px;
    position: static;
  }

  .brand {
    padding-bottom: 2px;
  }

  .mark {
    height: 38px;
    width: 38px;
  }

  .page-control {
    grid-template-columns: minmax(0, 1fr) 46px;
  }

  .nudge-buttons {
    gap: 6px;
  }

  .nudge {
    font-size: 17px;
    min-height: 34px;
  }

  input[type="file"],
  input[type="color"] {
    min-height: 44px;
  }

  .actions {
    grid-template-columns: 1fr 1fr;
    margin-top: 2px;
  }

  .preview-zone {
    overflow: hidden;
    padding: 12px;
  }

  .poster-scale {
    height: 234px;
    max-height: 800px;
    overflow: hidden;
    width: 351px;
  }

  .poster {
    box-shadow: 0 14px 38px rgba(22, 26, 38, 0.12);
    transform: scale(0.2925);
    transform-origin: left top;
  }
}

@media (max-width: 520px) {
  .controls {
    padding: 14px;
  }

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

  button {
    min-height: 46px;
  }
}
