/* ***************************
header
*************************** */
.header {
  padding: 55px var(--gap) 277px;
  text-align: center;
}
.header::before {
  position: fixed;
  display: block;
  width: 100vw;
  height: 100vh;
  inset: 0;
  background-image: url('/sp-bunkaweek/2025/common/styles/images/img_lead_bg.webp');
  background-size: cover;
  background-position: top center;
  z-index: -1;
  opacity: .17;
  content: '';
}
@media screen and (max-width: 800px) {
  .header {
    padding-bottom: 144px;
  }
  .header::before {
    background-image: url('/sp-bunkaweek/2025/common/styles/images/img_lead_bg_sp.webp');
  }
}

/* ***************************
pageTitle
*************************** */
.pageTitle {
  position: relative;
  display: grid;
  padding-left: 42px;
}
@media screen and (max-width: 800px) {
  .pageTitle {
    padding-left: 33px;
  }
}
.pageTitle__main {
  font-family: var(--font-family-serif);
  font-size: calc(40 / 16 * 1rem);
  line-height: calc(50 / 40);
  font-weight: var(--font-weight-700);
}
.pageTitle__main::before {
  position: absolute;
  display: block;
  width: 30px;
  height: 26px;
  top: calc(.5lh - 10px);
  left: 0;
  background-image: url('/sp-bunkaweek/2025/common/styles/images/icon_heading01.svg');
  background-size: 100% 100%;
  content: '';
}
@media screen and (max-width: 800px) {
  .pageTitle__main {
    font-size: calc(24 / 16 * 1rem);
    line-height: calc(35 / 24);
  }
  .pageTitle__main::before {
    width: 25px;
    height: 20px;
    top: calc(.5lh - 10px);
  }
}
.pageTitle__sub {
  margin-top: -4px;
  font-family: var(--font-family-garamond);
  font-size: calc(18 / 16 * 1rem);
  line-height: calc(32 / 18);
  color: var(--color-text-sub);
}
@media screen and (max-width: 800px) {
  .pageTitle__sub {
    font-size: calc(14 / 16 * 1rem);
    line-height: calc(19 / 14);
  }
}

/* ***************************
kvSlider
*************************** */
.kvSlider {
  margin-bottom: 88px;
  .splide__slide img {
    aspect-ratio: 980 / 414;
    object-fit: contain;
    object-position: center;
  }
}

/* ***************************
heading
*************************** */
.heading2 {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 30px;
  margin-bottom: 36px;
  padding: 12px 0px 11px;
  background-color: #fffafa;
  border: solid var(--color-border);
  border-width: 1px 0;
  font-family: var(--font-family-serif);
  font-size: calc(24 / 16 * 1rem);
  font-weight: var(--font-weight-700);
  line-height: calc(30 / 24);
  text-align: center;
}
.heading2::before,
.heading2::after {
  flex-shrink: 0;
  display: block;
  width: 12px;
  height: 12px;
  margin-top: 2px;
  background-image: url('/sp-bunkaweek/2025/common/styles/images/icon_heading02.svg');
  background-size: 100% 100%;
  content: '';
}
* + .heading2 {
  margin-top: 90px;
}

.heading3 {
  position: relative;
  margin-bottom: 12px;
  padding: 5px 0 7px 17px;
  font-family: var(--font-family-serif);
  font-size: calc(22 / 16 * 1rem);
  line-height: calc(28 / 22);
  font-weight: var(--font-weight-900);
}
.heading3::before {
  position: absolute;
  width: 5px;
  top: 0;
  bottom: 0;
  left: 0;
  background-color: var(--color-accent);
  border-radius: calc(infinity * 1px);
  content: '';
}
* + .heading3 {
  margin-top: 47px;
}
.heading2 + .heading3 {
  margin-top: 0;
}

/* ***************************
list
*************************** */
:is(.unorderedList, .orderedList) {
  list-style: revert;
  display: grid;
  row-gap: 4px;
  margin-left: 1em;
  li::marker {
    color: #707070;
  }
  * + & {
    margin-top: 30px;
  }
  :is(.heading2, .heading3) + & {
    margin-top: 0;
  }
}
.unorderedList {
  li::marker {
    font-size: small;
  }
}

