:root {
  color-scheme: light;
  --ink: #182949;
  --muted: #536582;
  --blue: #284fc6;
  --line: #dce5f3;
  --surface: #fff;
  --background: #f5f8fe;
  --gain: #116a57;
  --loss: #a23757;
  font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  color: var(--ink);
  background: var(--background);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-size: 15px; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3, td, th, .issue-grid, .method-notes { overflow-wrap: anywhere; }
h1 { font-size: clamp(1.75rem, 4vw, 2.55rem); line-height: 1.3; letter-spacing: .035em; }
h2 { font-size: 1.35rem; line-height: 1.4; }
h3 { font-size: 1.05rem; line-height: 1.45; }
:focus-visible { outline: 3px solid #486fde; outline-offset: 3px; }
.shell { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top-inner { min-height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.brand { display: inline-flex; gap: 12px; align-items: center; font-size: 1.3rem; letter-spacing: .035em; font-weight: 850; width: fit-content; white-space: nowrap; }
.logo { width: 36px; height: 36px; border-radius: 11px; background: var(--blue); display: flex; align-items: flex-end; justify-content: center; gap: 3px; padding-bottom: 10px; }
.logo i { width: 4px; height: 8px; background: white; border-radius: 2px; }
.logo i:nth-child(2) { height: 15px; }
.logo i:nth-child(3) { height: 12px; opacity: .65; }
nav { display: flex; align-items: center; gap: 6px; }
nav a { min-height: 44px; display: grid; place-items: center; padding: 0 18px; border-radius: 9px; font-weight: 700; color: var(--muted); white-space: nowrap; }
nav a:hover, nav a[aria-current="page"] { color: #244ab7; background: #edf2ff; }
.private { justify-self: end; display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); white-space: nowrap; }
.lock { width: 12px; height: 9px; border: 1.5px solid currentColor; border-radius: 2px; position: relative; margin-top: 4px; }
.lock::before { content: ""; position: absolute; width: 4px; height: 5px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 4px 4px 0 0; left: 1.4px; top: -6px; }
main { padding: 36px 0 44px; min-height: calc(100vh - 170px); }
.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 36%; align-items: center; min-height: 310px; border-radius: 23px; background: linear-gradient(110deg, #eaf1ff, #edf0ff 76%, #e8edff); border: 1px solid #dee7fe; padding: 38px 54px; }
.hero-copy { position: relative; z-index: 1; }
.hero-label { color: #3153ad; font-weight: 750; font-size: .83rem; letter-spacing: .08em; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2rem, 4.25vw, 3.2rem); font-weight: 850; }
.hero-description { margin-top: 18px; color: var(--muted); font-size: .93rem; }
.hero-art { width: 100%; max-width: 330px; height: 228px; justify-self: center; position: relative; }
.art-orbit { position: absolute; width: 220px; height: 220px; border-radius: 50%; background: #dce6ff; left: 13%; top: 1%; box-shadow: 0 0 0 18px #e3ebff; }
.art-panel { position: absolute; left: 11%; bottom: 22%; width: 145px; height: 116px; border-radius: 18px; background: white; box-shadow: 0 12px 30px #314caa22; transform: rotate(-10deg); display: grid; place-items: center; }
.art-bars { width: 100px; height: 68px; border-bottom: 2px solid #e3ebfa; display: flex; gap: 8px; align-items: end; justify-content: center; padding-bottom: 6px; }
.art-bars i { width: 13px; border-radius: 5px 5px 2px 2px; background: #6584eb; height: 25px; }
.art-bars i:nth-child(2) { height: 40px; background: #a0b4ff; }
.art-bars i:nth-child(3) { height: 32px; background: #7999f3; }
.art-bars i:nth-child(4) { height: 51px; background: var(--blue); }
.art-clock { position: absolute; left: 48%; bottom: 15%; width: 115px; height: 115px; background: #fff; border-radius: 50%; border: 9px solid #6180e3; box-shadow: 0 12px 30px #314caa22; }
.art-clock i, .art-clock b { display: block; background: #3152bf; border-radius: 8px; position: absolute; top: 50%; left: 50%; transform-origin: center left; }
.art-clock i { width: 26px; height: 5px; transform: rotate(-90deg); }
.art-clock b { width: 22px; height: 5px; transform: rotate(28deg); }
.art-clock span { position: absolute; top: 46%; left: 46%; width: 11px; height: 11px; border-radius: 50%; background: #3152bf; }
.spark { position: absolute; width: 12px; height: 12px; background: #7491ef; transform: rotate(45deg); border-radius: 3px; }
.spark.one { right: 16%; top: 14%; }
.spark.two { left: 8%; bottom: 12%; width: 8px; height: 8px; background: #8ca6f4; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 34px 0 15px; }
.section-title p, .page-heading p { color: var(--muted); margin-top: 4px; }
.section-title p { font-size: .83rem; }
.page-heading { margin-bottom: 22px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 9px 16px; min-height: 44px; border-radius: 9px; border: 1px solid transparent; cursor: pointer; font: inherit; font-weight: 700; text-align: center; }
.primary { background: var(--blue); color: white; box-shadow: 0 3px 8px #274ec025; }
.primary:hover { background: #1e3eaa; }
.secondary { background: var(--surface); border-color: #d0ddf1; color: #294bb0; }
.secondary:hover, .secondary[aria-pressed="true"] { background: #edf2ff; border-color: #9eb5f9; }
.text { background: transparent; }
.danger { color: var(--loss); }
.danger:hover { background: #fff1f6; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 3px 12px #19376d07; }
.empty { min-height: 248px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px 16px; }
.empty p { color: var(--muted); margin-top: 6px; font-size: .9rem; }
.empty .button { margin-top: 19px; }
.empty-icon { margin-bottom: 15px; border-radius: 15px; background: #ecf2ff; height: 55px; width: 55px; position: relative; }
.empty-icon i { position: absolute; top: 13px; left: 15px; width: 24px; height: 26px; border: 2px solid #4469d5; border-radius: 4px; }
.empty-icon b { position: absolute; top: 19px; left: 21px; width: 12px; height: 3px; border-radius: 2px; background: #4469d5; box-shadow: 0 6px #4469d5, 0 12px #4469d5; }
.company-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.company { padding: 22px; min-width: 0; }
.type, .required { display: inline-block; border-radius: 6px; padding: 2px 8px; background: #edf1fb; color: #41557f; font-weight: 700; font-size: .76rem; }
.type.current { background: #e8f1ff; color: #244abd; }
.company h3 { margin: 10px 0 15px; font-size: 1.2rem; }
.company-values { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border-block: 1px solid var(--line); padding: 12px 0; margin-bottom: 12px; overflow-wrap: anywhere; }
.company-values dt { color: var(--muted); font-size: .8rem; }
.company-values dd { font-weight: 750; }
.footer { border-top: 1px solid var(--line); color: var(--muted); display: flex; align-items: center; gap: 16px; padding: 18px 0; font-size: .78rem; }
.footer-brand { font-weight: 800; white-space: nowrap; color: #2b4170; }
.notice { padding: 12px 16px; margin-top: 15px; border: 1px solid #edc5d0; border-radius: 10px; background: #fff1f6; color: var(--loss); }
.editor { display: grid; gap: 14px; }
.form-panel { padding: 22px 24px; }
.form-block { padding: 17px 0; border-bottom: 1px solid var(--line); }
.form-block:last-child { border-bottom: 0; padding-bottom: 0; }
.form-panel h2, .form-block h3 { margin-bottom: 10px; }
.field-grid, .check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.field { min-width: 0; display: grid; align-content: start; gap: 5px; }
.field label, summary { font-weight: 750; }
.required { margin-left: 7px; }
.input-wrap { position: relative; display: flex; align-items: center; gap: 7px; }
.input-wrap span, .field small, .form-note { color: var(--muted); font-size: .83rem; }
.input-wrap span { white-space: nowrap; }
input:not([type="checkbox"]), select, textarea { width: 100%; min-width: 0; min-height: 44px; font: inherit; font-size: 1rem; color: var(--ink); padding: 8px 10px; border: 1px solid #bdcce3; border-radius: 8px; background: white; }
textarea { resize: vertical; }
[aria-invalid="true"] { border-color: var(--loss) !important; }
.error, .caution { color: var(--loss); }
.error { font-size: .84rem; }
.form-note { margin-top: 9px; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.presets .button { font-size: .85rem; }
summary { cursor: pointer; padding: 4px 0; min-height: 36px; }
details[open] summary { margin-bottom: 14px; }
.check { display: flex; gap: 9px; align-items: center; min-height: 44px; padding: 6px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--blue); flex-shrink: 0; }
.form-actions { display: flex; align-items: center; justify-content: end; flex-wrap: wrap; gap: 9px; }
.save-status { color: var(--muted); font-size: .83rem; margin-right: auto; }
.selection { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 14px; align-items: end; padding: 17px; margin-bottom: 25px; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 11px; }
.metric { padding: 17px; }
.metric strong { display: block; font-size: clamp(1.15rem, 2.3vw, 1.75rem); overflow-wrap: anywhere; }
.metric span, .explanation, .method-notes { color: var(--muted); font-size: .83rem; }
.gain { color: var(--gain); }
.loss { color: var(--loss); }
.explanation { margin-top: 8px; }
.info, .detail-section { margin-top: 25px; }
.info { padding: 16px; background: #fffaf2; }
.issue-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 9px; }
.issue-grid ul, .method-notes { padding-left: 20px; }
.issue-grid ul { margin-block: 4px; }
.results-table { width: 100%; table-layout: fixed; border-spacing: 0; margin-top: 10px; overflow: hidden; text-align: left; }
.results-table th, .results-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.results-table thead { background: #eaf1ff; }
.results-table thead span { display: block; color: var(--muted); font-size: .8rem; }
.results-table tbody tr:last-child > * { border-bottom: 0; }
.results-table tbody tr:nth-child(even) { background: #fafcff; }
.breakdown { margin-top: 10px; padding: 12px 16px; }
.breakdown dl { overflow-wrap: anywhere; }
.breakdown dd { font-weight: 700; }
@media (max-width: 760px) {
  .shell { width: calc(100% - 32px); }
  .hero { padding: 30px; min-height: 260px; }
  .hero-art { transform: scale(.77); transform-origin: center left; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .top-inner { grid-template-columns: 1fr auto; gap: 6px 10px; padding: 10px 0; }
  .top-inner nav { grid-column: 1 / -1; grid-row: 2; }
  nav a { padding: 0 13px; }
  main { padding: 20px 0 30px; }
  .hero { grid-template-columns: 1fr; min-height: 0; border-radius: 17px; padding: 22px; }
  .hero h1 { font-size: clamp(1.6rem, 7vw, 2.4rem); }
  .hero-art { display: none; }
  .hero-description br { display: none; }
  .section-title { margin-top: 23px; }
  .form-panel { padding: 15px; }
  .field-grid, .check-grid, .issue-grid { grid-template-columns: minmax(0, 1fr); }
  .selection { grid-template-columns: minmax(0, 1fr); }
  .selection .button { grid-row: 3; justify-self: start; }
  .metric { padding: 12px; }
  .footer { align-items: start; }
}

.time-field { border: 0; padding: 0; margin: 0; min-inline-size: 0; }
.time-field legend { padding: 0; margin-bottom: 5px; font-weight: 750; }
.time-parts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.holiday-result { display: grid; gap: 3px; margin-top: 12px; padding: 12px 14px; border: 1px solid #d4e1fb; border-radius: 9px; background: #edf2ff; color: #294bb0; }
.holiday-result span { color: var(--muted); font-size: .85rem; }
.mobile-label { display: none; }
.delta { font-weight: 800; }
.chart-axis { display: grid; grid-template-columns: 1fr 2fr 1fr; color: var(--muted); font-size: .78rem; }
.chart-axis span:nth-child(2) { text-align: center; }
.chart-axis span:last-child { text-align: right; }
.chart-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 3px 12px; position: relative; padding: 6px 0 24px; }
.chart-track { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); inset: auto 0 6px; height: 12px; position: absolute; background: #edf2fb; border-radius: 6px; }
.chart-track::after { content: ""; position: absolute; inset: -3px auto -3px 50%; width: 1px; background: #687b9a; }
.chart-half { min-width: 0; display: flex; }
.chart-half.negative { transform: scaleX(-1); }
.chart-half progress { appearance: none; width: 100%; height: 12px; border: 0; background: transparent; }
.chart-half progress::-webkit-progress-bar { background: transparent; }
.chart-half progress::-webkit-progress-value { border-radius: 0 5px 5px 0; background: currentColor; }
.chart-half progress::-moz-progress-bar { border-radius: 0 5px 5px 0; background: currentColor; }
@media (max-width: 540px) {
  .results-table { display: block; background: transparent; border: 0; box-shadow: none; overflow: visible; }
  .results-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .results-table tbody { display: grid; gap: 8px; }
  .results-table tbody tr:nth-child(n) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: white; border: 1px solid var(--line); border-radius: 10px; }
  .results-table th, .results-table td { display: block; padding: 8px; border: 0; font-size: .82rem; }
  .results-table tbody th { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .results-table tbody tr:last-child > th { border-bottom: 1px solid var(--line); }
  .mobile-label { display: block; color: var(--muted); font-size: .72rem; font-weight: 400; }
}
