.container {
  display: flex;
  max-width: 1200px;
  margin: 0px auto;
  padding: 0px;
  text-align: center;
  background-color: #fff;
}

.container1-1 {
  max-width: 1200px;
  min-height: 600px;
  margin: 10px auto;
  padding: 10px;
  text-align: center;
  background-color: #fff;
  border-radius: 10px;
}

.container2 {
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px;
  text-align: left;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.box {
  display: flex;
  width: 100%;
  /* 各ボックスの幅を指定 */
  height: 100%;
  /* 各ボックスの高さを指定 */
  background-color: rgb(255, 255, 255);
  /* 背景色を指定 */
  margin-right: 5px;
  /* ボックス間の隙間を指定 */
  margin: 0 auto;
  /* 左右のマージンを自動で設定して中央に配置 */
  text-align: center;
  /* 内容を中央揃えにする */
  justify-content: center;
  /* 水平方向の中央に配置 */
  align-items: center;
  /* 垂直方向の中央に配置 */
}

.name-container {
  display: flex;
  align-items: center;
}

.label {
  width: 150px;
  font-weight: bold;
}

.name {
  width: auto;
}

.responsive-iframe-container {
  width: 100%;
  max-width: 800px;
  /* 最大幅を100%に設定 */
  min-width: 300px;
  /* 最小幅を300pxに設定 */
  margin: 0 auto;
  /* 左右のマージンを自動で設定して中央に配置 */
  text-align: left;
  /* 内容を中央揃えにする */
}

.responsive-iframe-container iframe {
  width: 100%;
  height: auto;
  /* 高さを自動に設定 */
}

.profile-form {
  background-color: #f2f2f2;
  padding: 20px;
  border-radius: 5px;
}

.profile-form label {
  font-weight: bold;
}

.gallry_images {
  min-width: 350px;
  /* イメージの最小幅を350pxに設定 */
  max-width: 100%;
  /* イメージの最大幅を親要素に合わせてオートで拡大 */
  height: auto;
  /* 高さを自動調整してアスペクト比を維持 */
  border-radius: 10px;
}

.images {
  width: 80px;
  /* イメージを50pxに設定 */
  height: auto;
  /* 高さを自動調整してアスペクト比を維持 */
  border-radius: 10px;
}

.pro_images {
  width: 100px;
  /* イメージを50pxに設定 */
  height: auto;
  /* 高さを自動調整してアスペクト比を維持 */
  border-radius: 50px;
}

h1 {
  text-align: center;
  font-size: 2.5rem;
  color: black;
  margin: 20px 0 50px;
}

.gallery {
  margin: 10px 0px;
  text-align: center;
}

.gallery img {
  width: 380px;
  height: 220px;
  object-fit: cover;
  padding: 10px;
  border-radius: 5px;
  filter: grayscale(100%);
  transition: 0.7s;
}

.gallery img:hover {
  filter: grayscale(0);
  transform: scale(1.08);
}

.grid-gallery {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-auto-rows: 250px;
  grid-auto-flow: dense;
  grid-gap: 20px;
}

.grid-gallery .grid-item {
  position: relative;
  background-color: #efefef;
  overflow: hidden;
  border-radius: 8px;
}

.grid-gallery .grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.grid-gallery .grid-item:hover img {
  transform: scale(1.1);
}

.grid-gallery .grid-item a {
  cursor: zoom-in;
}

.grid-gallery .grid-item:nth-child(3n - 2) {
  grid-column: span 2;
  grid-row: span 2;
}

/* Let's make it responsive */
@media (max-width: 768px) {
  .grid-gallery {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: 250px;
  }

  .grid-gallery .grid-item:nth-child(3n - 2) {
    grid-column: unset;
    grid-row: unset;
  }
}

.toggle-button-1 {
  display: inline-block;
  position: relative;
  width: 30px;
  height: 15px;
  border-radius: 15px;
  background-color: #dddddd;
  cursor: pointer;
  transition: background-color 0.4s;
}

.toggle-button-1:has(:checked) {
  background-color: #546ec4;
}

.toggle-button-1::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: 0 0 5px rgb(0 0 0 / 20%);
  background-color: rgb(231, 231, 231);
  content: "";
  transition: left 0.3s;
}

.toggle-button-1:has(:checked)::after {
  left: 15px;
}

.toggle-button-1 input {
  display: none;
}

