:root {
  --brand: #c13433;
  --brand-dark: #8f2222;
  --ink: #202124;
  --muted: #666b73;
  --line: #e5e0dc;
  --paper: #fffaf6;
  --white: #ffffff;
  --charcoal: #18191b;
  --shadow: 0 24px 80px rgba(32, 33, 36, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Sans JP", system-ui, sans-serif;
  background: var(--white);
  line-height: 1.8;
}

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

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(20px, 4vw, 56px);
  color: var(--white);
  background: rgba(255, 255, 255, 0);
  box-shadow: 0 10px 30px rgba(24, 25, 27, 0);
  backdrop-filter: blur(0);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease, backdrop-filter 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(24, 25, 27, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
}

.brand-text {
  font-size: 15px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 30px);
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  opacity: 0.92;
}

.nav-contact {
  padding: 9px 16px;
  color: var(--white);
  background: var(--brand);
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  color: inherit;
  background: transparent;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(24, 25, 27, 0.78) 0%, rgba(24, 25, 27, 0.54) 38%, rgba(24, 25, 27, 0.12) 72%),
    linear-gradient(180deg, rgba(193, 52, 51, 0.22), transparent 42%);
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 40px));
  margin-left: clamp(20px, 7vw, 92px);
  padding-top: 72px;
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffdcda;
}

.status-pill {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 8px 14px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 999px;
  background: rgba(193, 52, 51, 0.88);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.08;
  letter-spacing: 0;
}

h1 span {
  display: block;
  white-space: nowrap;
}

h2 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.28;
  letter-spacing: 0;
}

h3 {
  font-size: 22px;
  line-height: 1.35;
}

.hero-lead {
  max-width: 680px;
  margin-bottom: 34px;
  font-size: clamp(16px, 2vw, 19px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
}

.button.primary {
  color: var(--white);
  background: var(--brand);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
}

.section {
  padding: clamp(72px, 10vw, 128px) clamp(20px, 5vw, 72px);
}

.intro {
  background: var(--paper);
}

.intro-grid,
.company-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(300px, 1.2fr);
  gap: clamp(32px, 7vw, 96px);
  max-width: 1160px;
  margin: 0 auto;
}

.intro-copy {
  color: var(--muted);
  font-size: 16px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  max-width: 1160px;
  margin: 0 auto 34px;
}

.section-heading p {
  max-width: 430px;
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1160px;
  margin: 0 auto;
}

.service-card {
  position: relative;
  appearance: none;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  color: inherit;
  font: inherit;
  text-align: left;
  min-height: 280px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 40px rgba(32, 33, 36, 0.04);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.service-card::before,
.service-card::after {
  position: absolute;
  right: -1px;
  bottom: -1px;
  content: "";
  pointer-events: none;
}

.service-card::before {
  z-index: 1;
  display: none;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  color: var(--white);
  content: "TAP";
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 1px 5px rgba(143, 34, 34, 0.44);
  transform: translate(11px, 11px) rotate(-45deg);
  transition: transform 180ms ease;
}

.service-card::after {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #f2cfcc 0%, #d9827c 58%, #c13433 100%);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  transition: width 260ms cubic-bezier(0.2, 0.8, 0.2, 1), height 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.service-card h3,
.service-card p,
.service-card .service-number {
  text-align: left;
}

.service-card:focus {
  outline: none;
}

.service-card:hover,
.service-card:focus-visible,
.service-card.is-active {
  border-color: rgba(193, 52, 51, 0.44);
  box-shadow: 0 18px 54px rgba(32, 33, 36, 0.09);
  transform: translateY(-2px);
  outline: none;
}

.service-card:hover::before,
.service-card:focus-visible::before,
.service-card.is-active::before {
  transform: translate(5px, 5px) rotate(-45deg);
}

.service-card:hover::after,
.service-card:focus-visible::after,
.service-card.is-active::after {
  width: 56px;
  height: 56px;
}

.service-number {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--brand);
  font-weight: 800;
}

.service-card p,
.strength-list p,
.company-list dd {
  color: var(--muted);
}

.service-preview {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 44px);
  background: rgba(24, 25, 27, 0.68);
  backdrop-filter: blur(10px);
}

.service-preview[hidden] {
  display: none;
}

