:root{color-scheme:light;--bg:#f6f8fa;--surface:#fff;--text:#1f2328;--muted:#59636e;--line:#d8dee4;--accent:#0f4c81;--accent-ink:#fff;--result:#eef5fc;--shadow:0 1px 2px #0f4c8114;--radius:12px;--content:840px}*,:before,:after{box-sizing:border-box}html{max-width:100%}body{min-height:100vh;color:var(--text);background:var(--bg);flex-direction:column;margin:0;font-family:Hiragino Kaku Gothic ProN,Hiragino Sans,Yu Gothic,Meiryo,sans-serif;font-size:16px;line-height:1.75;display:flex}img{max-width:100%}a{color:var(--accent)}.site-header,.site-footer{background:var(--surface);border-bottom:1px solid var(--line)}.site-header{z-index:20;position:relative}.site-footer{border-bottom:0;border-top:1px solid var(--line);margin-top:auto}.site-bar{width:min(var(--content), calc(100% - 2rem));flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem 1.5rem;margin-inline:auto;padding:.85rem 0;display:flex}.site-mark{align-items:center;line-height:0;text-decoration:none;display:inline-flex}.site-mark img{width:auto;height:1.75rem;display:block}.site-legal{flex:1 0 100%}.site-legal ul{flex-wrap:wrap;gap:.35rem 1rem;margin:0;padding:0;list-style:none;display:flex}.site-legal a{color:var(--muted);font-weight:400;text-decoration:none}.site-legal a:hover{color:var(--accent)}.legal-doc{overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;max-width:100%;overflow-x:auto}.legal-updated{color:var(--muted);margin:0 0 1.5rem;font-size:.9rem}.legal-doc h2{margin-top:2rem}.legal-doc p,.legal-doc ul{margin:.75rem 0 0}.legal-doc table{border-collapse:collapse;width:max-content;min-width:100%;margin-top:.75rem}.legal-doc th,.legal-doc td{text-align:left;vertical-align:top;border:1px solid var(--line);padding:.45rem .7rem}.legal-doc th{background:var(--surface)}.tool-disclaimer{color:var(--muted);margin:.25rem 0 0;font-size:.92rem}.tool-disclaimer a{font-weight:700}.site-nav ul{flex-wrap:wrap;gap:.35rem 1.25rem;margin:0;padding:0;list-style:none;display:flex}.site-nav a{color:var(--text);font-weight:700;text-decoration:none}.site-nav a:hover,.site-mark:hover{color:var(--accent)}.site-tools{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:.75rem 1.25rem;min-width:min(100%,16rem);display:flex}.site-search{flex:12rem;min-width:min(100%,12rem);max-width:16rem;position:relative}.site-search-panel{z-index:30;background:var(--surface);border:1px solid var(--line);max-height:20rem;box-shadow:var(--shadow);border-radius:8px;position:absolute;top:calc(100% + .35rem);left:0;right:0;overflow:auto}.site-search-panel ul{margin:0;padding:.25rem 0;list-style:none}.site-search-panel a{color:var(--text);flex-direction:column;gap:.1rem;padding:.45rem .75rem;font-weight:400;line-height:1.45;text-decoration:none;display:flex}.site-search-panel a:hover,.site-search-panel a:focus{background:var(--result)}.site-search-title{color:var(--accent);font-weight:700}.site-search-meta{color:var(--muted);font-size:.85rem}.site-search-status:not(.visually-hidden){color:var(--muted);margin:0;padding:.7rem .75rem}.visually-hidden{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.site-main{width:min(var(--content), calc(100% - 2rem));min-width:0;margin-inline:auto;padding:1.5rem 0 3rem}h1{margin:.75rem 0 .5rem;font-size:1.75rem;line-height:1.35}h2{margin:0 0 .75rem;font-size:1.15rem;line-height:1.45}h3{margin:0 0 .35rem;font-size:1rem;line-height:1.45}.lead{color:var(--muted);margin:0}.category-block+.category-block{margin-top:2rem}.category-block>h2{margin-bottom:.25rem}.category-block>h2 a{text-decoration:none}.card-grid{grid-template-columns:1fr;gap:.75rem;margin:.85rem 0 0;padding:0;list-style:none;display:grid}.tool-card{height:100%;color:inherit;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);flex-direction:column;gap:.25rem;padding:1rem 1.05rem;text-decoration:none;display:flex}.tool-card:focus-within{border-color:var(--accent)}.tool-card-title{color:var(--accent);margin:0;font-size:1rem;font-weight:700;line-height:1.45}.tool-card-title a{color:inherit;font-weight:inherit;text-decoration:none}.tool-card-title a:hover{text-decoration:underline}.tool-card-lead{color:var(--muted);margin:0;font-size:.95rem}.crumbs{margin-bottom:.35rem}.crumbs ol{color:var(--muted);flex-wrap:wrap;gap:.25rem .5rem;margin:0;padding:0;font-size:.82rem;line-height:1.5;list-style:none;display:flex}.crumbs a{color:var(--muted);text-decoration:none}.crumbs a:hover{color:var(--accent)}.crumbs li:not(:last-child):after{color:var(--muted);content:"/";margin-left:.5rem}.tool-intro{margin-bottom:1.25rem}.calculator{grid-template-columns:1fr;gap:1rem;margin-bottom:2rem;display:grid}.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);min-width:0;margin:0;padding:1rem 1.05rem}.tool-result{background:var(--result)}.field{margin-bottom:1rem}.field>label,.field-label,fieldset legend,.check{font-weight:700}fieldset{border:0;min-width:0;margin:0 0 1rem;padding:0}.control,.choice-row{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.choice-row{margin-bottom:1rem}input:not([type=checkbox]):not([type=radio]),select{width:100%;min-width:0;min-height:44px;color:var(--text);font:inherit;font-variant-numeric:tabular-nums;background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:.4rem .7rem;font-size:16px}input[type=date],input[type=time]{flex:1;width:auto}.calendar-select{flex:none;width:auto;min-width:6.5rem}.date-parts{flex-wrap:wrap;flex:16rem;align-items:center;gap:.35rem;min-width:0;display:flex}.date-parts input{flex:0 0 4.25rem;width:4.25rem}.date-parts input.year-western{flex-basis:5.75rem;width:5.75rem}.date-parts input.year-era{flex-basis:3.5rem;width:3.5rem}.date-field{flex-wrap:nowrap;align-items:center;gap:.5rem;min-width:0;display:flex}.date-field .field-label{flex:none}.date-line{flex-wrap:nowrap;flex:auto;gap:.35rem;min-width:0;overflow-x:auto}.date-line .date-parts{flex-wrap:nowrap;flex:none}@media (width<=40rem){.date-field{flex-direction:column;align-items:flex-start;gap:.45rem}.date-line{flex-direction:column;align-items:flex-start;overflow-x:visible}.date-line .calendar-select{min-width:5.25rem}.date-line .date-parts{flex-wrap:nowrap}.date-line .date-parts input{flex:2.6rem;width:auto;min-width:0;max-width:3.25rem;padding-inline:.35rem}.date-line .date-parts input.year-western{flex-basis:3.4rem;max-width:4.25rem}.date-line .date-parts input.year-era{flex-basis:2.6rem;max-width:3.25rem}.era-converter .date-line .date-parts input.year-era{flex-basis:4.25rem;max-width:4.75rem}}#day-count-form,#day-count-result,#date-calculator-form,#date-calculator-result{grid-column:1/-1}#date-calculator-form .date-field{flex-wrap:wrap}#date-calculator-form .date-line{flex-wrap:wrap;overflow-x:visible}#date-calculator-form .date-line .date-parts{flex-wrap:wrap;flex:none}#date-calculator-form .days-choice input[type=number]{flex:0 0 6.5rem;width:6.5rem}#time-calculator-form,#time-calculator-result{grid-column:1/-1}#time-calculator-form .date-field .field-label{text-align:right;flex:0 0 6.5rem;width:6.5rem}#time-calculator-form .date-line{flex-wrap:wrap;overflow-x:visible}#time-calculator-form .date-line .date-parts{flex-wrap:wrap;flex:none}input:focus,select:focus{border-color:var(--accent);outline:2px solid var(--accent);outline-offset:1px}button{min-height:44px;color:var(--accent-ink);font:inherit;background:var(--accent);border:1px solid var(--accent);border-radius:8px;padding:.4rem 1rem;font-size:16px}button[data-today-for]{min-height:36px;color:var(--accent);background:var(--surface);border-color:var(--line);border-radius:999px;padding:.15rem .8rem;font-size:.92rem}button[data-today-for]:hover{border-color:var(--accent)}button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.check{align-items:center;gap:.5rem;min-height:44px;display:flex}.check input{width:1.15rem;height:1.15rem}.result-figures{font-variant-numeric:tabular-nums;margin:.15rem 0 .35rem;font-size:1.85rem;font-weight:700;line-height:1.35}.tool-result [data-direction],.tool-result [data-detail]{color:var(--muted);font-variant-numeric:tabular-nums;margin:0}.mortgage-rows,.day-count-rows{overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;max-width:100%;margin:0;overflow-x:auto}.mortgage-rows div,.day-count-rows div{border-bottom:1px solid var(--line);justify-content:space-between;gap:1rem;min-width:max-content;padding:.45rem 0;display:flex}.mortgage-rows div:last-child,.day-count-rows div:last-child{border-bottom:0}.mortgage-rows dt,.day-count-rows dt{font-weight:700}.mortgage-rows dd,.day-count-rows dd{font-variant-numeric:tabular-nums;white-space:nowrap;margin:0}.mortgage-rows div:first-child dd,.day-count-rows div:first-child dd{font-size:1.6rem;font-weight:700;line-height:1.3}.tool-section{margin-top:2rem}.tool-section article{overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;max-width:100%;margin-top:1rem;overflow-x:auto}.tool-section article p,.methodology{white-space:pre-line;margin:0}.tool-article{max-width:100%;margin-top:2rem}.tool-article h2{margin:2rem 0 .75rem;font-size:1.35rem}.tool-article h3{margin:1.25rem 0 .35rem;font-size:1.05rem}.tool-article p,.tool-article li{margin:.35rem 0}.tool-article ul,.tool-article ol{margin:.4rem 0 .9rem;padding-left:1.4rem}.tool-article table{border-collapse:collapse;max-width:100%;margin:.75rem 0 1rem;display:block;overflow-x:auto}.era-lookup-columns{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem 1rem;margin:.75rem 0 1rem;display:grid}.era-lookup-columns table{table-layout:fixed;width:100%;margin:0;display:table;overflow-x:visible}.era-lookup-columns th,.era-lookup-columns td{white-space:pre-line;overflow-wrap:normal}.tool-article th,.tool-article td{text-align:left;white-space:nowrap;border-bottom:1px solid var(--line);padding:.45rem .7rem}.tool-article .era-lookup-columns th,.tool-article .era-lookup-columns td{white-space:pre-line;padding:.4rem .45rem}.tool-article th{background:var(--result)}.tool-article code{font-family:ui-monospace,Cascadia Code,Source Code Pro,monospace;font-size:.95em}.related-list{flex-wrap:wrap;gap:.5rem 1.25rem;margin:0;padding:0;list-style:none;display:flex}.related-list a{font-weight:700;text-decoration:none}.time-unit-rows{border-collapse:collapse;width:max-content;max-width:100%;margin:.85rem 0 0}.time-unit-rows th,.time-unit-rows td{text-align:left;font-variant-numeric:tabular-nums;white-space:nowrap;padding:.2rem .85rem .2rem 0}.time-unit-rows th{color:var(--muted);font-weight:700}.date-shift-rows{border-collapse:collapse;width:max-content;max-width:100%}.date-shift-rows th,.date-shift-rows td{text-align:left;font-variant-numeric:tabular-nums;white-space:nowrap;padding:.35rem .85rem .35rem 0}.date-shift-rows thead th,.date-shift-rows tbody th{font-weight:700}.tool-result[data-state=error] .result-figures,.tool-result[data-state=error] .time-unit-rows,.tool-result[data-state=error] .date-shift-rows,.tool-result[data-state=error] [data-direction],.tool-result[data-state=error] [data-detail],.tool-result[data-state=error] .mortgage-rows,.tool-result[data-state=error] .day-count-rows,.tool-result[data-state=error] .era-result,.tool-result[data-state=empty] .era-result,.tool-result[data-state=empty] .result-figures,.tool-result[data-state=empty] .time-unit-rows,.tool-result[data-state=empty] .date-shift-rows,.tool-result[data-state=empty] [data-direction],.tool-result[data-state=empty] [data-detail],.tool-result[data-state=empty] .mortgage-rows,.tool-result[data-state=empty] .day-count-rows{display:none}.era-current-year{grid-column:1/-1}.era-current-year p{margin:.35rem 0 0}.era-converter{grid-column:1/-1;gap:1rem;display:grid}.era-converter .year-era{flex-basis:4.75rem;width:4.75rem}.era-result{font-variant-numeric:tabular-nums;margin:0;font-size:1.25rem;font-weight:700}.era-year-table{grid-column:1/-1}.era-legend{flex-wrap:wrap;gap:.4rem .75rem;margin:0 0 .75rem;padding:0;list-style:none;display:flex}.era-legend li{border-radius:999px;padding:.1rem .55rem}.era-table-columns{gap:1rem;display:grid}.era-year-table table{border-collapse:collapse;width:100%}.era-year-table th,.era-year-table td{text-align:left;border-bottom:1px solid var(--line);font-variant-numeric:tabular-nums;padding:.45rem .7rem}.era-year-table thead th{background:var(--surface)}.era-year-table tr[data-era=meiji]>th,.era-year-table tr[data-era=meiji]>td,.era-legend [data-era=meiji]{background:#f3e6d0}.era-year-table tr[data-era=taisho]>th,.era-year-table tr[data-era=taisho]>td,.era-legend [data-era=taisho]{background:#f8d7c4}.era-year-table tr[data-era=showa]>th,.era-year-table tr[data-era=showa]>td,.era-legend [data-era=showa]{background:#d9e8f6}.era-year-table tr[data-era=heisei]>th,.era-year-table tr[data-era=heisei]>td,.era-legend [data-era=heisei]{background:#dcefe4}.era-year-table tr[data-era=reiwa]>th,.era-year-table tr[data-era=reiwa]>td,.era-legend [data-era=reiwa]{background:#f8efc8}.era-year-table tr[data-era=meiji-taisho]>th{background:#f3e6d0}.era-year-table tr[data-era=meiji-taisho]>td,.era-year-table tr[data-era=taisho-showa]>th{background:#f8d7c4}.era-year-table tr[data-era=taisho-showa]>td,.era-year-table tr[data-era=showa-heisei]>th{background:#d9e8f6}.era-year-table tr[data-era=showa-heisei]>td,.era-year-table tr[data-era=heisei-reiwa]>th{background:#dcefe4}.era-year-table tr[data-era=heisei-reiwa]>td{background:#f8efc8}[data-error]:empty{display:none}[data-error]{margin:.5rem 0 0}@media (width<=40rem){.site-tools,.site-search{flex-basis:100%;justify-content:flex-start;max-width:none}}@media (width>=40rem){h1{font-size:2rem}.card-grid,.calculator,.era-converter,.era-table-columns{grid-template-columns:1fr 1fr}}@media (width>=64rem){.era-lookup-columns{grid-template-columns:repeat(4,minmax(0,1fr))}}
