@charset "UTF-8";

:root {
  --font-base: "Noto Sans JP", sans-serif;
}

html {
  font-size: 16px;
  font-family: var(--font-base);
  scroll-behavior: smooth;
  color: #000;
}

a:hover {
  opacity: 0.7;
}

img {
  max-width: 100%;
  height: auto;
}

/* --------------------------------
                base
-------------------------------- */
.base {
  position: relative;
  overflow: clip;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.base::after {
  content: "";
  display: block;
  width: 100%;
  height: 100dvh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  background: no-repeat center top / cover url(../images/bg.webp);

  @media (max-width: 768px) {
    background: no-repeat center top / cover url(../images/bg-sp.webp);
  }
}

/*--------------------------------
	btn
--------------------------------*/
.btn {
  background: #ed830a;
  color: #fff;
  border-radius: 9999px;
  width: 100%;
  max-width: 270px;
  font-size: 1rem;
  font-weight: 900;
  position: relative;
  padding: 0.5em 3em;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 57px;

  &::after {
    content: "";
    display: block;
    position: absolute;
    width: 1.5em;
    height: 1.5em;
    right: 1em;
    top: calc(50% - 0.725em);
    background: #fff;
    mask-image: url(../images/icon-arrow-right.svg);
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
  }
}

/*--------------------------------
	modal
--------------------------------*/

html:has(dialog[open]) {
  overflow: hidden;
}

dialog:has(.modal) {
  padding: 0;
  max-width: 62.5rem;
  width: fit-content;
  background: transparent;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s,
    transform 0.5s,
    overlay 1s allow-discrete,
    display 1s allow-discrete;
}

dialog[open] {
  opacity: 1;
  transform: translateY(0);
}

dialog::backdrop {
  background: #ffffffad;
  backdrop-filter: blur(3px);
  opacity: 0;
  transition:
    opacity 0.5s ease-out,
    overlay 1s allow-discrete,
    display 1s allow-discrete;
}

dialog[open]::backdrop {
  opacity: 1;
}

.modal {
  padding: 40px;
  background: #fff;
  padding: 0;

  color: #333333;
  z-index: 20;
  top: 50%;
  left: 50%;
  margin: 0;
  max-width: 90vw;
  max-height: 90vh;
  max-height: 90dvh;
  overflow: hidden;

  @media (min-width: 769px) {
    border: 1px solid #28562f;
    border-radius: 22px;
  }
}

.modal__inner {
  background: #fff;
  width: 100%;
  max-width: 500px;
  max-height: calc(90vh - 100px);
  max-height: calc(90dvh - 100px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.modal__close-btn {
  -webkit-appearance: none;
  /* ネイティブスタイルを無効化 */
  appearance: none;
  display: flex;
  padding: 8px 24px;
  justify-content: center;
  align-items: center;
  gap: 3px;
  color: #806c49;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
  border: 1px solid #806c49;
  background: #fff;
  position: sticky;
  bottom: 0;

  &::before {
    content: "";
    width: 1em;
    height: 1em;
    background: no-repeat center / contain url(../images/icon-close-line.svg);
  }
}

.modal__close-btn:focus,
.modal__close-btn:focus-visible {
  outline: 1px solid #806c49;
}

@starting-style {
  dialog[open] {
    opacity: 0;
    transform: translateY(20px);
  }

  dialog[open]::backdrop {
    opacity: 0;
  }
}

/* --------------------------------
          modal-slide-view
-------------------------------- */

.modal-slide-view-wrap {
  max-height: 100%;
  max-width: 100%;
}

.modal-slide-view {
  width: 100vw;
  height: 100dvh;
  max-width: 100%;
  max-height: 100%;
  position: relative;
  overflow: hidden;
}

.modal-slide-view__container {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.3s ease-in-out;
  transform: translateX(-100%);
  overflow: hidden;
}

.modal-slide-view__container--next {
  transform: translateX(100%);
}

.modal-slide-view__container--active {
  transform: translateX(0%);
}

/*--------------------------------------------------
pagination
  --------------------------------------------------*/

.pagination {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.4375rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.pagination__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background-color: #0f8c23;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.875rem;
  box-sizing: border-box;
  border-radius: 999px;
}

.pagination__link:hover {
  opacity: 0.7;
}

.pagination__link--arrow {
  padding: 8px;
  background: transparent;
}

.pagination__link--current {
  background-color: #fff;
  color: #0f8c23;
  border: 1px solid #0f8c23;
}

.pagination__ellipsis {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background-color: #0f8c23;
  color: #fff;
  font-size: 0.875rem;
  box-sizing: border-box;
  border-radius: 999px;
  padding-bottom: 0.8em;
}

/* --------------------------------
          絞り込み検索
-------------------------------- */

.search-form-area {
  display: flex;
  align-items: center;
  width: 95%;
  max-width: 1200px;
  margin-inline: auto;
}

@media (max-width: 768px) {
  .search-form-area {
    padding-inline: 20px;
  }
}

.search-count {
  color: #403934;
  font-size: 0.8125rem;
  font-weight: 500;
}

.search-open-btn {
  color: #806c49;
  display: flex;
  width: 120px;
  padding: 8px 10px;
  justify-content: center;
  align-items: center;
  border: 1px solid;
  background: #fff;
  margin-left: auto;
  font-size: 0.8125rem;
  font-weight: 500;

  &::before {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-right: 0.5em;
    background: no-repeat center/contain url(../images/icon-search.svg);
  }
}

/* --------------------------------
       絞り込み検索モーダル
-------------------------------- */

@media (min-width: 769px) {
  .modal:has(.search-modal) {
    max-width: 500px;
    max-height: 600px;
    height: 100vh;
  }
}

@media (max-width: 768px) {
  .modal:has(.search-modal) {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
  }

  dialog:has(.search-modal) {
    width: 100vw;
    max-width: 100vw;
    max-height: 100dvh;
  }
}

.search-modal {
  display: flex;
  width: 100%;
  flex-direction: column;
  max-height: 100%;
  height: 100%;
  justify-content: space-between;
}

@media (min-width: 769px) {
  .search-modal {
    padding: 24px;
  }
}

.search-modal__header {
  display: flex;
  width: 100%;
  padding: 20px;
  justify-content: center;
  align-items: center;

  text-align: center;
  font-weight: 500;
  border-bottom: 1px solid #333333;
  position: relative;
  min-height: 66px;
}

.search-modal__ttl {
  font-size: 1.25rem;
  font-weight: 900;
  @media (max-width: 768px) {
    font-size: 0.8125rem;
  }
}

.search-modal__close {
  position: absolute;
  width: 26px;
  height: 26px;
  top: 20px;
  right: 20px;
  background: no-repeat center / contain url(../images/icon-close-line.svg);

  &:hover {
    opacity: 0.7;
  }
}

.search-modal__back {
  position: absolute;
  width: 26px;
  height: 26px;
  top: 20px;
  left: 20px;
  background: no-repeat center / contain
    url(../images/icon-arrow-left-filled.svg);

  &:hover {
    opacity: 0.7;
  }
}

.search-modal__footer {
  display: flex;
  justify-content: center;
}

@media (max-width: 768px) {
  .search-modal__footer {
    padding-block: 24px;
  }
}

/* 絞り込み項目 -------------------------------- */

.specified-btn-list {
  display: flex;
  flex-direction: column;
}

.specified-btn {
  display: flex;
  padding: 16px calc(16px + 16px + 8px) 16px 16px;
  flex-direction: column;
  gap: 8px;
  align-self: stretch;
  color: #000000;
  text-align: left;
  font-size: 0.8125rem;
  font-weight: 500;
  border-bottom: 1px solid #000000;
  position: relative;

  &::before {
    content: "";
    display: block;
    width: 16px;
    height: 16px;
    position: absolute;
    top: calc(50% - 0.5em);
    right: 16px;
    background: no-repeat center / contain
      url(../images/icon-arrow-right-filled.svg);
  }
}

.specified-btn-header {
  display: flex;
  gap: 8px;
}

.specified-btn-overview {
  margin-left: auto;
}

.specified-btn-setting {
  font-size: 0.6875rem;
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: keep-all;
  white-space: nowrap;

  &:empty {
    display: none;
  }
}

/* 絞り込み指定 -------------------------------- */
/* タブ */
.search-tab-btn-list {
  display: flex;
  padding: 16px;
  flex-wrap: nowrap;
  gap: 8px;
  overflow: auto;
  max-width: 100%;
  scroll-padding: 16px;
  scroll-snap-type: x mandatory;
}

.search-tab-btn {
  scroll-snap-align: start;
  cursor: pointer;
  display: flex;
  min-width: 32px;
  width: fit-content;
  height: 32px;
  padding-inline: 0.7em;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid #28562f;
  color: #28562f;
  font-size: 0.75rem;
  font-weight: 600;
  flex: 0 0 auto;
}

.search-tab-btn--active {
  pointer-events: none;
  color: #fff;
  background: #28562f;
}

/* 指定リスト */
:root {
  --dialog-size: 600px;
  --border-size: 2px;
  --dialog-gap-size: 24px;
  --dialog-padding: 48px;
  --ttl-size: 66px;
  --syuon-size: 64px;
  --btn-area-size: 57px;
}

@media (max-width: 768px) {
  :root {
    --dialog-size: 100dvh;
    --border-size: 0px;
    --dialog-gap-size: 0px;
    --dialog-padding: 0px;
    --btn-area-size: 105px;
  }
}

.selection-list {
  display: flex;
  flex-direction: column;
  max-height: calc(
    var(--dialog-size) - var(--border-size) - var(--dialog-padding) -
      var(--ttl-size) - var(--syuon-size) - var(--btn-area-size) -
      var(--dialog-gap-size)
  );
  overflow-y: auto;
}

/* スクロールバー指定 */
.selection-list::-webkit-scrollbar {
  width: 5px;
}

.selection-list::-webkit-scrollbar-track {
  background: transparent;
}

.selection-list::-webkit-scrollbar-thumb {
  background: #28562f;
}

@supports not selector(::-webkit-scrollbar) {
  .selection-list {
    scrollbar-color: #28562f transparent;
  }
}

.selection-item {
  display: flex;
  padding: 16px;
  gap: 6px;
  color: #000000;
  font-size: 0.8125rem;
  font-weight: 500;
  align-items: center;
  border-bottom: 1px solid #000000;
  cursor: pointer;

  &::before {
    content: "";
    display: block;
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    background: no-repeat center / contain url(../images/icon-check-box.svg);
  }
}

.selection-item:has(:checked)::before {
  background: no-repeat center / contain
    url(../images/icon-check-box-active.svg);
}

.selection-item__inner {
  max-width: 100%;
  overflow: hidden;
  word-break: keep-all;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* リセットボタン -------------------------------- */
.search-control-area {
  display: flex;
  align-items: center;
  width: 100%;
  padding-inline: 24px;
  justify-content: center;
}

@media (min-width: 769px) {
  .search-control-area {
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .search-control-area {
    justify-content: space-evenly;
  }
}

.search-reset-btn {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  color: #000000;
  text-align: center;
  font-size: 0.6875rem;
  min-width: 6em;
  font-weight: 500;
}

/* 絞り込み対象なし -------------------------------- */
.goods-list:has(.select-none) {
  grid-template-columns: 1fr;
}

.select-none {
  width: 100%;
  text-align: center;
}

/*--------------------------------
	mv
--------------------------------*/
.mv__img {
  width: 100%;
}

/*--------------------------------
	header-ttl
--------------------------------*/
.header-ttl {
  background: #fff;
  padding: 16px 32px;
  min-height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;

  @media (max-width: 768px) {
    min-height: 67px;
    padding: 12px 12px;
  }

  @media (min-width: 769px) {
    border-bottom: 1px solid #dfdfdf;
  }
}

.header-ttl__logo {
  aspect-ratio: 122/43;
  max-width: 210px;
  display: block;
  position: absolute;
  top: 50%;
  left: 32px;
  height: 57%;
  transform: translateY(-50%);

  @media (max-width: 768px) {
    max-width: 37px;
    left: 16px;
    aspect-ratio: 37/30;
  }
}

.header-ttl__logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header-ttl__text {
  text-align: center;
  font-weight: 900;
  font-size: 1.5rem;
}

/*--------------------------------
	global-nav
--------------------------------*/
.global-nav {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;

  @media (max-width: 768px) {
    &::after {
      content: "";
      width: 100%;
      height: 1px;
      background: #dfdfdf;
      position: absolute;
      bottom: 0;
      left: 0;
    }
  }
}

.global-nav__inner {
  display: flex;
  gap: 100px;
  justify-content: center;
  align-items: center;

  @media (max-width: 768px) {
    flex-direction: column-reverse;
    gap: 0;
  }
}

.global-nav__menu-list {
  display: flex;
  width: 95%;
  max-width: 529px;
  align-items: center;
  justify-content: center;
}

.global-nav__menu {
  min-height: 66px;
  display: flex;
  width: calc(100% / 4);
  max-width: 132px;
  position: relative;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;

  &:hover {
    color: #338a41;
  }

  @media (max-width: 768px) {
    min-height: 40px;
    max-width: 78px;
    font-size: 0.8125rem;
  }
}

.global-nav__menu--active {
  color: #338a41;
  pointer-events: none;

  &::after {
    content: "";
    display: block;
    width: 45px;
    height: 3px;
    position: absolute;
    background: #338a41;
    place-self: end center;
    inset: 0;
    z-index: 1;
  }
}

.global-nav__modal-btn {
  border: 1px solid #1b9235;
  min-height: 40px;
  display: flex;
  color: #1b9235;
  font-size: 0.9375rem;
  font-weight: 700;
  justify-content: center;
  align-items: center;

  @media (min-width: 769px) {
    width: fit-content;
    min-width: 112px;
  }

  @media (max-width: 768px) {
    min-height: 38px;
    width: 95%;
    max-width: 100px;
    font-size: 0.8125rem;
    margin-block: 3px;
  }
}

/* アンカーリンク調整 */
[id^="n-"] {
  scroll-padding: 66px;

  @media (max-width: 768px) {
    scroll-padding: 48px;
  }
}

/*--------------------------------
	main-container
--------------------------------*/
.main-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 60px 55px;

  @media (max-width: 768px) {
    padding: 44px 16px;
    gap: 32px;
  }
}

/*--------------------------------
	filter-contents
--------------------------------*/
.filter-contents {
  width: 100%;
  max-width: 1050px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.filter-contents__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-contents__setting-content {
  display: flex;
  gap: 32px;
  align-items: baseline;

  @media (max-width: 768px) {
    gap: 11px;
  }
}

.filter-contents__filter-ttl {
  font-size: 1.5rem;
  font-weight: 900;

  @media (max-width: 768px) {
    font-size: 0.9375rem;
  }
}

.filter-contents__filter-count {
  font-size: 1rem;

  @media (max-width: 768px) {
    font-size: 0.75rem;
  }
}

.filter-contents__updated-date {
  font-size: 0.875rem;

  @media (max-width: 768px) {
    font-size: 0.6875rem;
  }
}

/*--------------------------------
	works-card
--------------------------------*/
.works-card-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;

  @media (max-width: 768px) {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.works-card {
  background: #ffffff;
  border: 1px solid #28562f;
  border-radius: 15px;
  padding: 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;

  @media (max-width: 768px) {
    padding: 16px;
  }
}

.works-card__header {
  background: #e5f5e7;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #28562f;
  padding: 14px 24px;

  @media (max-width: 768px) {
    padding: 6px 10px;
    gap: 8px;
  }
}

.works-card__ttl-wrap {
  justify-content: center;
  align-items: center;
  font-weight: 900;
  font-size: 1rem;
  height: 2lh;
  display: flex;
}

.works-card__ttl {
  max-height: 2lh;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.works-card__info-list {
  display: flex;
  gap: 8px;
  font-size: 0.75rem;

  @media (max-width: 768px) {
    grid-template-columns: 1fr;
  }
}

.works-card__info {
  display: flex;
  flex-direction: column;
  text-align: center;
  flex: 1;
}

.works-card__info-ttl {
  font-weight: 500;
  line-height: 1.3;
  display: flex;
  gap: 5px;
  justify-content: center;
  align-items: center;
}

.works-card__info-ttl--circle::before,
.works-card__info-ttl--writer::before {
  content: "";
  display: block;
  width: 1em;
  height: 1em;
}

.works-card__info-ttl--circle::before {
  background: no-repeat center/contain url(../images/icon-circle.svg);
}

.works-card__info-ttl--writer::before {
  background: no-repeat center/contain url(../images/icon-artist.svg);
}

.works-card__info-detail {
  height: 1lh;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.works-card__body {
  display: grid;
  grid-template-rows: auto 1fr;
  grid-template-columns: 176px auto;
  gap: 16px;
  align-items: start;

  @media (max-width: 768px) {
    grid-template-columns: 110px auto;
  }
}

.works-card__side {
  display: flex;
  flex-direction: column;
  gap: 10px;

  @media (min-width: 769px) {
    grid-row: 1/3;
  }
}

.works-card__picture {
  aspect-ratio: 107/150;
}

.works-card__picture--none-img {
  border: 1px solid #28562f;
  display: flex;
  font-weight: 700;
  color: #28562f;
  align-items: center;
  justify-content: center;
  text-align: center;
  &::after {
    content: "NOW PRINTING";
  }
}

.works-card__picture img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.works-card__tag-area {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.works-card__tag-list {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.works-card__tag {
  background: #e5f5e7;
  border-radius: 3px;
  padding-inline: 5px;
  color: #28562f;
  font-size: 0.6875rem;
  line-height: 1.8;
  height: 1lh;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  overflow: hidden;
  text-overflow: ellipsis;

  @media (max-width: 768px) {
    font-size: 0.625rem;
    height: auto;
    max-height: 2lh;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
}

.works-card__main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.works-card__comment {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.works-card__comment-ttl {
  padding: 8px;
  color: #28562f;
  border-bottom: 1px solid #28562f;
  text-align: center;
  width: 100%;
  font-size: 0.75rem;
  font-weight: 900;
}

.works-card__comment-text {
  color: #28562f;
  font-size: 0.8125rem;
  line-height: 1.5;
  height: 10lh;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  line-clamp: 10;
  overflow-y: scroll;
  text-overflow: ellipsis;

  @media (max-width: 768px) {
    font-size: 0.75rem;
    height: auto;
    max-height: 12lh;
    line-clamp: 12;
  }
}

.works-card__btn {
  font-weight: 500;
  margin-inline: auto;
  padding-inline: 2em;
  &::after {
    right: 0.5em;
  }
  @media (min-width: 769px) {
    font-size: 0.75rem;

    max-width: 120px;
    min-height: 24px;
  }

  @media (max-width: 768px) {
    font-size: 0.9675rem;
    max-width: 170px;
    min-height: 34px;
    grid-column: 1/3;
  }
}

/*--------------------------------
	footer
--------------------------------*/
.footer {
  background: #28562f;
  color: #fff;
  padding: 36px;
  margin-top: auto;
}

.footer__inner {
  width: 100%;
  max-width: 1300px;
  margin-inline: auto;
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: space-between;

  @media (max-width: 768px) {
    flex-direction: column-reverse;
    gap: 24px;
  }
}

.footer__logo {
  display: block;
  width: 50%;
  max-width: 136px;
}

.footer__logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer__link-list {
  display: flex;
  gap: 64px;
  font-size: 1rem;
  font-weight: 700;

  @media (max-width: 768px) {
    gap: 28px;
  }
}

/*--------------------------------
	loading中のオーバーレイ
--------------------------------*/
.loading-overlay {
  position: fixed;
  background: #000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.5s;
}

.loading-overlay--show {
  opacity: 0;
  pointer-events: none;
}

/*--------------------------------
	レスポンシブ対応
--------------------------------*/
@media (min-width: 769px) {
  .sp {
    display: none;
  }
}

@media (max-width: 768px) {
  .pc {
    display: none;
  }
}
