:root{--green:#245c77;--ink:#20354a;--muted:#617489;--line:#dce5ec;--bg:#f4f7fa;--accent:#edf4f8;--white:#fff}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:24px}body{margin:0;background:var(--bg);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Noto Sans JP","Yu Gothic",sans-serif;font-size:16px;line-height:1.8;padding-bottom:max(24px,env(safe-area-inset-bottom));overflow-wrap:anywhere}button,input,textarea,select{font:inherit}button,a,input,textarea,summary,select{touch-action:manipulation}button,summary{cursor:pointer}a{color:var(--green);text-underline-offset:4px}button:disabled{opacity:.5;cursor:default}[hidden]{display:none!important}:focus-visible{outline:3px solid #8db5cc;outline-offset:3px}
header{max-width:1120px;min-height:80px;margin:0 auto;padding:16px 32px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line)}.brand{display:inline-flex;align-items:center;gap:9px;font-size:22px;font-weight:750;letter-spacing:.04em;text-decoration:none;color:var(--ink);white-space:nowrap}.logo{font-size:29px;color:var(--green)}header nav{display:flex;gap:28px}header nav a{font-size:14px;color:#536b80;text-decoration:none;min-height:44px;display:flex;align-items:center}main{max-width:964px;padding:0 28px;margin:auto}.eyebrow{font-size:14px;font-weight:700;letter-spacing:.1em;color:var(--green)}.hero{padding:48px 0 32px}h1{font-size:44px;line-height:1.45;letter-spacing:.045em;margin:12px 0 20px;font-weight:750}h1 span{color:var(--green)}.hero p{font-size:17px;line-height:1.9;color:#536b80;margin:0}.features{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}.features span{font-size:14px;line-height:1.5;color:#47657c;background:#e8eff5;padding:6px 12px;border-radius:6px}.flow-steps{list-style:none;padding:0;margin:26px 0 0;display:flex;gap:24px;flex-wrap:wrap}.flow-steps li{display:flex;align-items:center;gap:8px;font-size:14px;color:#5b7184}.flow-steps span{display:inline-grid;place-items:center;width:24px;height:24px;border:1px solid #bed0de;background:#fff;border-radius:50%;font-size:13px;font-weight:700;color:var(--green)}
h2{font-size:22px;line-height:1.6;margin:0;font-weight:750}h3{font-size:18px;line-height:1.65;margin:12px 0}.hint,.muted{font-size:15px;color:var(--muted);line-height:1.85}.hint{margin:9px 0 16px}.privacy{font-size:14px;color:var(--muted);line-height:1.85;margin:12px 0 0}.text-button{border:0;background:none;color:var(--green);font-size:14px;text-decoration:underline;text-underline-offset:4px;min-height:44px;padding:9px 2px}.primary,.secondary{min-height:50px;padding:12px 18px;border:1px solid transparent;border-radius:9px;font-size:16px;font-weight:650;line-height:1.6}.primary{background:var(--green);border-color:var(--green);color:#fff}.primary:hover{background:#194860}.secondary{background:#fff;border-color:#c9d7e2;color:#345873}.secondary:hover{background:#f0f5f9}.danger{color:#97615b}
.retention-panel{max-width:840px;margin:0 auto 24px;padding:14px 18px;background:#eaf1f6;border:1px solid #d6e2eb;border-radius:9px}.retention-title{display:flex;align-items:center;gap:8px;color:#476780}.retention-title h2{font-size:14px;font-weight:700;line-height:1.5}.retention-panel .retention-message{font-size:15px;line-height:1.75;margin:7px 0 0;color:#466077}.retention-panel .retention-countdown{display:inline-block;font-size:14px;line-height:1.6;font-variant-numeric:tabular-nums;margin:8px 0 0;color:#365f7b;background:#fff;padding:3px 9px;border-radius:5px}.retention-details{font-size:14px;margin-top:2px;color:var(--muted)}.retention-details>summary{font-size:14px;padding:9px 0;min-height:44px;cursor:pointer}.retention-detail-body{border-top:1px solid #d5e1ea;padding-top:10px}.retention-detail-body>p{font-size:14px;margin:8px 0;line-height:1.85}.retention-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}.retention-actions button{font-size:15px;min-height:48px}.recovery-card{max-width:840px;margin:0 auto 24px;padding:20px 24px;background:#fff;border:1px solid #9bbbd0;border-left:4px solid var(--green);border-radius:9px}.recovery-card h2{font-size:19px}.recovery-card p{font-size:15px;margin:8px 0}
.workspace{display:block}.editor,.preview{max-width:840px;min-width:0;margin:0 auto;background:#fff;border:1px solid var(--line);border-radius:16px;padding:30px;box-shadow:0 5px 22px #183c5d04}.section-head{display:flex;align-items:center;gap:10px}.section-head h2{font-size:21px}.step{display:inline-grid;place-items:center;width:30px;height:30px;flex-shrink:0;border-radius:8px;background:#eaf2f8;color:var(--green);font-size:15px;font-weight:750}.section-head.second{margin-top:28px;padding-top:28px;border-top:1px solid var(--line)}label{display:block;font-size:16px;font-weight:650;line-height:1.65;margin:24px 0 8px}form>label:first-child{margin-top:0}small{font-size:13px;font-weight:400;color:var(--muted);margin-left:7px}input,textarea,select{width:100%;max-width:100%;border:1px solid #cbd8e3;border-radius:9px;background:#fbfcfe;color:var(--ink);font-size:16px;line-height:1.8;padding:12px 14px;min-height:52px;outline:none}input::placeholder,textarea::placeholder{color:#8292a2}input:focus,textarea:focus,select:focus{border-color:#5589ab;box-shadow:0 0 0 3px #e7f0f7;background:#fff}textarea{display:block;resize:vertical;min-height:106px;overflow-y:hidden}select{appearance:none;padding-right:42px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23245c77' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 15px center}#custom-recipient-wrap{margin-top:18px}.destination-info{margin-top:14px;padding:14px 16px;background:#f1f6fa;border:1px solid #e2ebf2;border-radius:8px;color:#5c7186;font-size:14px;line-height:1.85}.selected-contact-info{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px;margin-top:14px;background:#ebf4f8;border:1px solid #cbdfe9;border-radius:8px;font-size:14px}.selected-contact-info span{min-width:0}.selected-contact-info button{flex-shrink:0}.safety-note{padding:16px;border:1px solid #d8e2e8;border-left:3px solid #52788c;border-radius:8px;background:#f5f8fa;margin-top:16px;font-size:14px;line-height:1.9}.safety-note p{margin:6px 0}.safety-note a{display:inline-flex;align-items:center;min-height:44px}#safety-fields{margin-top:24px}
.test-examples{margin:24px 0;border:1px dashed #ccdce7;border-radius:9px;padding:4px 16px;background:#fafcfe}.test-examples summary{font-size:15px;min-height:48px;padding:12px 0}.test-example-buttons{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px}.test-example-buttons button{font-size:15px}.free-entry{margin-top:26px;padding:24px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.free-entry h2{font-size:20px}.free-entry label{margin-top:16px}#raw-count{margin:8px 0 0;text-align:right;font-size:14px;color:var(--muted);font-variant-numeric:tabular-nums}.free-entry>.primary{width:100%;margin-top:18px;background:#eef5fa;color:var(--green);border-color:#cbdde9}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:24px}.two-col label{margin-top:0}.label-row{display:flex;align-items:flex-end;justify-content:space-between;gap:8px;flex-wrap:wrap}.label-row span{font-size:13px;color:var(--muted);margin-bottom:8px}.event{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:10px;padding:12px;border-radius:9px;background:#f4f7fa;margin-bottom:12px;border:1px solid #e5edf3}.event input{grid-column:1}.event textarea{grid-column:1/-1}.remove-event{border:0;background:none;color:#768c9e;font-size:24px;min-width:44px;min-height:48px}.add-button{width:100%;min-height:50px;border:1px dashed #b2cbdc;background:#f9fcfe;border-radius:9px;color:var(--green);font-size:16px;padding:10px}.form-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.form-toolbar .hint{margin:10px 0 16px}.save-controls{display:flex;flex-direction:column;gap:10px;align-items:stretch;margin-top:32px}.compose-button{width:100%;font-size:20px;min-height:64px;border-radius:11px}.save-controls .hint{margin:0;text-align:center;font-size:14px}.save-controls .danger{align-self:center;margin-top:4px}
.preview{position:static;margin-top:28px;background:#f8fbfe}.result-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.result-heading h2{font-size:25px}.result-guide{font-size:16px;color:#5b7186;margin:14px 0}.image-status{font-size:15px;line-height:1.85;color:var(--green);margin:16px 0}.image-page{margin:20px 0 28px}.image-page figcaption{font-size:15px;font-weight:700;margin-bottom:10px;color:#48647c}.saved-note-image{display:block;width:100%;height:auto;scroll-margin-top:12px;border:1px solid #d5e0e9;box-shadow:0 3px 12px #2448660a;-webkit-touch-callout:default;user-select:auto}.image-page-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:10px}.image-file-fallback{font-size:14px;min-height:44px;display:inline-flex;align-items:center}.export-options{margin-top:24px}.export-options h3{font-size:21px;margin:0 0 14px}.simple-save-options{display:grid;gap:12px}.simple-save-options button{width:100%;font-size:18px;min-height:58px}.export-options>.text-button{display:block;width:100%;margin-top:7px}.result-retention{margin-top:20px;border:1px solid #d1e1ed;padding:16px;background:#edf4fa;border-radius:9px}.result-retention p{font-size:16px;font-weight:700;color:var(--green);margin:0 0 10px;font-variant-numeric:tabular-nums}.result-retention button{font-size:16px}.photo-help,.text-view{padding:14px 0;border-top:1px solid var(--line);margin-top:20px}.photo-help summary,.text-view summary{min-height:48px;padding:10px 0;font-size:16px}.photo-help p{font-size:15px}.output-modes{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0}.output-modes button{min-height:50px;padding:10px 8px;font-size:15px;line-height:1.7;border:1px solid #c2d5e3;background:#fff;color:var(--green);border-radius:8px}.output-modes button[aria-pressed=true]{background:var(--green);border-color:var(--green);color:#fff;font-weight:650}.paper{background:#fff;border:1px solid #dde7ee;border-radius:8px;padding:24px;min-height:0}.paper-heading{display:flex;flex-direction:column;gap:8px;border-bottom:1px solid var(--line);padding-bottom:14px;font-size:18px;font-weight:700}.paper-heading span:last-child{font-size:14px;color:var(--muted);font-weight:400}pre{font-family:inherit;white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:1.95;margin:20px 0;color:#314b60}.paper-foot{font-size:13px;color:#7b8f9f;border-top:1px solid #e4ecf2;padding-top:12px;margin:24px 0 0}.empty-output{font-size:16px;line-height:1.9;color:var(--muted)}.clear-screen-button{width:100%;font-size:17px;min-height:54px;margin-top:24px}
.contacts-section{padding:64px 0 20px}.contacts-section h2,.guide h2{font-size:27px;margin-top:8px}.contacts-section>.muted{font-size:16px;max-width:800px}.contacts-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:22px}.contacts-toolbar label{margin:0;font-size:14px}.contacts-toolbar select{width:auto;min-width:180px;flex:1;min-height:48px}.contacts-list{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}.contact-card{padding:24px;border:1px solid var(--line);border-radius:12px;background:#fff;min-width:0}.contact-kind{font-size:14px;color:var(--green);margin:0}.contact-card h3{font-size:21px;margin:8px 0 14px}.contact-detail{font-size:16px;line-height:1.7;margin:7px 0}.contact-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.contact-actions a{text-decoration:none;display:inline-flex;align-items:center;justify-content:center;min-height:48px}.contact-card>.text-button{display:block;min-height:44px;margin-top:10px}.contacts-section>.privacy{margin-top:18px}.guide{padding:50px 0}.guide-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:24px}.guide article{padding:22px;background:#fff;border:1px solid var(--line);border-radius:12px}.guide-icon{font-size:26px;color:var(--green)}.guide article p{font-size:15px;color:var(--muted);line-height:1.85;margin:8px 0 12px}.guide article a{display:inline-flex;align-items:center;min-height:44px;font-size:14px}.about{display:flex;gap:18px;border-top:1px solid var(--line);padding:30px 0 40px}.about h2{font-size:20px}.about p{font-size:14px;color:var(--muted);line-height:1.9;margin:8px 0;max-width:820px}.about details{font-size:14px;color:var(--muted)}summary{cursor:pointer}.about summary{min-height:44px;padding:10px 0}footer{max-width:1120px;margin:auto;padding:22px 32px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;border-top:1px solid var(--line)}footer .brand{font-size:17px}footer>span:last-child{font-size:13px;color:#718699}.manage-link{font-size:14px;min-height:44px;display:inline-flex;align-items:center}
#toast{position:fixed;bottom:max(24px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);max-width:calc(100% - 32px);width:max-content;background:#233f55;color:#fff;border-radius:10px;padding:13px 18px;box-shadow:0 5px 24px #18394d24;font-size:15px;line-height:1.7;display:none;z-index:10;pointer-events:none}dialog{border:1px solid var(--line);border-radius:15px;padding:28px;max-width:480px;width:calc(100% - 36px);color:var(--ink)}dialog::backdrop{background:#152c465e}dialog p{font-size:16px}.dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}.dialog-actions button{min-height:50px}
@media(max-width:800px){header{padding:12px 20px;min-height:70px}header nav{gap:16px}header nav a:last-child{display:none}main{padding:0 20px}.hero{padding:32px 0 26px}h1{font-size:35px}.hero p{font-size:16px}.editor,.preview{padding:24px}.two-col{grid-template-columns:1fr;gap:20px}.contacts-list,.guide-grid{grid-template-columns:1fr}.contact-actions{flex-direction:column;align-items:stretch}.contact-actions a{font-size:16px}.guide{padding-top:36px}.contacts-section{padding-top:44px}.contacts-toolbar label{width:100%}.guide article{padding:22px}.test-example-buttons{flex-direction:column}.test-example-buttons button{width:100%}.retention-actions{flex-wrap:wrap}.retention-actions button{flex:1}.result-heading h2{font-size:23px}.preview{padding:20px}}
@media(max-width:520px){header{padding:10px 18px;min-height:66px}.brand{font-size:20px}.logo{font-size:26px}header nav a:not(:first-child){display:none}header nav a{font-size:14px}main{padding:0 16px}.hero{padding:28px 2px 22px}h1{font-size:30px;margin:10px 0 16px}.hero p{font-size:16px}.desktop-break{display:none}.features{gap:7px;margin-top:16px}.features span{font-size:13px;padding:6px 9px}.flow-steps{justify-content:space-between;gap:8px;margin-top:22px}.flow-steps li{font-size:13px;gap:5px}.flow-steps span{width:22px;height:22px;font-size:12px}.retention-panel{padding:12px 14px;margin-bottom:20px}.retention-title h2{font-size:14px}.retention-panel .retention-message{font-size:14px;line-height:1.8}.retention-details>summary{min-height:44px;padding:10px 0}.retention-detail-body .retention-actions{flex-direction:column}.editor{padding:22px 18px;border-radius:13px}.preview{padding:16px;border-radius:13px}.section-head h2{font-size:19px}.step{width:28px;height:28px;font-size:14px}.section-head.second{margin-top:24px;padding-top:24px}.free-entry h2{font-size:19px}.form-toolbar .hint{font-size:14px}.form-toolbar .text-button{font-size:14px}.test-examples{padding:3px 12px}.test-examples summary{font-size:14px}.recovery-card{padding:18px}.recovery-card .retention-actions{flex-direction:column}.result-heading button{font-size:15px}.simple-save-options button{font-size:18px}.paper{padding:18px 14px}.contacts-section h2,.guide h2{font-size:24px}.contact-card{padding:20px}.about{gap:12px}.about .logo{font-size:24px}footer{display:block;padding:20px}footer>span:last-child{display:block;margin-top:8px}.dialog-actions{flex-wrap:wrap}.dialog-actions button{flex:1}dialog{padding:24px}}
@media(max-width:360px){h1{font-size:27px}.editor{padding:20px 16px}.flow-steps li{font-size:12px}.features span{font-size:12px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
@media print{body{background:#fff;padding:0;color:#000}header,.hero,.retention-panel,.recovery-card,.editor,.result-heading,.result-guide,.image-status,#image-pages,.export-options,.result-retention,.photo-help,.clear-screen-button,.preview>.privacy,.text-view>summary,.output-modes,.contacts-section,.guide,.about,footer,dialog,#toast{display:none!important}main{padding:0;max-width:none}.workspace{display:block}.preview{display:block!important;border:0;padding:0;background:none;margin:0;max-width:none;box-shadow:none}.preview[hidden]{display:none!important}.text-view{border:0;margin:0;padding:0}.paper{display:block!important;border:0;padding:0;box-shadow:none}.paper-heading{font-size:20px}pre{font-size:12pt;color:#000}.paper-foot,.empty-output{display:none!important}@page{margin:20mm}}

@media(max-width:520px){header{gap:10px}.brand{font-size:18px;gap:7px}.logo{font-size:23px}.manage-body header{flex-wrap:wrap}}
