html {
  scroll-behavior: smooth;
}

.w-layout-hflex {
  flex-direction: row;
  align-items: flex-start;
  display: flex;
}

.w-layout-blockcontainer {
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.w-layout-vflex {
  flex-direction: column;
  align-items: flex-start;
  display: flex;
}

.w-layout-layout {
  grid-row-gap: 20px;
  grid-column-gap: 20px;
  grid-auto-columns: 1fr;
  justify-content: center;
  padding: 20px;
}

.w-layout-cell {
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  display: flex;
}

@media screen and (max-width: 991px) {
  .w-layout-blockcontainer {
    max-width: 728px;
  }
}

@media screen and (max-width: 767px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
  }

  .body {
    font-family: "M PLUS 1p", sans-serif;
  }

  .top {
    height: 400px;
  }

  .second {
    height: 820px !important;
  }

  /* スマホ版でのreviewセクション修正 */
  .div_review {
    width: 100%;
    max-width: 100vw;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
  }

  .div_review::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }

  .quick-stack {
    width: 180px;
    min-width: 180px;
    flex-shrink: 0;
  }

  .text-block-14 {
    width: 100%;
    max-width: 100vw;
    padding: 0 10px;
    box-sizing: border-box;
  }

  .before-after {
    height: 800px !important;
    padding-top: 10px !important;
    padding-bottom: 20px !important;
  }

  .before-after .before-after-container {
    width: 90% !important;
    max-width: 350px !important;
    margin: 10px auto !important;
  }

  .before-after .text-block-14 {
    width: 100% !important;
    max-width: 100vw !important;
    padding: 0 15px !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
  }

  #modal-content {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: calc(100vw - 40px);
    max-width: calc(100vw - 40px);
    padding: 0;
    max-height: 80vh;
    overflow-y: auto;
  }
  #modal-content.show {
    transform: translate(-50%, -50%) scale(1);
  }
  #modal-content p {
    font-size: 12px;
  }

  .text-block-7 {
    font-size: 28px !important;
  }
  .text-block-9 {
    font-size: 28px !important;
  }
  .text-block-10 {
    font-size: 65px !important;
  }

  .slide-menu {
    right: -80vw;
    width: 80vw;
    max-width: 80vw;
    padding: 32px 8px 24px 8px;
    box-sizing: border-box;
  }

  .slide-menu > ul {
    padding-top: 8px !important;
    margin: 0 !important;
  }
  .slide-menu > ul > li {
    margin-bottom: 2px !important;
    padding: 0 !important;
    list-style: none !important;
  }
  .slide-menu a {
    display: block;
    padding: 0 !important;
    margin: 0 !important;
    margin-bottom: 2px !important;
  }
  .slide-menu .menu-en {
    margin-bottom: 0 !important;
    line-height: 1.05 !important;
    display: block;
  }
  .slide-menu .menu-ja {
    margin-top: 0 !important;
    margin-bottom: 10 !important;
    line-height: 1.05 !important;
    display: block;
  }
}

.text-block {
  color: #d52b2b;
  text-align: center;
  background-color: #149268;
  margin-top: 0;
  padding-top: 20px;
  font-size: 20px;
  font-style: normal;
  display: block;
}

.body {
  display: block;
  font-family: "M PLUS 1p", sans-serif;
}

