:root {
  --fixed-cta-space: calc(112px + env(safe-area-inset-bottom));
  --swipe-height: 100svh;
  color-scheme: light;
  background: #f7fff4;
  font-family:
    "Hiragino Sans",
    "Yu Gothic",
    "Yu Gothic UI",
    Meiryo,
    system-ui,
    sans-serif;
}

@supports (height: 100dvh) {
  :root {
    --swipe-height: 100dvh;
  }
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    linear-gradient(90deg, rgba(222, 247, 219, 0.7), rgba(255, 255, 255, 0) 18%),
    linear-gradient(270deg, rgba(220, 248, 231, 0.7), rgba(255, 255, 255, 0) 18%),
    #fbfff9;
}

body {
  min-height: 100%;
  margin: 0;
  padding-bottom: var(--fixed-cta-space);
  color: #141414;
  background: transparent;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.lp {
  width: 100%;
}

.visual-section {
  position: relative;
  width: 100%;
  background: #ffffff;
}

.visual-section:not(:first-of-type),
.seo-section,
.contact-section {
  content-visibility: auto;
  contain-intrinsic-size: 1000px;
}

.visual-frame {
  position: relative;
  width: min(100%, 640px);
  margin: 0 auto;
  background: #ffffff;
}

.visual-canvas {
  position: relative;
}

.lp-picture {
  display: block;
  width: 100%;
  line-height: 0;
}

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

.hotspot {
  position: absolute;
  z-index: 2;
  display: block;
  border-radius: 999px;
  outline-offset: 4px;
}

.hotspot:focus-visible {
  outline: 3px solid #111111;
}

.hotspot-reserve {
  left: 2.9%;
  top: 86.45%;
  width: 46.1%;
  height: 5.8%;
}

.hotspot-line {
  left: 50.8%;
  top: 86.45%;
  width: 44.7%;
  height: 5.8%;
}

.seo-section {
  padding: 40px 20px 34px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fffdf5 48%, #ffffff 100%);
}

.seo-section > * {
  max-width: 540px;
  margin-right: auto;
  margin-left: auto;
}

.seo-kicker {
  margin-top: 0;
  margin-bottom: 8px;
  color: #0f9f50;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
}

.seo-section h2 {
  margin-top: 0;
  margin-bottom: 16px;
  color: #111111;
  font-size: clamp(24px, 7vw, 36px);
  line-height: 1.28;
  text-align: center;
}

.seo-section p {
  margin-top: 0;
  margin-bottom: 14px;
  color: #272727;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.85;
}

.seo-points {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  margin-bottom: 0;
}

.seo-points div {
  border: 1px solid #f3d990;
  border-radius: 8px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.78);
}

.seo-points dt {
  margin-bottom: 5px;
  color: #a84f00;
  font-size: 14px;
  font-weight: 900;
}

.seo-points dd {
  margin: 0;
  color: #202020;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.65;
}

.contact-section {
  padding: 38px 18px 42px;
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 185, 46, 0.18), rgba(255, 255, 255, 0) 24%),
    radial-gradient(circle at 88% 18%, rgba(19, 182, 91, 0.13), rgba(255, 255, 255, 0) 22%),
    linear-gradient(180deg, #ffffff 0%, #fbfff5 100%);
}

.contact-heading {
  max-width: 520px;
  margin: 0 auto 22px;
  text-align: center;
}

.contact-kicker {
  margin: 0 0 8px;
  color: #a84f00;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.contact-heading h2 {
  margin: 0;
  color: #111111;
  font-size: clamp(28px, 8vw, 42px);
  line-height: 1.2;
}

.contact-heading p:not(.contact-kicker) {
  margin: 12px 0 0;
  color: #333333;
  font-size: 15px;
  line-height: 1.7;
}

.contact-form {
  display: grid;
  gap: 14px;
  max-width: 520px;
  margin: 0 auto;
}

.form-field {
  display: grid;
  gap: 7px;
  color: #161616;
  font-size: 15px;
  font-weight: 800;
}

