body {
  background-color: #efefef;
  background-image: url(img/pattern.webp);
  font-family: "DotGothic16", sans-serif;
  color: #3c3c3c;
  font-size: 17px;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* 少なくともビューポートの高さにする */
  margin: 0;
}

header {
  /* background-color: #007bff; */
  /* background-image: url(img/title.webp); */
  padding: 0px;
  margin: 0px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo a {
  display: block;
}

.header-logo img {
  height: clamp(1em, calc(100vw / 12), 3em);
  display: block;
}

footer {
  background-color: #292929; /* 背景色を黒に */
  color: #fff; /* 文字色を白に */
  display: flex; /* Flexbox を使用 */
  flex-direction: column; /* 要素を縦に並べる */
  align-items: center; /* 水平方向中央揃え */
  justify-content: center; /* 垂直方向中央揃え */
  padding: 10px; /* 余白 */
  box-sizing: border-box; /* padding を含めた幅の計算 */
  margin-top: auto; /* フッターを最下部に配置 */
  text-align: center; /* テキスト中央揃え (念のため) */
  z-index: 100;
}

footer a {
  display: block; /* a タグをブロック要素にする */
  margin-bottom: 0px; /* ロゴとテキストの間隔 */
}

footer img {
  width: clamp(8em, calc(100vw / 5), 15em); /* レスポンシブな幅 */
  max-width: 200px; /* 最大幅 */
  display: block; /* img をブロック要素にする */
  margin: 0 auto; /* 左右中央揃え */
}

.footer-text {
  font-size: clamp(0.4em, calc(100vw / 50), 1em); /* レスポンシブなフォントサイズ */
  margin: 0; /* 余白をリセット */
  padding: 10px; /* 内側の余白 */
}


.logo {
  width: 70%;
  max-width: 60vw;
  min-width: 70%;
  height: 70%;
  max-width: 60vw;
  margin-top: 50px;
    filter:drop-shadow(10px 10px 10px #145bb8);
}

.wrapper {
  width: 94%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-grow: 1; /* ★ これが重要：コンテンツ領域を伸ばす */
}

.main {
  width: calc(100% - 280px);
}

.sidebar {
  font-family: "DotGothic16", sans-serif;
  width: 280px;
  position: sticky;
  top: 0;
  right: 0;
  height: 100vh;
  background-color: #ffffff;
  margin-left: 10px;
  padding-top: 40px;
  transition: transform 0.3s ease-in-out;
  transform: translateX(0);
  z-index: 100;
  overflow-y: auto;
  border-left: 1px solid #ccc;
  border-right: 1px solid #ccc;
  box-shadow: 6px 6px 10px 0px rgba(158, 170, 195, 0.6);
}

.sidebar.hidden {
  transform: translateX(100%);
}

/* .sidebar h2 {
  margin-left: 20px;
} */

.sidebar ul {
  padding: 20px;
  margin: 0;
  list-style: none;

}

.sidebar ul li {
  padding: 0;
  margin-bottom: 10px;
}

.sidebar ul li a {
  color: #333;
  text-decoration: none;
  display: block;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding-left: 10px;
}

.sidebar ul li a:hover {
  color: #FFFFFF;
}

.widget + .widget {
  margin-top: 20px;
}

.widget--sticky {
  position: sticky;
  top: 20px;
}

.sidebutton {
  font-size: 1.2em;
  font-weight: 700;
  color: #333;
  border: none;
  background-color: transparent;
  border-bottom: 1px solid #ccc;
  text-decoration: none;
  width: 95%;
  height: auto;
  text-align: left;
  padding: 0;
  margin: 0px 10px;
  line-height: 30px;
  z-index: 1;
}

.sidebutton:hover {
  /* background-color: #007bff; */
  background-image: linear-gradient(135deg, #2495ff, #007bff);
  transform: scale(1.1);
  box-shadow: 6px 6px 10px 0px #274a9066;
  border-radius: 20px;
}

.serif-container {
  margin: auto;
  padding: 0px;
  /* border: 1px solid #ccc; */
}

.title {
  text-align: center;
  /* background-image: url(img/pattern.webp); */
  /* background-color: #007bff; */
  background-image: linear-gradient(135deg, #2495ff, #007bff);
  padding-bottom: 30px;
  border-radius: 20px;
  /* 装飾周り */
  box-shadow:
    6px 6px 10px 0px #274a9066,
    -6px -6px 10px 0px #fdfeff,
    inset 2px 2px 1px #ccf6ff,
    inset -2px -2px 1px #63c3ff;
  margin: 10px;
}

.title h1 {
  font-size: clamp(1em, calc(100vw / 12), 3em);
  margin: 0px 20px;
  padding-top: 10px;
}

.title p {
  font-size: clamp(0.1em, calc(100vw / 35), 1em);
  font-family: "DotGothic16", sans-serif;
  color: #ffffff;
}

.playlist {
  font-size: clamp(0.8em, calc(30vw / 20), 1em);
  font-weight: 900;
  color: #3c3c3c;
  border: none;
  background-color: #ffffff;
  padding: 10px 10px;
  border-radius: 100vh;
  margin: 0.5em;
  box-shadow: 6px 6px 10px 0px #274a9066;
}

.playlist:hover {
  background-color: #b5e9ff;
  transform: scale(1.1);
}

.part-number-container,
.part-number-container-vega {
  text-align: center;
  margin: auto;
  margin: 10px;
  margin-bottom: 10px;
  margin-top: 10px;
  padding: 0.8em;
  /* background-color: #5bc8ff; */
  background-image: linear-gradient(135deg, #5bc8ff, #2fcbff);
  box-shadow:
    6px 6px 10px 0px #274a9066,
    -6px -6px 10px 0px #fdfeff,
    inset 2px 2px 1px #dffcff,
    inset -2px -2px 1px #1f93db;
  /* border-top: 2px solid #d1fff3;
  border-left: 2px solid #d1fff3;
  border-bottom: 2px solid #aee4ff;
  border-right: 2px solid #aee4ff; */
  border-radius: 20px;
}

.part-number-container-vega {
  /* background-color: #ff65b7; */
  background-image: linear-gradient(135deg, #ff7be2, #ff65b7);
  box-shadow:
    6px 6px 10px 0px #274a9066,
    inset 2px 2px 1px #ffb3da,
    inset -2px -2px 1px #ad1262;
}

.part-number-image img {
  text-align: center;
  height: clamp(1em, calc(100vw / 15), 3em);
  width: auto;
  margin-left: 20px;
  filter: drop-shadow(5px 5px 5px #2f87cf);
}

.part-number-container-vega img {
  filter: drop-shadow(5px 5px 5px #92348f);
}

.part-number-image img:hover {
  transform: scale(1.1);
}

.part-number-text {
  color: #ffffff;
  font-size: clamp(0.5em, calc(100vw / 15), 1em);
  font-weight: bold;
  padding-top: 10px;
}

.partLink {
  /* background-color: #007bff; */
  background-image: linear-gradient(135deg, #2495ff, #007bff);
  padding: 20px;
  margin: 10px;
  border-radius: 20px;
  box-shadow:
    6px 6px 10px 0px #274a9066,
    -6px -6px 10px 0px #fdfeff,
    inset 2px 2px 1px #ccf6ff,
    inset -2px -2px 1px #63c3ff;
}

.partLink img {
  display: flex;
  margin: auto;
  width: 70%;
}

.multi-serif {
  background-color: #ffffff;
  margin-bottom: 0px;
  padding: 10px;
  /* border: 1px solid #ddd; */
  text-align: right;
  box-shadow: 6px 6px 10px 0px #274a9066;
  border-radius: 10px;
  margin: 10px;
}

.multi-serif:hover {
  transform: scale(1.025);
  z-index: 100;
}

.multi-serif-item {
  display: grid;
  grid-template-columns: clamp(60px, calc(60px + (90 - 60) * ((100vw - 600px) / (1200 - 600))), 90px) 1fr;
  grid-template-rows: auto;
  grid-template-areas: "icon dialogue";
  align-items: flex-start;
  margin-bottom: clamp(0.5em, calc(30vw / 20), 1em);
  position: relative;
}

.multi-serif-item:last-child {
  margin-bottom: 10px;
}

.icon {
  image-rendering: pixelated;
  background-color: #dbebc4;
  width: clamp(50px, calc(50px + (70 - 50) * ((100vw - 600px) / (1200 - 600))), 70px);
  height: clamp(50px, calc(50px + (70 - 50) * ((100vw - 600px) / (1200 - 600))), 70px);
  border-radius: 50%;
  object-fit: cover;
  grid-area: icon;
  margin-bottom: 0;
}

.speaker {
  font-size: clamp(0.8em, calc(30vw / 20), 1.2em);
  font-family: "DotGothic16", sans-serif;
  color: #ffffff;
  background-color: #292929;
  font-weight: bold;
  padding: 0px 5px;
  z-index: 10;
  position: absolute;
  top: -0.1em;
  left: 6em;
  display: inline-block;
  margin: 0;
}

.dialogue {
  font-size: clamp(1.2em, calc(50vw / 10), 1.2em);
  font-family: "DotGothic16", sans-serif;
  background-color: #292929;
  box-shadow:
    0em 0.3em 0 #ffffff, 0em -0.3em 0 #ffffff,
      0.3em 0em 0 #ffffff, -0.3em 0em 0 #ffffff,
    0.2em 0.2em 0 #ffffff, -0.2em -0.2em 0 #ffffff,
      0.2em -0.2em 0 #ffffff, -0.2em 0.2em 0 #ffffff,
    0.6em 0.6em 0 #292929, -0.6em -0.6em 0 #292929,
      0.6em -0.6em 0 #292929, -0.6em 0.6em 0 #292929;
  padding: 1.25em 16px 12px;
  margin: 0.5em 0.5em 0em 0em;
  border-radius: 0px;
  color: #ffffff;
  white-space: pre-wrap;
  grid-area: dialogue;
  z-index: 1;
  position: relative;
  line-height: 2em;
  text-align: left;
}

.Link {
  font-size: clamp(0.8em, calc(30vw / 10), 1em);
  color: #777777;
  text-decoration: none;
  display: inline-block;
  text-align: right;
  margin: 0px 1em;
}

.Link:hover {
  text-decoration: underline;
  transform: scale(1.1);
}

.for-responsive {
  margin-bottom: 5px;
}

.multi-serif .source {
  text-align: center;
}

/* ハンバーガーメニュー */
#hamburger {
  display: none;
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 110;
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 30%;
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 5px 0;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

#hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

#hamburger.open span:nth-child(2) {
  opacity: 0;
}

#hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* オーバーレイ */
#overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 90;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

#overlay.show {
  display: block;
  opacity: 1;
}

.fixed-div {
  position: fixed;
  bottom: 32px;
  right: 48px;
  z-index: 101;
  image-rendering: pixelated;
}

.fixed-div img {
  width: 100px;
}

.momo-sidebar {
  display: none;
}

/* レスポンシブ対応 (1000px以下) */
@media screen and (max-width: 1000px) {
  .fixed-div {
    display: none;
    z-index: 0;
    width: 0px;
  }

  .fixed-div img {
    /* visibility: hidden; */
    display: none;
    width: 0px;
    z-index: 0;
  }

  .momo-sidebar {
    display:inline;
    height: 0px;
    position: absolute;
    top: -60px;
    left: 40px;
    }

  .momo-sidebar img {
    image-rendering: pixelated;
    width: 60px;
  }

  .main {
    width: 100%;
  }

  .wrapper {
    flex-direction: column;
    width: 100%;
  }

  .dialogue {
    font-size: clamp(0.7em, calc(30vw / 15), 1.8em);
    padding: 1em 0.5em 0.7em 0.7em;
  }

  .sidebar {
    width: 50%;
    transform: translateX(100%);
    visibility: visible;
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    padding-top: 60px;
    box-shadow: 6px 6px 10px 0px rgba(0, 0, 0, 0.4);
  }

  .sidebar.hidden {
    transform: translateX(100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  #hamburger {
    display: block;
  }

  #overlay {
    display: none;
  }

  #overlay.show {
    display: block;
  }

  footer {
    z-index: 10;
  }
}
