:root {
  --ink: #111111;
  --paper: #ffffff;
  --dark-gray: #797f81;
  --mid-gray: #b1b5bb;
  --light-gray: #d6d7da;
  --faq: #d9d9d9;
  --faq-item: #e5e5e5;
  --partners-bg: #f3f3f3;
  --primary: #0033ff;
  --danger: #ff3b30;
  --font: "Fustat", ui-sans-serif, system-ui, sans-serif;
  --content-width: 1368px;
  --service-sticky-top: 64px;
  --service-stack: 15px;
  --page-hero-full-inset: 140px;
  --page-hero-pin-top: 140px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#main,
#content,
#works,
#faq,
#contact {
  scroll-margin-top: calc(var(--service-sticky-top) + 16px);
}

main:focus,
#content:focus {
  outline: none;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

main {
  flex: 1;
}

.site-pad {
  padding-inline: 20px;
}

@media (min-width: 768px) {
  :root {
    --page-hero-full-inset: 136px;
    --page-hero-pin-top: 136px;
    --service-sticky-top: 88px;
  }

  .site-pad {
    padding-inline: 26px;
  }
}

@media (min-width: 1280px) {
  :root {
    --page-hero-full-inset: 174px;
    --page-hero-pin-top: 174px;
  }

  .site-pad {
    max-width: calc(var(--content-width) + 72px);
    margin-inline: auto;
    padding-inline: 36px;
  }

  .site-pad-full {
    max-width: none;
    width: 100%;
    margin-inline: 0;
  }
}

.btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 4px 20px;
  background: var(--ink);
  color: var(--paper);
  transition: background-color 0.3s ease, color 0.3s ease;

  @media (hover: hover) {
    &:hover {
      background: var(--paper);
      color: var(--ink);

      img {
        filter: invert(1);
      }
    }
  }

  &:focus-visible,
  button:focus-visible & {
    background: var(--paper);
    color: var(--ink);

    img {
      filter: invert(1);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    &,
    img {
      transition: none;
    }
  }
}

.btn span {
  flex: 1;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
}

.btn img {
  width: 16px;
  height: 14px;
  flex-shrink: 0;
  transition: filter 0.3s ease, transform 0.3s ease;
}

.btn-down img {
  transform: rotate(90deg);
}

.btn-up img {
  transform: rotate(-90deg);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

.skip-link:not(:focus) {
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Header */
.site-header {
  display: contents;
}

.header-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--ink);
  padding-block: 16px 12px;
  padding-inline: 26px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24px;
}

.header-meta p {
  margin: 0;
}

.header-meta-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
}

.header-meta-clock {
  text-align: center;
  white-space: nowrap;
}

.header-meta-clock-time {
  display: inline-block;
  width: auto;
  text-align: left;
  white-space: nowrap;
}

.header-meta-sun {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.sun-item {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.sun-item img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.sun-dash {
  display: block;
  width: 1px;
  height: 15px;
}

.header-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
  background: var(--paper);
  box-shadow: 0 1px 0 transparent;
  transition: padding-block 0.3s ease, box-shadow 0.3s ease;
}

.logo {
  display: block;
  width: 224px;
  max-width: 100%;
  min-width: 0;

  @media (hover: hover) {
    &:hover img {
      opacity: 0.4;
    }
  }

  &:focus-visible img {
    opacity: 0.4;
  }

  @media (prefers-reduced-motion: reduce) {
    img {
      transition: none;
    }
  }
}

.logo img {
  width: 100%;
  height: auto;
  transform: translateZ(0);
  backface-visibility: hidden;
  transition: opacity 0.3s ease;
}

.nav-desktop {
  display: none;
  align-items: flex-start;
  gap: 10px;
}

.nav-desktop > a,
.nav-parent {
  display: block;
  height: 29px;
  overflow: hidden;
  padding-inline: 20px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
}

.nav-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.35s ease;

  @media (prefers-reduced-motion: reduce) {
    transition: none;
  }
}

.nav-desktop > a,
.nav-item {
  @media (hover: hover) {
    &:hover .nav-label {
      transform: translateY(-33px);
    }
  }
}

.nav-desktop > a:focus-visible .nav-label,
.nav-item:focus-within .nav-label {
  transform: translateY(-33px);
}

.nav-label > span {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 29px;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-item {
  position: relative;

  &:hover .nav-drop,
  &:focus-within .nav-drop {
    display: block;
  }
}

.nav-parent img {
  width: 16px;
  height: 16px;
}

.nav-drop {
  display: none;
  position: absolute;
  left: 16px;
  top: 100%;
  z-index: 20;
  width: 210px;
  padding-top: 8px;
  background: transparent;
}

.nav-drop-panel {
  padding-block: 8px;
  background: var(--paper);
  border-radius: 10px;
}

.nav-drop a {
  display: flex;
  align-items: center;
  padding: 4px 20px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  white-space: nowrap;

  @media (hover: hover) {
    &:hover .nav-drop-mark {
      width: 10px;
      margin-right: 6px;
      opacity: 1;
    }
  }

  &:focus-visible .nav-drop-mark {
    width: 10px;
    margin-right: 6px;
    opacity: 1;
  }
}

.nav-drop-mark {
  display: flex;
  width: 0;
  height: 17px;
  margin-right: 0;
  overflow: hidden;
  flex-shrink: 0;
  opacity: 0;
  transition: width 0.25s ease, margin-right 0.25s ease, opacity 0.25s ease;

  @media (prefers-reduced-motion: reduce) {
    transition: none;
  }
}

.nav-drop-mark img {
  width: 10px;
  height: 17px;
  flex-shrink: 0;
}

.menu-btn {
  display: block;
}

.menu-btn img {
  width: 28px;
  height: 28px;
}

.nav-mobile-backdrop {
  position: fixed;
  inset: 0;
  z-index: 59;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  cursor: pointer;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.nav-mobile-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.3s ease, visibility 0s;
}

.nav-mobile {
  display: flex;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  width: calc(66.67% - 6px);
  flex-direction: column;
  overflow: auto;
  background: var(--ink);
  color: var(--paper);
  transform: translate3d(100%, 0, 0);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.3s ease, visibility 0s linear 0.3s;
}

.nav-mobile.is-open {
  transform: translate3d(0, 0, 0);
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.3s ease, visibility 0s;
}

.nav-mobile-head {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: flex-end;
  height: 60px;
  padding: 16px 20px;
}

.nav-mobile-close {
  display: block;
  width: 28px;
  height: 28px;
}

.nav-mobile-close img {
  width: 28px;
  height: 28px;
}

.nav-mobile-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 30px;
}

