/* ===== Tokens ===== */
:root {
  --white: #ffffff;
  --mist: #f5f3fb;
  --lavender: #cfc3f2;
  --iris: #5b4ba8;
  --iris-dark: #463889;
  --ink: #1c1a2e;
  --mute: #6e6a80;
  --line: #e6e2f0;

  --jp: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --en: "Instrument Sans", var(--jp);

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1240px;
  --sec: clamp(96px, 14vw, 180px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--jp);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .04em;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3, p { word-break: auto-phrase; text-wrap: pretty; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--iris); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.pc { display: none; }
@media (min-width: 768px) { .pc { display: inline; } }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--white); padding: 8px 16px; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== Buttons / links ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 28px; border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: .08em; line-height: 1.5; text-align: center;
  transition: background-color .25s, color .25s, border-color .25s;
}
.btn--primary { background: var(--iris); color: var(--white); }
.btn--primary:hover { background: var(--iris-dark); }
.btn--ghost { border: 1px solid var(--line); background: rgba(255,255,255,.6); }
.btn--ghost:hover { border-color: var(--iris); color: var(--iris); }
.btn--lg { min-height: 60px; padding: 16px 40px; font-size: 15px; }

.link {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--en); font-size: 14px; font-weight: 500; letter-spacing: .04em;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
  transition: color .25s;
}
.link:hover { color: var(--iris); }

