:root {
  --base: #ffffff;
  --ink: #333333;
  --main: #d6001c;
  --soft: #fff0f2;
  --gray: #f4f4f4;
  --ink-08: rgba(51, 51, 51, 0.08);
  --ink-16: rgba(51, 51, 51, 0.16);
  --ink-72: rgba(51, 51, 51, 0.72);
  --ink-88: rgba(51, 51, 51, 0.88);
  --max: 1180px;
  --content: 760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--base);
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: keep-all;
  text-align: left;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--main);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  min-height: 44px;
  padding: 8px 16px;
  background: var(--base);
  color: var(--ink);
  border: 1px solid var(--ink);
  transform: translateY(-120px);
}

.skip-link:focus {
  transform: translateY(0);
}

.hero {
  position: relative;
  min-height: min(420px, 72svh);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
  align-items: center;
  background: var(--base);
}

.hero-media {
  position: relative;
  min-height: min(420px, 72svh);
  overflow: hidden;
  background: var(--base);
}

.hero-image {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: contain;
  object-position: center bottom;
}

.hero-media::after {
  content: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  width: 100%;
  min-height: min(420px, 72svh);
  padding: clamp(32px, 4vw, 48px) clamp(24px, 3vw, 40px);
  color: var(--ink);
  background: var(--base);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--main);
  font-family: "Lato", system-ui, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--main);
}

h1,
h2,
h3,
p {
  margin-top: 0;
  text-align: left;
}

h1 {
  max-width: 640px;
  margin-bottom: 16px;
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.16;
}

.no-break {
  white-space: nowrap;
}

.hero-accent {
  color: var(--main);
}

.scramble-text {
  display: inline-block;
  min-width: max-content;
}