.nav-mobile-item {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nav-mobile-links > a,
.nav-mobile-item > a {
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  color: var(--paper);
}

.nav-mobile-children {
  margin: 0;
  padding: 0 0 0 20px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav-mobile-children li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.nav-mobile-children img {
  width: 10px;
  height: 17px;
  flex-shrink: 0;
}

.nav-mobile-children a {
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  color: var(--paper);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-mobile-instagram {
  display: block;
  width: 34px;
  height: 34px;
}

.nav-mobile-instagram img {
  width: 34px;
  height: 34px;
}

.nav-mobile-close,
.nav-mobile-instagram {
  transition: opacity 0.3s ease;

  @media (hover: hover) {
    &:hover {
      opacity: 0.4;
    }
  }

  &:focus-visible {
    opacity: 0.4;
  }

  @media (prefers-reduced-motion: reduce) {
    transition: none;
  }
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .menu-btn {
  visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .header-bar,
  .nav-mobile,
  .nav-mobile.is-open,
  .nav-mobile-backdrop,
  .nav-mobile-backdrop.is-open {
    transition: none;
  }
}

@media (min-width: 768px) {
  .header-meta {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 0;
    padding-block: 16px;
    font-size: 14px;
    letter-spacing: 0.28px;
  }

  .header-meta-primary {
    display: contents;
  }

  .header-meta-clock {
    text-align: center;
  }

  .header-meta-sun {
    justify-content: flex-end;
  }

  .header-bar {
    padding-block: 26px;
  }

  .logo {
    width: 300px;
  }

  .nav-mobile {
    width: calc(66.67% - 15px);
  }

  .nav-mobile-head {
    height: 80px;
    padding: 23px 26px;
  }

  .nav-mobile-links {
    gap: 40px;
    padding: 40px 100px;
  }

  .nav-mobile-links > a,
  .nav-mobile-item > a {
    font-size: 30px;
  }

  .nav-mobile-children {
    gap: 14px;
    padding-left: 26px;
  }

  .nav-mobile-children a {
    font-size: 24px;
  }
}

@media (min-width: 1280px) {
  .header-meta {
    padding-block: 16px;
    padding-inline: 36px;
  }

  .header-bar {
    padding-block: 42px;
  }

  .site-header.is-compact .header-bar {
    padding-block: 20px;
    box-shadow: 0 1px 0 var(--ink);
  }

  .logo {
    width: 350px;
  }

  .nav-desktop {
    display: flex;
  }

  .menu-btn,
  .nav-mobile,
  .nav-mobile-backdrop {
    display: none !important;
  }
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  width: 100%;
  background-color: var(--paper);
}

.site-footer-main {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-block: 48px;
}

.footer-logo {
  display: block;
  width: 100%;
  max-width: 335px;
  min-width: 0;

  @media (hover: hover) {
    &:hover img {
      opacity: 0.4;
    }
  }

  &:focus-visible img {
    opacity: 0.4;
  }

  @media (prefers-reduced-motion: reduce) {
    img {
      transition: none;
    }
  }
}

.footer-logo img {
  width: 100%;
  height: auto;
  transform: translateZ(0);
  backface-visibility: hidden;
  transition: opacity 0.3s ease;
}

.footer-nav {
  display: grid;
  flex: 1;
  grid-template-columns: 1fr;
  gap: 20px;
}

.footer-nav a {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  width: fit-content;
  gap: 1px;
  font-size: 16px;
  font-weight: 500;

  &::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s ease;
  }

  @media (hover: hover) {
    &:hover::after {
      transform: scaleX(1);
    }
  }

  &:focus-visible::after {
    transform: scaleX(1);
  }

  @media (prefers-reduced-motion: reduce) {
    &::after {
      transition: none;
    }
  }
}

.footer-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-list img {
  width: 10px;
  height: 17px;
  margin-top: 2px;
}

.footer-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-rule {
  width: 100%;
  border-top: 1px solid var(--ink);
}

.site-footer-bar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding-block: 36px;
}

.site-footer-bar .footer-copy,
.site-footer-bar .footer-credit {
  margin: 0;
  color: var(--ink);
}

.site-footer-bar .footer-copy {
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: 0.24px;
}

.site-footer-bar .footer-credit {
  font-size: 10px;
  line-height: 1.45;
  letter-spacing: 0.2px;
}

.site-footer-bar .footer-credit a {
  text-decoration: underline;
}

.footer-instagram {
  display: block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: opacity 0.3s ease;

  @media (hover: hover) {
    &:hover {
      opacity: 0.4;
    }
  }

  &:focus-visible {
    opacity: 0.4;
  }

  @media (prefers-reduced-motion: reduce) {
    transition: none;
  }
}

.footer-instagram img {
  display: block;
  width: 24px;
  height: 24px;
}

@media (min-width: 768px) {
  .footer-logo {
    width: 300px;
  }

  .footer-nav {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }

  .footer-list {
    margin-top: 20px;
    gap: 14px;
  }

  .footer-stack {
    gap: 36px;
  }

  .site-footer-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .site-footer-bar .footer-copy {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.32px;
    white-space: nowrap;
  }

  .site-footer-bar .footer-credit {
    font-size: 12px;
    letter-spacing: 0.24px;
    white-space: nowrap;
  }
}

@media (min-width: 1280px) {
  .site-footer-main {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    padding-block: 72px;
  }

  .footer-logo {
    width: 350px;
  }

  .footer-nav {
    max-width: 899px;
    gap: 36px;
  }
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  width: 100%;
  aspect-ratio: 375 / 400;
  align-items: center;
  justify-content: center;
  background: #000;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0; /* 子の video z-index がタイトルを覆わないよう隔離 */
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-media picture,
.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media picture {
  z-index: 1;
}

.hero-media video {
  z-index: 2;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.hero-media video.is-ready {
  opacity: 1;
}

.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
  .hero-media video {
    transition: none;
  }
}

.hero-title {
  position: relative;
  z-index: 1; /* hero-media(0) より前面 */
  display: grid;
  margin: 0 auto;
  width: max-content;
  max-width: 100%;
  padding-inline: 16px;
  text-align: center;
  font-size: clamp(28px, 8.53vw, 46px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--paper);
  white-space: nowrap;
}

.hero-title h1 {
  display: grid;
  grid-area: 1 / 1;
  margin: 0;
  font: inherit;
  text-align: inherit;
  color: inherit;
  white-space: inherit;
}

.hero-title-mask-svg {
  grid-area: 1 / 1;
  align-self: center;
  justify-self: center;
  width: calc(100% + 1.2em);
  height: calc(100% + 1.2em);
  margin: -0.6em;
  overflow: visible;
  pointer-events: none;
  font: inherit;
}

.hero-title-mask-svg text {
  fill: none;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

.hero-title-mask-svg .hero-mask-sp {
  fill: #fff;
}

.hero-title-frost {
  grid-area: 1 / 1;
  align-self: center;
  justify-self: center;
  width: calc(100% + 1.2em);
  height: calc(100% + 1.2em);
  margin: -0.6em;
  z-index: 1;
  background: rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  -webkit-mask-image: var(--hero-title-mask, url("#heroTitleMask"));
  mask-image: var(--hero-title-mask, url("#heroTitleMask"));
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  pointer-events: none;
  opacity: 0;
}

.hero-title.has-title-mask .hero-title-frost {
  opacity: 1;
}

.hero-title-copy {
  grid-area: 1 / 1;
  color: transparent;
}

.hero h1 .hero-break-sp,
.hero h1 .hero-break-tab {
  display: none;
}

.hero h1 .hero-break-sp {
  display: inline;
}

.page-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: var(--content-width);
  padding-inline: 16px;
  text-align: center;
  font-size: 46px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--paper);
}

.page-hero h1 .page-hero-break {
  display: inline;
}

.hero-mute {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 24px;
  width: 36px;
  height: 36px;
}

.hero-mute img {
  width: 36px;
  height: 36px;
}

.page-hero {
  position: relative;
  z-index: 0;
  width: 100%;
  height: calc(100vh - var(--page-hero-full-inset, 0px));
  height: calc(100svh - var(--page-hero-full-inset, 0px));
}

.page-hero-pin {
  position: fixed;
  z-index: 0;
  top: var(--page-hero-pin-top, var(--page-hero-full-inset, 0px));
  left: 0;
  display: flex;
  width: 100%;
  height: calc(100vh - var(--page-hero-pin-top, var(--page-hero-full-inset, 0px)));
  height: calc(100svh - var(--page-hero-pin-top, var(--page-hero-full-inset, 0px)));
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-hero ~ * {
  position: relative;
  z-index: 1;
  background-color: var(--paper);
}

/* 幅が狭いブロックでも、ヒーローの黒が左右に見えないように背景だけ伸ばす */
.page-hero ~ .prod-split::before,
.page-hero ~ .site-pad::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: min(0px, calc((100% - 100vw) / 2));
  right: min(0px, calc((100% - 100vw) / 2));
  z-index: -1;
  background-color: inherit;
  pointer-events: none;
}

@media (min-width: 1280px) {
  .page-hero ~ .site-pad {
    max-width: none;
    width: 100%;
    padding-inline: max(36px, calc((100% - var(--content-width)) / 2));
  }
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.page-hero-mask {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: calc(0.3 + 0.7 * var(--page-hero-dim, 0));
  pointer-events: none;
}

.page-hero-arrow {
  position: absolute;
  z-index: 2;
  top: calc(50% + 169px);
  bottom: auto;
  left: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
  transition: transform 0.3s ease;

  @media (hover: hover) {
    &:hover {
      transform: translateX(-50%) translateY(6px);
    }

    &:hover img {
      opacity: 0.4;
    }
  }

  &:focus-visible {
    outline: 2px solid var(--paper);
    outline-offset: 4px;
    transform: translateX(-50%) translateY(6px);
  }

  &:focus-visible img {
    opacity: 0.4;
  }

  @media (prefers-reduced-motion: reduce) {
    transition: none;

    img {
      transition: none;
    }
  }
}

.page-hero-arrow img {
  width: 30.5px;
  height: 30.5px;
  transform: rotate(45deg);
  transition: opacity 0.3s ease;
}

@media (min-width: 768px) {
  .hero {
    aspect-ratio: 768 / 506;
  }

  .hero-title {
    font-size: clamp(40px, 6.25vw, 56px);
  }

  .hero h1 .hero-break-sp {
    display: none;
  }

  .hero h1 .hero-break-tab {
    display: inline;
  }

  .hero-title-mask-svg .hero-mask-sp {
    fill: none;
  }

  .hero-title-mask-svg .hero-mask-tab {
    fill: #fff;
  }

  .page-hero h1 {
    font-size: 68px;
    white-space: nowrap;
  }

  .page-hero h1 .page-hero-break {
    display: none;
  }

  .page-hero-arrow {
    top: calc(50% + 347px);
  }
}

@media (min-width: 1280px) {
  .hero {
    aspect-ratio: 1440 / 700;
  }

  .hero-title {
    font-size: clamp(52px, 4.72vw, calc(1920px * 0.0472));
  }

  .hero h1 .hero-break-tab {
    display: none;
  }

  .hero-title-mask-svg .hero-mask-tab {
    fill: none;
  }

  .hero-title-mask-svg .hero-mask-pc {
    fill: #fff;
  }

  .hero-mute {
    right: 36px;
    bottom: 32px;
  }

  .page-hero-arrow {
    top: calc(50% + 264px);
  }
}

/* Overview */
.overview-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-block: 64px;
}

.overview h2,
.section-title {
  margin: 0;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.3;
}

.section-kicker {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.2px;
  color: var(--dark-gray);
}

.overview-copy {
  display: grid;
  gap: 24px;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.18px;
}

.overview-copy p {
  margin: 0;
}

.overview-photo {
  height: 280px;
  overflow: hidden;
}

.overview-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .section-kicker {
    font-size: 20px;
  }

  .overview-copy {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .overview-photo {
    height: 400px;
  }
}

@media (min-width: 1280px) {
  .overview-inner {
    flex-direction: row;
    gap: 36px;
    padding-block: 108px;
  }

  .overview-title {
    width: 432px;
    flex-shrink: 0;
  }

  .overview h2,
  .section-title {
    font-size: 48px;
  }

  .overview-copy {
    font-size: 18px;
  }

  .overview-photo {
    height: 550px;
  }
}

/* Services */
.services {
  padding: 64px 0 32px;
}

.services-head {
  margin-bottom: 36px;
}

.service-wrap {
  position: relative;
  z-index: 1;
}

.service-wrap + .service-wrap {
  margin-top: 16px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: auto;
  overflow: hidden;
  border-radius: 18px;
  padding: 20px;
}

.service-card.is-dark {
  background: var(--ink);
  color: var(--paper);
}

.service-card.is-light {
  background: var(--paper);
  border: 1px solid var(--light-gray);
}

.service-map {
  display: block;
  pointer-events: none;
  position: absolute;
  z-index: 0;
  max-width: none;
  height: auto;
  aspect-ratio: 2560 / 1282;
  opacity: 0.43;
}

.service-map img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.service-card.is-light .service-map {
  opacity: 0.3;
}

.service-wrap-1 .service-map {
  left: -233.69%;
  top: 20.42%;
  width: 630.66%;
}

.service-wrap-2 .service-map {
  left: -379.04%;
  top: 4.87%;
  width: 660.46%;
}

.service-wrap-3 .service-map {
  left: -213.48%;
  top: 21.25%;
  width: 516.21%;
}

.service-body {
  position: relative;
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  gap: 10px;
}

.service-photos {
  display: flex;
  min-width: 0;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 10px;
}

.photo-lg,
.photo-sm {
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.photo-lg {
  aspect-ratio: 295 / 200;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.photo-sm {
  aspect-ratio: 142.5 / 116;
}

.photo-lg img,
.photo-sm img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-copy {
  display: flex;
  width: 100%;
  flex: 0 0 auto;
  flex-direction: column;
  justify-content: flex-start;
  padding: 20px 10px;
}

.service-copy p {
  margin: 0;
}

.service-index {
  font-size: 14px;
  letter-spacing: 0.14px;
}

.service-copy h3 {
  margin: 10px 0 0;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
}

.service-copy .lead {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.32px;
}

.service-links {
  margin-top: 36px;
}

.service-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--paper);
  padding: 20px 18px;
  color: inherit;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease,
    padding 0.3s ease;

  @media (hover: hover) {
    &:hover {
      background: var(--paper);
      color: var(--ink);
      border-color: var(--ink);
      padding-inline: 24px;

      .num-circle {
        border-color: var(--ink);
      }

      img {
        filter: invert(1);
      }
    }
  }

  &:focus-visible {
    background: var(--paper);
    color: var(--ink);
    border-color: var(--ink);
    padding-inline: 24px;

    .num-circle {
      border-color: var(--ink);
    }

    img {
      filter: invert(1);
    }
  }
}

.service-link:first-child {
  border-top: 1px solid var(--paper);
}

.service-link img {
  width: 24px;
  height: 20px;
  flex-shrink: 0;
  transition: filter 0.3s ease;
}

.service-link-label {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.num-circle {
  display: flex;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--paper);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  transition: border-color 0.3s ease;
}

.service-link-label span:last-child {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.br-sp {
  display: inline;
}

@media (prefers-reduced-motion: reduce) {
  .service-link,
  .service-link img,
  .num-circle {
    transition: none;
  }
}

.service-cta {
  margin-top: 36px;
  width: 100%;
}

.service-body-reverse {
  flex-direction: column-reverse;
}

@media (min-width: 768px) {
  .service-card {
    padding: 36px;
  }

  .service-wrap-1 .service-map {
    left: -71.65%;
    top: 31.11%;
    width: 268.44%;
  }

  .service-wrap-2 .service-map {
    left: -159.26%;
    top: 20.94%;
    width: 309.01%;
  }

  .service-wrap-3 .service-map {
    left: -66.04%;
    top: 11.73%;
    width: 209.17%;
  }

  .service-body {
    gap: 36px;
  }

  .photo-lg {
    aspect-ratio: 644 / 200;
  }

  .photo-sm {
    aspect-ratio: 317 / 180;
  }

  .service-copy {
    padding: 36px;
  }

  .service-copy h3 {
    font-size: 34px;
  }

  .service-link-label span:last-child {
    font-size: 18px;
    white-space: nowrap;
  }

  .br-sp {
    display: none;
  }
}

@media (min-width: 1280px) {
  :root {
    --service-sticky-top: 104px;
  }

  .services {
    padding-top: 108px;
  }

  .service-wrap {
    position: sticky;
  }

  .service-wrap + .service-wrap {
    margin-top: 0;
  }

  .service-wrap-1 {
    top: var(--service-sticky-top);
    z-index: 1;
    padding-bottom: calc(16px + var(--service-stack) * 2);
  }

  .service-wrap-2 {
    top: calc(var(--service-sticky-top) + var(--service-stack));
    z-index: 2;
    padding-bottom: calc(16px + var(--service-stack));
  }

  .service-wrap-3 {
    top: calc(var(--service-sticky-top) + var(--service-stack) * 2);
    z-index: 3;
    padding-bottom: 16px;
  }

  .service-card {
    height: min(
      calc(100svh - var(--service-sticky-top) - 16px - var(--service-stack) * 2),
      852px
    );
    height: min(
      calc(var(--service-vh, 100svh) - var(--service-sticky-top) - 16px - var(--service-stack) * 2),
      852px
    );
  }

  .service-card.is-light {
    border: 0;
  }

  .service-body,
  .service-body-reverse {
    flex-direction: row;
    gap: 36px;
  }

  .service-photos {
    min-height: 0;
    flex: 1 1 0;
  }

  .photo-lg {
    flex: 451 1 0;
    min-height: 0;
    aspect-ratio: auto;
  }

  .photo-grid {
    flex: 319 1 0;
    min-height: 0;
  }

  .photo-sm,
  .service-wrap-3 .photo-sm {
    min-height: 0;
    height: 100%;
    aspect-ratio: auto;
  }

  .service-wrap-1 .service-map {
    left: 24.66%;
    top: 8.45%;
    width: 124.37%;
  }

  .service-wrap-2 .service-map {
    left: -67.01%;
    top: 4.33%;
    width: 121.45%;
  }

  .service-wrap-3 .service-map {
    left: 11.73%;
    top: 7.81%;
    width: 134.59%;
  }

  .service-copy {
    width: 397px;
    flex: 0 0 397px;
    align-self: stretch;
    max-height: none;
    padding: 36px;
    overflow: auto;
    justify-content: center;
  }

  .service-copy h3 {
    font-size: 34px;
  }

  .service-link {
    padding: 16px 18px;
  }
}

/* Works */
.works {
  width: 100%;
  border-top: 1px solid var(--ink);
  padding-block: 60px;
}

.works .section-title {
  font-size: 32px;
  line-height: 1.2;
}

.works .section-kicker {
  margin: 0;
  font-size: 20px;
  line-height: 1.6;
}

.works-head {
  display: none;
  background: var(--ink);
  color: var(--paper);
  padding: 36px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.18px;
}

.works-head p {
  margin: 0;
}

.works-list {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.work-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ink);
  border-radius: 8px;
  padding: 10px 20px;
  background: var(--paper);
}

.work-card.is-alt {
  background: #f8f8f8;
}

.works-extra {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.3s ease, visibility 0s linear 0.3s;
}

.works-extra-clip {
  overflow: hidden;
  min-height: 0;
}

.works-extra-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 20px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.works.is-open .works-extra {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 0.3s ease, visibility 0s;
}

.works.is-open .works-extra-inner {
  opacity: 1;
  transform: none;
}

.work-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-block: 20px;
  border-bottom: 1px solid var(--light-gray);
}

.work-row:last-child {
  border-bottom: none;
}

.work-label {
  margin: 0;
  color: var(--mid-gray);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.32px;
}

.work-project {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.work-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.work-client {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.32px;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 14px;
}

.tag {
  box-sizing: border-box;
  flex: none;
  width: fit-content;
  max-width: 100%;
  border-radius: 4px;
  background: #eee;
  padding: 6px 10px;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.32px;
}

.work-locs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.work-status-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.work-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.pin-link,
.link-row {
  display: flex;
  align-items: center;
  align-self: start;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.32px;
  text-decoration: underline;
}

.work-locs .pin-link {
  flex-shrink: 0;
  gap: 2px;
  white-space: nowrap;
}

.work-client img,
.work-locs img,
.link-row img {
  flex-shrink: 0;
}

.link-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pin-link,
.link-row {
  @media (hover: hover) {
    &:hover {
      text-decoration: none;
    }
  }
}

.status-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: fit-content;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 4px 20px;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.32px;
  color: var(--paper);
  background: var(--mid-gray);
}

.status-pill.is-live {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--ink);
}

