:root {
  --serif: "Zen Old Mincho", serif;
  --sans-serif: "Noto Sans JP", sans-serif;
  --color: #222;
  --bgcolor: #fff;
  --blue: #005E96;
  --clamp128: clamp(100px, 10vw, 128px);
  --clamp96: clamp(82px, 8vw, 96px);
  --clamp72: clamp(68px, 6vw, 72px);
  --clamp64: clamp(56px, 5.3vw, 64px);
  --clamp48: clamp(44px, 4vw, 48px);
  --clamp44: clamp(40px, 3.66vw, 44px);
  --clamp36: clamp(32px, 2.6vw, 36px);
  --clamp32: clamp(28px, 2.6vw, 32px);
  --clamp28: clamp(26px, 2.3vw, 28px);
  --clamp26: clamp(24px, 2.16vw, 26px);
  --clamp24: clamp(20px, 2vw, 24px);
  --clamp18: clamp(16px, 1.5vw, 18px);
  --clamp17: clamp(16px, 1.41vw, 17px);
  --clamp16: clamp(15px, 1.4vw, 16px);
  --clamp15: clamp(13px, 1.25vw, 15px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--serif);
  color: var(--color);
  line-height: 160%;
  scroll-behavior: smooth;
  background-color: #DBD2C9;
}

img {
  width: 100%;
}

.wbr {
  display: inline-block;
}

.logo {
  max-width: 1200px;
  display: flex;
  justify-content: flex-start;
  margin: auto;
  padding: var(--clamp24) 0;
}

.logo img {
  height: 54px;
  max-width: fit-content;
  object-fit: contain;
}

.mv {
  background-image: url(images/mv_bg.webp);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  height: 760px;
  position: relative;
}

@media (max-width: 1200px) {
  .mv {
    background-image: url(images/mv_bg.webp);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    height: 700px;
    position: relative;
  }
}

.mv_inner {
  max-width: 1200px;
  width: 100%;
  margin: auto;
  position: absolute;
  top: auto;
  left: 0;
  right: 0;
  bottom: -10%;
}

.paper {
  width: 100%;
  max-width: 1024px;
  align-items: center;
  content: '';
  background-image: url(images/shadow_obj.png);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  padding: 35px 6% 4% 6%;
  margin: auto;
  margin-top: 200px;

}

@media (max-width: 767px) {
  .paper {
    background-image: none;
    background-color: white;
    padding: 35px 0% 48px 0%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  }
}

h1.card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  background: #26529E;
  max-width: 480px;
  border-bottom: 24px solid #153978;
  padding: var(--clamp32) var(--clamp32) var(--clamp24) var(--clamp32);
  margin: auto;
  margin-top: -120px;
  margin-bottom: 40px;
  line-height: 100%;
}


.card .ribbon {
  background-image: url(images/ribbon_2.svg);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  width: 280px;
  height: 52px;
  display: grid;
  place-content: center;
  color: #26529E;
  line-height: 100%;
  margin-top: 12px;
  font-size: 120%;
}

.card .big {
  font-size: var(--clamp32);
  font-weight: normal;
  line-height: 130%;
}

.card .small {
  font-size: var(--clamp24);
  margin-bottom: var(--clamp24);
  font-weight: normal;
  line-height: 140%;
}

.paper p {
  text-align: center;
  margin-bottom: var(--clamp28);
  font-size: var(--clamp24);
  line-height: 140%;
}

.paper figure {
  display: grid;
  place-content: center;
}

.paper figure img {
  max-width: 640px;
  width: 100%;
  height: auto;
  margin: auto;
}


.pop_wrapper {
  margin: auto;
  margin-top: 240px;
  padding-bottom: 100px;
}

@media (max-width: 768px) {
  .pop_wrapper {
    margin: auto;
    margin-top: 120px;
    padding-bottom: 100px;
  }
}

.pop {
  display: flex;
  list-style: none;
  gap: var(--clamp48);
  flex-direction: row;
  margin-top: 160px;
  align-items: flex-start;
  justify-content: space-between;
}


