body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Noto Sans JP", sans-serif;
}

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  background-image: url("../img/hero.png");
  background-size: cover;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgb(255 255 255 / 80%) 0%,
    rgb(255 255 255 / 0%) 10%
  );
}

.hero__logo-pack {
  position: absolute;
  top: 43vh;
  left: 2%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 2.2vw;
  pointer-events: none;
  z-index: 5;
}

.hero__logo {
  width: clamp(10rem, 50vw, 30rem);
  height: auto;
}

.hero__balloon {
  position: relative;
  width: clamp(4rem, 15vw, 8.75rem);
  aspect-ratio: 1 / 1;
  transform: translateY(-25%);
  background: url("../img/hukidasi.png") center/contain no-repeat;
}

.hero__balloon-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-47%, -53%) rotate(-10deg);
  margin: 0;
  text-align: center;
  line-height: 1.1;
  color: #003876;
  pointer-events: none;
  font-family: "Noto Sans JP", sans-serif;
}

.hero__balloon-text--big {
  font-weight: 800;
  font-size: 35px;
  white-space: nowrap; /* 途中で折り返させない */
}

.hero__balloon-text--small {
  font-weight: 500;
  font-size: clamp(0.5rem, 2vw, 1rem);
  white-space: nowrap;
  display: inline-block;
  margin-top: 5px;
}

.hero__heading {
  position: absolute;
  left: 2%;
  top: calc(43vh + 140px);
  transform: translateY(-50%);
  text-align: left;
  color: #fff;
  pointer-events: none;
  z-index: 5;
}

.hero__main {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.05;
  font-size: clamp(2rem, 10vw, 5rem);
  white-space: nowrap;
}

.hero__sub {
  margin-top: 0.25rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: clamp(0.8rem, 3vw, 1.8rem);
  white-space: nowrap;
}

@media (max-width: 767px) {
  .hero__balloon-text--big {
    font-weight: 600;
    font-size: 25px;
    white-space: nowrap; /* 途中で折り返させない */
  }

  .hero__balloon-text--small {
    font-size: 14px;
    white-space: nowrap;
  }

  .hero__balloon-text {
    line-height: 1;
  }
}

/* スマホ用にサイズを縮小 */
@media (max-width: 430px) {
  .header__label-pc {
    display: none;
  }

  .hero {
    height: calc(100svh - 64px);
    background-image: url("../img/sp_bg.jpg");
  }

  .hero__logo-pack {
    top: calc(100% - 120px);
    height: auto;
  }

  .hero__logo-pack img {
    margin-top: 30px;
    width: 200px;
    height: auto;
  }

  .hero__balloon {
    left: 10%;
    width: clamp(3rem, 20vw, 6rem);
    aspect-ratio: 1 / 1;
    transform: translateY(-10%);
  }

  .hero__balloon-text--big {
    font-weight: 600;
    font-size: 20px;
    white-space: nowrap; /* 途中で折り返させない */
  }

  .hero__balloon-text--small {
    font-size: 10px;
    white-space: nowrap;
  }

  .hero__balloon-text {
    line-height: 1;
  }

  .hero__heading {
    top: calc(100% - 50px);
    height: auto;
  }
}

.header__contact-bar {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  z-index: 10;
  padding-right: 6rem;
}

.header__tel-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  text-decoration: none;
  color: #003876;
  font-weight: 700;
  line-height: 1.1;
  margin-right: -8.125rem;
}

.header__label-pc {
  background: #d7ff31;
  border-radius: 624.9375rem;
  padding: 0.625rem 1.25rem;
  font-size: 1.125rem;
  color: #003876;
  position: relative;
  right: 0.625rem;
  top: 0.125rem;
}

.header__label-sp {
  display: none;
}

.header__tel {
  display: flex;
  align-items: center;
  font-size: 1.725rem;
  color: #07297f;
}

.header__tel .header__icon {
  height: 1.2rem;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.header__hours {
  width: 100%;
  font-size: 0.8rem;
  font-weight: 600;
  color: #07297f;
  text-align: center;
}

.header__icon-box--mail {
  margin-left: auto;
  position: relative;
  z-index: 20010;
}

.header__icon-box {
  width: 4.5rem;
  height: 4.5rem;
  background: #65b7ff;
  border: none;
  border-radius: 0.25rem;
  color: #fff;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
}

.header__icon-box img {
  height: 1.375rem;
  margin-bottom: 0.25rem;
  filter: brightness(0) invert(1);
}

.header__icon-box--mail {
  position: relative;
  z-index: 20010;
}

.header__icon-box--menu {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 20010;
}

.header__hamburger-icon {
  display: block;
  width: 1.5rem;
  height: 0.125rem;
  background-color: #fff;
  position: relative;
  margin-top: 0.8125rem;
  margin-bottom: 0.9375rem;
}

.header__hamburger-icon::before,
.header__hamburger-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 1.5rem;
  height: 0.125rem;
  background-color: #fff;
}