.works-more {
  display: grid;
  grid-template-rows: 1fr;
  width: 100%;
  margin: 26px 0 0;
  opacity: 1;
  transition: grid-template-rows 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
}

.works-more button,
.form-actions button {
  display: block;
  width: 100%;
}

.works-more > button {
  min-height: 0;
  overflow: hidden;
}

@media (min-width: 768px) {
  .works {
    padding-block: 100px;
  }

  .works .section-title {
    font-size: 48px;
    line-height: 1.3;
  }

  .work-card {
    padding: 20px;
  }

  .work-row {
    flex-direction: row;
    gap: 20px;
  }

  .work-label {
    width: 164px;
    flex-shrink: 0;
    font-size: 18px;
    line-height: 1.6;
    letter-spacing: 0.18px;
  }

  .work-project {
    gap: 8px;
    flex: 1;
  }

  .work-card h3 {
    font-size: 22px;
  }

  .work-client {
    font-size: 18px;
    line-height: 1.6;
    letter-spacing: 0.18px;
  }

  .work-tags,
  .work-locs,
  .work-status-col {
    flex: 1;
    min-width: 0;
  }

  .work-status-col {
    gap: 14px;
  }
}

@media (min-width: 1280px) {
  .works {
    padding-block: 108px;
  }

  .works-head {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 36px;
    margin-top: 36px;
  }

  .works-list {
    margin-top: 20px;
  }

  .work-card {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 36px;
    padding: 46px 36px;
  }

  .work-row {
    display: contents;
  }

  .work-label {
    display: none;
  }

  .work-project,
  .work-tags,
  .work-locs,
  .work-status-col {
    min-width: 0;
  }

  .work-client {
    gap: 4px;
  }

  .work-locs {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .work-locs .pin-link,
  .link-row {
    gap: 4px;
  }

  .work-status-col {
    gap: 21px;
  }

  .status-pill {
    width: 100%;
  }

  .works-more {
    margin-top: 20px;
  }
}

/* FAQ */
.faq {
  background: var(--faq);
}

.faq-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-block: 64px;
}