.top {
  background-image: linear-gradient(#00000052, #00000052), url('../img/top_back.jpg');
  background-position: 0 0, 50% 100%;
  background-size: auto, cover;
  background-attachment: scroll, scroll;
  height: 800px;
}

.text-block-2 {
  transform-origin: 100% 100%;
  color: #fff;
  text-align: left;
  -webkit-text-stroke-width: 0px;
  -webkit-text-stroke-color: #3d3d3d;
  text-shadow: 3px 3px 3px #0003;
  text-overflow: clip;
  justify-content: center;
  align-items: flex-end;
  width: 800px;
  min-width: 300px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 300px;
  font-size: 40px;
  line-height: 40px;
  text-decoration: none;
  display: block;
}

@media (max-width: 768px) {
  .text-block-2 {
    margin-left: 10px;
  }
}

.navbar {
  grid-column-gap: 16px;
  grid-row-gap: 16px;
  color: #ffffff3d;
  text-align: left;
  -webkit-text-fill-color: inherit;
  background-color: #ffffff45;
  background-clip: border-box;
  grid-template-rows: auto auto;
  grid-template-columns: 1fr 1fr;
  grid-auto-columns: 1fr;
  height: 50px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 3px;
  padding-bottom: 3px;
  text-decoration: none;
  display: block;
  overflow: visible;
}

.container {
  grid-column-gap: 16px;
  grid-row-gap: 16px;
  color: #444;
  object-fit: fill;
  grid-template-rows: auto auto;
  grid-template-columns: 1fr 1fr;
  grid-auto-columns: 1fr;
  height: 45px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.brand {
  box-sizing: border-box;
  grid-column-gap: 16px;
  grid-row-gap: 16px;
  aspect-ratio: 1;
  pointer-events: auto;
  -webkit-text-fill-color: inherit;
  object-fit: fill;
  object-position: 50% 50%;
  background-image: url('../images/houman_logo.png');
  background-position: 50%;
  background-repeat: repeat;
  background-size: cover;
  background-attachment: scroll;
  background-clip: border-box;
  grid-template-rows: auto auto;
  grid-template-columns: 1fr 1fr;
  grid-auto-columns: 1fr;
  width: auto;
  height: auto;
  margin: 2px auto;
  padding-bottom: 0;
  display: block;
  position: static;
  inset: 0% 0% auto;
  overflow: visible;
}

.icon {
  background-image: url('../images/hmb_menu.png');
  background-position: 50%;
  background-size: auto;
}

.second {
  background-image: url('../img/content_back.jpg');
  background-position: 50%;
  background-size: auto;
  background-attachment: scroll;
  border-radius: 30px 30px 8px 0;
  height: 950px;
  margin-top: -30px;
  box-shadow: 0 0 10px 5px #7773;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding-top: -80px;
}

.second .w-layout-blockcontainer {
  max-width: 100%;
  box-sizing: border-box;
}

.second .w-layout-blockcontainer .salary-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
  margin-bottom: 100px;
  margin-top: -50px;
  padding: 0;
}

.second .w-layout-hflex {
  flex-direction: row;
  align-items: flex-end;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 0;
  height: 200px;
  overflow: hidden;
}

.text-block-3 {
  color: #fff;
  text-shadow: 0 0 5px #47474733;
  font-family: Times New Roman, TimesNewRoman, Times, Baskerville, Georgia, serif;
  font-size: 250px;
  line-height: 0;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 50px;
  padding: 0;
  
}

.text-block-4 {
  color: #fff;
  text-shadow: 0 0 5px #47474733;
  border: 1px #fff;
  margin-top: 0px;
  line-height: 50px;
  font-size: 50px;
  font-weight: 700;
}

.text-block-5 {
  color: #fff;
  text-align: center;
  text-shadow: 0 0 5px #0003;
  margin-top: 0px;
  line-height: 1.2;
  font-size: 40px;
  font-weight: 700;
}

.bold-text {
  text-shadow: 3px 3px 3px #0003;
}

.text-block-6 {
  color: #fff;
  text-align: center;
  text-shadow: 0 0 5px #0003;
  margin-top: 0px;
  line-height: 1.2;
  font-size: 80px;
  font-weight: 700;
}

.text-block-7 {
  color: #fff;
  text-shadow: 0 0 5px #0003;
  margin-top: 50px;
  line-height: 1.2;
  font-size: 40px;
  font-weight: 700;
  padding-left: 10px;
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.text-block-8 {
  color: #fff;
  text-align: center;
  text-shadow: 0 0 5px #0003;
  margin-top: 0px;
  line-height: 1.2;
  font-size: 80px;
  font-weight: 700;
}

.text-block-9 {
  color: #fff;
  text-shadow: 0 0 5px #0003;
  margin-top: 30px;
  line-height: 1.2;
  font-size: 40px;
  font-weight: 700;
  padding-left: 10px;
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.text-block-10 {
  color: #fff;
  text-align: center;
  text-shadow: 0 0 5px #47474733;
  margin-top: 10px;
  line-height: 65px;
  font-size: 70px;
  font-weight: 700;
}

.ranking {
  object-fit: fill;
  background-image: url('../img/section_back.jpg');
  background-position: 50% 0;
  background-size: cover;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  height: 300px;
  margin-top: -30px;
  margin-bottom: 0;
  padding-bottom: 0;
  overflow: visible;
  box-shadow: 0 0 10px 5px #7773;
}

.ranking.point {
  box-sizing: border-box;
  aspect-ratio: auto;
  pointer-events: auto;
  background-repeat: repeat;
  background-size: cover;
  background-attachment: scroll;
  height: 380px;
  margin: -30px auto auto;
  position: static;
  overflow: visible;
}

.text-block-11 {
  color: #ff66c4;
  text-align: center;
  letter-spacing: 8px;
  text-shadow: 0 0 5px #47474733;
  mix-blend-mode: normal;
  justify-content: center;
  align-items: center;
  margin-top: auto;
  margin-left: auto;
  margin-right: auto;
  font-family: Times New Roman, TimesNewRoman, Times, Baskerville, Georgia, serif;
  font-size: 40px;
  font-weight: 400;
  display: block;
  position: static;
}

.text-block-12 {
  color: #474747;
  text-align: center;
  margin-top: 6px;
  font-weight: 700;
}

.flex-block-2 {
  justify-content: center;
  align-items: center;
  margin-top: 0;
  padding-top: 30px;
}

.image {
  text-align: center;
  flex: 0 auto;
}

.flex-block-3 {
  grid-column-gap: 34px;
  grid-row-gap: 34px;
  text-align: center;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}

.slide {
  float: none;
  clear: none;
  text-align: center;
  vertical-align: baseline;
  object-fit: fill;
  text-decoration: none;
  position: static;
  inset: 0% auto auto 0%;
  overflow: visible;
}

.slide-nav {
  background-image: url('https://d3e54v103j8qbb.cloudfront.net/img/background-image.svg');
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

.mask {
  text-align: center;
  width: 400px;
  height: 100px;
  margin-left: auto;
  margin-right: auto;
  position: static;
  overflow: hidden;
}

.image-2 {
  overflow: visible;
}

.slider {
  -webkit-text-fill-color: inherit;
  background-color: #fff0;
  background-clip: border-box;
  width: 400px;
  height: 100px;
  margin-left: auto;
  margin-right: auto;
  position: static;
  inset: 0% auto auto 0%;
}

.image-3 {
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.slide-2 {
  text-align: center;
  position: relative;
}

.slide-nav-2, .slide-3 {
  text-align: center;
}

.slider-2 {
  background-color: #fff0;
}

.div-block {
  grid-column-gap: 15px;
  grid-row-gap: 15px;
  justify-content: flex-start;
  align-items: center;
  width: 800px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  overflow: hidden;
}

.scroll-content {
  display: flex;
  gap: 15px;
  align-items: center;
  white-space: nowrap;
  transition: transform 0.5s ease-in-out;
}

.image-4 {
  overflow: clip;
}

.div_review {
  grid-column-gap: 15px;
  grid-row-gap: 15px;
  text-align: left;
  width: 800px;
  height: auto;
  margin: 20px auto auto;
  padding: 10px;
  display: flex;
  overflow: scroll;
}

.image-5 {
  border-radius: 15px;
  flex: 0 auto;
  box-shadow: 0 0 5px 5px #ccc9c933;
}

.poinmt {
  background-image: url('../img/section_back.jpg');
  background-position: 0 0;
  background-size: cover;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  height: 420px;
  margin-bottom: auto;
  padding-bottom: 0;
  box-shadow: 0 0 10px 5px #7773;
}

.review {
  background-image: url('../img/section_back.jpg');
  background-position: 0 0;
  background-size: cover;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  height: 450px;
  margin-top: -20px;
  box-shadow: 0 0 10px 5px #7773;
}

.text-block-14 {
  box-sizing: border-box;
  text-align: center;
  width: 800px;
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
  font-size: 14px;
  font-family: "M PLUS 1p", sans-serif;
  line-height: 1.6;
  color: #333;
  position: static;
  inset: 0% auto auto 0%;
  overflow: visible;
}

.before-after .text-block-14 {
  text-align: center;
  width: 800px;
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
  font-size: 14px;
  font-family: "M PLUS 1p", sans-serif;
  line-height: 1.6;
  color: #333;
  padding: 0 20px;
  box-sizing: border-box;
}

.image-7 {
  flex: 0 auto;
  min-width: 150px;
  margin-left: auto;
  margin-right: auto;
  overflow: visible;
}

.quick-stack {
  grid-column-gap: 0px;
  grid-row-gap: 0px;
  background-image: url('../img/review_back.png');
  background-position: 0 0;
  background-size: auto;
  border-radius: 15px;
  width: 200px;
  min-width: 200px;
  margin-left: auto;
  margin-right: auto;
  padding: 10px 5px;
  box-shadow: 0 0 5px 5px #ccc9c933;
}

.text-block-15 {
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
  font-family: "M PLUS 1p", sans-serif;
  font-size: 13px;
  font-weight: 500;
}

.cell {
  justify-content: center;
  align-items: center;
}

.text-block-16 {
  margin-left: auto;
  margin-right: auto;
  font-size: 13px;
  font-weight: 500;
}
.div-block.carousel {
  width: 800px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  overflow: hidden;
  /* 他で変えたくないならここだけ個別指定 */
}

.scroll-content.carousel-content {
  display: flex;
  gap: 15px;
  align-items: center;
  white-space: nowrap;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}
.carousel-mask {
  position: relative;
  width: 800px;
  margin: 0 auto;
  overflow: hidden;
  height: 50px;
}

.carousel-fade-left,
.carousel-fade-right {
  position: absolute;
  top: 0;
  width: 60px;           /* フェードの幅は好みで調整OK */
  height: 100%;
  z-index: 2;
  pointer-events: none;  /* クリックを妨げない */
}

.carousel-fade-left {
  left: 0;
  background: linear-gradient(to right, rgba(255,255,255,0.8), rgba(255,255,255,0));
}

.carousel-fade-right {
  right: 0;
  background: linear-gradient(to left, rgba(255,255,255,0.8), rgba(255,255,255,0));
}

.scroll-content.carousel-content {
  display: flex;
  gap: 15px;
  align-items: center;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}

/* --- ポップアップモーダル --- */
#modal-overlay {
  position: fixed;
  inset: 0;
  backdrop-filter: blur(5px);
  z-index: 1000;
}
#modal-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: #fff;
  border-radius: 15px;
  padding: 0;
  max-width: 500px;
  width: 90vw;
  z-index: 1001;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-height: 80vh;
  overflow-y: auto;
}
#modal-content.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
#modal-content img {
  width: 100%;
  height: auto;
  border-radius: 15px 15px 0 0;
  margin-bottom: 0;
}
#modal-content p {
  font-size: 13px;
  line-height: 1.5;
  margin: 0 10px 10px 10px;
}

@media screen and (max-width: 479px) {
  #modal-content {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: calc(100vw - 40px);
    max-width: calc(100vw - 40px);
    padding: 0;
    max-height: 80vh;
    overflow-y: auto;
  }
  #modal-content.show {
    transform: translate(-50%, -50%) scale(1);
  }
  #modal-content p {
    font-size: 12px;
  }

  /* スマホ版でのBefore/Afterセクション修正 */
  .before-after {
    height: 750px !important;
    padding-top: 10px !important;
    padding-bottom: 20px !important;
  }

  .before-after .before-after-container {
    width: 90% !important;
    max-width: 350px !important;
    margin: 10px auto !important;
  }

  .before-after .text-block-14 {
    width: 100% !important;
    max-width: 100vw !important;
    padding: 0 15px !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
  }
}
.hidden {
  display: none;
}

