/* ==========================================================================
   AIMLABO Renewal — style.css
   白・グレー基調 / 余白多め / Core Web Vitals 配慮（外部ライブラリなし）
   ========================================================================== */

:root {
  --c-bg: #ffffff;
  --c-bg-sub: #f5f5f3;
  --c-bg-dark: #161616;
  --c-ink: #171717;
  --c-ink-2: #3d3d3d;
  --c-gray: #767676;      /* 白背景でコントラスト比 4.5:1 以上 */
  --c-line: #e4e4e1;
  --c-line-2: #d0d0cc;

  --f-en: "Inter", "Helvetica Neue", Arial, sans-serif;
  --f-ja: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;

  --w-max: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --sec-y: clamp(96px, 14vw, 200px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--f-ja);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 1000;
  background: var(--c-ink); color: #fff; padding: 8px 16px; font-size: 14px;
  transform: translateY(-150%); transition: transform .3s;
}
.skip-link:focus { transform: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--w-max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--sec-y) 0; position: relative; }
.section--sub { background: var(--c-bg-sub); }
.section--dark { background: var(--c-bg-dark); color: #f2f2f2; }

/* ---------- Typography ---------- */
.en { font-family: var(--f-en); letter-spacing: -0.01em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-en); font-size: 12px; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--c-gray);
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }

.sec-head { display: grid; gap: 20px; margin-bottom: clamp(48px, 7vw, 96px); }
.sec-head__en {
  font-family: var(--f-en); font-weight: 500; line-height: 1;
  font-size: clamp(44px, 8vw, 112px); letter-spacing: -0.04em;
}
.sec-head__ja { font-size: clamp(15px, 1.4vw, 17px); font-weight: 600; letter-spacing: 0.08em; }
.sec-head--row { grid-template-columns: 1fr auto; align-items: end; }
@media (max-width: 760px) { .sec-head--row { grid-template-columns: 1fr; } }

.lead { font-size: clamp(16px, 1.5vw, 18px); line-height: 2.1; color: var(--c-ink-2); }
.small { font-size: 13px; color: var(--c-gray); line-height: 1.8; }
.placeholder-note {
  display: inline-block; font-size: 11px; color: #9a6b00; background: #fff6df;
  padding: 2px 8px; border-radius: 2px; letter-spacing: .04em; line-height: 1.6;
}