.faq h2 {
  margin: 0;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.3;
}

.faq-list {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  overflow: hidden;
  border-radius: 8px;
  background: var(--faq-item);
  transition: background-color 0.3s ease;

  @media (hover: hover) {
    &:hover {
      background: var(--paper);
    }
  }

  &:focus-within {
    background: var(--paper);
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item,
  .faq-a,
  .works-extra,
  .works-extra-inner,
  .works-more {
    transition: none;
  }

  .works-extra-inner {
    transform: none;
  }
}

.faq-item.is-open {
  background: var(--paper);
}

.faq-q {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.18px;
}

.faq-q img {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.3s ease, visibility 0s linear 0.3s;
}

.faq-a-clip {
  overflow: hidden;
  min-height: 0;
}

.faq-a-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0 20px 24px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.32px;
}

.faq-item.is-open .faq-q {
  padding-bottom: 18px;
}

.faq-a p,
.faq-a ul {
  margin: 0;
}

.faq-a ul {
  padding-left: 1.5em;
}

.faq-a li {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.32px;
}

.faq-a strong {
  font-weight: 600;
}

.faq-a a {
  display: inline;
  overflow-wrap: anywhere;
  text-decoration: underline;
}

.faq-item.is-open .faq-a {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 0.3s ease, visibility 0s;
}

