.home-atelier {
  position: relative;
}

/* ---------- hero ---------- */

.atelier-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: 28px;
  min-height: 560px;
  padding: 42px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    radial-gradient(circle at 8% 7%, rgba(255, 255, 255, 0.96), transparent 26%),
    radial-gradient(circle at 95% 95%, rgba(223, 238, 225, 0.82), transparent 27%),
    linear-gradient(135deg, #fffaf2 0%, #f8efdf 100%);
  box-shadow: var(--shadow);
}

.atelier-hero::before {
  position: absolute;
  top: -10px;
  left: 44px;
  width: 88px;
  height: 20px;
  border-radius: 4px;
  background: rgba(219, 189, 157, 0.56);
  box-shadow: 0 4px 8px rgba(92, 69, 50, 0.08);
  content: "";
  transform: rotate(-7deg);
}

.atelier-hero-copy {
  position: relative;
  z-index: 2;
}

.atelier-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(39px, 5.8vw, 68px);
  line-height: 1.1;
  letter-spacing: -0.055em;
}

.atelier-hero .lead {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.95;
}

.atelier-guide-box {
  display: grid;
  gap: 6px;
  max-width: 570px;
  margin-top: 22px;
  padding: 15px 17px;
  border: 1px dashed #d6bca7;
  border-radius: 16px;
  background: rgba(255, 250, 241, 0.82);
}

.atelier-guide-box strong {
  color: var(--accent-dark);
  font-size: 14px;
}

.atelier-guide-box span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.atelier-hero-actions {
  margin-top: 24px;
}

.atelier-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.atelier-tags span {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.76);
  color: var(--sage-dark);
  font-size: 12px;
  font-weight: 900;
}

/* ---------- desk illustration ---------- */

.atelier-hero-illust {
  position: relative;
  z-index: 1;
  min-height: 420px;
}

.desk-illust {
  position: absolute;
  inset: 0;
  min-height: 420px;
}

.paper {
  position: absolute;
  border: 1px solid #dfcfbd;
  border-radius: 18px;
  background: #fffdf8;
  box-shadow: 0 16px 26px rgba(92, 69, 50, 0.14);
}

.paper-sub {
  top: 42px;
  left: 30px;
  width: 254px;
  height: 326px;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 22px,
      rgba(171, 144, 113, 0.1) 23px
    ),
    #f6eee2;
  transform: rotate(-7deg);
}

.paper-main {
  top: 20px;
  right: 8px;
  width: min(100%, 340px);
  min-height: 378px;
  padding: 28px 24px 24px;
  transform: rotate(4deg);
}

.paper-main::before {
  position: absolute;
  top: 74px;
  left: 24px;
  right: 24px;
  height: 1px;
  background: #eaded1;
  content: "";
}

.paper-tape {
  position: absolute;
  top: -12px;
  left: 50%;
  width: 94px;
  height: 22px;
  border-radius: 3px;
  background: rgba(214, 176, 131, 0.55);
  transform: translateX(-50%) rotate(-2deg);
}

.paper-icon {
  display: grid;
  width: 62px;
  height: 62px;
  border-radius: 17px;
  background: var(--sage-soft);
  color: var(--sage-dark);
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0.05em;
  place-items: center;
}

.paper-lines {
  display: grid;
  gap: 11px;
  margin-top: 38px;
}

.paper-lines span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: #eadfd3;
}

.paper-lines span:nth-child(1) {
  width: 88%;
}

.paper-lines span:nth-child(2) {
  width: 68%;
}

.paper-lines span:nth-child(3) {
  width: 78%;
}

.paper-main::after {
  position: absolute;
  right: 28px;
  bottom: 30px;
  width: 86px;
  height: 86px;
  border: 2px dashed #d9bd9d;
  border-radius: 50%;
  content: "";
}

.pencil {
  position: absolute;
  width: 18px;
  height: 152px;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      #e8b655 0 18%,
      #f7d177 18% 72%,
      #d99d42 72% 82%,
      #ead9c2 82% 92%,
      #5c5149 92%
    );
  box-shadow: 0 5px 9px rgba(92, 69, 50, 0.12);
}

.pencil::after {
  position: absolute;
  bottom: -15px;
  left: 1px;
  width: 0;
  height: 0;
  border-top: 16px solid #e6d3bc;
  border-right: 8px solid transparent;
  border-left: 8px solid transparent;
  content: "";
}