/* ===== Header ===== */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; padding: 0 var(--gutter);
  transition: background-color .3s, box-shadow .3s;
}
.header.is-scrolled { background: rgba(255,255,255,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.header__logo img { height: 22px; width: auto; }
.nav { display: flex; align-items: center; gap: 40px; }
.nav__list { display: flex; gap: 32px; font-family: var(--en); font-size: 14px; font-weight: 500; }
.nav__list a { position: relative; padding: 4px 0; }
.nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__list a:hover::after { transform: scaleX(1); }
.nav__cta { min-height: 42px; padding: 10px 22px; font-size: 13px; }
.burger { display: none; }

@media (max-width: 960px) {
  .header { height: 64px; }
  .header__logo img { height: 18px; }
  .burger {
    display: grid; place-content: center; gap: 7px; position: relative; z-index: 2;
    width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; cursor: pointer;
  }
  .burger span { display: block; width: 24px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 48px;
    background: var(--white); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; align-items: center; gap: 24px; font-size: 28px; }
  .nav__cta { min-height: 52px; padding: 14px 36px; font-size: 15px; }
}

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; overflow: hidden;
  padding: 96px var(--gutter) 80px;
}
.hero__orb {
  position: absolute; left: 50%; top: 50%;
  width: min(150vh, 170vw); aspect-ratio: 16 / 9;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero__orb video { width: 100%; height: 100%; object-fit: cover; }
.hero__text { position: relative; text-align: center; }
.hero__label {
  font-family: var(--en); font-size: 13px; font-weight: 500; letter-spacing: .2em; color: var(--iris);
  margin-bottom: 28px;
}
.hero__title {
  font-size: clamp(34px, 6.4vw, 92px); font-weight: 500; line-height: 1.32; letter-spacing: .02em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; }
.hero__sub {
  max-width: 34em; margin: 32px auto 0;
  font-size: clamp(14px, 1.3vw, 16px); line-height: 2; color: var(--mute);
}
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 28px; width: 1px; height: 56px; background: var(--line); overflow: hidden;
}
.hero__scroll span { position: absolute; inset: 0; background: var(--iris); animation: scrollLine 2.2s var(--ease) infinite; }
@keyframes scrollLine { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* Load sequence (the page's one orchestrated moment) */
.js .hero__orb { opacity: 0; transform: translate(-50%, -50%) scale(.82); transition: opacity 1.6s var(--ease), transform 2.2s var(--ease); }
.js .hero__label, .js .hero__sub, .js .hero__actions { opacity: 0; transform: translateY(14px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .hero__title .line > span { transform: translateY(110%); transition: transform 1.2s var(--ease); }
.is-loaded .hero__orb { opacity: 1; transform: translate(-50%, -50%) scale(var(--orb-scale, 1)); }
.is-loaded .hero__label { opacity: 1; transform: none; transition-delay: .15s; }
.is-loaded .hero__title .line > span { transform: none; }
.is-loaded .hero__title .line:nth-child(1) > span { transition-delay: .25s; }
.is-loaded .hero__title .line:nth-child(2) > span { transition-delay: .38s; }
.is-loaded .hero__sub { opacity: 1; transform: none; transition-delay: .8s; }
.is-loaded .hero__actions { opacity: 1; transform: none; transition-delay: .9s; }
.is-loaded .hero__orb.is-settled { transition: opacity .2s linear, transform .2s linear; }

@media (max-width: 767px) {
  .hero__orb { width: 240vw; top: 46%; }
  .hero__actions .btn { flex: 1 1 100%; max-width: 320px; }
}

/* ===== Section heads ===== */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-title { font-family: var(--en); font-size: clamp(40px, 6vw, 76px); font-weight: 400; line-height: 1; letter-spacing: -.01em; }
.sec-note { color: var(--mute); font-size: 15px; }

/* ===== About ===== */
.about { padding: var(--sec) 0; }
.about__grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.about__title { font-size: clamp(32px, 4.6vw, 60px); font-weight: 500; line-height: 1.45; letter-spacing: .02em; }
.about__body { max-width: 36em; }
.about__body p + p { margin-top: 1.2em; }
.about__body p { color: var(--mute); }
.about__lead { color: var(--ink) !important; font-size: 20px; font-weight: 500; margin-bottom: 1.2em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 40px; }
.tags li { font-family: var(--en); font-size: 13px; padding: 6px 14px; border-radius: 999px; background: var(--mist); color: var(--iris); }
@media (min-width: 960px) {
  .about__grid { grid-template-columns: 5fr 6fr; gap: 80px; }
  .about__body { padding-top: 14px; }
}

/* ===== Service ===== */
.service { padding: 0 0 var(--sec); }
.service__list { display: grid; grid-template-columns: 1fr; gap: 56px 32px; }
.svc a { display: block; }
.svc__img { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 6px; background: var(--mist); margin-bottom: 24px; }
.svc__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.svc a:hover .svc__img img { transform: scale(1.04); }
.svc__en { font-family: var(--en); font-size: 12px; font-weight: 500; letter-spacing: .14em; color: var(--iris); margin-bottom: 8px; }
.svc__title { font-size: 22px; font-weight: 500; line-height: 1.5; margin-bottom: 12px; }
.svc__text { font-size: 15px; color: var(--mute); max-width: 32em; }
@media (min-width: 768px) {
  .service__list { grid-template-columns: 1fr 1fr; }
  .svc:nth-child(even) { margin-top: 96px; }
}

/* ===== Portfolio ===== */
.works { padding: var(--sec) 0; background: var(--mist); }
.works__grid { display: grid; grid-template-columns: 1fr; gap: 40px 24px; }
.work a { display: block; }
.work__thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: var(--lavender); margin-bottom: 16px; }
.work__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.work__thumb::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px;
  border-radius: 50%; background: rgba(255,255,255,.9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l8 5-8 5z' fill='%235b4ba8'/%3E%3C/svg%3E") center / 24px no-repeat;
  opacity: 0; transform: scale(.8); transition: opacity .3s, transform .3s var(--ease);
}
.work a:hover .work__thumb img { transform: scale(1.04); }
.work a:hover .work__thumb::after, .work a:focus-visible .work__thumb::after { opacity: 1; transform: none; }
.work__cat { font-family: var(--en); font-size: 12px; font-weight: 500; letter-spacing: .1em; color: var(--iris); }
.work__title { font-size: 16px; font-weight: 500; line-height: 1.6; margin: 4px 0 2px; }
.work__client { font-size: 13px; color: var(--mute); }
@media (min-width: 640px) { .works__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .works__grid { grid-template-columns: repeat(3, 1fr); } }

/* ===== Process ===== */
.process { padding: var(--sec) 0; }
.process__list { display: grid; grid-template-columns: 1fr; counter-reset: step; }
.process__list li { position: relative; padding: 0 0 40px 64px; }
.process__list li::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 1px; background: var(--line); }
.process__list li:last-child::before { display: none; }
.process__no {
  position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--lavender); background: var(--white);
  font-family: var(--en); font-size: 15px; color: var(--iris);
}
.process__list h3 { font-size: 18px; font-weight: 500; line-height: 40px; margin-bottom: 4px; }
.process__list p { font-size: 14px; color: var(--mute); }
@media (min-width: 960px) {
  .process__list { grid-template-columns: repeat(5, 1fr); gap: 24px; }
  .process__list li { padding: 64px 0 0; }
  .process__list li::before { left: 40px; right: -24px; top: 19px; bottom: auto; width: auto; height: 1px; }
  .process__list h3 { line-height: 1.5; margin-bottom: 8px; }
}

/* ===== Contact ===== */
.contact { position: relative; padding: var(--sec) 0; overflow: hidden; text-align: center; background: var(--white); }
.contact__orb {
  position: absolute; left: 50%; top: 50%; width: min(900px, 140vw); aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(circle at 40% 40%, rgba(207,195,242,.75), rgba(207,195,242,.25) 45%, rgba(255,255,255,0) 70%);
  filter: blur(20px); pointer-events: none;
}
.contact__inner { position: relative; }
.contact__title { font-size: clamp(28px, 4.4vw, 56px); font-weight: 500; line-height: 1.5; letter-spacing: .02em; }
.contact__note { margin-top: 20px; color: var(--mute); }
.contact__ways { display: flex; flex-direction: column; align-items: center; gap: 28px; margin-top: 48px; }
.way { display: inline-flex; align-items: baseline; gap: 14px; transition: color .25s; }
.way:hover { color: var(--iris); }
.way__k { font-size: 13px; color: var(--mute); }
.way__v { font-family: var(--en); font-size: 20px; font-weight: 500; }
@media (min-width: 768px) {
  .contact__ways { flex-direction: row; justify-content: center; gap: 48px; }
}

/* ===== Footer ===== */
.footer { padding: 96px 0 32px; border-top: 1px solid var(--line); overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 48px; font-size: 14px; }
.footer__co img { height: 22px; width: auto; margin-bottom: 24px; }
.footer__co address { color: var(--mute); line-height: 2; }
.footer__co a:hover, .footer__menu a:hover, .footer__sns a:hover { color: var(--iris); }
.footer__h { font-family: var(--en); font-size: 12px; color: var(--mute); letter-spacing: .1em; margin-bottom: 16px; }
.footer__menu li, .footer__sns li { font-family: var(--en); font-size: 15px; line-height: 2.2; }
.footer__slogan {
  margin: 80px 0 0; padding: 0 var(--gutter); text-align: center; white-space: nowrap;
  font-family: var(--en); font-weight: 400; font-size: 10.5vw; line-height: .9; letter-spacing: -.035em;
  background: linear-gradient(100deg, var(--lavender), var(--iris) 55%, #6f8fd0); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer__copy { margin-top: 32px; text-align: center; font-family: var(--en); font-size: 12px; color: var(--mute); }
@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}

.nav__list a[aria-current="page"]::after { transform: scaleX(1); }

/* ===== Sub pages ===== */
.page-head { position: relative; padding: clamp(150px, 20vw, 240px) 0 clamp(64px, 9vw, 120px); overflow: hidden; }
.page-head__orb {
  position: absolute; right: -8vw; top: 50%; width: min(64vw, 720px); transform: translateY(-50%);
  mix-blend-mode: multiply; pointer-events: none; opacity: .9;
  animation: orbFloat 9s ease-in-out infinite alternate;
}
@keyframes orbFloat { from { transform: translateY(-52%) rotate(0); } to { transform: translateY(-48%) rotate(8deg); } }
.page-head .wrap { position: relative; }
.page-head__title { font-family: var(--en); font-size: clamp(56px, 10vw, 140px); font-weight: 400; line-height: 1; letter-spacing: -.02em; }
.page-head__ja { margin-top: 20px; font-size: 15px; color: var(--iris); }
@media (max-width: 767px) { .page-head__orb { right: -30vw; width: 90vw; opacity: .7; } }

.block { padding: var(--sec) 0; }
.block--mist { background: var(--mist); }
.block:not(.block--mist) + .block:not(.block--mist) { padding-top: 0; }
.statement { font-size: clamp(28px, 4.4vw, 56px); font-weight: 500; line-height: 1.5; letter-spacing: .02em; }
.prose { max-width: 36em; color: var(--mute); }
.prose p + p { margin-top: 1.2em; }
.split { display: grid; gap: 40px; }
@media (min-width: 960px) { .split { grid-template-columns: 5fr 6fr; gap: 80px; } .split .prose { padding-top: 14px; } .split .statement { font-size: clamp(28px, 3.4vw, 46px); } }

/* Mission & Value */
.mission { text-align: center; }
.mission__k, .value__k, .strength__k { font-family: var(--en); font-size: 13px; font-weight: 500; letter-spacing: .14em; color: var(--iris); }
.mission__title { margin: 16px 0 12px; font-size: clamp(30px, 4.8vw, 60px); font-weight: 500; line-height: 1.4; }
.mission__text { color: var(--mute); }
.values { display: grid; gap: 24px; margin-top: clamp(56px, 8vw, 96px); }
.value { padding: clamp(28px, 4vw, 48px); background: var(--white); border-radius: 6px; }
.value__title { margin: 12px 0; font-size: 22px; font-weight: 500; line-height: 1.5; }
.value p:last-child { color: var(--mute); font-size: 15px; }
@media (min-width: 768px) { .values { grid-template-columns: 1fr 1fr; } }

/* Strength */
.strengths { display: grid; border-top: 1px solid var(--line); }
.strength { display: grid; gap: 8px 40px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.strength .strength__k { font-size: clamp(40px, 5vw, 64px); font-weight: 400; letter-spacing: -.01em; line-height: 1; }
.strength__title { font-size: 22px; font-weight: 500; line-height: 1.5; }
.strength p { color: var(--mute); font-size: 15px; max-width: 34em; }
@media (min-width: 960px) { .strength { grid-template-columns: 3fr 4fr 5fr; align-items: baseline; padding: 48px 0; } }

/* Company table */
.company { display: grid; border-top: 1px solid var(--line); font-size: 15px; }
.company > div { display: grid; gap: 4px 40px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.company dt { color: var(--mute); font-size: 14px; }
.company dd { margin: 0; }
.company dd li + li { margin-top: 4px; }
@media (min-width: 768px) { .company > div { grid-template-columns: 200px 1fr; } }

/* Service detail */
.lead { max-width: 40em; }
.lead__title { font-size: clamp(26px, 3.6vw, 44px); font-weight: 500; line-height: 1.5; margin-bottom: 20px; }
.lead p { color: var(--mute); }
.svc-detail { display: grid; gap: 32px; padding: clamp(64px, 9vw, 120px) 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.svc-detail:first-child { border-top: 0; padding-top: 0; }
.svc-detail__img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: var(--mist); }
.svc-detail__img img { width: 100%; height: 100%; object-fit: cover; }
.svc-detail__no { font-family: var(--en); font-size: 14px; color: var(--mute); }
.svc-detail__en { margin-top: 20px; font-family: var(--en); font-size: 13px; font-weight: 500; letter-spacing: .14em; color: var(--iris); }
.svc-detail__title { margin: 8px 0 20px; font-size: clamp(24px, 3vw, 36px); font-weight: 500; line-height: 1.45; }
.svc-detail__text { color: var(--mute); max-width: 32em; }
.recommend { margin-top: 32px; padding: 24px 28px; background: var(--mist); border-radius: 6px; }
.recommend__h { font-size: 14px; font-weight: 500; color: var(--iris); margin-bottom: 8px; }
.recommend li { position: relative; padding-left: 22px; font-size: 15px; line-height: 2; }
.recommend li::before { content: ""; position: absolute; left: 2px; top: .85em; width: 10px; height: 5px; border-left: 1.5px solid var(--iris); border-bottom: 1.5px solid var(--iris); transform: rotate(-45deg); }
@media (min-width: 960px) {
  .svc-detail { grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
  .svc-detail:nth-child(even) .svc-detail__img { order: 2; }
}

/* CTA band */
.cta-band { position: relative; overflow: hidden; padding: clamp(96px, 12vw, 160px) 0; background: var(--mist); text-align: center; }
.cta-band .contact__orb { opacity: .9; }
.cta-band__title { position: relative; font-size: clamp(26px, 4vw, 48px); font-weight: 500; line-height: 1.5; }
.cta-band__text { position: relative; margin: 16px auto 40px; color: var(--mute); max-width: 32em; }

/* Contact page */
.ways { display: grid; gap: 20px; }
.way-card { display: flex; flex-direction: column; padding: clamp(28px, 3.5vw, 40px); background: var(--white); border: 1px solid var(--line); border-radius: 6px; }
.way-card__k { font-family: var(--en); font-size: 13px; font-weight: 500; letter-spacing: .14em; color: var(--iris); }
.way-card__title { margin: 12px 0; font-size: 22px; font-weight: 500; }
.way-card__text { color: var(--mute); font-size: 15px; flex: 1; }
.way-card__action { margin-top: 28px; }
.way-card__action .btn { width: 100%; }
.way-card__value { font-family: var(--en); font-size: 20px; font-weight: 500; transition: color .25s; }
.way-card__value:hover { color: var(--iris); }
.qr { width: 120px; aspect-ratio: 1; margin-top: 16px; }
.qr img { width: 100%; height: 100%; object-fit: contain; }
@media (min-width: 960px) { .ways { grid-template-columns: repeat(3, 1fr); } }

.steps { display: grid; gap: 16px; counter-reset: s; }
.step { display: flex; align-items: center; gap: 20px; padding: 24px 28px; background: var(--white); border-radius: 6px; }
.step__no { font-family: var(--en); font-size: 13px; letter-spacing: .1em; color: var(--iris); white-space: nowrap; }
.step__title { font-size: 17px; font-weight: 500; }
@media (min-width: 960px) { .steps { grid-template-columns: repeat(3, 1fr); } .step { flex-direction: column; align-items: flex-start; gap: 8px; } }

.form-head { text-align: center; margin-bottom: clamp(40px, 6vw, 64px); }
.form-head p { margin-top: 12px; color: var(--mute); }
.form {
  display: grid; gap: 28px 24px; max-width: 880px; margin: 0 auto;
  padding: clamp(28px, 5vw, 56px); background: var(--white); border-radius: 6px;
}
@media (min-width: 768px) { .form { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 10px; min-width: 0; border: 0; margin: 0; padding: 0; }
.field > label, .field legend { font-size: 14px; font-weight: 500; padding: 0; }
.req, .opt { margin-left: 10px; font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 999px; vertical-align: 1px; }
.req { background: var(--iris); color: var(--white); }
.opt { background: var(--mist); color: var(--iris); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--white);
  font: inherit; font-size: 16px; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; line-height: 1.8; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--iris); box-shadow: 0 0 0 3px rgba(91,75,168,.15); }
.field.is-error input, .field.is-error textarea { border-color: #c2415b; }
.field__err { font-size: 13px; color: #c2415b; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.checks label { cursor: pointer; }
.checks input { position: absolute; opacity: 0; pointer-events: none; }
.checks span { display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; transition: background-color .2s, border-color .2s, color .2s; }
.checks input:checked + span { background: var(--iris); border-color: var(--iris); color: var(--white); }
.checks input:focus-visible + span { outline: 2px solid var(--iris); outline-offset: 3px; }
.agree { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.agree input { width: 18px; height: 18px; accent-color: var(--iris); }
.agree a { text-decoration: underline; text-underline-offset: 3px; }
.form__foot { text-align: center; }
.form__foot .btn { min-width: 240px; cursor: pointer; border: 0; font-family: inherit; }
.form__foot .btn:disabled { opacity: .6; cursor: wait; }
.form__status { margin-top: 16px; font-size: 14px; min-height: 1.5em; }
.form__status.is-ok { color: var(--iris); }
.form__status.is-ng { color: #c2415b; }

/* ===== Scroll text reveal ===== */
.js [data-split] .ch {
  display: inline-block; opacity: 0; filter: blur(8px); transform: translateY(.45em);
  transition: opacity .7s var(--ease), filter .7s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--i) * 28ms);
}
.js [data-split].is-in .ch { opacity: 1; filter: none; transform: none; }
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="2"] { transition-delay: .15s; }
.js [data-reveal="3"] { transition-delay: .3s; }
.footer__slogan { will-change: transform; }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .hero__orb, .js .hero__label, .js .hero__sub, .js .hero__actions, .js .hero__title .line > span { opacity: 1; transform: translate(-50%, -50%); }
  .js .hero__label, .js .hero__sub, .js .hero__actions, .js .hero__title .line > span { transform: none; }
}

/* ===== Privacy policy ===== */
.policy { max-width: 46em; }
.policy__sec { padding: 32px 0; border-top: 1px solid var(--line); }
.policy__sec h2 { font-size: 18px; font-weight: 500; margin-bottom: 12px; }
.policy__sec div { color: var(--mute); font-size: 15px; }
.policy__sec ul { margin-top: 8px; }
.policy__sec li { position: relative; padding-left: 1.2em; }
.policy__sec li::before { content: "・"; position: absolute; left: 0; }
.policy__date { padding-top: 32px; border-top: 1px solid var(--line); font-size: 14px; color: var(--mute); text-align: right; }
.footer__copy a { text-decoration: underline; text-underline-offset: 3px; }
.footer__copy a:hover { color: var(--iris); }

/* ===== AI video page ===== */
.ai-hero { position: relative; overflow: hidden; padding: clamp(150px, 18vw, 220px) 0 clamp(80px, 10vw, 140px); }
.ai-hero__orb {
  position: absolute; right: -6vw; top: 50%; width: min(70vw, 820px); transform: translateY(-50%);
  mix-blend-mode: multiply; pointer-events: none; animation: orbFloat 9s ease-in-out infinite alternate;
  -webkit-mask-image: radial-gradient(closest-side, #000 70%, transparent);
  mask-image: radial-gradient(closest-side, #000 70%, transparent);
}
.ai-hero__inner { position: relative; }
.ai-hero__title { font-size: clamp(40px, 7vw, 96px); font-weight: 500; line-height: 1.3; letter-spacing: .02em; }
.ai-hero__sub { max-width: 32em; margin-top: 28px; color: var(--mute); }
.ai-hero__actions { justify-content: flex-start; }
@media (max-width: 767px) { .ai-hero__orb { right: -40vw; width: 110vw; opacity: .7; } .ai-hero__actions .btn { flex: 0 1 auto; } }

.compare { overflow-x: auto; background: var(--white); border: 1px solid #ddd5f3; border-radius: 10px; box-shadow: 0 18px 48px -20px rgba(91, 75, 168, .28); }
.compare table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 20px 24px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: 13px; font-weight: 500; color: var(--mute); }
.compare thead th:last-child { color: var(--white); background: var(--iris); font-weight: 700; }
.compare tbody th { width: 22%; font-weight: 500; }
.compare tbody td { color: var(--mute); }
.compare tbody td:last-child { color: var(--iris-dark); font-weight: 700; background: rgba(207, 195, 242, .32); }

@media (min-width: 640px) { .works__grid--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .works__grid--2 { grid-template-columns: 1fr 1fr; } }

.uses { display: grid; gap: 1px; background: var(--line); border-radius: 6px; overflow: hidden; }
.use { padding: 32px 28px; background: var(--white); }
.use__title { font-size: 19px; font-weight: 500; margin-bottom: 8px; }
.use__text { font-size: 15px; color: var(--mute); }
@media (min-width: 768px) { .uses { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px) { .process__list--4 { grid-template-columns: repeat(4, 1fr); } }
.nb { display: inline-block; }