.staff {
  background-image: url('../img/section_back.jpg');
  background-position: 0 0;
  background-size: cover;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  margin-top: -20px;
  box-shadow: 0 0 10px 5px #7773;
}

.staff-card {
  grid-column-gap: 0px;
  grid-row-gap: 0px;
  background-color: #fff;
  border-radius: 15px;
  width: 280px;
  min-width: 280px;
  flex-shrink: 0;
  margin-left: auto;
  margin-right: auto;
  padding: 0px 0px;
  box-shadow: 0 0 5px 5px #ccc9c933;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.staff-image {
  width: 100%;
  height: 150px;
  border-radius: 15px 15px 0 0;
  object-fit: cover;
  margin-bottom: 10px;
  box-shadow: 0 2px 6px #0001;
}

.staff-name {
  font-family: "M PLUS 1p", sans-serif;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 5px;
  color: #333;
}

.staff-title {
  font-family: "M PLUS 1p", sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  margin-bottom: 3px;
  color: #333;
  padding-left: 5px;
  align-self: flex-start;
}

.staff-message {
  font-family: "M PLUS 1p", sans-serif;
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
  color: #555;
  margin-top: 8px;
  padding: 0px 10px 10px 10px;
}

.staff-divider {
  width: 100%;
  height: 1px;
  background-color: #3da900;
  margin: 4px 0;
}

