:root {
  --ink: #1f2522;
  --muted: #68716b;
  --line: #c7cec9;
  --soft: #f4f7f2;
  --panel: #ffffff;
  --band: #edf3e8;
  --accent: #2f5c44;
  --accent-2: #d5b73f;
  --danger-soft: #fff6d6;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: #e8ece7;
  color: var(--ink);
}

body {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: 0;
}

a {
  color: #0d5a72;
  text-decoration: underline;
}

button,
input {
  font: inherit;
}

.top-strip {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px clamp(12px, 4vw, 38px);
  background: var(--ink);
  color: #fff;
}

.top-strip a,
.top-strip button {
  color: #fff;
}

.customer-links,
.utility-links,
.local-links,
.site-footer nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.utility-links button,
.footer-actions button,
.primary-action,
.secondary-action,
[data-vote-button] {
  border: 1px solid var(--ink);
  background: #fff;
  color: var(--ink);
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 0;
  cursor: pointer;
}

.utility-links button {
  min-height: 28px;
  padding: 2px 8px;
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.tracking-shell {
  max-width: 1080px;
  margin: 0 auto;
  background: var(--panel);
  min-height: 100vh;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.brand-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  padding: 22px clamp(14px, 4vw, 36px) 16px;
  align-items: center;
  border-bottom: 4px solid var(--accent-2);
  background: linear-gradient(90deg, #fff 0%, #fff 62%, #f1f5ec 100%);
}

.mark-wrap {
  border: 2px solid var(--accent);
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  background: #fff;
}

.service-kicker {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 13px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.2;
  font-weight: 700;
}

h2 {
  font-size: 20px;
  line-height: 1.35;
  margin-bottom: 10px;
  border-left: 7px solid var(--accent);
  padding-left: 10px;
}

h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.local-links {
  padding: 9px clamp(14px, 4vw, 36px);
  border-bottom: 1px solid var(--line);
  background: var(--band);
}

.inquiry-panel,
.result-panel,
.notice-panel,
.caution-panel {
  padding: 18px clamp(14px, 4vw, 36px);
  border-bottom: 1px solid var(--line);
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.native-note {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 4px 8px;
  align-self: flex-start;
}

.input-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.code-cell {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.code-cell span {
  font-size: 12px;
  color: var(--muted);
}

.code-cell input {
  width: 100%;
  border: 1px solid #9ca8a0;
  min-height: 34px;
  padding: 5px 8px;
  background: #fdfdfb;
}

.code-cell.muted {
  background: #f8faf6;
}

.button-row,
.footer-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.primary-action,
[data-vote-button] {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.status-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin-bottom: 14px;
}

.status-table caption {
  text-align: left;
  font-weight: 700;
  padding: 7px 0;
}

.status-table th,
.status-table td {
  border: 1px solid var(--line);
  padding: 8px 9px;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.status-table th {
  background: #e7efe3;
  text-align: left;
}

.status-table .spam-row {
  background: var(--danger-soft);
}

.status-table .spam-row.is-kept {
  background: #e4f2e8;
}

.state-label {
  display: inline-block;
  border: 1px solid var(--accent);
  padding: 1px 7px;
  background: #fff;
}

.subtext {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.result-grid {
  display: grid;
  grid-template-columns: minmax(230px, 320px) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.tracking-figure {
  border: 1px solid var(--line);
  margin: 0;
  padding: 12px;
  background: #fbfcfa;
}

.tracking-figure img {
  max-width: 100%;
  height: auto;
  display: block;
}

.tracking-figure figcaption {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

.hold-card {
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px;
}

.vote-widget-box {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.vote-status {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.notice-list {
  margin: 0;
  padding-left: 1.4em;
}

.notice-list li {
  margin: 0 0 6px;
}

.caution-panel {
  background: #fbfbf5;
}

.site-footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px clamp(14px, 4vw, 36px) 28px;
  border: 1px solid var(--line);
  border-top: 0;
  background: #f8faf6;
  color: var(--muted);
  font-size: 13px;
}

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

body[data-lang="en"] {
  font-family: "Verdana", "Tahoma", sans-serif;
}

@media (max-width: 740px) {
  .brand-row,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .mark-wrap {
    width: 72px;
    height: 72px;
  }

  .input-grid {
    grid-template-columns: 1fr;
  }

  .status-table,
  .status-table thead,
  .status-table tbody,
  .status-table tr,
  .status-table th,
  .status-table td {
    display: block;
  }

  .status-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .status-table tr {
    border: 1px solid var(--line);
    margin-bottom: 8px;
  }

  .status-table td {
    border: 0;
    border-bottom: 1px solid var(--line);
  }

  .vote-widget-box {
    grid-template-columns: 1fr;
  }
}
