:root {
  --bg: #f8f8f8;
  --ink: #333;
  --ink-weak: #666;
  --white: #fff;
  --brand-grad: linear-gradient(90deg, #ffa3c0 0%, #e9a1e1 28%, #b0a9eb 66%, #a6c2ff 100%);
  --container-max: calc(100% - 40vw);
  --title-max: calc(100% - 10vw);
  --policy-max: calc(100% - 20vw);
  --radius: 1.25rem;
  --radius-sm: 0.625rem;
  --header-h: 72px;
}

/* Reset / Basic */
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body,
main {
  overflow: visible;
}
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Noto Sans JP", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}
p {
  color: #333;
  text-align: justify;
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.875rem;
}
.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* Anchor offset for sticky header */
[id] {
  scroll-margin-top: calc(var(--header-h) + 8px);
}
html {
  scroll-padding-top: calc(var(--header-h) + 8px);
}

/* Containers */
.title-container {
  width: 100%;
  max-width: min(var(--title-max), calc(100% - 2.5rem));
  margin-inline: auto;
}
.container {
  width: 100%;
  max-width: min(var(--container-max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.policy-container {
  width: 100%;
  max-width: min(var(--policy-max), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Animetion */

.hasAnimeBox .hasAnime {
  -webkit-animation-duration: 1000ms;
  animation-duration: 1000ms;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  -webkit-animation-delay: 300ms;
  animation-delay: 300ms;
  opacity: 0;
}

@-webkit-keyframes fadeInDown {
  from {
    opacity: 0;
    -webkit-transform: translate3d(0, 50px, 0);
    transform: translate3d(0, 50px, 0);
  }
  to {
    opacity: 1 !important;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    -webkit-transform: translate3d(0, 50px, 0);
    transform: translate3d(0, 50px, 0);
  }
  to {
    opacity: 1 !important;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}

.fadeInDown {
  opacity: 1 !important;
  -webkit-animation-name: fadeInDown;
  animation-name: fadeInDown;
}
.pc_only {
  display: block !important;
}

.sp_only {
  display: none !important;
}
/* Sections */
.section {
  padding: 5rem 0 10rem;
}
.section-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 7.5rem;
}
.section-head.invert h2,
.section-head.invert .dash {
  color: #fff;
}
.section h2 {
  margin: 0;
  font-family: Urbanist, sans-serif;
  font-size: clamp(2rem, 3.5vw, 3.375rem);
  font-weight: 500;
  text-transform: uppercase;
}
.dash {
  display: inline-block;
  width: 3.75rem;
  height: 0.1875rem;
  flex-shrink: 0;
  border-radius: 0.125rem;
  background: var(--ink);
}
.section-head.invert .dash {
  background: #fff;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  background: #fff;
  color: #000;
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 1001;
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: var(--ink);
  transition: background-color 0.3s ease;
}
.site-header .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: 16px;
  box-sizing: border-box;
}

.site-header.scrolled {
  background-color: rgba(34, 34, 34, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: #fff;
  text-decoration: none;
  z-index: 1002;
  flex: 0 0 auto;
}
.logo-mark {
  width: 14rem;
  height: auto;
  border-radius: 50%;
  display: inline-block;
}

/* Navigation */
.nav {
  transition: none;
  display: flex;
  align-items: center;
  margin-left: auto;
  transition: none;
}
.nav[hidden] {
  display: none !important;
}
.nav ul {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  color: #fff;
  text-decoration: none;
  font-family: Urbanist;
  font-size: 1.5rem;
  text-transform: uppercase;
  font-weight: 500;
}
.nav a:hover {
  opacity: 0.85;
}

/* Hamburger (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.3125rem;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav-toggle .bar {
  width: 1.5rem;
  height: 0.125rem;
  background: #fff;
  display: block;
}

/* Hero */
.hero {
  position: relative;
  background: #f8f8f8;
}
.hero-bg {
  min-height: 90vh;
  height: min(70vh, 56.25rem);
  background: url("/image/mv_bg-pc.jpg") lightgray 50% / cover no-repeat;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2));
}
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  padding-top: clamp(6rem, 13vh, 11.25rem);
}
.hero-card {
  margin-left: clamp(1rem, 6vw, 6.25rem);
  max-width: min(42.5rem, 90%);
}
.hero-title {
  color: var(--white);
  font-family: Urbanist;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 500;
  text-transform: uppercase;
}
/* Video */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  z-index: 0;
}

/* Policy */
.policy {
  position: relative;
  background: var(--bg);
  overflow: hidden;
}
.policy::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/image/bg-2.png");
  background-repeat: repeat;
  background-position: center;
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
}
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}
.copy-stack p {
  margin: 0 0 1.125rem;
}
.image-card img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  position: relative;
  z-index: 1;
}

