.header-5 {
  box-sizing: border-box;
  width: 100%;
}

.header-inner {
  display: flex;
  align-items: center;
  max-width: 1024px;
  height: 60px;
  padding: 0 0.8em;
  margin: 0 auto;
  font-size: 1.2em;
}

.header-nav-list {
  display: inline-block;
}

.header-nav-item {
  float: left;
  padding: 12px;
  font-size: 14px;
  font-weight: bold;
  color: #ccc;
  text-align: center;
  list-style: none;
}

.header-nav-item a {
  text-decoration: none;
}

.header-ham {
  display: none;
}

.menu2 {
  width: 20px;
  height: 3px;
  margin: 4px 0;
  margin-right: 0;
  background-color: #333;
}

.select {
  color: #444;
}

.header-nav-item:hover {
  background: #eee;
}

.logo img {
  width: 150px;
}

@media screen and (max-width: 480px) {
  .header-nav-list {
    display: none;
    flex-direction: column;
    background: #fff;
    width: 100%;
    padding: 20px;
    position: absolute;
    top: 60px;  /* header の高さに応じて設定 */
    left: 0;
    z-index: 1000;
  }
  
  .header-nav-list.open {
    display: flex;
  }
  
  .header-nav-item {
    float: none;
    margin-bottom: 10px;
    text-align: center;
  }

  .header-nav {
    margin: 0 0 0 auto;
  }

  .header-ham {
    display: block;
  }
}

.alert-red-line{
  position: relative;
  padding: 0.8em 2.8em;
  background: #ffebee;
  border-left: 5px solid #f44336;
}
.alert-red-line > * {
  margin: 0;
}
.alert-red-line::before {
  position: absolute;
  inset: 10px 0 0 15px;
  content: "\f06a";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 1.4em;
  color: #f44336;
  width: 30px;
  height: 30px;
}
iframe {
  display: block;
  margin: 10px auto;
  max-width: 90%;
  height: auto;
  aspect-ratio: 19 / 9;
  overflow: hidden;
}
.iframe-wrapper {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: flex-start;
  margin: 20px auto;
  max-width: 800px;  /* この幅に収まるようにする */
  padding: 10px;
}

.iframe-wrapper iframe {
  flex: 1;
  overflow: hidden;
  max-width: 57%;
  height: auto;
  aspect-ratio: 21 / 9;
}

/* スマホでは縦に並べる */
@media (max-width: 767px) {
  .iframe-wrapper {
    flex-direction: column;
    align-items: center;
    max-width: 500px;
  }
  .iframe-wrapper iframe {
    max-width: 100%;
    aspect-ratio: 17 / 9;
  }
  .header-wrap {
    left: auto;               /* ずらし無効 */
    justify-content: flex-end; /* 右寄せ */
  }
}
.mama {
  width: 80%; /* ブロックの幅を指定 */
  margin: 0 auto; /* 左右の余白を自動調整 */
}

.mamas {
  width: 15%;
  margin: 0 auto;
}
.header-wrap {
  display: flex;
  position: relative;
  left: 10vh;
  top: -4px;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.header-nav {
  display: flex;
  align-items: center;
  margin: 0 auto;
  list-style: none;
}

.header-avatar {
  width:50px;
  cursor: pointer;
  border-radius: 1.5em;
}

.header-dropdown {
  top: 60px;
  right: 0;
  z-index: 9999999;
  width: 200px;
  padding: 0.2em 0;
  font-size: 14px;
  background: #fff;
  border-radius: 0.5em;
  box-shadow: 0 0 9px 2px #e0e0e0;
}

.btm-border {
  padding-bottom: 0.2em;
  margin-bottom: 0.2em;
  border-bottom: solid 0.1em #eee;
}

.one-line {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-dropdown .dropdown-wrap {
  padding: 0.8em 1.4em;
  cursor: pointer;
}

.dropdown-wrap:hover {
  background: #eee;
}

.header-dropdown a {
  display: block;
  text-decoration: none;
}
.header-dropdown {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none; /* クリック無効化（非表示時） */
}

.header-dropdown.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto; /* クリック有効化（表示時） */
}

.login-button {
  display: inline-block;
  padding: 0.4em 1.6em;
  font-size: 0.8em;
  color: #ccccce;
  text-decoration: none;
  user-select: none;
  border: 1px #c4e4ff solid;
  border-radius: 3px;
  transition: 0.4s ease;
}

.button-1:hover {
  color: #fff;
}

.marker-anim {
  position: relative;
  background: none;
  z-index: 1;
}
.marker-anim::before {
  content: "";
  position: absolute;
  left: 0;
  width: 0;
  height: 1.6em;
  background: #B8CCE1;
  z-index: -1;
  border-radius: 0.3em;
  animation: marker-draw 1.2s cubic-bezier(.7,.2,.3,1) forwards;
}

.marker-anim:nth-of-type(1)::before {
  animation-delay: 0.1s;
}
.marker-anim:nth-of-type(2)::before {
  animation-delay: 0.7s;
}
.marker-animr {
  position: relative;
  background: none;
  z-index: 1;
}
.marker-animr::before {
  content: "";
  position: absolute;
  left: 0;
  width: 0;
  height: 1.6em;
  background:#e3bee2;
  z-index: -1;
  border-radius: 0.3em;
  animation: marker-draw 1.2s cubic-bezier(.7,.2,.3,1) forwards;
}
.marker-animr:nth-of-type(1)::before {
  animation-delay: 0.1s;
}
.marker-animr:nth-of-type(2)::before {
  animation-delay: 0.7s;
}
@keyframes marker-draw {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.main {
  width: 85%;
  margin: 0;
  padding: 0;
}
.main-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.main-title {
  text-align: center;
  margin: 0 auto;
  padding: 1em;
}

.main-visual {
  background-image: url("../image/main_image.webp");
  background-size: cover;
  background-position: center;
  width: 100vw;
  min-width: 100vw;
  left: 58.2%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-visual-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.main-visual-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #222;
  text-shadow: 0 2px 8px #fff, 0 1px 2px #ccc;
  margin-bottom: 0.5em;
}
.main-visual-subtitle {
  font-size: 1.2em;
  color: #333;
  text-shadow: 0 1px 4px #fff;
}

@media screen and (max-width: 480px) {
  .main-visual {
    height: 200px;
  }
  .main-visual-title {
    font-size: 1.3em;
  }
  .main-visual-subtitle {
    font-size: 0.9em;
  }
}