.pencil-one {
  right: 26px;
  bottom: 8px;
  transform: rotate(27deg);
}

.pencil-two {
  left: 46px;
  bottom: 2px;
  height: 124px;
  transform: rotate(-26deg);
}

.eraser {
  position: absolute;
  bottom: 30px;
  left: 10px;
  width: 80px;
  height: 38px;
  border: 1px solid #dfa6a4;
  border-radius: 10px;
  background:
    linear-gradient(90deg, #eab0ae 0 53%, #f3d1ca 53%);
  box-shadow: 0 6px 10px rgba(92, 69, 50, 0.12);
  transform: rotate(-11deg);
}

/* ---------- start ---------- */

.atelier-start {
  position: relative;
  margin-top: 28px;
  padding: 30px;
  overflow: hidden;
}

.atelier-start::before {
  position: absolute;
  top: -32px;
  right: 9%;
  width: 110px;
  height: 110px;
  border: 2px dashed #dcb998;
  border-radius: 50%;
  content: "";
}

.atelier-section-head {
  position: relative;
  z-index: 1;
}

.atelier-section-head h2,
.section-title-row h2,
.atelier-event h2,
.atelier-concept h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(25px, 3vw, 35px);
  line-height: 1.3;
}

.atelier-section-head > p:not(.eyebrow) {
  max-width: 680px;
  margin: 11px 0 0;
  color: var(--muted);
  line-height: 1.85;
}

.atelier-step-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.atelier-step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 13px;
  min-height: 176px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 252, 246, 0.9);
}

.atelier-step > span {
  display: grid;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 16px;
  font-weight: 950;
  place-items: center;
}

.atelier-step:nth-child(2) > span {
  background: var(--sage-soft);
  color: var(--sage-dark);
}

.atelier-step:nth-child(3) > span {
  background: var(--yellow-soft);
  color: #bd8b2f;
}

.atelier-step h3 {
  margin: 2px 0 0;
  font-size: 17px;
}

.atelier-step p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

.atelier-step a {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
}

.atelier-note {
  position: relative;
  z-index: 1;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
}

/* ---------- news ---------- */

.atelier-notice-panel {
  margin-top: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.82);
  box-shadow: var(--shadow-sm);
}

.section-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.home-notice-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

/* ---------- latest characters ---------- */

.atelier-latest-characters {
  margin-top: 28px;
  padding: 28px;
  border: 1px solid #ead6e3;
  border-radius: var(--radius);
  background:
    radial-gradient(
      circle at 96% 3%,
      rgba(255, 255, 255, 0.9),
      transparent 22%
    ),
    linear-gradient(135deg, #fff8fb, #fffdf8);
  box-shadow: var(--shadow-sm);
}

.home-character-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.home-character-grid > p {
  grid-column: 1 / -1;
}

.home-character-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffdf9;
  box-shadow: 0 8px 18px rgba(92, 69, 50, 0.1);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.home-character-card:hover {
  border-color: #e2b8ce;
  box-shadow: 0 13px 24px rgba(92, 69, 50, 0.15);
  transform: translateY(-3px);
}

.home-character-link {
  display: grid;
  gap: 9px;
  height: 100%;
  padding: 10px;
  color: inherit;
  text-decoration: none;
}

.home-character-image-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 3px solid #fff;
  border-radius: 14px;
  background: var(--paper-warm);
  box-shadow: 0 5px 12px rgba(92, 69, 50, 0.1);
}

.home-character-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-character-no-image {
  display: grid;
  width: 100%;
  height: 100%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  place-items: center;
}

.home-character-name {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-character-kana {
  margin: 3px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-character-new {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.94);
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.06em;
}

@media (max-width: 560px) {
  .atelier-latest-characters {
    padding: 22px;
    border-radius: 22px;
  }

  .home-character-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .home-character-link {
    padding: 8px;
  }

  .home-character-name {
    font-size: 14px;
  }

  .home-character-kana {
    font-size: 11px;
  }
}

/* ---------- games ---------- */

.atelier-games {
  margin-top: 28px;
  padding: 30px;
  border: 1px solid #d6e2d5;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 95% 0, rgba(255, 255, 255, 0.88), transparent 20%),
    var(--paper-sage);
}

.atelier-game-card {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 21px;
  padding: 20px;
  border: 1px solid #cbddcb;
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.8);
}

