@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Noto+Sans+JP:wght@400;500;700&display=swap");
:root {
  color-scheme: light;
  --font-sans: "Inter", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Yu Gothic UI", sans-serif;
  --color-text-primary: #222222;
  --color-text-secondary: #555555;
  --color-text-muted: #777777;
  --color-text-inverse: #ffffff;
  --color-bg-page: #f6f8fb;
  --color-bg-panel: #ffffff;
  --color-bg-soft: #edf2f7;
  --color-bg-assist: #f5f7ff;
  --color-bg-tint: #e8f2ff;
  --color-bg-hover: var(--color-bg-tint);
  --color-border: #cfd9e6;
  --color-border-muted: #ccd7e4;
  --color-border-soft: #d5dfeb;
  --color-control-border: #b5bac1;
  --color-table-head-bg: #f1f5f9;
  --color-table-head-text: #334155;
  --color-icon-muted: #475569;
  --color-popover-dark: #222222;
  --color-danger-text: #ef4444;
  --color-brand: #002e67;
  --color-brand-strong: #002451;
  --color-brand-hover: #174a86;
  --color-brand-soft: #EEF2FF;
  --color-primary: #115fcc;
  --color-link: var(--color-primary);
  --color-link-hover: #0f55b8;
  --state-success-bg: #dcfce7;
  --state-success-text: #166534;
  --state-attention-bg: #fff2f3;
  --state-attention-text: #c92b1d;
  --state-notice-bg: #fffbeb;
  --state-notice-border: #fde68a;
  --state-notice-text: #92400e;
  --ink: var(--color-text-primary);
  --muted: var(--color-text-muted);
  --line: var(--color-border);
  --line-soft: var(--color-bg-soft);
  --bg: var(--color-bg-page);
  --panel: var(--color-bg-panel);
  --accent: var(--color-brand);
  --accent-strong: var(--color-brand-hover);
  --accent-soft: var(--color-brand-soft);
  --primary: var(--color-primary);
  --color-income-bg: #EEF2FF;
  --color-income-text: #002e67;
  --color-income-amount: #002e67;
  --entry-sale-bg: #e8efff;
  --entry-sale-text: #315EAF;
  --entry-sale-border: #abc0eb;
  --entry-expense-bg: #fff4eb;
  --entry-expense-text: #B96A16;
  --entry-expense-border: #f7ceab;
  --badge-sale-bg: var(--entry-sale-bg);
  --badge-sale-text: var(--entry-sale-text);
  --badge-sale-border: var(--entry-sale-border);
  --badge-expense-bg: var(--entry-expense-bg);
  --badge-expense-text: var(--entry-expense-text);
  --badge-expense-border: var(--entry-expense-border);
  --chart-sale-color: var(--entry-sale-text);
  --chart-sale-bg: var(--entry-sale-bg);
  --chart-expense-color: var(--entry-expense-text);
  --chart-expense-bg: var(--entry-expense-bg);
  --chart-withholding-color: #7c3aed;
  --chart-withholding-bg: #f3e8ff;
  --nav-bg: var(--color-brand);
  --nav-bg-strong: var(--color-brand-strong);
  --nav-text: var(--color-text-inverse);
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%2340526a' d='m7 10l5 5l5-5z'/%3E%3C/svg%3E");
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-pill: 999px;
  --border-subtle: 1px solid var(--line);
  --border-muted: 1px solid var(--color-border-muted);
  --border-soft: 1px solid var(--color-border-soft);
  --shadow-soft: 0 1px 2px rgba(15, 23, 42, .04), 0 18px 42px rgba(15, 23, 42, .055);
  --shadow-tiny: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-panel: 0 12px 30px rgba(15, 23, 42, .06);
  --shadow-popover: 0 14px 32px rgba(15, 23, 42, .16);
  --focus-ring: 0 0 0 3px rgba(0, 46, 103, .16);
  --button-radius: var(--radius-pill);
  --button-primary-bg: var(--primary);
  --button-primary-hover: #0f55b8;
  --button-primary-color: #ffffff;
  --button-secondary-bg: rgba(238, 242, 255, .74);
  --button-secondary-border: 1px solid rgba(0, 46, 103, .16);
  --button-secondary-color: var(--accent);
  --button-secondary-hover-bg: rgba(238, 242, 255, 1);
  --z-base: 1;
  --z-raised: 2;
  --z-dropdown: 20;
  --z-filter-panel: 40;
  --z-mobile-backdrop: 80;
  --z-mobile-drawer: 90;
  --z-help-popover: 160;
  --text-xs: 12px;
  --text-sm: 13px;
  --text-base: 14px;
  --text-md: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 28px;
  --text-4xl: 32px;
  --font-regular: 400;
  --font-medium: 500;
  --font-bold: 700;
  --type-body: var(--text-base);
  --type-label: var(--text-xs);
  --type-meta: var(--text-xs);
  --type-table: var(--text-base);
  --type-section-title: var(--text-md);
  --type-page-title: var(--text-2xl);
  --type-amount: var(--text-xl);
  --space-1: 4px;
  --space-2: 6px;
  --space-3: 8px;
  --space-4: 10px;
  --space-5: 12px;
  --space-6: 16px;
  --space-7: 20px;
  --space-8: 24px;
  --space-9: 32px;
  --gap-small: var(--space-2);
  --gap-ui: var(--space-3);
  --gap-form: var(--space-5);
  --pad-card-sm: var(--space-6);
  --pad-card: var(--space-7);
  --pad-card-lg: var(--space-9);
  --content-max: 1220px;
  --content-gutter: 32px;
  --content-width: min(var(--content-max), calc(100% - var(--content-gutter)));
  --section-gap: var(--space-7);
  --page-gap: var(--space-8);
  --control-height: 40px;
  --year-switch-width: 116px;
}

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