/* Works */
.works {
  background: #333;
}
.works .section-head h2 {
  color: #fff;
}
.works-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}
.phone-gradient {
  border-radius: var(--radius);
  padding: 1.25rem 3.375rem;
  background: var(--brand-grad);
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-gradient img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0.75rem;
}
.works-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.works-copy p {
  color: #fff;
  margin: 0;
}
.casLive_logo {
  position: relative;
  z-index: 1;
  display: flex;
  width: 17.5625rem;
  height: 5rem;
  justify-content: center;
  align-items: center;
}

/* Company */
.company {
  position: relative;
  background: var(--bg);
  overflow: hidden;
}

.company::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/image/bg-2.png");
  background-repeat: repeat;
  background-position: center;
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
}

.company-list {
  display: grid;
  gap: 1.25rem;
}
.company-item {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: 8.75rem 1fr;
  gap: 1.5rem;
  align-items: start;
  position: relative;
  z-index: 1;
}
.company-item h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1rem;
  font-weight: 700;
}
.mini-dash {
  width: 1.25rem;
  height: 0.125rem;
  background: var(--ink);
  display: inline-block;
  border-radius: 0.0625rem;
}
.company-item p,
.company-item address {
  margin: 0;
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.875rem;
}

.bullets {
  margin: 0;
  padding-left: 1rem;
}
.bullets li {
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.875rem;
}

/* News */
.news {
  background: #141111;
}
.news-list {
  display: grid;
  gap: 1.25rem;
}
.news-item {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 1.375rem 1.75rem;
}
.news-item time {
  display: block;
  color: var(--ink-weak);
  font-weight: 700;
}
.news-item p {
  margin: 0.25rem 0 0;
}
/* Contact section container (optional wrapper) */

.hero-bg-contact {
  min-height: 30vh;
  height: min(30rem, 56.25rem);
  background: url(/image/mv_bg-pc_contact.jpg) lightgray 50% / cover no-repeat;
}
.contact {
  position: relative;
  background: var(--bg);
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/image/bg-2.png");
  background-repeat: repeat;
  background-position: center;
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
}
dd {
  margin-inline-start: 0px;
}
dd.data.multi1 {
  background: #fff;
  border-radius: 0.375rem;
  padding: 0rem 1rem;
  max-height: 10rem;
  overflow-y: auto;
  position: relative;
  margin-inline-start: 0px;
}
/* Whole form wrapper */
.smp_tmpl {
  display: grid;
  gap: 1.25rem;
  margin: 0 auto;
}

/* Each input block row */
dl.cf {
  display: grid;
  grid-template-columns: 16.25rem 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-block-start: 0em;
  margin-block-end: 0em;
}

/* Label area (left column) */
dt.title {
  font-size: 1rem;
  font-weight: 700;
}

/* Required badge and error text style */
.required {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.125rem 0.25rem;
  border: 0.0625rem solid #cc0000;
  border-radius: 0.125rem;
  color: #cc0000;
  font-size: 0.7rem;
}
.required_error {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.125rem 0.25rem;
  border-radius: 0.125rem;
  color: #cc0000;
  font-size: 0.7rem;
}
/* For modern browsers */
input::placeholder {
  color: #cbcbcb; /* Set placeholder text color */
  opacity: 1; /* Ensure full visibility */
}

/* For older WebKit browsers (Chrome, Safari, Opera) */
input::-webkit-input-placeholder {
  color: #cbcbcb;
}