@media (min-width: 768px) {
  .faq-q,
  .faq-a-inner {
    padding-inline: 36px;
  }

  .faq-q {
    padding-block: 24px;
  }
}

@media (min-width: 1280px) {
  .faq-inner {
    flex-direction: row;
    gap: 36px;
    padding-block: 100px;
  }

  .faq h2 {
    width: 431px;
    flex-shrink: 0;
    font-size: 48px;
  }

  .faq-list {
    max-width: 900px;
  }

  .faq-q {
    font-size: 18px;
  }
}

/* Contact */
.contact,
.confirm {
  background: var(--dark-gray);
  color: var(--paper);
}

/* Contact form */
.contact-inner {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-block: 60px;
}

/* Confirm */
.confirm-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-block: 60px;
}

.contact-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
  width: 100%;
}

.contact-owl {
  display: block;
  width: 86px;
  height: 62px;
  flex-shrink: 0;
}

.confirm-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0;
  width: 100%;
}

.confirm-owl {
  box-sizing: border-box;
  width: 104px;
  height: 78px;
  margin-right: 20px;
  flex-shrink: 0;
}

.confirm-owl img {
  display: block;
  width: 104px;
  height: 78px;
  max-width: none;
  transform: scaleX(-1);
}

.contact h2,
.confirm h1 {
  margin: 0;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.2;
}

.confirm h1 {
  white-space: nowrap;
}

.contact-form,
.confirm-fields {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 36px;
}

.confirm-list {
  display: flex;
  width: 100%;
  flex-direction: column;
}

