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

:root {
  --card: #2e2e2e;
  --line: rgba(255,255,255,.12);
  --text: rgb(255,255,255);
  --muted: rgba(255,255,255,.72);
  --head-bg: #222222;
  --accent: #a6e22e;
  --col-size: 130px;
  --headRowH: 44px;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: "Saira Stencil One", sans-serif;
  background-color: var(--card);
  color: var(--text);
}

.wrap {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

h1 {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 22px;
  font-weight: 900;
  margin: 0;
  letter-spacing: .02em;
}

.page-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.calc-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(166,226,46,.2);
  border: 1px solid rgba(166,226,46,.5);
  color: #c3e88d;
  text-decoration: none;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .15s;
}

.calc-link:hover {
  background: rgba(166,226,46,.4);
  color: #fff;
}

.note {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 14px;
  line-height: 1.7;
}

.note .shipping-warn {
  color: #ffb74d;
  font-weight: 600;
}

.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.toolbar input {
  width: min(520px, 100%);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(188,162,236,.04);
  color: var(--text);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  outline: none;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.tab {
  padding: 8px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a1a1a;
}

.tab:hover:not(.active) {
  background: rgba(255,255,255,.06);
}

.table-card {
  flex: 1;
  min-height: 0;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.table-scroll {
  height: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  min-width: 900px;
  font-size: 18px;
  table-layout: fixed;
}

table th, table td { box-sizing: border-box; }

tbody td {
  border-bottom: 1px solid var(--line);
  padding: 9px 12px;
  white-space: nowrap;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

tbody tr:hover td { background: rgba(255,255,255,.04); }

th.sticky-col,
td.sticky-col {
  width: var(--col-size);
  min-width: var(--col-size);
  max-width: var(--col-size);
}

tbody td.sticky-col {
  position: sticky;
  left: 0;
  z-index: 3;
  background: var(--head-bg);
  border-right: 1px solid rgba(255,255,255,.5);
  text-align: left;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--head-bg);
  border-bottom: 1px solid var(--line);
  text-align: center;
  white-space: nowrap;
  padding: 0 12px;
  height: var(--headRowH);
  line-height: var(--headRowH);
  font-size: 14px;
}

thead th.sticky-col {
  left: 0;
  z-index: 10;
  border-right: 1px solid rgba(255,255,255,.5);
  text-align: left;
}

@media (max-width: 560px) {
  h1 { font-size: 18px; }
  .note { font-size: 12px; }
  table { font-size: 12px; }
  .sticky-col { position: -webkit-sticky; position: sticky; }
  .table-scroll { -webkit-overflow-scrolling: touch; overflow: auto; }
}

.header-logo{ height: 36px; width: auto; display: block; }