.hero-subcopy {
  max-width: 640px;
  margin: 0 0 32px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 640px;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 1px 20px 0;
  border: 0;
  border-radius: 0;
  color: var(--base);
  background: var(--main);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.hero-badges b {
  display: inline-block;
  font: inherit;
  transform: translateY(-2px);
}

.hero-badges em {
  display: inline-block;
  margin-right: 4px;
  font-size: 1.5em;
  font-style: italic;
  line-height: 1;
  transform: translateY(-4px);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.22;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

.lead {
  max-width: 560px;
  margin-bottom: 24px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-88);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  width: min(100%, 560px);
  margin: 28px 0 0;
  border-top: 1px solid var(--ink-16);
  border-bottom: 1px solid var(--ink-16);
}

.hero-stats div {
  padding: 14px 14px 14px 0;
}

.hero-stats dt,
.hero-stats dd {
  margin: 0;
}

.hero-stats dt {
  color: var(--ink-72);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.hero-stats dd {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.button {
  display: inline-grid;
  place-items: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid var(--main);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.button.primary {
  color: var(--base);
  background: var(--main);
}

.button.secondary {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--base);
}

.button:hover,
.text-link:hover,
.profile-links a:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--base);
}

.floating-actions {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
}

.floating-consult,
.floating-business {
  display: grid;
  place-items: center;
  min-width: 220px;
  min-height: 64px;
  padding: 0 24px;
  border: 2px solid var(--base);
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transition: transform 220ms ease;
}

.floating-consult {
  color: var(--base);
  background: linear-gradient(135deg, #ff6a78 0%, #e70024 48%, #b8001b 100%);
}

.floating-business {
  color: var(--ink);
  background: var(--base);
  border-color: #d8d8d8;
  font-size: 16px;
}

.floating-consult:hover,
.floating-business:hover {
  transform: scale(1.2);
}

.section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(64px, 8vw, 96px) 0;
  scroll-margin-top: 88px;
}

.reveal {
  --reveal-x: 0px;
  --reveal-y: 24px;
  opacity: 0;
  transform: translate3d(var(--reveal-x), var(--reveal-y), 0);
  transition:
    opacity 820ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 820ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-left {
  --reveal-x: -32px;
  --reveal-y: 0px;
}

.reveal-right {
  --reveal-x: 32px;
  --reveal-y: 0px;
}

.reveal-up {
  --reveal-y: 28px;
}

.reveal.is-visible {
  --reveal-x: 0px;
  --reveal-y: 0px;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

.parallax-soft {
  --parallax-y: 0px;
  transform: translate3d(0, var(--parallax-y), 0);
  will-change: transform;
}

.reveal.parallax-soft {
  transform: translate3d(var(--reveal-x), calc(var(--reveal-y) + var(--parallax-y)), 0);
}

.reveal.parallax-soft.is-visible {
  transform: translate3d(0, var(--parallax-y), 0);
}

.section-gray,
.section-black,
.section-red,
.section-white {
  width: 100%;
  padding-left: max(16px, calc((100% - var(--max)) / 2));
  padding-right: max(16px, calc((100% - var(--max)) / 2));
}

.section-gray {
  background: var(--gray);
}

.section-black {
  color: var(--base);
  background: var(--ink);
}

.section-red {
  color: var(--base);
  background: var(--main);
}

.section-white {
  background: var(--base);
}

.section-black .eyebrow,
.section-red .eyebrow {
  color: var(--base);
}

.section-black .section-lead,
.section-red .section-lead {
  color: rgba(255, 255, 255, 0.86);
}

.section-black .card {
  border-color: var(--base);
  background: var(--base);
  color: var(--ink);
}

.section-black .card p,
.section-black .card-meta {
  color: var(--ink-72);
}

.section-black .tag {
  color: var(--main);
  background: var(--soft);
}

.section-red .theme-layout article,
.section-red .menu-grid article {
  border-color: var(--base);
  background: var(--base);
  color: var(--ink);
}

.section-red .theme-layout p,
.section-red .menu-grid p {
  color: var(--ink-72);
}

.thumbnail-strip {
  overflow: hidden;
  padding: 16px 0;
  color: var(--base);
  background: var(--ink);
}

.thumbnail-strip-top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.wall-hero {
  display: grid;
  align-content: center;
  min-height: 56svh;
  padding: clamp(56px, 9vw, 104px) max(16px, calc((100% - var(--max)) / 2));
  color: var(--base);
  background: var(--main);
}

.wall-hero .eyebrow {
  color: var(--base);
}

.wall-hero .lead {
  color: rgba(255, 255, 255, 0.9);
}

.wall-hero .button.primary {
  border-color: var(--base);
  color: var(--main);
  background: var(--base);
}

.wall-hero .button.secondary {
  color: var(--base);
  border-color: var(--base);
  background: transparent;
}

.wall-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.wall-gallery {
  grid-template-columns: repeat(4, 1fr);
}

.strip-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto 16px;
}

.strip-head > div {
  display: grid;
  align-content: center;
  min-height: 44px;
}

.strip-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
  text-align: left;
}

.strip-head .eyebrow {
  margin: 0 0 6px;
  color: var(--base);
}

.strip-head .text-link {
  align-self: center;
  color: var(--base);
  border-color: rgba(255, 255, 255, 0.34);
  background: transparent;
}

.marquee {
  overflow: hidden;
  pointer-events: none;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 10px;
  animation: marquee 84s linear infinite;
}

.marquee-reverse .marquee-track {
  animation-name: marquee-reverse;
}

.marquee-item {
  flex: 0 0 auto;
  width: clamp(180px, 18vw, 252px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.marquee-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

@keyframes marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes marquee-reverse {
  from {
    transform: translate3d(-50%, 0, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

.section-head {
  max-width: var(--content);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 32px;
  text-align: center;
}

.section-head .eyebrow,
.section-head h2,
.section-head .section-lead {
  text-align: center;
}

.section-head.split {
  display: grid;
  justify-content: center;
  align-items: start;
  gap: 24px;
  max-width: none;
}

.section-lead {
  max-width: var(--content);
  margin: 16px auto 0;
  color: var(--ink-72);
  font-size: 16px;
  line-height: 1.8;
  text-align: center;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--ink-16);
  background: var(--base);
}

.metrics article {
  min-height: 132px;
  padding: 24px;
  border-right: 1px solid var(--ink-16);
  background: var(--base);
  text-align: left;
}

.metrics article:last-child {
  border-right: 0;
}

.metrics span {
  display: block;
  margin-bottom: 16px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
}

.metrics p,
.card p,
.theme-layout p,
.menu-grid p,
.profile p,
.contact p {
  margin-bottom: 0;
  color: var(--ink-72);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.video-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: var(--ink);
}

.video-play {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: var(--ink);
  position: relative;
  padding: 0;
  cursor: pointer;
}

.video-play img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.96) contrast(1.04);
}

.video-play::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(51, 51, 51, 0.08), rgba(51, 51, 51, 0.34));
}

.video-play span {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 72px;
  height: 48px;
  border-radius: 8px;
  color: var(--base);
  background: var(--main);
  font-family: "Lato", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  transform: translate(-50%, -50%);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--ink-16);
  border-radius: 8px;
  background: var(--base);
  color: var(--ink);
  text-align: left;
}

.card button {
  cursor: zoom-in;
  border: 0;
  padding: 0;
  background: transparent;
}

.card-media {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  background: var(--soft);
}

.card-body {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px;
  text-align: left;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--ink-72);
  font-size: 12px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-grid;
  place-items: center;
  min-height: 28px;
  padding: 0 8px;
  color: var(--main);
  background: var(--soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.text-link,
.profile-links a {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--ink-16);
  border-radius: 8px;
  background: var(--base);
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.text-link,
.profile-links a {
  display: inline-grid;
  place-items: center;
}

.theme-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.theme-layout article,
.menu-grid article {
  padding: 16px;
  border: 1px solid var(--ink-16);
  border-radius: 8px;
  background: var(--base);
  color: var(--ink);
  text-align: center;
}

.theme-layout article {
  display: grid;
  align-content: start;
  min-height: 128px;
}

.theme-layout .theme-card-large {
  grid-column: 1 / -1;
  min-height: 128px;
  background: var(--base);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.menu-grid article {
  min-height: 128px;
}

.profile {
  width: 100%;
  padding-left: max(16px, calc((100% - var(--max)) / 2));
  padding-right: max(16px, calc((100% - var(--max)) / 2));
  background: var(--soft);
}

.profile-body {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 0.58fr);
  gap: 32px;
  align-items: center;
  text-align: center;
}

.profile-body p {
  max-width: 760px;
  text-align: center;
}

.profile-portrait {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--ink-16);
  border-radius: 8px;
  background: var(--base);
}

