/* スマホ閲覧を第一に考えたモバイルファーストCSS */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  background: #f2f4f7;
  color: #1f2937;
  line-height: 1.6;
}
main { max-width: 560px; margin: 0 auto; padding: 12px; }

.site-header { background: #1e3a5f; color: #fff; }
.header-inner {
  max-width: 560px; margin: 0 auto; padding: 10px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.brand { font-weight: 700; letter-spacing: .05em; }
.site-header nav { display: flex; align-items: center; gap: 14px; font-size: .85rem; }
.site-header a { color: #cfe0f4; text-decoration: none; }
.site-header a:active { opacity: .7; }
.inline { display: inline; margin: 0; }
.link-btn {
  background: none; border: none; color: #cfe0f4; font-size: .85rem;
  cursor: pointer; padding: 0; font-family: inherit;
}

.card {
  background: #fff; border-radius: 10px; padding: 20px 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08); margin-top: 12px;
}
.card.narrow { max-width: 400px; margin-left: auto; margin-right: auto; }
h1 { font-size: 1.15rem; margin: 0 0 14px; }
h2 { font-size: .95rem; margin: 0 0 6px; display: flex; justify-content: space-between; }
.group-total { font-weight: 600; color: #1e3a5f; }

label { display: block; margin-bottom: 12px; font-size: .9rem; }
input[type=text], input[type=password], input[type=email] {
  display: block; width: 100%; padding: 10px; margin-top: 4px;
  border: 1px solid #cbd5e1; border-radius: 6px; font-size: 1rem;
}
.checkbox { display: flex; gap: 8px; align-items: flex-start; }
.checkbox input { margin-top: 4px; }
button.primary {
  display: block; width: 100%; padding: 12px; margin-top: 8px;
  background: #1e3a5f; color: #fff; border: none; border-radius: 6px;
  font-size: 1rem; cursor: pointer;
}
button.primary:active { opacity: .85; }

.flash { background: #fef3cd; border: 1px solid #f0d787; border-radius: 8px;
  padding: 10px 14px; margin-top: 12px; font-size: .9rem; }
.flash p { margin: 0; }
.note { font-size: .8rem; color: #6b7280; }

.consent-list { font-size: .88rem; padding-left: 1.3em; }
.consent-list li { margin-bottom: 6px; }

.slip-list { list-style: none; margin: 0; padding: 0; }
.slip-list li { border-bottom: 1px solid #e5e7eb; }
.slip-list a {
  display: flex; align-items: center; gap: 12px; padding: 14px 4px;
  text-decoration: none; color: inherit;
}
.slip-list a:active { background: #f8fafc; }
.slip-month { font-weight: 600; font-variant-numeric: tabular-nums; }
.slip-title { flex: 1; }
.chevron { color: #9ca3af; font-size: 1.2rem; }

.slip-meta { font-size: .85rem; color: #6b7280; margin-top: -8px; }
.net-pay {
  display: flex; justify-content: space-between; align-items: baseline;
  background: #eef4fb; border-radius: 8px; padding: 12px 16px; margin: 14px 0;
}
.net-pay strong { font-size: 1.5rem; color: #1e3a5f; font-variant-numeric: tabular-nums; }

.item-group { margin-bottom: 18px; }
.item-group table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.item-group th, .item-group td {
  padding: 7px 4px; border-bottom: 1px solid #eef0f3; text-align: left;
}
.item-group th { font-weight: 400; color: #4b5563; width: 55%; }
.item-group td { text-align: right; font-variant-numeric: tabular-nums; }
.slip-nav { display: flex; justify-content: space-between; align-items: center; }
.pdf-btn {
  display: inline-block; padding: 6px 12px; font-size: .85rem;
  background: #1e3a5f; color: #fff !important; border-radius: 6px;
  text-decoration: none;
}
.pdf-btn:active { opacity: .85; }
.bikou {
  font-size: .88rem; color: #4b5563; background: #f8fafc;
  border-radius: 6px; padding: 10px 12px; margin: 0;
  overflow-wrap: break-word;
}

@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; padding: 0; }
}