.form-field em {
  display: inline-block;
  margin-left: 5px;
  padding: 2px 7px;
  border-radius: 4px;
  color: #ffffff;
  background: #a84f00;
  font-size: 11px;
  font-style: normal;
  line-height: 1.3;
  vertical-align: 2px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  border: 2px solid #dcebd2;
  border-radius: 8px;
  padding: 12px 13px;
  color: #151515;
  background: #ffffff;
  font: inherit;
  font-weight: 600;
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.form-field textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.6;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: #13a84d;
  box-shadow: 0 0 0 4px rgba(19, 168, 77, 0.14);
}

.form-check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  color: #222222;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.form-check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: #11ad52;
}

.spam-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  min-height: 20px;
  margin: 0;
  color: #d35400;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.form-submit {
  min-height: 58px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(180deg, #15c765 0%, #09a94a 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.36),
    0 9px 18px rgba(10, 140, 64, 0.24);
  font: inherit;
  font-size: 19px;
  font-weight: 900;
  cursor: pointer;
}

.form-submit:focus-visible {
  outline: 3px solid #111111;
  outline-offset: 4px;
}

.faq-chat {
  position: fixed;
  right: max(14px, calc((100vw - 640px) / 2 + 14px));
  bottom: calc(128px + env(safe-area-inset-bottom));
  z-index: 42;
  width: auto;
  pointer-events: none;
}

.chat-launcher {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 124px) 82px;
  align-items: center;
  justify-content: end;
  gap: 0;
  min-height: 112px;
  margin-left: auto;
  border: 0;
  padding: 0;
  color: #171717;
  background: transparent;
  filter: drop-shadow(0 10px 18px rgba(32, 93, 43, 0.16));
  font: inherit;
  cursor: pointer;
  pointer-events: auto;
}

.chat-launcher::after {
  position: absolute;
  top: 12px;
  right: 78px;
  width: 8px;
  height: 8px;
  content: "";
  border-radius: 50%;
  background: #ffd565;
  box-shadow:
    -18px 12px 0 1px rgba(255, 201, 53, 0.82),
    11px 24px 0 0 rgba(255, 255, 255, 0.96),
    23px 3px 0 1px rgba(20, 183, 91, 0.7);
  opacity: 0;
  animation: chat-sparkle 2.2s ease-in-out infinite;
  pointer-events: none;
}

.chat-launcher-bubble {
  position: relative;
  align-self: start;
  margin-top: 16px;
  margin-right: -4px;
  border: 2px solid #16b960;
  border-radius: 8px;
  padding: 7px 8px;
  color: #111111;
  background: #ffffff;
  box-shadow: 0 7px 16px rgba(28, 99, 46, 0.14);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.32;
  text-align: center;
}

.chat-launcher-bubble::after {
  position: absolute;
  right: -9px;
  bottom: 18px;
  width: 14px;
  height: 14px;
  content: "";
  border-top: 2px solid #16b960;
  border-right: 2px solid #16b960;
  background: #ffffff;
  transform: rotate(45deg);
}

.chat-launcher-character {
  position: relative;
  z-index: 1;
  display: block;
  width: 86px;
  transform-origin: 50% 100%;
}

.chat-launcher-character picture {
  display: block;
  width: 100%;
}

.chat-launcher-character img {
  display: block;
  width: 100%;
  height: auto;
}

.faq-chat.is-open .chat-launcher {
  display: none;
}

.chat-panel {
  display: none;
  flex-direction: column;
  width: min(370px, calc(100vw - 24px));
  max-height: min(520px, calc(100vh - 162px - env(safe-area-inset-bottom)));
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid rgba(18, 159, 79, 0.18);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(24, 82, 42, 0.22);
  pointer-events: auto;
}

.faq-chat.is-open .chat-panel {
  display: flex;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f9e4f 0%, #a84f00 100%);
}

.chat-header-picture {
  display: block;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
}

.chat-header-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 20%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.56);
}

.chat-header > div {
  min-width: 0;
  flex: 1 1 auto;
}

.chat-kicker {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.chat-header h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
}

.chat-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.16);
  font: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.chat-log {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
  min-height: 88px;
  max-height: none;
  padding: 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 181, 41, 0.12), rgba(255, 255, 255, 0) 32%),
    #fbfff8;
}

.chat-message {
  max-width: 88%;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.65;
  white-space: pre-line;
}