.header__hamburger-icon::before {
  top: -0.5rem;
}

.header__hamburger-icon::after {
  top: 0.5rem;
}

.header__icon-box--menu.is-open .header__hamburger-icon {
  background-color: transparent;
}
.header__icon-box--menu.is-open .header__hamburger-icon::before {
  top: 0;
  transform: rotate(45deg);
}
.header__icon-box--menu.is-open .header__hamburger-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.header__menu-list {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: calc(100% - 6rem);
  height: auto;
  background: rgb(81 192 243 / 90%);
  z-index: 10000;
  margin: 0;
  padding: 2rem 3rem 2.5rem;
  list-style: none;
  flex-direction: column;
  gap: 1.5rem;
  font-size: 1.2rem;
  transition:
    transform 0.3s cubic-bezier(0.4, 2, 0.6, 1),
    opacity 0.2s;
  transform: translateY(-100%);
  opacity: 0;
}

/* Lock background scroll when menu is open */
body.menu-open {
  overflow: hidden;
  height: 100dvh;
}

/* Make the overlay menu scrollable within the viewport */
.header__menu-list {
  inset: 0;
  max-height: 100dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}

.header__menu-list.open {
  overflow-y: auto;
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}

.header__menu-list.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
  padding-bottom: 80px;
}

.header__close-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  margin: 0;
  padding: 0.2rem 0.5rem;
  z-index: 1;
  background: rgb(144 211 246);
}

.header__close-label {
  color: #fff;
  font-size: 0.5rem;
  text-align: center;
  letter-spacing: 0.1em;
  font-weight: 600;
  user-select: none;
  margin-top: -0.2rem;
}

.header__close-menu {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  transition: background 0.2s;
}

.header__close-menu:hover,
.header__close-menu:focus {
  background: #f0f4ff;
  outline: none;
}

.header__logo {
  text-align: left;
  margin-left: 0;
}

.header__logo img {
  width: 22rem;
  height: auto;
  margin-left: 0;
  margin-right: auto;
}

.header__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  column-gap: 8rem;
  justify-content: center;
  align-items: flex-start;
}

.header__nav-group {
  margin: 0;
}

.header__nav-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 2rem;
}

.header__cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.5rem;
}

.header-cta-text-block {
  display: block;
  text-align: center;
  font-size: 16px;
  font-weight: normal;
  font-family: "M PLUS 1p", sans-serif;
}
.header-cta-texts-block {
  display: block;
  text-align: center;
  font-family: "M PLUS 1p", sans-serif;
  font-weight: normal;
}

.header__cta {
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.9rem 1.2rem;
  border-radius: 9999px;
  text-decoration: none;
  letter-spacing: 0.02em;
  color: #07297f;
  background: #d7ff31;
  box-shadow: 0 2px 6px rgb(0 0 0 / 6%);
}

.header__cta--tel {
  background: #d7ff31;
  color: #07297f;
}

