/* サンカクテックラボ — "desk" design system.
   Work surfaces float on a desk; the three lines of work each have one colour:
   教育 (green), 開発 (blue), AI (orange). */

:root {
  --desk: #eceef3;
  --desk-2: #e2e5ed;
  --card: #ffffff;
  --ink: #15182b;
  --ink-2: #262a45;
  --soft: #5d627a;
  --faint: #8a8fa8;
  --line: rgba(21, 24, 43, .1);
  --line-strong: rgba(21, 24, 43, .22);
  --edu: #1f9d74;
  --dev: #3257ff;
  --ai: #ff6a3d;
  --edu-tint: #e3f4ee;
  --dev-tint: #e6ebff;
  --ai-tint: #ffece5;
  --night: #15182b;
  --night-text: #c9cce0;

  --font: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --shadow: 0 1px 0 rgba(21, 24, 43, .04), 0 28px 56px -30px rgba(21, 24, 43, .42);
  --shadow-lift: 0 1px 0 rgba(21, 24, 43, .04), 0 44px 80px -34px rgba(21, 24, 43, .55);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --header-h: 68px;
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .3s var(--ease-io) both; }
::view-transition-new(root) { animation: vt-in .5s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--desk); -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--desk); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.9;
  font-feature-settings: "palt" 1; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--dev); color: #fff; }
