:root {
  --color-bg: #ffffff;
  --color-bg-soft: #f8fafc;
  --color-bg-deep: #0f172a;
  --color-bg-deep-2: #1e293b;
  --color-text: #0f172a;
  --color-muted: #64748b;
  --color-line: #e2e8f0;
  --color-accent: #14b8a6;
  --color-accent-2: #3b82f6;
  --color-accent-dark: #0f766e;
  --color-card: #ffffff;
  --shadow-sm: 0 10px 24px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 20px 50px rgba(15, 23, 42, 0.13);
  --shadow-lg: 0 28px 70px rgba(15, 23, 42, 0.2);
  --radius: 8px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  background: var(--color-bg);
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-accent-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px max(20px, calc((100vw - var(--container)) / 2));
  background: rgba(15, 23, 42, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(20, 184, 166, 0.28);
  font-size: 14px;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
}

.site-nav a {
  color: #dbeafe;
  font-weight: 700;
}

.site-nav a:hover {
  color: #ffffff;
}

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 82% 18%, rgba(20, 184, 166, 0.34), transparent 30%),
    radial-gradient(circle at 12% 78%, rgba(59, 130, 246, 0.26), transparent 34%),
    linear-gradient(135deg, #0f172a 0%, #111f3a 48%, #1e293b 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -90px -120px auto;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 112px 0 128px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.26;
}

h1 {
  max-width: 900px;
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 800;
}

h3 {
  font-size: 21px;
  font-weight: 800;
}

.hero-copy {
  max-width: 720px;
  margin: 26px 0 36px;
  color: #dbeafe;
  font-size: 20px;
  font-weight: 600;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
  box-shadow: 0 18px 40px rgba(20, 184, 166, 0.32);
}

.button-primary:hover {
  box-shadow: 0 24px 56px rgba(59, 130, 246, 0.35);
  background: linear-gradient(135deg, #2dd4bf, #2563eb);
}

.button-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.14);
  background: linear-gradient(135deg, #1e293b, #0f172a);
  box-shadow: var(--shadow-sm);
}

.button-secondary:hover {
  border-color: rgba(20, 184, 166, 0.7);
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.section {
  padding: 108px 0;
}

.section-muted {
  background:
    linear-gradient(180deg, #f8fafc, #eef6f6);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 46px;
}

.section-heading p:not(.eyebrow),
.contact-heading p:not(.eyebrow) {
  margin: 16px 0 0;
  color: var(--color-muted);
  font-size: 17px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.service-card,
.portfolio-card,
.contact-form,
.legal-section {
  background: var(--color-card);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(20, 184, 166, 0.42);
  box-shadow: var(--shadow-lg);
}

.line-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin-bottom: 22px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
  border-radius: 50%;
  box-shadow: 0 14px 28px rgba(20, 184, 166, 0.26);
}

.line-icon svg {
  width: 29px;
  height: 29px;
  fill: currentColor;
  stroke: none;
}

.service-card p {
  margin: 16px 0 0;
  color: var(--color-muted);
}

.service-card .consult-note {
  margin-top: auto;
  padding-top: 22px;
  color: var(--color-accent-dark);
  font-size: 14px;
  font-weight: 800;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  color: var(--color-text);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.34);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.portfolio-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e8eeee;
  transition: transform 0.28s ease;
}

.portfolio-card:hover img {
  transform: scale(1.06);
}

.portfolio-card span {
  padding: 18px 18px 2px;
  font-size: 17px;
  font-weight: 800;
  transition: color 0.2s ease;
}

.portfolio-card:hover span {
  color: var(--color-accent-dark);
}

.portfolio-card small {
  padding: 0 18px 20px;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 700;
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.flow-list li {
  min-height: 160px;
  padding: 24px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.flow-list span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
  border-radius: 50%;
  font-weight: 800;
}

.flow-list p {
  margin: 20px 0 0;
  font-weight: 800;
  line-height: 1.55;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 42px;
  align-items: start;
}

.mail-note {
  font-weight: 800;
}

.contact-form {
  padding: 34px;
  box-shadow: var(--shadow-md);
}

.contact-cta {
  display: grid;
  gap: 20px;
  align-items: center;
  justify-items: center;
  padding: 48px 28px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #f4fbf9 0%, #ffffff 100%);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.contact-note {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.75;
}

.contact-sla {
  margin: 0;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 700;
}

.button-large {
  padding: 18px 36px;
  font-size: 17px;
  letter-spacing: 0.04em;
}

.form-field {
  display: grid;
  gap: 9px;
  margin-bottom: 20px;
}

label {
  color: #1e293b;
  font-weight: 800;
}

label span {
  display: inline-block;
  margin-left: 7px;
  padding: 2px 9px;
  color: #ffffff;
  background: var(--color-bg-deep-2);
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.5;
}

input,
textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: var(--color-text);
  font: inherit;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(20, 184, 166, 0.28);
  outline-offset: 2px;
}

input:focus,
textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

textarea {
  resize: vertical;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-status {
  display: none;
  margin: 0 0 18px;
  color: var(--color-muted);
  font-size: 14px;
}

.sns-section {
  color: #ffffff;
  background:
    radial-gradient(circle at 86% 10%, rgba(20, 184, 166, 0.3), transparent 26%),
    linear-gradient(135deg, var(--color-bg-deep), var(--color-bg-deep-2));
}

.sns-section h2 {
  color: #ffffff;
}

.sns-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.sns-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.site-footer {
  padding: 34px 0;
  color: #cbd5e1;
  background: #020617;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-inner p {
  margin: 0;
}

.site-footer a {
  color: #ffffff;
}

.page-hero {
  padding: 104px 0 72px;
  color: #ffffff;
  background:
    radial-gradient(circle at 78% 15%, rgba(20, 184, 166, 0.32), transparent 30%),
    linear-gradient(135deg, #0f172a, #1e293b);
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  color: #dbeafe;
  font-size: 17px;
}

.legal-layout {
  display: grid;
  gap: 26px;
  padding: 70px 0 108px;
}

.legal-section {
  padding: 34px;
  box-shadow: var(--shadow-sm);
}

.legal-section h2 {
  margin-bottom: 24px;
  font-size: 28px;
}

.legal-section h3 {
  margin-top: 24px;
  font-size: 18px;
}

.legal-section p {
  margin: 9px 0 0;
  color: var(--color-muted);
}

.legal-table {
  display: grid;
  grid-template-columns: 190px 1fr;
  margin: 0;
  border-top: 1px solid var(--color-line);
}

.legal-table dt,
.legal-table dd {
  margin: 0;
  padding: 15px 0;
  border-bottom: 1px solid var(--color-line);
}

.legal-table dt {
  color: var(--color-text);
  font-weight: 800;
}

.legal-table dd {
  color: var(--color-muted);
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

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

  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .site-header {
    padding: 13px 16px;
  }

  .site-nav {
    gap: 15px;
    font-size: 13px;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 76px 0 86px;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 30px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .section {
    padding: 78px 0;
  }

  .service-card,
  .contact-form,
  .legal-section {
    padding: 24px;
  }

  .portfolio-grid,
  .flow-list {
    grid-template-columns: 1fr;
  }

  .flow-list li {
    min-height: 124px;
  }

  .sns-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .sns-links,
  .sns-links .button,
  .contact-form .button {
    width: 100%;
  }

  .legal-table {
    grid-template-columns: 1fr;
  }

  .legal-table dt {
    padding-bottom: 2px;
    border-bottom: 0;
  }

  .legal-table dd {
    padding-top: 0;
  }
}