/* ***************************
exhibitItem
*************************** */
.exhibitItem {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
}

.exhibitItem__ttl {
  display: grid;
  row-gap: 7px;
  margin-bottom: 18px;
}
.exhibitItem__ttl__text {
  font-family: var(--font-family-serif);
  font-size: calc(20 / 16 * 1rem);
  line-height: calc(25 / 20);
  font-weight: var(--font-weight-900);
}
.exhibitItem__ttl__kana {
  font-size: calc(16 / 16 * 1rem);
  line-height: calc(18 / 16);
}
.exhibitItem__info {
  margin-bottom: 24px;
  font-size: calc(16 / 16 * 1rem);
  line-height: calc(18 / 16);
}
.exhibitItem__desc {
  font-size: calc(18 / 16 * 1rem);
  line-height: calc(32 / 18);
}
.exhibitItem__imgs {
}

/*
Layout
*************************** */
@media print, screen and (min-width: 801px) {
  .exhibitItem:is(.img-right, .img-left) {
    grid-template-rows: repeat(2, max-content) minmax(0, 1fr);
    .exhibitItem__ttl {
      grid-row: 1 / 2;
    }
    .exhibitItem__info {
      grid-row: 2 / 3;
    }
    .exhibitItem__desc {
      grid-row: 3 / 4;
    }
    .exhibitItem__imgs {
      grid-row: 1 / 4;
    }
  }
  .exhibitItem.img-right {
    :is(
      .exhibitItem__ttl,
      .exhibitItem__info,
      .exhibitItem__desc
    ) {
      grid-column: 1 / 2;
    }
    .exhibitItem__imgs {
      grid-column: 2 / 3;
    }
  }
  .exhibitItem.img-left {
    :is(
      .exhibitItem__ttl,
      .exhibitItem__info,
      .exhibitItem__desc
    ) {
      grid-column: 2 / 3;
    }
    .exhibitItem__imgs {
      grid-column: 1 / 2;
    }
  }

  .exhibitItem:is(.img-top, .img-bottom) {
    > * {
      grid-column: 1 / 3;
    }
  }
  .exhibitItem.img-top {
    .exhibitItem__imgs {
      order: -1;
      margin-bottom: 20px;
    }
  }
  .exhibitItem.img-bottom {
    .exhibitItem__imgs {
      margin-top: 20px;
    }
  }
}
@media screen and (max-width: 800px) {
  .exhibitItem {
    > * {
      grid-column: 1 / 3;
    }
    .exhibitItem__imgs {
      order: -1;
      margin-bottom: 20px;
    }
  }
}

/* ***************************
imgModalItem
*************************** */
.imgModalItem {
  position: relative;
  display: grid;
  width: fit-content;
  margin-right: auto;
  margin-left: auto;
  z-index: 0;
  overflow: clip;
}
.imgModalItem::before {
  position: absolute;
  display: block;
  width: 60px;
  height: 60px;
  right: 15px;
  bottom: 13px;
  background-color: #fffafa;
  background-image: url('/sp-bunkaweek/2025/common/styles/images/icon_zoom.svg');
  background-size: 100% 100%;
  border-radius: 50%;
  z-index: 1;
  content: '';
}
.imgModalItem::after {
  content: none !important;
}
* + .imgModalItem {
  margin-top: 60px;
}
.imgModalItem + .imgModalItem {
  margin-top: 20px;
}

@media screen and (max-width: 800px) {
  .imgModalItem::before {
    width: 45px;
    height: 45px;
  }
}
.imgModalItem img {
  scale: 1;
  transform-origin: center;
  transition: scale var(--duration) var(--easing);
}
@media (any-hover: hover) {
  .imgModalItem:hover img {
    scale: 1.1;
  }
}

