:root {
  --ink: #14171F;
  --ink-2: #3D4250;
  --muted: #6B7080;
  --line: #DEDBD3;
  --paper: #F6F4EF;
  --paper-2: #ECE8DF;
  --white: #FFFFFF;
  --accent: #3A5BFF;
  --accent-ink: #2440D6;
  --radius: 14px;
  --en: "Manrope", "Zen Kaku Gothic New", sans-serif;
  --ja: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --shadow: 0 1px 2px rgba(20,23,31,.06), 0 12px 32px -12px rgba(20,23,31,.22);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--ja); font-size: 16px; line-height: 1.85;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.35; margin: 0; font-weight: 700; text-wrap: balance; word-break: auto-phrase; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.sp { display: none; }
@media (max-width: 640px) { .sp { display: inline; } .pc { display: none; } }

.eyebrow {
  font-family: var(--en); font-weight: 700; font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent-ink); margin-bottom: 14px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { display: grid; grid-template-columns: 7px 7px; grid-template-rows: 7px 7px; gap: 2px; }
.logo-mark i { background: var(--ink); border-radius: 1.5px; }
.logo-mark i:first-child { grid-row: 1 / 3; }
.logo-mark i:nth-child(2) { background: var(--accent); }
.logo-text { font-family: var(--en); font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.nav { display: flex; gap: 28px; font-size: 14px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--accent-ink); }
.logo, .nav a { white-space: nowrap; }
@media (max-width: 640px) { .nav { gap: 16px; font-size: 13px; } }
@media (max-width: 440px) { .nav a:last-child { display: none; } }

/* ---------- hero ---------- */
.hero { padding: clamp(56px, 9vw, 112px) 0 clamp(48px, 6vw, 80px); overflow: hidden; }
.hero-inner { position: relative; z-index: 1; }
.hero-title { font-size: clamp(32px, 5.6vw, 64px); letter-spacing: -.01em; line-height: 1.28; }
.hero-title em { font-style: normal; color: var(--accent-ink); }
.hero-lead { margin-top: 24px; font-size: clamp(15px, 1.6vw, 18px); color: var(--ink-2); max-width: 40em; }
.stats { display: flex; gap: clamp(24px, 5vw, 56px); margin: 40px 0 0; padding: 0; }
.stats div { border-top: 2px solid var(--ink); padding-top: 10px; min-width: 96px; }
.stats dt { font-size: 12px; color: var(--muted); }
.stats dd { margin: 0; font-size: 14px; }
.stats b { font-family: var(--en); font-weight: 800; font-size: clamp(30px, 4vw, 44px); letter-spacing: -.02em; margin-right: 2px; }

.hero-showcase {
  position: relative; margin-top: clamp(48px, 7vw, 80px);
  height: clamp(260px, 52vw, 520px);
}
@media (min-width: 1024px) {
  .hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
  .hero-title { font-size: clamp(36px, 3.9vw, 56px); }
  .hero-showcase { margin-top: 0; height: 460px; }
  .hs-site { width: 84% !important; }
  .hs-doc { width: 58% !important; top: 42% !important; }
  .hs-card { width: 34% !important; right: auto !important; left: 4%; bottom: -2% !important; }
}
.hero-showcase > div { position: absolute; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); background: var(--white); }
.hero-showcase img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hs-site { left: 0; top: 0; width: 64%; aspect-ratio: 16 / 10; }
.hs-doc { right: 0; top: 14%; width: 44%; aspect-ratio: 16 / 9; }
.hs-card { right: 8%; bottom: 0; width: 25%; aspect-ratio: 91 / 55; border-radius: 4px !important; transform: rotate(-4deg); }
@media (max-width: 640px) {
  .hs-site { width: 82%; }
  .hs-doc { width: 56%; top: 34%; }
  .hs-card { width: 36%; right: 2%; }
}

/* ---------- sections ---------- */
section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { margin-bottom: clamp(32px, 4vw, 48px); max-width: 760px; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 40px); }
.section-lead { margin-top: 18px; color: var(--ink-2); }