.chat-message.bot {
  display: flex;
  gap: 8px;
  align-self: flex-start;
  max-width: 94%;
  padding: 0;
  color: #1a1a1a;
  background: transparent;
  border: 0;
}

.chat-message-avatar {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 20%;
  background: #ffffff;
  box-shadow:
    0 0 0 2px #ffffff,
    0 3px 8px rgba(29, 107, 50, 0.14);
}

.chat-message-body {
  min-width: 0;
}

.chat-message-bubble {
  border: 1px solid #e6efd9;
  border-radius: 8px;
  padding: 9px 11px 10px;
  background: #ffffff;
}

.chat-message-name {
  display: block;
  margin-bottom: 3px;
  color: #0e9d4b;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
}

.chat-message-text {
  display: block;
  white-space: pre-line;
}

.chat-message.user {
  align-self: flex-end;
  color: #ffffff;
  background: #12a84f;
}

.chat-typing .chat-message-bubble {
  min-width: 82px;
}

.chat-typing-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  min-height: 18px;
}

.chat-typing-dots i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f28b00;
  animation: typing-dot 1s ease-in-out infinite;
}

.chat-typing-dots i:nth-child(2) {
  animation-delay: 0.15s;
}

.chat-typing-dots i:nth-child(3) {
  animation-delay: 0.3s;
}

.faq-chat.is-bot-typing .chat-action,
.faq-chat.is-bot-typing .chat-send {
  pointer-events: none;
  opacity: 0.6;
}

.chat-actions {
  display: grid;
  gap: 8px;
  max-height: 230px;
  padding: 12px 14px 14px;
  overflow-y: auto;
  background: #ffffff;
}

.chat-action {
  min-height: 42px;
  border: 1px solid #f0d28a;
  border-radius: 8px;
  padding: 9px 11px;
  color: #161616;
  background: #fffdf6;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.chat-action.primary {
  border-color: #a84f00;
  color: #ffffff;
  background: linear-gradient(180deg, #c26000 0%, #a84f00 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.32),
    0 7px 14px rgba(230, 112, 0, 0.2);
  text-align: center;
}

.chat-action.secondary {
  border-color: #cfe6c3;
  background: #f7fff2;
}

.chat-action.category {
  position: relative;
  border-color: #bfe8c7;
  padding-left: 34px;
  background: #fbfff8;
}

.chat-action.category::before {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 10px;
  height: 10px;
  content: "";
  border-radius: 50%;
  background: linear-gradient(180deg, #26c969 0%, #0ea64d 100%);
  box-shadow: 0 0 0 4px rgba(38, 201, 105, 0.12);
  transform: translateY(-50%);
}

.chat-input-form {
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 8px;
  padding: 0 14px 14px;
  background: #ffffff;
}

.chat-input-form:not([hidden]) {
  display: grid;
}

.chat-input {
  min-height: 44px;
  border: 2px solid #dcebd2;
  border-radius: 8px;
  padding: 10px 11px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  outline: none;
}

.chat-input:focus {
  border-color: #13a84d;
  box-shadow: 0 0 0 4px rgba(19, 168, 77, 0.14);
}

.chat-send {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(180deg, #c26000 0%, #a84f00 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.28),
    0 5px 10px rgba(230, 112, 0, 0.18);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

@keyframes chat-sparkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.45);
  }

  35%,
  62% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes typing-dot {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.42;
  }

  45% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

.fixed-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  padding: 12px 10px calc(10px + env(safe-area-inset-bottom));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.96) 34%, #ffffff 100%);
  pointer-events: none;
}

.fixed-cta-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: min(100%, 640px);
  margin: 0 auto;
  pointer-events: auto;
}

.footer-cta-button {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 999px;
  filter: drop-shadow(0 7px 14px rgba(42, 96, 46, 0.2));
  outline-offset: 4px;
  isolation: isolate;
}

.footer-cta-button::before {
  position: absolute;
  top: 10%;
  bottom: 10%;
  left: -46%;
  z-index: 1;
  width: 38%;
  content: "";
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.82) 48%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(0) skewX(-18deg);
  animation: cta-shine 2.6s ease-in-out infinite;
  will-change: transform, opacity;
  pointer-events: none;
}