/* For Internet Explorer 10+ */
input:-ms-input-placeholder {
  color: #cbcbcb;
}

/* For Microsoft Edge */
input::-ms-input-placeholder {
  color: #cbcbcb;
}

/* Example: apply only to inputs with class 'search-box' */
.search-box::placeholder {
  color: #cbcbcb; /* Light gray placeholder for search input */
}
textarea::placeholder {
  color: #cbcbcb; /* Light gray for placeholder */
  opacity: 1;
}
/* Text inputs and textarea */
.input,
textarea {
  width: 100%;
  padding: 0.75rem 0.875rem;
  border: 1px solid rgba(51, 51, 51, 0.5);
  border-radius: 0.375rem;
  font: inherit;
  outline: none;
  position: relative;
  z-index: 1;
  background: #fff;
}

/* Focus state */
.input:focus,
textarea:focus {
  border-color: #bbb;
}

/* Textarea resizing */
textarea {
  resize: vertical;
}

/* Privacy agreement box (row with background) */
dl.privacy-agreement {
  display: grid;
  gap: 1.25rem;
  background: rgba(51, 51, 51, 0.06);
  padding: 1.25rem;
  border-radius: 0.625rem;
  position: relative;
  z-index: 1;
}

/* Scrollable policy text */
.sample {
  background: #fff;
  border-radius: 0.375rem;
  padding: 0 1rem;
  max-height: 10rem;
  overflow-y: auto;
  position: relative;
}
.sample p {
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.55rem;
  margin-block-start: 0em;
  margin-block-end: 0em;
}
.sample p:first-child {
  margin-top: -1rem;
}
/* Custom scrollbar for policy */
.sample::-webkit-scrollbar {
  width: 6px;
}
.sample::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}
.sample::-webkit-scrollbar-track {
  background: transparent;
}
.sample::after {
  content: "";
  position: sticky;
  display: block;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1.2rem;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
  pointer-events: none;
}

/* Checkbox and label row */
.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: auto;
  font-size: 1rem;
}

/* Native checkbox size */
.checkbox-wrapper input[type="checkbox" i] {
  width: 1.25rem;
  height: 1.25rem;
  aspect-ratio: 1 / 1;
}

/* Submit button area */
.pushbtn_all {
  text-align: center;
  margin-top: 0.5rem;
}
.pushbtn_all .btn {
  display: inline-block;
  min-width: 16.25rem;
  height: 3.5rem;
  padding: 0 1.25rem;
  border-radius: 0.5rem;
  border: 0;
  background: #333;
  color: #fff;
  font-size: 1.125rem;
  cursor: pointer;
  position: relative;
  z-index: 1;
}
.pushbtn_all .btn:hover {
  opacity: 0.95;
}

/* Error state (if you set aria-invalid on fields) */
.input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: #cc0000;
}

/* Optional intro text above the form */
.contact-intro {
  width: 90%;
  margin: auto;
  margin-bottom: 1.8rem;
}

/* Ad / CTA */
.ad-cta {
  position: relative;
  background: url("/image/ad_bg-pc.jpg") center/cover no-repeat;
  padding: 2.5rem 0;
}
.ad-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  pointer-events: none;
}
.ad-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}
.ad-inner img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0.75rem;
  position: relative;
  z-index: 1;
}
.bubble {
  position: relative;
  display: flex;
  align-items: center;
  z-index: 1;
}
.bubble-pointer {
  width: 1.5rem;
  height: 1.5rem;
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
  background: #fff;
  margin-right: -0.125rem;
}

