/* Corporate-site component styles for the standalone product-family pages. */
:root {
  --bg: #030912;
  --text: #eaf4ff;
  --muted: rgba(234,244,255,.62);
  --line: rgba(234,244,255,.13);
  --accent: #63d8ee;
  --accent-2: #b8a0ff;
  --tg-gold: #63d8ee;
  --tg-teal: #b8a0ff;
  --max: 1320px;
  --section-title-gradient: linear-gradient(100deg,#63d8ee,#b8a0ff);
  --button-primary-fill: linear-gradient(120deg,#21bad0 0%,#168dce 35%,#225cac 72%,#214482 100%);
  font-family: 'Noto Sans JP',-apple-system,BlinkMacSystemFont,'Hiragino Sans','Yu Gothic',Meiryo,sans-serif;
}
body { background: radial-gradient(ellipse at 75% 10%,rgba(65,105,150,.12),transparent 45%),#030912; }
.site-header,.hero,.section,.footer { width:min(var(--max),calc(100% - 48px)); }
h1,.hero h1.is-kinetic { font-size:clamp(32px,5vw,64px); line-height:1.2; letter-spacing:-.03em; }
h1,.section-title h2,.cta-panel h2 {
  width:fit-content; max-width:100%; background:var(--section-title-gradient);
  background-clip:text; -webkit-background-clip:text; color:transparent; -webkit-text-fill-color:transparent;
}
.hero h1 .tg-char { color:inherit; -webkit-text-fill-color:inherit; }
.section-title h2,.cta-panel h2 { font-size:clamp(28px,3vw,40px); line-height:1.4; letter-spacing:0; }
.lead { font-size:clamp(16px,1.7vw,20px); line-height:1.9; color:var(--muted); }
.section { padding:40px 0; }
.hero { padding:64px 0 48px; }
.hero::after { border-radius:12px; box-shadow:none; }
.button { min-height:44px; padding:10px 24px; border-radius:999px; font-size:14px; letter-spacing:.04em; background:transparent; border:1px solid rgba(157,196,228,.4); color:var(--text); }
.button.primary { color:#f4faff; background:var(--button-primary-fill); border:1px solid rgba(132,219,255,.4); box-shadow:inset 0 1px 1px rgba(208,246,255,.28); }
.button:hover { transform:none; border-color:#63d8ee; background:rgba(35,100,150,.16); }
.button.primary:hover { background:linear-gradient(120deg,#32cbdc,#229ddc 35%,#2b6cc0 72%,#2a5194); }
.button:focus-visible,.product-card:focus-visible { outline:2px solid #63d8ee; outline-offset:4px; }
.card,.object-map > div,.mechanism > div,.cta-panel {
  background:none; border:0; border-radius:0; box-shadow:none;
}
.card { padding:20px 24px; }
.card.wide + .card.wide { border-left:1px solid var(--line); }
.card h2 { font-size:22px; line-height:1.6; }
.object-map > div,.mechanism > div { border-bottom:1px solid var(--line); padding:20px 0; }
.object-map,.mechanism { column-gap:28px; }
.cta-panel { padding:32px 0; }
.product-card { border:1px solid rgba(140,188,220,.24); border-radius:18px; background:linear-gradient(145deg,rgba(21,53,80,.45),rgba(5,17,31,.78) 50%,rgba(8,35,55,.55)); box-shadow:none; padding:24px; }
.product-card:hover { transform:none; border-color:rgba(99,216,238,.65); }
.product-card::before { width:100%; margin:0 0 20px; border:0; border-radius:12px; box-shadow:none; }
.product-card h3 { font-size:21px; line-height:1.5; }
.pill,.pill.accent { background:none; border:1px solid var(--line); color:#b8cde5; font-weight:500; }
.product-card .link-arrow { color:#b9d5ee; align-self:flex-end; font-size:14px; }
.lang-switch a[aria-current='page'] { border-color:rgba(99,216,238,.5); background:rgba(99,216,238,.08); }
@media(max-width:840px) {
 .card { padding:20px 0; }
 .card.wide + .card.wide { border-left:0; border-top:1px solid var(--line); }
 .hero { padding-top:40px; }
}
@media(forced-colors:active) {
 h1,.section-title h2,.cta-panel h2 { background:none; color:CanvasText; -webkit-text-fill-color:CanvasText; }
}

/* Keep gradient text intact instead of splitting it into transparent 3D glyphs. */
.hero > h1 { min-width:0; overflow-wrap:anywhere; }
.hero { row-gap:18px; }
@media (prefers-reduced-motion:no-preference) {
  .hero h1.tg-title-enter { animation:tgWholeTitleIn 700ms cubic-bezier(.16,1,.3,1) both; }
}
@keyframes tgWholeTitleIn {
  from { opacity:0; transform:translateY(18px); }
  to { opacity:1; transform:none; }
}

/* Product cards share the corporate image/body/action structure. */
.product-grid { gap:28px; }
.product-card,.product-card:hover { padding:0 24px 24px; border-color:rgba(140,188,220,.24); transform:none; }
.product-card::before {
  width:calc(100% + 48px);
  margin:0 -24px 24px;
  border-radius:0;
  flex-shrink:0;
}
.product-card .tg-hud { display:none; }
.product-card .pill-row { margin-bottom:8px; }
.product-card .button.secondary.link-arrow {
  margin-top:24px;
  padding:10px 24px;
  min-height:44px;
  align-self:flex-end;
  color:#eaf4ff;
  border:1px solid rgba(157,196,228,.4);
  border-radius:999px;
  background:transparent;
  font-size:14px;
  font-weight:600;
}
.product-card p { flex-grow:1; }
.product-card .button.secondary.link-arrow:hover { border-color:#63d8ee; background:rgba(35,100,150,.16); }

/* Section introductions stack the description below the heading. */
.section-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}
.section-title > p { max-width: none; margin: 0; }

/* Match the corporate product card: full-bleed image, inset body, badges and pill action. */
.product-grid { align-items: stretch; gap: 28px; }
.product-card,
.product-card:hover {
  padding: 0 28px 28px;
  border: 1px solid rgba(140,188,220,.24);
  border-radius: 18px;
  background: linear-gradient(145deg,rgba(21,53,80,.45),rgba(5,17,31,.78) 50%,rgba(8,35,55,.55));
  box-shadow: inset 0 1px 0 rgba(197,230,255,.08),0 12px 36px rgba(0,0,0,.2);
}
.product-card::before {
  width: calc(100% + 56px);
  margin: 0 -28px 24px;
  border: 0;
  border-radius: 0;
}
.product-card .pill-row { gap: 8px; margin: 0 0 16px; }
.product-card .pill {
  padding: 4px 9px;
  border: 1px solid rgba(157,196,228,.26);
  border-radius: 7px;
  background: rgba(157,196,228,.08);
  color: #c7d5e4;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
}
.product-card .pill.accent { color:#8fd9ef; border-color:rgba(99,216,238,.3); background:rgba(99,216,238,.08); }
.product-card h3 { margin: 0 0 16px; font-size: 24px; font-weight: 600; line-height: 1.6; letter-spacing: .01em; }
.product-card p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.9; }
.product-card .button.secondary.link-arrow {
  margin-top: 32px;
  min-height: 44px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.5;
  border: 1px solid rgba(157,196,228,.4);
  border-radius: 999px;
}
@media(max-width:640px) {
  .product-card,.product-card:hover { padding:0 22px 24px; }
  .product-card::before { width:calc(100% + 44px); margin-inline:-22px; }
  .product-card h3 { font-size:21px; }
  .product-card p { font-size:15px; }
}

/* Product cards use up to three columns. */
.product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .product-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Let the agent scene float over the page while preserving canvas effects. */
.tg-stage {
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.tg-stage::before { content: none; }

/* A continuous four-step process with quiet, non-interactive markers. */
.mechanism { grid-template-columns:repeat(4,minmax(0,1fr)); gap:32px; counter-reset:mechanism; }
.mechanism > div,
.tg-motion .mechanism > div {
  position:relative;
  padding:0;
  border:0;
  border-radius:0;
  background:none;
  box-shadow:none;
  animation:none;
}
.mechanism > div::before {
  counter-increment:mechanism;
  content:counter(mechanism,decimal-leading-zero);
  display:grid;
  place-items:center;
  width:48px;
  height:48px;
  margin:0 0 24px;
  border:1px solid rgba(150,180,224,.35);
  border-radius:50%;
  background:linear-gradient(145deg,rgba(99,216,238,.1),rgba(184,160,255,.08));
  color:#b9d9f3;
  font-size:17px;
  font-weight:500;
  letter-spacing:-.03em;
}
.mechanism > div:not(:last-child)::after {
  content:'';
  position:absolute;
  top:24px;
  left:64px;
  width:calc(100% - 48px);
  height:1px;
  background:linear-gradient(90deg,rgba(99,216,238,.35),rgba(184,160,255,.24));
}
.mechanism strong { margin:0 0 14px; font-size:20px; font-weight:600; line-height:1.5; }
.mechanism span { display:block; max-width:30ch; font-size:15px; line-height:1.9; }
@media(max-width:840px) {
  .mechanism { grid-template-columns:repeat(2,minmax(0,1fr)); gap:32px; }
  .mechanism > div:nth-child(2)::after { display:none; }
}
@media(max-width:540px) {
  .mechanism { grid-template-columns:minmax(0,1fr); gap:28px; }
  .mechanism > div { padding-left:68px; min-height:100px; }
  .mechanism > div::before { position:absolute; left:0; top:0; }
  .mechanism > div:not(:last-child)::after,
  .mechanism > div:nth-child(2)::after {
    display:block; left:24px; top:60px; width:1px; height:calc(100% - 44px);
    background:linear-gradient(rgba(99,216,238,.35),rgba(184,160,255,.24));
  }
  .mechanism strong { font-size:18px; }
}

/* Closing CTA: copy above, action on its own second row. */
.cta-panel {
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:24px;
}
.cta-panel > .button {
  align-self:flex-end;
  flex-shrink:0;
  white-space:nowrap;
}

/* Switch the process directly to a vertical sequence when columns become narrow. */
@media (max-width: 1024px) {
  .mechanism { grid-template-columns:minmax(0,1fr); gap:28px; }
  .mechanism > div { padding-left:68px; min-height:100px; }
  .mechanism > div::before { position:absolute; left:0; top:0; }
  .mechanism > div:not(:last-child)::after,
  .mechanism > div:nth-child(2)::after {
    display:block;
    left:24px;
    top:60px;
    width:1px;
    height:calc(100% - 44px);
    background:linear-gradient(rgba(99,216,238,.35),rgba(184,160,255,.24));
  }
  .mechanism span { max-width:none; }
}

/* Retain the marker gutter even when the motion class is active. */
@media (max-width: 1024px) {
  .mechanism > div,
  .tg-motion .mechanism > div {
    padding: 0 0 0 68px;
    min-height: 100px;
  }
}

/* Editorial illustrations for the origin and practical-value explanations. */
.tsuku-explanation-illustration {
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:16 / 9;
  object-fit:cover;
  border-radius:12px;
  margin:0 0 24px;
}
