:root {
  color-scheme: dark;
  --bg: #06070a;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.18);
  --text: #f8fafc;
  --muted: #a8b3c7;
  --accent: #f4d06f;
  --accent-2: #77e6d2;
  --max: 1120px;
  font-family: "BIZ UDPGothic", "Inter", "Noto Sans JP", "Noto Sans CJK JP", "Hiragino Sans", "Yu Gothic", Meiryo, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(244, 208, 111, 0.18), transparent 32rem),
    radial-gradient(circle at 88% 10%, rgba(119, 230, 210, 0.16), transparent 28rem),
    linear-gradient(180deg, #080a0f 0%, #05060a 54%, #090b11 100%);
  line-height: 1.75;
}
a { color: inherit; }
.site-header, .hero, .section, .footer { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.site-header { padding: 26px 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; letter-spacing: .12em; font-size: 13px; text-transform: uppercase; color: var(--muted); }
.logo-mark { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 10px; display: inline-grid; place-items: center; color: var(--accent); }
.lang-switch { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; font-size: 12px; }
.lang-switch a { text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; color: var(--muted); }
.lang-switch a[aria-current="page"] { color: var(--text); border-color: rgba(244,208,111,.6); background: rgba(244,208,111,.1); }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(300px, .78fr); gap: 34px; padding: 64px 0 52px; align-items: center; }
.hero > * { grid-column: 1; }
.hero::after {
  content: "";
  grid-column: 2;
  grid-row: 1 / span 4;
  min-height: 360px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 32px;
  background: #f8fafc url('/images/products/tsukumogami-distinct-v3/ai-assistant.svg') center / cover no-repeat;
  box-shadow: 0 26px 90px rgba(0,0,0,.34);
}
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
h1 { margin: 14px 0 18px; max-width: 980px; font-size: clamp(44px, 9vw, 112px); line-height: .96; letter-spacing: -.08em; }
.lead { max-width: 900px; color: #dfe6f3; font-size: clamp(18px, 2.6vw, 28px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 999px; padding: 0 18px; text-decoration: none; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-weight: 700; transition: transform 160ms ease, border-color 160ms ease; }
.button.primary { color: #0c0b05; background: linear-gradient(135deg, #fff1a3, #f4d06f); border-color: transparent; }
.button:hover, .product-card:hover { border-color: rgba(119,230,210,.55); transform: translateY(-1px); }
.grid { display: grid; grid-template-columns: repeat(12,1fr); gap: 18px; }
.card { grid-column: span 4; padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(180deg,var(--panel-strong),var(--panel)); box-shadow: 0 20px 80px rgba(0,0,0,.18); }
.card.wide { grid-column: span 6; }
.card.full { grid-column: 1 / -1; }
.card h2, .card h3 { margin: 0 0 12px; line-height: 1.25; }
.card p, .card ul, .card ol { color: var(--muted); }
.card p { margin: 0; }
.card ul, .card ol { padding-left: 1.2em; margin: 12px 0 0; }
.card li + li { margin-top: 8px; }
.term { display: inline-block; color: var(--accent-2); font-weight: 700; }
.section { padding: 36px 0; }
.section-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-title h2 { margin: 0; font-size: clamp(28px,4vw,48px); letter-spacing: -.04em; }
.section-title p { max-width: 620px; margin: 0; color: var(--muted); }
.object-map, .product-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.object-map div, .product-card { border: 1px solid var(--line); border-radius: 22px; padding: 18px; background: rgba(255,255,255,.05); }
.object-map strong { display: block; color: var(--text); }
.object-map span { color: var(--muted); font-size: 14px; }
.product-card { display: flex; flex-direction: column; min-height: 430px; color: inherit; text-decoration: none; transition: transform 160ms ease, border-color 160ms ease; overflow: hidden; }
.product-card::before {
  content: "";
  display: block;
  aspect-ratio: 16 / 9;
  width: calc(100% + 12px);
  margin: -6px -6px 16px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  background-color: #f8fafc;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 12px 36px rgba(0,0,0,.2);
}
.product-card[data-product="biddrive"]::before { background-image: url('/images/products/tsukumogami-distinct-v3/biddrive.svg'); }
.product-card[data-product="flowalign"]::before { background-image: url('/images/products/tsukumogami-distinct-v3/flowalign.svg'); }
.product-card[data-product="apoment"]::before { background-image: url('/images/products/tsukumogami-distinct-v3/apoment.svg'); }
.product-card[data-product="caseflow"]::before { background-image: url('/images/products/tsukumogami-distinct-v3/caseflow.svg'); }
.product-card[data-product="cashcurrent"]::before { background-image: url('/images/products/tsukumogami-distinct-v3/cashcurrent.svg'); }
.product-card[data-product="narrativemesh"]::before { background-image: url('/images/products/tsukumogami-distinct-v3/narrativemesh.svg'); }
.product-card[data-product="aiassistant"]::before { background-image: url('/images/products/tsukumogami-distinct-v3/ai-assistant.svg'); }
.product-card[data-product="decisiongarden"]::before { background-image: url('/images/products/tsukumogami-distinct-v3/decision-garden.svg'); }
.product-card[data-product="flowtrace"]::before { background-image: url('/images/products/tsukumogami-distinct-v3/flowtrace.svg'); }
.product-card[data-product="shiftpay"]::before { background-image: url('/images/products/tsukumogami-distinct-v3/shiftpay.svg'); }
.product-card[data-product="kyaraflip"]::before { background-image: linear-gradient(135deg,rgba(5,6,10,.08),rgba(5,6,10,.32)),url('/images/services/kyaraflip/kyaraflip-character-worlds.webp'); }
.product-card[data-product="games"]::before { background-image: linear-gradient(135deg,rgba(5,6,10,.08),rgba(5,6,10,.48)),url('/images/services/image_services_game_02.png'); }
.product-card h3 { margin: 8px 0 10px; font-size: 22px; line-height: 1.22; }
.product-card p { margin: 0; color: var(--muted); }
.product-card .link-arrow { margin-top: auto; padding-top: 18px; color: var(--accent-2); font-weight: 700; }
.pill-row { display: flex; flex-wrap: wrap; gap: 7px; }
.pill { display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 3px 9px; color: #dfe6f3; background: rgba(255,255,255,.055); font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.pill.accent { color: #0c0b05; background: var(--accent); border-color: transparent; }
.mechanism { counter-reset: mechanism; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.mechanism > div { position: relative; border: 1px solid var(--line); border-radius: 18px; padding: 18px; background: rgba(255,255,255,.05); }
.mechanism > div::before { counter-increment: mechanism; content: counter(mechanism,decimal-leading-zero); display: inline-flex; color: var(--accent); font-size: 12px; font-weight: 700; margin-bottom: 10px; }
.mechanism strong { display: block; margin-bottom: 6px; }
.mechanism span { color: var(--muted); font-size: 14px; }
.cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid rgba(244,208,111,.36); border-radius: 28px; padding: 24px; background: linear-gradient(135deg,rgba(244,208,111,.15),rgba(119,230,210,.09)); }
.cta-panel h2 { margin: 0 0 6px; }
.cta-panel p { margin: 0; color: var(--muted); }
.quote { border-left: 3px solid var(--accent); padding-left: 18px; color: #e8eef8; }
.source-list a { color: var(--accent-2); word-break: break-word; }
.footer { padding: 54px 0 72px; color: var(--muted); font-size: 13px; }
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero::after { grid-column: 1; grid-row: auto; min-height: 260px; }
}
@media (max-width: 840px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .lang-switch { justify-content: flex-start; }
  .card, .card.wide { grid-column: 1 / -1; }
  .section-title { display: block; }
  .section-title p { margin-top: 8px; }
  .object-map, .product-grid, .mechanism { grid-template-columns: 1fr; }
  .product-card { min-height: auto; }
  .cta-panel { align-items: flex-start; flex-direction: column; }
}
