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

/* Base */
html {
  font-size: 16px;
}

body {
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1a1a1a;
  background: #ffffff;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout */
.poster-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (min-width: 768px) {
  .poster-page {
    padding: 0 64px;
  }
}

/* Hero */
.poster-hero {
  padding: 48px 0 32px;
}

@media (min-width: 768px) {
  .poster-hero {
    padding: 80px 0 48px;
  }
}

.poster-hero__inner {
  /* すべてのコンテンツは .poster-page のpaddingを継承 */
}

.poster-hero__title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 16px;
  color: #1a1a1a;
}

@media (min-width: 768px) {
  .poster-hero__title {
    font-size: 40px;
    line-height: 1.3;
    margin-bottom: 24px;
  }
}

.poster-hero__subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: #666666;
  margin-bottom: 16px;
  font-weight: 400;
}

@media (min-width: 768px) {
  .poster-hero__subtitle {
    font-size: 18px;
    line-height: 1.7;
  }
}

/* Body */
.poster-body {
  padding: 32px 0 64px;
}

@media (min-width: 768px) {
  .poster-body {
    padding: 48px 0 96px;
  }
}

.poster-container {
  /* 追加のpadding不要 - .poster-page で管理 */
}

/* Header */
.poster-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid #e0e0e0;
}

@media (min-width: 768px) {
  .poster-header {
    margin-bottom: 64px;
    padding-bottom: 40px;
  }
}

.poster-header__authors {
  font-size: 16px;
  line-height: 1.9;
  color: #333333;
}

.poster-header__authors a {
  color: inherit;
  text-decoration: none;
}

.poster-header__authors a:hover {
  opacity: 0.7;
}

/* Section */
.poster-section {
  margin-bottom: 64px;
}

@media (min-width: 768px) {
  .poster-section {
    margin-bottom: 88px;
  }
}

.poster-section__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 24px;
  color: #1a1a1a;
}

@media (min-width: 768px) {
  .poster-section__title {
    font-size: 28px;
    margin-bottom: 32px;
  }
}

.poster-section__content {
  /* 追加のpadding不要 */
}

.poster-section p {
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 1.2em;
  color: #333333;
}

@media (min-width: 768px) {
  .poster-section p {
    font-size: 17px;
    line-height: 2;
  }
}

.poster-section p:last-child {
  margin-bottom: 0;
}

/* List */
.poster-list {
  list-style: none;
  margin-top: 24px;
}

.poster-list li {
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 24px;
  padding-left: 0;
  color: #333333;
}

@media (min-width: 768px) {
  .poster-list li {
    font-size: 17px;
    line-height: 2;
    margin-bottom: 28px;
  }
}

.poster-list li:last-child {
  margin-bottom: 0;
}

.poster-list strong {
  font-weight: 600;
  color: #1a1a1a;
}

/* Article */
.poster-article {
  margin-bottom: 56px;
}

@media (min-width: 768px) {
  .poster-article {
    margin-bottom: 72px;
  }
}

.poster-article__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 24px;
  color: #1a1a1a;
}

@media (min-width: 768px) {
  .poster-article__title {
    font-size: 24px;
    margin-bottom: 28px;
  }
}

.poster-article__body {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 768px) {
  .poster-article__body {
    flex-direction: row;
    gap: 40px;
  }
}

.poster-article__text {
  flex: 1;
}

.poster-article__text p {
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 1.2em;
  color: #333333;
}

@media (min-width: 768px) {
  .poster-article__text p {
    font-size: 17px;
    line-height: 2;
  }
}

.poster-article__text p:last-child {
  margin-bottom: 0;
}

/* Figure */
.poster-figure {
  flex: 0 0 auto;
  width: 100%;
}

@media (min-width: 768px) {
  .poster-figure {
    flex: 0 0 45%;
  }
}

.poster-figure--swatch {
  width: 100%;
  min-height: 240px;
  border: 1px solid #d0d0d0;
  background: #fafafa;
  position: relative;
  cursor: pointer;
  transition: border-color 0.2s;
}

@media (min-width: 768px) {
  .poster-figure--swatch {
    min-height: 280px;
  }
}

.poster-figure--swatch:hover {
  border-color: #999999;
}

.poster-figure--swatch::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.poster-figure--draw::before {
  background-image: url("images/draw-tool.png");
}

.poster-figure--grid::before {
  background-image: url("images/grid-tool.png");
}

/* Summary */
.poster-summary {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #e0e0e0;
}

@media (min-width: 768px) {
  .poster-summary {
    margin-top: 64px;
    padding-top: 48px;
  }
}

.poster-summary p {
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 1.2em;
  color: #333333;
}

@media (min-width: 768px) {
  .poster-summary p {
    font-size: 17px;
    line-height: 2;
  }
}

.poster-summary p:last-child {
  margin-bottom: 0;
}

/* References */
.poster-section--references {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid #e0e0e0;
}

@media (min-width: 768px) {
  .poster-section--references {
    margin-top: 80px;
    padding-top: 56px;
  }
}

.poster-ref {
  padding-left: 1.5em;
  font-size: 14px;
  line-height: 1.8;
  color: #666666;
}

@media (min-width: 768px) {
  .poster-ref {
    font-size: 15px;
  }
}

.poster-ref li {
  margin-bottom: 12px;
}

.poster-ref li:last-child {
  margin-bottom: 0;
}

/* Footer */
.poster-footer {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid #e0e0e0;
}

@media (min-width: 768px) {
  .poster-footer {
    margin-top: 80px;
    padding-top: 56px;
  }
}

.poster-footer__note {
  font-size: 12px;
  line-height: 1.6;
  color: #999999;
}

@media (min-width: 768px) {
  .poster-footer__note {
    font-size: 13px;
  }
}

/* Utilities */
sup {
  font-size: 0.75em;
  vertical-align: super;
  line-height: 0;
}
