/* TODENKO — stylesheet ร่วมทั้งเว็บ
   โครง: tokens → base → header/footer → ส่วนประกอบร่วม → รายหน้า → responsive */

/* ---------- tokens ---------- */
:root {
  --navy: #0a2245;
  --navy-deep: #04142d;
  --blue: #0a58ca;
  /* contrast กับตัวอักษรขาว: --blue 6.5:1, --blue-bright 4.7:1, --navy 15:1; --muted บนขาว 7:1 (≥ 4.5:1 ทุกคู่ที่ใช้ตัวอักษร) */
  --blue-bright: #1a6cf0;
  --sky: #4aa8ff;
  --ink: #0b1b36;
  --muted: #4a5a72;
  --line: #d6dde8;
  --silver: #e8ecf2;
  --soft: #f3f6fa;
  --surface: #f7f9fc;
  --surface-2: #eaf0f8;
  --white: #fff;
  --danger: #b42318;
  --gutter: 24px;
  --radius: 6px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(10, 34, 69, .06), 0 4px 14px rgba(10, 34, 69, .07);
  --shadow-md: 0 2px 4px rgba(10, 34, 69, .08), 0 14px 34px rgba(10, 34, 69, .16);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
  --font-body: "Noto Sans Thai", "Segoe UI", "Leelawadee UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Kanit", "Prompt", "Segoe UI", "Leelawadee UI", "Noto Sans Thai", system-ui, -apple-system, Arial, sans-serif;
}
:lang(ja) {
  --font-body: "Yu Gothic UI", "Yu Gothic", "Hiragino Sans", "Noto Sans JP", Meiryo, system-ui, sans-serif;
  --font-head: "Yu Gothic UI", "Yu Gothic", "Hiragino Sans", "Noto Sans JP", Meiryo, system-ui, sans-serif;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; font: 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; color: var(--ink); background: var(--white); overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.8vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); letter-spacing: -.015em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
[hidden] { display: none !important; }

.container { width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; }
.section { padding-block: 28px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 8px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.ph { display: inline-block; } /* อนุประโยคภาษาไทยตัดบรรทัดเป็นหน่วยเดียว (ดู phrase_wrap) */
.btn .icon { width: 1.15em; height: 1.15em; }

/* ---------- header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--silver); position: sticky; top: 0; z-index: 20; transition: box-shadow .3s var(--ease), background-color .3s; }
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .site-header { background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: saturate(1.5) blur(14px); backdrop-filter: saturate(1.5) blur(14px); }
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(10, 34, 69, .12); }
.site-header.is-scrolled .brand__mark { transform: skewX(-6deg) scale(.92); }
.site-header__inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; white-space: nowrap; }
.brand__mark { font: italic 900 2.05rem/1 var(--font-head); letter-spacing: -.02em; color: var(--blue); transform: skewX(-6deg); display: inline-block; transform-origin: left center; transition: transform .3s var(--ease); }
.brand__name { font: 700 .8rem/1.2 var(--font-head); color: var(--ink); padding-left: 16px; border-left: 2px solid var(--ink); }
.brand--light .brand__mark { color: #fff; }
.site-header__menu { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: 22px; }
.site-nav a { position: relative; display: block; padding: 26px 0 23px; font: 600 .9rem/1.2 var(--font-head); text-decoration: none; white-space: nowrap; transition: color .2s; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.site-nav a:hover { color: var(--blue); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--blue); }
.lang-switch ul { display: flex; align-items: center; }
.lang-switch li + li::before { content: "|"; color: var(--muted); margin-inline: 2px; }
.lang-switch a { display: inline-block; padding: 8px 5px; font: 600 .8rem/1 var(--font-head); text-decoration: none; }
.lang-switch a:hover, .lang-switch a[aria-current="true"] { color: var(--blue); }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle__close, .nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

/* ---------- footer ---------- */
.site-footer { background: linear-gradient(100deg, var(--navy-deep), var(--navy) 70%); color: #fff; position: relative; overflow: hidden; }
.site-footer::after { content: ""; position: absolute; right: -40px; bottom: 0; width: 150px; height: 100%; background: linear-gradient(180deg, var(--blue-bright), var(--blue)); transform: skewX(-32deg); opacity: .9; }
.site-footer { border-top: 4px solid var(--blue-bright); }
.site-footer__inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 28px; padding-block: 38px; font-size: .9rem; }
.site-footer__brand { display: flex; align-items: center; gap: 22px; }
.site-footer__name { font: 700 .85rem/1.2 var(--font-head); padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, .7); white-space: nowrap; }
.site-footer__item { display: flex; align-items: center; gap: 12px; margin: 0; padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, .7); max-width: 430px; line-height: 1.4; }
.site-footer__item .icon { width: 22px; height: 22px; }
.site-footer__item a { text-decoration: none; white-space: nowrap; }
.site-footer__item a:hover { text-decoration: underline; }