.header__cta--mail {
  background: linear-gradient(135deg, #0060c7 0%, #0b56b7 100%);
  color: #fff;
  font-family: "M PLUS 1p", sans-serif;
  text-align: center;
  line-height: 60px;
  font-weight: bold;
}

.header__cta-phone {
  font-size: 1.2em;
}

.header__cta-hours {
  font-size: 12px;
  margin-left: 0.25rem;
  opacity: 0.9;
}

.header__cta-icon {
  width: 1.2rem;
  height: 1.2rem;
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
}

.header__cta--tel .header__cta-icon {
  background-image: url("../img/phone.png");
  filter: none;
}

.header__cta--mail .header__cta-icon {
  background-image: url("../img/mail.png");
  filter: brightness(0) invert(1);
  transform: translateY(5px);
}

.header__nav-title {
  font-family: "Poiret One", sans-serif;
  font-size: 1.8rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 0.75rem;
  white-space: nowrap;
}

.header__nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.header__nav-list li {
  margin-bottom: 1rem;
}

.header__nav-list li:last-child {
  margin-bottom: 0;
}

.header__nav-list a {
  font-size: 18px;
  font-weight: 300;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.header__nav-list a:hover {
  color: #e0e0e0;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: 90px;
}

@media (max-width: 1024px) {
  .header__nav {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 970px) {
  .header__label-pc {
    opacity: 0;
  }
}

@media (max-width: 800px) {
  header {
    height: 70px;
  }

  .header__contact-bar {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    gap: 0;
    padding: 0;
    background: rgb(255 255 255 / 85%);
    backdrop-filter: blur(0.25rem);
    z-index: 20000;
    align-items: normal;
    box-sizing: border-box;
    max-width: 100vw;
  }

  .header__tel-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    background: #d7ff31;
    padding: 0.5rem;
    width: 50%;
  }

  .header__label {
    padding: 0;
    position: static;
  }

  .header__tel {
    font-size: 1.2rem;
  }

  .header__logo img {
    width: 15rem;
    height: auto;
  }

  .header__icon-box {
    width: 3.5rem;
    height: 3.5rem;
  }

  .header__icon-box--mail {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 50%;
    height: auto;
    padding: 0.5rem;
    background: linear-gradient(135deg, #0060c7 0%, #0b56b7 100%);
    border-radius: 0;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    gap: 0.5rem;
  }

  .header__icon-box--mail img {
    height: 1rem;
    margin: 0;
    filter: brightness(0) invert(1);
  }

  .header__icon-box--mail span {
    white-space: nowrap;
    display: none;
  }

  .header__icon-box--mail::after {
    content: "メールでのお問合せ";
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
  }

  .header__icon-box--menu {
    position: fixed;
    display: flex;
    align-items: center; /* 中央配置 */
    justify-content: center; /* 中央配置 */
    top: calc(env(safe-area-inset-top, 0) + 0.5rem); /* ノッチ回避 */
    right: calc(env(safe-area-inset-right, 0) + 0.5rem);
    left: auto; /* 明示して左側を無効化 */
    z-index: 30000;
    width: 3.5rem; /* タップ領域を固定 */
    height: 3.5rem;
    box-sizing: border-box;
  }

  /* 横スクロール抑止（サブピクセルや固定要素によるはみ出し対策） */
  html,
  body {
    overflow-x: hidden;
  }

  .header__menu-list {
    max-height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  .header__menu-list {
    padding: 1rem 3rem;
    gap: 1rem;
    background-color: rgba(81, 192, 243, 0.95);
  }

  .header__menu-list.open {
    width: 100%;
    overflow-y: auto;
    padding: 1rem 1rem;
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    -webkit-overflow-scrolling: touch;
  }

  .header__nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding-left: 0;
    padding: 0 0.5rem;
  }
  .header__nav-cols {
    grid-template-columns: 1fr;
  }

  .header__cta-row {
    display: none;
  }

  .header__nav-group {
    margin-bottom: 2rem;
  }

  .header__nav-title {
    margin-bottom: 0.5rem;
    margin-top: 0;
  }

  .header__nav-list a {
    font-size: 1rem;
    white-space: normal;
    word-wrap: break-word;
  }

  .header__nav-list li {
    margin-bottom: 0.3rem;
  }

  .header__nav-list {
    margin-bottom: 0.3rem;
  }
}

@media (min-width: 431px) {
  header.bg-white {
    background: rgb(255 255 255 / 25%);
    backdrop-filter: blur(0.375rem);
  }
}

@media (max-width: 430px) {
  header {
    height: auto;
  }

  header::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;  
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: rgb(255 255 255 / 50%);
    backdrop-filter: blur(0.375rem);
  }

  header.bg-white::after {
    opacity: 1;
  }

  .header__label-sp {
    display: block;
    background: #d7ff31;
    border-radius: 624.9375rem;
    padding: 0 1.25rem 2px;
    font-size: 0.8rem;
    color: #003876;
    position: relative;
    right: 0;
    top: 0;
    white-space: nowrap;
    text-align: center;
  }

  .header__icon-box--mail {
    flex-direction: row;
    gap: 0.3rem;
  }

  .header__icon-box--mail::after {
    white-space: normal;
    text-align: center;
    line-height: 1.2;
  }
}

/* ヘッダーロゴのスタイル */
.header__logo-wrapper {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.header__logo-link {
  display: block;
  text-decoration: none;
}

@media (max-width: 430px) {
  .header__logo-wrapper {
    top: 35px;
  }

  .header__logo-wrapper:not(.header__logo-wrapper--visible) .header__logo-link {
    display: none;
  }
}

.header__logo-img {
  height: 60px;
  width: auto;
  display: block;
}

.header__logo-wrapper--visible {
  opacity: 1 !important;
  transform: translateY(-50%) !important;
}

@media (max-width: 768px) {
  .header__logo-wrapper {
    left: 10px;
  }

  .header__logo-img {
    height: 40px;
  }
}

@media (max-width: 345px) {
  .header__logo-img {
    height: 35px;
  }
}

/* 全セクション共通 */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease-out;
}

.slide-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.delay1 {
  transition-delay: 0.1s;
}

.delay2 {
  transition-delay: 0.2s;
}

.delay3 {
  transition-delay: 0.3s;
}