/* ***************************
column
*************************** */
.column {
  --column-gap: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  column-gap: var(--column-gap);
  row-gap: 20px;

  :where(.width01) {
    width: calc((100% - var(--column-gap) * 11) / 12 * 1 + var(--column-gap) * 0)
  }

  :where(.width02) {
    width: calc((100% - var(--column-gap) * 11) / 12 * 2 + var(--column-gap) * 1)
  }

  :where(.width03) {
    width: calc((100% - var(--column-gap) * 11) / 12 * 3 + var(--column-gap) * 2)
  }

  :where(.width04) {
    width: calc((100% - var(--column-gap) * 11) / 12 * 4 + var(--column-gap) * 3)
  }

  :where(.width05) {
    width: calc((100% - var(--column-gap) * 11) / 12 * 5 + var(--column-gap) * 4)
  }

  :where(.width06) {
    width: calc((100% - var(--column-gap) * 11) / 12 * 6 + var(--column-gap) * 5)
  }

  :where(.width07) {
    width: calc((100% - var(--column-gap) * 11) / 12 * 7 + var(--column-gap) * 6)
  }

  :where(.width08) {
    width: calc((100% - var(--column-gap) * 11) / 12 * 8 + var(--column-gap) * 7)
  }

  :where(.width09) {
    width: calc((100% - var(--column-gap) * 11) / 12 * 9 + var(--column-gap) * 8)
  }

  :where(.width10) {
    width: calc((100% - var(--column-gap) * 11) / 12 * 10 + var(--column-gap) * 9)
  }

  :where(.width11) {
    width: calc((100% - var(--column-gap) * 11) / 12 * 11 + var(--column-gap) * 10)
  }

  :where(.width12) {
    width: calc((100% - var(--column-gap) * 11) / 12 * 12 + var(--column-gap) * 11)
  }
}
.column.item-center {
  justify-content: center;
}

.column.full-bleed {
  --full-bleed: calc(50vw - 50% + 20px);
  margin-inline: calc(-1 * var(--full-bleed));
  padding-inline: var(--full-bleed);

  padding-top: 77px;
  padding-bottom: 20px;
  background-color: #fffafa;
  background-image: url('/sp-bunkaweek/2025/common/styles/images/img_bg_texture.webp');
  background-position: center top;
}

@media screen and (max-width: 800px) {
  .column__item {
    width: 100%;
  }
}

/* ***************************
frameBox
*************************** */
.frameBox {
  position: relative;
  margin: 0 0 86px 24px;
  padding: 26px 28px 36px;
  background-color: #fff;
  border: 2px solid var(--color-active);
  z-index: 0;
}
.frameBox::before,
.frameBox::after {
  position: absolute;
  display: block;
  background-size: 100% 100%;
  z-index: 1;
  content: '';
}
.frameBox::before {
  width: 120px;
  height: 120px;
  top: -33px;
  left: -38px;
  background-image: url('/sp-bunkaweek/2025/common/styles/images/icon_check.svg');
}
.frameBox::after {
  width: 163px;
  height: 120px;
  bottom: -86px;
  right: -30px;
}
.frameBox.is-column::after {
  background-image: url('/sp-bunkaweek/2025/common/styles/images/img_column_cat.png');
}
.frameBox.is-quiz::after {
  background-image: url('/sp-bunkaweek/2025/common/styles/images/img_quiz_cat.png');
}
@media screen and (max-width: 800px) {
  .frameBox {
    margin-left: 0;
    margin-bottom: 47px;
    padding: 26px 23px 107px;

  }
  .frameBox::before {
    left: -18px;
  }
  .frameBox::after {
    right: 0;
    left: 0;
    bottom: -47px;
    margin-right: auto;
    margin-left: auto;
  }
}

.frameBox__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows:
    minmax(calc(33 / 16 * 1rem), auto)
    minmax(calc(20 / 16 * 1rem - 3px), auto);
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-active);
  font-family: var(--font-family-serif);
  text-align: center;
}
.frameBox__head__main {
  font-size: calc(23 / 16 * 1rem);
  line-height: calc(33 / 23);
}
.frameBox__head__main:not(:has(+ .frameBox__head__sub)) {
  grid-row: span 2;
}
.frameBox__head__sub {
  margin-top: -3px;
  font-size: calc(14 / 16 * 1rem);
  line-height: calc(20 / 14);
  color: var(--color-active);
}