hr.style14 {
  border: 0;
  height: 1px;
  background-image: -webkit-linear-gradient(left, #f0f0f0, #8c8b8b, #f0f0f0);
  background-image: -moz-linear-gradient(left, #f0f0f0, #8c8b8b, #f0f0f0);
  background-image: -ms-linear-gradient(left, #f0f0f0, #8c8b8b, #f0f0f0);
  background-image: -o-linear-gradient(left, #f0f0f0, #8c8b8b, #f0f0f0);
}

.loader {
  color: #ffffff;
  font-size: 20px;
  margin: 100px auto;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  position: relative;
  text-indent: -9999em;
  -webkit-animation: load4 1.3s infinite linear;
  animation: load4 1.3s infinite linear;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
}

@-webkit-keyframes load4 {
  0%,
  100% {
    box-shadow: 0 -3em 0 0.2em, 2em -2em 0 0em, 3em 0 0 -1em, 2em 2em 0 -1em,
      0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 0;
  }

  12.5% {
    box-shadow: 0 -3em 0 0, 2em -2em 0 0.2em, 3em 0 0 0, 2em 2em 0 -1em,
      0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 -1em;
  }

  25% {
    box-shadow: 0 -3em 0 -0.5em, 2em -2em 0 0, 3em 0 0 0.2em, 2em 2em 0 0,
      0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 -1em;
  }

  37.5% {
    box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0em 0 0, 2em 2em 0 0.2em,
      0 3em 0 0em, -2em 2em 0 -1em, -3em 0em 0 -1em, -2em -2em 0 -1em;
  }

  50% {
    box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 0em,
      0 3em 0 0.2em, -2em 2em 0 0, -3em 0em 0 -1em, -2em -2em 0 -1em;
  }

  62.5% {
    box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 -1em,
      0 3em 0 0, -2em 2em 0 0.2em, -3em 0 0 0, -2em -2em 0 -1em;
  }

  75% {
    box-shadow: 0em -3em 0 -1em, 2em -2em 0 -1em, 3em 0em 0 -1em, 2em 2em 0 -1em,
      0 3em 0 -1em, -2em 2em 0 0, -3em 0em 0 0.2em, -2em -2em 0 0;
  }

  87.5% {
    box-shadow: 0em -3em 0 0, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 -1em,
      0 3em 0 -1em, -2em 2em 0 0, -3em 0em 0 0, -2em -2em 0 0.2em;
  }
}

@keyframes load4 {
  0%,
  100% {
    box-shadow: 0 -3em 0 0.2em, 2em -2em 0 0em, 3em 0 0 -1em, 2em 2em 0 -1em,
      0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 0;
  }

  12.5% {
    box-shadow: 0 -3em 0 0, 2em -2em 0 0.2em, 3em 0 0 0, 2em 2em 0 -1em,
      0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 -1em;
  }

  25% {
    box-shadow: 0 -3em 0 -0.5em, 2em -2em 0 0, 3em 0 0 0.2em, 2em 2em 0 0,
      0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 -1em;
  }

  37.5% {
    box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0em 0 0, 2em 2em 0 0.2em,
      0 3em 0 0em, -2em 2em 0 -1em, -3em 0em 0 -1em, -2em -2em 0 -1em;
  }

  50% {
    box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 0em,
      0 3em 0 0.2em, -2em 2em 0 0, -3em 0em 0 -1em, -2em -2em 0 -1em;
  }

  62.5% {
    box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 -1em,
      0 3em 0 0, -2em 2em 0 0.2em, -3em 0 0 0, -2em -2em 0 -1em;
  }

  75% {
    box-shadow: 0em -3em 0 -1em, 2em -2em 0 -1em, 3em 0em 0 -1em, 2em 2em 0 -1em,
      0 3em 0 -1em, -2em 2em 0 0, -3em 0em 0 0.2em, -2em -2em 0 0;
  }

  87.5% {
    box-shadow: 0em -3em 0 0, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 -1em,
      0 3em 0 -1em, -2em 2em 0 0, -3em 0em 0 0, -2em -2em 0 0.2em;
  }
}

.overlay {
  /* 画面全体を覆うように設定 */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* 半透明のグレー */
  background-color: rgba(0, 0, 0, 0.5);
  /* 表示を中央に配置 */
  display: flex;
  justify-content: center;
  align-items: center;
  /* z-indexを設定してローディングを背面に配置 */
  z-index: 9999;
  /* ローディングより大きな値 */
}

.loader {
  /* ローディング要素のスタイル */
  color: white;
  font-size: 24px;
}

/* プルダウンメニューのスタイル */
select {
  width: 200px;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
  font-size: 16px;
  margin-bottom: 20px;
}

label {
  color: rgba(0, 0, 0, 0.89);
  font-size: 14px;
  font-weight: bold;
}

.sample {
  margin-top: 4px;
  width: 100%;
}

.sample::part(button) {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  color: rgba(0, 0, 0, 0.89);
  display: flex;
  font-weight: bold;
  margin-bottom: 8px;
  padding: 8px 4px 8px 8px;
  width: 100%;
}

.sample::part(button):hover {
  background-color: #f2f2f2;
  cursor: pointer;
}

.sample::part(selected-value) {
  flex-grow: 1;
  text-align: left;
}

.sample::part(listbox) {
  border: none;
  height: 120px;
  margin-top: 8px;
  overflow: auto;
  padding: 8px 4px;
}

.samplelabel {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.36);
  margin: 0 4px;
}

.samplelabel:nth-child(n + 2) {
  margin-top: 16px;
}

.sampleinner {
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(3, 1fr);
}

option {
  padding: 4px 4px;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.89);
}

.sample option:hover {
  background-color: #eaf3fb;
  border-radius: 4px;
  cursor: pointer;
}

.back-to-top {
  display: none; /* 初期状態は非表示 */
  position: fixed;
  right: 20px;
  bottom: 50px;
  width: 50px;
  height: 50px;
  background-color: rgba(160, 155, 185, 0.4);
  color: #ffffff;
  text-decoration: none;
  transition: background-color 0.3s ease, opacity 0.3s ease,
    transform 0.5s ease-in-out;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
}

/* JSが inline スタイルで display: block を設定した場合、強制的に flex に変更 */
.back-to-top[style*="block"] {
  display: flex !important;
}

.back-to-top:hover {
  background-color: rgba(105, 105, 105, 0.5);
  transform: scale(1.1);
}

.back-to-top img {
  max-width: 100%;
  max-height: 100%;
}