/* ---------- Buttons / Links ---------- */
.btn {
  --bh: 64px;
  position: relative; display: inline-flex; align-items: center; justify-content: space-between; gap: 32px;
  min-height: var(--bh); padding: 0 28px 0 32px; border-radius: 999px;
  background: var(--c-ink); color: #fff; font-weight: 600; font-size: 15px;
  overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: #444; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease-out);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn--line { background: transparent; color: var(--c-ink); box-shadow: inset 0 0 0 1px var(--c-line-2); }
.btn--line::before { background: var(--c-ink); }
.btn--line:hover { color: #fff; }
.btn--white { background: #fff; color: var(--c-ink); }
.btn--white::before { background: var(--c-line); }
.btn__arrow {
  position: relative; width: 32px; height: 32px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; background: rgba(255,255,255,.14); flex: none;
}
.btn--line .btn__arrow, .btn--white .btn__arrow { background: rgba(0,0,0,.06); }
.btn__arrow svg { width: 12px; height: 12px; transition: transform .5s var(--ease-out); }
.btn__arrow svg + svg { position: absolute; transform: translateX(-200%); }
.btn:hover .btn__arrow svg:first-child { transform: translateX(200%); }
.btn:hover .btn__arrow svg + svg { transform: translateX(0); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .5s var(--ease-out);
  padding-bottom: 2px;
}
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow svg { width: 12px; transition: transform .4s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--c-ink); transform-origin: left; transform: scaleX(0); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  transition: transform .5s var(--ease-out), background-color .4s, box-shadow .4s;
}
.header.is-scrolled { background: rgba(255,255,255,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--c-line); }
.header.is-hidden { transform: translateY(-100%); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: baseline; gap: 10px; }
.logo__mark { font-family: var(--f-en); font-weight: 700; font-size: 22px; letter-spacing: 0.02em; }
.logo__sub { font-size: 11px; color: var(--c-gray); letter-spacing: .1em; }
.gnav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
.gnav__list { display: flex; gap: clamp(16px, 2.2vw, 32px); }
.gnav__link { position: relative; display: block; font-size: 13px; font-weight: 600; letter-spacing: .06em; overflow: hidden; height: 1.9em; }
.gnav__link span { display: block; transition: transform .5s var(--ease-out); }
.gnav__link span + span { position: absolute; top: 100%; left: 0; }
.gnav__link:hover span { transform: translateY(-100%); }
.gnav__link[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 4px; height: 4px; border-radius: 50%; background: currentColor; transform: translateX(-50%); }
.gnav__tel { font-family: var(--f-en); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.gnav__tel small { font-family: var(--f-ja); font-size: 10px; color: var(--c-gray); font-weight: 400; }
.gnav .btn { --bh: 46px; padding: 0 8px 0 22px; gap: 16px; font-size: 13px; }

.menu-btn { display: none; width: 48px; height: 48px; border-radius: 50%; background: var(--c-ink); position: relative; z-index: 120; }
.menu-btn span { position: absolute; left: 15px; right: 15px; height: 1.5px; background: #fff; transition: transform .5s var(--ease-out), top .3s; }
.menu-btn span:nth-child(1) { top: 20px; }
.menu-btn span:nth-child(2) { top: 27px; }
.menu-open .menu-btn span:nth-child(1) { top: 23.5px; transform: rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { top: 23.5px; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .gnav__list, .gnav__tel { display: none; }
}
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .gnav .btn { display: none; }
  .menu-btn { display: block; }
  .logo__sub { display: none; }
}

/* Drawer (mobile / tablet) */
.drawer {
  position: fixed; inset: 0; z-index: 110; background: var(--c-bg); padding: calc(var(--header-h) + 32px) var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px; overflow-y: auto;
  clip-path: circle(0% at calc(100% - 44px) 32px); visibility: hidden;
  transition: clip-path .8s var(--ease-io), visibility 0s .8s;
}
.menu-open .drawer { clip-path: circle(150% at calc(100% - 44px) 32px); visibility: visible; transition: clip-path .8s var(--ease-io); }
.drawer__list li { overflow: hidden; border-bottom: 1px solid var(--c-line); }
.drawer__list a { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; transform: translateY(110%); transition: transform .7s var(--ease-out); }
.menu-open .drawer__list a { transform: none; }
.drawer__list li:nth-child(2) a { transition-delay: .05s; } .drawer__list li:nth-child(3) a { transition-delay: .1s; }
.drawer__list li:nth-child(4) a { transition-delay: .15s; } .drawer__list li:nth-child(5) a { transition-delay: .2s; }
.drawer__list li:nth-child(6) a { transition-delay: .25s; } .drawer__list li:nth-child(7) a { transition-delay: .3s; }
.drawer__list .en { font-size: clamp(28px, 7vw, 44px); font-weight: 500; letter-spacing: -0.03em; }
.drawer__list .ja { font-size: 12px; color: var(--c-gray); }
.drawer__foot { display: grid; gap: 16px; font-size: 13px; }
.drawer__foot .btn { width: 100%; }

/* ---------- Custom cursor (pointer:fine のみ) ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 999; pointer-events: none; display: none; mix-blend-mode: difference; }
.cursor__dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #fff; transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out); }
.cursor.is-hover .cursor__dot { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
.cursor.is-view .cursor__dot { width: 20px; height: 20px; margin: -10px 0 0 -10px; }
@media (pointer: fine) { .cursor { display: block; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: calc(var(--header-h) + 64px) 0 clamp(48px, 8vh, 96px); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__blob {
  position: absolute; width: min(64vw, 820px); aspect-ratio: 1; right: -12vw; top: 4vh;
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  background: radial-gradient(circle at 30% 30%, #fafaf8 0%, #e9e9e6 45%, #d9d9d5 100%);
  animation: blob 18s ease-in-out infinite alternate;
  will-change: transform, border-radius;
}
.hero__blob--2 { width: min(28vw, 360px); right: auto; left: 52%; top: auto; bottom: 18vh; background: radial-gradient(circle at 40% 40%, #f3f3f1, #dcdcd8); animation-duration: 14s; animation-direction: alternate-reverse; opacity: .8; }
@keyframes blob {
  0%   { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; transform: translate3d(0,0,0) rotate(0deg); }
  50%  { border-radius: 63% 37% 45% 55% / 55% 61% 39% 45%; }
  100% { border-radius: 38% 62% 52% 48% / 62% 38% 62% 38%; transform: translate3d(-3%,4%,0) rotate(40deg); }
}
.hero__grid { position: absolute; inset: 0; background-image: linear-gradient(var(--c-line) 1px, transparent 1px), linear-gradient(90deg, var(--c-line) 1px, transparent 1px); background-size: 120px 120px; opacity: .35; mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%); }

.hero__inner { width: 100%; display: grid; gap: clamp(32px, 5vw, 56px); }
.hero__catch { font-family: var(--f-en); font-weight: 500; font-size: clamp(56px, 12.5vw, 200px); line-height: .92; letter-spacing: -0.055em; }
.hero__catch .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__catch .line > span { display: inline-block; transform: translateY(105%); animation: lineUp 1.2s var(--ease-out) forwards; }
.hero__catch .line:nth-child(2) > span { animation-delay: .12s; }
.hero__catch .line:nth-child(3) > span { animation-delay: .24s; }
.hero__catch em { font-style: normal; color: transparent; -webkit-text-stroke: 1.5px var(--c-ink); }
@keyframes lineUp { to { transform: none; } }

.hero__bottom { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; opacity: 0; animation: fadeUp 1s var(--ease-out) .6s forwards; }
.hero h1 { font-size: clamp(17px, 1.7vw, 22px); font-weight: 700; line-height: 1.7; letter-spacing: .06em; }
.hero__desc { margin-top: 16px; font-size: 14px; color: var(--c-ink-2); max-width: 36em; }
.hero__meta { display: grid; justify-items: end; gap: 20px; }
.hero__meta .small { text-align: right; }
.scroll-ind { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-en); font-size: 11px; letter-spacing: .2em; color: var(--c-gray); }
.scroll-ind__bar { width: 64px; height: 1px; background: var(--c-line-2); position: relative; overflow: hidden; }
.scroll-ind__bar::after { content: ""; position: absolute; inset: 0; background: var(--c-ink); animation: scrollBar 2.2s var(--ease-io) infinite; }
@keyframes scrollBar { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .hero__bottom { grid-template-columns: 1fr; }
  .hero__meta { justify-items: start; }
  .hero__meta .small { text-align: left; }
  .hero__blob { width: 110vw; right: -40vw; top: 10vh; }
}

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--c-line); padding: 28px 0; user-select: none; }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__item { display: inline-flex; align-items: center; gap: 40px; padding-right: 40px; font-family: var(--f-en); font-size: clamp(32px, 5vw, 64px); font-weight: 500; letter-spacing: -0.03em; white-space: nowrap; }
.marquee__item i { width: 10px; height: 10px; border-radius: 50%; background: var(--c-line-2); flex: none; }
.marquee__item .outline { color: transparent; -webkit-text-stroke: 1px var(--c-ink); }

/* ---------- About / Definition ---------- */
.about { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(40px, 8vw, 120px); }
.about__statement { font-size: clamp(24px, 3.2vw, 42px); font-weight: 700; line-height: 1.6; letter-spacing: .02em; }
.about__statement .word { display: inline-block; }
.answer-box { border-left: 2px solid var(--c-ink); padding: 4px 0 4px 24px; margin-bottom: 32px; }
.answer-box__label { font-family: var(--f-en); font-size: 11px; letter-spacing: .2em; color: var(--c-gray); text-transform: uppercase; margin-bottom: 8px; display: block; }
.answer-box p { font-size: 16px; line-height: 2; }
.about__body p + p { margin-top: 1.4em; }
.about__body .lead { margin-bottom: 40px; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--c-line); border-left: 1px solid var(--c-line); }
.svc {
  position: relative; display: flex; flex-direction: column; gap: 20px; min-height: 360px;
  padding: clamp(28px, 3vw, 44px); border-right: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line);
  overflow: hidden; isolation: isolate; transition: color .5s var(--ease-out);
}
.svc::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--c-ink); transform: translateY(101%); transition: transform .7s var(--ease-out); }
.svc:hover { color: #fff; }
.svc:hover::before { transform: none; }
.svc__num { font-family: var(--f-en); font-size: 13px; color: var(--c-gray); transition: color .5s; }
.svc:hover .svc__num, .svc:hover .svc__price small, .svc:hover .svc__text { color: rgba(255,255,255,.7); }
.svc__en { font-family: var(--f-en); font-size: clamp(26px, 2.6vw, 36px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.svc h3 { font-size: 16px; font-weight: 700; letter-spacing: .06em; }
.svc__text { font-size: 14px; color: var(--c-ink-2); line-height: 1.9; transition: color .5s; flex: 1; }
.svc__price { font-family: var(--f-en); font-size: 20px; font-weight: 600; letter-spacing: 0; }
.svc__price small { font-family: var(--f-ja); font-size: 12px; font-weight: 400; color: var(--c-gray); margin-left: 4px; }
.svc__go { position: absolute; right: clamp(28px, 3vw, 44px); top: clamp(28px, 3vw, 44px); width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--c-line-2); display: grid; place-items: center; transition: transform .6s var(--ease-out), background .4s, box-shadow .4s; }
.svc__go svg { width: 14px; transition: transform .6s var(--ease-out); }
.svc:hover .svc__go { background: #fff; box-shadow: none; color: var(--c-ink); transform: rotate(-45deg); }
.svc__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.svc__tags li { font-size: 11px; padding: 2px 10px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--c-line-2); transition: box-shadow .4s; }
.svc:hover .svc__tags li { box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
@media (max-width: 1000px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services { grid-template-columns: 1fr; } .svc { min-height: 0; } }

/* ---------- Strengths ---------- */
.reasons { display: grid; gap: 0; counter-reset: reason; }
.reason { display: grid; grid-template-columns: 120px 1fr 1.2fr; gap: clamp(24px, 4vw, 64px); padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid rgba(255,255,255,.14); align-items: start; }
.reason:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.reason__num { font-family: var(--f-en); font-size: 13px; color: #9a9a9a; letter-spacing: .1em; }
.reason h3 { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.6; font-weight: 700; }
.reason p { color: #bdbdbd; font-size: 15px; }
.section--dark .eyebrow, .section--dark .small { color: #9a9a9a; }
@media (max-width: 860px) { .reason { grid-template-columns: 1fr; gap: 12px; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: clamp(64px, 8vw, 120px); background: rgba(255,255,255,.14); }
.stat { background: var(--c-bg-dark); padding: 32px 24px 8px 0; }
.stat__num { font-family: var(--f-en); font-size: clamp(48px, 6vw, 88px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.stat__num small { font-size: .35em; margin-left: 4px; letter-spacing: 0; }
.stat__label { font-size: 13px; color: #9a9a9a; margin-top: 12px; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Price ---------- */
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { padding: 24px 16px; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.price-table thead th { font-size: 12px; color: var(--c-gray); font-weight: 500; letter-spacing: .1em; padding-top: 0; }
.price-table tbody th { font-size: 16px; font-weight: 700; width: 30%; }
.price-table td.num { font-family: var(--f-en); font-size: 22px; font-weight: 600; white-space: nowrap; letter-spacing: 0; }
.price-table td.num small { font-family: var(--f-ja); font-size: 12px; color: var(--c-gray); font-weight: 400; }
.price-table td.desc { font-size: 14px; color: var(--c-ink-2); }
.price-table tbody tr { transition: background .3s; }
.price-table tbody tr:hover { background: var(--c-bg-sub); }
@media (max-width: 760px) {
  .price-table thead { display: none; }
  .price-table tr { display: grid; padding: 20px 0; border-bottom: 1px solid var(--c-line); }
  .price-table th, .price-table td { border: 0; padding: 2px 0; width: auto !important; }
}

/* ---------- Works ---------- */
.works-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.works-filter button { font-size: 13px; padding: 8px 18px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--c-line-2); transition: background .3s, color .3s; }
.works-filter button[aria-pressed="true"], .works-filter button:hover { background: var(--c-ink); color: #fff; box-shadow: none; }
.works-list li { border-bottom: 1px solid var(--c-line); transition: opacity .4s; }
.works-list li.is-hidden { display: none; }
.works-list a { display: grid; grid-template-columns: 80px 1fr auto 40px; gap: 24px; align-items: center; padding: 28px 0; transition: padding .5s var(--ease-out); }
.works-list a:hover { padding-left: 16px; }
.works-list:hover li:not(:hover) { opacity: .35; }
.works-list .w-year { font-family: var(--f-en); font-size: 13px; color: var(--c-gray); }
.works-list .w-title { font-size: clamp(16px, 1.8vw, 22px); font-weight: 700; }
.works-list .w-cat { font-size: 12px; color: var(--c-gray); }
.works-list svg { width: 14px; justify-self: end; }
@media (max-width: 640px) { .works-list a { grid-template-columns: 1fr 24px; gap: 4px 12px; } .works-list .w-year { grid-column: 1; } .works-list svg { grid-row: 1 / 4; grid-column: 2; } }

.works-preview { position: fixed; top: 0; left: 0; z-index: 90; width: 320px; aspect-ratio: 4 / 3; pointer-events: none; overflow: hidden; border-radius: 4px; opacity: 0; transform: scale(.8); transition: opacity .35s, transform .5s var(--ease-out); display: none; }
.works-preview.is-show { opacity: 1; transform: scale(1); }
.works-preview__img { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-en); font-size: 12px; letter-spacing: .2em; color: rgba(0,0,0,.4); transition: transform .6s var(--ease-out); }
@media (pointer: fine) { .works-preview { display: block; } }

/* Placeholder image (差し替え前提 / aspect-ratio で CLS 防止) */
.ph { position: relative; background: linear-gradient(135deg, #ededea, #dcdcd8); overflow: hidden; }
.ph::after { content: attr(data-label); position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-en); font-size: 11px; letter-spacing: .24em; color: rgba(0,0,0,.35); }
.ph--4x3 { aspect-ratio: 4 / 3; } .ph--16x9 { aspect-ratio: 16 / 9; } .ph--3x4 { aspect-ratio: 3 / 4; } .ph--1x1 { aspect-ratio: 1; }

/* ---------- Flow ---------- */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.flow__line { position: absolute; top: 28px; left: 0; right: 0; height: 1px; background: var(--c-line); }
.flow__line span { display: block; height: 100%; background: var(--c-ink); transform-origin: left; transform: scaleX(0); transition: transform 2s var(--ease-io); }
.is-inview .flow__line span { transform: none; }
.flow__step { position: relative; padding-right: 24px; }
.flow__dot { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--c-bg); box-shadow: inset 0 0 0 1px var(--c-line-2); font-family: var(--f-en); font-size: 13px; font-weight: 600; margin-bottom: 24px; position: relative; transition: background .4s, color .4s, box-shadow .4s; }
.is-inview .flow__dot { background: var(--c-ink); color: #fff; box-shadow: none; }
.flow__step:nth-child(3) .flow__dot { transition-delay: .3s; } .flow__step:nth-child(4) .flow__dot { transition-delay: .7s; }
.flow__step:nth-child(5) .flow__dot { transition-delay: 1.1s; } .flow__step:nth-child(6) .flow__dot { transition-delay: 1.5s; }
.flow__step h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.flow__step p { font-size: 13px; color: var(--c-ink-2); line-height: 1.85; }
.flow__term { display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 600; padding: 2px 10px; background: var(--c-bg-sub); border-radius: 2px; }
.section--sub .flow__dot { background: var(--c-bg-sub); }
.section--sub .is-inview .flow__dot, .section--sub .flow.is-inview .flow__dot { background: var(--c-ink); }
.section--sub .flow__term { background: #fff; }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; gap: 32px; padding-left: 80px; }
  .flow__line { top: 0; bottom: 0; left: 28px; right: auto; width: 1px; height: auto; }
  .flow__line span { transform-origin: top; transform: scaleY(0); }
  .flow__dot { position: absolute; left: -80px; top: -12px; }
}

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(40px, 6vw, 96px); }
.faq__list { border-top: 1px solid var(--c-line); }
.faq-item { border-bottom: 1px solid var(--c-line); }
.faq-item summary { list-style: none; display: grid; grid-template-columns: 40px 1fr 32px; gap: 12px; align-items: start; padding: 28px 0; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .q { font-family: var(--f-en); font-weight: 600; font-size: 18px; line-height: 1.5; }
.faq-item summary h3 { font-size: 16px; font-weight: 700; line-height: 1.7; }
.faq-item .toggle { position: relative; width: 32px; height: 32px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--c-line-2); transition: background .3s, transform .5s var(--ease-out); }
.faq-item .toggle::before, .faq-item .toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .5s var(--ease-out); }
.faq-item .toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .toggle { background: var(--c-ink); color: #fff; box-shadow: none; transform: rotate(180deg); }
.faq-item[open] .toggle::after { transform: translate(-50%, -50%) rotate(0); }
.faq-item summary:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.faq-item__body { overflow: hidden; }
.faq-item__inner { display: grid; grid-template-columns: 40px 1fr 32px; gap: 12px; padding-bottom: 32px; }
.faq-item__inner .a { font-family: var(--f-en); font-weight: 600; font-size: 18px; color: var(--c-gray); line-height: 1.5; }
.faq-item__inner .conclusion { font-weight: 700; margin-bottom: 8px; }
.faq-item__inner p + p { margin-top: .8em; }
.faq-item__inner p { font-size: 15px; color: var(--c-ink-2); }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } .faq-item__inner { grid-template-columns: 40px 1fr; } }

/* ---------- Access (NAP) ---------- */
.access { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.nap { display: grid; grid-template-columns: 7em 1fr; border-top: 1px solid var(--c-line); }
.nap dt, .nap dd { padding: 18px 0; border-bottom: 1px solid var(--c-line); font-size: 15px; }
.nap dt { color: var(--c-gray); font-size: 13px; padding-top: 20px; }
.nap a { text-decoration: underline; text-underline-offset: 4px; }
.map { position: relative; aspect-ratio: 4 / 3; background: var(--c-bg-sub); overflow: hidden; border-radius: 4px; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); transition: filter .6s; }
.map:hover iframe { filter: none; }
.map__load { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 16px; text-align: center; font-size: 14px; }
.map__load .btn { --bh: 52px; }
@media (max-width: 900px) { .access { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta { position: relative; background: var(--c-bg-dark); color: #fff; overflow: hidden; }
.cta__link { display: block; padding: clamp(96px, 14vw, 200px) 0; }
.cta__en { font-family: var(--f-en); font-size: clamp(56px, 13vw, 210px); font-weight: 500; line-height: .95; letter-spacing: -0.055em; display: flex; align-items: center; gap: .2em; }
.cta__circle { width: .7em; height: .7em; border-radius: 50%; background: #fff; color: var(--c-ink); display: grid; place-items: center; flex: none; transition: transform .8s var(--ease-out); }
.cta__circle svg { width: 28%; }
.cta__link:hover .cta__circle { transform: rotate(-45deg) scale(1.08); }
.cta__row { display: grid; grid-template-columns: 1fr auto; gap: 32px; margin-top: 48px; align-items: end; }
.cta__row p { color: #bdbdbd; font-size: 15px; }
.cta__tel { font-family: var(--f-en); font-size: clamp(26px, 3vw, 40px); font-weight: 600; letter-spacing: 0; }
.cta__tel small { display: block; font-family: var(--f-ja); font-size: 12px; color: #9a9a9a; font-weight: 400; }
@media (max-width: 760px) { .cta__row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { padding: 80px 0 40px; background: var(--c-bg); }
.footer__top { display: grid; grid-template-columns: 1.2fr 2fr; gap: 64px; padding-bottom: 64px; border-bottom: 1px solid var(--c-line); }
.footer__nap { font-size: 14px; line-height: 2; font-style: normal; }
.footer__nap .logo { margin-bottom: 16px; }
.footer__nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer__nav h2 { font-family: var(--f-en); font-size: 12px; letter-spacing: .18em; color: var(--c-gray); font-weight: 500; margin-bottom: 16px; }
.footer__nav li { font-size: 14px; }
.footer__nav li + li { margin-top: 8px; }
.footer__nav a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease-out); }
.footer__nav a:hover { background-size: 100% 1px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 32px; font-size: 12px; color: var(--c-gray); }
@media (max-width: 860px) { .footer__top { grid-template-columns: 1fr; } .footer__nav { grid-template-columns: repeat(2, 1fr); } }

.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 80; width: 52px; height: 52px; border-radius: 50%; background: var(--c-ink); color: #fff; display: grid; place-items: center; opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .4s, transform .5s var(--ease-out); }
.to-top.is-show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 14px; transform: rotate(-90deg); }
.to-top svg circle { transition: stroke-dashoffset .1s linear; }
.to-top__ring { position: absolute; inset: -4px; width: calc(100% + 8px); height: calc(100% + 8px); transform: rotate(-90deg); }
.to-top__ring svg { width: 100%; height: 100%; transform: none; }

/* ---------- Sub page ---------- */
.page-hero { padding: calc(var(--header-h) + clamp(56px, 8vw, 120px)) 0 clamp(56px, 7vw, 96px); position: relative; overflow: hidden; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--c-gray); margin-bottom: clamp(40px, 6vw, 80px); }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 8px; color: var(--c-line-2); }
.breadcrumb a:hover { color: var(--c-ink); text-decoration: underline; text-underline-offset: 3px; }
.page-hero__en { font-family: var(--f-en); font-size: clamp(52px, 10vw, 150px); font-weight: 500; letter-spacing: -0.05em; line-height: .95; }
.page-hero__en .line { display: block; overflow: hidden; }
.page-hero__en .line > span { display: inline-block; transform: translateY(105%); animation: lineUp 1.2s var(--ease-out) forwards; }
.page-hero h1 { margin-top: 28px; font-size: clamp(20px, 2.4vw, 30px); line-height: 1.6; font-weight: 700; letter-spacing: .04em; opacity: 0; animation: fadeUp 1s var(--ease-out) .4s forwards; }
.page-hero__meta { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 12px; color: var(--c-gray); opacity: 0; animation: fadeUp 1s var(--ease-out) .55s forwards; }
.page-hero .hero__blob { width: min(44vw, 560px); right: -10vw; top: -10vh; opacity: .8; }

.summary { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 96px); }
.summary__box { background: var(--c-bg-sub); padding: clamp(28px, 4vw, 48px); border-radius: 4px; }
.summary__box h2 { font-size: 13px; font-family: var(--f-en); letter-spacing: .18em; color: var(--c-gray); font-weight: 500; margin-bottom: 20px; }
.summary__box ul li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.9; }
.summary__box ul li + li { margin-top: 10px; }
.summary__box ul li::before { content: ""; position: absolute; left: 0; top: .85em; width: 8px; height: 1px; background: var(--c-ink); }
@media (max-width: 900px) { .summary { grid-template-columns: 1fr; } }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.plan { position: relative; background: #fff; border-radius: 6px; padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; gap: 16px; box-shadow: 0 0 0 1px var(--c-line); transition: transform .6s var(--ease-out), box-shadow .6s; will-change: transform; transform-style: preserve-3d; }
.plan:hover { box-shadow: 0 30px 60px -30px rgba(0,0,0,.25), 0 0 0 1px var(--c-line); }
.plan--rec { background: var(--c-ink); color: #fff; box-shadow: none; }
.plan--rec .plan__desc, .plan--rec .plan__list li, .plan--rec .plan__price small { color: #c8c8c8; }
.plan__badge { position: absolute; top: 20px; right: 20px; font-size: 11px; padding: 2px 10px; border-radius: 99px; background: #fff; color: var(--c-ink); font-weight: 700; }
.plan__en { font-family: var(--f-en); font-size: 12px; letter-spacing: .18em; color: var(--c-gray); }
.plan h3 { font-size: 20px; font-weight: 700; }
.plan__price { font-family: var(--f-en); font-size: clamp(32px, 3.4vw, 44px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.plan__price small { font-family: var(--f-ja); font-size: 13px; color: var(--c-gray); font-weight: 400; letter-spacing: .04em; }
.plan__desc { font-size: 14px; color: var(--c-ink-2); }
.plan__list { border-top: 1px solid var(--c-line); padding-top: 16px; display: grid; gap: 8px; }
.plan--rec .plan__list { border-color: rgba(255,255,255,.2); }
.plan__list li { font-size: 13px; padding-left: 22px; position: relative; color: var(--c-ink-2); }
.plan__list li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 6px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); }
.plan__term { margin-top: auto; font-size: 12px; padding-top: 16px; border-top: 1px dashed var(--c-line-2); }
.plan--rec .plan__term { border-color: rgba(255,255,255,.25); }
@media (max-width: 1000px) { .plans { grid-template-columns: 1fr; max-width: 560px; } }

.include { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); }
.include li { background: var(--c-bg); padding: 28px 24px; display: grid; gap: 8px; align-content: start; }
.include .icon { width: 36px; height: 36px; margin-bottom: 8px; }
.include h3 { font-size: 15px; font-weight: 700; }
.include p { font-size: 13px; color: var(--c-ink-2); line-height: 1.8; }
@media (max-width: 1000px) { .include { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .include { grid-template-columns: 1fr; } }

.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.related a { display: grid; gap: 16px; }
.related .ph { border-radius: 4px; }
.related .ph::before { content: ""; position: absolute; inset: 0; background: var(--c-ink); opacity: 0; transition: opacity .5s; z-index: 1; }
.related a:hover .ph::before { opacity: .08; }
.related .ph-inner { position: absolute; inset: 0; transition: transform 1s var(--ease-out); background: inherit; }
.related a:hover .ph-inner { transform: scale(1.06); }
.related h3 { font-size: 16px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.related p { font-size: 13px; color: var(--c-gray); }
@media (max-width: 860px) { .related { grid-template-columns: 1fr; } }

.author { display: grid; grid-template-columns: 120px 1fr; gap: 32px; align-items: center; padding: 32px; border: 1px solid var(--c-line); border-radius: 6px; }
.author .ph { border-radius: 50%; }
.author h3 { font-size: 16px; }
.author p { font-size: 14px; color: var(--c-ink-2); }
@media (max-width: 640px) { .author { grid-template-columns: 1fr; } .author .ph { width: 96px; } }

/* ---------- Reveal (JS が .js を付与した時だけ初期非表示 → JS無効でも表示) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal].is-inview { opacity: 1; transform: none; }
.js [data-reveal="mask"] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease-io); transition-delay: var(--d, 0s); }
.js [data-reveal="mask"].is-inview { clip-path: inset(0 0 0 0); }
.js [data-split] .word { opacity: .12; transition: opacity .3s; }
.js [data-split] .word.is-on { opacity: 1; }
.js [data-reveal="line"] { opacity: 1; transform: none; }
.js [data-reveal="line"] .line-inner { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease-out); }
.js [data-reveal="line"].is-inview .line-inner { transform: none; }
[data-reveal="line"] { overflow: hidden; display: block; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .hero__catch .line > span, .page-hero__en .line > span { transform: none; }
  .hero__bottom, .page-hero h1, .page-hero__meta { opacity: 1; }
  .js [data-split] .word { opacity: 1; }
  .cursor, .works-preview { display: none !important; }
}

/* 行マスク内で g・p などのディセンダーが欠けないよう余白を確保 */
.hero__catch .line, .page-hero__en .line, [data-reveal="line"] { padding-bottom: .14em; margin-bottom: -.14em; }

/* メニュー展開中はヘッダー（ロゴ・閉じるボタン）をドロワーより前面に */
.menu-open .header { z-index: 130; transform: none; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }

/* ロゴ画像（aim.ai から書き出したSVG） */
.logo { align-items: center; gap: 16px; }
.logo__img { height: 36px; width: auto; }
.logo__sub { padding-left: 16px; border-left: 1px solid var(--c-line-2); line-height: 1.4; }
.footer__nap .logo__img { height: 44px; margin-bottom: 8px; }
@media (max-width: 760px) { .logo__img { height: 30px; } }
.gnav__link, .gnav__tel, .gnav .btn, .logo__sub { white-space: nowrap; }
@media (max-width: 1320px) { .logo__sub { display: none; } .gnav__tel small { display: none; } }

/* SNS アイコン */
.sns { display: flex; gap: 10px; margin-top: 20px; }
.sns a { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--c-line-2); overflow: hidden; isolation: isolate; transition: color .4s, box-shadow .4s, transform .5s var(--ease-out); }
.sns a::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--c-ink); transform: scale(0); transition: transform .5s var(--ease-out); }
.sns a:hover { color: #fff; box-shadow: none; transform: translateY(-3px); }
.sns a:hover::before { transform: scale(1); }
.sns svg { width: 18px; height: 18px; transition: transform .5s var(--ease-out); }
.sns a:hover svg { transform: rotate(-8deg) scale(1.08); }

/* ==========================================================================
   制作実績（Pinterest 連動ページ）
   ========================================================================== */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 4vw, 56px) clamp(20px, 2.4vw, 32px); }
.work-card.is-hidden { display: none; }
.work-card a { display: grid; gap: 14px; }
.work-card__img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; background: var(--c-bg-sub); }
.work-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .6s; }
.work-card a:hover .work-card__img img { transform: scale(1.06); }
.work-card__img::after { content: "VIEW"; position: absolute; left: 50%; top: 50%; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--c-ink); display: grid; place-items: center; font-family: var(--f-en); font-size: 12px; font-weight: 600; letter-spacing: .16em; transform: scale(0); transition: transform .6s var(--ease-out); }
.work-card a:hover .work-card__img::after { transform: scale(1); }
.work-card__count { position: absolute; right: 12px; top: 12px; z-index: 1; font-size: 11px; padding: 2px 10px; border-radius: 99px; background: rgba(23,23,23,.75); color: #fff; }
.work-card__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--c-gray); }
.work-card__meta span:first-child { font-family: var(--f-en); }
.work-card__title { font-size: 16px; font-weight: 700; line-height: 1.6; }
.work-card__title span { font-weight: 400; font-size: 14px; color: var(--c-ink-2); }
@media (max-width: 1000px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .work-grid { grid-template-columns: 1fr; } }

.work-gallery { display: grid; gap: clamp(12px, 1.6vw, 24px); grid-template-columns: repeat(2, 1fr); align-items: start; }
.work-gallery--1 { grid-template-columns: minmax(0, 760px); justify-content: center; }
.work-gallery--3 { grid-template-columns: repeat(3, 1fr); }
.work-gallery__item { overflow: hidden; border-radius: 4px; background: var(--c-bg-sub); }
.work-gallery__item a { display: block; cursor: zoom-in; }
.work-gallery__item img { width: 100%; height: auto; transition: transform 1.2s var(--ease-out); }
.work-gallery__item a:hover img { transform: scale(1.03); }
@media (max-width: 760px) { .work-gallery, .work-gallery--3 { grid-template-columns: 1fr; } }

.work-detail { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(40px, 6vw, 96px); margin-top: clamp(64px, 8vw, 120px); align-items: start; }
.work-body p { margin-top: 1.2em; color: var(--c-ink-2); }
.work-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 32px; }
.work-tags li { font-size: 12px; padding: 3px 12px; border-radius: 99px; background: var(--c-bg-sub); color: var(--c-ink-2); }
.work-detail .nap dd a { word-break: break-all; }
@media (max-width: 900px) { .work-detail { grid-template-columns: 1fr; } }

.work-pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; }
.work-pager__item { display: grid; gap: 4px; padding: 20px 0; transition: transform .5s var(--ease-out); }
.work-pager__item.is-next { text-align: right; }
.work-pager__item:hover.is-prev { transform: translateX(-6px); }
.work-pager__item:hover.is-next { transform: translateX(6px); }
.work-pager__title { font-weight: 700; font-size: 15px; }
.work-pager__all { font-size: 13px; font-weight: 600; padding: 12px 24px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--c-line-2); transition: background .3s, color .3s; }
.work-pager__all:hover { background: var(--c-ink); color: #fff; }
@media (max-width: 760px) { .work-pager { grid-template-columns: 1fr; text-align: center; } .work-pager__item.is-next { text-align: center; } .work-pager__item.is-empty { display: none; } }

/* YouTube（クリックまで読み込まない軽量埋め込み） */
.yt { margin-top: clamp(24px, 3vw, 40px); max-width: 960px; margin-inline: auto; }
.yt__btn, .yt iframe { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 4px; overflow: hidden; background: #000; }
.yt__btn img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .4s, transform 1s var(--ease-out); }
.yt__btn:hover img { opacity: 1; transform: scale(1.03); }
.yt__play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: #fff; color: var(--c-ink); display: grid; place-items: center; transition: transform .5s var(--ease-out); }
.yt__play svg { width: 28px; margin-left: 4px; }
.yt__btn:hover .yt__play { transform: scale(1.12); }

/* ライトボックス */
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px; background: rgba(15,15,15,.92); opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .4s; }
.lightbox img { max-width: min(100%, 1100px); max-height: calc(100svh - 120px); width: auto; height: auto; border-radius: 2px; transform: scale(.96); transition: transform .6s var(--ease-out); }
.lightbox.is-open img { transform: none; }
.lightbox button { position: absolute; color: #fff; width: 52px; height: 52px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); display: grid; place-items: center; transition: background .3s; }
.lightbox button:hover { background: rgba(255,255,255,.12); }
.lightbox__close { top: 20px; right: 20px; font-size: 22px; }
.lightbox__prev, .lightbox__next { top: 50%; margin-top: -26px; }
.lightbox__prev { left: 20px; } .lightbox__next { right: 20px; }
.lightbox__prev svg { transform: rotate(180deg); }
.lightbox svg { width: 14px; }
.lightbox__count { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: #bbb; font-family: var(--f-en); font-size: 12px; letter-spacing: .2em; }

/* トップの実績行ホバー：実画像のプレビュー */
.works-preview__img.has-img { background-size: cover !important; background-position: center !important; font-size: 0; }

/* サービス枠：全カードの高さをそろえる（行ごとではなく全体で統一） */
.services { grid-auto-rows: 1fr; }
.services > li { display: flex; }
.services > li > .svc { flex: 1; width: 100%; }

/* ==========================================================================
   お問い合わせフォーム
   ========================================================================== */
.contact { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.contact__side { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 32px; }
.contact__tel { display: grid; gap: 4px; padding: 28px 32px; border-radius: 6px; background: var(--c-bg-sub); transition: background .4s, color .4s; }
.contact__tel:hover { background: var(--c-ink); color: #fff; }
.contact__tel:hover .small { color: #bbb; }
.contact__tel-num { font-family: var(--f-en); font-size: clamp(28px, 3vw, 38px); font-weight: 600; letter-spacing: 0; }
.contact__steps { display: flex; gap: 8px; counter-reset: s; }
.contact__steps li { flex: 1; display: grid; gap: 2px; padding: 12px 14px; border-top: 2px solid var(--c-line); font-size: 13px; color: var(--c-gray); }
.contact__steps li span { font-family: var(--f-en); font-size: 11px; letter-spacing: .1em; }
.contact__steps li.is-current { border-color: var(--c-ink); color: var(--c-ink); font-weight: 700; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } .contact__side { position: static; } }

.form { display: grid; gap: 8px; }
.form__meter { position: relative; height: 40px; display: flex; align-items: center; justify-content: flex-end; margin-bottom: 8px; font-size: 12px; color: var(--c-gray); }
.form__meter::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--c-line); }
.form__meter-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--c-ink); transform-origin: left; transform: scaleX(0); transition: transform .8s var(--ease-out); }
.form__meter-text b { font-family: var(--f-en); font-size: 15px; color: var(--c-ink); margin: 0 2px; }
.form.is-ready .form__meter-text { color: var(--c-ink); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.field { position: relative; padding-top: 24px; }
.field__input { width: 100%; border: 0; border-bottom: 1px solid var(--c-line-2); border-radius: 0; background: transparent; padding: 14px 0 12px; font: inherit; font-size: 16px; color: var(--c-ink); outline: none; -webkit-appearance: none; appearance: none; }
textarea.field__input { resize: vertical; min-height: 160px; line-height: 1.8; }
.field__label { position: absolute; left: 0; top: 38px; font-size: 15px; color: var(--c-gray); pointer-events: none; transform-origin: left top; transition: transform .45s var(--ease-out), color .3s; display: inline-flex; align-items: center; gap: 8px; }
.field__input:focus + .field__label, .field__input:not(:placeholder-shown) + .field__label { transform: translateY(-30px) scale(.82); color: var(--c-ink); }
.field__line { position: absolute; left: 0; right: 0; height: 2px; background: var(--c-ink); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); margin-top: -1px; }
.field__input:focus ~ .field__line { transform: scaleX(1); }
.field.is-valid .field__input { border-bottom-color: var(--c-ink); }
.field.is-valid::after { content: ""; position: absolute; right: 2px; top: 46px; width: 10px; height: 6px; border-left: 2px solid var(--c-ink); border-bottom: 2px solid var(--c-ink); transform: rotate(-45deg); animation: fadeUp .4s var(--ease-out); }
.field--area.is-valid::after { display: none; }
.field__error { height: 0; overflow: hidden; font-size: 12px; color: #c0392b; transition: height .3s; }
.field.is-error .field__error { height: 1.9em; padding-top: 6px; }
.field.is-error .field__input { border-bottom-color: #c0392b; }
.field.is-error .field__line { background: #c0392b; }
.field__count { text-align: right; font-family: var(--f-en); font-size: 11px; color: var(--c-gray); margin-top: 6px; }

.req, .opt { font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 2px; letter-spacing: .06em; line-height: 1.7; }
.req { background: var(--c-ink); color: #fff; }
.opt { box-shadow: inset 0 0 0 1px var(--c-line-2); color: var(--c-gray); font-weight: 500; }

.privacy { margin-top: 40px; }
.privacy__title { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.privacy__box { height: 200px; overflow-y: auto; padding: 20px 24px; background: var(--c-bg-sub); border-radius: 4px; font-size: 13px; line-height: 1.9; color: var(--c-ink-2); overscroll-behavior: contain; }
.privacy__box h3 { font-size: 13px; font-weight: 700; color: var(--c-ink); margin-top: 1.4em; }
.privacy__box ul { list-style: disc; padding-left: 1.4em; }

.checks { display: grid; gap: 14px; margin-top: 24px; }
.check { position: relative; display: inline-flex; align-items: center; gap: 12px; font-size: 14px; cursor: pointer; width: fit-content; }
.check input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.check .req { margin-left: 8px; }
.check__box { width: 22px; height: 22px; flex: none; border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--c-line-2); display: grid; place-items: center; color: #fff; transition: background .3s, box-shadow .3s, transform .3s var(--ease-out); }
.check__box svg { width: 12px; stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset .35s var(--ease-out) .05s; }
.check input:checked + .check__box { background: var(--c-ink); box-shadow: none; transform: scale(1.06); }
.check input:checked + .check__box svg { stroke-dashoffset: 0; }
.check input:focus-visible + .check__box { outline: 2px solid var(--c-ink); outline-offset: 3px; }
.check.is-error .check__box { box-shadow: inset 0 0 0 1.5px #c0392b; }

.form__submit { display: grid; justify-items: center; gap: 16px; margin-top: 40px; text-align: center; }
.form__btn { min-width: min(100%, 360px); --bh: 72px; font-size: 16px; }
.form__btn[aria-disabled="true"] { background: #b5b5b2; }
.form__btn[aria-disabled="true"]::before { display: none; }

/* サービスページのメニューカード（4件なら2列） */
.plans--menu .plan { min-height: 0; }
.plans--menu:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .plans.plans--menu { grid-template-columns: repeat(2, 1fr); max-width: none; } }
@media (max-width: 640px) { .plans.plans--menu { grid-template-columns: 1fr; } }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 確認・完了画面（mail.php / contact/thanks） */
.confirm { max-width: 860px; margin: 0 auto; }
.confirm .contact__steps { margin-bottom: 48px; }
.confirm__lead { margin-bottom: 40px; }
.confirm .nap dd { white-space: pre-wrap; word-break: break-word; }
.confirm__errors { padding: 24px 28px; border-radius: 6px; background: #fdf0ee; color: #a5281b; margin-bottom: 40px; }
.confirm__errors li { position: relative; padding-left: 18px; font-size: 15px; }
.confirm__errors li + li { margin-top: 6px; }
.confirm__errors li::before { content: ""; position: absolute; left: 0; top: .8em; width: 8px; height: 1px; background: currentColor; }
.confirm__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 48px; }
.confirm__actions .btn { min-width: min(100%, 280px); }
.thanks { text-align: center; max-width: 720px; margin: 0 auto; }
.thanks__icon { width: 96px; height: 96px; margin: 0 auto 32px; border-radius: 50%; background: var(--c-ink); color: #fff; display: grid; place-items: center; animation: thanksPop .9s var(--ease-out) both; }
.thanks__icon svg { width: 36px; stroke-dasharray: 40; stroke-dashoffset: 40; animation: thanksCheck .6s var(--ease-out) .5s forwards; }
@keyframes thanksPop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes thanksCheck { to { stroke-dashoffset: 0; } }
.thanks .lead { margin-top: 24px; }
.thanks .contact__steps { margin: 48px 0; }
