@charset "UTF-8";
:root{color-scheme:light;--paper:#f5f3eb;--white:#fffefa;--ink:#252b29;--muted:#656b63;--line:#d8d9cd;--blue:#284bcc;--blue-dark:#203da7;--lime:#d7ee8b;--error:#a32c25;font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Noto Sans JP",Meiryo,sans-serif;color:var(--ink);background:var(--paper);font-size:15px;font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.48}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,[tabindex="-1"]:focus-visible{outline:3px solid var(--blue);outline-offset:4px}button,a{text-underline-offset:4px}[hidden]{display:none!important}.wrap{width:min(1180px,calc(100% - 80px));margin-inline:auto}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.skip{position:fixed;top:8px;left:10px;z-index:10;background:var(--white);padding:14px;transform:translateY(-160%)}.skip:focus{transform:none}.site-header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--ink);min-height:105px;gap:20px}.brand{display:grid;grid-template-columns:40px auto;column-gap:12px;align-items:center;text-decoration:none;font-size:21px;font-weight:750;letter-spacing:.06em;line-height:1.3}.brand svg{width:40px;height:40px;grid-row:1/3}.brand-sub{font-size:8px;letter-spacing:.15em;margin-top:5px;font-weight:600}.day-link{font-size:12px;text-decoration:none;display:flex;gap:18px;align-items:center;min-height:44px}.day-link span{font-family:ui-monospace,monospace;font-size:14px}.hero{display:flex;align-items:center;justify-content:space-between;gap:32px;padding:55px 0 38px}.eyebrow{font-size:12px;font-weight:600;letter-spacing:.07em;line-height:1.8;margin:0 0 22px}.small-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--blue);margin-right:8px}h1{font-family:"Hiragino Mincho ProN","Yu Mincho",YuMincho,serif;font-size:clamp(42px,4.6vw,65px);font-weight:600;line-height:1.4;letter-spacing:.045em;margin:0 0 20px}.circle-word{position:relative;white-space:nowrap;z-index:0}.circle-word:after{content:"";position:absolute;width:108%;height:110%;border:2px solid var(--blue);border-radius:50%;left:-4%;top:-4%;transform:rotate(-8deg);z-index:-1}.intro{font-size:14px;line-height:2;margin:0;color:#4d554d}.intro strong{font-weight:650;color:var(--ink)}.hero-aside{width:275px;flex-shrink:0;text-align:center;padding-top:20px}.hero-aside>p{font-size:12px;margin-top:20px}.hero-aside>p span{padding:0 8px;color:var(--muted)}.mini-art{height:140px;display:flex;align-items:center;justify-content:center;position:relative;transform:rotate(-6deg)}.art-person{width:65px;height:65px;display:flex;align-items:center;justify-content:center;border:1.5px solid var(--ink);border-radius:50%;font-size:30px;font-family:Georgia,serif}.person-one{background:var(--blue);color:white;border-color:var(--blue)}.person-two{background:var(--white)}.art-line{font-size:32px;width:67px;color:var(--blue)}.art-stamp{background:var(--lime);border:1.5px solid var(--ink);border-radius:50%;font-size:13px;line-height:1.4;letter-spacing:.1em;padding:14px;position:absolute;bottom:-6px;right:3px;transform:rotate(16deg)}.text-button{font:inherit;font-size:12px;font-weight:600;background:none;border:0;border-bottom:1px solid currentColor;padding:8px 0;min-height:44px;color:var(--ink);text-decoration:none;display:inline-flex;align-items:center;gap:10px}.text-button:hover{color:var(--blue)}.utility-bar{border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;color:var(--muted);padding:4px 0}.utility-bar p{margin:0;line-height:1.7}.utility-bar .text-button{font-size:11px;border-bottom:0}.notice{font-size:13px;line-height:1.8;background:#e9edfa;border-left:3px solid var(--blue);padding:12px 16px;margin:6px 0 20px;overflow-wrap:anywhere}.workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,.8fr);align-items:start;gap:36px;margin-top:13px}.entry-column{min-width:0}.panel{padding:25px 28px 26px;background:var(--white);border:1px solid var(--line);border-radius:8px;margin-bottom:20px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.section-title h2{font-size:16px;line-height:1.6;margin:0;font-weight:700;letter-spacing:.02em;display:flex;align-items:center;gap:12px}.step{font-family:ui-monospace,monospace;font-size:12px;color:var(--blue);display:inline-flex;width:28px;height:28px;border:1px solid #a6b1e3;border-radius:50%;align-items:center;justify-content:center;flex-shrink:0}.count,.small-label{font-size:10px;color:var(--muted);white-space:nowrap}.small-label{letter-spacing:.1em}.add-member{display:flex;gap:8px}.add-member input{flex:1;min-width:0}input,select,textarea{width:100%;min-height:48px;border:1px solid #8b9187;border-radius:5px;color:var(--ink);background:var(--white);padding:11px 12px;font-size:16px}input::placeholder{color:#777d74;opacity:1}input:disabled,select:disabled{background:#f2f2ec}.button{display:inline-flex;justify-content:center;align-items:center;gap:20px;border:1px solid var(--ink);min-height:48px;border-radius:5px;font-size:13px;font-weight:650;padding:11px 18px;line-height:1.6;text-decoration:none}.button.primary{background:var(--blue);border-color:var(--blue);color:#fff}.button.primary:hover:enabled{background:var(--blue-dark)}.button.secondary{background:transparent;color:var(--ink);border-color:#7b8277}.button.secondary:hover:enabled{background:#efefe7}.members{display:flex;flex-wrap:wrap;gap:8px;margin:15px 0 0;padding:0;list-style:none}.member{display:flex;align-items:center;border:1px solid var(--line);border-radius:24px;background:#f3f3ec;max-width:100%;padding-left:7px}.avatar{width:26px;height:26px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;font-size:12px;flex-shrink:0;background:#e1e8fe;color:var(--blue);font-weight:700}.member:nth-child(4n+2) .avatar{background:#ece6f7;color:#6e4a8d}.member:nth-child(4n+3) .avatar{background:#e4ebdc;color:#4d6844}.member:nth-child(4n) .avatar{background:#f5e4d2;color:#8c5926}.member button{border:0;background:transparent;color:var(--ink);min-height:44px;min-width:44px}.member .member-name{font-size:12px;overflow-wrap:anywhere;text-align:left;padding:8px 4px 8px 8px;max-width:200px}.member .remove-member{font-size:18px;color:var(--muted);border-radius:50%;padding:0 8px}.hint{font-size:11px;line-height:1.8;color:var(--muted);margin:10px 0 0}.error{color:var(--error);font-size:12px;line-height:1.7;margin:10px 0 0}.field{display:flex;flex-direction:column;gap:8px;margin-bottom:18px;min-width:0}.field label,fieldset legend{font-size:12px;font-weight:650}.payment-row{display:grid;grid-template-columns:1fr 1.2fr;gap:16px}.amount-input{position:relative}.amount-input>span{position:absolute;left:14px;top:13px;font-size:16px;color:var(--muted)}.amount-input input{text-align:right;padding-left:35px;font-family:ui-monospace,monospace}.payment-panel fieldset{border:0;margin:0;padding:0;min-width:0}.payment-panel>p{margin-bottom:16px}.payment-panel .participants-field{margin-top:2px}.participants-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:1px 0 8px}.participants-heading p{margin:0}.participants-heading .text-button{font-size:11px;border:0;white-space:nowrap;color:var(--blue)}.participants{display:flex;gap:8px;flex-wrap:wrap}.participant{position:relative;display:inline-flex;align-items:center;gap:7px;padding:9px 12px;min-height:44px;border:1px solid #8b9187;border-radius:5px;cursor:pointer;max-width:100%;background:white;font-size:12px;overflow-wrap:anywhere}.participant:has(input:checked){border-color:var(--blue);background:#edf1ff;color:#1f3ba4}.participant input{width:16px;height:16px;min-height:0;margin:0;accent-color:var(--blue);padding:0;flex-shrink:0}.form-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:24px}.form-actions .primary{flex:1}.form-actions .secondary{font-size:11px}.draft-note{color:var(--blue)}fieldset:disabled{opacity:.6}.history-section{padding:12px 0 24px}.history-section .section-title{margin-bottom:10px}.history-section h2{font-size:13px;gap:10px}.history-section h2 span{font-size:11px;font-weight:400;color:var(--muted)}.jump-result{font-size:11px;color:var(--blue);border:0}.expenses{list-style:none;padding:0;margin:0}.expense{padding:16px 0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px}.expense-title{font-size:13px;font-weight:650;margin:0 0 5px;overflow-wrap:anywhere}.expense-detail{font-size:11px;line-height:1.8;color:var(--muted);margin:0;overflow-wrap:anywhere}.expense-amount{font-family:ui-monospace,monospace;font-size:18px;font-weight:650;text-align:right;margin:0;white-space:nowrap}.expense-actions{display:flex;gap:4px;justify-content:flex-end;grid-column:2}.expense-actions button{background:none;border:0;color:var(--muted);font-size:11px;min-height:44px;min-width:44px;padding:5px 8px}.expense-actions button:hover{color:var(--blue);text-decoration:underline}.receipt{position:sticky;top:22px;background:var(--white);padding:26px 30px 20px;border:1px solid #c6c9bb;box-shadow:0 8px 0 -3px #e6e5db,0 15px 28px #262e2910;isolation:isolate;min-width:0;scroll-margin-top:20px}.receipt:before{content:"";position:absolute;top:-5px;left:4px;right:4px;height:6px;background:radial-gradient(circle at 6px 0,var(--paper) 5px,transparent 5.5px) repeat-x;background-size:12px 6px}.receipt-top{font-family:ui-monospace,monospace;font-size:9px;letter-spacing:.1em;display:flex;align-items:center;justify-content:space-between;margin-bottom:27px}.receipt-top>span:last-child{font-size:25px;line-height:1}.receipt h2{font-family:"Hiragino Mincho ProN","Yu Mincho",serif;font-size:25px;letter-spacing:.1em;text-align:center;font-weight:600;margin:0}.receipt-sub{text-align:center;font-size:10px;letter-spacing:.06em;color:var(--muted);margin:10px 0 26px}.receipt-total{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px dashed #8b9187;border-bottom:1px dashed #8b9187;padding:18px 0}.receipt-total>span{font-size:11px;white-space:nowrap}.receipt-total strong{font-family:ui-monospace,monospace;font-size:clamp(23px,2.5vw,34px);font-weight:600;letter-spacing:-.05em;white-space:nowrap}.empty-result{text-align:center;padding:35px 0 30px}.empty-result svg{width:84px;height:84px;color:#65705d}.empty-result h3{font-size:14px;font-weight:600;margin:20px 0 9px}.empty-result p{font-size:12px;color:var(--muted);line-height:1.9;margin:0}.receipt-actions{border-top:1px dashed #8b9187;padding-top:22px}.receipt-actions>.button{width:100%}.action-hint{text-align:center;font-size:10px;color:var(--muted);margin:9px 0 20px}.share-privacy{font-size:10px;line-height:1.9;color:var(--muted);margin:10px 0 18px}.rounding-note{font-size:10px;line-height:1.9;color:var(--muted);border-top:1px solid var(--line);padding-top:15px;margin:0}.receipt-bottom{font-family:ui-monospace,monospace;font-size:8px;letter-spacing:.08em;margin-top:25px;display:flex;justify-content:space-between;color:var(--muted)}.settlement-heading{display:flex;align-items:center;justify-content:space-between;padding:22px 0 15px;gap:10px}.settlement-heading h3{font-size:13px;line-height:1.6;margin:0}.settlement-heading strong{font-family:ui-monospace,monospace;font-size:28px;font-weight:600;color:var(--blue)}.settlement-heading strong span{font-size:11px;font-family:inherit;margin-left:4px}.exact-label{display:inline-flex;align-items:center;gap:5px;font-size:9px;white-space:nowrap;background:var(--lime);padding:6px 8px;border-radius:2px}.transfers{list-style:none;padding:0;margin:0 0 24px;counter-reset:transfer}.transfer{display:grid;grid-template-columns:24px minmax(0,1fr) auto;gap:8px;align-items:center;border-top:1px solid var(--line);padding:15px 0}.transfer:before{counter-increment:transfer;content:counter(transfer,decimal-leading-zero);font-family:ui-monospace,monospace;font-size:10px;color:var(--muted)}.transfer-route{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px;font-weight:600;overflow-wrap:anywhere;min-width:0}.transfer-route .arrow{color:var(--blue)}.transfer-value{font-family:ui-monospace,monospace;font-size:18px;letter-spacing:-.05em;white-space:nowrap}.settled{text-align:center;padding:28px 8px 32px}.settled .settled-mark{display:inline-flex;background:var(--lime);width:54px;height:54px;align-items:center;justify-content:center;font-size:28px;border-radius:50%}.settled h3{font-size:16px}.settled p{font-size:12px;line-height:1.9;color:var(--muted)}.result-pending{font-size:11px;line-height:1.8;color:var(--blue);background:#edf1ff;padding:12px}.receipt.pending .result-body{opacity:.5}.breakdown{border-top:1px solid var(--line);margin-bottom:20px}.breakdown summary{font-size:11px;cursor:pointer;min-height:44px;display:flex;align-items:center;justify-content:space-between;list-style:none}.breakdown summary:after{content:"＋";font-size:16px}.breakdown[open] summary:after{content:"−"}.balance-table{width:100%;border-collapse:collapse;font-size:10px;table-layout:fixed}.balance-table th,.balance-table td{padding:9px 2px;border-top:1px solid var(--line);text-align:right;overflow-wrap:anywhere;line-height:1.7;font-variant-numeric:tabular-nums}.balance-table th:first-child,.balance-table td:first-child{text-align:left;width:24%}.balance-table th{font-weight:500;color:var(--muted)}.balance-table .balance-in{color:#304e99}.balance-table .balance-out{color:#8e4634}.balance-explain{font-size:10px;color:var(--muted);line-height:1.8}#manual-copy{padding-bottom:20px}#manual-copy label{display:block;font-size:11px;line-height:1.8;color:var(--error);margin-bottom:8px}#copy-text{font-size:12px;resize:vertical}.how-it-works{border-top:1px solid var(--ink);margin-top:60px;padding:30px 0 50px}.how-it-works>h2{font-family:"Hiragino Mincho ProN","Yu Mincho",serif;font-size:24px;letter-spacing:.06em;font-weight:600;margin:0 0 28px}.how-it-works ol{list-style:none;display:grid;grid-template-columns:1fr 1fr 1fr;gap:30px;padding:0;margin:0}.how-it-works li{border-top:1px solid var(--line);padding-top:16px}.how-it-works li>span{font-family:ui-monospace,monospace;font-size:11px;color:var(--blue)}.how-it-works h3{font-size:13px;margin:12px 0 6px}.how-it-works p{font-size:11px;color:var(--muted);line-height:1.9;margin:0}.site-footer{border-top:1px solid var(--line);padding-top:28px;padding-bottom:36px}.footer-heading{display:flex;justify-content:space-between;gap:16px;font-size:11px}.footer-heading>span:first-child{font-weight:650;font-size:14px}.footer-note{font-size:10px;line-height:1.8;color:var(--muted);margin-top:20px}.back-link{font-size:11px;display:inline-flex;align-items:center;min-height:44px}.share{min-width:0;max-width:100%;margin-top:28px}.share__label{font-size:11px}.share__button{border-radius:4px;font-size:11px}.share__note{font-size:10px;color:var(--muted)}.share__said{font-size:11px}dialog{border:1px solid var(--ink);padding:30px;max-width:min(460px,calc(100vw - 32px));background:var(--white);color:var(--ink);border-radius:8px;box-shadow:0 20px 80px #0002}dialog::backdrop{background:#15232670}dialog h2{font-size:20px;margin:0 0 18px}dialog p{font-size:13px;line-height:1.9;overflow-wrap:anywhere}dialog label{display:block;font-size:12px;margin-bottom:8px}.dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:25px}.dialog-actions button{flex:1}dialog .eyebrow{font-size:10px;color:var(--blue)}.noscript{position:fixed;inset:0;background:var(--paper);padding:20vh 10vw;font-size:20px;z-index:30}
@media(min-width:1300px){.workspace{gap:50px;grid-template-columns:minmax(0,1fr) 440px}.receipt{padding-inline:35px}.hero{padding-top:65px;padding-bottom:48px}.hero-aside{margin-right:70px}}
@media(max-width:950px){.wrap{width:calc(100% - 48px)}.workspace{gap:22px;grid-template-columns:minmax(0,1fr) minmax(300px,.85fr)}.panel{padding:22px 20px}.receipt{padding:25px 22px 20px}.small-label{display:none}.section-title h2{font-size:14px;gap:8px}.payment-row{gap:10px}.hero-aside{width:220px}.brand{font-size:19px}.expense-amount{font-size:16px}.receipt-total strong{font-size:26px}}
@media(max-width:720px){.wrap{width:calc(100% - 36px)}.site-header{min-height:84px;gap:12px}.brand{font-size:17px;grid-template-columns:32px auto;gap:3px 8px}.brand svg{width:32px;height:32px}.brand-sub{font-size:6px;margin-top:2px;letter-spacing:.1em}.day-link{font-size:9px;flex-direction:column;gap:3px;justify-content:center;align-items:flex-end}.day-link span{font-size:12px}.hero{padding:35px 0 28px;gap:0;position:relative;align-items:flex-start}.hero .eyebrow{font-size:9px;letter-spacing:0;margin-bottom:19px}h1{font-size:44px;line-height:1.45;margin-bottom:20px}.intro{font-size:12px;line-height:2}.hero-aside{width:auto;position:absolute;right:0;bottom:29px;padding:0;text-align:right}.hero-aside .mini-art{display:none}.hero-aside>p{font-size:8px;margin:0 0 0}.hero-aside>p span{padding:0 3px}.hero-aside .text-button{font-size:9px;gap:4px;min-height:44px}.intro strong{display:block}.workspace{display:flex;flex-direction:column;gap:12px;margin-top:10px}.entry-column,.receipt{width:100%}.receipt{position:relative;top:auto;padding:25px 27px 20px}.panel{padding:22px 20px;margin-bottom:16px}.section-title{margin-bottom:18px}.section-title h2{font-size:15px;gap:10px}.small-label{display:inline;font-size:8px}.utility-bar{font-size:9px;gap:8px}.utility-bar .text-button{font-size:10px}.payment-row{grid-template-columns:1fr 1.15fr;gap:12px}.field{margin-bottom:17px}.participants-heading p{font-size:10px}.participant{font-size:12px}.history-section{padding:8px 2px 12px}.receipt h2{font-size:26px}.receipt-total strong{font-size:34px}.receipt-total>span{font-size:12px}.transfer-value{font-size:20px}.transfer-route{font-size:13px}.receipt-top{font-size:9px}.receipt-actions .button{font-size:14px;min-height:50px}.share-privacy,.rounding-note{font-size:11px}.action-hint{font-size:11px}.breakdown summary{font-size:12px}.balance-table{font-size:11px}.balance-explain{font-size:11px}.how-it-works{margin-top:45px;padding:28px 0 32px}.how-it-works>h2{font-size:22px;margin-bottom:22px}.how-it-works ol{grid-template-columns:1fr;gap:17px}.how-it-works li{display:grid;grid-template-columns:30px 1fr;gap:5px 8px;align-items:center;padding-top:14px}.how-it-works h3{margin:0;font-size:13px}.how-it-works p{grid-column:2;margin:0;font-size:11px}.footer-heading{font-size:9px;align-items:center}.footer-heading>span:first-child{font-size:13px}.site-footer{padding-top:24px}.share__button{font-size:11px;padding-inline:13px}.balance-table th:first-child,.balance-table td:first-child{width:24%}}
@media(max-width:360px){h1{font-size:39px}.hero-aside{bottom:29px}.hero-aside>p{display:none}.panel{padding-inline:16px}.small-label{display:none}.receipt{padding-inline:20px}.section-title h2{font-size:14px}.intro{font-size:11px}.button{padding-inline:14px}.brand-sub{font-size:5px}.participants-heading{align-items:flex-start}.participants-heading p{max-width:150px}.transfer-value{font-size:17px}}
@media(prefers-reduced-motion:no-preference){button,a{transition:background-color .15s,color .15s}.receipt-total strong{transition:color .15s}}
@media print{.site-header,.hero,.utility-bar,.notice,.entry-column,.how-it-works,.site-footer,.receipt-actions,.result-pending{display:none!important}.wrap{width:100%}.workspace{display:block}.receipt{position:static;width:100%;border:0;box-shadow:none}.receipt:before{display:none}.breakdown{display:block}.receipt.pending:after{content:"未確定の入力があります"}}
/* Put very large totals on their own line so the amount never overflows the receipt. */
.receipt-total.wide-total{flex-direction:column;align-items:flex-start;gap:10px}.receipt-total.wide-total strong{width:100%;text-align:right;font-size:24px}