/* Contact form fields */
.form-fields {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 26px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field-label {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.32px;
}

.field-control {
  display: block;
  width: 100%;
  min-width: 0;
}

.req {
  color: var(--danger);
}

.field input,
.field textarea {
  width: 100%;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  padding: 10px 16px;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.32px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #bbb;
  opacity: 1;
}

.contact-form textarea {
  min-height: 332px;
  resize: none;
}

.checks {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
  min-inline-size: 0;
}

.checks > legend {
  display: block;
  padding: 0;
  margin: 0 0 20px;
}

.check-grid {
  display: grid;
  min-width: 0;
  gap: 18px;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.32px;
  cursor: pointer;
}

.check-box {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 1px solid var(--paper);
}

.check-box input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.check-box i {
  position: absolute;
  inset: 0;
  display: none;
  background: url("/assets/icon-check-black.svg") center / 20px 20px no-repeat;
  pointer-events: none;
}

.check-box:has(input:checked) {
  background: var(--paper);
}

.check-box input:checked + i {
  display: block;
}

.form-note {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: 0.24px;
}

.form-actions {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 20px;
}

.confirm-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--paper);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.32px;

  @media (hover: hover) {
    &:hover span::after {
      transform: scaleX(1);
    }
  }

  &:focus-visible span::after {
    transform: scaleX(1);
  }
}

.confirm-back img {
  width: 12px;
  height: 11px;
  flex-shrink: 0;
  transform: rotate(180deg);
}

.confirm-back span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.confirm-back span::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;

  @media (prefers-reduced-motion: reduce) {
    transition: none;
  }
}

.form-note p {
  margin: 0;
}

/* バッジは visibility で隠す（display:none は不可）。文言はフォーム内に出す */
.grecaptcha-badge {
  visibility: hidden;
}

.form-error {
  margin: 0;
  color: #9b1c1c;
  background: var(--faq);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.28px;
  padding: 10px 16px;
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"],
.field select[aria-invalid="true"] {
  box-shadow: inset 0 0 0 2px var(--danger);
}

.checks[aria-invalid="true"] .check-grid {
  outline: 2px solid var(--danger);
  outline-offset: 4px;
}

.confirm-row {
  display: flex;
  flex-direction: column;
  gap: 30px;
  border-bottom: 1px solid var(--paper);
  padding-block: 30px;
}

.confirm-row p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.32px;
}

.confirm-row .field-label {
  font-weight: 600;
}

.confirm-row > p:not(.field-label) {
  flex: 1;
  min-width: 0;
}

.message-pre {
  white-space: pre-wrap;
}

/* Complete / 404 */
.status-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  background: var(--dark-gray);
  color: var(--paper);
  text-align: center;
  padding: 96px 20px;
}

.status-page h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
}

.status-page p {
  margin: 20px 0 0;
  font-size: 18px;
  line-height: 1.4;
}

.status-page .btn-wrap {
  width: 100%;
  max-width: 377px;
}

/* Complete */
body:has(.status-page.complete) main {
  display: flex;
  flex-direction: column;
}

.status-page.complete {
  flex: 1;
  gap: 36px;
  padding: 60px 20px;
}

.complete-owl {
  width: 247px;
  height: 180px;
  flex-shrink: 0;
}

.complete-owl img {
  width: 100%;
  height: auto;
}

.complete-copy {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 20px;
}

.status-page.complete h1 {
  font-size: 32px;
  line-height: normal;
}

.status-page.complete p {
  margin: 0;
  font-size: 22px;
  line-height: 1.4;
}

.status-page.complete .btn-wrap {
  max-width: none;
}

@media (min-width: 768px) {
  .status-page.complete {
    padding: 200px 26px;
  }

  .complete-owl {
    width: 304px;
    height: 222px;
  }

  .status-page.complete h1 {
    font-size: 48px;
  }

  .status-page.complete .btn-wrap {
    max-width: 377px;
  }
}

@media (min-width: 1280px) {
  .status-page.complete {
    padding: 200px 36px;
  }
}

/* 404 */
.not-found h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
}

@media (min-width: 768px) {
  .contact-inner,
  .confirm-inner {
    padding-block: 100px;
  }

  .confirm-inner {
    gap: 36px;
  }

  .confirm-intro {
    align-items: center;
    gap: 36px;
  }

  .contact h2,
  .confirm h1 {
    font-size: 48px;
    line-height: normal;
  }

  .contact-owl {
    width: 108px;
    height: 78px;
  }

  .confirm-owl {
    width: 211px;
    height: 113px;
    margin-right: 0;
    padding-inline: 30px;
  }

  .confirm-owl img {
    width: 151px;
    height: 113px;
  }

  .form-fields {
    gap: 26px;
  }

  .field,
  .confirm-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
  }

  .checks {
    position: relative;
  }

  .checks > legend {
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
  }

  .check-grid {
    margin-left: 184px;
    min-width: 0;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
    row-gap: 18px;
  }

  .confirm-row {
    align-items: center;
    gap: 36px;
    padding-block: 36px;
  }

  .confirm-row:has(.message-pre) {
    align-items: flex-start;
  }

  .field-label {
    width: 164px;
    flex-shrink: 0;
  }

  .field-control {
    flex: 1;
    min-width: 0;
  }

  .contact-form textarea {
    min-height: 236px;
  }

  .form-note {
    gap: 2px;
  }

  .form-note,
  .form-actions,
  .form-error {
    margin-left: auto;
    width: calc(100% - 184px);
  }

  .confirm .form-actions,
  .confirm .form-error {
    margin-left: 0;
    width: 100%;
  }

  .field:not(:has(textarea)) {
    align-items: center;
  }
}

@media (min-width: 1280px) {
  .contact-inner,
  .confirm-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 36px;
    padding-block: 100px;
  }

  .contact-intro,
  .confirm-intro {
    display: flex;
    width: 433px;
    max-width: 38%;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }

  .confirm-intro {
    gap: 36px;
  }

  .contact-owl {
    width: 136px;
    height: 98px;
  }

  .confirm-owl {
    width: 283px;
    height: 154px;
    margin-right: 0;
    padding-inline: 40px;
  }

  .confirm-owl img {
    width: 203px;
    height: 154px;
  }

  .contact h2,
  .confirm h1 {
    font-size: 48px;
  }

  .contact-form,
  .confirm-fields {
    flex: 1;
    min-width: 0;
    max-width: 899px;
  }

  .form-fields {
    gap: 36px;
  }

  .field,
  .confirm-row {
    gap: 36px;
  }

  .checks > legend {
    margin: 0;
  }

  .check-grid {
    margin-left: 233px;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 36px;
  }

  .field-label {
    width: 197px;
  }

  .contact-form textarea {
    min-height: 212px;
  }

  .form-note,
  .form-actions,
  .form-error {
    width: calc(100% - 233px);
  }

  .confirm .form-actions {
    width: 100%;
    margin-left: 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
  }

  .confirm .form-error {
    width: calc(100% - 233px);
    margin-left: auto;
  }

  .confirm .form-actions button {
    width: calc(100% - 233px);
    flex-shrink: 0;
  }

  .status-page {
    padding: 200px 36px;
  }

  .status-page h1 {
    font-size: 48px;
  }

  .status-page p {
    font-size: 22px;
  }

  .not-found h1 {
    font-size: 68px;
  }
}