:where(h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, form, fieldset) {
  margin-block: 0;
}

:where(ul, ol) {
  margin-block: 0;
}

:where(fieldset) {
  border: 0;
  min-inline-size: 0;
  padding: 0;
}

:where(button, input, select, textarea) {
  font: inherit;
}

:where(button) {
  color: inherit;
}

:where(img, svg) {
  max-width: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--type-body);
  font-feature-settings: "kern";
  font-synthesis-style: none;
  font-synthesis-weight: none;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.auth-page {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 32px 20px;
}

.auth-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 24px;
  max-width: 420px;
  padding: 36px;
  width: 100%;
}
@media (max-width: 767px) {
  .auth-card {
    border-radius: 18px;
    padding: 28px 22px;
  }
}

.auth-heading {
  display: grid;
  gap: 8px;
}
.auth-heading h1 {
  color: var(--color-text-primary);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.25;
}
.auth-heading p {
  color: var(--color-text-primary);
  font-size: 14px;
  line-height: 1.7;
}

.auth-form {
  display: grid;
  gap: 16px;
}
.auth-form label {
  color: var(--color-text-primary);
  display: grid;
  font-size: 14px;
  gap: 6px;
}
.auth-form input:not([type=checkbox]) {
  background: #fff;
  border: 1px solid var(--color-control-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  font: inherit;
  min-height: var(--control-height);
  padding: 8px 12px;
}
.auth-form input:focus {
  border-color: var(--button-primary-bg);
  box-shadow: var(--focus-ring);
  outline: 0;
}

.auth-remember {
  align-items: center;
  display: flex !important;
  gap: 8px !important;
}
.auth-remember input {
  width: auto;
}

.notice {
  border-radius: 8px;
  margin-bottom: 16px;
  padding: 12px;
}

.notice--success {
  background: var(--state-success-bg);
  color: var(--state-success-text);
}

.notice--warning {
  background: var(--state-notice-bg);
  color: var(--state-notice-text);
}

.notice--danger {
  background: #fee2e2;
  color: #991b1b;
}

.notice--action {
  align-items: center;
  display: flex;
  gap: var(--space-4);
  justify-content: space-between;
}
.notice--action span {
  min-width: 0;
}
.notice--action .notice-message {
  display: grid;
  gap: 6px;
  width: 100%;
}
.notice--action .notice-message-head {
  align-items: center;
  display: flex;
  gap: 18px;
}
.notice--action a {
  color: inherit;
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
}
.notice--action a:hover {
  text-decoration: underline;
}

.text-link-arrow {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--color-text-primary);
  display: inline-flex;
  font-size: 14px;
  font-weight: 400;
  gap: var(--space-2);
  min-height: 0;
  padding: 0;
  text-decoration: none;
  transform: none;
  white-space: nowrap;
}
.text-link-arrow:hover {
  background: transparent;
  box-shadow: none;
  color: var(--color-link);
  text-decoration: underline;
  transform: none;
}
.text-link-arrow::after {
  background: currentColor;
  content: "";
  height: 14px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='0.5em' height='1em' viewBox='0 0 12 24'%3E%3Cpath fill='black' fill-rule='evenodd' d='m7.588 12.43l-1.061 1.06L.748 7.713a.996.996 0 0 1 0-1.413L6.527.52l1.06 1.06l-5.424 5.425z' transform='rotate(-180 5.02 9.505)'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='0.5em' height='1em' viewBox='0 0 12 24'%3E%3Cpath fill='black' fill-rule='evenodd' d='m7.588 12.43l-1.061 1.06L.748 7.713a.996.996 0 0 1 0-1.413L6.527.52l1.06 1.06l-5.424 5.425z' transform='rotate(-180 5.02 9.505)'/%3E%3C/svg%3E") center/contain no-repeat;
  width: 8px;
}

