@charset "utf-8";

html,
body {
  font-family: "Kaisei Opti", sans-serif;
  color: #333;
  background: linear-gradient(180deg, #38A1DB, #FFF, #044D78);
  width: 100%;
  min-height: 100%;
  margin: 0;
}

.contactSection {
  position: relative;
}

.contactSection {
  width: min(90%, 760px);
  margin-inline: auto;
  padding: 80px 0;
  text-align: center;
}

.contactHero {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  padding-left: 80px;
}

.hanpenContactBtn {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.hanpenContact {
  display: block;
  width: 150px;
  animation: hanpenFloat 3s ease-in-out infinite;
}

@keyframes hanpenFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* はんぺんのセリフ吹き出しスタイル */
.hanpenSpeech {
  position: absolute;
  left: 240px;
  top: -32px;
  max-width: 320px;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.95);
  border: 3px solid #d7d0df;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: bold;
  color: #915DA3;
  text-align: left;
  line-height: 1.8;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.hanpenSpeech p {
  font-family: "Monomaniac One", sans-serif;
  margin: 0;
  padding: 60px 32px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  line-height: 1.5;
}

/* 吹き出しのしっぽ（左向き・はんぺん側） */
.hanpenSpeech::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 100%;
  transform: translateY(-50%);
  border: 10px solid transparent;
  border-right-color: #d7d0df;
}

.hanpenSpeech::before {
  content: '';
  position: absolute;
  top: 50%;
  right: calc(100% - 3px);
  transform: translateY(-50%);
  border: 9px solid transparent;
  border-right-color: rgba(255, 255, 255, 0.95);
  z-index: 1;
}

.hanpenSpeech.show {
  opacity: 1;
  transform: translateX(0);
}

.contactTitle {
  font-family: "Permanent Marker", sans-serif;
  font-size: 40px;
  color: #044D78;
  margin-bottom: 16px;
}

.contactLead {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 32px;
}

.googleFormBox {
  width: min(80%, 768px);
  margin: 0 auto;
}

.googleFormBox iframe {
  width: 100%;
  min-height: 1400px;
  border: none;
}

/* コピーライトエリア */
.copyright {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 1;
}

.copyrightLine {
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
  margin: 0 auto 12px;
}

.copyright p {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: #FFF;
  margin: 0;
}

/* ローディング表示 */
.loading {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden;
}

.loadingCenter {
  position: relative;
  width: 300px;
  height: 120px;
  margin: 0 auto;
}

#loadingPaw,
#loadingText {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: opacity 0.4s ease;
}

#loadingPaw {
  width: 70px;
  left: 0;
}

#loadingText {
  font-family: "Permanent Marker", sans-serif;
  width: 100%;
  text-align: center;
  font-size: 24px;
}

.hidden {
  opacity: 0;
}

/* 歩きアニメーション */
@keyframes step {
  0% {
    opacity: 0;
    transform: translateY(-10px) scale(0.8);
  }

  50% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(2px) scale(0.95);
  }
}

.loading.hide {
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

@keyframes bounceStep {
  0% {
    transform: translateY(var(--y)) scale(1) rotate(var(--r));
  }

  40% {
    transform: translateY(calc(var(--y) - 6px)) scale(1.1) rotate(var(--r));
  }

  100% {
    transform: translateY(var(--y)) scale(1) rotate(var(--r));
  }
}

/* 足跡フェード */
@keyframes fadeOut {
  to {
    opacity: 0;
    transform: scale(0.8);
  }
}

/* ローディング消える演出 */
.loading.hide {
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

/* ドロワーメニュー */
.noScroll {
  overflow: hidden;
}

.pawBtn {
  position: absolute;
  top: 60px;
  left: 12px;
  right: auto;
  bottom: auto;
  width: 60px;
  height: 60px;
  z-index: 1100;
  border: none;
  background: transparent;
  cursor: pointer;
}

.pawBtn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.7;
  display: block;
}

/* 閉じるボタン */
.closeBtn {
  position: absolute;
  top: 60px;
  left: 68%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
}

.drawerNav {
  height: 100%;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  list-style: none;
  gap: 34px;
}

.drawerNavItem {
  width: 260px;
  padding: 0;
  margin: 0;
}

.drawerNavItem a {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  column-gap: 16px;
  width: 100%;
  color: #fff;
  text-decoration: none;
}

.drawerNavText {
  font-family: "Monomaniac One", sans-serif;
  font-size: 36px;
  line-height: 1;
  display: block;
}

/* ホバー・アクティブ時対応 */
.drawerNavText:hover,
.drawerNavText:active,
.drawerNavText:focus {
  color: #B44C97;
}

.pawIcon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  opacity: 0.75;
  display: block;
  justify-self: center;
  transform: translateY(5px);
}

