:root {
  --ink: #172f40;
  --muted: #4e626e;
  --teal: #193f59;
  --mint: #e4eef4;
  --paper: #f5f7f9;
  --line: #d8e1e7;
  --white: #fff;
  --red: #aa3f36;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter,
    "Noto Sans JP",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.75;
  font-size: 15px;
}
a {
  color: inherit;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a.button {
  cursor: pointer;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--teal);
  background: var(--teal);
  color: white;
  border-radius: 6px;
  padding: 11px 20px;
  text-decoration: none;
  font-weight: 650;
  line-height: 1.5;
}
button.secondary,
.button.secondary {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}
button.danger {
  color: var(--red);
  background: #fff;
  border-color: #e5c5c0;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #b9c9c5;
  border-radius: 5px;
  background: white;
  color: var(--ink);
}
input[type="checkbox"],
input[type="radio"] {
  width: auto;
  margin-right: 9px;
  accent-color: var(--teal);
}
textarea {
  min-height: 108px;
  resize: vertical;
}
label {
  display: block;
  font-weight: 600;
  margin-bottom: 7px;
}
label:has(input[type="checkbox"]),
label:has(input[type="radio"]) {
  font-weight: 400;
}
small,
.muted {
  color: var(--muted);
}
small {
  font-size: 12px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(32px, 4.2vw, 60px);
  line-height: 1.4;
  letter-spacing: -0.045em;
  font-weight: 750;
}
h2 {
  font-size: 30px;
  line-height: 1.5;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 19px;
}
p {
  margin-bottom: 20px;
}
header.site {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1240px;
  margin: auto;
  padding: 0 40px;
  border-bottom: 1px solid var(--line);
}
.logo {
  font-size: 23px;
  letter-spacing: -0.8px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.logo i {
  font-style: normal;
  color: var(--teal);
}
.logo small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.08em;
  font-weight: 500;
}
nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
nav a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
nav a:hover {
  color: var(--teal);
}
main {
  max-width: 1160px;
  margin: auto;
  padding: 64px 40px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--teal);
  font-weight: 750;
  margin-bottom: 20px;
}
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 38px 0 75px;
}
.hero p {
  max-width: 540px;
  color: var(--muted);
  font-size: 17px;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 25px 0;
}
.tag {
  display: inline-block;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--mint);
  color: #193f59;
  font-weight: 650;
}
.section {
  padding: 65px 0;
  border-top: 1px solid var(--line);
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 35px;
  align-items: start;
  margin-bottom: 30px;
}
.section-head p {
  max-width: 450px;
  color: var(--muted);
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.grid.two {
  grid-template-columns: repeat(2, 1fr);
}
.card {
  background: white;
  border: 1px solid var(--line);
  padding: 28px;
  border-radius: 8px;
}
.card .num {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--teal);
  display: block;
  margin-bottom: 28px;
}
.card p {
  color: var(--muted);
  font-size: 14px;
}
.card h3 a {
  text-decoration: none;
}
.price {
  font-size: 42px;
  font-weight: 750;
  letter-spacing: -0.04em;
}
.price small {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
}
.price-note {
  background: #eef3ef;
  border-radius: 6px;
  padding: 18px 22px;
  font-size: 13px;
}
.band {
  background: var(--ink);
  color: white;
  padding: 40px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}
