:root {
  --bg: #fdfcfe;
  --bg-soft: #f7f5fc;
  --surface: #ffffff;
  --text: #37334a;
  --text-sub: #736d88;
  --line: #ebe7f3;
  --link: #6a5fd6;
  --c-yellow: #f8d675;
  --c-mint: #9fe3b9;
  --c-aqua: #7dd6e8;
  --c-lavender: #aaa5f7;
  --c-pink: #f497d6;
  --grad: linear-gradient(120deg, var(--c-yellow), var(--c-mint) 28%, var(--c-aqua) 52%, var(--c-lavender) 76%, var(--c-pink));
  --grad-soft: linear-gradient(135deg, #fff6dc, #e4f8ec 30%, #e2f5fb 55%, #ecebff 78%, #fde6f5);
  --grad-text: linear-gradient(110deg, #e6a93c, #3fbf86 30%, #2fb3d0 52%, #7f78ec 76%, #e468bd);
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow: 0 12px 32px -16px rgba(110, 96, 170, 0.28);
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --font-display: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Zen Kaku Gothic New", sans-serif;
  --max: 1080px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--link);
  text-underline-offset: 3px;
}

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

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(253, 252, 254, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--grad);
  opacity: 0.55;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
}

.nav {
  display: flex;
  gap: 26px;
}

.nav a {
  color: var(--text-sub);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

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

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 100px 0 120px;
}

.blob {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
}

.blob-1 {
  width: 420px;
  height: 420px;
  top: -120px;
  left: -140px;
  background: var(--c-yellow);
}

.blob-2 {
  width: 480px;
  height: 480px;
  top: 40px;
  right: -160px;
  background: var(--c-aqua);
}

.blob-3 {
  width: 440px;
  height: 440px;
  bottom: -220px;
  left: 35%;
  background: var(--c-pink);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
  gap: 40px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.24em;
  color: var(--text-sub);
  margin-bottom: 20px;
}

.hero h1 {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.45;
  letter-spacing: 0.06em;
}

.hero p {
  max-width: 540px;
  margin: 0 0 40px;
  color: var(--text-sub);
  font-size: 17px;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-visual .halo {
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 30px 80px -30px rgba(127, 120, 236, 0.45);
  backdrop-filter: blur(6px);
}

.hero-visual img {
  position: relative;
  width: min(340px, 100%);
  height: auto;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 10px 24px -12px rgba(55, 51, 74, 0.6);
  transition: transform 0.2s, box-shadow 0.2s;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -12px rgba(127, 120, 236, 0.7);
}

.button.ghost {
  position: relative;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  box-shadow: none;
}

.button.ghost::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

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

/* Sections */
section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-soft);
}

.section-head {
  margin-bottom: 56px;
}

.section-head .en {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 8px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 34px);
  letter-spacing: 0.08em;
}

.section-head p {
  margin: 16px 0 0;
  color: var(--text-sub);
  max-width: 620px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* Philosophy */
.philosophy {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.philosophy .item {
  padding: 32px 28px;
}

.philosophy .num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.philosophy h3 {
  margin: 14px 0 10px;
  font-family: var(--font-display);
  font-size: 20px;
}

.philosophy p {
  margin: 0;
  color: var(--text-sub);
  font-size: 15px;
}

/* Services */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service {
  padding: 40px 36px;
}

.service .icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--grad-soft);
  color: var(--text);
  margin-bottom: 20px;
}

.service h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 21px;
}

.service p {
  margin: 0 0 16px;
  color: var(--text-sub);
  font-size: 15px;
}

.service ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.service li {
  position: relative;
  padding-left: 18px;
}

.service li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad);
}

/* Apps */
.apps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.app {
  display: flex;
  flex-direction: column;
  padding: 28px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.app:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -18px rgba(127, 120, 236, 0.45);
}

.app-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.app-top img {
  width: 72px;
  height: 72px;
  border-radius: 22%;
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.app h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.5;
}

.app .tag {
  font-size: 12px;
  color: var(--text-sub);
}

.app p {
  margin: 0 0 20px;
  color: var(--text-sub);
  font-size: 14px;
  flex-grow: 1;
}

.app a {
  align-self: flex-start;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.app a:hover {
  text-decoration: underline;
}

/* Company */
.info {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

.info th,
.info td {
  padding: 22px 32px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.info tr:last-child th,
.info tr:last-child td {
  border-bottom: none;
}

.info th {
  width: 200px;
  font-weight: 700;
  white-space: nowrap;
}

.info td small {
  color: var(--text-sub);
}

/* Contact */
.contact-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 72px 32px;
  border-radius: var(--radius-lg);
  background: var(--grad-soft);
}

.contact-card h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 32px);
}

.contact-card p {
  margin: 0 0 32px;
  color: var(--text-sub);
}

.contact-card .mail {
  display: block;
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-sub);
}

/* Document pages */
.doc {
  padding: 80px 0 100px;
}

.doc .container {
  max-width: 760px;
}

.doc h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 38px);
  margin: 0 0 12px;
}

.doc .meta {
  color: var(--text-sub);
  font-size: 14px;
  margin-bottom: 48px;
}

.doc h2 {
  position: relative;
  font-family: var(--font-display);
  font-size: 20px;
  margin: 48px 0 12px;
  padding-left: 16px;
  line-height: 1.5;
}

.doc h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--c-yellow), var(--c-aqua), var(--c-pink));
}

.doc p,
.doc li {
  font-size: 15px;
}

.doc ul,
.doc ol {
  padding-left: 1.4em;
}

/* Footer */
.site-footer {
  position: relative;
  padding: 56px 0 40px;
  font-size: 14px;
  color: var(--text-sub);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad);
  opacity: 0.55;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.site-footer a {
  color: var(--text-sub);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .blob {
    animation: drift 18s ease-in-out infinite alternate;
  }

  .blob-2 {
    animation-duration: 22s;
    animation-delay: -6s;
  }

  .blob-3 {
    animation-duration: 26s;
    animation-delay: -12s;
  }

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

  .js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

  .js .reveal.visible {
    opacity: 1;
    transform: none;
  }
}

@keyframes drift {
  to {
    transform: translate(40px, 30px) scale(1.08);
  }
}

@keyframes float {
  50% {
    transform: translateY(-12px) rotate(-2deg);
  }
}

/* Responsive */
@media (max-width: 820px) {
  .philosophy,
  .services {
    grid-template-columns: 1fr;
  }

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

  .hero-visual {
    order: -1;
  }

  .hero-visual img {
    width: 220px;
  }
}

@media (max-width: 640px) {
  .nav {
    display: none;
  }

  .hero {
    padding: 56px 0 88px;
  }

  section {
    padding: 72px 0;
  }

  .service {
    padding: 32px 26px;
  }

  .info th,
  .info td {
    display: block;
    width: 100%;
    padding: 0 24px;
    border-bottom: none;
  }

  .info th {
    padding-top: 20px;
    font-size: 13px;
    color: var(--text-sub);
  }

  .info td {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
  }
}