.drawer {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 360px;
  height: 100%;
  background: linear-gradient(180deg, #38A1DB, #044D78, #915da3);
  transform: translateX(-100%);
  transition: transform .4s cubic-bezier(0.77, 0, 0.18, 1);
  z-index: 1800;
}

.drawer.active {
  transform: translateX(0);
}

.overLay {
  display: none;
  position: fixed;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  width: 100%;
  margin: 0 auto;
  pointer-events: none;
  transition: opacity .3s;
  z-index: 1700;
}

.overLay.active {
  display: block;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.drawer ul li a:hover .pawBtn {
  opacity: 1;
}







@media screen and (max-width: 768px) {

  /* 全体 */
  .contactSection {
    width: min(92%, 760px);
    padding: 56px 0 80px;
  }

  /* はんぺんエリア */
  .contactHero {
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding-left: 0;
    margin-bottom: 32px;
  }

  .hanpenContact {
    width: 160px;
  }

  /* SPではabsoluteを解除して、はんぺんの右側に並べる */
  .hanpenSpeech {
    position: relative;
    left: auto;
    top: auto;
    max-width: 210px;
    padding: 10px 14px;
    font-size: 0.78rem;
    text-align: center;
    white-space: normal;
    border-radius: 36px;
    opacity: 0;
    transform: translateX(-8px);
    flex-shrink: 0;
  }

  .hanpenSpeech.show {
    opacity: 1;
    transform: translateX(0);
  }

  .hanpenSpeech p {
    padding: 10px 8px;
    line-height: 1.45;
  }

  /* しっぽ：左向きに戻す */
  .hanpenSpeech::after {
    top: 50%;
    right: 100%;
    left: auto;
    transform: translateY(-50%);
    border: 10px solid transparent;
    border-right-color: #d7d0df;
    border-top-color: transparent;
  }

  .hanpenSpeech::before {
    top: 50%;
    right: calc(100% - 3px);
    left: auto;
    transform: translateY(-50%);
    border: 9px solid transparent;
    border-right-color: rgba(255, 255, 255, 0.95);
    border-top-color: transparent;
  }


  /* タイトル・説明文 */
  .contactTitle {
    font-size: 34px;
  }

  .contactLead {
    font-size: 16px;
    line-height: 1.5;
    text-align: left;
  }

  /* Googleフォーム */
  .googleFormBox {
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
  }

  .googleFormBox iframe {
    width: 100%;
    max-width: 100%;
    min-height: 760px;
    border: none;
  }

  /* ドロワー */
  .drawer {
    width: 80%;
    max-width: 320px;
  }

  .pawBtn {
    position: absolute;
    top: 50px;
    left: 0;
  }

  /* 閉じるボタン */
  .closeBtn {
    position: absolute;
    top: 30px;
    left: 20px;
  }

  .drawerNav {
    gap: 30px;
  }

  .drawerNavItem {
    width: 220px;
  }

  .drawerNavItem a {
    grid-template-columns: 40px 1fr;
    column-gap: 12px;
  }

  .drawerNavText {
    font-size: 30px;
  }

  .pawIcon {
    width: 32px;
    height: 32px;
  }

  /* SPのタップ時にも色変更 */
  .drawerNavItem a:active .drawerNavText,
  .drawerNavItem a:focus .drawerNavText {
    color: #B44C97;
  }

  /* コピーライト */
  .copyright {
    position: static;
    transform: none;
    padding-bottom: 24px;
  }
}