.atelier-game-icon {
  display: grid;
  flex: 0 0 62px;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: var(--sage);
  color: #fffdf8;
  font-size: 27px;
  place-items: center;
}

.atelier-game-card h3 {
  margin: 0;
  font-size: 19px;
}

.atelier-game-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.atelier-game-card .text-link {
  display: inline-block;
  margin-top: 11px;
  color: var(--sage-dark);
}

/* ---------- event ---------- */

.atelier-event {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: center;
  gap: 30px;
  margin-top: 28px;
  padding: 32px;
  border: 1px solid #ead2bd;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 90% 12%, rgba(255, 255, 255, 0.92), transparent 20%),
    #fff2df;
  box-shadow: var(--shadow-sm);
}

.atelier-event > div:first-child > p:not(.eyebrow):not(.mini-info) {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.85;
}

.atelier-event .mini-info {
  margin: 11px 0 0;
}

.atelier-event .actions {
  margin-top: 21px;
}

.atelier-event-card {
  display: grid;
  aspect-ratio: 1 / 1;
  border: 1px solid #dca277;
  border-radius: 27px;
  background:
    radial-gradient(circle at 23% 23%, rgba(255, 255, 255, 0.95) 0 7%, transparent 8%),
    linear-gradient(145deg, #df9372, #d36e55);
  box-shadow: 0 14px 22px rgba(184, 105, 74, 0.2);
  color: #fffdf8;
  place-content: center;
  text-align: center;
  transform: rotate(4deg);
}

.atelier-event-card span {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.atelier-event-card strong {
  font-size: 29px;
  letter-spacing: 0.04em;
}

.atelier-event-card small {
  margin-top: 8px;
  font-weight: 900;
}

/* ---------- concept ---------- */

.atelier-concept {
  position: relative;
  margin-top: 28px;
  padding: 36px 32px;
  overflow: hidden;
  border: 1px solid #ddd3ec;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 93% 15%, rgba(255, 255, 255, 0.85), transparent 22%),
    var(--lavender-soft);
}

.atelier-concept::after {
  position: absolute;
  right: 45px;
  bottom: -43px;
  width: 145px;
  height: 145px;
  border: 2px dashed rgba(145, 123, 190, 0.42);
  border-radius: 50%;
  content: "";
}

.atelier-concept h2 {
  position: relative;
  z-index: 1;
  max-width: 750px;
}

.atelier-concept > p:not(.eyebrow) {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.9;
}

.atelier-concept .actions {
  position: relative;
  z-index: 1;
  margin-top: 22px;
}

/* ---------- responsive ---------- */

@media (max-width: 920px) {
  .atelier-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .atelier-hero-illust {
    width: min(100%, 470px);
    margin: 0 auto;
  }

  .atelier-step-list {
    grid-template-columns: 1fr;
  }

  .atelier-step {
    min-height: auto;
  }
}

@media (max-width: 700px) {
  .atelier-event {
    grid-template-columns: 1fr;
  }

  .atelier-event-card {
    width: min(220px, 100%);
    justify-self: center;
  }
}

@media (max-width: 560px) {
  .atelier-hero {
    padding: 29px 20px;
    border-radius: 24px;
  }

  .atelier-hero::before {
    left: 26px;
  }

  .atelier-hero h1 {
    font-size: 39px;
  }

  .atelier-hero-illust,
  .desk-illust {
    min-height: 328px;
  }

  .paper-sub {
    left: 0;
    width: 208px;
    height: 272px;
  }

  .paper-main {
    right: 0;
    width: 266px;
    min-height: 315px;
    padding: 24px 19px;
  }

  .paper-main::before {
    left: 19px;
    right: 19px;
  }

  .pencil-one {
    right: 10px;
  }

  .pencil-two {
    left: 20px;
  }

  .atelier-start,
  .atelier-notice-panel,
  .atelier-games,
  .atelier-event,
  .atelier-concept {
    padding: 22px;
    border-radius: 22px;
  }

  .section-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .atelier-game-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .atelier-game-icon {
    flex-basis: 52px;
    width: 52px;
    height: 52px;
  }

  .actions {
    display: grid;
  }
}
