:root {
  --header-height: 76px;
  --navy: #102d3d;
  --deep: #042532;
  --cream: #f5f3ee;
  --gold: #8c5a26;
  --light-gold: #f2ca85;
  --muted: #4d626e;
  --line: #d5d9da;
  --serif: "Noto Serif CJK JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}
html[lang="zh-TW"] {
  --serif: "Noto Serif TC", "Noto Serif CJK TC", "Songti TC", PMingLiU, serif;
  --sans: "Noto Sans TC", "Noto Sans CJK TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}
html[lang="zh-CN"] {
  --serif: "Noto Serif SC", "Noto Serif CJK SC", "Songti SC", SimSun, serif;
  --sans: "Noto Sans SC", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--navy);
  background: #fff;
  font: 1rem/1.75 var(--sans);
}
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #a87134; outline-offset: 3px; }
.container { width: min(84%, 1120px); margin-inline: auto; }
.site-header { position: relative; z-index: 5; background: #fff; }
.home-page > .site-header { position: sticky; top: 0; }
.home-page main > section[id] { scroll-margin-top: var(--home-header-offset, var(--header-height)); }
.header-inner {
  width: min(calc(100% - 3rem), 1300px);
  min-height: var(--header-height);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 2vw, 2.6rem);
}
.brand {
  color: var(--navy);
  font: 700 clamp(1.13rem, 2.03vw, 1.75rem)/1.3 var(--serif);
  text-decoration: none;
  white-space: nowrap;
}
html[lang="en"] .brand { font-size: clamp(1.1rem, 1.75vw, 1.55rem); }
.primary-nav, .footer-inner nav {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2.1vw, 2.1rem);
}
.primary-nav { margin-left: auto; }
.primary-nav a, .footer-inner a {
  font-size: 0.875rem;
  text-decoration: none;
  white-space: nowrap;
}
.primary-nav a { font-weight: 700; }
.primary-nav a:hover, .site-footer a:hover { text-decoration: underline; }
.menu-toggle { display: none; }
.language-switcher { position: relative; flex: none; }
.language-button {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.65rem;
  color: var(--navy);
  background: #fff;
  border: 1px solid #7b8b94;
  border-radius: 3px;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 700;
}
.language-chevron {
  width: 0.38rem;
  height: 0.38rem;
  margin-top: -0.18rem;
  border-right: 1.5px solid;
  border-bottom: 1.5px solid;
  transform: rotate(45deg);
}
.language-globe {
  position: relative;
  display: block;
  width: 0.94rem;
  height: 0.94rem;
  border: 1.5px solid;
  border-radius: 50%;
}
.language-globe::before, .language-globe::after { position: absolute; inset: 0; content: ""; }
.language-globe::before { inset-inline: 3px; border-inline: 1px solid; border-radius: 50%; }
.language-globe::after { inset-block: 3px; border-block: 1px solid; }
.language-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  width: 12rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 8px 20px #102d3d20;
}
.language-menu p { margin: 0.6rem 0 0.18rem; color: var(--muted); font-size: 0.8125rem; }
.language-menu p:first-child { margin-top: 0; }
.language-menu ul { margin: 0; padding: 0; list-style: none; font-size: 0.9375rem; }
.available-languages li { padding-block: 0.2rem; }
.available-languages a { text-decoration: none; }
.available-languages a:hover { color: var(--gold); }
.language-menu [aria-current] { font-weight: 700; }
html:is([lang="th"], [lang="mn"]) body { overflow-wrap: anywhere; }
html:is([lang="th"], [lang="mn"]) .header-inner .brand { white-space: normal; }
html:is([lang="th"], [lang="mn"]) .hero h1 {
  font-size: clamp(1.75rem, 3.4vw, 3rem);
}