/* Production */
.prod-split {
  display: grid;
}

.prod-sticky {
  position: relative;
  min-height: 524px;
  background: var(--ink);
  color: var(--paper);
}

.prod-sticky-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #555;
  pointer-events: none;
  transform: translateZ(0);
}

.prod-grad {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateZ(0);
}

.prod-grad-svg {
  display: none;
}

html.hf-prod-svg .prod-grad-svg {
  display: block;
}

html.hf-prod-svg .prod-grad-video {
  display: none;
}

.prod-sticky-copy {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: 100px 48px;
}

.prod-sticky-copy h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.3;
}

.prod-sticky-copy p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.32px;
}

.prod-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  scroll-margin-top: 112px;
  padding: 36px 39px 0;
  text-align: center;
}

.prod-block:first-child {
  padding-top: 60px;
}

.prod-block:last-child {
  padding-bottom: 60px;
}

.prod-illust {
  width: 100%;
  max-width: 420px;
}

.prod-illust img {
  width: 100%;
  height: auto;
}

.prod-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  width: 100%;
}

.prod-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.prod-num {
  margin: 0;
  font-size: 100px;
  font-weight: 500;
  line-height: 1;
}

.prod-block h3 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.3;
}

.prod-rule {
  width: 42px;
  height: 1px;
  background: var(--ink);
}

.prod-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  text-align: left;
}

.prod-copy p,
.prod-dips {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.32px;
}

.prod-dips {
  text-decoration: underline;
}

.prod-cta {
  width: 100%;
}

.prod-spine {
  width: 1px;
  height: 100px;
  background: #ccc;
}

.partners {
  background: var(--partners-bg);
  padding-block: 60px;
}

.partners .site-pad {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 50px;
}

.partners .lined-title {
  align-self: center;
  margin-bottom: 0;
}

.partners .lined-title h3 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
  white-space: nowrap;
}

@media (max-width: 359px) {
  .partners .lined-title h3 {
    white-space: normal;
  }
}

.partners .line {
  display: none;
  width: 50px;
}

.lined-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.lined-title h3 {
  margin: 0;
  text-align: center;
  font-size: 24px;
  font-weight: 800;
}

.line {
  width: 48px;
  height: 1px;
  background: var(--ink);
}

.partner-grid {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 10px;
}

.partner-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 36px;
  border-radius: 8px;
  padding-bottom: 48px;
  background: var(--paper);
  transition: box-shadow 0.3s ease;

  @media (hover: hover) {
    &:hover {
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    }

    &:hover .partner-url {
      color: var(--primary);
      text-decoration: none;
    }
  }

  &:focus-visible {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  }

  &:focus-visible .partner-url {
    color: var(--primary);
    text-decoration: none;
  }

  @media (prefers-reduced-motion: reduce) {
    &,
    .partner-url {
      transition: none;
    }
  }
}

.partner-logo {
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background: #000;
}

.partner-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.partner-copy {
  display: flex;
  flex-direction: column;
  gap: 26px;
  min-width: 0;
  padding-inline: 48px;
}

.partner-card p {
  margin: 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.28px;
  overflow-wrap: break-word;
}

.partner-card .partner-url {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.32px;
  text-decoration: underline;
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

@media (min-width: 768px) {
  .partners {
    padding-block: 100px;
  }

  .partners .lined-title h3 {
    white-space: nowrap;
  }

  .partners .line {
    display: block;
  }

  .partner-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .prod-block {
    padding: 36px 87px 0;
  }

  .prod-block:first-child {
    padding-top: 100px;
  }

  .prod-block:last-child {
    padding-bottom: 100px;
  }

  .prod-block h3 {
    font-size: 34px;
  }

  .prod-sticky {
    min-height: 623px;
  }

  .prod-sticky-copy {
    padding: 100px 87px;
  }

  .prod-sticky-copy h2 {
    font-size: 48px;
  }

  .prod-sticky-copy p {
    font-size: 22px;
    line-height: 1.4;
    letter-spacing: 0;
  }
}

@media (min-width: 1280px) {
  .prod-split {
    max-width: calc(var(--content-width) + 72px);
    margin-inline: auto;
    grid-template-columns: 702px 1fr;
  }

  .prod-sticky,
  .prod-split > :last-child {
    min-width: 0;
  }

  .prod-sticky {
    position: sticky;
    top: 0;
    align-self: start;
    height: 100dvh;
    overflow: visible;
  }

  .prod-sticky-bg {
    left: min(0px, calc((var(--content-width) + 72px - 100vw) / 2));
  }

  .prod-sticky-copy {
    padding-inline: 72px;
  }

  .prod-sticky-copy h2 {
    font-size: 48px;
  }

  .prod-sticky-copy p {
    font-size: 22px;
    line-height: 1.4;
    letter-spacing: 0;
  }

  .prod-block {
    padding: 36px 153px 0;
  }

  .prod-spine {
    height: 160px;
  }

  .lined-title h3 {
    font-size: 34px;
  }

  .partners .lined-title h3 {
    font-size: 24px;
  }

  .partner-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
  }
}

@media (min-width: 1280px) and (max-width: 1440px) {
  .prod-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* Location */
.why {
  padding-block: 60px;
}

.why-top {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.why-top h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.3;
}

.why-top .lead {
  margin: 24px 0 0;
  font-size: 22px;
  line-height: 1.4;
  color: var(--dark-gray);
}

.why-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.why-copy {
  display: grid;
  gap: 20px;
  margin-top: 40px;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.32px;
}

.why-copy p {
  margin: 0;
}

.why-cards {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}

.why-card:nth-child(3) {
  order: 4;
}

.why-card:nth-child(4) {
  order: 3;
}

.why-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
  border-radius: 18px;
  padding: 36px;
}

.why-card.is-dark {
  background: var(--ink);
}

.why-card.is-gray {
  background: rgba(121, 127, 129, 0.75);
}

@media (max-width: 767px) {
  .why-card:nth-child(3) {
    background: rgba(121, 127, 129, 0.75);
  }

  .why-card:nth-child(4) {
    background: var(--ink);
  }
}

.why-card h3 {
  margin: 20px 0 0;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--paper);
}

.why-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.32px;
  color: var(--paper);
}

.permits {
  position: relative;
  overflow: hidden;
  padding: 49px;
}

