/* ==========================================================================
   NOVA WORKS - main stylesheet
   ========================================================================== */

:root {
  --c-bg: #f6f7fb;
  --c-surface: #ffffff;
  --c-ink: #0b0d17;
  --c-sub: #5b6175;
  --c-line: #e3e6ef;
  --c-dark: #0b0d17;
  --c-accent: #5b5bf7;
  --c-accent2: #18c6d8;
  --c-accent3: #ff6fa8;
  --grad: linear-gradient(120deg, var(--c-accent) 0%, var(--c-accent2) 100%);
  --grad-3: linear-gradient(120deg, var(--c-accent) 0%, var(--c-accent2) 50%, var(--c-accent3) 100%);
  --f-en: "Outfit", "Noto Sans JP", sans-serif;
  --f-ja: "Noto Sans JP", sans-serif;
  --radius: 20px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --container: 1200px;
  --header-h: 80px;
  --gutter: clamp(16px, 4vw, 40px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-ja);
  font-size: 16px;
  line-height: 1.9;
  color: var(--c-ink);
  background: var(--c-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--c-accent); color: #fff; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.grad-text { background: var(--grad-3); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: var(--c-dark); color: #fff;
  transition: opacity .8s var(--ease) .2s, visibility .8s .2s;
}
.loader__logo { font-family: var(--f-en); font-weight: 700; font-size: 28px; letter-spacing: .2em; overflow: hidden; }
.loader__logo span { display: inline-block; animation: loaderIn .9s var(--ease) both; }
.loader__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--grad); transform-origin: left; animation: loaderBar 1.2s var(--ease) both; }
.is-loaded .loader { opacity: 0; visibility: hidden; }
.is-quick .loader { transition-duration: .35s; transition-delay: 0s; }
.is-quick .loader__logo, .is-quick .loader__bar { display: none; }
@keyframes loaderIn { from { transform: translateY(110%); } to { transform: none; } }
@keyframes loaderBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Cursor ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 999; pointer-events: none; display: none; }
.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor__dot { width: 6px; height: 6px; background: var(--c-accent); }
.cursor__ring { width: 36px; height: 36px; border: 1px solid rgba(91, 91, 247, .5); transition: width .3s var(--ease), height .3s var(--ease), background .3s; }
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; background: rgba(91, 91, 247, .1); }
@media (pointer: fine) { .cursor { display: block; } }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  transition: background .4s, box-shadow .4s, height .4s var(--ease), color .4s;
  color: #fff;
}
.header--light { color: var(--c-ink); }
.header.is-scrolled {
  height: 64px; color: var(--c-ink);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--c-line);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--f-en); font-weight: 700; font-size: 20px; letter-spacing: .12em; }
.logo__mark { width: 28px; height: 28px; border-radius: 8px; background: var(--grad); position: relative; overflow: hidden; }
.logo__mark::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: rgba(255, 255, 255, .9); animation: pulse 3s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.55); } }

.nav__list { display: flex; align-items: center; gap: 36px; }
.nav__list a { position: relative; font-family: var(--f-en); font-size: 14px; font-weight: 500; letter-spacing: .08em; display: flex; flex-direction: column; line-height: 1.3; }
.nav__list a small { font-family: var(--f-ja); font-size: 10px; opacity: .6; letter-spacing: .1em; }
.nav__list a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav__list a:hover::after, .nav__list .current-menu-item a::after, .nav__list a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { margin-left: 8px; }
.nav__list .nav__cta a { flex-direction: row; }
.nav__list .nav__cta a::after { display: none; }
.logo { position: relative; z-index: 120; }

