:root {
  --ink: #1b3e51;
  --ink-soft: #234b61;
  --mist: #eef3f6;
  --line: #d5e0e6;
  --brand-red: #c1272d;
  --brand-red-deep: #a51f24;
  --sky: #2f6f8f;
  --text: #1a2433;
  --muted: #667789;
  --row-alt: #f2f7fa;
  --shadow: 0 18px 50px rgba(27, 62, 81, 0.1);
  --radius: 16px;
  --font-display: "Manrope", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "Manrope", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  background:
    radial-gradient(1100px 480px at 8% -8%, rgba(193, 39, 45, 0.08), transparent 55%),
    radial-gradient(900px 420px at 92% 0%, rgba(27, 62, 81, 0.12), transparent 50%),
    linear-gradient(180deg, #e8eef3 0%, var(--mist) 42%, #e3ebf1 100%);
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(27, 62, 81, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 62, 81, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 20%, #000 20%, transparent 75%);
}

.page {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 40px;
  animation: rise 0.55s ease-out;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 24px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(213, 224, 230, 0.95);
  box-shadow: var(--shadow);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.brand-logo {
  height: 64px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.brand-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: var(--ink);
}

.brand-en {
  margin: 6px 0 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.header-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.pill {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--ink);
}

.today {
  font-size: 13px;
  color: var(--muted);
}

.intro {
  margin: 22px 4px 14px;
}

.intro-kicker {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
}

.intro-text {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.search-card,
.result-card {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(213, 224, 230, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.search-card {
  padding: 18px 20px;
}

.search-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 14px;
  align-items: end;
}

.search-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.search-form select {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-form select:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(47, 111, 143, 0.16);
}

.btn-search {
  height: 42px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-deep));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-search:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.result-card {
  margin-top: 16px;
  overflow: hidden;
}

.result-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--line);
}

.result-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

.result-head p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
}

.rate-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  min-width: 1080px;
}

.rate-table thead th {
  position: sticky;
  top: 0;
  background: var(--ink);
  color: #f4f7fb;
  padding: 12px 10px;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 3px solid var(--brand-red);
}

.rate-table tbody td {
  padding: 11px 10px;
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px solid #e6edf4;
  background: #fff;
}

.rate-table tbody tr:nth-child(even) td {
  background: var(--row-alt);
}

.rate-table tbody tr:hover td {
  background: #e8f2f7;
}

.rate-table .empty {
  padding: 36px 16px;
  color: var(--muted);
  background: #fff !important;
}

.rate-table .remark {
  text-align: left;
  max-width: 180px;
  word-break: break-word;
  white-space: normal;
  color: var(--muted);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 0 6px;
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .page { width: calc(100% - 20px); margin: 14px auto 28px; }
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }
  .brand-block { width: 100%; }
  .brand-logo { height: 52px; max-width: 150px; }
  .header-meta { align-items: flex-start; }
  .search-form { grid-template-columns: 1fr; }
  .btn-search { width: 100%; }
  .footer { flex-direction: column; }
}
