@import url("https://fonts.googleapis.com/css2?family=New+Tegomin&display=swap");


:root {
  --event-card: #f8f7f6;
  --event-ink: #111111;
  --newbook: #a80c26;
  --newbooktext: #ffffff;
  --font-en: Georgia, "Times New Roman", serif;
　--font-ja: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --font-event: "New Tegomin", "Yu Mincho", "Hiragino Mincho ProN", serif;
}

.event-page {/*ページ全体にかかる*/
  
}

h1 {
    font-family: var(--font-event);
}

.event-main {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 120px;
}

.event-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;

  margin-bottom: 24px;
  color: #ffffff;
  text-align: center;
}



.circle-left,.circle-right{
  float:none;
}

.circle-left a {
  display: block;
  width: 96px;
  height: 96px;
}

.circle-left img {
  display: block;
  width: 96px;
  min-width: 96px;
  max-width: 96px;
  height: 96px;
  object-fit: cover;
  border: 2px solid #a80c26;
  border-radius: 20px;
}
.circle-right {
  flex: 1 1 auto;
  min-width: 0;
}

.event-label {
  margin-bottom: 6px;
  color: #ffffff;
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: lowercase;
}

.event-heading h1 {
  font-size: clamp(25px, 4vw, 42px);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.book-card {
  display: grid;
  grid-template-columns: minmax(190px, 270px) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 76px);
  min-height: 450px;
  padding: clamp(42px, 7vw, 86px);
  background: var(--event-card);
  color: var(--event-ink);
  border-radius: 76px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.32);
}

.book-card > img {
  display: block;
  width: 100%;
  height: auto;
  align-self: start;
}

.event-info-card {
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
  align-items: center;
  min-height: 0;
  margin-bottom: 36px;
  padding: 24px clamp(30px, 5vw, 58px);
}

.event-info-card .event-cut {
  width: min(100%, 150px);
  align-self: center;
  justify-self: center;
}

.event-info-details h2 {
  margin: 0 0 14px;
  font-family: var(--font-event);
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
}

.event-info-details p {
  line-height: 2;
}

.book-cover {
  position: relative;
  aspect-ratio: 0.72;
  display: flex;
  flex-direction: column;
  align-self: center;
  justify-content: space-between;
  padding: 18px;
  border: 5px solid var(--event-ink);
  background: #fffdf7;
}

.book-cover strong {
  align-self: center;
  font-size: clamp(30px, 5vw, 54px);
  font-weight: 400;
}

.book-cover {
  padding: 0;
  overflow: hidden;
}

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



.book-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.book-label,
.contents-label,
.book-price span {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.book-label {/*新刊のところのラベル*/
   border-radius: 10px;
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 12px;
  border:none ;/*1px solid var(--event-ink)*/
  background-color: var(--newbook);
  color: var(--newbooktext);
}

.book-details h1,
.book-details h2 {
  margin: 0;
  font-size: clamp(25px, 2vw, 42px);
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
}

.book-lead {
  margin-top: 12px;
  font-size: clamp(14px, 1.7vw, 18px);
}

.book-contents {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(17, 17, 17, 0.25);
}

.book-contents ol {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 28px;
  margin-top: 8px;
  padding-left: 1.5em;
}

.book-contents li {
  padding-left: 2px;
}

.book-summary {
  max-width: 600px;
  margin-top: 24px;
}

.book-price {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 14px;
  margin-top: auto;
  padding-top: 30px;
  font-family: "Weekend Citron", Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 2vw, 44px);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1;
}

.book-price span {
  font-family: var(--font-ja);
  font-size: 12px;
}



@media (max-width: 700px) {
  .event-main {
    width: min(100% - 28px, 560px);
    padding-top: 32px;
  }

  .book-card {
    grid-template-columns: minmax(105px, 0.72fr) minmax(0, 1.28fr);
    gap: 18px;
    min-height: 0;
    padding: 26px 20px;
    border-radius: 34px;
  }

  .book-card > img {
    align-self: start;
  }

  .book-card:not(.event-info-card) > img{
    align-self: start;
  }
  .event-info-card {
    grid-template-columns: minmax(78px, 0.55fr) minmax(0, 1.45fr);
    align-items: center;
    padding: 14px 18px;
  }

  .event-info-card .event-cut {
    width: min(100%, 90px);
    align-self: center;
  }

  .event-info-details h2 {
    margin-bottom: 7px;
    font-size: 19px;
  }

  .event-info-details p {
    font-size: 11px;
    line-height: 1.8;
  }

  .book-details h1,
  .book-details h2,
  .book-lead {
    text-align: left;
  }

  .book-details h1,
  .book-details h2 {
    font-size: clamp(18px, 5vw, 24px);
    line-height: 1.4;
  }

  .book-lead {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.7;
  }

  .book-label {
    display: inline-block;
    margin-right: 0;
    margin-left: 0;
    padding: 2px 9px;
    font-size: 11px;
  }

  .book-contents {
    margin-top: 16px;
    padding-top: 10px;
  }

  .contents-label {
    font-size: 11px;
  }

  .book-contents ol {
    display: block;
    margin-top: 4px;
    padding-left: 1.4em;
    font-size: 11px;
    line-height: 1.7;
  }

  .book-summary {
    margin-top: 14px;
    font-size: 11px;
    line-height: 1.7;
  }

  .book-price {
    gap: 6px;
    margin-top: 16px;
    padding-top: 14px;
    font-size: 21px;
  }

  .book-price span {
    font-size: 9px;
  }
}

@media (max-width: 420px) {
  .event-main {
    width: calc(100% - 20px);
  }

  .event-heading h1 {
    font-size: 23px;
  }

  .book-card {
    grid-template-columns: minmax(88px, 0.65fr) minmax(0, 1.35fr);
    gap: 12px;
    padding: 20px 14px;
    border-radius: 26px;
  }

  .event-info-card {
    grid-template-columns: 72px minmax(0, 1fr);
    padding: 10px 14px;
  }

  .event-info-card .event-cut {
    width: 68px;
  }

  .book-price {
    display: flex;
    gap: 5px;
    text-align: right;
  }
}

.book-detail {
  position: relative;
  z-index: 1;
  margin-top: 34px;
  padding: 0;
}

.book-detail > summary {
  cursor: pointer;
  font-weight: bold;
  padding: 0.5em;
  border-top: 1px solid rgba(17, 17, 17, 0.25);
  border-bottom: 1px solid transparent;
}

.book-detail[open] {
  z-index: 10;
}

.book-detail[open] > summary {
  border-bottom: 1px solid rgba(17, 17, 17, 0.25);
}

/* 開いた内容を通常のレイアウトから外し、下の商品画像を押し下げない */
.book-detail > .book-contents {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 10;
  max-height: min(60vh, 320px);
  margin-top: 0;
  padding: 16px 18px;
  overflow-y: auto;
  border: 1px solid rgba(17, 17, 17, 0.25);
  border-radius: 6px;
  background: #fffdf7;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}