.flow {
  background-image: url('../img/section_back.jpg');
  background-position: 0 0;
  background-size: cover;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  height: 600px;
  margin-top: -20px;
  box-shadow: 0 0 10px 5px #7773;
}

.flow-card {
  grid-column-gap: 0px;
  grid-row-gap: 0px;
  background-color: #fff;
  border-radius: 15px;
  width: 280px;
  min-width: 280px;
  flex-shrink: 0;
  margin-left: auto;
  margin-right: auto;
  padding: 0px 0px;
  box-shadow: 0 0 5px 5px #ccc9c933;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flow-image {
  width: 100%;
  border-radius: 15px 15px 0 0;
  object-fit: cover;
  margin-bottom: 10px;
  box-shadow: 0 2px 6px #0001;
}

.flow-title {
  font-family: "M PLUS 1p", sans-serif;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 5px;
  color: #333;
}

.flow-message {
  font-family: "M PLUS 1p", sans-serif;
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
  color: #555;
  margin-top: 8px;
  padding: 0 10px 10px 10px;
}

.faq {
  background-image: url('../img/section_back.jpg');
  background-position: 0 0;
  background-size: cover;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  margin-top: -20px;
  box-shadow: 0 0 10px 5px #7773;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 20px;
  overflow: visible;
}