.bubble-pointer {
  position: absolute;
  top: 50%;
  left: -30px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: #fff;
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
  pointer-events: none;
}
.bubble-card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 2rem 2.625rem;
  max-width: 35rem;
}
.bubble-card h3 {
  margin: 0 0 0.625rem;
  font-size: 1.75rem;
  font-weight: 900;
  background: linear-gradient(90deg, #ff6e9b -4.64%, #e969db 24.09%, #8d82eb 63.08%, #4d85ff 97.96%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  text-align: center;
}
.bubble-card p {
  margin: 0;
}

/* Footer */
.site-footer {
  background: #333;
  color: #fff;
  padding: 3rem 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  grid-template-areas:
    "logo logo"
    "nav copy";
  align-items: center;
  gap: 2.5rem;
  margin-inline: auto;
}
.footer-inner .logo {
  grid-area: logo;
  justify-self: center;
}
.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-start;
}
.footer-nav a {
  color: #fff;
  text-decoration: none;
  font-family: Urbanist;
  font-size: 1.125rem;
  font-weight: 500;
  text-transform: uppercase;
}
.copy {
  color: #fff;
  margin: 0;
  opacity: 0.9;
  font-size: 0.75rem;
  justify-self: end;
}
/* Back-to-top floating button (FAB) */
#MOVE_TOP_BTN,
.btn-top {
  position: fixed;
  right: clamp(0.75rem, 2vw, 1.25rem);
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 1002;

  display: none; /* shown/hidden by jQuery fadeIn/fadeOut */
  width: 3.25rem;
  height: 3.25rem;
  border: 0;
  border-radius: 9999px;
  padding: 0;

  /* brand gradient fallback -> dark */
  background: var(--brand-grad, linear-gradient(135deg, #4d85ff, #8d82eb));
  color: #fff;
  font: inherit;
  font-weight: 800;
  font-size: 1.1rem; /* "↑" text size */
  line-height: 1.875rem;
  text-align: center;
  cursor: pointer;

  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

/* Center the glyph perfectly */
#MOVE_TOP_BTN::before {
  content: attr(data-icon);
}

/* Hover / focus / active states */
#MOVE_TOP_BTN:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28), 0 6px 12px rgba(0, 0, 0, 0.22);
}

#MOVE_TOP_BTN:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22), 0 2px 6px rgba(0, 0, 0, 0.18);
}

#MOVE_TOP_BTN:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(77, 133, 255, 0.55), 0 10px 20px rgba(0, 0, 0, 0.25);
}

/* ===================== Responsive ===================== */
@media (max-width: 1100px) {
  .container,
  .title-container,
  .policy-container {
    max-width: calc(100% - 4rem);
  }

  .works-copy {
    margin-top: 1.5rem;
  }
  .phone-gradient {
    width: 100%;
    height: auto;
    justify-content: center;
  }
}