.profile-portrait img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.profile-facts {
  display: grid;
  gap: 8px;
  max-width: 760px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.profile-facts li {
  padding: 16px;
  border: 1px solid var(--ink-16);
  border-radius: 8px;
  background: var(--base);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.55;
}

.profile-facts a {
  color: var(--main);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
}

.scene-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.scene-gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--ink-16);
  border-radius: 8px;
  background: var(--base);
}

.contact {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  padding-top: clamp(48px, 6vw, 72px);
  padding-bottom: clamp(48px, 6vw, 72px);
  border-top: 1px solid var(--ink-16);
  border-bottom: 1px solid var(--ink-16);
}

.contact p {
  max-width: 720px;
}

.site-footer {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  min-height: 72px;
  padding: 24px clamp(16px, 4vw, 40px) 128px;
  border-top: 1px solid var(--ink-08);
  color: var(--ink-72);
  text-align: right;
}

.site-footer a {
  display: inline-grid;
  place-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-weight: 700;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(51, 51, 51, 0.88);
}

.modal.is-open {
  display: grid;
}

.modal-inner {
  width: min(1120px, 100%);
  background: var(--base);
  border-radius: 8px;
  overflow: hidden;
}

.modal img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: var(--ink);
}

.modal-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
}

.modal-caption p {
  margin: 0;
}

.modal-close {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--ink-16);
  border-radius: 8px;
  background: var(--base);
  cursor: pointer;
}

@media (max-width: 920px) {
  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: 0;
    padding: 40px 16px 24px;
    order: 1;
    text-align: center;
  }

  .hero-media {
    min-height: 42svh;
    order: 2;
  }

  .hero-image {
    max-height: 42svh;
  }

  h1,
  .hero-subcopy,
  .hero-badges,
  .hero-copy .lead {
    text-align: center;
  }

  .hero-copy h1,
  .hero-subcopy,
  .hero-badges,
  .hero-copy .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-badges {
    justify-content: center;
  }

  .metrics,
  .featured-grid,
  .video-grid,
  .gallery,
  .wall-gallery,
  .theme-layout,
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .metrics article:nth-child(2) {
    border-right: 0;
  }

  .metrics article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--ink-16);
  }

  .section-head.split,
  .strip-head,
  .profile-body,
  .scene-gallery,
  .contact {
    grid-template-columns: 1fr;
  }

  .section-head.split {
    display: grid;
    align-items: start;
  }

  .profile-links {
    justify-content: start;
  }

  .theme-layout .theme-card-large {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  body {
    word-break: normal;
  }

  .hero-copy {
    width: min(100% - 32px, 520px);
    width: 100%;
    text-align: center;
  }

  h1 {
    font-size: 36px;
  }

  h1,
  h2,
  h3,
  p,
  .section-head,
  .section-lead,
  .metrics article,
  .theme-layout article,
  .menu-grid article,
  .profile-body p,
  .profile-facts li,
  .site-footer {
    text-align: center;
  }

  .lead,
  .section-head,
  .section-lead,
  .profile-body p,
  .profile-facts {
    margin-left: auto;
    margin-right: auto;
  }

  h2 {
    font-size: 28px;
  }

  .lead {
    font-size: 16px;
  }

  .button {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-stats div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--ink-08);
  }

  .hero-stats div:last-child {
    border-bottom: 0;
  }

  .hero-stats dd {
    margin-top: 0;
  }

  .thumbnail-strip {
    padding-top: 16px;
  }

  .strip-head h2 {
    font-size: 24px;
  }

  .marquee-item {
    width: 220px;
  }

  .metrics,
  .featured-grid,
  .video-grid,
  .gallery,
  .wall-gallery,
  .theme-layout,
  .menu-grid {
    grid-template-columns: 1fr;
  }

  .metrics article {
    border-right: 0;
    border-bottom: 1px solid var(--ink-16);
  }

  .metrics article:last-child {
    border-bottom: 0;
  }

  .theme-layout article:nth-child(1) {
    grid-column: auto;
  }

  .site-footer {
    align-items: flex-end;
    padding-bottom: 112px;
  }

  .floating-actions {
    left: 16px;
    right: 16px;
    justify-content: flex-end;
    gap: 8px;
  }

  .floating-consult,
  .floating-business {
    min-width: 0;
    min-height: 56px;
    width: calc((100vw - 40px) / 2);
    padding: 0 10px;
    border-radius: 12px;
    font-size: 12px;
  }

  .floating-business {
    font-size: 14px;
  }

  .modal {
    padding: 12px;
  }

  .modal-caption {
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