.faq-card {
  grid-column-gap: 0px;
  grid-row-gap: 0px;
  background-image: none;
  background-position: 0 0;
  background-size: auto;
  border-radius: 15px;
  width: 300px;
  min-width: 300px;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  box-shadow: 0 0 5px 5px #ccc9c933;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.faq-image {
  width: 100%;
  border-radius: 15px;
  object-fit: cover;
  margin-bottom: 0;
  box-shadow: 0 2px 6px #0001;
}

.before-after {
  background-image: url('../img/section_back.jpg');
  background-position: 0 0;
  background-size: cover;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  height: 1000px;
  margin-top: -20px;
  box-shadow: 0 0 10px 5px #7773;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 40px;
  overflow: visible;
}

.before-after-container {
  position: relative;
  width: 600px;
  max-width: 600px;
  margin: 0 auto;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  cursor: grab;
  flex-shrink: 0;
}

.before-after-container:active {
  cursor: grabbing;
}

.before-after-image {
  width: 100%;
  height: auto;
  display: block;
}

.before-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  border-right: 2px solid #fff;
  z-index: 5;
}

.before-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.after-image {
  width: 100%;
  height: auto;
  display: block;
}

.before-after-slider {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: #fff;
  cursor: ew-resize;
  transform: translateX(-50%);
  z-index: 10;
}

.before-after-slider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.slider-arrows {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #333;
  font-size: 14px;
  font-weight: bold;
  font-family: "M PLUS 1p", sans-serif;
  z-index: 15;
  -webkit-text-emphasis: none;
  text-emphasis: none;
  font-variant-emoji: none;
  -webkit-font-variant-emoji: none;
  unicode-bidi: normal;
  direction: ltr;
}

.contact {
  background-image: url('../img/section_back.jpg');
  background-position: 0 0;
  background-size: cover;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  height: 550px;
  margin-top: -20px;
  box-shadow: 0 0 10px 5px #7773;
}

.contact-card {
  grid-column-gap: 0px;
  grid-row-gap: 0px;
  background-color: #fff;
  border-radius: 15px;
  width: 280px;
  min-width: 280px;
  flex-shrink: 0;
  margin-left: auto;
  margin-right: auto;
  padding: 0px 0px;
  box-shadow: 0 0 5px 5px #ccc9c933;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px 5px #ccc9c966;
}

.contact-image {
  width: 100%;
  border-radius: 15px 15px 0 0;
  object-fit: cover;
  margin-bottom: 10px;
  box-shadow: 0 2px 6px #0001;
}

.contact-message {
  font-family: "M PLUS 1p", sans-serif;
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
  color: #555;
  margin-top: 8px;
  padding: 0 10px 10px 10px;
}

/* ヘッダー */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 80px;
  z-index: 1000;
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 8px #0002;
}
.header-inner {
  max-width: 800px;
  margin: 0 auto;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}