.brandset { background: var(--ink); color: #EEF0F5; }
.brandset .eyebrow { color: #8FA3FF; }
.brandset .section-lead { color: #B9BECB; }

.set-demo { display: grid; grid-template-columns: 1.55fr 1fr; gap: 20px; }
.set-demo figure { margin: 0; }
.set-demo .sd-media { border-radius: 10px; overflow: hidden; background: #22252E; }
.set-demo figcaption { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: #B9BECB; margin-top: 10px; }
.set-demo figcaption b { color: #fff; font-weight: 500; }
.sd-site { grid-row: span 2; }
.sd-site .sd-media { aspect-ratio: 16 / 10; }
.sd-site img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.sd-doc .sd-media { aspect-ratio: 16 / 9; }
.sd-card .sd-media { aspect-ratio: 16 / 9; display: grid; place-items: center; background: #2B2F3A; }
.sd-card .sd-media img { width: 62%; box-shadow: 0 10px 30px rgba(0,0,0,.4); border-radius: 2px; }
.set-switch { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; align-items: center; }
.set-switch span { font-size: 13px; color: #B9BECB; margin-right: 6px; }
.set-switch button {
  border: 1px solid #3A3F4C; background: transparent; color: #DDE1EA; border-radius: 999px;
  padding: 6px 14px; font-size: 13px; cursor: pointer;
}
.set-switch button[aria-pressed="true"] { background: #fff; color: var(--ink); border-color: #fff; }
.set-open { margin-left: auto; }
@media (max-width: 820px) {
  .set-demo { grid-template-columns: 1fr 1fr; }
  .sd-site { grid-column: 1 / -1; grid-row: auto; }
  .set-open { margin-left: 0; }
}

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.tabs { display: inline-flex; background: var(--paper-2); border-radius: 999px; padding: 4px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs button {
  border: 0; background: transparent; padding: 9px 18px; border-radius: 999px; cursor: pointer;
  font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: background .2s, color .2s;
}
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button {
  border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 6px 14px;
  font-size: 13px; cursor: pointer; color: var(--ink-2); transition: border-color .2s, color .2s;
}
.chips button:hover { border-color: var(--ink-2); }
.chips button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent-ink); background: #EEF1FF; }
.result-count { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
@media (max-width: 640px) { .tabs button { padding: 8px 13px; font-size: 13px; } }

/* ---------- grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px 24px; }
@media (max-width: 400px) { .grid { grid-template-columns: 1fr; } }
.card-item {
  display: block; text-align: left; border: 0; padding: 0; background: none; cursor: pointer; width: 100%; text-decoration: none; color: inherit;
}
.thumb {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--white);
  box-shadow: var(--shadow); aspect-ratio: 16 / 10; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
}
.card-item:hover .thumb, .card-item:focus-visible .thumb { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(20,23,31,.06), 0 22px 44px -16px rgba(20,23,31,.32); }
.card-item:focus-visible { outline: none; }
.card-item:focus-visible .thumb { outline: 3px solid var(--accent); outline-offset: 3px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ブランド一式：サイトの上に資料と名刺を重ねる */
.thumb.brand .t-doc, .thumb.brand .t-card { position: absolute; box-shadow: 0 8px 20px -6px rgba(0,0,0,.35); background: #fff; }
.thumb.brand .t-doc { right: 4%; bottom: 6%; width: 44%; aspect-ratio: 16 / 9; border-radius: 5px; overflow: hidden; }
.thumb.brand .t-card { left: 5%; bottom: 7%; width: 30%; aspect-ratio: 91 / 55; border-radius: 2px; overflow: hidden; transform: rotate(-3deg); }
.thumb.brand .t-doc img, .thumb.brand .t-card img { object-position: center; }
.thumb.brand::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(20,23,31,.28)); pointer-events: none; }
.thumb.brand .t-doc, .thumb.brand .t-card { z-index: 1; }

.thumb.doc { aspect-ratio: 16 / 9; }
.thumb.card { background: var(--paper-2); display: grid; place-items: center; }
.thumb.card .pair { position: relative; width: 74%; aspect-ratio: 91 / 55; }
.thumb.card .pair img { position: absolute; width: 82%; height: auto; border-radius: 2px; box-shadow: 0 8px 18px -6px rgba(0,0,0,.35); }
.thumb.card .pair img:first-child { left: 0; top: 0; }
.thumb.card .pair img:last-child { right: 0; bottom: 0; }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  background: rgba(255,255,255,.92); color: var(--ink); padding: 3px 10px; border-radius: 999px;
}

.meta { padding: 14px 2px 0; }
.meta-top { display: flex; gap: 8px; font-size: 12px; color: var(--muted); }
.meta-top span + span::before { content: "／"; margin-right: 8px; color: var(--line); }
.meta h3 { font-size: 17px; margin-top: 2px; }
.meta p { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; line-height: 1.75; }

.demo-note { margin-top: 48px; font-size: 12.5px; color: var(--muted); }

/* ---------- services ---------- */
.services { background: var(--white); }
.service-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.service { padding: 32px 28px 36px 0; border-bottom: 1px solid var(--line); }
.s-no { font-family: var(--en); font-weight: 800; font-size: 14px; color: var(--accent-ink); }
.service h3 { font-size: 20px; margin: 8px 0 12px; }
.service p { font-size: 14.5px; color: var(--ink-2); }
.tags { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 12px; background: var(--paper); border-radius: 6px; padding: 3px 10px; color: var(--ink-2); }

/* ---------- flow ---------- */
.flow-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: f; }
.flow-list li { background: var(--white); border-radius: var(--radius); padding: 24px; counter-increment: f; position: relative; }
.flow-list li::before { content: "0" counter(f); font-family: var(--en); font-weight: 800; color: var(--accent-ink); font-size: 13px; display: block; margin-bottom: 6px; }
.flow-list b { display: block; font-size: 18px; margin-bottom: 8px; }
.flow-list span { font-size: 14px; color: var(--ink-2); }
@media (max-width: 900px) { .flow-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .flow-list { grid-template-columns: 1fr; } }
.cta { margin-top: 56px; background: var(--ink); color: #fff; border-radius: 20px; padding: clamp(32px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta p { font-size: clamp(16px, 2vw, 20px); font-weight: 500; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 700; padding: 14px 28px; border-radius: 999px; transition: background .2s;
}
.btn::after { content: "→"; font-family: var(--en); }
.btn:hover { background: var(--accent-ink); }

.site-footer { padding: 32px 0; border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; }
.site-footer small { color: var(--muted); font-family: var(--en); }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(12,14,20,.62); backdrop-filter: blur(4px); }
.modal-panel {
  position: relative; width: min(1080px, 100% - 24px); max-height: calc(100dvh - 32px); overflow: auto;
  background: var(--paper); border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.4);
  animation: pop .3s cubic-bezier(.2,.8,.2,1);
}
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.985); } }
.modal-close {
  position: sticky; top: 12px; float: right; margin: 12px 12px 0 0; z-index: 3; width: 40px; height: 40px;
  border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: 22px; line-height: 1; cursor: pointer;
}
.modal-body { padding: clamp(24px, 4vw, 44px); }
.m-head .meta-top { font-size: 13px; }
.m-head h2 { font-size: clamp(24px, 3.4vw, 34px); margin-top: 4px; }
.m-tabs { margin: 24px 0 28px; }
.m-sec { padding: 0; }
.m-sec[hidden] { display: none; }
.m-sec h3 { font-size: 18px; margin-bottom: 6px; }
.m-desc { color: var(--ink-2); font-size: 14.5px; margin-bottom: 20px; }
.m-shot { display: block; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.m-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; align-items: center; }
.m-actions small { color: var(--muted); font-size: 12.5px; }

.viewer { width: min(100%, (100dvh - 330px) * 16 / 9); min-width: min(100%, 520px); margin-inline: auto; position: relative; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); background: #fff; aspect-ratio: 16 / 9; }
.viewer img { width: 100%; height: 100%; object-fit: contain; }
.viewer .nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(20,23,31,.72); color: #fff; font-size: 20px; cursor: pointer;
}
.viewer .prev { left: 12px; } .viewer .next { right: 12px; }
.viewer .page { position: absolute; right: 12px; bottom: 12px; background: rgba(20,23,31,.72); color: #fff; font-family: var(--en); font-size: 12px; padding: 3px 10px; border-radius: 999px; }
.strip { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.strip button { flex: 0 0 112px; border: 2px solid transparent; padding: 0; border-radius: 6px; overflow: hidden; cursor: pointer; background: #fff; opacity: .6; transition: opacity .2s; }
.strip button[aria-current="true"] { border-color: var(--accent); opacity: 1; }
.strip button:hover { opacity: 1; }

.card-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card-sides.tate { grid-template-columns: repeat(2, minmax(0, 220px)); justify-content: center; }
.card-sides figure { margin: 0; }
.card-sides img { box-shadow: 0 10px 24px -8px rgba(0,0,0,.35); border-radius: 3px; width: 100%; }
.card-sides figcaption { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.seg { display: inline-flex; gap: 4px; background: var(--paper-2); border-radius: 8px; padding: 3px; margin-bottom: 18px; }
.seg button { border: 0; background: transparent; padding: 5px 14px; border-radius: 6px; font-size: 13px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.1); font-weight: 700; }
.m-check { margin-top: 24px; border-radius: 12px; overflow: hidden; }
.spec { margin-top: 20px; font-size: 13.5px; color: var(--ink-2); display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; }
@media (max-width: 560px) { .card-sides, .card-sides.tate { grid-template-columns: 1fr 1fr; gap: 12px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 560px) {
  .viewer .nav-btn { width: 34px; height: 34px; font-size: 16px; background: rgba(20,23,31,.55); }
  .viewer .prev { left: 6px; } .viewer .next { right: 6px; }
}

/* ---------- AIバックオフィス ---------- */
.thumb.ai { aspect-ratio: 4 / 3; background: #EEF0F4; }
.thumb.ai img { object-position: top center; }
.thumb.ai .badge { background: var(--accent); color: #fff; }
.ai-points { margin: 0 0 20px; padding-left: 1.3em; font-size: 14px; color: var(--ink-2); }
.ai-points li { margin: 2px 0; }
.ai-sec .m-shot { max-height: 60vh; overflow: hidden; }
.btn-ghost { background: transparent; color: var(--accent-ink); border: 1.5px solid var(--accent); }
.btn-ghost:hover { background: #EEF1FF; }
.btn-ghost::after { content: "↓"; }
.chips[hidden] { display: none; }
.thumb.ai .badge { left: auto; right: 12px; top: auto; bottom: 12px; }
