:root {
  --ink: #202023;
  --muted: #656466;
  --red: #ff2442;
  --paper: #fff;
  --ui: var(--sans);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f1f1f2;
  color: var(--ink);
  font-family: var(--ui);
  -webkit-text-size-adjust: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
  color: inherit;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid #bc1937;
  outline-offset: 4px;
}
.deckbar,
.controls,
#deck {
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
}
.deckbar,
.controls,
.controls > div,
.deckbar a {
  display: flex;
  align-items: center;
}
.deckbar,
.controls {
  justify-content: space-between;
  min-height: 57px;
  font-size: 13px;
}
.deckbar a {
  gap: 8px;
}
.deckbar img {
  width: 26px;
  border-radius: 7px;
}
.deckbar strong,
.mark {
  font: 700 25px/1 var(--mark);
}
.deckbar a:last-child {
  color: #4e4b4d;
}
.slide {
  display: none;
  background: #fff;
  min-height: min(75vh, 760px);
  border: 1px solid #e4e3e2;
  border-radius: 6px;
}
.slide.current {
  display: block;
}
.overview {
  padding: clamp(22px, 3vw, 44px) clamp(12px, 1.6vw, 24px)
    clamp(20px, 2vw, 32px);
}
.cover-heading,
.cover-heading > div {
  display: flex;
  align-items: center;
}
.cover-heading {
  margin: 0 10px clamp(18px, 2.2vw, 34px);
  justify-content: space-between;
  gap: 10px;
}
.cover-heading > div {
  gap: 15px;
}
.cover-heading h1 {
  font: 400 clamp(25px, 3vw, 48px)/1.18 var(--display);
  margin: 0;
  letter-spacing: -0.04em;
}
.cover-heading .mark {
  color: var(--red);
  font-size: clamp(32px, 4vw, 62px);
  letter-spacing: -0.09em;
}
.cover-heading p {
  font-size: 12px;
  line-height: 1.5;
  color: #636267;
  text-align: right;
  margin: 0;
}
.poster-wall {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
}
.poster {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(11px, 1.65vw, 26px) clamp(5px, 0.68vw, 11px) 0;
  background: linear-gradient(165deg, #fafafa, #efefef 70%);
  overflow: hidden;
  border-radius: 3px;
  border: 1px solid #f3f2f2;
}
.poster:hover {
  background: #fff2f3;
}
.poster > span,
.chapter {
  font-weight: 500;
  font-size: clamp(13px, 1.3vw, 20px);
  color: #6a686a;
}
.poster h2 {
  font: 700 clamp(13px, 1.4vw, 22px)/1.35 var(--ui);
  letter-spacing: -0.035em;
  margin: 3px 0 clamp(10px, 1.25vw, 19px);
  white-space: nowrap;
}
.glass {
  width: 100%;
  padding: 4px;
  border: 1px solid #eceaeb;
  border-radius: clamp(11px, 1.5vw, 23px);
  background: #fff;
  box-shadow: 0 2px 7px #24202309;
  overflow: hidden;
}
.glass img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: clamp(8px, 1.2vw, 19px);
  aspect-ratio: 1/2;
  object-fit: cover;
}
.poster .glass {
  max-width: 216px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: 0;
  padding-bottom: 0;
}
.poster .glass img {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.detail.current {
  display: grid;
}
.detail {
  grid-template-columns: 0.93fr 1.14fr;
  align-items: stretch;
  overflow: hidden;
}
.story {
  position: relative;
  padding: clamp(32px, 4.4vw, 70px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.back-wall {
  font-size: 12px;
  color: #777;
  position: absolute;
  top: 19px;
  left: clamp(32px, 4.4vw, 70px);
}
.chapter {
  font-size: 15px;
  color: #c21e39;
  font-weight: 600;
}
.story h2 {
  font: 400 clamp(34px, 3.55vw, 60px)/1.18 var(--display);
  letter-spacing: -0.05em;
  margin: 12px 0 18px;
}
.story p {
  margin: 7px 0;
  color: #58565b;
  line-height: 1.7;
  font-size: clamp(14px, 1.15vw, 19px);
}
.story .lead {
  font-weight: 650;
  line-height: 1.5;
  color: #242326;
  font-size: clamp(17px, 1.55vw, 25px);
}
.story .judgment {
  padding-left: 12px;
  border-left: 2px solid var(--red);
  margin-top: 14px;
}
.launch {
  margin-top: 16px;
  color: #b21e39;
  font-weight: 650;
  font-size: 14px;
}
.pair {
  display: flex;
  gap: clamp(8px, 1vw, 18px);
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 2.4vw, 40px);
  background: #f0efed;
}
.note .pair {
  background: #f3e9e3;
}
.shopping .pair {
  background: #eee8e4;
}
.travel .pair {
  background: #e4ece7;
}
.weekend .pair {
  background: #ece7df;
}
.conversation .pair {
  background: #f1e7e7;
}
.screen-figure {
  margin: 0;
  min-width: 0;
  flex: 1;
  max-width: clamp(190px, 17vw, 266px);
}
figcaption {
  font-size: clamp(11px, 0.95vw, 14px);
  line-height: 1.4;
  margin-top: 10px;
  text-align: center;
  color: #595658;
}
.controls button,
#hide {
  border: 1px solid #ddd;
  background: white;
  border-radius: 20px;
  padding: 6px 13px;
  margin-left: 5px;
}
.controls button:disabled {
  opacity: 0.35;
}
.controls > span {
  color: #6d6b6a;
}
#speaker {
  position: fixed;
  bottom: 64px;
  right: max(24px, calc((100vw - 1480px) / 2));
  width: min(440px, 90vw);
  padding: 16px;
  background: #252329;
  color: white;
  border-radius: 12px;
  box-shadow: 0 8px 30px #2223;
  z-index: 3;
}
#speaker p {
  margin: 0 0 8px;
  line-height: 1.7;
  font-size: 14px;
}
#hide {
  color: #333;
}
@media screen and (max-width: 1100px) {
  .overview {
    min-height: 0;
  }
  .slide.detail {
    min-height: 66vw;
  }
  .story {
    padding: 32px;
  }
  .back-wall {
    top: 10px;
    left: 32px;
  }
  .story h2 {
    font-size: 36px;
  }
  .story p {
    font-size: 14px;
  }
  .pair {
    padding: 14px;
  }
  .story .lead {
    font-size: 18px;
  }
}
@media screen and (max-width: 850px) {
  .deckbar,
  .controls,
  #deck {
    width: calc(100% - 24px);
  }
  .poster-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .poster {
    padding: 12px 10px 0;
  }
  .poster h2 {
    font-size: 17px;
  }
  .poster .glass {
    max-width: 134px;
  }
  .detail.current {
    display: flex;
    flex-direction: column;
  }
  .story {
    padding: 43px 22px 23px;
  }
  .back-wall {
    left: 22px;
  }
  .story h2 {
    margin: 8px 0;
  }
  .screen-figure {
    max-width: 220px;
  }
  .cover-heading {
    margin: 0 1px 18px;
  }
}
@media screen and (max-width: 520px) {
  .deckbar,
  .controls,
  #deck {
    width: calc(100% - 16px);
  }
  .deckbar,
  .controls {
    min-height: 47px;
  }
  .cover-heading p {
    font-size: 9px;
  }
  .cover-heading > div {
    gap: 8px;
  }
  .cover-heading .mark {
    font-size: 32px;
  }
  .cover-heading h1 {
    font-size: 24px;
  }
  .overview {
    padding: 16px 6px 7px;
  }
  .poster {
    padding: 9px 3px 0;
  }
  .poster > span {
    font-size: 12px;
  }
  .poster h2 {
    font-size: clamp(10px, 2.5vw, 14px);
    margin: 3px 0 7px;
  }
  .glass {
    padding: 2px;
  }
  .poster-wall {
    gap: 3px;
  }
  .pair {
    padding: 13px 7px;
    gap: 5px;
  }
  figcaption {
    font-size: 10px;
  }
  .story h2 {
    font-size: 32px;
  }
  .story p {
    margin: 5px 0;
  }
}
@page {
  size: 1440px 810px;
  margin: 0;
}
@media print {
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  html,
  body {
    width: 1440px;
    background: white;
  }
  .deckbar,
  .controls,
  #speaker,
  .back-wall,
  .launch {
    display: none !important;
  }
  #deck {
    width: 1440px;
    margin: 0;
  }
  .slide,
  .slide.current {
    display: block;
    border: 0;
    border-radius: 0;
    width: 1440px;
    height: 810px;
    min-height: 0;
    break-after: page;
    overflow: hidden;
  }
  .slide:last-child {
    break-after: auto;
  }
  .overview {
    padding: 58px 30px 42px;
  }
  .cover-heading {
    margin: 0 12px 42px;
  }
  .cover-heading h1 {
    font-size: 54px;
  }
  .cover-heading .mark {
    font-size: 66px;
  }
  .cover-heading p {
    font-size: 16px;
  }
  .poster-wall {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 5px;
  }
  .poster {
    padding: 24px 10px 0;
  }
  .poster h2 {
    font-size: 22px;
    margin: 5px 0 22px;
  }
  .poster > span {
    font-size: 19px;
  }
  .poster .glass {
    max-width: none;
  }
  .slide.detail,
  .slide.detail.current {
    display: grid;
    grid-template-columns: 0.93fr 1.14fr;
  }
  .story {
    padding: 67px;
  }
  .story h2 {
    font-size: 57px;
  }
  .story p {
    font-size: 22px;
    line-height: 1.65;
  }
  .story .lead {
    font-size: 28px;
  }
  .chapter {
    font-size: 18px;
  }
  .pair {
    padding: 35px 29px;
    gap: 16px;
  }
  .screen-figure {
    max-width: 300px;
  }
  .glass {
    padding: 5px;
    border-radius: 24px;
  }
  .glass img {
    border-radius: 19px;
  }
  figcaption {
    font-size: 17px;
  }
}
@media screen and (min-width: 851px) {
  .overview.current {
    display: flex;
    justify-content: center;
    flex-direction: column;
  }
}

@media print {
  .slide.detail,
  .slide.detail.current {
    height: 808px;
    min-height: 0;
    max-height: 808px;
    break-inside: avoid;
  }
}
@media screen and (min-width: 680px) and (max-width: 850px) and (orientation: landscape) {
  .poster-wall {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 3px;
  }
  .poster {
    padding: 11px 3px 0;
  }
  .poster h2 {
    font-size: 13px;
  }
  .poster > span {
    font-size: 12px;
  }
}