.footer-cta-button::after {
  position: absolute;
  top: 12%;
  right: 18%;
  z-index: 2;
  width: 9px;
  height: 9px;
  content: "";
  border-radius: 50%;
  background: #ffffff;
  box-shadow:
    -24px 17px 0 1px rgba(255, 255, 255, 0.78),
    15px 24px 0 0 rgba(255, 255, 255, 0.86),
    -7px -8px 0 0 rgba(255, 246, 157, 0.92);
  transform: scale(0.45);
  opacity: 0;
  animation: cta-sparkle 1.8s ease-in-out infinite;
  pointer-events: none;
}

.footer-cta-button:nth-child(2)::before {
  animation-delay: 0.42s;
}

.footer-cta-button:nth-child(2)::after {
  animation-delay: 0.34s;
}

.footer-cta-button:nth-child(3)::before {
  animation-delay: 0.78s;
}

.footer-cta-button:nth-child(3)::after {
  animation-delay: 0.62s;
}

.footer-cta-button:focus-visible {
  outline: 3px solid #111111;
}

.footer-cta-button img {
  display: block;
  width: 100%;
  height: auto;
}

.footer-cta-button picture {
  display: block;
  width: 100%;
  line-height: 0;
}

@keyframes cta-shine {
  0% {
    opacity: 0;
    transform: translateX(0) skewX(-18deg);
  }

  22% {
    opacity: 0.85;
  }

  52% {
    opacity: 0;
    transform: translateX(420%) skewX(-18deg);
  }

  100% {
    opacity: 0;
    transform: translateX(420%) skewX(-18deg);
  }
}

@keyframes cta-sparkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.45) rotate(0deg);
  }

  38% {
    opacity: 1;
    transform: scale(1) rotate(18deg);
  }

  62% {
    opacity: 0.18;
    transform: scale(0.72) rotate(36deg);
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 480px) {
  html {
    scroll-snap-type: y mandatory;
  }

  body {
    padding-bottom: 0;
  }

  .visual-section {
    display: grid;
    min-height: var(--swipe-height);
    padding-bottom: var(--fixed-cta-space);
    place-items: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: hidden;
  }

  .visual-canvas {
    aspect-ratio: 941 / 1672;
    height: min(calc(var(--swipe-height) - var(--fixed-cta-space)), 177.7vw, 1137px);
    max-width: 100%;
  }

  .lp-image {
    height: 100%;
    object-fit: contain;
  }

  .lp-picture {
    height: 100%;
  }

  .seo-section {
    min-height: var(--swipe-height);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .contact-section {
    min-height: var(--swipe-height);
    padding-bottom: calc(140px + env(safe-area-inset-bottom));
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
}

@media (min-width: 760px) {
  :root {
    --fixed-cta-space: calc(132px + env(safe-area-inset-bottom));
  }

  body {
    padding: 24px 0 var(--fixed-cta-space);
  }

  .visual-frame {
    box-shadow: 0 18px 48px rgba(39, 102, 56, 0.14);
  }

  .fixed-cta {
    padding-bottom: 18px;
  }

  .faq-chat {
    bottom: calc(150px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 360px) {
  :root {
    --fixed-cta-space: calc(96px + env(safe-area-inset-bottom));
  }

  body {
    padding-bottom: 0;
  }

  .fixed-cta {
    padding-right: 7px;
    padding-left: 7px;
  }

  .fixed-cta-inner {
    gap: 4px;
  }

  .faq-chat {
    right: 8px;
    bottom: calc(110px + env(safe-area-inset-bottom));
  }

  .chat-launcher {
    grid-template-columns: minmax(0, 112px) 76px;
    min-height: 104px;
  }

  .chat-launcher-bubble {
    padding: 6px 7px;
    font-size: 11px;
  }

  .chat-launcher-character {
    width: 78px;
  }

  .chat-panel {
    width: calc(100vw - 16px);
  }

  .chat-log {
    max-height: 46vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-cta-button,
  .footer-cta-button::before,
  .footer-cta-button::after,
  .chat-launcher,
  .chat-launcher::after,
  .chat-launcher-character,
  .chat-typing-dots i {
    animation: none;
  }
}