.service-preview-dialog {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 1.1fr);
  gap: clamp(24px, 4vw, 56px);
  width: min(1060px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: clamp(20px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.service-preview-image {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(135deg, #2b2f36, #c13433);
}

.service-preview-image::before,
.service-preview-image::after {
  position: absolute;
  content: "";
  border-radius: 999px;
}

.service-preview-image::before {
  inset: 38px auto auto 38px;
  width: 132px;
  height: 132px;
  background: rgba(255, 255, 255, 0.2);
}

.service-preview-image::after {
  right: 32px;
  bottom: 34px;
  width: 210px;
  height: 86px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}

.service-preview-image[data-visual="web"] {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px) 0 0 / 38px 38px,
    linear-gradient(135deg, #263238, #c13433);
}

.service-preview-image[data-visual="ai"] {
  background:
    radial-gradient(circle at 28% 28%, rgba(255, 255, 255, 0.78), transparent 9%),
    radial-gradient(circle at 65% 42%, rgba(255, 255, 255, 0.54), transparent 8%),
    radial-gradient(circle at 48% 72%, rgba(255, 255, 255, 0.42), transparent 7%),
    linear-gradient(135deg, #15171d, #9b2a2a);
}

.service-preview-image[data-visual="goods"] {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent 34%),
    linear-gradient(135deg, #f5f0ea, #c13433);
}

.service-preview-image[data-visual="vtuber"] {
  background:
    radial-gradient(circle at 70% 25%, rgba(255, 255, 255, 0.42), transparent 18%),
    linear-gradient(135deg, #24212b, #c13433 58%, #f3b3af);
}

.service-preview-image[data-visual="community"] {
  background:
    radial-gradient(circle at 30% 34%, rgba(255, 255, 255, 0.46), transparent 12%),
    radial-gradient(circle at 62% 40%, rgba(255, 255, 255, 0.38), transparent 10%),
    radial-gradient(circle at 48% 68%, rgba(255, 255, 255, 0.3), transparent 12%),
    linear-gradient(135deg, #16191d, #c13433);
}

.service-preview-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-preview-label {
  margin-bottom: 12px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.service-preview-copy h3 {
  margin-bottom: 16px;
  font-size: clamp(28px, 3vw, 42px);
}

.service-preview-copy p {
  color: var(--muted);
}

.service-preview-close {
  align-self: flex-start;
  min-height: 40px;
  margin-top: 10px;
  padding: 8px 16px;
  color: var(--brand);
  border: 1px solid rgba(193, 52, 51, 0.36);
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

body.service-modal-open {
  overflow: hidden;
}

.strength {
  background: var(--charcoal);
}

.strength-panel {
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 70px);
  color: var(--white);
  border-top: 4px solid var(--brand);
  background: #222427;
  box-shadow: var(--shadow);
}

.strength-panel h2 {
  max-width: 760px;
}

.strength-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 42px;
}

.strength-list div {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.strength-list strong {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}

.company {
  background: var(--white);
}

.company-list {
  margin: 0;
  border-top: 1px solid var(--line);
}

.company-list div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.company-list dt {
  font-weight: 800;
}

.company-list dd {
  margin: 0;
}

.contact {
  padding: clamp(72px, 11vw, 140px) 20px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(193, 52, 51, 0.94), rgba(143, 34, 34, 0.96)),
    var(--brand);
}

.contact-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.contact .eyebrow {
  color: #ffd8d6;
}

.contact-copy {
  max-width: 640px;
  margin: 0 auto;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 800;
  line-height: 1.6;
}

.contact .button.primary {
  margin-top: 24px;
  color: var(--brand);
  background: var(--white);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: var(--white);
  background: var(--charcoal);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

.back-to-top {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 14px 10px 18px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.back-to-top::after {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--brand);
  border-radius: 999px;
  background: var(--white);
  content: "\2191";
  font-size: 14px;
  line-height: 1;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  transform: translateY(-2px);
}

@media (max-width: 860px) {
  .site-header {
    min-height: 64px;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    padding-top: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(229, 224, 220, 0);
    transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease, backdrop-filter 180ms ease, border-color 180ms ease;
  }

  .site-header.is-open {
    border-bottom-color: rgba(229, 224, 220, 0.76);
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .site-nav {
    position: static;
    order: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    width: 100%;
    max-height: 0;
    padding: 0;
    color: var(--ink);
    border-top: 0;
    background: transparent;
    box-shadow: none;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-4px);
    transition: max-height 180ms ease, padding 180ms ease, opacity 160ms ease, transform 180ms ease;
  }

  .site-nav.is-open {
    max-height: 240px;
    padding: 8px 0 2px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 9px 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    text-align: right;
  }

  .nav-contact {
    margin-top: 8px;
    display: inline-block;
    padding: 10px 0 11px;
    color: var(--brand);
    border: 0;
    border-radius: 0;
    background: transparent;
    line-height: 1.35;
    text-align: center;
  }

  .hero {
    min-height: 760px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(24, 25, 27, 0.82) 0%, rgba(24, 25, 27, 0.52) 62%, rgba(24, 25, 27, 0.24) 100%),
      linear-gradient(180deg, rgba(193, 52, 51, 0.24), transparent 42%);
  }

  .hero-content {
    margin: 0 auto;
  }

  .intro-grid,
  .company-layout,
  .section-heading,
  .strength-list {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: grid;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card::after {
    width: 64px;
    height: 64px;
  }

  .service-card::before {
    right: 0;
    bottom: 0;
    display: flex;
  }

  .service-card:hover::after,
  .service-card:focus-visible::after,
  .service-card.is-active::after {
    width: 72px;
    height: 72px;
  }

  .service-card:hover::before,
  .service-card:focus-visible::before,
  .service-card.is-active::before {
    transform: translate(8px, 8px) rotate(-45deg);
  }

  .service-preview-dialog {
    grid-template-columns: 1fr;
  }

  .service-preview-image {
    min-height: 220px;
  }
}

@media (max-width: 560px) {
  .brand-text {
    font-size: 13px;
  }

  .hero {
    min-height: 700px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .company-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .site-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .back-to-top {
    justify-content: space-between;
    width: 100%;
  }
}
