@charset "UTF-8";
:root{--bg:#f6f7f2;--paper:#fff;--ink:#172e27;--muted:#56664f;--line:#dfe5d9;--green:#245c43;--green-dark:#19432f;--lime:#deefb7;--soft:#edf3e7;--red:#9e3434;--red-bg:#fff0ed;--radius:20px;color-scheme:light;font-family:"Pretendard Variable","Pretendard","Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif;line-height:1.65;color:var(--ink);background:var(--bg);font-size:16px;font-variant-numeric:tabular-nums}
*{box-sizing:border-box}
body{margin:0;word-break:keep-all;overflow-wrap:break-word}
button,input,a,summary{-webkit-tap-highlight-color:transparent}
button,input{font:inherit}
button,a,summary{touch-action:manipulation}
button{cursor:pointer}
button:disabled{cursor:not-allowed}
a{color:inherit;text-decoration:none}
button,a,input,summary{outline-offset:4px}
button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #6b9146}
button:disabled{opacity:.5}
button{border:0}
fieldset{margin:0;padding:0;border:0;min-width:0}
h1,h2,h3,p{margin:0}
img{max-width:100%}
[hidden]{display:none!important}
.wrap{max-width:1184px;padding-inline:40px;margin-inline:auto}
.visually-hidden{position:absolute!important;clip-path:inset(50%);width:1px;height:1px;padding:0;border:0;overflow:hidden;white-space:nowrap}
.skip{position:absolute;z-index:10;top:0;left:20px;padding:12px 20px;background:var(--green);color:white;transform:translateY(-120%)}
.skip:focus{transform:translateY(0)}
.site-header{min-height:64px;padding-block:10px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 20px}
.brand{display:inline-flex;align-items:center;gap:10px;font-size:19px;font-weight:800;letter-spacing:-.02em;white-space:nowrap}
.brand-mark{display:flex;width:35px;height:35px;border-radius:10px;background:var(--green);align-items:center;justify-content:center}
.brand-mark svg{width:29px;height:29px;fill:none;stroke:#e5f2d1;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.site-header nav{display:flex;flex-wrap:wrap;gap:4px 28px;font-size:14px;font-weight:600;color:#59665b}
.site-header nav a{padding:10px 0}
.intro{text-align:center;padding:8px 0 24px}
.eyebrow{display:flex;align-items:center;justify-content:center;gap:7px;color:#507046;font-size:14px;font-weight:700;letter-spacing:1px}
.eyebrow>span{width:6px;height:6px;border-radius:50%;background:#719750}
.intro h1{font-size:44px;letter-spacing:-.025em;font-weight:800;margin:8px 0;line-height:1.3}
.title-dot{color:#72965a}
.intro>p{font-size:16px;color:#59675e;letter-spacing:0;line-height:1.7}
.mobile-break{display:none}
.trust{display:inline-flex;align-items:center;gap:7px;padding:8px 13px;margin-top:15px;background:#edf1e7;border-radius:30px;font-size:14px;color:#49634a;max-width:100%;text-align:left;line-height:1.6}
.trust svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.workspace{display:grid;grid-template-columns:minmax(0,1fr) 338px;align-items:start;gap:20px;scroll-margin-top:20px}
.photo-panel,.settings-panel{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 6px 22px #1b372506}
.photo-panel{padding:26px 26px 18px}
.settings-panel{padding:26px 25px}
.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}
.panel-heading h2{display:flex;align-items:center;gap:10px;font-size:17px;letter-spacing:-.02em;font-weight:700}
.step{font-size:14px;font-weight:700;background:var(--soft);border-radius:7px;padding:4px 7px;color:#547345;letter-spacing:.5px}
.panel-aside{font-size:14px;color:var(--muted);white-space:normal;text-align:right}
.drop-zone{position:relative;background:#fbfcf9;border:1.5px dashed #c7d2bc;border-radius:13px;transition:background .15s,border-color .15s}
.drop-zone.dragging{background:#e5f0d6;border-color:#427047;outline:3px solid #a3be87}
.drop-zone.has-photo{background:#f4f6f1;border-style:solid;border-color:var(--line)}
.file-input{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
.empty-state{min-height:325px;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px 15px}
.empty-state h3{font-size:19px;letter-spacing:-.02em;margin-bottom:7px}
.empty-state>p{font-size:15px;color:var(--muted)}
.empty-state .button{margin-top:19px}
.empty-state .file-hint{font-size:14px;letter-spacing:-.02em;margin-top:16px;line-height:1.7}
.paste-hint{font-size:14px;color:var(--muted);margin-top:5px}
.upload-illustration{width:91px;height:72px;position:relative;margin-bottom:22px}
.photo-back{position:absolute;left:10px;top:8px;width:66px;height:51px;border-radius:9px;border:1px solid #d5dfc9;background:#e9efdf;transform:rotate(-14deg)}
.photo-front{position:absolute;left:20px;top:5px;width:65px;height:51px;border:1px solid #bfd0af;background:#fcfff7;border-radius:9px;transform:rotate(8deg)}
.photo-front svg{height:47px;width:55px;fill:none;stroke:#779b56;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.photo-front span{position:absolute;display:grid;place-items:center;right:-9px;bottom:-10px;width:28px;height:28px;background:var(--green);color:white;border:3px solid #fbfcf9;border-radius:50%;font-size:20px;line-height:1;font-weight:400}
.button{display:inline-flex;justify-content:center;align-items:center;gap:17px;min-height:48px;padding:12px 22px;border-radius:9px;font-size:15px;font-weight:700;letter-spacing:0;transition:background .15s,transform .15s;line-height:1.4}
.button:hover:not(:disabled){transform:translateY(-1px)}
.button-primary{background:var(--green);color:#fff}
.button-primary:hover:not(:disabled){background:var(--green-dark)}
.button-primary:disabled{opacity:1;background:#e4eade;color:#7d8976}
.button-wide{width:100%;justify-content:space-between}
.panel-note{display:flex;gap:7px;font-size:14px;color:var(--muted);margin-top:15px}
.panel-note>span{color:#90a87e}
.settings-description{font-size:15px;color:var(--muted);margin:-4px 0 17px}
.presets{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,3.5em),1fr));gap:6px}
.presets button{padding:10px 0;border-radius:7px;background:#f7f8f4;color:#5c6e5a;border:1px solid #e4e8df;font-size:15px;font-weight:700;min-height:46px;line-height:1.4;white-space:nowrap}
.presets button.active{background:#e7efd9;color:#2b552e;border-color:#809f5f}
.input-label{display:block;font-size:15px;color:var(--muted);font-weight:700;margin:19px 0 7px}
.number-field{display:flex;align-items:center;gap:8px;border:1px solid #d2dbca;border-radius:9px;background:#fcfdfb;padding:0 13px}
.number-field:focus-within{outline:2px solid #6b9146;outline-offset:2px}
.number-field input{width:100%;min-width:0;padding:12px 0;font-size:26px;font-weight:650;color:var(--ink);background:transparent;border:0;outline:none;appearance:textfield;font-variant-numeric:tabular-nums;line-height:1.4}
.number-field input::-webkit-inner-spin-button{appearance:none}
.number-field>span{font-size:14px;color:var(--muted);white-space:nowrap}
.field-help{font-size:14px;color:var(--muted);margin:7px 0 0}
.field-error{font-size:14px;color:var(--red);margin-top:8px}
.setting-divider{height:1px;background:#edf0e8;margin:22px 0 18px}
.process-note{display:flex;gap:8px;align-items:flex-start;margin-bottom:18px}
.process-note p{font-size:14px;color:var(--muted)}
.small-check{font-size:14px;width:16px;height:16px;border-radius:50%;background:#edf3e4;color:#5d8150;display:grid;place-items:center;margin-top:1px;flex-shrink:0}
.action-hint{font-size:14px;color:var(--muted);text-align:center;margin-top:10px}
.conversion-note{font-size:14px;line-height:1.65;padding:10px 12px;margin-bottom:14px;border:1px solid #dddfc5;border-radius:9px;background:#faf9ed;color:#62613c}
#compress.has-result{background:var(--soft);color:var(--green);border:1px solid #c9d6bc}
#compress.has-result:hover{background:#e0ebd6}
.download-feedback{margin-top:12px;padding:10px 12px;border-radius:8px;background:var(--soft);font-size:14px;color:var(--green);line-height:1.65}
.next-file{display:block;margin:12px auto 0;white-space:normal;text-align:center}
.settings-panel{scroll-margin-top:16px}
#target-heading:focus-visible,#result:focus-visible{outline:2px solid #6b9146;outline-offset:5px;border-radius:5px}
.below-tool{display:flex;justify-content:space-between;gap:12px;font-size:14px;color:var(--muted);margin:14px 6px 0}
.below-tool>span:first-child{color:var(--muted)}
.loading-state{min-height:325px;display:flex;gap:15px;align-items:center;justify-content:center;flex-direction:column;font-size:15px;color:var(--muted)}
.spinner{display:inline-block;width:24px;height:24px;border:2px solid #cfddc4;border-top-color:var(--green);border-radius:50%;animation:spin .9s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.preview-tabs{display:flex;align-items:center;gap:4px;padding:10px 12px;border-bottom:1px solid var(--line);flex-wrap:wrap}
.preview-tabs button{min-height:44px;padding:5px 12px;border-radius:6px;font-size:15px;font-weight:700;background:transparent;color:#435d3b}
.preview-tabs button.active{background:white;color:var(--green);box-shadow:0 1px 4px #1b372510}
.preview-tabs>span{margin-left:auto;font-size:14px;color:var(--muted)}
.image-stage{height:260px;display:flex;align-items:center;justify-content:center;position:relative;background-color:#f4f6ef;background-image:linear-gradient(45deg,#e8eddf 25%,transparent 25%),linear-gradient(-45deg,#e8eddf 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e8eddf 75%),linear-gradient(-45deg,transparent 75%,#e8eddf 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0;overflow:hidden}
.image-stage img{display:block;max-height:100%;max-width:100%;object-fit:contain}
.enlarge{position:absolute;right:10px;bottom:10px;width:35px;height:35px;background:#ffffffed;border:1px solid #e2e6dd;border-radius:8px;display:grid;place-items:center}
.enlarge svg{width:18px;height:18px;fill:none;stroke:var(--green);stroke-width:1.5;stroke-linecap:round}
.photo-info{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:12px 14px;border-top:1px solid var(--line);background:#fafcf7;border-radius:0 0 12px 12px}
.file-identity{min-width:0}
.file-identity strong{display:block;font-size:14px;overflow-wrap:anywhere;line-height:1.6}
.file-identity>span{display:block;font-size:14px;color:var(--muted);margin-top:3px;overflow-wrap:anywhere;word-break:normal}
.text-button{font-size:15px;font-weight:700;color:var(--green);background:transparent;padding:8px 4px;white-space:nowrap;text-decoration:underline;text-underline-offset:3px;min-height:44px;line-height:1.4}
.alert{padding:13px 14px;margin-top:14px;font-size:15px;line-height:1.7;border-radius:9px;overflow-wrap:anywhere}
.error{background:var(--red-bg);color:var(--red)}
.progress-state{margin-top:17px}
.progress-state>div{display:flex;align-items:center;justify-content:space-between;font-size:14px;color:var(--green)}
progress{height:6px;display:block;width:100%;margin-top:7px;border:0;border-radius:4px;overflow:hidden;background:#e9efe2;accent-color:var(--green)}
progress::-webkit-progress-bar{background:#e9efe2}
progress::-webkit-progress-value{background:var(--green);border-radius:4px}
progress::-moz-progress-bar{background:var(--green)}
.result{border-top:1px solid var(--line);margin-top:23px;padding-top:22px}
.result-top{display:flex;align-items:center;gap:7px}
.result-top h3{font-size:16px;font-weight:700}
.result-check{width:17px;height:17px;display:grid;place-items:center;background:var(--lime);color:var(--green);border-radius:50%;font-size:14px}
.result-size{display:flex;align-items:baseline;gap:10px;margin-top:12px;flex-wrap:wrap}
.result-size strong{font-size:34px;font-weight:800;letter-spacing:-.02em;line-height:1.3;font-variant-numeric:tabular-nums}
.result-size>span{font-size:14px;color:#45632b;background:#eef4e3;padding:3px 6px;border-radius:5px}
.result-detail{font-size:14px;color:var(--muted);margin:8px 0 10px;overflow-wrap:anywhere}
.result-notice{font-size:14px;color:var(--muted);line-height:1.75;margin-bottom:16px;white-space:pre-line}
.download-help{font-size:14px;color:var(--muted);margin-top:9px;text-align:center}
.guide{display:grid;grid-template-columns:250px minmax(0,1fr);gap:30px;padding:63px 5px 54px;border-bottom:1px solid var(--line)}
.section-intro .eyebrow{justify-content:flex-start;font-size:14px;letter-spacing:1.4px;color:var(--muted)}
.section-intro h2{font-size:23px;line-height:1.55;letter-spacing:-.025em;font-weight:750;margin-top:9px}
.how-steps{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:0;padding:4px 0 0}
.how-steps li>span{font-size:14px;color:#536e3b;font-weight:700}
.how-steps h3{font-size:16px;letter-spacing:-.02em;margin:12px 0 8px}
.how-steps p{font-size:15px;color:var(--muted);line-height:1.8}
.faq{display:grid;grid-template-columns:250px minmax(0,1fr);gap:30px;padding:41px 5px 48px}
.faq h2{font-size:18px;line-height:1.6;letter-spacing:-.02em;margin-top:9px}
.faq-list details{border-bottom:1px solid var(--line);scroll-margin-top:25px}
.faq-list summary{cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:15px;list-style:none;font-size:15px;padding:16px 0;color:#53664f;min-height:56px;line-height:1.7;overflow-wrap:anywhere}
.faq-list summary::-webkit-details-marker{display:none}
.faq-list summary>span{font-size:19px;font-weight:400;color:#8da17d;transition:transform .15s}
.faq-list details[open] summary>span{transform:rotate(45deg)}
.faq-list details p{font-size:15px;color:var(--muted);line-height:1.85;padding:0 15px 20px 0}
.site-footer{border-top:1px solid var(--line);padding-top:27px;padding-bottom:35px;display:flex;gap:20px;align-items:center;color:var(--muted);font-size:14px}
.site-footer .brand{font-size:14px;color:#47633e;font-weight:750;letter-spacing:-.02em}
.site-footer .brand span{color:#86a26b;font-size:16px}
.site-footer>a:last-child{margin-left:auto;padding:8px 0}
dialog{border:1px solid #d8e0ce;border-radius:16px;padding:18px 22px;background:var(--paper);color:var(--ink);max-width:min(94vw,1000px);max-height:92vh;width:fit-content}
dialog::backdrop{background:#182b23bb;backdrop-filter:blur(4px)}
.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:25px;margin-bottom:15px}
.dialog-heading h2{font-size:17px}
dialog img{display:block;max-width:100%;max-height:68vh;object-fit:contain;margin:auto}
dialog>p{font-size:14px;color:var(--muted);margin-top:13px;line-height:1.7}
.noscript-message{padding:20px;background:var(--red-bg);color:var(--red);text-align:center}
.intro>.eyebrow{display:none}
.drop-zone.keyboard-focus{outline:3px solid #6b9146;outline-offset:4px}
.faq-list p a{text-decoration:underline;text-underline-offset:.2em;color:var(--green);overflow-wrap:anywhere}
.faq-list summary>span{flex-shrink:0}


@media(min-width:1440px){
  .empty-state{min-height:350px}
  .image-stage{height:285px}
}
@media(max-width:960px){
  .wrap{padding-inline:25px}
  .workspace{grid-template-columns:minmax(0,1fr) 310px;gap:15px}
  .photo-panel,.settings-panel{padding:22px 20px}
  .panel-aside{display:none}
  .guide,.faq{grid-template-columns:200px minmax(0,1fr);gap:20px}
  .how-steps{gap:16px}
  .photo-info{align-items:flex-start}
}
@media(max-width:740px){
  .wrap{padding-inline:20px}
  .brand{font-size:18px}
  .site-header nav{gap:17px}
  .intro{padding:8px 0 20px}
  .intro h1{font-size:37px;margin:6px 0}
  .trust{padding:8px 11px;margin-top:14px}
  .workspace{grid-template-columns:minmax(0,1fr);gap:17px}
  .photo-panel{padding:20px 20px 16px}
  .settings-panel{padding:23px}
  .panel-heading{margin-bottom:18px}
  .panel-aside{display:block}
  .empty-state{min-height:230px;padding:18px 10px}
  .upload-illustration{display:none}
  .empty-state .button{margin-top:14px}
  .empty-state .file-hint{margin-top:12px}
  .empty-state .paste-hint{display:none}
  .panel-note{display:none}
  .image-stage{height:180px}
  .settings-panel .panel-heading{margin-bottom:17px}
  .number-field input{padding:10px 0}
  .process-note{margin-bottom:16px}
  .setting-divider{margin:19px 0 16px}
  .guide{grid-template-columns:minmax(0,1fr);gap:27px;padding-top:43px;padding-bottom:36px}
  .section-intro h2 br{display:none}
  .how-steps{gap:15px}
  .how-steps p br{display:none}
  .faq{grid-template-columns:minmax(0,1fr);gap:10px;padding-top:26px;padding-bottom:32px}
  .site-footer{flex-wrap:wrap;gap:10px 18px;padding-top:23px;padding-bottom:25px}
  .below-tool{flex-wrap:wrap;gap:4px}
  .enlarge{width:44px;height:44px}
}
@media(max-width:480px){
  .panel-aside{display:none}
  .preview-tabs>span{width:100%;margin-left:0}
  .how-steps{grid-template-columns:minmax(0,1fr);gap:23px}
  .how-steps h3{display:inline;margin-left:11px}
  .how-steps p{margin:6px 0 0 28px}
}
@media(max-width:380px){
  .wrap{padding-inline:14px}
  .site-header nav{gap:12px}
  .brand{font-size:16px;gap:7px}
  .brand-mark{width:30px;height:30px}
  .intro h1{font-size:33px}
  .mobile-break{display:block}
  .trust{gap:5px;border-radius:14px}
  .photo-panel{padding:18px 14px 13px}
  .settings-panel{padding:21px 18px}
  .panel-heading{gap:7px}
  .empty-state{padding-inline:7px}
  .site-footer>span{display:none}
  .photo-info{padding:10px;flex-wrap:wrap}
  .file-identity{flex:1 1 100%}
  .image-stage{height:170px}
}
@media(prefers-reduced-motion:reduce){
  *{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}

/* Native CJK stacks keep Japanese and Chinese readable without extra font downloads. */
:root:lang(ja){font-family:"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,system-ui,sans-serif}
:root:lang(zh){font-family:"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",system-ui,sans-serif}
body:lang(ja),body:lang(zh){word-break:normal;line-break:strict}
select{font:inherit;color:inherit;max-width:100%}
select:focus-visible{outline:3px solid #6b9146;outline-offset:4px}
#language-select{min-height:44px;padding:8px 30px 8px 12px;border:1px solid #c7d2bc;border-radius:9px;background-color:var(--paper);font-size:14px;cursor:pointer}
.site-header nav{margin-left:auto}
#language-links{display:flex;flex-wrap:wrap;gap:4px 18px;font-size:14px;align-items:center}
#language-links a{min-height:44px;display:inline-flex;align-items:center;text-decoration:underline;text-underline-offset:4px}
#language-links a[aria-current="page"]{font-weight:750;color:var(--green)}
.brand{white-space:normal;min-width:0}
.brand-mark{flex-shrink:0}
@media(max-width:740px){
  .site-header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 12px}
  .site-header>.brand{grid-column:1;grid-row:1;line-height:1.35;font-size:17px}
  .site-header>nav{grid-column:1/-1;grid-row:2;justify-content:flex-end;gap:5px 18px;margin:0}
  .site-header>nav a{padding-block:4px;min-height:32px}
  .site-header>#language-select,.site-header>.language-picker{grid-column:2;grid-row:1;min-width:0}
  #language-select{font-size:14px;width:108px;padding-left:8px;padding-right:8px}
  .site-footer .brand{max-width:100%}
  #language-links{flex-basis:100%;column-gap:18px}
  .panel-heading h2{min-width:0}
  .intro h1:lang(en){font-size:clamp(28px,7vw,37px);text-wrap:balance}
  .intro h1:lang(ja),.intro h1:lang(zh){font-size:clamp(27px,7vw,34px);text-wrap:balance}
  .intro p:lang(ja),.intro p:lang(zh){text-wrap:pretty}
}

.language-picker{position:relative;flex-shrink:0}
.language-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:9px 11px;border:1px solid #d7e0cf;border-radius:12px;background:#fff;color:var(--green);box-shadow:0 1px 2px #1b372504;transition:border-color .16s,background .16s,box-shadow .16s}
.language-toggle:hover{background:#edf3e7;border-color:#b4c6a8}
.language-toggle[aria-expanded="true"]{background:#edf3e7;border-color:#98b27f;box-shadow:0 0 0 3px #245c4308}
.language-current{font-size:14px;line-height:1.4;font-weight:650;white-space:nowrap}
.language-globe{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.55;flex-shrink:0}
.language-chevron{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;transition:transform .16s}
.language-toggle[aria-expanded="true"] .language-chevron{transform:rotate(180deg)}
.language-popover{position:absolute;z-index:60;right:0;top:calc(100% + 9px);width:216px;max-width:calc(100vw - 28px);padding:8px;background:#fff;border:1px solid #dfe5d9;border-radius:16px;box-shadow:0 12px 36px #183c231a,0 2px 8px #183c2308;animation:language-appear .14s ease-out}
.language-menu-heading{padding:5px 10px 9px;font-size:12px;line-height:1.5;font-weight:600;color:#61725a}
.language-option{display:flex;align-items:center;gap:9px;width:100%;min-height:44px;padding:10px;border-radius:9px;background:transparent;text-align:left;font-size:14px;font-weight:500;line-height:1.5;color:var(--ink)}
.language-option:hover,.language-option:focus-visible{background:#f2f5ed}
.language-option:focus-visible{outline:2px solid #6b9146;outline-offset:-2px}
.language-option[aria-checked="true"]{background:#edf3e4;color:#245c43;font-weight:700}
.language-code{margin-left:auto;font:500 10px/1.4 system-ui,sans-serif;letter-spacing:.06em;color:#6c7c65}
.language-selected-mark{width:14px;visibility:hidden;color:#356947;font-size:14px;text-align:center}
.language-option[aria-checked="true"] .language-selected-mark{visibility:visible}
@keyframes language-appear{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:380px){.site-header>.brand{font-size:16px}.language-toggle{gap:6px;padding-inline:9px}.language-globe{width:16px;height:16px}}
