@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;600;700&family=Noto+Sans+Thai:wght@300;400;500;600;700&display=swap');

:root {
    --brand: #0169d2;
    --navy: #071522;
    --ink: #15191e;
    --muted: #62676d;
    --line: #e0e3e6;
    --soft: #f5f6f7;
    --white: #fff;
    --shell: min(1320px, calc(100vw - 72px));
    --font: 'Noto Sans Thai', 'Leelawadee UI', Tahoma, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 116px; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: var(--font); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
html[lang="ja"] body { font-family: 'Noto Sans JP', sans-serif; }
html[lang="en"] body { font-family: Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.section { padding: 120px 0; }
.sr-only { position: absolute!important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; padding: 10px 16px; background: #fff; color: var(--ink); transform: translateY(-200%); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; z-index: 20; top: 0; color: #fff; background: var(--brand); box-shadow: 0 1px 0 rgba(255,255,255,.14); }
.nav { min-height: 100px; display: flex; align-items: center; justify-content: space-between; }
.brand img { display: block; width: 82px; height: 82px; object-fit: cover; border-radius: 4px; }
.nav-links { display: flex; align-items: center; gap: clamp(12px, 1.9vw, 34px); margin-left: auto; font-size: .9rem; font-weight: 400; }
.nav-links > a { white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: 22px; }
.language-switch { display: flex; align-items: center; gap: 2px; white-space: nowrap; }
.language-switch a { padding: 5px 7px; border-radius: 4px; color: rgba(255,255,255,.78); font-size: .78rem; }
.language-switch a:hover, .language-switch a:focus-visible, .language-switch a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.16); }
.nav-links > a { color: rgba(255,255,255,.86); transition: color .2s, background .2s; }
.nav-links > a:hover { color: #fff; }
.nav-cta { padding: 10px 22px; border: 1px solid rgba(255,255,255,.72); border-radius: 999px; }
.nav-cta:hover { color: var(--ink)!important; background: #fff; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 9px; border: 0; color: #fff; background: transparent; cursor: pointer; }

.hero { position: relative; min-height: 760px; display: flex; align-items: center; padding: 130px 0 120px; color: #fff; background: var(--brand); overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 48%, rgba(255,255,255,.12), transparent 43%), linear-gradient(120deg, rgba(0,0,0,.14), transparent 42%, rgba(255,255,255,.04)); }
.hero-code { position: absolute; inset: 19% -8% auto; color: rgba(255,255,255,.045); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: clamp(2rem, 5.6vw, 6.2rem); font-weight: 700; line-height: 1.55; letter-spacing: -.06em; white-space: normal; text-align: center; transform: rotate(-4deg); user-select: none; }
.hero-content { position: relative; z-index: 3; max-width: 990px; text-align: center; }
.hero-kicker, .section-kicker { margin: 0 0 22px; font-size: .76rem; font-weight: 600; letter-spacing: .12em; }
.hero-kicker { color: rgba(255,255,255,.82); }
.hero h1 { max-width: 920px; margin: 0 auto; font-size: clamp(3.2rem, 6.2vw, 6.4rem); font-weight: 500; letter-spacing: -.055em; line-height: 1.14; }
.hero-content > p:not(.hero-kicker) { max-width: 690px; margin: 24px auto 34px; color: rgba(255,255,255,.78); font-size: 1.08rem; }
.outline-button { display: inline-flex; min-height: 51px; align-items: center; justify-content: center; padding: 10px 30px; border: 1px solid rgba(255,255,255,.8); border-radius: 999px; color: #fff; font-weight: 500; transition: background .25s, color .25s, transform .25s; }
.outline-button:hover { color: var(--ink); background: #fff; transform: translateY(-2px); }
.hero-angle { position: absolute; z-index: 2; bottom: -1px; left: -3%; width: 106%; height: 112px; transform-origin: bottom center; }
.angle-back { background: rgba(255,255,255,.28); clip-path: polygon(0 22%, 50% 70%, 100% 20%, 100% 100%, 0 100%); }
.angle-front { background: #fff; clip-path: polygon(0 58%, 50% 100%, 100% 58%, 100% 100%, 0 100%); }

.services-section { padding-top: 105px; }
.section-kicker { color: var(--muted); }
.section-kicker.light { color: rgba(255,255,255,.7); }
.expertise h2, .approach-heading h2, .contact-inner h2 { margin: 0; font-size: clamp(2.25rem, 3.8vw, 4.2rem); font-weight: 500; line-height: 1.2; letter-spacing: -.045em; }
.arrow-link { display: inline-flex; align-items: center; gap: 18px; margin-top: 28px; padding-bottom: 4px; border-bottom: 1px solid var(--ink); font-size: .9rem; font-weight: 600; }
.arrow-link span { transition: transform .2s; }.arrow-link:hover span { transform: translateX(5px); }

.service-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { min-height: 330px; padding: 42px 38px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .25s, transform .25s, box-shadow .25s; }
.service-card:hover { position: relative; z-index: 2; background: #fff; transform: translateY(-5px); box-shadow: 0 22px 46px rgba(14,24,35,.1); }
.service-card h3 { margin: 30px 0 14px; font-size: 1.38rem; font-weight: 500; line-height: 1.4; }
.service-card p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.85; }
.service-card-featured { grid-column: 1 / -1; min-height: auto; background: #f2f7fd; }
.service-card-featured h3 { margin-top: 24px; }
.service-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 28px 0 0; padding: 0; list-style: none; }
.service-points li { position: relative; padding-left: 21px; font-size: .9rem; line-height: 1.7; }
.service-points li::before { content: ''; position: absolute; top: .7em; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.service-card-featured .arrow-link { margin-top: 30px; }
.service-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.service-number { display: block; color: var(--muted); font-size: 2.4rem; font-weight: 300; line-height: 1; letter-spacing: -.06em; }
.service-icon { display: block; width: 42px; height: 42px; flex: none; color: var(--brand); }

.expertise { position: relative; min-height: 610px; display: flex; align-items: center; padding: 120px 0; color: #fff; background: var(--brand); overflow: hidden; }
.expertise::before, .expertise::after { content: ''; position: absolute; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; }
.expertise::before { width: 600px; height: 600px; right: -180px; top: -210px; }.expertise::after { width: 340px; height: 340px; right: -50px; top: -80px; }
.expertise-pattern { position: absolute; inset: 0; opacity: .13; background-image: linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px); background-size: 68px 68px; mask-image: linear-gradient(90deg, #000, transparent 75%); }
.expertise-content { position: relative; z-index: 2; text-align: center; }
.expertise h2 { font-size: clamp(3.1rem, 6vw, 6.8rem); line-height: 1.08; }
.expertise-content > p:not(.section-kicker) { max-width: 740px; margin: 30px auto 36px; color: rgba(255,255,255,.8); font-size: 1.05rem; }

.approach-heading { display: grid; grid-template-columns: 1.5fr .5fr; gap: 70px; align-items: end; margin-bottom: 70px; }
.approach-heading > p { margin: 0 0 8px; color: var(--muted); }
.approach-paths { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.approach-path { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 32px 36px; background: #f6f8fb; }
.approach-path:nth-of-type(2) { background: #f2f7fd; }
.approach-path-label { margin: 0 0 16px; color: var(--brand); font-size: .75rem; font-weight: 600; letter-spacing: .08em; }
.approach-path h3 { margin: 0; font-size: 1.5rem; font-weight: 500; line-height: 1.35; }
.approach-path > p:not(.approach-path-label) { max-width: 580px; margin: 14px 0 0; color: var(--muted); font-size: .94rem; }
.approach-path .arrow-link { margin-top: auto; padding-top: 22px; font-size: .85rem; }
.flow-icon { position: absolute; top: 27px; right: 31px; display: block; width: 36px; height: 36px; color: var(--brand); }
.approach-path h3, .flow-step h3 { padding-right: 46px; }
.flow-or { position: absolute; z-index: 2; top: 50%; left: 50%; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; color: var(--brand); background: #fff; font-size: .8rem; font-weight: 600; transform: translate(-50%, -50%); }
.flow-split, .flow-merge { height: 80px; color: var(--brand); }
.flow-split svg, .flow-merge svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; vector-effect: non-scaling-stroke; }
.flow-split span, .flow-merge span { display: none; }
.flow-steps { display: grid; gap: 54px; max-width: 900px; margin: 0 auto; padding: 0; list-style: none; }
.flow-step { position: relative; display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 22px; align-items: start; min-width: 0; padding: 27px 32px; background: #f6f8fb; }
.flow-start { max-width: 900px; margin: 0 auto; }
.flow-step.flow-start:not(:last-child)::after { display: none; }
.flow-step:last-child { background: #f2f7fd; }
.flow-step:not(:last-child)::after { content: '↓'; position: absolute; left: 50%; bottom: -50px; color: var(--brand); font-size: 32px; line-height: 1; transform: translateX(-50%); }
.flow-number { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: #fff; background: var(--brand); font-size: .85rem; font-weight: 600; }
.flow-step h3 { margin: 0 0 5px; font-size: 1.22rem; font-weight: 500; line-height: 1.4; }
.flow-step p { max-width: 690px; margin: 0; color: var(--muted); font-size: .94rem; }

.contact-section { color: #fff; background: var(--brand); }
.contact-inner { min-height: 420px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 64px; align-items: center; padding-block: 75px; }
.contact-inner > div > p:last-child { margin: 23px 0 0; color: rgba(255,255,255,.76); }
.contact-details { display: grid; gap: 20px; margin: 0; min-width: 0; font-style: normal; }
.contact-method { display: block; border: 1px solid rgba(255,255,255,.65); padding: 22px 26px; border-radius: 8px; transition: background .2s, color .2s; }
.contact-method span { display: block; font-size: .875rem; margin-bottom: 5px; }
.contact-method strong { font-size: clamp(1rem, 1.6vw, 1.5rem); font-weight: 500; overflow-wrap: anywhere; }
.contact-method:hover, .contact-method:focus-visible { background: #fff; color: var(--ink); }
.contact-address { padding: 4px 0; }
.contact-address > span { display: block; font-size: .875rem; margin-bottom: 5px; }
.contact-address p { margin: 0; font-size: 1rem; line-height: 1.7; overflow-wrap: anywhere; }
.clients-section { background: var(--soft); }
.clients-heading { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.clients-heading h2 { margin: 0; font-size: clamp(2.25rem, 3.8vw, 4.2rem); font-weight: 500; line-height: 1.3; }
.clients-heading > p:last-child { color: var(--muted); margin: 20px 0 0; }
.clients-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px; }
.client-item { display: flex; flex-direction: column; justify-content: center; align-items: center; min-width: 0; padding: 0 8px; text-align: center; }
.client-logo { width: 100%; height: 180px; margin-bottom: 20px; }
.client-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.client-item h3 { margin: 0; font-size: 1.125rem; font-weight: 500; line-height: 1.7; }
.client-original { display: block; margin-top: 5px; color: var(--muted); font-size: .8rem; line-height: 1.6; }
.footer-grid > div { min-width: 0; }
.footer-grid a { overflow-wrap: anywhere; }

footer { padding: 72px 0 28px; color: rgba(255,255,255,.7); background: var(--navy); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 60px; }
.footer-logo img { display: block; width: 110px; height: 110px; object-fit: cover; border-radius: 5px; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-grid h3 { margin: 0 0 11px; color: #fff; font-size: .88rem; font-weight: 600; }.footer-grid a, .footer-grid p { margin: 0; font-size: .82rem; }.footer-grid a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 54px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.13); font-size: .75rem; }

.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1040px) {
    :root { --shell: min(100% - 48px, 920px); }
    .nav-links { gap: 20px; }
    .nav-links { gap: 12px; font-size: .78rem; }
    .header-actions { margin-left: 12px; }
    .language-switch a { padding-inline: 5px; font-size: .72rem; }
    .clients-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .approach-heading { grid-template-columns: 1fr .55fr; }
}

@media (max-width: 780px) {
    :root { --shell: calc(100vw - 34px); }
    .section { padding: 85px 0; }
    .nav { min-height: 78px; }.brand img { width: 62px; height: 62px; }
    .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; }.menu-toggle > span:not(.sr-only) { display: block; width: 25px; height: 1px; background: currentColor; transition: transform .2s, opacity .2s; }.menu-toggle[aria-expanded="true"] > span:first-child { transform: translateY(6px) rotate(45deg); }.menu-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }.menu-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
    .nav-links { position: absolute; display: none; top: 78px; left: 17px; right: 17px; flex-direction: column; align-items: stretch; gap: 0; padding: 15px; color: var(--ink); background: #fff; box-shadow: 0 22px 55px rgba(0,0,0,.18); }.nav-links.open { display: flex; }.nav-links > a { padding: 12px 9px; color: var(--ink); border-bottom: 1px solid var(--line); }.nav-cta { margin-top: 10px; color: #fff!important; text-align: center; background: var(--brand); border: 0; }
    .header-actions { margin-left: auto; }
    .hero { min-height: 690px; padding-top: 110px; }.hero h1 { font-size: clamp(3rem, 11vw, 5rem); }.hero-content > p:not(.hero-kicker) { font-size: 1rem; }
    .hero-angle { height: 75px; }
    .service-grid { grid-template-columns: 1fr; }.service-card { min-height: auto; }.service-points { grid-template-columns: 1fr; gap: 13px; }
    .expertise { min-height: 560px; padding: 100px 0; }.expertise h2 { font-size: clamp(3rem, 12vw, 5.5rem); }
    .approach-heading { grid-template-columns: 1fr; gap: 25px; }.approach-heading > p { max-width: 520px; }
    .approach-paths { grid-template-columns: 1fr; gap: 14px; }.approach-path { padding: 27px 25px; }
    .flow-or { position: static; justify-self: center; width: 42px; height: 42px; margin: -5px 0; transform: none; }
    .flow-split, .flow-merge { display: grid; place-items: center; height: 62px; }.flow-split svg, .flow-merge svg { display: none; }.flow-split span, .flow-merge span { display: block; font-size: 34px; line-height: 1; }
    .flow-steps { gap: 50px; }.flow-step { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 23px; }.flow-number { width: 42px; height: 42px; }.flow-icon { top: 22px; right: 22px; width: 32px; height: 32px; }
    .contact-inner { grid-template-columns: 1fr; gap: 35px; }
    .clients-grid { grid-template-columns: 1fr; gap: 48px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }.footer-logo { grid-column: 1 / -1; }
}

@media (max-width: 500px) {
    .hero-kicker, .section-kicker { font-size: .67rem; }.hero h1 { font-size: 3.1rem; }
    .service-card { padding: 34px 28px; }
    .approach-heading h2, .contact-inner h2 { font-size: 2.45rem; }
    .flow-step { padding: 20px 18px; }.flow-step h3 { font-size: 1.1rem; }.flow-step .flow-icon { top: 16px; right: 16px; width: 28px; height: 28px; }.flow-step h3 { padding-right: 32px; }
    .footer-grid { grid-template-columns: 1fr; gap: 34px; }.footer-logo { grid-column: auto; }.footer-bottom { gap: 20px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms!important; transition-duration: .01ms!important; }
    .js .reveal { opacity: 1; transform: none; }
}