.header-logo {
  height: 70px;
  width: auto;
}
.header-title {
  flex: 1;
  text-align: center;
  font-size: 13px;
  color: #fff;
  font-family: "M PLUS 1p", sans-serif;
  letter-spacing: 0.1em;
  font-weight: bold;
}
.header-menu-btn {
  height: 70px;
  width: auto;
  cursor: pointer;
  margin-left: 16px;
}

/* スライドメニュー */
.slide-menu {
  position: fixed;
  top: 0;
  right: -100vw;
  width: 100vw;
  max-width: 400px;
  height: 100vh;
  background: linear-gradient(135deg, #f9d6f7 0%, #f7e1f7 100%);
  backdrop-filter: blur(16px);
  z-index: 2000;
  transition: right 0.4s cubic-bezier(.77,0,.18,1);
  box-shadow: -4px 0 16px #0002;
  padding: 32px 24px 24px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.slide-menu.open {
  right: 0;
}
.slide-menu .close-menu {
  background: none;
  border: none;
  font-size: 40px;
  color: #e05ca7;
  position: absolute;
  top: 24px;
  right: 24px;
  cursor: pointer;
}
.slide-menu ul {
  list-style: none;
  padding: 32px 0 0 0;
  margin: 0;
}
.slide-menu li {
  margin-bottom: 10px;
}
.menu-en {
  color: #ff66c4;
  text-align: left;
  letter-spacing: 8px;
  text-shadow: 0 0 5px #47474733;
  mix-blend-mode: normal;
  justify-content: flex-start;
  align-items: center;
  margin-top: 0;
  margin-left: 0;
  margin-right: 0;
  font-family: Times New Roman, TimesNewRoman, Times, Baskerville, Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  display: block;
  position: static;
}
.menu-ja {
  color: #333;
  font-size: 14px;
  font-weight: normal;
  margin-top: 0px;
  margin-bottom: 10px;
  letter-spacing: 0;
  line-height: 1.1;
}
.slide-menu a {
  text-decoration: none;
  display: block;
  text-align: left;
  padding: 0;
}
.slide-menu a span {
  display: block;
  font-size: 14px;
  color: #a85e8e;
  font-weight: normal;
  margin-top: 2px;
  letter-spacing: 0;
}
.menu-overlay {
  display: none;
  position: fixed;
  z-index: 1500;
  top: 0; left: 0; width: 100vw; height: 100vh;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: auto;
}
.menu-overlay.open {
  display: block;
}

/* スマホ対応 */
@media screen and (max-width: 991px) {
  .header-inner {
    max-width: 100vw;
    padding: 0 8px;
  }
  .header-title {
    font-size: 11px;
  }
  .slide-menu {
    max-width: 100vw;
    padding: 32px 8px 24px 8px;
  }
}
@media screen and (max-width: 767px) {
  .header-logo, .header-menu-btn {
    height: 60px;
  }
  .main-header {
    height: 70px;
  }
  .header-inner {
    height: 70px;
  }
  .slide-menu {
    right: -80vw;
    width: 80vw;
    max-width: 80vw;
    padding: 32px 8px 24px 8px;
    box-sizing: border-box;
  }
}

.menu-list {
  padding-top: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 1 1 auto;
  overflow-y: auto;
}

.menu-item {
  margin-bottom: 0px;
}

@media screen and (max-width: 767px) {
  .menu-list {
    padding-top: 8px;
  }
  .menu-item {
    margin-bottom: 2px;
  }
}
.menu-bottom-info {
  text-align: center;
  font-size: 13px;
  color: #666;
  padding: 10px 0 10px 0;
  width: 100%;
}

.official-link-text {
  color: #ff66c4;
  text-align: center;
  letter-spacing: 8px;
  text-shadow: 0 0 5px #47474733;
  mix-blend-mode: normal;
  font-family: Times New Roman, TimesNewRoman, Times, Baskerville, Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  display: block;
  position: static;
}

.official-link-text2 {
  color: #333;
  text-align: center;
  font-size: 14px;
  font-family: 'M PLUS 1p', sans-serif;
  font-weight: normal;
  letter-spacing: 0;
  line-height: 1.1;
  margin-top: 0;
  margin-bottom: 10px;
  display: block;
}

[id]:not(#top):not(#contact) {
  scroll-margin-top: 50px;
}

