:root {
  --base: #ffffff;
  --mist: #f7f7f7;
  --ink: #222222;
  --navy: #1f355e;
  --blue: #4c6fa8;
  --line: rgba(31, 53, 94, 0.12);
  --muted: rgba(34, 34, 34, 0.68);
  --shadow: 0 18px 46px rgba(31, 53, 94, 0.12);
  --font-ja: "Noto Sans JP", "Zen Kaku Gothic New", system-ui, sans-serif;
  --font-en: "Outfit", "Noto Sans JP", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font-family: var(--font-ja);
  letter-spacing: 0;
}

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

img,
svg {
  display: block;
}

svg {
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: auto 1fr auto;
  height: 68px;
  left: 0;
  padding: 0 max(18px, calc((100vw - 1120px) / 2));
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  color: var(--navy);
  font-family: var(--font-en);
  font-weight: 800;
}

.brand-lockup {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  min-width: 184px;
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 2px;
  box-shadow: 6px 6px 0 var(--navy);
  color: #fff;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  position: relative;
  width: 52px;
}

.brand-mark::after {
  background: var(--blue);
  bottom: 6px;
  content: "";
  height: 4px;
  left: 8px;
  position: absolute;
  width: 26px;
}

.brand-mark::before {
  background: rgba(255, 255, 255, 0.18);
  content: "";
  height: 100%;
  position: absolute;
  right: 8px;
  top: 0;
  transform: skewX(-18deg);
  width: 10px;
}

.brand-mark span {
  font-family: var(--font-en);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.brand-text {
  display: grid;
  gap: 1px;
  line-height: 1;
}

.brand-text strong {
  color: var(--ink);
  font-family: var(--font-en);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.brand-text small {
  color: var(--blue);
  font-family: var(--font-en);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 26px;
  justify-content: center;
}

.site-nav a {
  color: rgba(34, 34, 34, 0.7);
  font-family: var(--font-en);
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--navy);
}

.header-cta,
.button {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  min-height: 46px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.header-cta {
  background: var(--navy);
  color: #fff;
  font-size: 0.9rem;
  padding: 0 18px;
}

.button {
  border: 1px solid transparent;
  min-width: 172px;
  padding: 14px 22px;
}

.button:hover,
.header-cta:hover {
  transform: translateY(-3px);
}

.button.primary {
  background: var(--navy);
  box-shadow: var(--shadow);
  color: #fff;
}

.button.primary:hover,
.header-cta:hover {
  background: var(--blue);
}

.button.secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--navy);
}

.button.secondary:hover {
  border-color: rgba(76, 111, 168, 0.38);
  background: var(--mist);
}

.button.white {
  background: #fff;
  color: var(--navy);
}

.menu-button {
  display: none;
}

.hero {
  background: linear-gradient(180deg, #fff 0%, #fff 72%, var(--mist) 100%);
  min-height: 100svh;
  padding: 118px 0 64px;
}

.hero-inner,
.section-inner {
  margin: 0 auto;
  width: min(1120px, calc(100% - 36px));
}

.hero-inner {
  align-items: center;
  display: grid;
  gap: 54px;
  grid-template-columns: 1.02fr 0.98fr;
  min-height: calc(100svh - 182px);
}

.kicker {
  color: var(--blue);
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.kicker.light {
  color: rgba(255, 255, 255, 0.68);
}

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

h1 {
  font-size: clamp(2.45rem, 5.35vw, 4.2rem);
  font-weight: 900;
  line-height: 1.16;
  margin-bottom: 22px;
}

h1 span {
  color: var(--navy);
  display: block;
}

h2 {
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 22px;
}

h3 {
  color: var(--navy);
  font-size: 1.38rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.hero-lead,
.body-large {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 2;
  max-width: 660px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.seo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.seo-chips span,
.tags span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: rgba(34, 34, 34, 0.68);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 13px;
}

.hero-visual {
  animation: float 6s ease-in-out infinite;
}

.hero-visual img {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  height: auto;
  width: 100%;
}

.section {
  padding: 104px 0;
}

.section.muted {
  background: var(--mist);
}

.split {
  display: grid;
  gap: 56px;
  grid-template-columns: 0.88fr 1.12fr;
}

.section-title {
  max-width: 790px;
}

.section-lead {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.9;
  margin-top: -4px;
  max-width: 760px;
}

.section-photo {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(31, 53, 94, 0.1);
  height: auto;
  margin-top: 28px;
  width: 100%;
}

.concept-photo {
  max-height: 290px;
  object-fit: cover;
}

.flow-photo {
  max-height: 270px;
  object-fit: cover;
}

.concept-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 32px;
}

.concept-list div,
.work-card,
.service-card,
.profile-card,
.flow-list li,
.faq-list details,
.contact-note {
  border: 1px solid var(--line);
  border-radius: 8px;
}

.concept-list div {
  background: #fff;
  color: var(--navy);
  padding: 18px;
}

.concept-list span {
  color: var(--muted);
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.7;
  margin-top: 8px;
}

.card-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 44px;
}

.work-card,
.service-card,
.profile-card {
  background: #fff;
  box-shadow: 0 10px 32px rgba(31, 53, 94, 0.06);
  padding: 26px;
  transition: box-shadow 0.24s ease, transform 0.24s ease;
}

.work-card:hover,
.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-8px);
}