@media (max-width: 767px) {
  .pop {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 64px;
  }
}

.pop:nth-child(even) {
  display: flex;
  flex-direction: row-reverse;
}

@media (max-width: 767px) {
  .pop:nth-child(even) {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 64px;
  }
}

@media (max-width: 767px) {
  .pop:nth-child(even) {
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
  }
}

.pop_image {
  flex: 1 1 40%;
  position: relative;
}

@media (max-width: 767px) {
  .pop_image {
    width: 100%;
    flex: 1 1 100%;
    border: 0;
    border-top: 8px solid #FFF;
    padding: 24px;
    padding-top: 64px;
    display: grid;
    place-content: center;

  }

  .pop_image::after {
    width: 48px;
    height: 48px;
    background-color: #26529E;
    content: '';
    display: block;
    position: absolute;
    right: 0;
    top: -24px;
  }

  .pop:nth-child(even) .pop_image::after {
    width: 48px;
    height: 48px;
    background-color: #411900;
    content: '';
    display: block;
    position: absolute;
    left: 0;
    top: -24px;
  }
}

.pop_image img {
  position: absolute;
  right: calc(-1 * clamp(80px, 8vw, 140px));
  top: calc(-1 * clamp(80px, 8vw, 80px));
  z-index: 2;
  max-width: 450px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.pop:nth-child(even) img {
  left: calc(-1 * clamp(80px, 8vw, 140px));
  top: calc(-1 * clamp(80px, 8vw, 80px));
  z-index: 2;
}

@media (max-width: 767px) {
  .pop_image img {
    position: static;
    max-width: 450px;
    right: auto;
    top: auto;
    left: auto;
    bottom: auto;
    margin: auto;
  }
}



.pop_book {
  flex: 1 1 60%;
  border: 8px solid #FFF;
  border-right: 0;
  padding: var(--clamp48) var(--clamp72);
  position: relative;
  align-self: flex-start;
}

@media (max-width: 1024px) {
  .pop_book {
    padding: var(--clamp48) 0 var(--clamp48) var(--clamp48);
  }
}

@media (max-width: 767px) {
  .pop_book {
    width: 100%;
    flex: 1 1 100%;
    border: 0;
    flex-direction: column;
    padding: 24px;
  }
}

.pop:nth-child(even) .pop_book {
  align-self: flex-end;
  border: 8px solid #FFF;
  border-left: 0;
}

@media (max-width: 1024px) {
  .pop:nth-child(even) .pop_book {
    padding: var(--clamp24) var(--clamp48) var(--clamp24) 0;
  }
}

@media (max-width: 767px) {
  .pop:nth-child(even) .pop_book {
    width: 100%;
    flex: 1 1 100%;
    border: 0;
    flex-direction: column;
    padding: 24px;
  }
}

.pop_book::after {
  width: 48px;
  height: 48px;
  background-color: #26529E;
  content: '';
  display: block;
  position: absolute;
  right: 0;
  top: -24px;
}

.pop:nth-child(even) .pop_book::after {
  width: 48px;
  height: 48px;
  background-color: #411900;
  content: '';
  display: block;
  position: absolute;
  left: 0;
  top: -24px;
}

@media (max-width: 767px) {
  .pop_book::after {
    display: none;
  }

  .pop:nth-child(even) .pop_book::after {
    display: none;
  }
}

.pop_book_content {
  display: flex;
  list-style: none;
  gap: var(--clamp24);
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  width: 75%;
  margin-right: 25%;
  margin-left: 5%;
}

@media (max-width: 1340px) {
  .pop_book_content {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-right: 0;
  }
}

@media (max-width: 767px) {
  .pop_book_content {
    width: 100%;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    margin: auto;
    width: 100%;
    margin-right: 0;
  }
}

.pop:nth-child(even) .pop_book_content {
  margin-right: 5%;
  margin-left: 25%;
}

@media (max-width: 1340px) {
  .pop:nth-child(even) .pop_book_content {
    margin-right: 0;
    margin-left: 5%;
    padding-right: 3%;
  }
}

@media (max-width: 767px) {
  .pop:nth-child(even) .pop_book_content {
    width: 100%;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    margin: auto;
  }
}




.pop_book_content>*:nth-child(1) {
  flex: 0 0 30%;
}

@media (max-width: 767px) {
  .pop_book_content>*:nth-child(1) {
    flex: 1 1 100%;
    display: grid;
    place-content: center;
  }
}

.pop_book_content>*:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: var(--clamp24);
  justify-content: flex-start;
  align-items: self-start;
}