.text-link {
  color: var(--color-link);
  font-size: var(--type-body);
  font-weight: 400;
  text-decoration: none;
}
.text-link:hover {
  color: var(--color-link);
  text-decoration: underline;
}

.text-link-back {
  color: #222;
  text-decoration: none;
  align-items: center;
  display: inline-flex;
  gap: var(--space-2);
}
.text-link-back:hover {
  color: var(--color-link);
}
.text-link-back::before {
  background: currentColor;
  content: "";
  flex: 0 0 auto;
  height: 18px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke='none' d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M5 12l14 0'/%3E%3Cpath d='M5 12l6 6'/%3E%3Cpath d='M5 12l6 -6'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke='none' d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M5 12l14 0'/%3E%3Cpath d='M5 12l6 6'/%3E%3Cpath d='M5 12l6 -6'/%3E%3C/svg%3E") center/contain no-repeat;
  width: 18px;
}

.month-state-link,
.table-ghost-link,
.table-action-link {
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 6px 12px;
}
.month-state-link::after,
.table-ghost-link::after,
.table-action-link::after {
  content: none;
}
.month-state-link:hover,
.table-ghost-link:hover,
.table-action-link:hover {
  background: var(--color-bg-hover);
  border-color: transparent;
  color: var(--color-link);
  text-decoration: none;
}

.overview-month-table .month-state-link {
  margin-left: 0;
}

.deposits-page .table-ghost-link {
  margin-left: 0;
}

.badge {
  align-items: center;
  border: 0;
  border-radius: var(--radius-pill);
  display: inline-flex;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
  padding: 6px 8px;
  white-space: nowrap;
}

.badge--success {
  background: var(--state-success-bg);
  color: var(--state-success-text);
}

.badge--attention {
  background: var(--state-attention-bg);
  color: var(--state-attention-text);
}

.badge--notice {
  background: var(--state-notice-bg);
  color: var(--state-notice-text);
}

.badge--empty {
  background: transparent;
  border-radius: 0;
  color: var(--color-text-primary);
  display: inline;
  font-size: 14px;
  line-height: inherit;
  padding: 0;
}

.badge--icon {
  height: 28px;
  justify-content: center;
  padding: 0;
  width: 28px;
}

.badge--count {
  background: var(--accent-soft);
  color: var(--accent);
  font-size: var(--type-meta);
  padding: var(--space-1) var(--space-4);
}

.status-text {
  align-items: center;
  display: inline-flex;
  font-size: 14px;
  gap: 3px;
  line-height: 1.4;
  white-space: nowrap;
}
.status-text svg {
  color: currentColor;
  flex: 0 0 auto;
  height: 24px;
  width: 24px;
}

.status-text--success svg {
  color: var(--state-success-text);
}

.status-text--attention svg {
  color: var(--state-attention-text);
}

.status-text--muted-icon svg {
  color: var(--color-text-muted);
}

.num.positive, .num.income {
  color: var(--color-income-amount);
}
.num.negative {
  color: var(--color-danger-text);
}

.app-table-scroll thead {
  border-bottom: 2px solid #ccc;
}

.month-entry-table {
  table-layout: fixed;
}
.month-entry-table col.month-entry-date {
  width: 116px;
}
.month-entry-table col.month-entry-type {
  width: 70px;
}
.month-entry-table col.month-entry-content {
  width: auto;
}
.month-entry-table col.month-entry-amount {
  width: 92px;
}
.month-entry-table col.month-entry-payment {
  width: 128px;
}
.month-entry-table col.month-entry-action {
  width: 54px;
}
.month-entry-table thead th {
  background: var(--color-table-head-bg);
  border-radius: 0;
  font-weight: 500;
}
.month-entry-table td {
  vertical-align: middle;
}
.month-entry-table th.num,
.month-entry-table td.num {
  text-align: left;
}

