/* Aya Prism LLC — ayaprism.com */
:root {
  --bg: #ffffff;
  --bg-2: #f6f6f8;
  --text: #16161a;
  --muted: #5f5f6b;
  --dim: #9a9aa5;
  --line: #e6e6ea;
  /* ロゴの4色（アクセントにだけ使う） */
  --m: #ff008c;
  --y: #d9ef00;
  --cy: #00d8c4;
  --g: #38d400;
  --spectrum: linear-gradient(90deg, #ff008c, #e7ff00 36%, #00ffe6 66%, #38ff00);
  --font-en: "Inter", "Zen Kaku Gothic New", system-ui, sans-serif;
  --font-ja: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 56px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::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-ja); font-size: 16px; line-height: 1.95; letter-spacing: .03em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: #16161a; color: #fff; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--text); color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip-link:focus { left: 8px; }

/* ---------- header（浮いたガラスのカプセル） ---------- */
.site-header { position: fixed; top: 14px; left: 0; right: 0; z-index: 100; padding: 0 14px; pointer-events: none; }
.header-bar {
  pointer-events: auto; position: relative;
  max-width: 1240px; margin: 0 auto; height: 64px;
  display: flex; align-items: center; gap: 16px; padding: 0 8px 0 22px;
  border-radius: 99px; border: 1px solid rgba(22, 22, 26, .07);
  background: rgba(255, 255, 255, .6);
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 10px 30px -20px rgba(22, 22, 26, .3);
  transition: background .4s, box-shadow .4s;
}
.site-header.is-scrolled .header-bar { background: rgba(255, 255, 255, .84); box-shadow: 0 14px 40px -22px rgba(22, 22, 26, .35); }
.brand { flex: none; }
.brand img { height: 26px; width: auto; }
.gnav { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 2px; padding: 4px; }
.header-tools { margin-left: auto; }
.gnav a { position: relative; z-index: 1; display: grid; justify-items: center; padding: 8px 16px; border-radius: 99px; line-height: 1.15; }
.nav-main { font-size: 13px; font-weight: 500; letter-spacing: .04em; color: var(--text); white-space: nowrap; }
.nav-sub { margin-top: 4px; font: 500 9.5px/1 var(--font-en); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.gnav-indicator {
  position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 99px;
  background: rgba(22, 22, 26, .06); opacity: 0;
  transition: transform .45s var(--ease), width .45s var(--ease), opacity .3s;
}
.header-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.lang-switch {
  --i: 0; position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: 3px; border-radius: 99px; background: rgba(22, 22, 26, .05);
}
.lang-switch button {
  position: relative; z-index: 1; border: 0; background: none; cursor: pointer;
  font: 500 11.5px/1 var(--font-en); letter-spacing: .04em; color: var(--muted);
  padding: 9px 11px; border-radius: 99px; transition: color .3s;
}
.lang-switch button[lang="zh"] { font-family: "Noto Sans SC", var(--font-ja); }
.lang-switch button[aria-pressed="true"] { color: var(--text); }
.lang-thumb {
  position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 3); border-radius: 99px;
  background: #fff; box-shadow: 0 1px 4px rgba(22, 22, 26, .14);
  transform: translateX(calc(100% * var(--i))); transition: transform .4s var(--ease);
}
.header-cta {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  background: var(--text); color: #fff; font-size: 13px; font-weight: 500; letter-spacing: .04em;
  padding: 13px 20px; border-radius: 99px; transition: opacity .25s;
}
.header-cta .arrow { font-family: var(--font-en); transition: transform .3s var(--ease); }
.header-cta:hover { opacity: .86; }
.header-cta:hover .arrow { transform: translateX(3px); }
.menu-btn { display: none; }

/* モバイル用メニュー */
.menu-sheet {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; padding: 112px 24px 32px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%);
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
  overflow-y: auto;
}
.is-menu-open .menu-sheet { opacity: 1; visibility: visible; }
.sheet-nav a {
  display: grid; grid-template-columns: 40px 1fr auto; align-items: baseline; gap: 8px;
  padding: 20px 4px; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.is-menu-open .sheet-nav a { opacity: 1; transform: none; }
.is-menu-open .sheet-nav a:nth-child(2) { transition-delay: .04s; }
.is-menu-open .sheet-nav a:nth-child(3) { transition-delay: .08s; }
.is-menu-open .sheet-nav a:nth-child(4) { transition-delay: .12s; }
.is-menu-open .sheet-nav a:nth-child(5) { transition-delay: .16s; }
.sheet-no { font: 500 12px/1 var(--font-en); color: var(--dim); }
.sheet-nav .nav-main { font-size: 22px; font-weight: 700; }
.sheet-nav .nav-sub { margin: 0; font-size: 11px; }
.sheet-foot { margin-top: auto; padding-top: 32px; }
.sheet-foot .lang-switch { width: 100%; }
.sheet-foot .lang-switch button { font-size: 13px; padding: 14px 10px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font: 500 14px/1 var(--font-ja); letter-spacing: .06em;
  padding: 17px 28px; border-radius: 99px;
  transition: background .3s, color .3s, border-color .3s, opacity .3s;
}
.btn .arrow { font-family: var(--font-en); transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--text); color: #fff; }
.btn-primary:hover { opacity: .85; }
.btn-ghost { border: 1px solid var(--line); color: var(--text); background: #fff; }
.btn-ghost:hover { border-color: var(--text); }
.btn-lg { padding: 22px 34px; font-size: 15px; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 140px var(--gutter) 96px; overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #fbfbfc 100%);
}
.prism { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--wrap); margin: 0 auto; }
.eyebrow { font: 500 12px/1 var(--font-en); letter-spacing: .22em; text-transform: uppercase; color: var(--dim); }
.hero-title { margin-top: 30px; font-weight: 700; font-size: clamp(38px, 6.2vw, 84px); line-height: 1.25; letter-spacing: .04em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-title .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease); }
.hero-title .line:nth-child(2) > span { transition-delay: .12s; }
.is-ready .hero-title .line > span { transform: none; }
.hero-lead { margin-top: 30px; color: var(--muted); font-size: clamp(15px, 1.3vw, 17px); }
.hero-actions { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero .eyebrow, .hero-lead, .hero-actions { opacity: 0; transform: translateY(14px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.is-ready .hero .eyebrow { opacity: 1; transform: none; }
.is-ready .hero-lead { opacity: 1; transform: none; transition-delay: .4s; }
.is-ready .hero-actions { opacity: 1; transform: none; transition-delay: .5s; }

/* ---------- sections ---------- */
.section { padding: clamp(96px, 12vw, 160px) 0; }
.sec-head { margin-bottom: clamp(44px, 6vw, 72px); }
.sec-en { font: 500 12px/1 var(--font-en); letter-spacing: .22em; text-transform: uppercase; color: var(--dim); display: flex; align-items: center; gap: 14px; }
.sec-en::before { content: ""; width: 28px; height: 2px; background: var(--spectrum); border-radius: 2px; }
.sec-ja { margin-top: 18px; font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; letter-spacing: .06em; line-height: 1.4; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

.hero-title, .about-lead, .contact-title { word-break: keep-all; overflow-wrap: anywhere; }
html[lang="en"] body { font-family: var(--font-en); letter-spacing: 0; line-height: 1.8; }
html[lang="en"] .hero-title { letter-spacing: -.025em; font-weight: 600; line-height: 1.1; }
html[lang="en"] .sec-ja, html[lang="en"] .about-lead, html[lang="en"] .contact-title, html[lang="en"] .svc h3 { letter-spacing: -.01em; font-weight: 600; }
html[lang="zh-CN"] body { font-family: "Noto Sans SC", var(--font-ja); }

/* about */
.about { border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-lead { font-weight: 700; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.7; letter-spacing: .05em; }
.about-body p { color: var(--muted); }
.about-body p + p { margin-top: 1.4em; }

/* services */
.services { background: var(--bg-2); }
.svc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.svc {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: clamp(28px, 3.4vw, 44px); position: relative; overflow: hidden;
  transition: box-shadow .4s var(--ease), transform .4s var(--ease);
}
.svc::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.svc:hover { box-shadow: 0 18px 40px -24px rgba(22, 22, 26, .25); transform: translateY(-2px); }
.svc:hover::before { transform: scaleX(1); }
.svc-no { font: 500 13px/1 var(--font-en); color: var(--dim); display: flex; align-items: center; gap: 10px; }
.svc-no::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.svc h3 { margin-top: 24px; font-size: clamp(19px, 1.8vw, 22px); font-weight: 700; letter-spacing: .05em; line-height: 1.5; }
.svc-en { margin-top: 6px; font: 400 13px/1.4 var(--font-en); color: var(--dim); letter-spacing: .02em; }
.svc-text { margin-top: 18px; color: var(--muted); font-size: 15px; }

/* works */
.works-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 40px); }
.work { display: block; }
.work-thumb { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--bg-2); }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.work:hover .work-thumb img { transform: scale(1.04); }
.work .work-cat { margin-top: 20px; }
.work-cat { font: 500 11px/1 var(--font-en); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.work-title { margin-top: 10px; font-size: 17px; font-weight: 700; line-height: 1.6; letter-spacing: .03em; }
.work:hover .work-title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.work-sub { margin-top: 4px; font-size: 14px; color: var(--muted); }
.works-list { margin-top: clamp(48px, 6vw, 72px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.works-list li { border-top: 1px solid var(--text); padding-top: 22px; }
.works-list h3 { margin-top: 12px; font-size: 16px; font-weight: 700; line-height: 1.6; letter-spacing: .03em; }
.works-list li > p:last-child { margin-top: 10px; font-size: 14px; color: var(--muted); line-height: 1.85; }

/* company */
.company { background: var(--bg-2); }
.profile { background: #fff; border-radius: 16px; border: 1px solid var(--line); padding: 8px clamp(20px, 3vw, 40px); }
.profile > div { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.profile > div:last-child { border-bottom: 0; }
.profile dt { font-size: 14px; color: var(--dim); font-weight: 500; }
.profile dd { font-size: 15px; }
.profile .en { margin-left: 14px; font-family: var(--font-en); color: var(--dim); font-size: 13px; }
.biz { counter-reset: biz; }
.biz li { counter-increment: biz; position: relative; padding-left: 1.8em; }
.biz li + li { margin-top: 4px; }
.biz li::before { content: counter(biz) "."; position: absolute; left: 0; font-family: var(--font-en); color: var(--dim); }

/* contact */
.contact-card {
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  padding: clamp(36px, 5vw, 64px); border-radius: 20px; background: var(--text); color: #fff; position: relative; overflow: hidden;
}
.contact-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--spectrum); }
.contact-card .sec-en { color: rgba(255, 255, 255, .55); }
.contact-title { margin-top: 18px; font-size: clamp(26px, 3vw, 36px); font-weight: 700; letter-spacing: .06em; }
.contact-lead { margin-top: 16px; color: rgba(255, 255, 255, .72); max-width: 32em; font-size: 15px; }
.contact-card .btn-primary { background: #fff; color: var(--text); }

/* footer */
.site-footer { padding: 48px 0 40px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.footer-logo { height: 24px; width: auto; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { font: 500 12px/1 var(--font-en); letter-spacing: .06em; color: var(--muted); }
.footer-nav a:hover { color: var(--text); }
.copy { margin-left: auto; font: 400 12px/1 var(--font-en); color: var(--dim); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .gnav, .header-tools > .lang-switch { display: none; }
  .header-bar { justify-content: space-between; }
  .menu-btn {
    display: grid; align-content: center; justify-items: center; gap: 6px; width: 46px; height: 46px; padding: 0;
    background: var(--text); border: 0; border-radius: 50%; cursor: pointer;
  }
  .menu-btn span { display: block; width: 16px; height: 1.5px; background: #fff; transition: transform .35s var(--ease); }
  .is-menu-open .menu-btn span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .is-menu-open .menu-btn span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .works-list { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .header-cta { display: none; }
  .header-bar { height: 58px; padding-left: 18px; }
  .brand img { height: 22px; }
  .sp-none { display: none; }
  .hero { align-items: flex-end; padding-bottom: 88px; }
  .svc-list, .works-grid { grid-template-columns: 1fr; }
  .profile > div { grid-template-columns: 1fr; gap: 4px; padding: 20px 0; }
  .profile .en { display: block; margin: 2px 0 0; }
  .copy { margin-left: 0; width: 100%; }
  .contact-card .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal, .hero-title .line > span, .hero-lead, .hero-actions, .hero .eyebrow { opacity: 1; transform: none; }
}