.menu-btn { display: none; width: 44px; height: 44px; position: relative; z-index: 120; }
.menu-btn span { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; transition: transform .4s var(--ease), opacity .3s; }
.menu-btn span:nth-child(1) { top: 16px; }
.menu-btn span:nth-child(2) { top: 26px; }
.is-menu-open .menu-btn span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.is-menu-open .menu-btn span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 110;
    display: flex; align-items: center; justify-content: center;
    background: var(--c-dark); color: #fff;
    clip-path: circle(0% at calc(100% - 40px) 40px);
    transition: clip-path .8s var(--ease);
  }
  .is-menu-open .nav { clip-path: circle(150% at calc(100% - 40px) 40px); }
  /* backdrop-filter would trap the fixed nav inside the header box */
  .is-menu-open .header { color: #fff; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .is-menu-open .header .btn--ghost:hover span { color: var(--c-dark); }
  .nav__list { flex-direction: column; gap: 28px; text-align: center; }
  .nav__list a { font-size: 28px; align-items: center; }
  .nav__list a small { font-size: 12px; }
  .nav__cta { margin: 12px 0 0; }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 32px; border-radius: 999px;
  font-family: var(--f-en); font-weight: 600; font-size: 15px; letter-spacing: .06em;
  overflow: hidden; isolation: isolate;
  transition: transform .4s var(--ease), box-shadow .4s, color .4s;
}
.btn--primary { color: #fff; background: var(--grad); box-shadow: 0 10px 30px -10px rgba(91, 91, 247, .7); }
.btn--primary::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, var(--c-accent3), var(--c-accent)); opacity: 0; transition: opacity .4s; }
.btn--primary:hover::before { opacity: 1; }
.btn--primary:hover { box-shadow: 0 16px 40px -12px rgba(255, 111, 168, .7); }
.btn--ghost { color: currentColor; border: 1px solid currentColor; }
.btn--ghost::before { content: ""; position: absolute; inset: 0; z-index: -1; background: currentColor; transform: translateY(101%); transition: transform .5s var(--ease); }
.btn--ghost:hover::before { transform: none; }
.btn--ghost:hover span { color: var(--c-dark); }
.header.is-scrolled .btn--ghost:hover span, .section .btn--ghost:hover span { color: #fff; }
.btn--sm { padding: 10px 22px; font-size: 13px; }
.btn__arrow { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- Hero (front) ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  background: var(--c-dark); color: #fff; overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; mix-blend-mode: screen; }
.hero__blob--1 { width: 520px; height: 520px; background: var(--c-accent); top: -120px; right: -80px; animation: float1 14s ease-in-out infinite; }
.hero__blob--2 { width: 420px; height: 420px; background: var(--c-accent2); bottom: -140px; left: 10%; animation: float2 18s ease-in-out infinite; }
.hero__blob--3 { width: 300px; height: 300px; background: var(--c-accent3); top: 40%; right: 30%; opacity: .35; animation: float3 16s ease-in-out infinite; }
@keyframes float1 { 50% { transform: translate(-120px, 80px) scale(1.15); } }
@keyframes float2 { 50% { transform: translate(140px, -60px) scale(.9); } }
@keyframes float3 { 50% { transform: translate(-80px, -100px) scale(1.2); } }

.hero__inner { position: relative; z-index: 2; padding-top: var(--header-h); }
.hero__label { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-en); font-size: 13px; letter-spacing: .3em; text-transform: uppercase; opacity: 0; transform: translateY(20px); transition: all 1s var(--ease) .9s; }
.hero__label::before { content: ""; width: 40px; height: 1px; background: currentColor; }
.hero__title { margin: 24px 0 28px; font-family: var(--f-en); font-weight: 700; font-size: clamp(48px, 10vw, 140px); line-height: 1; letter-spacing: -.02em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero__title .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.2s var(--ease); }
.hero__title .line:nth-child(2) > span { transition-delay: .12s; }
.hero__title em { font-style: normal; }
.hero__lead { max-width: 560px; font-size: clamp(15px, 1.6vw, 18px); color: rgba(255, 255, 255, .78); opacity: 0; transform: translateY(20px); transition: all 1s var(--ease) 1.1s; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; opacity: 0; transform: translateY(20px); transition: all 1s var(--ease) 1.3s; }
.is-loaded .hero__title .line > span, .is-loaded .page-hero__title .line > span { transform: none; }
.is-loaded .hero__label, .is-loaded .hero__lead, .is-loaded .hero__actions { opacity: 1; transform: none; }

.hero__scroll { position: absolute; z-index: 2; left: 50%; bottom: 32px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--f-en); font-size: 11px; letter-spacing: .3em; }
.hero__scroll i { width: 1px; height: 60px; background: rgba(255, 255, 255, .25); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 50%; background: #fff; animation: scrollLine 2s var(--ease) infinite; }
@media (max-width: 600px), (max-height: 700px) { .hero__scroll { display: none; } }
@keyframes scrollLine { from { transform: translateY(-100%); } to { transform: translateY(200%); } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding: 28px 0; background: var(--c-surface); border-bottom: 1px solid var(--c-line); }
.marquee__track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee__track span { flex: none; padding-right: 48px; font-family: var(--f-en); font-weight: 700; font-size: clamp(32px, 6vw, 72px); line-height: 1.1; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px #c5c9d6; }
.marquee__track span:nth-child(even) { color: var(--c-ink); -webkit-text-stroke: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Section common ---------- */
.section { position: relative; padding: clamp(80px, 12vw, 160px) 0; }
.section--white { background: var(--c-surface); }
.section--dark { background: var(--c-dark); color: #fff; }
.sec-head { margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head--center { text-align: center; }
.sec-head__en { display: block; font-family: var(--f-en); font-weight: 700; font-size: clamp(40px, 7vw, 88px); line-height: 1; letter-spacing: -.01em; }
.sec-head__ja { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 14px; font-weight: 500; color: var(--c-sub); letter-spacing: .1em; }
.section--dark .sec-head__ja { color: rgba(255, 255, 255, .6); }
.sec-head__ja::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.sec-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* split text */
[data-split] .char { display: inline-block; transform: translateY(100%); opacity: 0; transition: transform .9s var(--ease), opacity .9s var(--ease); }
[data-split] { overflow: hidden; padding-bottom: .08em; }
[data-split].is-in .char { transform: none; opacity: 1; }

/* reveal */
[data-reveal] { opacity: 0; transition: opacity 1s var(--ease), transform 1s var(--ease), clip-path 1.2s var(--ease); will-change: transform, opacity; }
[data-reveal="up"] { transform: translateY(60px); }
[data-reveal="left"] { transform: translateX(-60px); }
[data-reveal="right"] { transform: translateX(60px); }
[data-reveal="scale"] { transform: scale(.92); }
[data-reveal="clip"] { opacity: 1; clip-path: inset(0 100% 0 0); }
[data-reveal].is-in { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
/* after reveal finishes, hand transform back to hover/tilt/magnetic effects */
.card.is-revealed { transition: transform .2s ease-out, box-shadow .4s, border-color .4s; }
.btn.is-revealed { transition: transform .4s var(--ease), box-shadow .4s, color .4s; }

/* ---------- About (front) ---------- */
.intro { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.intro__statement { font-size: clamp(24px, 3.4vw, 40px); font-weight: 700; line-height: 1.6; letter-spacing: .02em; }
.intro__text p + p { margin-top: 1.2em; }
.intro__text p { color: var(--c-sub); }
.intro__text .btn { margin-top: 36px; }
@media (max-width: 900px) { .intro { grid-template-columns: 1fr; } }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  position: relative; padding: 44px 36px 40px; border-radius: var(--radius);
  background: var(--c-surface); border: 1px solid var(--c-line);
  transform-style: preserve-3d; transition: transform .2s ease-out, box-shadow .4s, border-color .4s;
}
.card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--grad-3); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .4s; }
.card:hover { box-shadow: 0 30px 60px -30px rgba(91, 91, 247, .45); border-color: transparent; }
.card:hover::before { opacity: 1; }
.card__glow { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(91, 91, 247, .1), transparent 40%); opacity: 0; transition: opacity .4s; }
.card:hover .card__glow { opacity: 1; }
.card__num { position: absolute; top: 28px; right: 32px; font-family: var(--f-en); font-weight: 700; font-size: 14px; color: #b9bdcc; }
.card__icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--grad); color: #fff; transform: translateZ(40px); }
.card__icon svg { width: 30px; height: 30px; }
.card__en { margin-top: 32px; font-family: var(--f-en); font-size: 13px; letter-spacing: .14em; color: var(--c-accent); font-weight: 600; }
.card__title { margin-top: 4px; font-size: 22px; font-weight: 700; transform: translateZ(20px); }
.card__text { margin-top: 16px; font-size: 15px; color: var(--c-sub); }
.card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-family: var(--f-en); font-size: 14px; font-weight: 600; }
.card__more svg { width: 16px; transition: transform .4s var(--ease); }
.card:hover .card__more svg { transform: translateX(6px); }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Numbers ---------- */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.number { padding: 32px 0; border-top: 1px solid rgba(255, 255, 255, .15); }
.number__value { font-family: var(--f-en); font-weight: 700; font-size: clamp(44px, 6vw, 80px); line-height: 1; }
.number__value small { font-size: .4em; margin-left: 4px; }
.number__label { margin-top: 12px; font-size: 14px; color: rgba(255, 255, 255, .6); }
@media (max-width: 900px) { .numbers { grid-template-columns: repeat(2, 1fr); } }
.section--dark .bg-grid { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 60px 60px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }

/* ---------- News ---------- */
.news { border-top: 1px solid var(--c-line); }
.news__item a { display: grid; grid-template-columns: 120px 110px 1fr 24px; align-items: center; gap: 24px; padding: 28px 8px; border-bottom: 1px solid var(--c-line); position: relative; transition: padding .4s var(--ease); }
.news__item a::before { content: ""; position: absolute; inset: 0; background: var(--c-bg); transform: scaleY(0); transform-origin: bottom; transition: transform .4s var(--ease); z-index: -1; }
.news__item a:hover { padding-left: 24px; padding-right: 24px; }
.news__item a:hover::before { transform: scaleY(1); }
.news__date { font-family: var(--f-en); font-size: 14px; color: var(--c-sub); }
.news__cat { justify-self: start; padding: 2px 12px; border-radius: 999px; font-size: 12px; border: 1px solid var(--c-line); }
.news__title { font-weight: 500; }
.news__arrow { width: 20px; transition: transform .4s var(--ease); }
.news__item a:hover .news__arrow { transform: translateX(4px); color: var(--c-accent); }
@media (max-width: 700px) {
  .news__item a { grid-template-columns: auto 1fr; gap: 6px 16px; }
  .news__title { grid-column: 1 / -1; }
  .news__arrow { display: none; }
}

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; padding: clamp(80px, 10vw, 140px) 0; color: #fff; background: var(--grad-3); background-size: 200% 200%; animation: gradMove 10s ease infinite; text-align: center; }
@keyframes gradMove { 50% { background-position: 100% 50%; } }
.cta__title { font-family: var(--f-en); font-weight: 700; font-size: clamp(44px, 8vw, 110px); line-height: 1; }
.cta__text { margin: 20px auto 40px; max-width: 520px; opacity: .9; }
.cta .btn { background: #fff; color: var(--c-ink); }
.cta .btn:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .35); }
.cta__ring { position: absolute; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%, -50%); animation: ring 6s linear infinite; }
.cta__ring:nth-child(2) { animation-delay: -2s; }
.cta__ring:nth-child(3) { animation-delay: -4s; }
@keyframes ring { from { width: 0; height: 0; opacity: 1; } to { width: 1400px; height: 1400px; opacity: 0; } }
.cta .container { position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.footer { background: var(--c-dark); color: rgba(255, 255, 255, .7); padding: 80px 0 32px; font-size: 14px; }
.footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 56px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer .logo { color: #fff; }
.footer__address { margin-top: 20px; line-height: 1.8; }
.footer__nav { display: flex; gap: 32px; flex-wrap: wrap; font-family: var(--f-en); }
.footer__nav a { color: #fff; transition: color .3s; }
.footer__nav a:hover { color: var(--c-accent2); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; font-family: var(--f-en); font-size: 12px; }
.to-top { display: inline-flex; align-items: center; gap: 8px; color: #fff; }
.to-top svg { width: 14px; transition: transform .4s var(--ease); }
.to-top:hover svg { transform: translateY(-4px); }

/* ---------- Page hero (sub pages) ---------- */
.page-hero { position: relative; padding: calc(var(--header-h) + clamp(60px, 10vw, 120px)) 0 clamp(60px, 8vw, 100px); background: var(--c-dark); color: #fff; overflow: hidden; }
.page-hero .hero__blob { opacity: .4; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero__title { font-family: var(--f-en); font-weight: 700; font-size: clamp(56px, 11vw, 150px); line-height: 1; letter-spacing: -.02em; }
.page-hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.page-hero__title .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.2s var(--ease) .2s; }
.page-hero__ja { margin-top: 16px; display: inline-flex; align-items: center; gap: 12px; font-size: 15px; letter-spacing: .14em; color: rgba(255, 255, 255, .7); }
.page-hero__ja::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.breadcrumb { margin-top: 40px; display: flex; gap: 10px; font-family: var(--f-en); font-size: 12px; color: rgba(255, 255, 255, .5); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; }

/* ---------- About page ---------- */
.message { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.message__visual { aspect-ratio: 4 / 5; }
.message__title { font-size: clamp(24px, 3vw, 36px); font-weight: 700; line-height: 1.6; margin-bottom: 32px; }
.message__body p { color: var(--c-sub); }
.message__body p + p { margin-top: 1.2em; }
.message__sign { margin-top: 40px; text-align: right; font-size: 14px; }
.message__sign strong { display: block; font-size: 22px; margin-top: 4px; }
@media (max-width: 900px) { .message { grid-template-columns: 1fr; } .message__visual { aspect-ratio: 16 / 10; } }

/* visual placeholder (gradient art) */
.visual { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--c-dark); }
.visual::before, .visual::after { content: ""; position: absolute; border-radius: 50%; filter: blur(40px); }
.visual::before { width: 70%; height: 70%; left: -10%; top: -10%; background: var(--c-accent); animation: float1 12s ease-in-out infinite; }
.visual::after { width: 60%; height: 60%; right: -10%; bottom: -10%; background: var(--c-accent2); animation: float2 14s ease-in-out infinite; }
.visual--pink::after { background: var(--c-accent3); }
.visual__shape { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; }
.visual__shape span { width: 40%; aspect-ratio: 1; border: 1px solid rgba(255, 255, 255, .5); border-radius: 30%; animation: spin 20s linear infinite; }
.visual__shape span:nth-child(2) { position: absolute; width: 55%; border-radius: 42%; animation-duration: 28s; animation-direction: reverse; }
.visual__label { position: absolute; z-index: 2; left: 24px; bottom: 20px; font-family: var(--f-en); font-size: 12px; letter-spacing: .2em; color: rgba(255, 255, 255, .8); }
@keyframes spin { to { transform: rotate(360deg); } }

.profile { display: grid; grid-template-columns: 220px 1fr; border-top: 1px solid var(--c-line); }
.profile dt, .profile dd { padding: 24px 8px; border-bottom: 1px solid var(--c-line); }
.profile dt { font-weight: 700; font-size: 15px; }
.profile dd { color: var(--c-sub); }
@media (max-width: 700px) {
  .profile { grid-template-columns: 1fr; }
  .profile dt { padding-bottom: 0; border-bottom: 0; }
  .profile dd { padding-top: 4px; }
}

.timeline { position: relative; max-width: 840px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 120px; top: 8px; bottom: 8px; width: 1px; background: rgba(255, 255, 255, .15); }
.timeline__progress { position: absolute; left: 120px; top: 8px; width: 1px; height: 0; background: var(--grad); transition: height .1s linear; }
.timeline__item { position: relative; display: grid; grid-template-columns: 120px 1fr; gap: 40px; padding: 20px 0; }
.timeline__year { font-family: var(--f-en); font-weight: 700; font-size: 28px; line-height: 1.3; }
.timeline__item::after { content: ""; position: absolute; left: 115px; top: 32px; width: 11px; height: 11px; border-radius: 50%; background: var(--c-dark); border: 2px solid var(--c-accent2); }
.timeline__body h3 { font-size: 18px; }
.timeline__body p { margin-top: 6px; font-size: 15px; color: rgba(255, 255, 255, .6); }
@media (max-width: 700px) {
  .timeline::before, .timeline__progress { left: 6px; }
  .timeline__item { grid-template-columns: 1fr; gap: 4px; padding-left: 36px; }
  .timeline__item::after { left: 1px; top: 30px; }
}

.access { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.access__map { min-height: 320px; border-radius: var(--radius); overflow: hidden; background: #e8ebf3; position: relative; }
.access__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.access__map-pin { position: absolute; inset: 0; display: grid; place-items: center; background-image: linear-gradient(#d9ddea 1px, transparent 1px), linear-gradient(90deg, #d9ddea 1px, transparent 1px); background-size: 40px 40px; }
.access__map-pin span { width: 18px; height: 18px; border-radius: 50%; background: var(--c-accent); box-shadow: 0 0 0 0 rgba(91, 91, 247, .5); animation: pin 2s infinite; }
@keyframes pin { to { box-shadow: 0 0 0 30px rgba(91, 91, 247, 0); } }
.access__info h3 { font-size: 20px; margin-bottom: 16px; }
.access__info p { color: var(--c-sub); }
@media (max-width: 900px) { .access { grid-template-columns: 1fr; } }

/* ---------- Business page ---------- */
.biz { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.biz + .biz { margin-top: clamp(80px, 10vw, 140px); }
.biz { scroll-margin-top: 100px; }
.biz:nth-child(even) .biz__visual { order: 2; }
.biz__visual { aspect-ratio: 4 / 3; }
.biz__num { font-family: var(--f-en); font-weight: 700; font-size: 80px; line-height: 1; color: transparent; -webkit-text-stroke: 1px #c5c9d6; }
.biz__en { margin-top: 12px; font-family: var(--f-en); font-size: 13px; letter-spacing: .14em; color: var(--c-accent); font-weight: 600; }
.biz__title { margin-top: 4px; font-size: clamp(24px, 3vw, 32px); font-weight: 700; }
.biz__text { margin-top: 20px; color: var(--c-sub); }
.biz__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.biz__tags li { padding: 4px 16px; border-radius: 999px; background: var(--c-surface); border: 1px solid var(--c-line); font-size: 13px; }
@media (max-width: 900px) { .biz { grid-template-columns: 1fr; } .biz:nth-child(even) .biz__visual { order: 0; } }

.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: flow; }
.flow__item { position: relative; padding: 32px 28px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); transition: background .4s, transform .4s var(--ease); }
.flow__item:hover { background: rgba(255, 255, 255, .08); transform: translateY(-6px); }
.flow__item::before { counter-increment: flow; content: "STEP " counter(flow, decimal-leading-zero); font-family: var(--f-en); font-size: 12px; letter-spacing: .2em; color: var(--c-accent2); }
.flow__item h3 { margin-top: 12px; font-size: 18px; }
.flow__item p { margin-top: 8px; font-size: 14px; color: rgba(255, 255, 255, .6); }
.flow__item:not(:last-child)::after { content: ""; position: absolute; right: -14px; top: 50%; width: 8px; height: 8px; border-top: 2px solid rgba(255, 255, 255, .3); border-right: 2px solid rgba(255, 255, 255, .3); transform: translateY(-50%) rotate(45deg); }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; }
  .flow__item:not(:last-child)::after { right: auto; left: 50%; top: auto; bottom: -14px; transform: translateX(-50%) rotate(135deg); }
}

/* ---------- Contact page ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__aside h2 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.6; }
.contact__aside p { margin-top: 20px; color: var(--c-sub); }
.contact__tel { margin-top: 36px; padding: 28px; border-radius: var(--radius); background: var(--c-surface); border: 1px solid var(--c-line); }
.contact__tel small { display: block; font-size: 13px; color: var(--c-sub); }
.contact__tel strong { font-family: var(--f-en); font-size: 30px; letter-spacing: .04em; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

.form { padding: clamp(28px, 4vw, 56px); border-radius: var(--radius); background: var(--c-surface); border: 1px solid var(--c-line); box-shadow: 0 40px 80px -50px rgba(11, 13, 23, .25); }
.form__row + .form__row { margin-top: 28px; }
.form__label { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.form__req { padding: 1px 8px; border-radius: 4px; font-size: 11px; color: #fff; background: var(--c-accent3); }
.form__field { position: relative; }
.form__input {
  width: 100%; padding: 16px 18px; font: inherit; font-size: 16px;
  color: var(--c-ink); background: var(--c-bg); border: 1px solid transparent; border-radius: 12px;
  transition: border-color .3s, background .3s, box-shadow .3s; appearance: none;
}
.form__input:focus { outline: none; background: #fff; border-color: var(--c-accent); box-shadow: 0 0 0 4px rgba(91, 91, 247, .12); }
textarea.form__input { min-height: 180px; resize: vertical; }
select.form__input { background-image: linear-gradient(45deg, transparent 50%, var(--c-sub) 50%), linear-gradient(135deg, var(--c-sub) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.form__radios { display: flex; flex-wrap: wrap; gap: 10px; }
.form__radios label { cursor: pointer; }
.form__radios input { position: absolute; opacity: 0; }
.form__radios span { display: inline-block; padding: 10px 20px; border-radius: 999px; font-size: 14px; background: var(--c-bg); border: 1px solid transparent; transition: all .3s; }
.form__radios input:checked + span { color: #fff; background: var(--grad); }
.form__radios input:focus-visible + span { border-color: var(--c-accent); }
.form__error { display: none; margin-top: 6px; font-size: 13px; color: #e5395d; }
.form__row.is-error .form__input { border-color: #e5395d; background: #fff5f7; }
.form__row.is-error .form__error { display: block; }
.form__privacy { margin-top: 36px; text-align: center; font-size: 14px; }
.form__privacy label { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.form__privacy input { width: 20px; height: 20px; accent-color: var(--c-accent); }
.form__privacy a { color: var(--c-accent); text-decoration: underline; }
.form__submit { margin-top: 28px; text-align: center; }
.form__submit .btn { min-width: 260px; justify-content: center; }
.form__submit .btn:disabled { opacity: .4; cursor: not-allowed; }
.form__hp { position: absolute; left: -9999px; }
.form__notice { padding: 20px 24px; margin-bottom: 28px; border-radius: 12px; font-size: 15px; }
.form__notice--error { background: #fff5f7; color: #c2264a; }

.thanks { text-align: center; padding: clamp(40px, 6vw, 72px) 20px; }
.thanks__icon { width: 88px; height: 88px; margin: 0 auto 28px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; animation: pop .8s var(--ease) both; }
.thanks__icon svg { width: 40px; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s .4s var(--ease) forwards; }
.thanks h2 { font-size: 24px; }
.thanks p { margin-top: 12px; color: var(--c-sub); }
@keyframes pop { from { transform: scale(0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Generic content (index / page.php) ---------- */
.entry { max-width: 800px; margin: 0 auto; }
.entry h2 { font-size: 26px; margin: 2em 0 .8em; }
.entry p { margin-bottom: 1.4em; }
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { border-radius: var(--radius); overflow: hidden; background: var(--c-surface); border: 1px solid var(--c-line); transition: transform .4s var(--ease), box-shadow .4s; }
.post-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(11, 13, 23, .3); }
.post-card__body { padding: 24px; }
.post-card__date { font-family: var(--f-en); font-size: 13px; color: var(--c-sub); }
.post-card__title { margin-top: 6px; font-size: 17px; }
.pagination { margin-top: 48px; text-align: center; }
@media (max-width: 900px) { .post-list { grid-template-columns: 1fr; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal], [data-split] .char { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}