.frameBox__body {
  padding: 0 4px;
  font-size: calc(15 / 16 * 1rem);
  line-height: calc(28 / 15);
}
@media screen and (max-width: 800px) {
  .frameBox__body {
    padding: 0;
  }
}
.frameBox__desc {

}
.frameBox__img {
  display: grid;
  justify-content: center;
  margin-top: 17px;
}
.frameBox__keyword {
  margin-top: 30px;
  padding: 11px 10px 10px;
  background-color: #ffe2e6;
  font-family: var(--font-family-serif);
  font-weight: var(--font-weight-600);
  font-size: calc(20 / 16 * 1rem);
  line-height: calc(30 / 20);
  color: var(--color-active);
  text-align: center;
}
.frameBox__keyword::before {
  display: inline-block;
  width: 30px;
  height: 27px;
  margin-top: -4px;
  margin-right: 14px;
  background-color: currentColor;
  mask-image: url('/sp-bunkaweek/2025/common/styles/images/icon_keyword.svg');
  mask-size: 100% 100%;
  vertical-align: middle;
  content: '';
}
@media screen and (max-width: 800px) {
  .frameBox__keyword {
    padding: 13px 10px 11px;
    font-size: calc(18 / 16 * 1rem);
    line-height: calc(24 / 18);
  }
  .frameBox__keyword::before {
    width: 26px;
    height: 24px;
  }
}

.frameBox__dropdown {
  overflow: clip;
  margin-top: 17px;
}

.frameBox__toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: fit-content;
  margin: 30px auto 0;
  padding: 0px 61px 8px 25px;
  font-family: var(--font-family-serif);
  font-size: calc(23 / 16 * 1rem);
  line-height: calc(33 / 23);
}
.frameBox__toggle::before,
.frameBox__toggle::after {
  position: absolute;
  display: block;
  content: '';
}
.frameBox__toggle::before {
  width: 16px;
  height: 27px;
  top: 0;
  bottom: 4px;
  right: 25px;
  margin-top: auto;
  margin-bottom: auto;
  background-image: url('/sp-bunkaweek/2025/common/styles/images/icon_quiz_toggle.svg');
}
.frameBox__toggle::after {
  height: 0;
  border-bottom: 2px solid var(--color-active);
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: calc(infinity * 1px);
}
.frameBox__toggle.is-open::before {
  scale: 1 -1;
}

/* ***************************
referenceTable
*************************** */
.referenceTable {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  :is(th, td) {
    padding: 13px 19px 12px;
    font-size: calc(16 / 16 * 1rem);
    line-height: calc(24 / 16);
    text-align: left;
    font-weight: var(--font-weight-400);
  }
  thead {
    th {
      height: 65px;
      padding: 8px 19px 7px;
      background-color: var(--color-text);
      font-family: var(--font-family-serif);
      font-size: calc(18 / 16 * 1rem);
      line-height: calc(22 / 18);
      color: #fff;
      font-weight: var(--font-weight-700);
      &:nth-child(1) {
        width: 70%;
      }
      &:nth-child(2),
      &:nth-child(3) {
        width: 15%;
      }
    }
  }
  tbody {
    tr {
      border: 1px solid #cbcbcb;
    }
    td {
      word-break: break-all;
    }
  }
}
@media screen and (max-width: 800px) {
  .referenceTable {
    thead {
      th {
        &:nth-child(1) {
          width: 40%;
        }
        &:nth-child(2),
        &:nth-child(3) {
          width: 30%;
        }
      }
    }
  }
}

/* ***************************
modules margin
*************************** */
:is(
  .exhibitItem,
  .column,
  .frameBox,
  .referenceTable
) {
  * + & {
    margin-top: 60px;
  }

  & + & {
    margin-top: 60px;
  }

  :is(.heading2, .heading3) + &:not(:has(.frameBox)) {
    margin-top: 0;
  }
}

/* ***************************
text
*************************** */
.text-mall {
  font-size: calc(16 / 16 * 1rem);
  line-height: calc(18 / 16);
}
.text-large {
  font-size: calc(20 / 16 * 1rem);
  line-height: calc(25 / 20);
}

.text-left {
  text-align: left;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}