/* =====================================================
  Retoli base layout
===================================================== */

.retoli-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 80px 24px;
}

/*
.retoli-page-header {
  margin-bottom: 40px;
}
*/

.retoli-page-header h1 {
  font-size: 48px;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.retoli-page-header p {
  color: #666;
}

/* =====================================================
  Illustration archive / cards
===================================================== */

.retoli-works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.retoli-work-card__link,
.retoli-work-card__button {
  color: inherit;
  text-decoration: none;
}

.retoli-work-card__button {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.retoli-work-card__image {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #ddd;
  overflow: hidden;
}

.retoli-work-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.retoli-work-card__coming {
  width: 100%;
  min-height: 240px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #333;
  background: #ddd;
}

.retoli-work-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  background: #111;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  padding: 7px 10px;
  border-radius: 999px;
}

.retoli-work-card__title {
  font-size: 18px;
  margin-top: 12px;
  margin-bottom: 6px;
}

.retoli-work-card__desc {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  margin: 0;
}

/* =====================================================
  Category tabs
===================================================== */

.retoli-tab-nav {
  box-sizing: border-box;
  display: flex;
  gap: 0;
  width: 100%;
  margin-bottom: 0;
  border: 2px solid #111;
  border-radius: 10px 10px 0 0;
  overflow-x: auto;
  overflow-y: hidden;
  border-bottom: none;
}

.retoli-tab {
  min-width: 140px;
  padding: 14px 24px;
  border: none;
  border-right: 2px solid #111;
  background: #fff;
  color: #111;
  font-weight: 700;
  cursor: pointer;
  border-radius: 0;
  white-space: nowrap;
}

.retoli-tab:last-child {
  border-right: none;
}

.retoli-tab.active {
  background: #111;
  color: #fff;
}

.retoli-works-panel {
  box-sizing: border-box;
  border: 2px solid #111;
  border-top: none;
  padding: 40px;
  background: #fff;
  margin-top: 0;
  margin-bottom: 60px;
}

/* =====================================================
  Illustration single page
===================================================== */

.retoli-illustration-single {
  max-width: 920px;
}

.retoli-single-work__back {
  margin-bottom: 32px;
}

.retoli-single-work__back a {
  color: inherit;
  text-decoration: none;
}

.retoli-single-work__header {
  margin-bottom: 32px;
}

.retoli-single-work__header h1 {
  font-size: 40px;
  margin-bottom: 12px;
}

.retoli-single-work__terms {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.retoli-single-work__terms span {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f2f2f2;
  font-size: 13px;
}

.retoli-single-work__main-image {
  margin-bottom: 32px;
  background: #f7f7f7;
}

.retoli-single-work__main-image img {
  display: block;
  width: 100%;
  height: auto;
}

.retoli-single-work__description {
  line-height: 1.9;
  margin-bottom: 48px;
}

.retoli-single-work__diff h2 {
  font-size: 24px;
  margin-bottom: 20px;
}

.retoli-single-work__diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.retoli-single-work__diff-grid img {
  width: 100%;
  height: auto;
  display: block;
  background: #f7f7f7;
}

/* =====================================================
  Illustration modal
===================================================== */

.retoli-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.retoli-modal[aria-hidden="false"] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.retoli-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .48);
}

.retoli-modal__content {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 96px));
  max-height: 88vh;
  overflow-y: auto;
  background: #fff;
  padding: 34px 34px 28px;
  border-radius: 10px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .22);
}

.retoli-modal__visual {
  margin-bottom: 28px;
}

.retoli-modal__main-link {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  color: inherit;
  text-decoration: none;
}

.retoli-modal__main-image {
  display: block;
  max-width: 100%;
  max-height: 54vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  background: #f7f7f7;
}

.retoli-modal__zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(17, 17, 17, .82);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  pointer-events: none;
}

.retoli-modal__zoom i {
  font-size: 11px;
}