/* ---------- ปุ่ม ---------- */
.btn { position: relative; z-index: 0; display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 44px; padding: 10px 30px; border: 0; background: none; font: 700 1rem/1.2 var(--font-head); text-decoration: none; cursor: pointer; color: #fff; }
.btn { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, var(--blue), var(--blue-bright)); transform: skewX(-18deg); transition: filter .2s, box-shadow .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover::before { filter: brightness(1.1); box-shadow: 0 10px 22px rgba(10, 88, 202, .35); }
.btn:active { transform: translateY(0); }
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn:focus-visible { outline-color: var(--sky); outline-offset: 4px; }
.btn--light { color: var(--blue); }
.btn--light::before { background: #fff; }
.btn--light:hover::before { filter: none; background: #e8f1ff; }
.btn--outline { color: var(--blue); min-height: 36px; padding: 6px 18px; gap: 10px; white-space: nowrap; font-size: .9rem; font-weight: 600; border: 1.5px solid var(--blue); border-radius: 2px; background: #fff; }
.btn--outline::before { display: none; }
.btn--outline:hover { background: var(--blue); color: #fff; }
.btn--solid { border-radius: var(--radius); background: linear-gradient(180deg, var(--blue-bright), var(--blue)); }
.btn--solid::before { display: none; }
.btn--solid:hover { filter: brightness(1.1); }
.btn--block { display: flex; width: 100%; }
.btn.is-busy, .btn[disabled] { opacity: .6; cursor: progress; }
.text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; color: var(--blue); font: 700 .875rem/1.2 var(--font-head); text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-link .icon { width: 1em; height: 1em; }

/* ---------- หัวข้อและป้าย ---------- */
.section-title { display: flex; align-items: baseline; gap: .5em; }
.section-title::before, .eyebrow::before { content: ""; flex: none; width: .42em; height: .85em; background: var(--blue-bright); transform: skewX(-20deg) translateY(.06em); }
.eyebrow { display: flex; align-items: baseline; gap: .9em; margin: 0 0 18px; font: 700 1.05rem/1.2 var(--font-head); letter-spacing: .04em; text-transform: uppercase; }
.eyebrow::before { width: .8em; }
.rule { display: block; width: 110px; height: 3px; background: var(--line); margin: 18px 0 22px; }
.sample-badge { display: inline-block; padding: 2px 10px; background: #fff3cd; color: #6b4e00; border: 1px solid #e6cf85; border-radius: 99px; font: 600 .72rem/1.5 var(--font-body); vertical-align: middle; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; background: #eef4ff; border: 1px solid #b9cff5; border-left: 4px solid var(--blue); border-radius: var(--radius); font-size: .9rem; color: var(--ink); }
.notice p { margin: 0; }
.notice .icon { color: var(--blue); margin-top: 2px; }
.notice--warning { background: #fff8e6; border-color: #e6cf85; border-left-color: #b98900; }
.notice--warning .icon { color: #8a6500; }
.notice--error { background: #fef3f2; border-color: #f0b8b3; border-left-color: var(--danger); }
.notice--error .icon { color: var(--danger); }
.notice--success { background: #eef8f0; border-color: #a9d6b3; border-left-color: #2f7d44; }
.notice--success .icon { color: #2f7d44; }
/* honeypot: ซ่อนจากผู้ใช้จริงแต่บอทยังกรอก (ไม่ใช้ display:none เพราะบอทบางตัวข้ามช่องที่ซ่อนแบบนั้น) */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.back-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--blue); font-weight: 600; text-decoration: none; }
.back-link:hover { text-decoration: underline; }

/* ---------- band: แผงสีน้ำเงินเฉียงซ้อนภาพ (hero, CTA ภาพ) ---------- */
.band { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: 190px; background: var(--navy); color: #fff; }
.band__img { position: absolute; top: 0; right: 0; z-index: -3; width: 66%; height: 100%; object-fit: cover; }
.band::before { content: ""; position: absolute; inset: 0 auto 0 0; z-index: -2; width: 53%; background: linear-gradient(115deg, var(--blue) 30%, var(--blue-bright)); clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%); }
.band__panel { position: absolute; inset: 0 auto 0 0; z-index: -1; width: 50%; background: linear-gradient(115deg, var(--navy-deep) 0%, #0a326c 100%); clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%); }
.band__content { padding-block: 36px; }
.band__inner { max-width: 46%; padding-left: 52px; }
.band h1 { font-size: clamp(1.9rem, 3.7vw, 2.75rem); }
.band h1, .band h2 { margin-bottom: 0; }
.band__lead { margin: 16px 0 0; font-size: 1.2rem; line-height: 1.35; }
.band .btn { margin-top: 22px; }
.band--home { min-height: clamp(400px, 46vw, 560px); }
.band--home h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); }
.band--home .band__img { width: 100%; }
.band--home::before { display: none; }
.band--home .band__panel { width: 100%; clip-path: none; background: linear-gradient(100deg, rgba(4, 20, 45, .94) 0%, rgba(10, 34, 69, .8) 42%, rgba(10, 34, 69, .08) 78%); }
.band--home .band__inner { max-width: 640px; padding-left: 0; }
.band--home .band__lead { font-size: clamp(1.05rem, 1.8vw, 1.3rem); max-width: 30em; }
.band--home .band__inner > * { animation: rise .8s var(--ease) backwards; }
.band--home .band__inner > :nth-child(2) { animation-delay: .1s; }
.band--home .band__inner > :nth-child(3) { animation-delay: .18s; }
.band--home .band__inner > :nth-child(4) { animation-delay: .26s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
.band--tall { min-height: 250px; }
.hero-rule { display: block; width: 78px; height: 5px; margin-top: 16px; background: var(--blue-bright); transform: skewX(-30deg); }
.band--left .band__img { right: auto; left: 0; }
.band--left::before { inset: 0 0 0 auto; width: 45%; clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%); }
.band--left .band__panel { inset: 0 0 0 auto; width: 42%; clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%); }
.band--left .band__inner { margin-left: auto; max-width: 32%; padding-left: 0; }

/* ---------- CTA band (ไม่มีภาพ) ---------- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(100deg, #0a4fc4, var(--blue) 45%, #0a3f9f); color: #fff; }
.cta-band::before { content: ""; position: absolute; left: -60px; top: 0; width: 150px; height: 100%; background: rgba(74, 168, 255, .5); transform: skewX(-28deg); animation: drift 9s ease-in-out infinite alternate; }
@keyframes drift { to { transform: skewX(-28deg) translateX(120px); } }
.cta-band__inner { position: relative; display: flex; align-items: center; gap: 40px; padding-block: 44px; }
.cta-band h2 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.9rem); flex: none; max-width: 100%; }
.cta-band p { margin: 0; padding-left: 40px; border-left: 2px solid rgba(255, 255, 255, .8); font-size: 1.05rem; max-width: 420px; }
.cta-band .btn { margin-left: auto; flex: none; font-size: 1.15rem; padding-inline: 38px; }
.cta-band__icon { width: 56px; height: 56px; flex: none; }
.cta-band--stack .cta-band__text h2 { margin-bottom: 6px; }
.cta-band--stack .cta-band__text p { padding: 0; border: 0; max-width: none; }

/* ---------- dialog ---------- */
.dialog { width: min(92vw, 520px); padding: 0; border: 0; border-radius: 10px; box-shadow: 0 24px 80px rgba(0, 27, 76, .35); color: var(--ink); }
.dialog::backdrop { background: rgba(0, 21, 44, .65); }
.dialog__body { padding: 28px 28px 24px; }
.dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.dialog__head h2 { font-size: 1.4rem; margin: 6px 0 14px; }
.dialog__close { width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center; margin: -8px -10px 0 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.dialog__close:hover { background: var(--soft); }
.dialog .btn { margin-top: 8px; }

/* ---------- 404 ---------- */
.not-found { padding-block: 70px; text-align: left; }
.not-found__code { font: 900 5rem/1 var(--font-head); color: var(--silver); margin: 0 0 10px; }
.not-found .btn { margin-top: 12px; }

/* ================= HOME ================= */
.intro { display: grid; grid-template-columns: 500fr 600fr; gap: 48px; align-items: center; padding: 64px 36px 40px; }
.intro__img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.intro__text { padding-top: 0; }
.intro__text h2 { font-size: clamp(1.4rem, 2.6vw, 1.95rem); margin-bottom: 14px; }
.intro__text p { font-size: 1.075rem; max-width: 560px; }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat-grid { gap: 22px; }
.cat-card { position: relative; display: block; overflow: hidden; color: #fff; text-decoration: none; background: var(--navy); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.cat-card img { width: 100%; aspect-ratio: 370 / 160; object-fit: cover; transition: transform .6s var(--ease); }
.cat-card:hover, .cat-card:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.cat-card:hover img, .cat-card:focus-visible img { transform: scale(1.04); }
.cat-card:hover .icon { transform: translateX(4px); }
.cat-card .icon { transition: transform .3s var(--ease); }
.cat-card__bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 28px 14px 14px 20px; background: linear-gradient(to top, rgba(4, 20, 45, .88) 0%, rgba(4, 20, 45, .55) 55%, rgba(4, 20, 45, 0) 100%); font: 700 1.25rem/1.2 var(--font-head); text-shadow: 0 1px 8px rgba(4, 20, 45, .5); }
@media (min-width: 721px) and (max-width: 1000px) {
  /* การ์ด 3 คอลัมน์แคบ: เพิ่มความสูงเล็กน้อย ไม่ให้แถบชื่อทับภาพเกือบทั้งใบ */
  .cat-card img { aspect-ratio: 370 / 190; }
  .cat-card__bar { padding: 22px 10px 10px 14px; font-size: 1.05rem; }
}
.cat-card__bar > span::before { content: ""; display: inline-block; width: .28em; height: .9em; margin-right: .55em; background: var(--sky); transform: skewX(-20deg); vertical-align: -.1em; }
.cat-card__bar .icon { box-sizing: content-box; width: 1.1em; height: 1.1em; padding: .5em; border-radius: 50%; background: rgba(255, 255, 255, .18); text-shadow: none; transition: background-color .3s, transform .3s var(--ease); }
.cat-card:hover .cat-card__bar .icon, .cat-card:focus-visible .cat-card__bar .icon { background: var(--blue-bright); }
.standards { margin-top: 40px; background: var(--surface); border-block: 1px solid var(--silver); }
.standards ul { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 14px; padding-block: 28px; }
.standards li { padding: 8px 26px; background: #fff; border: 1px solid var(--line); border-radius: 99px; box-shadow: var(--shadow-sm); font: 700 1.1rem/1.3 var(--font-head); color: var(--navy); }
.video { display: grid; grid-template-columns: 485fr 560fr; gap: 48px; align-items: center; padding-block: 56px; max-width: 1040px; }
.video__poster { position: relative; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); background: var(--navy); }
.video__poster img { width: 100%; aspect-ratio: 485 / 172; object-fit: cover; opacity: .8; }
.video__status { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; margin: 0; padding: 9px 16px; background: rgba(5, 26, 54, .9); color: #fff; font-weight: 600; font-size: .84rem; line-height: 1.35; }
.video__text p { font-size: 1.075rem; margin: 0; }
.video { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); max-width: 1200px; }
@media (max-width: 900px) { .video { grid-template-columns: 1fr; max-width: 760px; } }
.video__player { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); background: var(--navy-deep); }
.video__play { position: absolute; inset: 0; display: block; }
.video__play img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform .6s var(--ease), opacity .3s; }
.video__play:hover img { transform: scale(1.04); opacity: .7; }
.video__play:focus-visible { outline-offset: -4px; }
.video__button { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--blue); box-shadow: 0 10px 30px rgba(4, 20, 45, .35); transition: transform .3s var(--ease), background-color .3s, color .3s; }
.video__button::before { content: ""; margin-left: 6px; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent currentColor; }
.video__play:hover .video__button, .video__play:focus-visible .video__button { transform: scale(1.1); background: var(--blue-bright); color: #fff; }
.video__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ================= ABOUT ================= */
.overview { display: grid; grid-template-columns: 370fr 580fr; gap: 26px; align-items: start; padding-block: 28px 14px; }
.overview h2 { font-size: clamp(1.5rem, 2.9vw, 1.95rem); line-height: 1.12; }
.overview__img { width: 100%; aspect-ratio: 580 / 304; object-fit: cover; }
.profile-table { border: 1px solid var(--line); font-size: .95rem; }
.profile-table th, .profile-table td { padding: 6px 24px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.profile-table th { width: 195px; padding-left: 30px; background: var(--soft); font-family: var(--font-head); }
.profile-table tr:last-child th, .profile-table tr:last-child td { border-bottom: 0; }
.profile-table a { text-decoration: none; }
.profile-table a:hover { text-decoration: underline; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.value-card { position: relative; overflow: hidden; background: var(--navy); color: #fff; min-height: 226px; display: flex; flex-direction: column; }
.value-card img { width: 100%; height: 126px; object-fit: cover; }
.value-card__body { position: relative; flex: 1; display: flex; align-items: center; gap: 18px; padding: 14px 44px 16px 26px; background: linear-gradient(180deg, #0c3a78, var(--navy)); }
.value-card__body::after { content: ""; position: absolute; right: -26px; bottom: -6px; width: 62px; height: 60px; background: var(--blue-bright); transform: skewX(-32deg); }
.value-card__icon { width: 52px; height: 52px; flex: none; stroke-width: 1.4; }
.value-card__text { padding-left: 18px; border-left: 1px solid rgba(255, 255, 255, .7); }
.value-card h3 { font-size: 1.55rem; margin: 0 0 6px; }
.value-card p { margin: 0; font-size: .82rem; line-height: 1.4; }
.boi-panel { position: relative; overflow: hidden; margin-top: 22px; background: linear-gradient(100deg, #f4f6f9, #fff 45%, #e9edf3); }
.boi-panel::after { content: ""; position: absolute; right: -34px; bottom: 0; width: 80px; height: 60px; background: var(--blue); transform: skewX(-32deg); }
.boi-panel__inner { display: grid; grid-template-columns: 300px 1fr; align-items: center; gap: 34px; padding-block: 20px; }
.boi-panel h2 { position: relative; margin: 0; padding-left: 72px; font-size: 1.75rem; line-height: 1.02; }
.boi-panel h2::before { content: ""; position: absolute; left: 22px; top: 0; bottom: -10px; width: 5px; background: var(--blue); transform: skewX(-22deg); }
.boi-panel p { margin: 0; padding-left: 34px; border-left: 1px solid var(--line); font-size: 1.12rem; }
.photo-cta { margin-top: 16px; min-height: 256px; }
.photo-cta .band__img { width: 72%; }
.photo-cta h2 { font-size: 1.9rem; }
.photo-cta p { margin: 14px 0 0; font-size: .95rem; }
.photo-cta .btn { margin-top: 16px; }

/* ================= MANUFACTURING ================= */
.lead-block { position: relative; overflow: hidden; padding-block: 24px 20px; }
.lead-block::after { content: ""; position: absolute; right: 0; top: 0; width: 230px; height: 100%; background: linear-gradient(180deg, #dfe4ec, #eef1f6); clip-path: polygon(48% 0, 100% 0, 100% 100%, 0 100%); z-index: -1; }
.lead-block h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); margin-bottom: 10px; }
.lead-block p { max-width: 450px; margin: 0 0 0 8px; }
.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cap-card { position: relative; overflow: hidden; background: var(--navy); }
.cap-card img { width: 100%; aspect-ratio: 260 / 188; object-fit: cover; }
.cap-card__label { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; margin: 0; padding: 9px 12px 9px 40px; background: rgba(8, 39, 75, .9); color: #fff; font: 700 1.05rem/1.25 var(--font-head); }
.cap-card__label::before { content: ""; width: 8px; height: 1.2em; flex: none; background: var(--blue-bright); transform: skewX(-22deg); }
.process-section { padding-block: 26px 28px; }
.process-section > h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 20px; }
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; counter-reset: step; }
.step-card { position: relative; padding: 0 10px 18px; background: linear-gradient(180deg, #f7f9fc, #eef1f6); border: 1px solid var(--silver); border-radius: var(--radius); }
.step-card + .step-card::before { content: ""; position: absolute; left: -22px; top: 50%; width: 12px; height: 12px; border-top: 3px solid var(--blue); border-right: 3px solid var(--blue); transform: translateY(-50%) rotate(45deg); }
.step-card__head { display: flex; align-items: center; gap: 22px; margin: 0 0 12px -10px; }
.step-card__num { display: inline-block; position: relative; z-index: 0; padding: 4px 20px 4px 24px; color: #fff; font: 700 1.25rem/1.2 var(--font-head); }
.step-card__num::before { content: ""; position: absolute; inset: 0 0 0 -10px; z-index: -1; background: var(--blue); transform: skewX(-20deg); }
.step-card h3 { margin: 0; font-size: 1.2rem; }
.step-card img { width: 100%; aspect-ratio: 205 / 120; object-fit: cover; }
.step-card p { margin: 10px 4px 0; font-size: .82rem; line-height: 1.4; }
.feature-band { min-height: 226px; }
.feature-band h2 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); line-height: 1.15; }
.feature-band p { margin: 22px 0 0; font-size: .9rem; }

/* ================= QUALITY ================= */
.std-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-block: 26px 16px; }
.std-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 84px 1fr; align-items: center; gap: 18px; padding: 16px 16px 18px 24px; background: linear-gradient(135deg, #fff, #eef2f7); border: 1px solid var(--line); border-radius: 8px; }
.std-card::after { content: ""; position: absolute; right: -22px; bottom: 0; width: 56px; height: 40px; background: var(--blue); transform: skewX(-38deg); }
.std-card__icon { width: 72px; height: 72px; color: var(--blue); justify-self: center; stroke-width: 1.6; }
.std-card__body { min-width: 0; padding-left: 18px; border-left: 1.5px solid var(--navy); }
.std-card h3 { font-size: 1.4rem; margin: 0 0 4px; white-space: nowrap; }
.std-card p { margin: 0 0 14px; font-size: .92rem; line-height: 1.3; min-height: 2.6em; }
.feature-row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; margin-top: 16px; background: linear-gradient(100deg, #fff, #eef2f7); }
.feature-row__img { width: 100%; height: 100%; min-height: 200px; aspect-ratio: 600 / 200; object-fit: cover; clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%); }
.feature-row__text { padding: 18px 30px 18px 46px; }
.feature-row h2 { font-size: clamp(1.4rem, 2.8vw, 1.95rem); margin-bottom: 10px; }
.feature-row__text > div { padding-left: 28px; border-left: 4px solid var(--blue); }
.feature-row p { margin: 0; font-size: .98rem; line-height: 1.42; }
.policies { display: grid; grid-template-columns: 390px 1fr; margin-top: 26px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(100deg, #fff, #eef2f7); }
.policies__head { display: flex; align-items: center; gap: 26px; padding: 30px 70px 30px 56px; background: var(--navy); color: #fff; clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%); }
.policies__head .icon { width: 64px; height: 64px; stroke-width: 1.4; }
.policies__head h2 { margin: 0; padding-left: 26px; border-left: 1px solid rgba(255, 255, 255, .7); font-size: 1.75rem; }
.policies__list { padding: 10px 44px 10px 20px; }
.policies__list li { display: flex; align-items: center; gap: 28px; padding: 12px 0; font: 600 1.15rem/1.2 var(--font-head); }
.policies__list li + li { border-top: 1px solid var(--line); }
.policies__list .icon { width: 34px; height: 34px; stroke-width: 1.5; margin-left: 24px; }
.policies__list .btn { margin-left: auto; min-width: 144px; }
.quality-cta { margin-top: 22px; }

/* ================= PRODUCTS ================= */
.tabs { display: flex; flex-wrap: wrap; gap: 6px 8px; padding-top: 26px; border-bottom: 1px solid var(--line); }
.tabs a { position: relative; z-index: 0; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 50px; color: var(--ink); font: 500 1.1rem/1.2 var(--font-head); text-decoration: none; }
.tabs a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #e9edf3; transform: skewX(-22deg); }
.tabs a:hover::before { background: #d9e2ef; }
.tabs a[aria-current="true"] { color: #fff; font-weight: 700; }
.tabs a[aria-current="true"]::before { background: var(--blue-bright); }
.list-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; padding-block: 14px 12px; font-size: .88rem; color: var(--muted); }
.list-meta p { margin: 0; }
.list-meta strong { color: var(--ink); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 16px; padding-bottom: 34px; }
.product-card { display: flex; flex-direction: column; padding: 5px 5px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.product-card img { width: 100%; aspect-ratio: 362 / 190; object-fit: cover; border-radius: 3px; }
.product-card__body { display: flex; flex-direction: column; flex: 1; padding: 6px 18px 0; }
.product-card h2, .product-card h3 { font-size: 1.45rem; margin: 0 0 2px; }
.product-card__cat { margin: 0 0 4px; font-size: .78rem; color: var(--muted); }
.product-card__summary { margin: 0 0 12px; font-size: .88rem; line-height: 1.4; color: var(--muted); flex: 1; }
.product-card .btn { align-self: flex-start; min-width: 184px; }
.empty-state { margin-block: 20px 40px; padding: 40px 24px; text-align: center; background: var(--soft); border: 1px dashed var(--line); border-radius: 8px; }
.empty-state p { margin: 0 0 14px; font-size: 1.05rem; }
.inquiry-band { min-height: 202px; }
.inquiry-band .band__img { width: 62%; }
.inquiry-band h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); display: flex; align-items: center; gap: .4em; margin-left: -1.1em; }
.inquiry-band h2::before { content: ""; width: .5em; height: 1em; flex: none; background: var(--blue-bright); transform: skewX(-20deg); }
.inquiry-band p { margin: 12px 0 0; }
.inquiry-band .btn { margin-top: 14px; }

/* ---------- หน้ารายละเอียด (สินค้า ข่าว งาน) ---------- */
.detail { padding-block: 10px 44px; }
.detail__grid { display: grid; grid-template-columns: 5fr 6fr; gap: 36px; align-items: start; margin-top: 6px; }
.detail__img { width: 100%; aspect-ratio: 362 / 200; object-fit: cover; border: 1px solid var(--line); border-radius: var(--radius); }
.detail h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-bottom: 10px; color: var(--navy); }
.detail h2 { font-size: 1.25rem; margin: 26px 0 10px; }
.detail__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 16px; font-size: .9rem; color: var(--muted); }
.spec-table { border: 1px solid var(--line); font-size: .95rem; }
.spec-table th, .spec-table td { padding: 10px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table th { width: 38%; background: var(--soft); font-family: var(--font-head); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.pending { color: var(--muted); font-style: italic; }
.detail .btn { margin-top: 24px; }
.status-badge { display: inline-block; padding: 2px 12px; border-radius: 99px; font: 600 .78rem/1.6 var(--font-body); background: #e3f6e8; color: #14602c; border: 1px solid #a6d8b4; }
.status-badge--closed { background: #f1f1f3; color: #55585f; border-color: #cfd2d8; }
.article { max-width: 820px; }
.article__img { width: 100%; aspect-ratio: 570 / 250; object-fit: cover; border-radius: var(--radius); margin-block: 16px 20px; }

/* ================= NEWS ================= */
.pills { display: flex; flex-wrap: wrap; gap: 12px; padding-block: 22px 18px; }
.pills a { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 28px; border: 1.5px solid #9aa7ba; border-radius: 99px; background: #fff; color: var(--ink); font: 500 .95rem/1.2 var(--font-head); text-decoration: none; }
.pills a:hover { border-color: var(--blue); color: var(--blue); }
.pills a[aria-current="true"] { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; }
.featured { position: relative; overflow: hidden; display: grid; grid-template-columns: 636fr 502fr; background: linear-gradient(100deg, #f4f6f9, #e3e8ef); border-radius: 6px; }
.featured::after { content: ""; position: absolute; right: -30px; bottom: 0; width: 86px; height: 88px; background: linear-gradient(90deg, #b9c2cf 0 34%, var(--blue) 34%); transform: skewX(-32deg); }
.featured img { width: 100%; height: 100%; aspect-ratio: 636 / 248; object-fit: cover; }
.featured__body { position: relative; z-index: 1; padding: 30px 30px 26px 34px; }
.featured h2 { font-size: clamp(1.4rem, 2.8vw, 1.95rem); margin-bottom: 12px; }
.featured p { font-size: 1.02rem; line-height: 1.42; }
.featured .btn { margin: 6px 0 0 8px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 20px; padding-block: 30px 24px; }
.news-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.news-card img { width: 100%; aspect-ratio: 366 / 147; object-fit: cover; }
.news-card__body { display: flex; flex-direction: column; flex: 1; padding: 8px 20px 12px 14px; }
.news-card h3 { font-size: 1.2rem; margin: 0 0 6px; }
.news-card p { margin: 0 0 6px 8px; font-size: .84rem; line-height: 1.32; flex: 1; }
.news-card .text-link { margin-left: 8px; align-self: flex-start; }
.pagination { display: flex; justify-content: center; padding-bottom: 28px; }
.pagination ul { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 4px 14px; border: 1.5px solid #9aa7ba; border-radius: var(--radius); background: #fff; color: var(--ink); font-weight: 500; text-decoration: none; }
.pagination a:hover { border-color: var(--blue); color: var(--blue); }
.pagination [aria-current="page"] { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; }
.pagination [aria-disabled="true"] { color: #98a2b3; border-color: var(--silver); background: var(--soft); cursor: not-allowed; }
.pagination .icon { width: 1em; height: 1em; }

/* ================= CAREERS ================= */
.careers-intro { position: relative; padding-block: 22px 8px; background: linear-gradient(180deg, #f1f5fa, #fff); }
.careers-intro h2 { font-size: clamp(1.6rem, 3.2vw, 2.15rem); margin-bottom: 12px; }
.careers-intro__lead { max-width: 360px; margin: 0; line-height: 1.25; }
.value-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-block: 18px 26px; }
.value-item { display: grid; grid-template-columns: 1.6fr 1fr; align-items: end; gap: 6px; }
.value-item img { width: 100%; aspect-ratio: 290 / 193; object-fit: cover; clip-path: polygon(22% 0, 100% 0, 78% 100%, 0 100%); }
.value-item__icon { display: inline-flex; align-items: center; justify-content: center; width: 96px; height: 54px; margin: 0 0 10px -18px; background: linear-gradient(120deg, var(--navy), var(--blue)); color: #fff; clip-path: polygon(20% 0, 100% 0, 80% 100%, 0 100%); }
.value-item__icon .icon { width: 36px; height: 36px; stroke-width: 1.5; }
.value-item h3 { font-size: 1.3rem; margin: 0 0 6px; line-height: 1.05; }
.value-item p { margin: 0; font-size: .85rem; line-height: 1.22; }
.opps-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 4px; }
.opps-head h2 { margin: 0; padding: 8px 60px 8px max(var(--gutter), calc((100vw - 1200px) / 2 + 28px)); background: linear-gradient(100deg, var(--blue) 0 2.5%, var(--navy) 2.5%); color: #fff; font-size: clamp(1.4rem, 3vw, 2.05rem); clip-path: polygon(0 0, 100% 0, calc(100% - 26px) 100%, 0 100%); }
.opps-head__note { margin: 0; padding: 7px 46px; background: linear-gradient(100deg, #dbe6f5, #eef3fa); color: var(--blue); font: 700 .95rem/1.3 var(--font-head); clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%); }
.job-list { display: grid; gap: 6px; padding-block: 12px 18px; }
.job-row { display: grid; grid-template-columns: 96px 190px 1fr auto; align-items: center; gap: 0 12px; min-height: 56px; padding: 6px 28px 6px 20px; background: linear-gradient(90deg, #dbe9f8, #f4f8fd 30%, #fff); border: 1px solid #c9d6e6; border-radius: 6px; }
.job-row__icon { width: 44px; height: 44px; justify-self: center; color: var(--blue); stroke-width: 1.8; }
.job-row h3 { margin: 0; font-size: 1.4rem; }
.job-row p { margin: 0; padding-left: 52px; border-left: 2px solid var(--ink); max-width: 520px; line-height: 1.25; }
.job-row .btn { min-width: 180px; }
.steps-inquiry { display: grid; grid-template-columns: 1fr 446px; gap: 20px; align-items: start; padding-bottom: 24px; }
.steps-inquiry__steps { padding-right: 20px; border-right: 1px solid var(--line); }
.steps-inquiry h2 { font-size: clamp(1.4rem, 2.8vw, 1.75rem); margin-bottom: 14px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; padding-inline: 20px; }
.steps li { position: relative; }
.steps li + li::before { content: ""; position: absolute; left: -16px; top: 34px; width: 11px; height: 11px; border-top: 3px solid var(--blue-bright); border-right: 3px solid var(--blue-bright); transform: rotate(45deg); }
.steps__icon { display: inline-flex; align-items: center; justify-content: center; width: 82px; height: 82px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--blue-bright), #0a3f9f); color: #fff; box-shadow: 0 0 0 10px #e3eefb; }
.steps__icon .icon { width: 40px; height: 40px; stroke-width: 1.7; }
.steps h3 { margin: 14px 0 6px; font-size: 1.2rem; }
.steps p { margin: 0; font-size: .82rem; line-height: 1.3; }
.inquiry-box { position: relative; overflow: hidden; padding: 16px 20px 22px 30px; background: linear-gradient(135deg, #e7f0fb, #cfe0f5); border-radius: 12px; }
.inquiry-box h2 { display: flex; align-items: center; gap: 14px; margin: 0 0 8px; font-size: 1.6rem; }
.inquiry-box h2 .icon { width: 44px; height: 44px; color: var(--blue); }
.inquiry-box p { margin: 0 0 10px; line-height: 1.2; }
.inquiry-box__phone { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 36px 6px 40px; margin-left: -26px; background: linear-gradient(100deg, var(--navy), #0a3f9f); color: #fff; font: 700 clamp(1.25rem, 2.6vw, 1.75rem)/1.2 var(--font-head); text-decoration: none; clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%); }
.inquiry-box__phone:hover { filter: brightness(1.15); }
.inquiry-box__phone .icon { width: 30px; height: 30px; }

/* ================= CONTACT ================= */
.contact-grid { display: grid; grid-template-columns: 492fr 608fr; gap: 38px; align-items: start; padding-block: 36px 30px; }
.contact-card { position: relative; overflow: hidden; background: linear-gradient(160deg, #fff, #eef2f7); border: 1px solid var(--line); border-radius: 10px; }
.contact-card::after { content: ""; position: absolute; right: -22px; bottom: 0; width: 60px; height: 44px; background: linear-gradient(90deg, #c3cad5 0 45%, #dde2ea 45%); transform: skewX(-38deg); }
.contact-card img { width: 100%; aspect-ratio: 486 / 313; object-fit: cover; }
.contact-card__body { padding: 28px 28px 30px; }
.contact-card h2 { font-size: clamp(1.3rem, 2.6vw, 1.75rem); margin-bottom: 26px; }
.contact-card__row { display: flex; align-items: flex-start; gap: 22px; margin: 0 0 22px; font-size: 1.28rem; line-height: 1.22; }
.contact-card__row .icon { width: 34px; height: 34px; color: var(--blue-bright); margin-top: 2px; }
.contact-card__row a { text-decoration: none; }
.contact-card__row a:hover { text-decoration: underline; }
.contact-card__hint { margin: -12px 0 0 56px; font-size: .85rem; color: var(--muted); }
.form-head h2 { font-size: clamp(1.5rem, 2.8vw, 1.85rem); margin-bottom: 2px; }
.form-head h2::before { width: .36em; height: 1.2em; }
.form-head p { margin: 0 0 12px 32px; font-size: .92rem; }
.form .notice { margin-bottom: 14px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; }
.field { margin-bottom: 14px; }
.field label, .field__label { display: block; margin-bottom: 6px; font: 700 .9rem/1.3 var(--font-head); }
.field__req { color: var(--danger); margin-left: 4px; }
.field__opt { margin-left: 6px; font-weight: 400; font-size: .78rem; color: var(--muted); }
.field input, .field select, .field textarea { display: block; width: 100%; min-height: 44px; padding: 8px 14px; border: 1.5px solid #8793a6; border-radius: 4px; background: #fff; color: var(--ink); font-size: .92rem; }
.field textarea { min-height: 96px; resize: vertical; }
.field ::placeholder { color: #5f6b7d; opacity: 1; }
.field [aria-invalid="true"] { border-color: var(--danger); background: #fffafa; }
.field__error { margin: 5px 0 0; color: var(--danger); font-size: .82rem; font-weight: 600; }
.check { display: flex; align-items: flex-start; gap: 14px; font-size: .88rem; line-height: 1.35; }
.check input { width: 22px; height: 22px; min-height: 0; flex: none; margin: 2px 0 0; accent-color: var(--blue); }
.check label { margin: 0; font: inherit; }
.form .btn { margin-top: 16px; min-height: 52px; font-size: 1.2rem; }
.selected-product { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 10px 14px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; }
.map-section { padding-bottom: 32px; }
.map { position: relative; overflow: hidden; min-height: 300px; border: 5px solid #fff; border-radius: 12px; box-shadow: 0 0 0 1px var(--line);
  background:
    linear-gradient(118deg, transparent 0 62%, #8ec5ff 62% 64.5%, transparent 64.5%),
    linear-gradient(8deg, transparent 0 18%, #8ec5ff 18% 21%, transparent 21%),
    linear-gradient(90deg, transparent 0 24%, #fff 24% 25%, transparent 25% 52%, #fff 52% 53.2%, transparent 53.2% 78%, #fff 78% 79%, transparent 79%),
    linear-gradient(0deg, transparent 0 30%, #fff 30% 32%, transparent 32% 62%, #fff 62% 64%, transparent 64%),
    linear-gradient(160deg, transparent 0 40%, #fff 40% 41.2%, transparent 41.2%),
    radial-gradient(circle at 86% 78%, #cfe3c8 0 7%, transparent 7.2%),
    radial-gradient(circle at 52% 8%, #cfe3c8 0 5%, transparent 5.2%),
    #e7ebf0; }
.map__label { position: absolute; left: 0; top: 20px; margin: 0; padding: 8px 56px 8px 28px; background: var(--navy); color: #fff; font: italic 600 1.35rem/1.3 var(--font-head); clip-path: polygon(0 0, 100% 0, calc(100% - 22px) 100%, 0 100%); }
.map__pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -60%); display: flex; flex-direction: column; align-items: center; color: var(--blue); }
.map__pin .icon { width: 56px; height: 56px; }
.map__pin span { padding: 4px 12px; background: #fff; border: 2px solid var(--navy); border-radius: 6px; color: var(--blue); font: 800 1.05rem/1.2 var(--font-head); }
.map__actions { position: absolute; right: 12px; bottom: 18px; }
.map__actions .btn { min-height: 46px; padding: 8px 20px; font-size: 1.05rem; border-width: 2px; border-color: var(--navy); border-radius: 8px; font-weight: 700; }
.map__address { margin: 12px 0 0; font-size: .92rem; color: var(--muted); }

/* ภาษาไทยมีสระและวรรณยุกต์บน-ล่าง ต้องใช้ระยะบรรทัดมากกว่าอักษรโรมัน */
:lang(th) p, :lang(th) li, :lang(th) td, :lang(th) th, :lang(th) label { line-height: 1.6; }
:lang(th) h1, :lang(th) h2, :lang(th) h3 { line-height: 1.32; }
:lang(ja) p, :lang(ja) li { line-height: 1.6; }

/* ================= RESPONSIVE ================= */
/* ---------- hero slider (หน้าแรก) ---------- */
.hero-slider { position: relative; overflow: hidden; background: var(--navy-deep); }
.hero-slider__slide.is-entering { animation: hero-in .9s var(--ease) both; }
.hero-slider__slide.is-entering .band__img { animation: hero-settle 1.4s var(--ease) both; }
@keyframes hero-in { from { opacity: 0; } }
@keyframes hero-settle { from { transform: scale(1.06); } }
.hero-slider__slide[hidden] { display: none; }
.hero-slider:not(.is-ready) .hero-slider__controls { display: none; }
.hero-slider__controls { position: absolute; right: var(--gutter); bottom: 12px; z-index: 2; display: flex; align-items: center; gap: 4px; padding: 2px 6px; border-radius: 28px; background: rgba(5, 26, 54, .72); color: #fff; }
.hero-slider__prev { order: 1; }
.hero-slider__dots { order: 2; display: flex; align-items: center; }
.hero-slider__next { order: 3; }
.hero-slider__prev, .hero-slider__next, .hero-slider__dot { position: relative; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; font: 400 1.9rem/1 var(--font-head); cursor: pointer; }
.hero-slider__prev:hover, .hero-slider__next:hover { background: rgba(255, 255, 255, .16); }
.hero-slider__dot::before { content: ""; position: absolute; top: 50%; left: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border: 2px solid #fff; border-radius: 50%; box-sizing: border-box; transition: background .15s, transform .15s; }
.hero-slider__dot:hover::before { background: rgba(255, 255, 255, .55); }
.hero-slider__dot[aria-current="true"]::before { background: #fff; transform: scale(1.25); }
.hero-slider__prev:focus-visible, .hero-slider__next:focus-visible, .hero-slider__dot:focus-visible { outline: 3px solid var(--sky); outline-offset: 1px; }
@media (max-width: 720px) {
  .hero-slider__controls { right: 50%; transform: translateX(50%); bottom: 8px; }
  .hero-slider.is-ready .band__content { padding-bottom: 76px; }
}
@media (max-width: 1180px) {
  .brand__name { display: none; }
  .site-nav ul { gap: 16px; }
  .site-header__menu { gap: 14px; }
}
@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .brand__name { display: inline; }
  .site-header__menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 8px var(--gutter) 16px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(8, 39, 75, .15); }
  .site-header__menu.is-open { display: flex; }
  /* ไม่มี JS ปุ่มเมนูใช้ไม่ได้ → แสดงเมนูเต็มใต้โลโก้แทน */
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .site-header__inner { flex-wrap: wrap; }
  html:not(.js) .site-header__menu { display: flex; position: static; flex-basis: 100%; box-shadow: none; max-height: none; padding-inline: 0; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { padding: 13px 4px; border-bottom: 1px solid var(--silver); font-size: 1rem; }
  .site-nav a::after { display: none; }
  .site-header__menu { max-height: calc(100vh - var(--header-h)); overflow-y: auto; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--silver); box-shadow: inset 4px 0 0 var(--blue); padding-left: 14px; }
  .lang-switch { padding-top: 10px; }
  .lang-switch a { padding: 14px 12px; font-size: .95rem; }

  .site-footer__inner { flex-wrap: wrap; gap: 16px 28px; }
  .site-footer__item { padding-left: 0; border-left: 0; }
  .cap-grid, .process { grid-template-columns: repeat(2, 1fr); }
  .process { gap: 20px; }
  .step-card + .step-card::before { display: none; }
  .std-grid { grid-template-columns: 1fr; }
  .product-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .policies { grid-template-columns: 1fr; }
  .policies__head { clip-path: none; padding: 20px 28px; }
  .policies__list { padding: 6px 20px; }
  .policies__list .icon { margin-left: 0; }
  .steps-inquiry { grid-template-columns: 1fr; }
  .steps-inquiry__steps { padding: 0 0 20px; border-right: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .job-row { grid-template-columns: 60px 150px 1fr auto; padding-inline: 12px 16px; }
  .job-row p { padding-left: 20px; }
  .value-trio { grid-template-columns: 1fr; max-width: 520px; }
  .cta-band__inner { gap: 24px; }
  .cta-band p { padding-left: 24px; }
  .band__inner { max-width: 52%; }
  .band--left .band__inner { max-width: 36%; }
  .boi-panel__inner { grid-template-columns: 240px 1fr; gap: 20px; }
  .boi-panel h2 { padding-left: 48px; }
  .boi-panel h2::before { left: 14px; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .brand__name { display: none; }
  .brand__mark { font-size: 1.6rem; }
  .btn--outline, .text-link { min-height: 44px; }
  .section { padding-block: 22px; }

  .band { min-height: 0; }
  .band__img { width: 100%; }
  .band::before { display: none; }
  .band__panel, .band--left .band__panel { inset: 0; width: 100%; clip-path: none; opacity: .86; }
  .band__inner, .band--left .band__inner { max-width: none; margin: 0; }
  .band--home { min-height: 420px; }
  .band--home .band__panel { background: linear-gradient(180deg, rgba(4, 20, 45, .9), rgba(10, 34, 69, .7)); opacity: 1; }
  .band__lead { font-size: 1.05rem; }
  .photo-cta .band__img, .inquiry-band .band__img { width: 100%; }
  .inquiry-band h2 { margin-left: 0; }

  .intro, .overview, .video, .feature-row, .featured, .detail__grid { grid-template-columns: 1fr; }
  .intro { gap: 20px; padding: 32px 0 16px; }
  .video { padding-block: 32px; }
  .cta-band__inner { padding-block: 32px; }
  .site-footer__inner { padding-block: 28px; }
  .band__inner, .band--left .band__inner { padding-left: 0; }
  .std-card h3 { white-space: normal; }
  .intro__text { padding-top: 8px; }
  .cat-grid, .value-grid, .product-grid, .news-grid { grid-template-columns: 1fr; }
  .standards li { width: 100%; padding: 4px 16px; text-align: center; font-size: 1.15rem; }
    .video { gap: 16px; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .cta-band p { padding: 0; border: 0; }
  .cta-band .btn { margin-left: 14px; }
  .cta-band__icon { display: none; }
  .profile-table th, .profile-table td { display: block; width: 100%; padding: 8px 16px; }
  .profile-table th { border-bottom: 0; padding-bottom: 2px; }
  .spec-table th, .spec-table td { display: block; width: 100%; }
  .spec-table th { border-bottom: 0; padding-bottom: 2px; }
  .boi-panel__inner { grid-template-columns: 1fr; gap: 12px; }
  .boi-panel p { padding: 0; border: 0; font-size: 1rem; }
  .lead-block::after { display: none; }
  .lead-block p { margin-left: 0; }
  .cap-card__label { padding-left: 14px; font-size: .95rem; }
  .feature-row__img { clip-path: none; }
  .feature-row__text { padding: 18px 16px; }
  .feature-row__text > div { padding-left: 16px; }
  .std-card { grid-template-columns: 64px 1fr; gap: 14px; padding: 16px; }
  .std-card__icon { width: 52px; height: 52px; }
  .std-card__body { padding-left: 14px; }
  .policies__head .icon { width: 44px; height: 44px; }
  .policies__head h2 { font-size: 1.4rem; padding-left: 18px; }
  .policies__list li { flex-wrap: wrap; gap: 10px 14px; font-size: 1.05rem; }
  .policies__list .btn { margin-left: 48px; }
  .tabs { gap: 8px 14px; padding-inline: 8px; }
  .tabs a { padding: 8px 22px; font-size: 1rem; }
  .featured__body { padding: 20px 16px; }
  .featured .btn { margin-left: 14px; }
  .pagination ul { gap: 10px; }
  .careers-intro__lead { max-width: none; }
  .opps-head h2 { padding-right: 44px; }
  .opps-head__note { padding: 7px 26px; margin-inline: var(--gutter); font-size: .85rem; }
  .job-row { grid-template-columns: 48px 1fr; gap: 6px 10px; padding: 12px 14px; }
  .job-row p { grid-column: 1 / -1; padding: 0; border: 0; }
  .job-row .btn { grid-column: 1 / -1; justify-self: start; }
  .steps { grid-template-columns: 1fr; padding-inline: 0; gap: 22px; }
  .steps li + li::before { display: none; }
  .inquiry-box { padding-left: 20px; }
  .inquiry-box__phone { margin-left: -8px; padding-inline: 26px 30px; }
  .contact-grid { gap: 24px; padding-block: 22px; }
  .contact-card__body { padding: 20px 18px 24px; }
  .contact-card__row { font-size: 1.05rem; gap: 14px; }
  .contact-card__row .icon { width: 28px; height: 28px; }
  .contact-card__hint { margin-left: 42px; }
  .form__grid { grid-template-columns: 1fr; }
  .form-head p { margin-left: 0; }
  .map { min-height: 260px; }
  .map__label { font-size: 1rem; padding: 6px 40px 6px 16px; top: 12px; }
  .site-footer::after { display: none; }
  .site-footer__brand { flex-wrap: wrap; gap: 8px 16px; }
  .site-footer__name { padding-left: 16px; white-space: normal; }
  .not-found { padding-block: 40px; }
}
@media (max-width: 420px) {
  .cap-grid, .process { grid-template-columns: 1fr; }
  .tabs a { padding-inline: 16px; }
  .dialog__body { padding: 20px 18px; }
}
/* ---------- ส่วนประกอบร่วมแบบใหม่: การ์ด เงา มุมโค้ง hover (ไม่ตั้งค่า layout เพื่อไม่ชนกับ media query ด้านบน) ---------- */
.value-card, .cap-card, .step-card, .std-card, .product-card, .news-card, .featured, .job-row, .contact-card, .inquiry-box, .policies, .empty-state {
  border-radius: var(--radius-lg);
}
.value-card, .cap-card, .step-card, .std-card, .product-card, .news-card, .job-row { box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .2s; }
.contact-card, .featured, .policies { box-shadow: var(--shadow-sm); }
.value-card:hover, .cap-card:hover, .step-card:hover, .std-card:hover, .product-card:hover, .news-card:hover, .job-row:hover,
.product-card:focus-within, .news-card:focus-within { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.product-card, .news-card, .std-card, .step-card, .job-row { border-color: var(--silver); }
.product-card { padding: 8px 8px 18px; overflow: hidden; }
.news-card img, .cap-card img, .value-card img { transition: transform .6s var(--ease); }
.news-card:hover img, .cap-card:hover img, .value-card:hover img { transform: scale(1.05); }
.product-card img { border-radius: calc(var(--radius-lg) - 8px); }
.field input, .field select, .field textarea { border-radius: 10px; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(26, 108, 240, .18); outline: none; }
.dialog { border-radius: var(--radius-lg); }
.pills a, .pagination a, .pagination span { transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.pills a:hover, .pagination a:hover { transform: translateY(-1px); }
.profile-table, .spec-table { border-radius: var(--radius); }
.detail__img, .article__img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border-color: var(--silver); }
.detail h1 { letter-spacing: -.02em; }
.not-found__code { font-size: clamp(5rem, 14vw, 9rem); background: linear-gradient(100deg, var(--silver), #c9d8ef); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notice { border-radius: 10px; }
@media (hover: none) {
  .value-card:hover, .cap-card:hover, .step-card:hover, .std-card:hover, .product-card:hover, .news-card:hover, .job-row:hover { transform: none; }
}

/* ---------- แถบหัวหน้า (band) และจังหวะระยะห่างของหน้าย่อย ---------- */
.band .band__inner > * { animation: rise .8s var(--ease) backwards; }
.band .band__inner > :nth-child(2) { animation-delay: .1s; }
.band .band__inner > :nth-child(3) { animation-delay: .18s; }
.band .band__inner > :nth-child(4) { animation-delay: .26s; }
.band h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.band__panel { background: linear-gradient(115deg, rgba(4, 20, 45, .96) 0%, #0a2f66 100%); }
.value-grid, .std-grid, .cap-grid { gap: 20px; }
.news-grid, .product-grid { gap: 26px 24px; }
.job-list { gap: 12px; }
.eyebrow { margin-bottom: 22px; }
@media (min-width: 721px) {
  .band { min-height: 260px; }
  .band--tall { min-height: 320px; }
  .overview { gap: 48px; padding-block: 56px 28px; }
  .section { padding-block: 40px; }
  .boi-panel, .photo-cta, .policies, .feature-row, .featured { margin-top: 44px; }
}

/* ---------- layout เฉพาะหน้า: about / manufacturing / quality / careers ---------- */
/* about */
.overview__img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.overview h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.profile-table { border-collapse: separate; border-spacing: 0; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.profile-table th, .profile-table td { padding: 14px 28px; }
.profile-table tr:nth-child(even) td { background: var(--surface); }
.boi-panel { margin-top: 56px; background: none; }
.boi-panel::after { display: none; }
.boi-panel__inner { background: linear-gradient(100deg, var(--navy-deep), #0a3f9f); color: #fff; border-radius: 20px; padding: 36px 44px; box-shadow: var(--shadow-md); }
.boi-panel h2::before { background: var(--sky); }
.boi-panel p { border-left-color: rgba(255, 255, 255, .5); }
/* manufacturing */
.lead-block p { max-width: 640px; font-size: 1.12rem; }
.cap-grid { width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; }
.step-card { overflow: hidden; padding: 0 0 18px; }
.step-card__head { margin: 0; padding: 16px 16px 14px 26px; }
.step-card p { margin: 12px 18px 0; font-size: .9rem; }
.step-card img { border-radius: 0; }
/* quality */
.feature-row { overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--silver); }
.feature-row--reverse .feature-row__img { order: 2; clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%); }
.feature-row--reverse .feature-row__text { padding: 18px 46px 18px 30px; }
.policies { border-radius: var(--radius-lg); }
/* careers */
.value-item { padding: 14px; background: #fff; border: 1px solid var(--silver); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.value-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.job-row { padding-block: 10px; }
.steps__icon { transition: transform .35s var(--ease); }
.steps li:hover .steps__icon { transform: scale(1.08); }
@media (min-width: 721px) {
  .overview__img { aspect-ratio: 580 / 340; }
  .feature-row + .feature-row { margin-top: 24px; }
}
@media (max-width: 720px) {
  .boi-panel__inner { padding: 26px 22px; border-radius: 16px; }
  .feature-row--reverse .feature-row__img { order: 0; clip-path: none; }
  .feature-row--reverse .feature-row__text { padding: 18px 16px; }
  .profile-table th, .profile-table td { padding: 8px 16px; }
}
@media (min-width: 721px) and (max-width: 1000px) {
  /* การ์ดแคบ: วางไอคอนไว้เหนือข้อความ ไม่ให้คำยาว (เช่น Responsibility) ล้นการ์ด */
  .value-card__body { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px 40px 18px 22px; }
  .value-card__text { padding-left: 0; border-left: 0; }
  .value-card h3 { font-size: 1.3rem; overflow-wrap: anywhere; }
}
@media (hover: none) { .value-item:hover { transform: none; } }

/* ---------- scroll reveal (JS เติม .reveal; ไม่มี JS → ไม่ซ่อนอะไร) ---------- */
/* ใช้ property `translate` (แยกจาก `transform`) เพื่อไม่ทับ hover lift ของการ์ด */
.js .reveal { opacity: 0; translate: 0 18px; }
.js .reveal.is-visible { opacity: 1; translate: none; animation: reveal-in .6s var(--ease) var(--reveal-delay, 0ms) backwards; }
@keyframes reveal-in { from { opacity: 0; translate: 0 18px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; translate: none; }
}

/* ===== ข่าว: เนื้อหา rich text, แท็ก, ค้นหา, แกลเลอรี ===== */
.article__body { margin-block: 12px 24px; overflow-wrap: anywhere; }
.article__body h2 { margin: 1.6em 0 .5em; font-size: 1.4rem; }
.article__body h3 { margin: 1.4em 0 .4em; font-size: 1.15rem; }
.article__body p { margin: 0 0 1em; }
.article__body ul, .article__body ol { margin: 0 0 1em; padding-left: 1.5em; }
.article__body blockquote { margin: 0 0 1em; padding: 4px 0 4px 16px; border-left: 4px solid var(--blue); color: var(--muted); }
.article__body a { color: var(--blue); text-decoration: underline; }
.article__body img { display: block; max-width: 100%; height: auto; margin: 1em 0; border-radius: var(--radius); }
.tag-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; }
.tag-chip { display: inline-flex; align-items: center; min-height: 32px; padding: 2px 14px; border: 1px solid #9aa7ba; border-radius: 99px; background: #fff; color: var(--ink); font-size: .85rem; text-decoration: none; }
.tag-chip:hover, .tag-chip[aria-current="true"] { border-color: var(--blue); background: var(--blue); color: #fff; }
nav.tag-chips { margin: 0 0 8px; }
.news-search { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-block: 8px 4px; }
.news-search label { font-weight: 600; }
.news-search input[type="search"] { flex: 1 1 220px; min-width: 0; min-height: 44px; padding: 4px 14px; border: 1.5px solid #9aa7ba; border-radius: 99px; font: inherit; }
.news-search .btn { min-height: 44px; }
.news-search__status { margin: 4px 0 12px; color: var(--muted); overflow-wrap: anywhere; }
.news-rss { margin: 0 0 12px; font-size: .9rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 24px; padding: 0; list-style: none; }
.gallery-grid img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
@media (max-width: 720px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