.band p {
  color: #c7d5d9;
  margin: 0;
}
.band h2 {
  font-size: 25px;
  margin-bottom: 8px;
}
footer {
  max-width: 1160px;
  padding: 40px;
  margin: auto;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 30px;
  font-size: 12px;
  color: var(--muted);
}
footer nav {
  gap: 15px;
  flex-wrap: wrap;
}
footer a {
  font-size: 12px;
}
.narrow {
  max-width: 760px;
  margin: auto;
}
.intro {
  max-width: 810px;
  margin-bottom: 50px;
}
.intro h1 {
  font-size: 46px;
}
.list {
  padding-left: 20px;
}
.list li {
  margin-bottom: 10px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field {
  margin-bottom: 21px;
}
.full {
  grid-column: 1/-1;
}
.notice {
  padding: 16px 20px;
  border-left: 3px solid var(--teal);
  background: #eaf2ed;
  font-size: 13px;
  margin: 20px 0;
}
.error {
  padding: 14px 18px;
  background: #fbeeea;
  border-left: 3px solid var(--red);
  color: #85352e;
  margin-bottom: 20px;
}
.success {
  padding: 20px;
  background: var(--mint);
  border-radius: 6px;
  margin: 20px 0;
}
.hidden {
  display: none !important;
}
.auth {
  max-width: 490px;
  margin: 20px auto;
  background: white;
  border: 1px solid var(--line);
  padding: 38px;
  border-radius: 8px;
}
.auth h1 {
  font-size: 29px;
}
.app-header {
  background: var(--ink);
  color: white;
  padding: 17px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.app-header nav {
  gap: 18px;
}
.app-header button {
  padding: 7px 12px;
  font-size: 12px;
  background: transparent;
  border-color: #647782;
}
.app-layout {
  max-width: 1320px;
  padding: 38px 36px;
}
.app-layout h1 {
  font-size: 31px;
}
.topline {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
  margin-bottom: 27px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 20px 0 35px;
}
.stat {
  border-top: 3px solid var(--teal);
  background: white;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.stat strong {
  font-size: 30px;
  display: block;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 13px;
}
th,
td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
th {
  font-weight: 600;
  color: var(--muted);
  background: #edf3f6;
}
td a {
  color: var(--teal);
  font-weight: 600;
}
.empty {
  padding: 45px;
  text-align: center;
  color: var(--muted);
  background: white;
  border: 1px dashed #b8c9c1;
  border-radius: 7px;
}
.tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  margin: 25px 0;
}
.tabs button {
  border: 0;
  border-radius: 0;
  padding: 12px 2px;
  background: none;
  color: var(--muted);
}
.tabs button.active {
  color: var(--teal);
  border-bottom: 3px solid var(--teal);
}
.editor-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 25px;
  align-items: start;
}
.field-row {
  background: #f4f7f9;
  border: 1px solid var(--line);
  padding: 18px;
  margin: 12px 0;
  border-radius: 6px;
}
.field-row .form-grid {
  gap: 12px;
}
.field-row button {
  font-size: 11px;
  padding: 5px 10px;
}
.field-row label {
  font-size: 12px;
}
.field-row input,
.field-row select {
  font-size: 13px;
  padding: 8px;
}
.receipt {
  max-width: 650px;
  margin: auto;
}
.receipt h1 {
  font-size: 34px;
}
.receipt-code {
  font-family: monospace;
  font-size: 24px;
  background: #f0f4ef;
  padding: 18px;
  overflow-wrap: anywhere;
}
.bar {
  height: 10px;
  background: #e4ece7;
  border-radius: 4px;
  overflow: hidden;
  margin: 6px 0 17px;
}
.bar span {
  display: block;
  height: 100%;
  background: var(--teal);
}
:focus-visible {
  outline: 3px solid #d69b35;
  outline-offset: 3px;
}
.hp {
  position: absolute;
  left: -9999px;
}
.loading {
  padding: 80px;
  text-align: center;
  color: var(--muted);
}
@media (max-width: 850px) {
  header.site {
    height: auto;
    padding: 20px;
    flex-wrap: wrap;
  }
  header.site nav {
    gap: 14px;
    flex-wrap: wrap;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 10px 0 40px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .grid.two,
  .editor-grid {
    grid-template-columns: 1fr;
  }
  .section-head,
  .band {
    display: block;
  }
  main {
    padding: 35px 22px;
  }
  .section {
    padding: 40px 0;
  }
  .intro h1 {
    font-size: 35px;
  }
  footer {
    padding: 28px 22px;
    display: block;
  }
  footer nav {
    margin-top: 20px;
  }
  .app-header {
    padding: 16px 20px;
    flex-wrap: wrap;
  }
  .app-layout {
    padding: 27px 20px;
  }
  .topline {
    align-items: start;
    flex-wrap: wrap;
  }
  .stats {
    gap: 9px;
  }
  .stat {
    padding: 12px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .auth {
    padding: 26px;
  }
  .full {
    grid-column: auto;
  }
}
@media print {
  header.site,
  footer,
  button,
  .actions {
    display: none !important;
  }
  body {
    background: white;
  }
  main {
    max-width: none;
    padding: 20px;
  }
  .card {
    box-shadow: none;
  }
  .notice,
  .receipt-code {
    print-color-adjust: exact;
  }
}

.app-header .logo i,
.app-header .logo small {
  color: #fff;
}