.retoli-modal__caption {
  display: none;
  margin: 10px 0 0;
  text-align: center;
  color: #666;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.retoli-modal__thumbs {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

.retoli-modal__thumbs button {
  width: 74px;
  height: 74px;
  padding: 0;
  border: 2px solid transparent;
  background: #f3f3f3;
  cursor: pointer;
  overflow: hidden;
}

.retoli-modal__thumbs button.active {
  border-color: #111;
}

.retoli-modal__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 逕ｻ蜒剰ｪｬ譏弱お繝ｪ繧｢ */
.retoli-modal__body {
  max-width: 760px;
  margin: 0 auto;
}

.retoli-modal__new {
  display: none;
  width: fit-content;
  margin: 0 0 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  letter-spacing: .04em;
}

.retoli-modal__title {
  font-size: 28px;
  line-height: 1.35;
  margin: 0 0 12px;
}

.retoli-modal__categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.retoli-modal__categories span {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f2f2f2;
  font-size: 13px;
}

.retoli-modal__description {
  line-height: 1.9;
  white-space: pre-wrap;
  margin: 0;
}

.retoli-modal__note {
  display: none;
  margin-top: 20px;
  padding: 16px;
  background: #f7f7f7;
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
}

.retoli-modal__bottom-close {
  display: block;
  min-width: 170px;
  margin: 34px auto 0;
  padding: 12px 24px;
  border: none;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}


body.retoli-modal-open {
  overflow: hidden;
}




/* =====================================================
  Responsive
===================================================== */

@media (max-width: 820px) {
  .retoli-modal {
    padding: 0 48px !important;
    box-sizing: border-box !important;
  }

  .retoli-modal__content {
    width: 100% !important;
    max-width: 340px !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding: 20px 18px 24px !important;
  }

  .retoli-modal__visual,
  .retoli-modal__main-link,
  .retoli-modal__body,
  .retoli-modal__note {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .retoli-modal__main-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 34vh !important;
    object-fit: contain !important;
  }

  .retoli-modal__stage {
    gap: 10px;
  }

  .retoli-tab-nav {
    margin-bottom: 0;
    border-bottom: none;
  }

  .retoli-tab {
    min-width: 112px;
    padding: 12px 18px;
    font-size: 14px;
  }


}

.retoli-modal__stage {
  position: relative;
  z-index: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 20px;

  width: min(920px, calc(100% - 48px));
}

.retoli-modal__nav {
  flex-shrink: 0;

  width: 46px;
  height: 46px;

  border: none;
  border-radius: 999px;

  background: #111;
  color: #fff;

  font-size: 34px;
  line-height: 1;

  cursor: pointer;
}

.retoli-modal__content {
  width: 100%;
}

.retoli-breadcrumb {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 28px;
  font-weight: 700;
  letter-spacing: .04em;
}

.retoli-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.retoli-rights-note {
  margin-top: 48px;
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
  color: #333;
}

.retoli-rights-note p {
  margin: 0;
}

/* 繝壹�繧ｸ繝阪�繧ｷ繝ｧ繝ｳ */

.retoli-pagination {
  margin-top: 48px;
}

.retoli-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.retoli-pagination .page-numbers li {
  margin: 0;
  padding: 0;
}

.retoli-pagination .page-numbers a,
.retoli-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 44px;
  height: 44px;
  padding: 0 12px;

  border: 2px solid #111;
  border-radius: 8px;

  color: #111;
  text-decoration: none;
  font-weight: 700;
  line-height: 1;
}

.retoli-pagination .page-numbers .current {
  background: #111;
  color: #fff;
}

.retoli-pagination .prev,
.retoli-pagination .next {
  min-width: auto;
  padding-inline: 18px;
}

