/* ==========================================================
   KeyCenter — design system (Amazon-commerce inspired)
   ink #0F1111 · header #131921 · subnav #232F3E
   orange #FF9900 · buy-yellow #FFD814 · link teal #007185
   ========================================================== */

:root {
  --ink: #0f1111;
  --ink-2: #374151;
  --sub: #565959;
  --hd: #131921;
  --hd-2: #232f3e;
  --hd-3: #37475a;
  --orange: #ff9900;
  --orange-2: #fa8900;
  --yellow: #ffd814;
  --yellow-b: #fcd200;
  --link: #007185;
  --link-h: #c7511f;
  --bg: #eaeded;
  --bg-2: #f7f8f8;
  --card: #ffffff;
  --line: #d5d9d9;
  --line-2: #e7e9ec;
  --ok: #067d62;
  --r: 10px;
  --r-lg: 16px;
  --sh: 0 2px 5px rgba(15, 17, 17, .08);
  --sh-2: 0 10px 30px rgba(15, 17, 17, .12);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --font: 'Inter', 'Noto Sans JP', 'Noto Sans SC', system-ui, -apple-system, 'Hiragino Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --gut: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  background: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.lang-ja, .lang-zh { line-break: strict; word-break: normal; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-h); }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, a, input, select, textarea, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #e77600; outline-offset: 2px; border-radius: 4px; }
.ic { flex: none; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--yellow); color: var(--ink); padding: 10px 16px; z-index: 999; }
.skip:focus { left: 12px; top: 12px; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 26px;
  border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-size: 15px; font-weight: 700; line-height: 1.3; text-align: center;
  cursor: pointer; transition: background .2s, box-shadow .2s, transform .2s var(--ease), border-color .2s;
  white-space: normal;
}
.btn:active { transform: translateY(1px); }
.btn--buy { background: var(--yellow); border-color: var(--yellow-b); color: var(--ink); box-shadow: 0 2px 5px rgba(213, 217, 217, .5); }
.btn--buy:hover { background: #f7ca00; color: var(--ink); }
.btn--orange { background: var(--orange); border-color: var(--orange-2); color: var(--ink); }
.btn--orange:hover { background: #fa8900; color: var(--ink); }
.btn--ghost { background: #fff; border-color: var(--line); color: var(--ink); box-shadow: 0 2px 5px rgba(213, 217, 217, .5); }
.btn--ghost:hover { background: var(--bg-2); color: var(--ink); }
.btn--line { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--line:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.btn--sm { min-height: 38px; padding: 7px 18px; font-size: 14px; }
.btn--lg { min-height: 54px; padding: 14px 34px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }
.tlink { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--link); }
.tlink:hover { color: var(--link-h); text-decoration: underline; }

/* ---------------- Header ---------------- */
.hd { position: sticky; top: 0; z-index: 100; }
.hd__bar { background: var(--hd); color: #fff; padding-top: env(safe-area-inset-top, 0px); }
.hd__row { display: flex; align-items: center; gap: 14px; min-height: 62px; }
.hd__burger { display: none; background: none; border: 1px solid transparent; color: #fff; padding: 6px; border-radius: 6px; cursor: pointer; }
.hd__burger:hover { border-color: #fff; }
.logo { display: inline-flex; align-items: center; gap: 9px; color: #fff; flex: none; padding: 4px 6px; border: 1px solid transparent; border-radius: 4px; }
.logo:hover { color: #fff; border-color: rgba(255, 255, 255, .8); }
.logo__txt { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 21px; letter-spacing: -.02em; }
.logo__txt b { font-weight: 800; color: var(--orange); }
.hd__nav { display: flex; gap: 2px; margin-left: 10px; flex: 1; min-width: 0; }
.hd__link { color: #fff; font-size: 14px; font-weight: 600; padding: 8px 10px; border: 1px solid transparent; border-radius: 4px; white-space: nowrap; }
.hd__link:hover, .hd__link.is-on { color: #fff; border-color: rgba(255, 255, 255, .85); }
.hd__right { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }
.hd__cta { min-height: 40px; padding: 8px 18px; font-size: 14px; }

.lsw { position: relative; }
.lsw__btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid transparent; color: #fff; font: inherit; font-size: 13px; font-weight: 700; padding: 8px 8px; border-radius: 4px; cursor: pointer; }
.lsw__btn:hover, .lsw.is-open .lsw__btn { border-color: rgba(255, 255, 255, .85); }
.lsw__menu { position: absolute; right: 0; top: calc(100% + 6px); list-style: none; background: #fff; border-radius: 8px; box-shadow: var(--sh-2); padding: 6px; min-width: 150px; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .18s var(--ease); z-index: 5; }
.lsw.is-open .lsw__menu { opacity: 1; visibility: visible; transform: none; }
.lsw__menu a { display: block; padding: 9px 12px; color: var(--ink); font-size: 14px; border-radius: 6px; }
.lsw__menu a:hover { background: var(--bg-2); }
.lsw__menu a.is-on { font-weight: 700; color: var(--link-h); }

.hd__sub { background: var(--hd-2); }
.hd__subrow { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; min-height: 40px; align-items: center; }
.hd__subrow::-webkit-scrollbar { display: none; }
.hd__subrow a { color: #fff; font-size: 13px; padding: 6px 10px; border: 1px solid transparent; border-radius: 4px; white-space: nowrap; flex: none; }
.hd__subrow a:hover { color: #fff; border-color: #fff; }

/* ---------------- Drawer (outside header) ---------------- */
.drawer { position: fixed; inset: 0; z-index: 300; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .7); opacity: 0; transition: opacity .3s; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel { position: absolute; top: 0; left: 0; bottom: 0; width: min(365px, 86vw); background: #fff; display: flex; flex-direction: column; transform: translateX(-100%); transition: transform .32s var(--ease); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; background: var(--hd-2); color: #fff; padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 14px 20px; }
.drawer__hello { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.drawer__close { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; color: #fff; cursor: pointer; }
.drawer__body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 6px 0 calc(24px + env(safe-area-inset-bottom, 0px)); }
.drawer__h { font-weight: 800; font-size: 17px; padding: 18px 20px 8px; border-top: 1px solid var(--line); }
.drawer__h:first-child { border-top: 0; }
.drawer__a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 20px; color: var(--ink); font-size: 15px; }
.drawer__a:hover { background: var(--bg-2); color: var(--ink); }
.drawer__a .ic { color: var(--sub); }
.drawer__langs { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 20px 6px; }
.drawer__langs a { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 14px; }
.drawer__langs a.is-on { background: var(--hd-2); color: #fff; border-color: var(--hd-2); }
.drawer__cta { margin: 18px 20px 0; width: auto; }
body.no-scroll { overflow: hidden; }

/* ---------------- Sections ---------------- */
.sec { padding: clamp(56px, 8vw, 96px) 0; }
.sec--gray { background: var(--bg); }
.sec--soft { background: var(--bg-2); }
.sec--dark { background: var(--hd); color: #fff; }
.sec--navy { background: var(--hd-2); color: #fff; }
.sec-head { max-width: 820px; margin-bottom: clamp(30px, 4vw, 46px); }
.sec-head--c { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #c45500; margin-bottom: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--orange); }
.sec--dark .eyebrow, .sec--navy .eyebrow { color: var(--orange); }
.h2 { font-size: clamp(1.55rem, 3.2vw, 2.35rem); margin-bottom: 12px; }
.lead { color: var(--sub); font-size: clamp(.95rem, 1.4vw, 1.05rem); }
.sec--dark .lead, .sec--navy .lead { color: #c7cdd3; }

.grid { display: grid; gap: clamp(14px, 2vw, 22px); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid > * { min-width: 0; }

.card { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); padding: 24px; min-width: 0; }
.card--line { box-shadow: none; border: 1px solid var(--line-2); }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { color: var(--sub); font-size: 14px; }
.ibox { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #fff4e0; color: #c45500; margin-bottom: 14px; }
.ibox--dark { background: rgba(255, 153, 0, .14); color: var(--orange); }

/* ---------------- Hero ---------------- */
.hero { position: relative; background: var(--hd); color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, #131921 18%, rgba(19, 25, 33, .82) 52%, rgba(19, 25, 33, .55)), linear-gradient(0deg, #131921, transparent 40%); }
.hero__in { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 4vw, 56px); align-items: center; padding-block: clamp(48px, 7vw, 92px) clamp(56px, 7vw, 96px); }
.hero__in > * { min-width: 0; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 153, 0, .15); color: var(--orange); border: 1px solid rgba(255, 153, 0, .4); font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 999px; margin-bottom: 20px; }
.hero__title { font-size: clamp(1.85rem, 3.6vw, 2.85rem); font-weight: 900; line-height: 1.2; margin-bottom: 20px; }
.hero__title span { display: block; }
.hero__title span + span { color: var(--orange); }
.hero__sub { color: #d5dbe1; font-size: clamp(.98rem, 1.5vw, 1.1rem); max-width: 600px; margin-bottom: 28px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.hero__badges li { list-style: none; display: inline-flex; align-items: center; gap: 7px; color: #e3e6e9; font-size: 13.5px; font-weight: 600; }
.hero__badges .ic { color: #3ee6a6; }

/* Agent console mockup */
.console { background: #0b0f14; border: 1px solid #2b3846; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); overflow: hidden; font-size: 13px; }
.console__top { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #161d26; border-bottom: 1px solid #2b3846; }
.console__dot { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.console__dot:nth-child(2) { background: #febc2e; }
.console__dot:nth-child(3) { background: #28c840; }
.console__name { margin-left: 8px; color: #9aa7b4; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.console__live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: #3ee6a6; font-size: 11.5px; font-weight: 700; flex: none; }
.console__live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3ee6a6; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.console__agents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 14px; }
.agent { background: #121922; border: 1px solid #243140; border-radius: 10px; padding: 10px 12px; min-width: 0; }
.agent__n { display: flex; align-items: center; gap: 7px; color: #fff; font-weight: 700; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent__n::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3ee6a6; flex: none; }
.agent__r { color: #8a97a5; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent__bar { height: 4px; background: #243140; border-radius: 2px; margin-top: 8px; overflow: hidden; }
.agent__bar i { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, var(--orange), #ffd814); border-radius: 2px; animation: work 3.2s var(--ease) infinite; }
.agent:nth-child(2) .agent__bar i { animation-delay: .5s; }
.agent:nth-child(3) .agent__bar i { animation-delay: 1s; }
.agent:nth-child(4) .agent__bar i { animation-delay: 1.5s; }
.agent:nth-child(5) .agent__bar i { animation-delay: 2s; }
.agent:nth-child(6) .agent__bar i { animation-delay: 2.5s; }
@keyframes work { 0% { width: 8%; } 60% { width: 96%; } 100% { width: 8%; } }
.console__log { border-top: 1px solid #243140; padding: 12px 14px 14px; font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: 11.5px; color: #9aa7b4; height: 118px; overflow: hidden; }
.console__log p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: logIn .4s var(--ease); }
.console__log b { color: var(--orange); font-weight: 600; }
.console__log em { color: #3ee6a6; font-style: normal; }
@keyframes logIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Stats */
.stats { background: #fff; border-bottom: 1px solid var(--line-2); }
.stats__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 28px 18px; text-align: center; border-left: 1px solid var(--line-2); min-width: 0; }
.stat:first-child { border-left: 0; }
.stat__v { font-family: 'Inter', sans-serif; font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; color: var(--ink); line-height: 1.1; white-space: nowrap; }
.stat__v small { font-size: .5em; font-weight: 700; color: #c45500; margin-left: 2px; }
.stat__l { color: var(--sub); font-size: 13px; margin-top: 6px; }

/* Solution cards (Amazon "card" style) */
.scard { display: flex; flex-direction: column; background: #fff; border-radius: var(--r); box-shadow: var(--sh); overflow: hidden; color: var(--ink); transition: box-shadow .25s, transform .25s var(--ease); min-width: 0; }
.scard:hover { color: var(--ink); box-shadow: var(--sh-2); transform: translateY(-3px); }
.scard__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg); }
.scard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.scard:hover .scard__img img { transform: scale(1.05); }
.scard__b { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.scard__ic { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; color: #c45500; text-transform: uppercase; letter-spacing: .06em; }
.scard h3 { font-size: 18px; }
.scard p { color: var(--sub); font-size: 14px; }
.scard .tlink { margin-top: auto; padding-top: 6px; }

/* Problem cards */
.pcard { border-top: 4px solid var(--orange); }

/* Agent list (dark) */
.alist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.aitem { background: var(--hd-2); border: 1px solid var(--hd-3); border-radius: var(--r); padding: 22px; min-width: 0; transition: border-color .25s, transform .25s var(--ease); }
.aitem:hover { border-color: var(--orange); transform: translateY(-3px); }
.aitem__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.aitem__name { font-weight: 800; font-size: 17px; color: #fff; }
.aitem__st { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: #3ee6a6; background: rgba(62, 230, 166, .1); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.aitem__st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #3ee6a6; animation: pulse 1.6s infinite; }
.aitem__role { color: var(--orange); font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.aitem p { color: #c7cdd3; font-size: 14px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: st; }
.step { background: #fff; border-radius: var(--r); box-shadow: var(--sh); padding: 26px 22px; position: relative; min-width: 0; }
.step::before { counter-increment: st; content: counter(st, decimal-leading-zero); display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--hd); color: var(--orange); font-family: 'Inter', sans-serif; font-weight: 800; margin-bottom: 14px; }
.step h3 { font-size: 16.5px; margin-bottom: 8px; }
.step p { color: var(--sub); font-size: 14px; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split > * { min-width: 0; }
.split--rev .split__media { order: 2; }
.split__media img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--sh-2); aspect-ratio: 4 / 3; object-fit: cover; }
.plist { display: grid; gap: 18px; margin-top: 26px; }
.pitem { display: flex; gap: 14px; align-items: flex-start; }
.pitem__ic { width: 40px; height: 40px; border-radius: 10px; flex: none; display: flex; align-items: center; justify-content: center; background: #fff4e0; color: #c45500; }
.sec--dark .pitem__ic, .sec--navy .pitem__ic { background: rgba(255, 153, 0, .14); color: var(--orange); }
.pitem h3 { font-size: 16px; margin-bottom: 4px; }
.pitem p { color: var(--sub); font-size: 14px; }
.sec--dark .pitem p, .sec--navy .pitem p { color: #c7cdd3; }

/* Regions */
.regions { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.region { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r); padding: 18px; min-width: 0; }
.region h3 { font-size: 15px; color: #fff; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.region h3 .ic { color: var(--orange); }
.region p { color: #b9c2cb; font-size: 12.5px; line-height: 1.8; overflow-wrap: anywhere; }
.globe-band { position: relative; overflow: hidden; }
.globe-band__bg { position: absolute; inset: 0; }
.globe-band__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.globe-band .wrap { position: relative; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 26px; display: flex; flex-direction: column; min-width: 0; }
.plan--hot { border: 2px solid var(--orange); box-shadow: 0 14px 40px rgba(255, 153, 0, .18); }
.plan__badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--orange); color: var(--ink); font-size: 12.5px; font-weight: 800; padding: 4px 14px; border-radius: 999px; white-space: nowrap; }
.plan__name { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.plan__desc { color: var(--sub); font-size: 13.5px; min-height: 3.4em; margin-bottom: 14px; }
.plan__price { font-family: 'Inter', sans-serif; font-size: clamp(1.8rem, 3vw, 2.3rem); font-weight: 800; line-height: 1.15; white-space: nowrap; }
.plan__price small { font-size: 13px; font-weight: 600; color: var(--sub); margin-left: 4px; }
.plan__setup { display: inline-block; margin: 8px 0 18px; font-size: 13px; font-weight: 700; color: var(--ok); background: #e6f4f0; padding: 3px 10px; border-radius: 6px; }
.plan__feat { list-style: none; display: grid; gap: 10px; margin-bottom: 24px; }
.plan__feat li { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; }
.plan__feat .ic { color: var(--ok); margin-top: 3px; }
.plan .btn { margin-top: auto; }

.consult { display: grid; grid-template-columns: 1.3fr 1fr; gap: 26px; align-items: center; background: linear-gradient(110deg, #232f3e, #131921); color: #fff; border-radius: var(--r-lg); padding: clamp(26px, 4vw, 40px); margin-bottom: 40px; }
.consult > * { min-width: 0; }
.consult h2 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); margin-bottom: 8px; }
.consult p { color: #c7cdd3; }
.consult ul { list-style: none; display: grid; gap: 8px; margin: 16px 0 0; }
.consult li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.consult li .ic { color: var(--orange); margin-top: 3px; }
.consult__cta { text-align: center; }

/* Tables */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.tbl { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 14px; }
.tbl th, .tbl td { padding: 13px 16px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.tbl thead th { background: var(--hd-2); color: #fff; font-weight: 700; white-space: nowrap; }
.tbl tbody th { font-weight: 700; background: var(--bg-2); white-space: nowrap; }
.tbl tr:last-child td, .tbl tr:last-child th { border-bottom: 0; }
.dl { display: grid; grid-template-columns: 220px 1fr; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.dl dt, .dl dd { margin: 0; padding: 15px 20px; border-bottom: 1px solid var(--line-2); font-size: 14.5px; min-width: 0; overflow-wrap: anywhere; }
.dl dt { background: var(--bg-2); font-weight: 700; }
.dl dt:last-of-type, .dl dd:last-of-type { border-bottom: 0; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 900px; }
.faq--c { margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 20px; cursor: pointer; font-weight: 700; font-size: 15px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--sub); transition: transform .25s var(--ease); }
.faq details[open] summary .ic { transform: rotate(45deg); color: #c45500; }
.faq details > div { padding: 0 20px 18px; color: var(--ink-2); font-size: 14.5px; }

/* CTA band */
.cta { background: linear-gradient(100deg, #ff9900, #ffb84d); color: var(--ink); }
.cta__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: clamp(36px, 5vw, 54px); flex-wrap: wrap; }
.cta__in > div { min-width: 0; flex: 1 1 420px; }
.cta h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); margin-bottom: 6px; }
.cta p { color: #3a2a10; }
.cta .btn--dark { background: var(--hd); color: #fff; border-color: var(--hd); }
.cta .btn--dark:hover { background: var(--hd-2); color: #fff; }

/* Page hero (inner pages) */
.phero { background: var(--hd-2); color: #fff; position: relative; overflow: hidden; }
.phero__bg { position: absolute; inset: 0; }
.phero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .22; }
.phero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #232f3e 25%, rgba(35, 47, 62, .7)); }
.phero .wrap { position: relative; padding-top: clamp(38px, 6vw, 70px); padding-bottom: clamp(38px, 6vw, 64px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; color: #aeb7c0; margin-bottom: 14px; list-style: none; }
.crumbs a { color: #d5dbe1; }
.crumbs a:hover { color: var(--orange); }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: #7d8a97; }
.phero h1 { font-size: clamp(1.7rem, 3.8vw, 2.8rem); font-weight: 900; margin-bottom: 12px; max-width: 900px; }
.phero p { color: #d0d6dc; max-width: 780px; font-size: clamp(.95rem, 1.4vw, 1.05rem); }
.phero .hero__ctas { margin: 22px 0 0; }

/* Solution detail */
.sd-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.sd-hero__grid > * { min-width: 0; }
.sd-hero__img img { border-radius: var(--r-lg); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.feat { display: flex; gap: 14px; align-items: flex-start; }
.feat__ic { width: 34px; height: 34px; border-radius: 50%; background: var(--hd); color: var(--orange); display: flex; align-items: center; justify-content: center; flex: none; }
.feat h3 { font-size: 16px; margin-bottom: 4px; }
.feat p { color: var(--sub); font-size: 14px; }
.outs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.out { background: #fff; border-radius: var(--r); box-shadow: var(--sh); text-align: center; padding: 28px 18px; min-width: 0; }
.out__n { font-family: 'Inter', sans-serif; font-size: clamp(2rem, 4vw, 2.7rem); font-weight: 800; color: #c45500; line-height: 1.1; }
.out__l { font-weight: 700; margin: 8px 0 6px; }
.out p { color: var(--sub); font-size: 12.5px; }

/* Tools */
.tcat { margin-bottom: 40px; scroll-margin-top: 120px; }
.tcat__h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 2px solid var(--hd); padding-bottom: 10px; margin-bottom: 16px; }
.tcat__h h2 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
.tcat__h p { color: var(--sub); font-size: 13.5px; }
.tgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tool { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); padding: 16px; min-width: 0; }
.tool__av { width: 44px; height: 44px; border-radius: 10px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--hd); color: var(--orange); font-family: 'Inter', sans-serif; font-weight: 800; font-size: 15px; }
.tool h3 { font-size: 15px; }
.tool__v { font-size: 12px; color: var(--sub); margin-bottom: 4px; }
.tool p { font-size: 13px; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.chips a { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: 13.5px; font-weight: 600; }
.chips a:hover, .chips a.is-on { background: var(--hd-2); border-color: var(--hd-2); color: #fff; }
.note { font-size: 12.5px; color: var(--sub); }

/* Company */
.msg { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.msg > * { min-width: 0; }
.msg__img img { border-radius: var(--r-lg); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.msg__body p { margin-bottom: 16px; color: var(--ink-2); }
.msg__sign { font-weight: 800; text-align: right; margin-top: 10px; }
.map { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 7; background: var(--bg); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Contact */
.cform { display: grid; grid-template-columns: 1.4fr .9fr; gap: clamp(22px, 3vw, 40px); align-items: start; }
.cform > * { min-width: 0; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 34px); }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.frow > * { min-width: 0; }
.fld { margin-bottom: 18px; }
.fld label { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.tag-req { font-size: 11px; font-weight: 700; color: #fff; background: #c40000; border-radius: 4px; padding: 1px 6px; }
.tag-opt { font-size: 11px; font-weight: 700; color: var(--sub); background: var(--bg); border-radius: 4px; padding: 1px 6px; }
.fld input, .fld select, .fld textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid #888c8c; border-radius: 8px; padding: 11px 13px; box-shadow: 0 1px 2px rgba(15, 17, 17, .15) inset; }
.fld textarea { min-height: 160px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: #e77600; box-shadow: 0 0 0 3px rgba(228, 121, 17, .3); }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 6px 0 20px; }
.agree input { width: 20px; height: 20px; margin-top: 2px; accent-color: #e77600; flex: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: var(--r); padding: 16px 18px; margin-bottom: 20px; display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; }
.alert--ok { background: #e6f4f0; border: 1px solid #b3e0d3; color: #054d3d; }
.alert--err { background: #fcf0f0; border: 1px solid #f0c0c0; color: #8a1010; }
.side { display: grid; gap: 14px; }

/* Legal */
.legal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.legal__nav { position: sticky; top: 120px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r); padding: 14px; }
.legal__nav p { font-weight: 800; font-size: 14px; padding: 4px 8px 8px; }
.legal__nav a { display: block; padding: 8px 10px; border-radius: 6px; font-size: 14px; color: var(--ink); }
.legal__nav a:hover { background: #fff; color: var(--ink); }
.legal__nav a.is-on { background: var(--hd-2); color: #fff; font-weight: 700; }
.doc { max-width: 860px; min-width: 0; }
.doc__upd { color: var(--sub); font-size: 13px; margin-bottom: 18px; }
.doc__intro { font-size: 15.5px; color: var(--ink-2); margin-bottom: 26px; padding: 18px 20px; background: var(--bg-2); border-left: 4px solid var(--orange); border-radius: 0 8px 8px 0; }
.doc h2 { font-size: 1.12rem; margin: 30px 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line-2); }
.doc p { margin-bottom: 12px; color: var(--ink-2); font-size: 15px; }
.doc ul { margin: 0 0 14px 1.3em; color: var(--ink-2); font-size: 15px; }
.doc li { margin-bottom: 6px; }

/* Articles */
.acard { display: flex; flex-direction: column; background: #fff; border-radius: var(--r); box-shadow: var(--sh); overflow: hidden; color: var(--ink); min-width: 0; transition: box-shadow .25s, transform .25s var(--ease); }
.acard:hover { color: var(--ink); box-shadow: var(--sh-2); transform: translateY(-3px); }
.acard__img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg); }
.acard__img img { width: 100%; height: 100%; object-fit: cover; }
.acard__b { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 12.5px; color: var(--sub); }
.pill { display: inline-block; font-size: 11.5px; font-weight: 700; color: #c45500; background: #fff4e0; padding: 2px 10px; border-radius: 999px; }
.acard h3 { font-size: 16.5px; }
.acard p { color: var(--sub); font-size: 13.5px; }
.art { max-width: 820px; margin: 0 auto; }
.art__img { border-radius: var(--r-lg); overflow: hidden; margin-bottom: 30px; box-shadow: var(--sh-2); }
.art__img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.art h2 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); margin: 34px 0 12px; padding-left: 14px; border-left: 4px solid var(--orange); }
.art p { margin-bottom: 16px; color: var(--ink-2); font-size: 16px; line-height: 1.95; }
.toc { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r); padding: 18px 22px; margin-bottom: 26px; }
.toc p { font-weight: 800; margin-bottom: 8px; }
.toc ol { margin-left: 1.3em; display: grid; gap: 4px; font-size: 14.5px; }

/* Glossary */
.gl-index { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; }
.gl-index a { padding: 5px 12px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; color: var(--ink); background: #fff; }
.gl-index a:hover { border-color: var(--hd-2); }
.gl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gl dl { margin: 0; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); padding: 18px 20px; scroll-margin-top: 120px; min-width: 0; }
.gl dt { font-weight: 800; font-size: 16px; margin-bottom: 6px; color: var(--ink); }
.gl dd { margin: 0; color: var(--ink-2); font-size: 14px; }

/* Market tiles */
.mtile { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); padding: 20px; color: var(--ink); min-width: 0; transition: border-color .2s, box-shadow .2s; }
.mtile:hover { color: var(--ink); border-color: var(--orange); box-shadow: var(--sh-2); }
.mtile__d { font-family: 'Inter', sans-serif; font-weight: 800; font-size: 17px; overflow-wrap: anywhere; }
.mtile__m { display: flex; gap: 8px; flex-wrap: wrap; }
.mtile p { color: var(--sub); font-size: 13.5px; }

/* Sitemap page */
.smap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.smap h2 { font-size: 16px; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 2px solid var(--orange); }
.smap ul { list-style: none; display: grid; gap: 6px; font-size: 14px; }

/* Footer */
.totop { display: block; background: var(--hd-3); color: #fff; text-align: center; padding: 15px; font-size: 13px; font-weight: 600; }
.totop:hover { background: #485769; color: #fff; }
.ft { background: var(--hd-2); color: #ddd; }
.ft__grid { display: grid; grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); gap: 30px; padding-top: 48px; padding-bottom: 40px; }
.ft__grid > * { min-width: 0; }
.ft__brand p { font-size: 13.5px; color: #c7cdd3; margin-top: 12px; }
.ft__addr { display: flex; gap: 8px; align-items: flex-start; }
.ft__addr .ic { margin-top: 4px; color: var(--orange); }
.logo--ft { margin-left: -6px; }
.ft__col h2 { font-size: 15px; color: #fff; margin-bottom: 12px; }
.ft__col a { display: block; color: #dddddd; font-size: 13.5px; padding: 4px 0; }
.ft__col a:hover { color: #fff; text-decoration: underline; }
.ft__langs { border-top: 1px solid #3a4553; }
.ft__langs .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding-top: 18px; padding-bottom: 18px; }
.ft__langs a { display: inline-flex; align-items: center; gap: 6px; color: #ddd; font-size: 13px; padding: 6px 12px; border: 1px solid #5b6774; border-radius: 4px; }
.ft__langs a.is-on, .ft__langs a:hover { color: #fff; border-color: #fff; }
.ft__bottom { background: var(--hd); padding-bottom: env(safe-area-inset-bottom, 0px); }
.ft__bottom .wrap { padding-top: 22px; padding-bottom: 26px; text-align: center; font-size: 12.5px; color: #aab3bc; display: grid; gap: 8px; }
.ft__tm { max-width: 900px; margin: 0 auto; color: #8d98a4; font-size: 12px; }

/* Cookie */
.cookie { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 200; max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh-2); padding: 14px 16px; display: flex; align-items: center; gap: 14px; font-size: 13.5px; }
.cookie p { flex: 1; min-width: 0; }

/* Reveal */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1180px) {
  .hd__nav { display: none; }
  .hd__burger { display: inline-flex; }
  .regions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ft__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ft__brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .hero__in, .sd-hero__grid, .split, .msg, .cform, .consult { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .g3, .alist, .tgrid, .plans, .smap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g4, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-2); }
  .legal { grid-template-columns: 1fr; }
  .legal__nav { position: static; }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .msg__img img { aspect-ratio: 16 / 10; }
  .consult__cta { text-align: left; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .hd__row { min-height: 56px; gap: 8px; }
  .logo__txt { font-size: 19px; }
  .logo__mark { width: 30px; height: 30px; }
  .hd__cta { display: none; }
  .g2, .g3, .g4, .alist, .tgrid, .steps, .outs, .gl, .smap, .regions { grid-template-columns: 1fr; }
  .frow { grid-template-columns: 1fr; }
  .dl { grid-template-columns: 1fr; }
  .dl dt { border-bottom: 0; padding-bottom: 4px; }
  .dl dd { padding-top: 4px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .console__log { height: 100px; }
  .ft__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .cookie { flex-direction: column; align-items: stretch; text-align: left; }
  .cta__in .btn { width: 100%; }
  .card, .step { padding: 20px; }
}
@media (max-width: 380px) {
  .console__agents { grid-template-columns: 1fr; }
  .lsw__btn span { display: none; }
}
/* JA/ZH headings: break at natural phrase boundaries where possible */
.lang-ja .h2, .lang-ja .phero h1 { word-break: keep-all; overflow-wrap: anywhere; }

h1, h2, h3, .hero__title span { text-wrap: balance; }
.lead, .hero__sub, .phero p { text-wrap: pretty; }
input, select, textarea { font-size: 16px; }
@media (max-width: 960px) {
  .legal__nav { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; }
  .legal__nav p { width: 100%; padding: 2px 4px 4px; }
  .legal__nav a { padding: 6px 12px; border: 1px solid var(--line); background: #fff; border-radius: 999px; font-size: 13px; }
}