@media (max-width: 960px) {
  .pc_only {
    display: none !important;
  }

  .sp_only {
    display: block !important;
  }
  p {
    font-size: 0.875rem;
  }
  .section {
    padding: 2.5rem 0 5rem;
  }
  .section-head {
    margin-bottom: 5rem;
  }

  .header-inner {
    height: var(--header-h);
  }

  .logo-mark {
    width: 10rem;
  }

  /* Slide-in Nav Panel */
  .nav {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(78vw, 320px);
    padding-top: var(--header-h);
    background: #333;
    transform: translateX(100%);
    transition: transform 0.28s ease-out;
    z-index: 1001;
  }
  .nav.open {
    transform: translateX(0);
  }
  .nav ul {
    display: flex;
    gap: 1.25rem;
    list-style: none;
    margin: 0;
    justify-content: flex-end;
    flex-direction: column;
    padding: 1rem 1.25rem;
  }
  .nav a {
    display: block;
    font-size: 1.5rem;
    letter-spacing: 0.04em;
  }

  /* Backdrop overlay toggled via .is-nav-open on <html> */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1000;
  }
  .is-nav-open .nav-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .nav.open + .nav-overlay {
    display: block;
  }

  /* Hamburger -> X */
  .nav-toggle {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0.25rem;
    border: 1px solid #fff;
    z-index: 1002;
  }
  .nav-toggle .bar {
    position: absolute;
    left: 8px;
    right: 8px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
  }
  .nav-toggle .bar:nth-child(1) {
    top: 12px;
  }
  .nav-toggle .bar:nth-child(2) {
    top: 19px;
  }
  .nav-toggle .bar:nth-child(3) {
    top: 26px;
  }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
    top: 19px;
    transform: rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
    top: 19px;
    transform: rotate(-45deg);
  }

  /* Invisible close strip on the left edge of the panel */
  .nav-edge-close {
    position: absolute;
    top: 0;
    left: 0;
    width: 28px;
    height: 100%;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    z-index: 1;
  }
  .nav-edge-close:focus {
    outline: 2px solid #fff;
    outline-offset: -2px;
  }

  .split {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 1.5rem;
  }
  .company-item {
    grid-template-columns: 1fr;
  }
  .company-item p,
  .company-item address {
    font-size: 0.875rem;
  }
  .bullets li {
    font-size: 0.875rem;
  }
  .hero-bg-contact {
    min-height: 30rem;
  }
  .phone-gradient img {
    width: 50%;
    height: auto;
    object-fit: cover;
    border-radius: 0.75rem;
  }
  .works-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  /* Stack dl blocks vertically on small screens */
  dl.cf {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  /* Label above input */
  dt.title {
    font-size: 0.875rem;
  }

  /* Input fields full width */
  dd.data .input,
  dd.data textarea {
    width: 100%;
    font-size: 0.875rem;
  }

  /* Privacy agreement block padding adjustment */
  dl.privacy-agreement {
    padding: 1rem;
    gap: 1rem;
  }

  /* Policy text smaller max height for mobile */
  .sample {
    max-height: 8rem;
  }

  /* Checkbox row alignment for small screen */
  .checkbox-wrapper {
    justify-content: flex-start;
    margin: 0;
    font-size: 0.875rem;
  }

  /* Submit button full width */
  .pushbtn_all .btn {
    min-width: 100%;
    height: 3rem;
    font-size: 0.875rem;
    position: relative;
    z-index: 1;
  }

  /* Intro text width */
  .contact-intro {
    width: 100%;
    margin-bottom: 1.2rem;
  }

  .ad-cta {
    position: relative;
    background: url("/image/ad_bg-sp.jpg") center/cover no-repeat;
    padding: 2.5rem 0 0;
  }
  .ad-inner {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 1.5rem;
  }
  .ad-inner img {
    width: 80%;
    padding: 1.25rem 3.375rem 0rem;
    height: auto;
    object-fit: cover;
    border-radius: 0.75rem;
    position: relative;
    z-index: 1;
  }
  .bubble-card h3 {
    font-family: "Noto Sans JP";
    font-size: 2rem;
    font-style: normal;
    font-weight: 900;
    text-align: left;
  }

  .bubble-pointer {
    position: absolute;
    left: 50%;
    bottom: -30px;
    transform: translateX(-50%);
    width: 60px;
    height: 30px;
    background: #fff;
    pointer-events: none;
    clip-path: polygon(20% 0, 80% 0, 50% 100%);
    top: 100%;
  }
  /* Footer */
  .footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "logo"
      "nav"
      "copy";
    row-gap: 1.5rem;
    justify-items: center;
    text-align: center;
    padding: 1.875rem 0;
  }
  .footer-inner .logo {
    grid-area: logo;
    justify-self: center;
    margin-bottom: 0.5rem;
  }

  .footer-nav {
    grid-area: nav;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0rem;
  }
  .footer-nav li {
    padding: 0.625rem 0;
  }
  .copy {
    text-align: center;
    justify-self: center;
  }
  #MOVE_TOP_BTN {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.2rem;
    right: clamp(0.75rem, 4vw, 1.25rem);
    bottom: calc(0.9rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 820px) {
  .hero-bg {
    min-height: 30rem;
  }

  .copy {
    text-align: center;
    justify-self: center;
  }
}

/* Googlemaps */
.googlemaps #map {
  width: 100%;
  height: 16.875rem;
  margin: auto;
  filter: grayscale(0.9);
  border-radius: 0.625rem;
  background: #d9d9d9;
}
@media (max-width: 960px) {
  .googlemaps #map {
    width: 100%;
    height: 9.5rem;
  }
}
/* Respect reduced motion users */
@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  #MOVE_TOP_BTN {
    transition: none;
  }
}
