html,
body {
  overflow-x: hidden;
}

img,
iframe {
  max-width: 100%;
}

.youtube {
  cursor: pointer;
}

.youtube iframe,
.youtubewrap iframe {
  aspect-ratio: 16 / 9;
  height: auto;
}

.youtube-placeholder {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 480px);
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  border: 3px solid #d8c7a5;
  background: #f8f0dc;
  color: #6f5a35;
  font-weight: 700;
  text-align: center;
}

.aozora-brand-heading {
  box-sizing: border-box;
  display: flex !important;
  align-items: center;
  gap: 14px;
  width: fit-content;
  max-width: calc(100% - 40px);
  margin: 18px auto 26px !important;
  padding: 0 !important;
  line-height: 1.1 !important;
}

.aozora-brand-logo {
  width: 74px;
  height: 74px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(46, 82, 52, 0.18);
}

.aozora-brand-text {
  display: grid;
  gap: 7px;
  text-align: left;
}

.aozora-brand-name {
  color: #1f6f3f;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 0;
}

.aozora-brand-sub {
  color: #5d6f57;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.aozora-header-badge {
  display: none;
}

.aozora-contact-badge {
  box-sizing: border-box;
  display: block;
  width: 173px;
  margin: 14px 0 0;
  padding: 7px 10px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: #f3970e;
  box-shadow: 0 3px 10px rgba(31, 42, 36, 0.22);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0;
  text-align: center;
  transform: rotate(-2deg);
  white-space: nowrap;
}

#keyvisual_wrap {
  position: relative;
}

.aozora-hero-badge {
  display: none;
}

@media screen and (max-width: 640px) {
  #header_wrap,
  #desc_wrap,
  #contents_wrap,
  #article_wrap,
  #guest-wrap {
    max-width: 100%;
  }

  #header_wrap h1 {
    box-sizing: border-box;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  #header_wrap h1.aozora-brand-heading {
    justify-content: center;
    gap: 8px;
    max-width: calc(100% - 20px);
    margin: 32px auto 28px !important;
    padding: 0 !important;
  }

  .aozora-brand-logo {
    width: 58px;
    height: 58px;
  }

  .aozora-brand-name {
    font-size: 30px;
  }

  .aozora-brand-sub {
    font-size: 11px;
    letter-spacing: 0.06em;
  }

  .aozora-header-badge {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    padding: 7px 9px;
    border: 3px solid #fff;
    border-radius: 999px;
    background: #f3970e;
    box-shadow: 0 3px 10px rgba(31, 42, 36, 0.24);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: 0;
    margin-left: 8px;
    text-align: center;
    transform: translateX(18px) rotate(-3deg);
    white-space: nowrap;
  }

  .aozora-contact-badge {
    display: none;
  }

  #tel-time {
    padding: 0 12px;
    line-height: 1.6;
  }

  #head-contact-wrap {
    display: none !important;
    position: static !important;
    width: auto !important;
    max-width: 100%;
    padding: 0 20px 18px;
    text-align: center;
  }

  #head-contact-wrap .contact,
  #head-contact-wrap .contact a {
    position: static !important;
    inset: auto !important;
    float: none;
    display: inline-block;
    width: auto !important;
    max-width: 260px;
    margin: 0 auto !important;
    transform: none !important;
    white-space: normal;
  }

  #keyvisual_wrap img {
    width: 100%;
    height: auto;
  }

  #keyvisual_wrap img.pc {
    display: none !important;
  }

  #keyvisual_wrap img.sp {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .aozora-hero-badge {
    display: none;
  }

  .guest-wrap-check,
  .guest-wrap-content-inner,
  .guest-wrap-table,
  #flow-content {
    box-sizing: border-box;
    width: auto !important;
    max-width: calc(100vw - 28px);
    margin-right: auto;
    margin-left: auto;
  }

  .guest-wrap-check li,
  .guest-wrap-content p,
  .guest-wrap-qa-q,
  .guest-wrap-qa-a {
    overflow-wrap: anywhere;
  }
}