:focus-visible { outline: 3px solid var(--dev); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
.display { font-weight: 900; line-height: 1.3; letter-spacing: -.01em; margin: 0; }
.h-xl { font-size: clamp(32px, 4.8vw, 72px); }
.h-lg { font-size: clamp(28px, 3.8vw, 52px); }
.h-md { font-size: clamp(22px, 2.6vw, 34px); line-height: 1.45; }
.lead { font-size: clamp(16px, 1.3vw, 18px); line-height: 2; margin: 0; max-width: 38em; color: var(--soft); }
.body { font-size: 15px; line-height: 2; margin: 0; }
.note { font-size: 13px; line-height: 1.9; color: var(--soft); margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; margin: 0; }
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.c-edu { color: var(--edu); } .c-dev { color: var(--dev); } .c-ai { color: var(--ai); } .c-ink { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  background: var(--bg); color: var(--fg); font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background-color .3s;
}
.btn:hover { box-shadow: 0 16px 30px -16px rgba(21, 24, 43, .6); transform: translateY(-2px); }
.btn .btn-icon { width: 18px; height: 18px; flex: none; transition: transform .35s var(--ease); }
.btn:hover .btn-icon { transform: translate(2px, -2px); }
.btn--white { --bg: #fff; --fg: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.btn--ghost { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px currentColor; }
.btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.app-store { display: inline-block; line-height: 0; border-radius: 12px; transition: transform .35s var(--ease); }
.app-store img { height: 50px; width: auto; }
.app-store:hover { transform: translateY(-3px); }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .4s var(--ease); }
.text-link:hover { background-size: 100% 1.5px; }
.text-link svg { width: 16px; height: 16px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; letter-spacing: .06em; font-size: 15px; }
.logo-mark { width: 16px; height: 14px; flex: none; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 90; height: var(--header-h); transition: background-color .35s, box-shadow .35s, transform .45s var(--ease); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: none; }
.site-header.is-scrolled { background: rgba(236, 238, 243, .84); -webkit-backdrop-filter: saturate(1.5) blur(14px); backdrop-filter: saturate(1.5) blur(14px); box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.nav { display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .72); box-shadow: 0 0 0 1px var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.nav a:not(.btn) { text-decoration: none; font-weight: 700; font-size: 14px; padding: 9px 15px; border-radius: 999px; transition: background-color .25s; }
.nav a:not(.btn):hover { background: var(--desk); }
.nav a[aria-current="page"] { background: var(--desk-2); }
.nav .btn { min-height: 40px; padding: 0 18px; font-size: 14px; margin-left: 4px; }
.nav .btn:hover { transform: none; }
.menu-toggle { display: none; }
@media (max-width: 900px) {
  :root { --header-h: 60px; }
  .nav { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 10px; border: 0; background: #fff; box-shadow: 0 0 0 1px var(--line); border-radius: 999px; cursor: pointer; padding: 9px 16px; font-weight: 700; font-size: 14px; }
  .menu-toggle .bars { width: 18px; height: 10px; position: relative; }
  .menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
  .menu-toggle .bars::before { top: 0; } .menu-toggle .bars::after { top: 8px; }
  .menu-open .menu-toggle .bars::before { top: 4px; transform: rotate(45deg); }
  .menu-open .menu-toggle .bars::after { top: 4px; transform: rotate(-45deg); }
}
.menu-panel {
  position: fixed; inset: 0; z-index: 80; background: var(--desk);
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px; display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.menu-open .menu-panel { opacity: 1; visibility: visible; }
.menu-open { overflow: hidden; }
.menu-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.menu-panel li a {
  display: flex; justify-content: space-between; align-items: center; text-decoration: none; font-weight: 900; font-size: 22px;
  background: #fff; border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow);
  transform: translateY(24px); opacity: 0; transition: transform .6s var(--ease), opacity .6s;
}
.menu-open .menu-panel li a { transform: none; opacity: 1; }
.menu-panel li:nth-child(2) a { transition-delay: .04s; } .menu-panel li:nth-child(3) a { transition-delay: .08s; }
.menu-panel li:nth-child(4) a { transition-delay: .12s; } .menu-panel li:nth-child(5) a { transition-delay: .16s; } .menu-panel li:nth-child(6) a { transition-delay: .2s; }

/* ---------- Reveal ---------- */
[data-bd] { word-break: keep-all; overflow-wrap: anywhere; }
[data-reveal].armed { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].armed.is-in { opacity: 1; transform: none; }

/* ---------- Window (the core object) ---------- */
.win { position: relative; background: var(--card); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.win-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #f4f5f8; border-bottom: 1px solid var(--line); font-size: 11.5px; font-weight: 700; color: var(--soft); white-space: nowrap; }
.win-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d6d9e3; flex: none; }
.win-bar b { margin-left: 6px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.win-bar .chip { margin-left: auto; flex: none; padding: 2px 9px; border-radius: 999px; color: #fff; font-size: 10.5px; }
.chip.edu { background: var(--edu); } .chip.dev { background: var(--dev); } .chip.ai { background: var(--ai); } .chip.app { background: var(--ink-2); }
.win-bar .img-note { flex: none; padding: 2px 8px; border-radius: 999px; background: var(--desk-2); color: var(--soft); font-size: 10.5px; }
.win > img { width: 100%; }
.covers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px; background: var(--desk-2); }
.covers img { width: 100%; height: auto; border-radius: 2px; box-shadow: 0 1px 2px rgba(21, 24, 43, .18), 0 6px 14px rgba(21, 24, 43, .12); }
.win--phone { border-radius: 26px; padding: 6px; background: var(--ink); }
.win--phone img { border-radius: 21px; width: 100%; }

/* Illustrations inside windows: drawn plainly so they read as images, not screenshots. */
.ill { padding: 16px; display: grid; gap: 10px; font-size: 12.5px; line-height: 1.7; }
.ill-sheet h4 { margin: 0; font-size: 13.5px; }
.ill-sheet .q { display: grid; grid-template-columns: 18px 1fr; gap: 8px; border-top: 1px dashed #d8dbe6; padding-top: 8px; }
.ill-sheet .q b { color: var(--edu); }
.ill-accounts .acc { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; }
.ill-accounts .av { width: 28px; height: 28px; border-radius: 50%; background: var(--desk-2); }
.ill-accounts .ln { height: 8px; border-radius: 4px; background: var(--desk-2); }
.ill-accounts .ln.s { width: 60%; margin-top: 5px; }
.ill-accounts .badge { min-width: 20px; height: 20px; border-radius: 999px; background: #06c755; color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; padding: 0 6px; }
.ill-term { background: var(--night); color: #d4d7f2; font-family: var(--mono); font-size: 12px; line-height: 1.75; padding: 14px 16px; min-height: 150px; white-space: pre-wrap; }
.ill-term .p { color: var(--ai); }
.ill-term .caret { display: inline-block; width: 7px; height: 14px; background: #d4d7f2; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Desk hero ---------- */
.desk-copy .display { font-size: clamp(30px, 3.6vw, 56px); line-height: 1.4; text-shadow: 0 0 2px var(--desk), 0 0 14px var(--desk), 0 0 28px var(--desk); }
.desk-hero { position: relative; height: 220vh; }
.desk-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.desk-copy { position: absolute; z-index: 20; left: 50%; top: 50%; width: min(860px, 88vw); transform: translate(-50%, -50%); text-align: center; pointer-events: none; transition: opacity .4s; }
.desk-copy .display { text-wrap: balance; }
.desk-copy .lead { margin: 22px auto 0; }
.desk-copy .lead span { background: rgba(236, 238, 243, .88); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 2px 6px; border-radius: 6px; }
.desk-copy .btn-row { justify-content: center; margin-top: 28px; pointer-events: auto; }
.desk-windows { position: absolute; inset: 0; }
.desk-windows .win { position: absolute; transform-origin: 0 0; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; z-index: 5; transition: opacity .5s var(--ease); }
/* Until site.js has placed them, the windows would sit stacked at the top-left
   corner of the stage. Keep them hidden until the first positioned frame. */
@media (min-width: 901px) { .js .desk-windows .win:not([data-placed]) { opacity: 0; } }
.desk-windows .win.is-dragging { cursor: grabbing; box-shadow: var(--shadow-lift); }
.desk-windows .win img { pointer-events: none; -webkit-user-drag: none; }
.desk-cols { position: absolute; z-index: 3; inset: calc(var(--header-h) + 24px) var(--gutter) 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; pointer-events: none; }
.desk-cols > div { border-radius: 24px; padding: 18px 20px; opacity: 0; transform: scale(.97); transition: opacity .6s, transform .6s var(--ease); }
.desk-cols .edu { background: var(--edu-tint); } .desk-cols .dev { background: var(--dev-tint); } .desk-cols .ai { background: var(--ai-tint); }
.desk-cols .eyebrow { font-size: 16px; font-weight: 900; }
.is-sorted .desk-cols > div { opacity: 1; transform: none; }
@media (max-width: 900px) {
  .desk-hero { height: auto; }
  .desk-stage { position: relative; height: auto; overflow: visible; padding: calc(var(--header-h) + 44px) 0 40px; }
  .desk-copy { position: relative; left: auto; top: auto; transform: none; margin: 0 auto; width: auto; padding: 0 var(--gutter); }
  .desk-windows { position: relative; inset: auto; display: flex; align-items: flex-start; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 36px var(--gutter) 24px; scrollbar-width: none; }
  .desk-windows::-webkit-scrollbar { display: none; }
  .desk-windows .win { position: relative; flex: none; width: min(78vw, 320px) !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; transform: none !important; opacity: 1 !important; scroll-snap-align: center; cursor: default; }
  .desk-windows .win--phone { width: 140px !important; }
  .desk-cols { display: none; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(80px, 10vw, 150px) 0; }
.section--white { background: var(--card); }
.section--cta { padding-top: 0; }
.section--white + .section--cta { padding-top: clamp(64px, 8vw, 110px); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 860px; }

/* Pillars: each line of work is one document on the desk */
.pillars { display: grid; gap: clamp(18px, 2.4vw, 32px); }
.pillar { background: var(--card); border-radius: 18px; box-shadow: var(--shadow-lift); overflow: hidden; }
.pillar-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.pillar-body > div:first-child { padding: clamp(26px, 4vw, 52px); }
.pillar h3 { margin: 0; font-weight: 900; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.5; }
.pillar .body { color: var(--soft); margin-top: 14px; }
.pillar ul { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--line); }
.pillar li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.8; }
.pillar li svg { width: 18px; height: 18px; margin-top: 4px; }
.pillar .btn-row { margin-top: 26px; }
.pillar-visual { position: relative; min-height: 340px; padding: clamp(18px, 3vw, 40px); display: grid; place-items: center; overflow: hidden; border-left: 1px solid var(--line); background: #f6f7fa; }
.pillar--edu .pillar-visual { background: var(--edu-tint); }
.pillar--dev .pillar-visual { background: var(--dev-tint); }
.pillar--ai .pillar-visual { background: var(--ai-tint); }
.pillar-visual .win { width: 100%; max-width: 440px; transition: transform .8s var(--ease); }
.pillar-visual .win.back { position: absolute; width: 56%; right: 5%; bottom: 7%; }
.pillar:hover .pillar-visual .win:not(.back) { transform: rotate(-1.2deg) translateY(-4px); }
.pillar:hover .pillar-visual .win.back { transform: rotate(2deg) translateY(-8px); }
@media (max-width: 900px) {
  .pillar-body { grid-template-columns: 1fr; }
  .pillar-visual { order: -1; min-height: 240px; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* Products: two cells of one sheet */
.apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.app-card { position: relative; overflow: hidden; padding: clamp(26px, 3.4vw, 44px); background: var(--card); min-height: 420px; display: flex; flex-direction: column; }
.app-card .head { display: flex; gap: 16px; align-items: center; }
.app-card .icon { width: 60px; height: 60px; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
.app-card h3 { margin: 0; font-size: 24px; line-height: 1.3; font-weight: 900; }
.app-card .store-name { margin: 4px 0 0; font-size: 12.5px; color: var(--soft); font-weight: 700; }
.app-card p.desc { margin: 20px 0 0; font-size: 15px; line-height: 1.95; color: var(--soft); max-width: 23em; position: relative; z-index: 2; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #0f7a4f; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #19c37d; box-shadow: 0 0 0 0 rgba(25, 195, 125, .5); animation: pulse 2.2s infinite; }
.app-card .live { margin-top: 16px; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(25, 195, 125, 0); } 100% { box-shadow: 0 0 0 0 rgba(25, 195, 125, 0); } }
.app-card .actions { margin-top: auto; padding-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; position: relative; z-index: 2; }
.app-card .shot { position: absolute; right: clamp(20px, 3vw, 40px); bottom: -110px; width: clamp(130px, 13vw, 170px); transform: rotate(6deg); transition: transform .8s var(--ease); z-index: 1; }
.app-card:hover .shot { transform: rotate(2deg) translateY(-34px); }
@media (max-width: 900px) { .apps { grid-template-columns: 1fr; } .app-card { min-height: 400px; } .app-card .shot { width: 116px; bottom: -80px; } .app-card p.desc { max-width: 68%; } }

/* Sheets: several items gathered on one document instead of separate cards */
.sheet { background: var(--card); border-radius: 18px; box-shadow: var(--shadow-lift); overflow: hidden; }
.sheet > .win-bar { font-size: 12px; }
.sheet-body { display: grid; grid-template-columns: 280px minmax(0, 1fr); }
.sheet-side { padding: clamp(24px, 3vw, 36px); background: #f6f7fa; border-right: 1px solid var(--line); }
.sheet-side p { margin: 0; }
.sheet-side .who { font-weight: 900; font-size: 21px; line-height: 1.5; }
.sheet-side .meta { margin-top: 18px; display: grid; gap: 10px; font-size: 13.5px; color: var(--soft); }
.sheet-side .meta span { display: flex; align-items: center; gap: 8px; }
.sheet-side .meta i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.sheet-rows { margin: 0; padding: 6px clamp(20px, 3vw, 40px); }
.sheet-row { display: grid; grid-template-columns: minmax(160px, 220px) minmax(0, 1fr); gap: 28px; padding: 24px 0; border-top: 1px solid var(--line); }
.sheet-row:first-child { border-top: 0; }
.sheet-row dt { font-weight: 900; font-size: 16px; line-height: 1.6; }
.sheet-row dt small { display: block; margin-top: 4px; font-size: 12px; font-weight: 700; }
.sheet-row dd { margin: 0; font-size: 14.5px; line-height: 1.95; color: var(--soft); }
.sheet-grid { display: grid; gap: 1px; background: var(--line); }
.sheet-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sheet-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sheet-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sheet-grid > * { background: var(--card); padding: clamp(22px, 2.6vw, 32px); margin: 0; }
.sheet-grid h3 { margin: 0 0 10px; font-size: 18px; line-height: 1.55; font-weight: 900; }
.sheet-grid p { margin: 0; font-size: 14.5px; line-height: 1.95; color: var(--soft); }
.sheet-grid .label { display: block; margin-bottom: 10px; font-size: 12.5px; font-weight: 700; }
.sheet-grid .num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 900; font-size: 15px; margin-bottom: 16px; }
@media (max-width: 960px) { .sheet-grid.cols-3, .sheet-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .sheet-body, .sheet-row { grid-template-columns: 1fr; }
  .sheet-row { gap: 6px; }
  .sheet-side { border-right: 0; border-bottom: 1px solid var(--line); }
  .sheet-grid.cols-2, .sheet-grid.cols-3, .sheet-grid.cols-4 { grid-template-columns: 1fr; }
}

/* Contact */
.contact-card { position: relative; overflow: hidden; border-radius: 32px; background: var(--night); color: #fff; padding: clamp(32px, 6vw, 84px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(28px, 5vw, 72px); align-items: end; }
.contact-card > :last-child { justify-self: end; max-width: 320px; }
.contact-card .h-lg { font-size: clamp(28px, 3.2vw, 44px); }
.contact-card .lead { color: var(--night-text); }
.contact-card .btn:not(.btn--ghost) { --bg: #fff; --fg: var(--ink); }
.contact-card .btn--ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.contact-card .btn--ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.contact-card .note { color: var(--night-text); }
.contact-card .note a { color: #fff; }
.contact-dots { position: absolute; right: 28px; top: 28px; display: flex; gap: 8px; }
.contact-dots i { width: 12px; height: 12px; border-radius: 50%; }
@media (max-width: 900px) { .contact-card { grid-template-columns: 1fr; } .contact-card > :last-child { justify-self: start; } }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(56px, 7vw, 96px) 0 28px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: start; }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(150px, auto)); gap: 10px 48px; }
.footer-nav a { text-decoration: none; color: var(--soft); font-weight: 700; font-size: 14px; }
.footer-nav a:hover { color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; color: var(--soft); }
@media (max-width: 700px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Sub-page hero ---------- */
.page-hero { position: relative; padding: calc(var(--header-h) + clamp(48px, 7vw, 110px)) 0 clamp(40px, 6vw, 80px); overflow: hidden; }
.page-hero .grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.page-hero .lead { margin-top: 22px; }
.page-hero .btn-row { margin-top: 28px; }
.stack { position: relative; min-height: 400px; }
.stack .win { position: absolute; transition: transform .9s var(--ease); }
.crumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; font-weight: 700; color: var(--soft); margin-bottom: 20px; }
.crumb a { text-decoration: none; } .crumb a:hover { color: var(--ink); }
@media (max-width: 900px) { .page-hero .grid { grid-template-columns: 1fr; } .stack { min-height: 340px; } }

/* ---------- Generic blocks ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid-2, .grid-4 { grid-template-columns: 1fr; } }
.check-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.check-list li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 15px; line-height: 1.85; }
.check-list svg { width: 18px; height: 18px; margin-top: 5px; }

.tags { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 5px 12px; border-radius: 8px; background: var(--dev-tint); color: var(--ink); font-size: 13.5px; font-weight: 700; line-height: 1.6; }
.case-sub { margin: 28px 0 0; font-size: 18px; font-weight: 900; line-height: 1.5; }
.case-visual { position: relative; padding: 0 0 48px; }
.case-visual > .win { width: 76%; }
.case-visual > .win > img { max-height: 460px; object-fit: cover; object-position: top; }
.case-visual > .win.back { position: absolute; right: 0; bottom: 0; width: 46%; }
.case-visual > .win.back > img { max-height: 340px; }
.case-visual--pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; padding: 0; }
.case-visual--pair > .win { width: auto; }
.case-visual--pair > .win > img { max-height: 500px; }
@media (max-width: 760px) { .case-visual > .win { width: 88%; } .case-visual > .win.back { width: 50%; } .case-visual--pair > .win { width: auto; } }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; }
.flow .pill { padding: 7px 13px; border-radius: 999px; background: var(--card); box-shadow: 0 0 0 1px var(--line); font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.flow .join { width: 14px; height: 2px; background: var(--line-strong); }

.phone { --w: 260px; width: var(--w); aspect-ratio: 1206 / 2622; border-radius: calc(var(--w) * .15); padding: calc(var(--w) * .03); background: var(--ink); box-shadow: var(--shadow-lift); flex: none; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: calc(var(--w) * .125); }

/* ---------- Lang toggle ---------- */
html[data-lang="en"] [lang="ja"]:not(html) { display: none !important; }
html:not([data-lang="en"]) [lang="en"]:not(html) { display: none !important; }
.lang-toggle { display: inline-flex; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line); padding: 3px; }
.lang-toggle button { border: 0; background: transparent; border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 700; cursor: pointer; }
.lang-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* ---------- Long-form documents ---------- */
.doc { max-width: 900px; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; font-weight: 700; color: var(--soft); margin-top: 22px; }
.doc-body { background: var(--card); border-radius: 28px; padding: clamp(24px, 4vw, 56px); box-shadow: var(--shadow); }
.doc-item { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 28px; padding: 28px 0; border-top: 1px solid var(--line); }
.doc-item:first-child { border-top: 0; padding-top: 0; }
.doc-item h2 { margin: 0; font-size: 16px; line-height: 1.7; font-weight: 900; }
.doc-item p { margin: 0; font-size: 15px; line-height: 2.05; }
@media (max-width: 760px) { .doc-item { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 120; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--edu), var(--dev), var(--ai)); pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  [data-reveal].armed { opacity: 1 !important; transform: none !important; }
  @view-transition { navigation: none; }
}
