@font-face {
  font-family: "Kanit";
  src: url("fonts/Kanit-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Kanit";
  src: url("fonts/Kanit-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

:root {
  --navy: #003366;
  --navy-dark: #00264d;
  --gold: #ffcc66;
  --ink: #1f2933;
  --muted: #52606d;
  --line: #e4e7eb;
  --bg: #f5f7fa;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Kanit", "Leelawadee UI", "Tahoma", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

a {
  color: var(--navy);
}

a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  background: var(--navy);
  color: #fff;
  border-bottom: 4px solid var(--gold);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.site-header img {
  width: 72px;
  height: 72px;
  flex: none;
}

.brand-th {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.3;
}

.brand-en {
  margin: 0;
  font-size: 0.95rem;
  color: var(--gold);
}

.notice {
  background: #fff8e6;
  border-bottom: 1px solid #f3d79b;
}

.notice .wrap {
  padding-top: 14px;
  padding-bottom: 14px;
}

.notice p {
  margin: 0;
}

.notice strong {
  font-weight: 500;
}

main.wrap {
  padding-top: 32px;
  padding-bottom: 48px;
}

h2 {
  margin: 0 0 16px;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--navy);
}

section + section {
  margin-top: 36px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.card {
  display: block;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
}

a.card:hover {
  border-color: var(--navy);
  box-shadow: 0 2px 8px rgba(0, 51, 102, 0.12);
}

.card-title {
  display: block;
  font-weight: 500;
  color: var(--navy);
}

.card-sub {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
}

.contact {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
}

.contact p {
  margin: 0 0 6px;
}

.site-footer {
  background: var(--navy-dark);
  color: #cbd2d9;
  font-size: 0.9rem;
}

.site-footer .wrap {
  padding-top: 18px;
  padding-bottom: 18px;
}

.site-footer a {
  color: #fff;
}

.site-footer p {
  margin: 0 0 4px;
}

.maint {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 20px 64px;
  text-align: center;
}

.maint-box {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: 8px;
  padding: 32px 24px;
}

.maint h1 {
  margin: 0 0 12px;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--navy);
}

.maint p {
  margin: 0 0 12px;
}

.maint .en {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.from-host {
  font-weight: 500;
  word-break: break-all;
}

.btn {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 22px;
  background: var(--navy);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
}

.btn:hover {
  background: var(--navy-dark);
}

@media (max-width: 560px) {
  .site-header img {
    width: 56px;
    height: 56px;
  }

  .brand-th {
    font-size: 1.2rem;
  }
}