.retoli-pagination {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.retoli-pagination .prev,
.retoli-pagination .next {
  min-width: 120px;
}

.retoli-pagination a {
  transition: .2s;
}

.retoli-pagination a:hover {
  background: #111;
  color: #fff;
}

/* =====================================================
  Comic archive / modal / single
===================================================== */

.retoli-comic-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.retoli-comic-card__image {
  aspect-ratio: 3 / 4;
}

.retoli-comic-card__image img {
  object-fit: cover;
}

.retoli-comic-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 10px;
  color: #666;
  font-size: 12px;
}

.retoli-comic-modal__main-image {
  max-height: 58vh;
}

.retoli-comic-modal__meta {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
}

.retoli-comic-modal__meta>div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
}

.retoli-comic-modal__meta dt {
  font-weight: 700;
}

.retoli-comic-modal__meta dd {
  margin: 0;
}

.retoli-comic-modal__external {
  display: none;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 24px;
  padding: 12px 20px;
  border: 2px solid #111;
  border-radius: 999px;
  color: #111;
  text-decoration: none;
  font-weight: 700;
  transition: background .2s, color .2s;
}

.retoli-comic-modal__external:hover {
  background: #111;
  color: #fff;
}

.retoli-comic-single {
  max-width: 1040px;
}

.retoli-comic-single__layout {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: 48px;
  align-items: start;
}

.retoli-comic-single__cover img {
  display: block;
  width: 100%;
  height: auto;
  background: #f7f7f7;
}

.retoli-comic-single__info .retoli-single-work__description {
  margin-bottom: 24px;
}

.retoli-comic-single__samples {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.retoli-comic-single__samples img {
  display: block;
  width: 100%;
  height: auto;
  background: #f7f7f7;
}

@media (max-width: 900px) {
  .retoli-comic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .retoli-comic-single__layout {
    grid-template-columns: 1fr;
  }

  .retoli-comic-single__cover {
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .retoli-page {
    padding: 48px 16px;
  }

  .retoli-page-header h1 {
    font-size: 36px;
  }

  .retoli-works-panel {
    padding: 24px 18px;
  }

  .retoli-comic-grid,
  .retoli-works-grid {
    grid-template-columns: 1fr;
  }

  .retoli-comic-single__samples {
    grid-template-columns: 1fr;
  }

  .retoli-comic-modal__meta>div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}



/* =====================================================
  NEWS
===================================================== */

.retoli-news-panel {
  margin-top: 36px;
  padding: 40px;
  border: 2px solid #111;
}

.retoli-news-item a {
  grid-template-columns: 190px 1fr 32px;
}

.retoli-news-item__meta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.retoli-news-item__arrow {
  font-size: 28px;
  text-align: right;
}

.retoli-news-single {
  max-width: 920px;
}

.retoli-news-article {
  margin-top: 44px;
  border: 2px solid #111;
  padding: 48px;
}

.retoli-news-article__header {
  padding-bottom: 30px;
  border-bottom: 1px solid #aaa;
}

.retoli-news-article__meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.retoli-news-article__header h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.35;
}

.retoli-news-article__body {
  padding: 42px 0;
  font-size: 16px;
  line-height: 2;
}

.retoli-news-article__back {
  display: inline-flex;
  padding: 10px 20px;
  border: 2px solid #111;
  border-radius: 999px;
  color: #111;
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 760px) {
  .retoli-home-hero {
    min-height: 64vh;
    padding: 72px 20px;
  }

  .retoli-home-section {
    width: min(100% - 32px, 1120px);
    padding: 72px 0;
  }

  .retoli-home-profile__body {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .retoli-home-profile__image {
    min-height: 280px;
  }

  .retoli-home-work-grid {
    grid-template-columns: 1fr;
  }

  .retoli-home-news-item a {
    grid-template-columns: 92px auto 1fr;
    gap: 10px;
  }

  .retoli-news-panel {
    padding: 24px 18px;
  }

  .retoli-news-item a {
    grid-template-columns: 1fr 32px;
  }

  .retoli-news-item__meta {
    grid-column: 1 / -1;
  }

  .retoli-news-article {
    padding: 28px 20px;
  }
}


