/* PANTONA: white and navy identity, blue-gray surfaces, shoji lines, and a quiet sunrise. */
:root {
  --navy: #182b47;
  --navy-soft: #213b63;
  --blue: #213b63;
  --cyan: #b35743;
  --ink: #213b63;
  --muted: #66707c;
  --line: #e1e6ed;
  --light: #f4f6f9;
  --radius: 4px;
  --shadow: 0 16px 40px #213b6308;
}
body { background: #ffffff; }
::selection { background: #c9705529; }
h1, h2, h3, h4 { letter-spacing: -.045em; }
.button { border-radius: 2px; padding: 14px 22px; }
.button-primary:hover { background: #142c4f; }
.button:hover { box-shadow: 0 5px 18px #213b6314; }
.button-secondary { border-color: #c9ced3; }
.button-secondary:hover { background: #edf0f5; }
.site-header { background: #ffffffed; color: #4c596a; border-bottom: 1px solid var(--line); }
.header-inner { gap: 20px; height: 86px; }
.brand { display: inline-flex; width: 176px; flex-shrink: 0; }
.brand-logo { width: 100%; height: auto; }
.nav-links { gap: 19px; margin-left: auto; }
.nav-links > a { font-size: 11px; }
.nav-links > a:hover, .nav-links > a[aria-current=page] { color: var(--blue); }
.nav-links > a[aria-current=page]:after { background: var(--cyan); bottom: 21px; }
.header-cta { padding: 11px 15px; font-size: 11px; }
.header-cta .icon { width: 14px; }
.nav-toggle { border-color: #cbd0d6; color: var(--blue); border-radius: 2px; }
.language-switch { display: flex; gap: 4px; align-items: center; flex-shrink: 0; border-left: 1px solid var(--line); padding-left: 14px; }
.language-switch a { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 4px 5px; color: #727b85; font-size: 10px; white-space: nowrap; }
.language-switch a[aria-current=page] { color: var(--blue); font-weight: 700; text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: 6px; }
.language-switch a:hover { color: var(--cyan); }
.hero { color: var(--ink); background: #ffffff; padding: 66px 0 39px; }
.hero:before { background-image: linear-gradient(90deg, #213b6304 1px, transparent 1px); background-size: 80px 100%; mask-image: none; }
.hero-grid { grid-template-columns: 1.05fr 1fr; gap: 32px; }
.hero-label { padding: 0; border: 0; border-radius: 0; color: var(--blue); background: none; letter-spacing: .17em; font-size: 10px; margin-bottom: 27px; }
.status-dot { background: var(--cyan); border-radius: 50%; box-shadow: none; width: 7px; height: 7px; }
.hero h1 { font-size: clamp(40px, 4.3vw, 60px); line-height: 1.23; letter-spacing: -.055em; }
.gradient-text { background: none; color: var(--blue); }
.hero h1 .gradient-text { color: var(--blue); }
.hero-copy > p { color: #68717c; max-width: 495px; margin: 26px 0 30px; }
.hero .button-dark-outline { color: var(--blue); border-color: #c7cdd4; }
.hero .button-dark-outline:hover { background: #edf0f5; }
.hero-note { color: #6c7783; }
.hero-note .icon { color: var(--cyan); }
.hero-visual > img { width: 107%; margin-left: -3%; }
.vertical-note { position: absolute; writing-mode: vertical-rl; right: -8px; top: 50px; font: 500 12px 'Noto Serif JP',serif; letter-spacing: .35em; color: #66768b; }
.hero-bottom { border-color: #dce2ea; margin-top: 34px; padding-top: 26px; }
.hero-bottom > p, .scroll-note { color: #6c7783; }
.capability-list span { color: #475b76; font-size: 11px; }
.capability-list .icon { color: #64758c; }
.eyebrow { color: #667185; font-size: 10px; letter-spacing: .15em; }
.eyebrow:before { border-radius: 0; background: var(--cyan); width: 6px; height: 6px; }
.text-link { color: var(--blue); }
.text-link:hover { color: var(--cyan); }
.about-art { border-radius: 2px; background: #f4f6f9; border-color: #e1e6ed; }
.about-art-caption { border-radius: 1px; border-left: 2px solid var(--cyan); }
.service-card, .product-card, .industry-card, .insight-card, .feature-card, .team-card, .contact-form, .case-sidebar, .project-detail-image { border-radius: 3px; }
.service-card:hover, .industry-card:hover { border-color: #a4b2c1; }
.icon-box { background: #f0f2f4; border-color: #e1e6ec; color: var(--blue); border-radius: 2px; }
.product-preview { background: #edf0f3; }
.product-preview img { border-radius: 3px 3px 0 0; }
.product-features span { background: #f4f6f9; border-color: #e1e6ed; border-radius: 1px; }
.industry-card > .icon { color: #586d8a; }
.why-section { background: var(--navy); }
.why-grid .eyebrow, .cta-panel .eyebrow { color: #bbc9da; }
.why-point .icon-box { background: #ffffff07; border-color: #ffffff26; color: #b5c5d9; }
.stack-grid, .project-card .project-image { border-radius: 3px; }
.cta-panel { background: var(--navy); border-radius: 3px; padding: 58px; }
.cta-panel:after { width: 330px; height: 330px; right: 17%; top: -180px; border: 1px solid #ffffff16; box-shadow: 0 0 0 35px #ffffff04, 0 0 0 70px #ffffff03; }
.cta-panel .button-primary { background: #ffffff; color: var(--blue); border-color: #ffffff; }
.cta-panel .button-primary:hover { background: #e7ebef; }
.site-footer { background: #152740; }
.site-footer .brand { width: 185px; padding: 8px; background: white; border-radius: 1px; }
.site-footer .text-link { color: #c1cede; }
.footer-column a:hover { color: #e3b1a2; }
.social-links a, .back-top { border-radius: 2px; }
.page-hero { color: var(--ink); background: #f4f6f9; border-bottom: 1px solid var(--line); }
.page-hero:after { content: ''; position: absolute; width: 300px; height: 300px; border: 1px solid #b3574314; border-radius: 50%; right: 7%; top: -100px; pointer-events: none; box-shadow: 0 0 0 35px #213b6303, 0 0 0 70px #213b6302; }
.page-hero > .container { position: relative; z-index: 1; }
.page-hero p { color: #6b7380; }
.page-hero .eyebrow { color: #687992; }
.breadcrumbs { color: #6c7785; }
.breadcrumbs a:hover { color: var(--blue); }
.page-hero .button-dark-outline { color: var(--blue); border-color: #cbd1d7; }
.page-hero .button-dark-outline:hover { background: #edf0f5; }
.product-hero-grid .product-big-preview { background: #e9edf0; border-color: #d8dfe5; border-radius: 3px; box-shadow: 0 20px 45px #213b6310; }
.product-big-preview img, .filter-button, .form-field input, .form-field select, .form-field textarea { border-radius: 2px; }
.filter-button:hover { border-color: #9caec3; }
.solution-panel { border-radius: 3px; }
.solution-title { background: #f4f6f9; }
.related-links a { background: #eef1f4; border-radius: 1px; }
.use-case { border-color: #8a9bb1; border-radius: 0; }
.callout { background: #f0f3f5; border-color: var(--blue); border-radius: 0; }
.placeholder-notice { background: #f2f4f6; border-color: #dde3ea; color: #52647c!important; border-radius: 2px; }
.team-mark { background: #edf0f3; color: var(--blue); }
.article-cover { border-radius: 3px; }
.privacy-copy, .demo-note, .article-meta, .number-label, .stack-group h3 { color: #68717c; }
.form-field input, .form-field select, .form-field textarea { background: #ffffff; }

/* Japanese content has its own typography and comfortable line lengths. */
html[lang=ja] body { font-family: 'Noto Sans JP', sans-serif; line-height: 1.95; }
html[lang=ja] h1, html[lang=ja] h2 { font-family: 'Noto Serif JP', serif; font-weight: 600; letter-spacing: .025em; line-height: 1.65; }
html[lang=ja] h3, html[lang=ja] h4 { font-family: 'Noto Sans JP', sans-serif; letter-spacing: .02em; line-height: 1.65; }
html[lang=ja] h1 { font-size: clamp(34px, 3.3vw, 48px); }
html[lang=ja] h2 { font-size: clamp(27px, 2.7vw, 37px); }
html[lang=ja] .hero h1 { font-size: clamp(35px, 3.5vw, 49px); line-height: 1.65; }
html[lang=ja] .hero h1 .gradient-text { display: inline; }
html[lang=ja] .nav-links { gap: 18px; }
html[lang=ja] .nav-links > a { font-size: 11px; }
html[lang=ja] .hero-copy > p, html[lang=ja] .page-hero p { font-size: 14px; line-height: 2; }
html[lang=ja] .eyebrow { letter-spacing: .12em; }
html[lang=ja] .product-content h3, html[lang=ja] .service-card h3 { font-size: 16px; }
html[lang=ja] .capability-list span { font-family: 'Noto Sans JP', sans-serif; font-size: 10px; }
html[lang=ja] .footer-column h3 { font-family: 'Noto Sans JP', sans-serif; }
html[lang=ja] .filter-bar { gap: 8px; }
@media(max-width:1150px) {
  .header-inner { gap: 13px; }
  .brand { width: 153px; }
  .nav-links, html[lang=ja] .nav-links { gap: 13px; }
  .language-switch { padding-left: 9px; }
  .language-switch a { padding-inline: 3px; }
  .hero h1 { font-size: 50px; }
  .header-cta { padding: 10px 12px; }
}
@media(max-width:960px) {
  .header-inner { height: 74px; }
  .nav-links, html[lang=ja] .nav-links { background: #ffffff; top: 74px; padding-inline: 28px; border-color: var(--line); gap: 0; margin-left: 0; }
  .nav-links > a, html[lang=ja] .nav-links > a { font-size: 14px; }
  .header-cta { margin-left: 0; }
  .language-switch { margin-left: auto; }
  .hero { padding-top: 50px; }
  .hero h1 { font-size: 43px; }
  .hero-visual > img { width: 116%; margin-left: -9%; }
  .vertical-note { right: -10px; top: 14px; font-size: 10px; }
  .capability-list { gap: 13px; }
  .capability-list span { font-size: 10px; }
  html[lang=ja] .hero h1 { font-size: 36px; }
  html[lang=ja] .capability-list span { font-size: 9px; }
}
@media(max-width:700px) {
  .header-inner { gap: 11px; }
  .brand { width: 143px; }
  .header-cta { display: none; }
  .language-switch { border: 0; padding: 0; gap: 3px; }
  .language-switch a { font-size: 10px; min-height: 38px; padding-inline: 4px; }
  .hero { padding-top: 43px; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero h1 { font-size: clamp(37px, 8.8vw, 51px); }
  .hero-label { font-size: 9px; margin-bottom: 22px; }
  .hero-copy > p { font-size: 14px; }
  .hero .button { padding: 13px 17px; }
  .hero-visual { margin-top: 24px; }
  .hero-visual > img { width: 100%; margin-left: 0; }
  .vertical-note { top: 28px; right: 1px; font-size: 9px; }
  .hero-bottom { margin-top: 17px; }
  .capability-list span { font-size: 10px; }
  .cta-panel { padding: 35px 27px; }
  html[lang=ja] .hero h1 { font-size: 34px; line-height: 1.65; }
  html[lang=ja] .page-hero h1 { font-size: 32px; }
  html[lang=ja] h2 { font-size: 28px; }
  html[lang=ja] .cta-panel h2 { font-size: 26px; }
  html[lang=ja] .section-heading { display: block; }
  html[lang=ja] .section-heading h2 { font-size: 28px; }
  html[lang=ja] .footer-column a { font-size: 11px; }
  html[lang=ja] .button { font-size: 11px; }
  html[lang=ja] .product-content h3 { font-size: 15px; letter-spacing: -.01em; }
}
@media(max-width:380px) {
  .brand { width: 126px; }
  .hero h1 { font-size: 35px; }
  html[lang=ja] .hero h1 { font-size: 30px; }
  html[lang=ja] .page-hero h1 { font-size: 29px; }
  .language-switch a { font-size: 9px; }
  html[lang=ja] .capability-list span { font-size: 8px; }
}

/* Header fit after adding Careers */
.header-cta { white-space: nowrap; flex-shrink: 0; }
.nav-links > a { white-space: nowrap; }
@media (max-width: 1150px) { .nav-links { gap: 13px; } html[lang=ja] .nav-links { gap: 11px; } html[lang=ja] .nav-links > a { font-size: 10.5px; } }

/* Careers dropdown in the main navigation */
.nav-drop { position: relative; display: flex; align-items: center; }
.nav-drop-toggle { font-size: 11px; white-space: nowrap; padding: 31px 0; position: relative; display: inline-flex; align-items: center; gap: 4px; transition: color .2s; }
.nav-drop-toggle:hover, .nav-drop-toggle[aria-current=page], .nav-drop:focus-within > .nav-drop-toggle { color: var(--blue); }
.nav-drop-toggle[aria-current=page]:after { content: ''; position: absolute; height: 2px; background: var(--cyan); bottom: 21px; left: 0; right: 16px; }
.nav-caret { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.nav-drop:hover .nav-caret, .nav-drop:focus-within .nav-caret { transform: rotate(180deg); }
.nav-drop-menu { position: absolute; top: calc(100% - 16px); left: 50%; transform: translate(-50%, 8px); min-width: 270px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 22px 44px #213b6324; padding: 8px; opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s; z-index: 60; }
.nav-drop-menu:before { content: ''; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-drop-menu a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 8px; white-space: nowrap; transition: background .15s; }
.nav-drop-menu a:hover, .nav-drop-menu a:focus-visible { background: #f2f5f9; }
.nav-drop-menu a[aria-current=page] { background: #213b630f; }
.nav-drop-menu strong { display: block; font-size: 13px; font-weight: 600; color: var(--blue); }
.nav-drop-menu small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.nav-drop-icon { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: #213b63; color: #fff; }
.nav-drop-icon.alt { background: #b35743; }
.nav-drop-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1150px) { html[lang=ja] .nav-drop-toggle { font-size: 10.5px; } }
@media (max-width: 960px) {
  .nav-drop { display: block; }
  .nav-drop-toggle { display: flex; padding: 12px 0; font-size: 14px; }
  html[lang=ja] .nav-drop-toggle { font-size: 14px; }
  .nav-drop-toggle[aria-current=page]:after { right: auto; width: 20px; bottom: 7px; }
  .nav-caret { display: none; }
  .nav-drop-menu, .nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { position: static; transform: none; opacity: 1; visibility: visible; min-width: 0; padding: 0 0 8px 12px; margin-left: 2px; background: transparent; border: 0; border-left: 2px solid var(--line); border-radius: 0; box-shadow: none; }
  .nav-drop-menu:before { display: none; }
  .nav-drop-menu a { padding: 8px 10px; white-space: normal; }
  .nav-drop-icon { width: 30px; height: 30px; border-radius: 8px; }
}
/* Real product images in catalog cards and product heroes */
.catalog-grid .product-preview.is-photo, .product-preview.is-photo { padding: 0; }
.product-preview.is-photo img { width: 100%; height: 100%; object-fit: cover; border: 0; border-radius: 0; box-shadow: none; }
.product-preview.is-shot { background: #fff; display: flex !important; align-items: center; justify-content: center; padding: 14px 18px !important; }
.product-preview.is-shot img { width: 100%; height: 100%; object-fit: contain; border: 0; border-radius: 0; box-shadow: none; }
.lg-hero-visual.lg-real img { background: #fff; padding: 18px; object-fit: contain; }
.lg-hero-visual.lg-real.is-photo img { padding: 0; aspect-ratio: 4 / 3; object-fit: cover; }
.product-preview.is-shot.is-dark { background: #5f6068 !important; padding: 12px !important; }
.product-preview.is-shot.is-dark img { object-fit: contain; }
.lg-hero-visual.lg-real.is-dark img { background: #5f6068; padding: 0; }

/* ===== Our partners: scrolling logo marquee ===== */
.partners-section { overflow: hidden; }
.partners-section .center-heading { margin-bottom: 36px; }
.partner-marquee { position: relative; overflow: hidden; padding: 6px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.partner-track { display: flex; width: max-content; gap: 22px; margin: 0; padding: 0; list-style: none; animation: partner-scroll 32s linear infinite; }
.partner-marquee:hover .partner-track, .partner-marquee:focus-within .partner-track { animation-play-state: paused; }
.partner-logo { flex: none; width: 210px; height: 112px; display: flex; align-items: center; justify-content: center; padding: 18px 26px; background: #fff; border: 1px solid var(--line); border-radius: 14px; transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.partner-logo img { display: block; max-width: 100%; max-height: 72px; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .3s ease, opacity .3s ease; }
.partner-logo:hover { border-color: #c9d2de; box-shadow: 0 16px 32px #213b6314; transform: translateY(-3px); }
.partner-logo:hover img { filter: none; opacity: 1; }
@keyframes partner-scroll { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 11px)); } }
@media (max-width: 700px) { .partner-logo { width: 160px; height: 92px; padding: 14px 18px; } .partner-logo img { max-height: 58px; } .partner-track { gap: 14px; animation-duration: 24s; } @keyframes partner-scroll { to { transform: translateX(calc(-50% - 7px)); } } }
@media (prefers-reduced-motion: reduce) {
  .partner-marquee { -webkit-mask-image: none; mask-image: none; }
  .partner-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; padding: 0 20px; }
  .partner-logo[aria-hidden="true"] { display: none; }
}
/* ===== Homepage hero polish ===== */
.hero h1 .brush { position: relative; display: inline-block; color: var(--cyan); z-index: 0; }
.hero h1 .brush:after { content: ''; position: absolute; left: -2%; right: -4%; bottom: .02em; height: .32em; z-index: -1; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 13c40-7 95-10 194-4' fill='none' stroke='%23b35743' stroke-opacity='.28' stroke-width='9' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%; transform-origin: left center; animation: brush-in .9s cubic-bezier(.6,0,.2,1) .7s both; }
@keyframes brush-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-proof { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 16px; max-width: 520px; animation: soft-in .8s ease-out .4s both; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px 30px; margin: 0; }
.hero-stats div { display: flex; align-items: baseline; gap: 8px; }
.hero-stats dt { font-size: 24px; font-weight: 700; letter-spacing: -.04em; color: var(--blue); }
.hero-stats div:nth-child(2) dt { color: var(--cyan); }
.hero-stats dd { margin: 0; font-size: 12px; color: var(--muted); }
.hero-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.hero-logos span { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8590a0; }
html[lang=ja] .hero-logos span { letter-spacing: .08em; }
.hero-logos img { height: 22px; width: auto; filter: grayscale(1); opacity: .55; transition: filter .3s ease, opacity .3s ease; }
.hero-logos:hover img, .hero-logos:focus-visible img { filter: none; opacity: 1; }
@media (max-width: 700px) { .hero-stats dt { font-size: 20px; } .hero-logos img { height: 18px; } .hero-logos { gap: 10px 14px; } }
@media (prefers-reduced-motion: reduce) { .hero h1 .brush:after, .hero-proof { animation: none; } }.hero-logos { display: grid; gap: 10px; }
.hero-logos span { display: block; }
.hero-logos .hero-logo-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-logos img[alt="Komatsu Indonesia"] { height: 28px; }
@media (max-width: 700px) { .hero-logos .hero-logo-row { gap: 12px 16px; } .hero-logos img[alt="Komatsu Indonesia"] { height: 24px; } }
/* Homepage: core services overview */
.home-svc-grid { gap: 20px; }
.home-svc { display: flex; flex-direction: column; }
.home-svc p { flex: 1; }
.home-svc-tag { display: block; margin: 16px 0 -4px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.home-svc-also { margin-top: 28px; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
@media (max-width: 1150px) { .home-svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .home-svc-grid { grid-template-columns: 1fr; } }
/* Homepage about: key figures */
.home-about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0 6px; }
.home-about-stats div { padding: 14px 16px; border-radius: 12px; background: #f4f6f9; border: 1px solid var(--line); }
.home-about-stats dt { font-size: 22px; font-weight: 700; letter-spacing: -.04em; color: var(--blue); }
.home-about-stats div:nth-child(2) dt { color: var(--cyan); }
.home-about-stats dd { margin: 4px 0 0; font-size: 12px; color: var(--muted); line-height: 1.4; }
@media (max-width: 700px) { .home-about-stats { grid-template-columns: 1fr 1fr; } .home-about-stats div:last-child { grid-column: 1 / -1; } }
.product-preview.is-shot.is-logo { padding: 40px 48px !important; }
.lg-hero-visual.lg-real.is-logo img { padding: 70px 60px; aspect-ratio: 16 / 10; object-fit: contain; }

.product-preview.is-shot.is-tall { background: #f9fafc !important; padding: 14px 18px !important; }
.lg-hero-visual.lg-real.is-tall img { background: #f9fafc; padding: 10px; max-height: 520px; object-fit: contain; }

.product-preview.is-shot.is-tall { padding: 0 !important; }
.product-preview.is-shot.is-tall img { object-fit: cover; object-position: center 8%; }

.product-preview.is-shot.is-white { background: #fff !important; }
.lg-hero-visual.lg-real.is-gray img { background: #e9e9ea; }

.product-preview.is-shot.is-white img { object-position: center top; }

.product-preview.is-shot.is-brand { background: #9d9281 !important; padding: 18px !important; }
.lg-hero-visual.lg-real.is-brand img { background: #9d9281; padding: 40px; aspect-ratio: 16 / 11; object-fit: contain; }

/* ===== Testimonials: story cards with results ===== */
.ts-feature { display: grid; grid-template-columns: .8fr 1.2fr; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 26px 50px #213b6312; }
.ts-result { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 26px 24px; background: #213b63; color: #fff; }
.ts-result:after { content: ''; position: absolute; right: -50px; top: -50px; width: 160px; height: 160px; border-radius: 50%; border: 1px solid #ffffff33; box-shadow: 0 0 0 24px #ffffff0d; }
.ts-result small { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #ffffffb3; }
.ts-result strong { font-size: 24px; line-height: 1.15; letter-spacing: -.03em; color: #fff; }
.ts-result span { font-size: 13px; color: #ffffffd9; }
.ts-result em { align-self: flex-start; margin-top: 10px; font-style: normal; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #ffffff26; }
.ts-result.lg-c1 { background: #213b63; } .ts-result.lg-c2 { background: #b35743; } .ts-result.lg-c3 { background: #5f8f7b; } .ts-result.lg-c4 { background: #b98a2e; } .ts-result.lg-c5 { background: #3f74b8; } .ts-result.lg-c6 { background: #7457a3; }
.ts-feature .ts-result { padding: 40px 36px; min-height: 100%; }
.ts-feature .ts-result strong { font-size: clamp(30px, 3.4vw, 44px); }
.ts-feature .ts-result span { font-size: 15px; }
.ts-body { padding: 26px 26px 24px; display: flex; flex-direction: column; }
.ts-feature .ts-body { padding: 40px 40px 36px; }
.ts-label { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lg-brick); }
.ts-did { font-size: 14px; color: var(--lg-navy); font-weight: 600; margin: 6px 0 14px; }
.ts-body blockquote, .ts-mini blockquote { margin: 0 0 20px; font-size: 14px; line-height: 1.8; color: var(--ink); position: relative; }
.ts-feature blockquote { font-size: 17px; font-family: 'Noto Serif JP', Georgia, serif; line-height: 1.85; }
.ts-who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.ts-avatar { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .02em; }
.ts-who strong { display: block; font-size: 14px; color: var(--lg-navy); }
.ts-who strong + span { display: block; font-size: 12px; color: var(--muted); }
.ts-body .lg-skills { margin-top: 16px; }
.ts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.ts-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.ts-card:hover { transform: translateY(-4px); box-shadow: 0 24px 44px #213b6314; }
.ts-card .ts-result { min-height: 150px; }
.ts-card .ts-body { flex: 1; }
.ts-companies { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ts-companies li { padding: 18px 20px; border-radius: 12px; background: #f4f6f9; border: 1px solid var(--line); }
.ts-companies strong { display: block; font-size: 15px; color: var(--lg-navy); }
.ts-companies span { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
/* homepage teaser */
.ts-mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ts-mini { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.ts-mini:hover { transform: translateY(-4px); box-shadow: 0 24px 44px #213b6314; }
.ts-mini .ts-result { min-height: 130px; }
.ts-mini blockquote { padding: 22px 22px 0; }
.ts-mini .ts-who { padding: 0 22px 22px; }
@media (max-width: 960px) { .ts-feature { grid-template-columns: 1fr; } .ts-grid, .ts-mini-grid { grid-template-columns: 1fr; } .ts-companies { grid-template-columns: 1fr 1fr; } .ts-feature .ts-body, .ts-feature .ts-result { padding: 28px 24px; } }
@media (max-width: 700px) { .ts-companies { grid-template-columns: 1fr; } }
:root { --lg-navy: #213b63; --lg-brick: #b35743; --lg-sage: #5f8f7b; }
.ts-body .lg-skills { display: flex; flex-wrap: wrap; gap: 8px; }
.ts-body .lg-skills span { padding: 5px 10px; border-radius: 6px; background: #213b630d; color: #213b63; font-size: 12px; font-weight: 600; }

.ts-avatar.lg-c1 { background: #213b63; } .ts-avatar.lg-c2 { background: #b35743; } .ts-avatar.lg-c3 { background: #5f8f7b; } .ts-avatar.lg-c4 { background: #b98a2e; } .ts-avatar.lg-c5 { background: #3f74b8; } .ts-avatar.lg-c6 { background: #7457a3; }

.ts-avatar.ts-photo { object-fit: cover; padding: 0; border: 3px solid #fff; box-shadow: 0 6px 16px #213b6324; background: #e9edf3; }
.ts-feature .ts-avatar { width: 64px; height: 64px; }

/* ===== Projects page ===== */
.pj-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 12px; }
.pj-meta div { padding: 8px 10px; border-radius: 8px; background: #f4f6f9; }
.pj-meta dt { font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pj-meta dd { margin: 2px 0 0; font-size: 12px; font-weight: 600; color: #213b63; line-height: 1.35; }
.pj-rows { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.pj-rows li { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding: 14px 16px; border-radius: 12px; background: #f4f6f9; border: 1px solid var(--line); }
.pj-rows strong { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #b35743; }
.pj-rows span { font-size: 14px; color: var(--ink); }
@media (max-width: 700px) { .pj-rows li { grid-template-columns: 1fr; gap: 4px; } }
.nav-drop-icon.sage { background: #5f8f7b; }

/* About: Trading partners logo cards */
.ap-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:34px}
.ap-stats div{padding:20px 22px;border-radius:16px;background:#fff;border:1px solid var(--line)}
.ap-stats strong{display:block;font-size:30px;line-height:1.1;color:#213b63}
.ap-stats span{display:block;margin-top:4px;color:#5b6b82;font-size:14px}
.ap-group{margin-top:28px}
.ap-group-head{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.ap-group-head h3{margin:0;font-size:20px;color:#213b63}
.ap-group-head .flag{display:inline-grid;place-items:center;min-width:40px;height:26px;padding:0 10px;border-radius:999px;background:#213b63;color:#fff;font-size:11px;font-weight:700;letter-spacing:.06em}
.ap-group-head .flag.alt{background:#b2412f}
.ap-count{margin-left:auto;font-size:13px;font-weight:600;color:#5b6b82}
.ap-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.ap-card{display:flex;flex-direction:column;border-radius:18px;background:#fff;border:1px solid var(--line);overflow:hidden;text-decoration:none;color:inherit;transition:transform .25s,box-shadow .25s,border-color .25s}
.ap-card:hover,.ap-card:focus-visible{transform:translateY(-4px);border-color:#c9d2de;box-shadow:0 20px 40px #213b6316}
.ap-card:focus-visible{outline:3px solid #213b6355;outline-offset:3px}
.ap-logo{display:grid;place-items:center;height:130px;padding:22px 26px;background:linear-gradient(180deg,#fff,#f7f9fc);border-bottom:1px solid var(--line)}
.ap-logo img{max-width:100%;max-height:78px;width:auto;height:auto;object-fit:contain;filter:grayscale(1);opacity:.75;transition:filter .3s,opacity .3s,transform .3s}
.ap-card:hover .ap-logo img,.ap-card:focus-visible .ap-logo img{filter:none;opacity:1;transform:scale(1.04)}
.ap-word{font:800 22px/1.1 Georgia,'Times New Roman',serif;letter-spacing:.14em;color:#8a97aa;text-align:center;transition:color .3s}
.ap-card:hover .ap-word,.ap-card:focus-visible .ap-word{color:#213b63}
.ap-body{display:flex;flex-direction:column;gap:4px;padding:16px 18px 18px;flex:1}
.ap-body strong{color:#213b63;font-size:16px}
.ap-body small{color:#5b6b82;font-size:13px;line-height:1.45}
.ap-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding-top:12px;font-size:12px}
.ap-country{padding:3px 9px;border-radius:999px;background:#f4f6f9;color:#5b6b82;font-weight:600}
.ap-domain{display:inline-flex;align-items:center;gap:4px;color:#b2412f;font-weight:600}
.ap-ext{width:14px;height:14px;transition:transform .25s}
.ap-card:hover .ap-ext{transform:translate(2px,-2px)}
.ap-hint{margin-top:20px;font-size:13px;color:#5b6b82}
@media (prefers-reduced-motion:reduce){.ap-card,.ap-logo img,.ap-ext{transition:none}.ap-card:hover{transform:none}}
@media (min-width:1100px){.ap-grid-intl{grid-template-columns:repeat(5,1fr);gap:16px}}
@media (max-width:960px){.ap-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:620px){.ap-stats{grid-template-columns:1fr}.ap-logo{height:110px}}@media (max-width:620px){.ap-grid{grid-template-columns:1fr;gap:12px}.ap-card{flex-direction:row}.ap-logo{flex:0 0 112px;width:112px;height:auto;min-height:104px;padding:14px;border-bottom:0;border-right:1px solid var(--line)}.ap-logo img{max-height:52px}.ap-word{font-size:12px;letter-spacing:.08em}.ap-body{padding:14px 16px}.ap-meta{padding-top:8px}.ap-country{white-space:nowrap}}
.ap-logo img[src*="sumitomo"]{max-width:92%}

/* Homepage: "View all partners" pill under the logo marquee */
.partners-cta{display:flex;justify-content:center;margin-top:30px}
.partners-pill{display:inline-flex;align-items:center;gap:10px;padding:12px 24px;border-radius:999px;border:1px solid #c9d2de;background:#fff;color:#213b63;font-size:15px;font-weight:600;text-decoration:none;transition:border-color .2s,background .2s,color .2s,box-shadow .2s}
.partners-pill .icon{width:18px;height:18px;transition:transform .2s}
.partners-pill:hover,.partners-pill:focus-visible{border-color:#213b63;background:#213b63;color:#fff;box-shadow:0 10px 24px #213b6326}
.partners-pill:hover .icon,.partners-pill:focus-visible .icon{transform:translateX(4px)}
.partners-pill:focus-visible{outline:3px solid #213b6355;outline-offset:3px}
@media (prefers-reduced-motion:reduce){.partners-pill,.partners-pill .icon{transition:none}}
/* Trading partners: cards are no longer links */
div.ap-card{cursor:default}
div.ap-card:hover{transform:none;box-shadow:none;border-color:var(--line)}
.ap-meta{justify-content:flex-start}
/* Products: Japan / other regions with category groups */
.pg-region{margin-top:10px}
.pg-region + .pg-region{margin-top:56px;padding-top:40px;border-top:1px solid var(--line)}
.pg-region-head{margin-bottom:6px}
.pg-region-head h2{margin:0;font-size:26px;color:#213b63}
.pg-region-sub{margin:0 0 8px;color:#5b6b82;font-size:15px}
.pg-group{margin-top:30px}
.pg-group-title{display:flex;align-items:center;gap:10px;margin:0 0 16px;font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#b2412f}
.pg-group-title span{display:inline-grid;place-items:center;min-width:24px;height:22px;padding:0 7px;border-radius:999px;background:#f4f6f9;color:#5b6b82;font-size:12px;letter-spacing:0}
.pg-group-title:after{content:'';flex:1;height:1px;background:var(--line)}
.jp-badge{display:inline-grid;place-items:center;height:18px;padding:0 6px;margin-right:8px;border-radius:5px;background:#213b63;color:#fff;font-size:10px;font-weight:700;letter-spacing:.06em;vertical-align:1px}
.pg-group[hidden],.pg-region[hidden]{display:none}
@media (max-width:620px){.pg-region-head h2{font-size:19px;flex:1;min-width:0}.pg-region-head .ap-count{white-space:nowrap;margin-left:0}}
@media (max-width:620px){.pg-region .pg-region-head h2{font-size:18px;line-height:1.35}}

/* "Client: Japan" label in product heroes */
.client-jp{display:inline-flex;align-items:center;gap:8px;margin:0 0 14px;padding:5px 12px 5px 5px;border-radius:999px;background:#fff;border:1px solid #d6dde7;color:#213b63;font-size:13px;font-weight:600}
.client-jp-flag{display:inline-grid;place-items:center;height:22px;padding:0 8px;border-radius:999px;background:#213b63;color:#fff;font-size:10.5px;font-weight:700;letter-spacing:.06em}
/* Products catalog: "JP · Client in Japan" pill (design A) */
.client-pill{display:inline-flex;align-items:center;gap:7px;margin:2px 0 12px;padding:3px 11px 3px 3px;border-radius:999px;background:#fff;border:1px solid #d6dde7;color:#213b63;font-size:12.5px;font-weight:600;width:fit-content}
.client-pill .client-jp-flag{height:20px;padding:0 7px;font-size:10px}
/* In development badge (coming-soon products) */
.product-preview { position: relative; }
.dev-badge { position: absolute; top: 12px; left: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: #b35743; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em; box-shadow: 0 6px 14px #213b6326; }
.dev-badge::before, .dev-chip i { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ffd27a; animation: devPulse 1.6s ease-in-out infinite; }
.product-features .dev-tag { background: #fbeee9; color: #8f3f2e; border-color: #f0d3c9; font-weight: 600; }
.lg-chip.dev-chip { background: #fbeee9; border-color: #f0d3c9; color: #8f3f2e; }
.lg-chip.dev-chip i { background: #b35743; }
@keyframes devPulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .dev-badge::before, .dev-chip i { animation: none; } }

/* Client visits gallery (About) */
.cv-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 210px; gap: 14px; }
.cv-item { position: relative; margin: 0; border-radius: 14px; overflow: hidden; background: #e9eef5; }
.cv-feature { grid-column: span 2; grid-row: span 2; }
.cv-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.cv-open img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.cv-open:hover img, .cv-open:focus-visible img { transform: scale(1.04); }
.cv-open:focus-visible { outline: 3px solid var(--lg-sky, #4f8bd6); outline-offset: -3px; }
.cv-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 11px; font-size: 12px; font-weight: 600; color: #fff; background: linear-gradient(transparent, #0d1b2fb3); pointer-events: none; }
.cv-lightbox { width: min(1100px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: 14px; background: #0d1b2f; color: #fff; overflow: visible; }
.cv-lightbox::backdrop { background: #0a1424d9; }
.cv-lightbox figure { position: relative; margin: 0; }
.cv-lightbox img { display: block; width: 100%; height: auto; max-height: 80vh; object-fit: contain; border-radius: 14px 14px 0 0; background: #0d1b2f; transition: opacity .25s ease; }
.cv-lightbox.is-loading img, .cv-lightbox.is-error img { opacity: 0; }
.cv-lightbox.is-loading figure::after { content: ""; position: absolute; top: calc(50% - 40px); left: calc(50% - 20px); width: 40px; height: 40px; border: 3px solid #ffffff40; border-top-color: #fff; border-radius: 50%; animation: cvSpin .8s linear infinite; }
@keyframes cvSpin { to { transform: rotate(360deg); } }
.cv-lightbox figcaption { padding: 12px 16px; font-size: 14px; }
.cv-close, .cv-nav { position: absolute; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: #fff; color: #213b63; font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 8px 20px #0006; }
.cv-close { top: -14px; right: -14px; font-size: 24px; }
.cv-nav { top: 50%; transform: translateY(-50%); }
.cv-prev { left: -21px; } .cv-next { right: -21px; }
.cv-grid.cv-few { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); grid-auto-rows: auto; }
.cv-few .cv-item { aspect-ratio: 4 / 3; }
.cv-grid.cv-two { grid-template-columns: repeat(2, 1fr); }
.cv-two .cv-item { aspect-ratio: 16 / 10; }
.cv-portrait .cv-open img { object-position: 50% 72%; }
@media (max-width: 760px) {
  .cv-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; gap: 10px; }
  .cv-feature { grid-column: span 2; grid-row: span 2; }
  .cv-grid.cv-few { grid-template-columns: 1fr; }
  .cv-close { top: 8px; right: 8px; } .cv-prev { left: 8px; } .cv-next { right: 8px; }
}

/* 404 page */
.nf-section { min-height: 58vh; display: flex; align-items: center; }
.nf-box { max-width: 720px; }
.nf-box h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.05; margin: 10px 0 18px; }
.nf-box p { color: var(--muted, #5b6575); }
.nf-box .button-row { margin-top: 26px; }
.nf-links { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.nf-box .button-dark-outline { color: #213b63; background: #fff; border-color: #213b6340; }
.nf-box .button-dark-outline:hover { border-color: #213b63; }