.month-entry-detail {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.month-entry-detail strong,
.month-entry-detail span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.month-entry-detail strong {
  color: var(--color-text-primary);
  font-size: var(--type-body);
  font-weight: 500;
}
.month-entry-detail span {
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 400;
}

.month-entry-amount-cell {
  font-size: var(--type-body);
  font-weight: 500;
  letter-spacing: 0;
}

.action-menu {
  display: flex;
  justify-content: flex-end;
  min-width: 32px;
  position: relative;
}
.action-menu .action-menu__trigger {
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  color: var(--color-icon-muted);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 32px;
  height: 32px;
  justify-content: center;
  list-style: none;
  min-width: 32px;
  padding: 0;
  width: 32px;
}
.action-menu .action-menu__trigger::-webkit-details-marker {
  display: none;
}
.action-menu .action-menu__trigger:hover, .action-menu[open] .action-menu__trigger {
  background: var(--color-bg-hover);
  color: var(--accent);
}
.action-menu .action-menu__icon {
  background-color: currentColor;
  display: inline-block;
  flex: 0 0 auto;
  height: 20px;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  width: 20px;
}
.action-menu .action-menu__icon--more {
  -webkit-mask-image: url("../icons/majesticons-more-menu.svg");
  mask-image: url("../icons/majesticons-more-menu.svg");
}
.action-menu .action-menu__list {
  background: #fff;
  border: var(--border-muted);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-popover);
  display: grid;
  min-width: 108px;
  padding: var(--space-2);
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: var(--z-dropdown);
}
.action-menu:not([open]) .action-menu__list {
  display: none;
}
.action-menu .action-menu__item {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--color-table-head-text);
  display: flex;
  font-size: var(--type-body);
  font-weight: 500;
  gap: var(--space-3);
  justify-content: flex-start;
  min-height: 40px;
  padding: var(--space-3) var(--space-4);
  text-align: left;
  text-decoration: none;
  transform: none;
  white-space: nowrap;
  width: 100%;
}
.action-menu .action-menu__item:hover {
  background: var(--color-bg-hover);
  box-shadow: none;
  color: var(--accent);
  transform: none;
}
.action-menu .action-menu__item.is-danger {
  color: #b91c1c;
}
.action-menu .action-menu__item.is-danger:hover {
  background: #fff1f2;
  color: #991b1b;
}
.action-menu .action-menu__item svg {
  fill: none;
  flex: 0 0 auto;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
  width: 20px;
}
.action-menu .action-menu__svg {
  fill: none;
  flex: 0 0 auto;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
  width: 20px;
}

.month-entry-actions {
  text-align: right;
}

.lp-page {
  background: #fff;
}

.lp-page__content {
  max-width: 1120px;
  margin-inline: auto;
  padding: 40px 24px;
}

.lp-hero__eyebrow {
  font-size: 16px;
  margin-bottom: 0;
}

h1 {
  font-size: 36px;
  margin-bottom: 24px;
}

.lp-hero__lead {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 32px;
}

.lp-hero__actions {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #ccc;
}

.lp-problems__list {
  margin: 0 0 16px;
  padding-left: 1.2em;
  list-style: disc;
}
.lp-problems__list li::marker {
  font-size: 1em;
}

.lp-flow__list {
  margin: 0 0 16px;
  padding-left: 1.5em;
}
.lp-flow__list li::marker {
  font-weight: 600;
}

.button {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  font-weight: 400;
  color: #fff;
  text-decoration: none;
  min-height: 48px;
  width: min(240px, 100%);
  padding: 0 16px;
  border-radius: 999px;
  background: var(--button-primary-bg);
}

.button--secondary {
  color: var(--button-primary-bg);
  border: 1px solid var(--button-primary-bg);
  background: #fff;
}

h2 {
  font-size: 24px;
  margin-top: 40px;
  margin-bottom: 16px;
}

h3 {
  font-size: 20px;
  margin-top: 24px;
  margin-bottom: 12px;
}

p,
ul,
ol,
.lp-faq__list,
.lp-data__details {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.lp-trial__actions {
  margin-bottom: 16px;
}

.lp-final-cta {
  margin-bottom: 24px;
}

.lp-footer-nav {
  margin-top: 60px;
}