.hero, .contact-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--deep);
  color: #fff;
}
.hero {
  display: grid;
  align-items: center;
  min-height: clamp(330px, 30vw, 445px);
  background: linear-gradient(105deg, var(--deep) 46%, #073b48);
}
.hero-photo {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 auto;
  display: block;
  width: min(57%, 1050px);
  height: 100%;
  object-fit: cover;
  object-position: center 49%;
  mask-image: linear-gradient(90deg, transparent, #000 17%);
}
.hero::after, .contact-banner::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, var(--deep) 11%, #042532d9 32%, #0425320a 54%, transparent 72%);
  content: "";
}
.hero-content { padding-block: clamp(2rem, 4vw, 3.5rem); }
.hero-kicker, .eyebrow {
  margin: 0 0 0.35rem;
  color: var(--gold);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.10em;
}
.hero-kicker, .services .eyebrow, .contact-banner .eyebrow { color: var(--light-gold); }
.hero h1, .section h2, .contact-banner h1, .contact-cta h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.025em;
}
.hero h1 { max-width: min(34rem, 48vw); margin: 0.45rem 0 0.9rem; font-size: clamp(2.4rem, 4.7vw, 4.1rem); line-height: 1.16; }
html[lang="en"] .hero h1 { font-size: clamp(2.05rem, 4.5vw, 3.6rem); }
.hero-text { max-width: min(27rem, 42vw); margin: 0 0 1.3rem; font-weight: 500; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1.6rem;
  border: 0;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
}
.button-gold { background: #f3d39f; color: var(--deep); }
.button-navy { background: var(--deep); color: #fff; }
.button:hover { filter: brightness(1.12); }
.button:disabled { opacity: 0.55; cursor: default; }

.section { padding-block: clamp(1.65rem, 3.4vw, 3rem); }
.section h2, .contact-cta h2 { font-size: clamp(1.75rem, 3.2vw, 2.65rem); line-height: 1.35; }
.section-cream, .company { background: var(--cream); }
.history > .container, .services > .container, .company > .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.25rem);
}
.history-body { margin: 0.75rem 0 0; }
.history-year {
  display: grid;
  gap: 0.4rem;
  border-left: 1px solid #aa8050;
  padding-inline-start: clamp(1.1rem, 3.6vw, 2.75rem);
  color: var(--gold);
}
.history-year strong { font: 700 clamp(2.5rem, 4.3vw, 4rem)/1.13 var(--serif); }
.history-year span { font-family: var(--serif); font-weight: 700; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0.8rem;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: #fafbfb;
}
.product-grid article {
  padding: 0.6rem 1.1rem 0.65rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.product-grid h3, .service-list h3 { margin: 0; font-size: 1.0625rem; line-height: 1.45; }
.product-grid p, .service-list p { margin: 0.08rem 0 0; color: var(--muted); }
.services { background: var(--deep); color: #fff; }
.services > .container, .company > .container {
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
}
.service-list { border-left: 1px solid #83a0ac; padding-inline-start: clamp(1.25rem, 3vw, 2.75rem); }
.service-list article + article { border-top: 1px solid #68838f; margin-top: 0.48rem; padding-top: 0.48rem; }
.service-list p { color: #e1ebef; }
.service-strength { border-top: 1px solid #68838f; margin-top: 1rem; padding-top: 1rem; }
.service-strength p + p { margin-top: 0.6rem; }
.profile-table { margin: 0; }
.profile-table > div {
  display: grid;
  grid-template-columns: 25% minmax(0, 1fr);
  gap: 0.65rem;
  border-bottom: 1px solid var(--line);
  padding-block: 0.37rem;
}
html[lang="en"] .profile-table > div { grid-template-columns: minmax(6rem, 34%) minmax(0, 1fr); }
.profile-table dt { color: var(--muted); }
.profile-table dd { margin: 0; font-weight: 600; }
.greeting { margin-top: 0.75rem; }
.greeting summary { cursor: pointer; font-weight: 700; }
.greeting p { margin: 0.45rem 0 0; color: var(--muted); }

.contact-cta { padding-block: clamp(1.7rem, 3.4vw, 3rem); background: #edf4f8; }
.contact-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.contact-cta p:not(.eyebrow) { max-width: 32rem; margin: 0.55rem 0 0; }
.contact-cta .button { flex: none; min-width: min(100%, 270px); }
.site-footer { padding-block: 1.6rem; background: var(--navy); color: #fff; }
.footer-inner {
  width: min(calc(100% - 3rem), 1300px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.1rem;
}
.footer-inner strong { flex: none; font: 700 1.06rem var(--serif); }
.footer-inner nav { flex-wrap: wrap; gap: 0.4rem clamp(0.8rem, 1.7vw, 1.6rem); }
.to-top { border-left: 1px solid #8aa0a9; padding-left: 1rem; }

.contact-banner {
  display: grid;
  align-items: center;
  min-height: clamp(185px, 24vw, 310px);
  background: #0d3e58 url('../assets/images/container-port.webp') center 58% / cover no-repeat;
}
.contact-banner::after {
  background: linear-gradient(90deg, #073951e8 0%, #0a3c55aa 36%, #0c3c550d 72%);
}
.contact-banner h1 { font-size: clamp(2.15rem, 5.35vw, 4.1rem); line-height: 1.27; }
.contact-banner .eyebrow { margin: 0.6rem 0 0 0.1rem; letter-spacing: 0.25em; }
.breadcrumb { display: flex; gap: 0.7rem; margin: 0.9rem 0; font-size: 0.875rem; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.contact-page-content { max-width: 1050px; margin: clamp(1.7rem, 4.2vw, 3.5rem) auto clamp(2.5rem, 6vw, 5rem); }
.form-intro { margin: 0 0 clamp(1.35rem, 3vw, 2.4rem); text-align: center; font-size: clamp(1rem, 1.65vw, 1.23rem); font-weight: 600; }
.contact-pause-notice {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border-inline-start: 3px solid var(--gold);
  background: var(--cream);
  font-weight: 600;
}
.form-fields { padding: clamp(1rem, 3vw, 2rem); background: #f3f5f6; }
.field {
  display: grid;
  grid-template-columns: minmax(195px, 28%) minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
}
.field + .field { margin-top: 0.9rem; }
.field > label { padding-top: 0.55rem; font-weight: 700; }
.required {
  margin-inline-start: 0.3rem;
  padding: 0.12rem 0.38rem;
  border-radius: 3px;
  background: #b40e14;
  color: #fff;
  font-size: 0.75rem;
  white-space: nowrap;
}
.field input, .field textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0.48rem 0.85rem;
  border: 1px solid #b3bfc5;
  border-radius: 4px;
  background: #fff;
  color: var(--navy);
}
.field textarea { min-height: 130px; resize: vertical; }
.field [aria-invalid="true"] { border-color: #b31823; }
.field-error { margin: 0.3rem 0 0; color: #a51722; font-size: 0.875rem; }
.field-error:empty { display: none; }
.form-actions { margin-top: clamp(1.3rem, 3.5vw, 2.55rem); text-align: center; }
.turnstile-widget { width: min(100%, 390px); margin: 0 auto 1rem; }
.send-button { width: min(100%, 390px); min-height: 54px; }

dialog {
  width: min(calc(100% - 2rem), 520px);
  max-height: calc(100% - 2rem);
  padding: 0;
  border: 0;
  border-radius: 13px;
  background: #fff;
  color: var(--navy);
  box-shadow: 0 10px 45px #071c3038;
}
dialog::backdrop { background: #071a2ab0; backdrop-filter: blur(3px); }
.dialog-inner { position: relative; padding: clamp(1.5rem, 5vw, 2.5rem); text-align: center; }
.dialog-close {
  position: absolute;
  top: 0.5rem;
  right: 0.55rem;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--navy);
  font-size: 1.6rem;
  line-height: 1;
}
.dialog-status {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 0.8rem;
  border-radius: 50%;
  background: #22983f;
}
.dialog-status::before {
  width: 23px;
  height: 12px;
  border: solid white;
  border-width: 0 0 4px 4px;
  transform: translateY(-2px) rotate(-45deg);
  content: "";
}
[data-demo-state="failure"] .dialog-status { border: 3px solid #bb1521; background: transparent; }
[data-demo-state="failure"] .dialog-status::before {
  width: auto;
  height: auto;
  border: 0;
  transform: none;
  color: #bb1521;
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1;
  content: "!";
}
.dialog-inner h2 { margin: 0 0 0.7rem; font-size: clamp(1.22rem, 4vw, 1.55rem); }
.dialog-inner p { margin: 0; }
.dialog-ok { min-width: 170px; margin-top: 1.25rem; }

@media (max-width: 960px) {
  :root { --header-height: 68px; }
  .header-inner { flex-wrap: wrap; justify-content: initial; gap: 0.5rem; padding-block: 0.8rem; }
  .brand { flex: 1; }
  .language-switcher { order: 1; }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0;
    order: 2;
    border: 0;
    background: transparent;
  }
  .menu-toggle span { width: 24px; height: 2px; background: var(--navy); }
  .primary-nav { display: none; flex-basis: 100%; margin: 0; order: 3; }
  .primary-nav.is-open { display: flex; flex-wrap: wrap; gap: 0.5rem 1.3rem; }
  .primary-nav a { padding: 0.45rem 0.15rem; }
  .footer-inner { flex-wrap: wrap; }
}
@media (max-width: 660px) {
  .container { width: calc(100% - 2.2rem); }
  .header-inner { width: calc(100% - 1.2rem); gap: 0.3rem; }
  .brand { font-size: clamp(1rem, 4.6vw, 1.25rem); }
  html[lang="en"] .brand {
    min-width: 0;
    font-size: clamp(0.95rem, 3.35vw, 1.25rem);
    white-space: normal;
  }
  html[lang="en"] .hero h1 { font-size: clamp(1.8rem, 8.1vw, 2.65rem); }
  .language-button { gap: 0.3rem; padding-inline: 0.4rem; }
  .language-globe { width: 0.8rem; height: 0.8rem; }
  .primary-nav.is-open { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav a { padding-block: 0.6rem; }
  .hero {
    min-height: clamp(27rem, 114vw, 35rem);
    background: var(--deep);
  }
  .hero-photo { width: 100%; mask-image: none; }
  .hero::after {
    background:
      linear-gradient(90deg, #061e2cd9, #061e2c92 58%, #061e2c55),
      linear-gradient(0deg, #061e2c5c, transparent 60%);
  }
  .hero-content { padding-block: 3.25rem; }
  .hero h1 { max-width: none; }
  .hero-text { max-width: 27rem; font-weight: 400; }
  .section { padding-block: 2.2rem; }
  .history > .container, .services > .container, .company > .container { grid-template-columns: 1fr; gap: 1.2rem; }
  .product-grid article { padding-inline: 0.65rem; }
  .product-grid h3 { font-size: 1rem; }
  .service-list { padding-inline-start: 0.95rem; }
  .contact-cta-inner { flex-direction: column; align-items: start; gap: 1.2rem; }
  .footer-inner { flex-direction: column; align-items: start; }
  .to-top { border-left: 0; padding-left: 0; }
  .contact-banner { background-position: 58% center; }
  .form-intro br { display: none; }
  .field { grid-template-columns: 1fr; gap: 0.4rem; }
  .field > label { padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