@media (max-width: 767px) {
  .pop_book_content>*:nth-child(2) {
    justify-content: center;
    align-items: center;
  }
}

.pop_book_content img {
  height: auto;
  width: 190px;
  height: 280px;
  object-fit: contain;
  object-position: top center;
  cursor: pointer;
}

@media (max-width: 767px) {
  .pop_book_content img {
    width: auto;
    height: 200px;
    object-fit: contain;
    margin: auto;
  }
}

.pop_book a.title {
  font-size: var(--clamp32);
  line-height: 140%;
  cursor: pointer;
  color: var(--color);
  text-decoration: none;
}

.minifont {
  font-size: var(--clamp24) !important;
}

.pop_book .author {
  font-size: var(--clamp24);
  line-height: 140%;
}

.pop_book .publisher {
  font-size: var(--clamp16);
  line-height: 140%;
}

/* バックナンバー */
#menu-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 999;
  cursor: pointer;
}
#menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 5px 0;
}

#dropdown-menu {
  position: fixed;
  top: 80px;
  right: 20px;
  width: 300px;
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
  z-index: 999;
}

#dropdown-menu.open {
  max-height: 800px; /* 適当に大きめの高さを指定 */
}

@media (max-width: 760px) {
  #dropdown-menu {
    bottom: 60px;
    top: auto;
    right: 0;
    width: 100%;
    margin: auto;
    border-radius: 0;
  }
  #dropdown-menu.open {
    max-height: 500px;
  }
}

#dropdown-menu ul {
  list-style: none;
  margin: 0;
  padding: 10px 20px;
}

#dropdown-menu li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}
#dropdown-menu a {
  text-decoration: none;
  color: #26529e;
  font-size: 16px;
  line-height: 160%;
}
.dropdown {
  background-color: #26529e;
  color: yellow;
  text-align: center;
  font-size: 22px;
  line-height: 60px;
  height: 60px;
  display: grid;
  place-content: center;
  position: fixed;
  width: 300px;
  top: 20px;
  right: 20px;
  border-radius: 8px;
  display: grid;
  place-content: center;
}
.dropdown:hover {
  background-color: #153978;
}
@media (max-width: 760px) {
  .dropdown {
    background-color: #26529e;
    color: yellow;
    text-align: center;
    font-size: 22px;
    padding: 0;
    width: 100%;
    bottom: 0;
    right: 0;
    left: 0;
    top: auto;
    width: 100%;
    border-radius: 0;
  }
}

/* モーダルの基本スタイル */
.modal {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  /* 初期は完全透明 */
  opacity: 0;
  /* 初期状態で非表示 */
  transition: opacity 0.5s ease, background-color 0.5s ease;
  pointer-events: none;
  /* クリックできない状態 */
}

/* モーダル表示時のスタイル */
.modal.show {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.7);
  pointer-events: auto;
}

/* モーダル内の画像 */
.modal-content {
  max-width: 90%;
  max-height: 90%;
  transition: transform 0.3s ease;
  object-fit: contain;
}

/* 閉じるボタン */
.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 30px;
  color: white;
  cursor: pointer;
}

.addlist_btn {
  width: fit-content;
  height: fit-content;
  padding: 12px 30px;
  font-family: var(--serif);
  font-size: var(--clamp18);
  color: var(--color);
  border-radius: 400px;
  background: #FFF;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.addlist_btn:hover {
  opacity: 0.7;
}