.work-image {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(31, 53, 94, 0.08), rgba(76, 111, 168, 0.08)),
    #f4f6f9;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  overflow: hidden;
  padding: 18px 18px 28px;
  position: relative;
  min-height: 242px;
  margin-bottom: 22px;
}

.browser-mock {
  background: #111827;
  border: 4px solid #172033;
  border-radius: 8px;
  box-shadow: 0 18px 34px rgba(31, 53, 94, 0.24);
  overflow: hidden;
  position: relative;
  transform: perspective(900px) rotateX(1deg) translateX(-12px);
  width: 82%;
  z-index: 1;
}

.browser-bar {
  align-items: center;
  background: #172033;
  display: flex;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
}

.browser-bar i {
  background: rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  height: 7px;
  width: 7px;
}

.browser-bar small {
  color: rgba(255, 255, 255, 0.64);
  font-family: var(--font-en);
  font-size: 0.62rem;
  font-weight: 700;
  margin-left: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-mock img {
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.35s ease;
  width: 100%;
}

.work-card:hover .browser-mock img {
  transform: scale(1.04);
}

.phone-mock {
  background: #101827;
  border: 4px solid #101827;
  border-radius: 20px;
  bottom: 20px;
  box-shadow: 0 14px 26px rgba(17, 24, 39, 0.28);
  height: 158px;
  overflow: hidden;
  position: absolute;
  right: 16px;
  width: 82px;
  z-index: 3;
}

.phone-mock span {
  background: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  height: 4px;
  left: 50%;
  position: absolute;
  top: 6px;
  transform: translateX(-50%);
  width: 18px;
  z-index: 2;
}

.phone-mock img {
  height: 100%;
  object-fit: cover;
  object-position: top center;
  width: 100%;
}

.phone-mock img.phone-img-contain {
  background: #f6f4ed;
  object-fit: contain;
}

.work-image::after {
  background: radial-gradient(circle at 82% 18%, rgba(76, 111, 168, 0.26), transparent 42%);
  content: "";
  inset: 0;
  position: absolute;
}

.work-logo {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(31, 53, 94, 0.14);
  border-radius: 8px;
  bottom: 14px;
  box-shadow: 0 10px 28px rgba(31, 53, 94, 0.18);
  color: var(--ink);
  display: grid;
  font-family: var(--font-en);
  gap: 2px;
  left: 14px;
  min-width: 118px;
  padding: 10px 12px;
  position: absolute;
  z-index: 2;
}

.work-logo b {
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.1;
}

.work-logo small {
  color: var(--blue);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.work-logo-metatron b {
  letter-spacing: 0.08em;
}

.work-logo-yayoi b,
.work-logo-iyashiya b,
.work-logo-yayoi-seitai b {
  font-family: var(--font-ja);
  letter-spacing: 0;
}

.mini {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.work-card p,
.service-card p,
.contact-note p {
  color: var(--muted);
  line-height: 1.8;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.service-card.featured {
  border-color: rgba(31, 53, 94, 0.34);
  box-shadow: var(--shadow);
}

.service-icon {
  color: var(--blue);
  font-family: var(--font-en);
  font-weight: 800;
}

.price {
  align-items: baseline;
  color: var(--ink) !important;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.price small {
  color: var(--blue);
  font-family: var(--font-jp);
  font-size: 0.82rem;
  font-weight: 700;
}

.service-card ul {
  border-top: 1px solid var(--line);
  list-style: none;
  margin: 24px 0 0;
  padding: 22px 0 0;
}

.service-card li {
  color: rgba(34, 34, 34, 0.72);
  line-height: 1.75;
  margin-bottom: 10px;
  padding-left: 24px;
  position: relative;
}

.service-card li::before {
  background: var(--blue);
  border-radius: 50%;
  content: "";
  height: 7px;
  left: 2px;
  position: absolute;
  top: 0.7em;
  width: 7px;
}

.service-note {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 32px rgba(31, 53, 94, 0.06);
  margin-top: 22px;
  padding: 26px;
}

.service-note h3 {
  margin-bottom: 8px;
}

.service-note p {
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 0;
}

.service-note .note-small {
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  margin-top: 14px;
  padding-top: 14px;
}

.about-split {
  align-items: center;
}

.profile-card {
  background: var(--mist);
}

.profile-items {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.profile-items span {
  background: #fff;
  border-radius: 8px;
  color: rgba(34, 34, 34, 0.72);
  font-weight: 800;
  padding: 16px;
}

.process-list {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
}

.process-list li {
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  display: grid;
  gap: 16px;
  grid-template-columns: auto 1fr;
  min-height: 0;
  padding: 20px;
}

.process-list span {
  color: var(--blue);
  font-family: var(--font-en);
  font-size: 0.82rem;
  font-weight: 900;
  padding-top: 4px;
}

.process-list h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.process-list p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.75;
  margin-bottom: 0;
}

.narrow {
  max-width: 880px;
}

.faq-list {
  display: grid;
  gap: 14px;
  margin-top: 42px;
}

.faq-list details {
  background: #fff;
  box-shadow: 0 10px 32px rgba(31, 53, 94, 0.05);
  padding: 22px 24px;
}

.faq-list summary {
  color: var(--navy);
  cursor: pointer;
  font-weight: 900;
  list-style: none;
  padding-right: 28px;
  position: relative;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  color: var(--muted);
  line-height: 1.8;
  margin: 16px 0 0;
}

.contact {
  background: var(--navy);
  color: #fff;
  padding: 96px 0;
}

.contact-inner {
  align-items: center;
  display: grid;
  gap: 54px;
  grid-template-columns: 1.08fr 0.92fr;
}

.contact h2 {
  color: #fff;
}

.contact p {
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.9;
}

.contact-note {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  padding: 28px;
}

.contact-note h3 {
  color: #fff;
}

.contact-note hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin: 24px 0;
}

.contact-note .note {
  font-size: 0.9rem;
}

.site-footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  padding: 28px 0;
  width: min(1120px, calc(100% - 36px));
}

.footer-logo {
  margin: 0;
}

.site-footer p:last-child {
  color: rgba(34, 34, 34, 0.58);
  font-size: 0.9rem;
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.72s ease, transform 0.72s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.08s;
}

.delay-2 {
  transition-delay: 0.16s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
    justify-content: space-between;
  }

  .menu-button {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    grid-column: 2;
    justify-self: end;
    height: 42px;
    justify-content: center;
    width: 42px;
  }

  .menu-button span {
    background: var(--navy);
    display: block;
    height: 2px;
    width: 17px;
  }

  .site-nav {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    gap: 0;
    left: 18px;
    padding: 10px;
    position: absolute;
    right: 18px;
    top: 78px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px;
    width: 100%;
  }

  .header-cta {
    display: none;
  }

  .hero-inner,
  .split,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 104px;
  }

  .card-grid,
  .process-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .hero-inner,
  .section-inner,
  .site-footer {
    width: min(100% - 28px, 1120px);
  }

  .hero-inner {
    gap: 34px;
  }

  .hero-copy {
    display: contents;
  }

  .hero-copy .kicker {
    order: 1;
  }

  .hero-copy h1 {
    order: 2;
  }

  .hero-visual {
    order: 3;
  }

  .hero-copy .hero-lead {
    order: 4;
  }

  .hero-copy .hero-actions {
    order: 5;
  }

  .hero-copy .seo-chips {
    order: 6;
  }

  .section {
    padding: 76px 0;
  }

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

  .button {
    min-width: 0;
  }

  .concept-list,
  .card-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .brand-lockup {
    min-width: 0;
  }

  .brand-mark {
    height: 38px;
    width: 48px;
  }

  .brand-text strong {
    font-size: 1.06rem;
  }

  .brand-text small {
    font-size: 0.52rem;
  }

  .section-photo {
    margin-top: 22px;
  }

  .process-list li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .work-image {
    min-height: 178px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

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