.permits-bg {
  display: block;
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3;
}

.permits-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.permits-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.08);
}

.permits-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.permits-inner > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.permits h3 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.3;
}

.permits .lead {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: 0.18px;
  color: var(--dark-gray);
}

.permits-copy {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.32px;
}

.locations {
  padding-block: 60px;
}

.locations .lined-title {
  margin-bottom: 20px;
}

.locations .lined-title h3 {
  font-size: 28px;
}

.locations .lined-title img {
  display: none;
}

.loc-grid {
  display: grid;
  gap: 20px;
}

.loc-grid figure {
  margin: 0;
}

.loc-grid .photo {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.loc-grid .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.loc-grid figcaption {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
}

.loc-grid figcaption img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .why {
    padding-block: 100px;
  }

  .why-top h2 {
    font-size: 48px;
  }

  .why-top .lead {
    white-space: nowrap;
  }

  .why-copy,
  .why-cards {
    margin-top: 72px;
  }

  .why-copy {
    gap: 36px;
    font-size: 18px;
    line-height: 1.6;
    letter-spacing: 0.18px;
  }

  .locations .lined-title {
    margin-bottom: 36px;
  }

  .why-card {
    height: 368px;
    gap: 0;
  }

  .why-cards,
  .loc-grid {
    grid-template-columns: 1fr 1fr;
  }

  .permits {
    padding: 100px 87px;
  }

  .permits-inner {
    gap: 36px;
  }

  .permits-inner > div:first-child {
    gap: 24px;
  }

  .permits h3 {
    font-size: 34px;
  }

  .permits .lead {
    font-size: 22px;
    line-height: 1.4;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .permits-copy {
    font-size: 18px;
    line-height: 1.6;
    letter-spacing: 0.18px;
  }

  .locations {
    padding-block: 100px;
  }

  .locations .lined-title h3 {
    font-size: 34px;
  }

  .locations .lined-title img {
    display: block;
  }
}

@media (min-width: 1280px) {
  .why-top {
    flex-direction: row;
    align-items: center;
    gap: 36px;
  }

  .why-top > * {
    flex: 1;
    min-width: 0;
  }

  .why-photo {
    height: 387px;
    overflow: hidden;
  }

  .why-photo img {
    height: 100%;
    object-fit: cover;
  }

  .why-copy {
    grid-template-columns: repeat(3, 1fr);
  }

  .why-cards {
    grid-template-columns: repeat(4, 1fr);
    gap: 36px;
  }

  .why-card:nth-child(3),
  .why-card:nth-child(4) {
    order: 0;
  }

  .why-card {
    height: 360px;
  }

  .why-card.is-offset {
    margin-top: 60px;
  }

  .permits {
    padding: 100px 153px;
  }

  .permits-inner {
    flex-direction: row;
    align-items: center;
    gap: 127px;
    width: 100%;
    max-width: calc(1440px - 306px);
    margin-inline: auto;
  }

  .permits-inner > div:first-child {
    flex: 1;
    min-width: 0;
  }

  .permits-copy {
    width: 432px;
    max-width: 432px;
    flex-shrink: 0;
  }

  .loc-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
  }
}

/* 1280〜1440: PC横並び直後は lead の nowrap + 広い gap で copy に食い込む */
@media (min-width: 1280px) and (max-width: 1440px) {
  .permits-inner {
    gap: 48px;
  }

  .permits .lead {
    white-space: normal;
  }

  .permits-copy {
    width: min(432px, 38%);
    max-width: 432px;
    flex-shrink: 1;
  }
}

/* Terms / privacy */
.terms-intro {
  display: flex;
  justify-content: flex-start;
  padding-block: 60px;
  padding-inline: 39px;
}

.terms-intro-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 46px;
}

.terms-intro .lead {
  margin: 0;
  font-size: 22px;
  line-height: 1.4;
  color: var(--dark-gray);
}

.terms-intro p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.32px;
}

.term {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-block: 60px;
  padding-inline: 39px;
}

.term.is-tint {
  background: #eee;
}

.term.is-first {
  border-top: 1px solid #bbb;
  background: #f0f0f0;
}

.term.is-last {
  border-bottom: 1px solid #bbb;
}

.term h2 {
  display: flex;
  align-items: flex-start;
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.3;
}

.term-num {
  flex: none;
  margin-right: 0.3em;
}

.term h2 span:not(.term-num),
.term h3 span:not(.term-num) {
  min-width: 0;
}

.term-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.32px;
}

.term h3 {
  display: flex;
  align-items: flex-start;
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
}

.term-body p,
.term-body ul {
  margin: 0;
}

.term-body ul {
  padding-left: 24px;
}

.term-body li + li {
  margin-top: 10px;
}

.term-body li ul {
  margin-top: 10px;
}

.term-sub {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.term-body ul.term-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.term-items > li {
  display: flex;
  align-items: flex-start;
}

.term-body .term-items > li + li {
  margin-top: 0;
}

.term-items > li > :not(.term-num) {
  min-width: 0;
  flex: 1;
}

.term-items .term-items {
  margin-top: 10px;
}

.term-body a {
  text-decoration: underline;
  text-underline-offset: 3px;

  &:hover {
    color: var(--primary);
  }
}

.cancel-table {
  width: 100%;
  font-size: 16px;
  letter-spacing: 0.32px;
}

.cancel-head,
.cancel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
}

.cancel-head span,
.cancel-row span {
  flex: 1;
  min-width: 0;
}

.cancel-head span:last-child,
.cancel-row span:last-child {
  text-align: right;
}

.cancel-head {
  background: #000;
  color: var(--paper);
  font-weight: 800;
  line-height: 1.6;
}

.cancel-row {
  border-bottom: 1px solid #bbb;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}

@media (min-width: 768px) {
  .terms-intro,
  .term {
    padding-block: 100px;
    padding-inline: 87px;
  }

  .term h2 {
    font-size: 34px;
  }

  .term h3 {
    font-size: 22px;
  }

  .term-body {
    font-size: 18px;
    line-height: 1.6;
    letter-spacing: 0.18px;
  }

  .cancel-head,
  .cancel-row {
    padding: 18px 36px;
  }
}

@media (min-width: 1280px) {
  .terms-intro {
    padding-block: 100px;
  }

  .terms-intro,
  .term {
    padding-inline: max(36px, calc((100% - var(--content-width)) / 2));
  }

  .terms-intro {
    justify-content: flex-end;
  }

  .terms-intro-inner {
    max-width: 664px;
    gap: 72px;
  }

  .term {
    flex-direction: row;
    align-items: flex-start;
  }

  .term h2 {
    flex: 1;
  }
}
