:root{color-scheme:light;--paper: #f4f0e6;--paper-deep: #e7e0cf;--surface: #fffdf7;--ink: #172522;--muted: #58635f;--forest: #1e4b42;--forest-dark: #143a33;--gold: #d9aa45;--gold-soft: #f4dfae;--coral: #b8553f;--line: #d9d3c4;--shadow: 0 22px 60px rgba(37, 48, 43, .12);--radius-lg: 24px;--radius-md: 14px;font-family:Hiragino Kaku Gothic ProN,Yu Gothic,Meiryo,sans-serif;background:var(--paper);color:var(--ink)}html{scroll-behavior:smooth}body{margin:0;min-width:320px;background:var(--paper);line-height:1.75}button,textarea,select{font:inherit}button,summary,.dropzone{-webkit-tap-highlight-color:transparent}button:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible,.dropzone:focus-within{outline:3px solid rgba(184,85,63,.38);outline-offset:3px}.site-header,main,footer{width:min(1120px,calc(100% - 40px));margin-inline:auto}.site-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:26px 0}.brand{display:inline-flex;align-items:center;gap:12px;color:inherit;text-decoration:none}.brand-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:var(--forest);color:var(--gold-soft);font:800 22px/1 Georgia,serif;transform:rotate(-3deg)}.brand b{display:block;font:800 15px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.12em}.brand small{display:block;margin-top:4px;color:var(--muted);font-size:11px}.local-badge{display:inline-flex;align-items:center;gap:8px;padding:7px 12px;border:1px solid #bdd2c8;border-radius:999px;color:var(--forest);background:#edf5ee;font-size:12px;font-weight:700}.local-badge span{color:#4d9a70;font-size:9px}.hero{padding:78px 0 48px}.eyebrow,.step-label{margin:0 0 10px;color:var(--coral);font:800 12px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.13em}.hero h1{max-width:920px;margin:0;font-family:Yu Mincho,Hiragino Mincho ProN,serif;font-size:clamp(42px,8vw,84px);line-height:1.12;letter-spacing:-.045em}.hero h1 span{color:var(--forest)}.hero-copy{max-width:720px;margin:28px 0 0;color:var(--muted);font-size:16px}.tool-shell{position:relative;padding:clamp(24px,5vw,50px);overflow:hidden;border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow)}.tool-shell:before{content:"";position:absolute;top:-90px;right:-70px;width:250px;height:250px;border:34px solid rgba(217,170,69,.16);border-radius:50%;pointer-events:none}.tool-heading-row,.file-meta,footer{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}h2{margin:0;font-family:Yu Mincho,Hiragino Mincho ProN,serif;font-size:clamp(24px,4vw,36px);line-height:1.35}.text-button{padding:7px 0;border:0;border-bottom:1px solid currentColor;background:transparent;color:var(--forest);cursor:pointer;font-weight:700}#sourceText,#resultText{width:100%;border:1px solid #cbc4b3;border-radius:var(--radius-md);background:#fff;color:var(--ink);font-family:ui-monospace,SFMono-Regular,Consolas,BIZ UDPGothic,monospace;line-height:1.7;resize:vertical}#sourceText,#resultText{min-height:280px;padding:18px;font-size:15px}#sourceText::placeholder,#resultText::placeholder{color:#9a988f}#resultText{background:#f7f8f4}.repair-grid{display:grid;grid-template-columns:minmax(0,1fr) 42px minmax(0,1fr);align-items:start;margin-top:28px}.editor-panel{min-width:0}.editor-heading{display:flex;align-items:baseline;gap:10px;margin-bottom:10px}.editor-heading span{padding:3px 7px;border-radius:5px;background:var(--paper-deep);color:var(--muted);font:800 10px ui-monospace,monospace}.editor-heading label{font-size:14px;font-weight:800}.flow-arrow{display:grid;place-items:center;min-height:280px;color:var(--coral);font:700 24px/1 Georgia,serif}.primary-actions{display:flex;align-items:center;gap:10px;margin-top:14px;flex-wrap:wrap}.primary-button,.secondary-button,.copy-button{border-radius:10px;cursor:pointer;font-weight:800;transition:transform .15s ease,background .15s ease,border-color .15s ease}.primary-button{display:inline-flex;align-items:center;justify-content:space-between;gap:36px;min-width:240px;padding:14px 18px;border:1px solid var(--forest);background:var(--forest);color:#fff}.primary-button:hover{background:var(--forest-dark);transform:translateY(-1px)}.primary-button:disabled{opacity:.45;cursor:not-allowed;transform:none}.primary-button.compact{min-width:210px;margin-top:16px}.secondary-button{padding:14px 18px;border:1px solid var(--line);background:transparent;color:var(--ink)}.secondary-button:hover{border-color:var(--ink)}.shortcut{margin:8px 0 0;color:var(--muted);font-size:11px}.status{min-height:1.75em;margin:0;color:var(--forest);font-size:13px;font-weight:700}.result-actions{display:flex;align-items:center;gap:14px;margin-top:14px}.copy-button{min-width:104px;padding:9px 14px;border:1px solid var(--forest);background:transparent;color:var(--forest)}.copy-button:hover,.copy-button.copied{background:var(--forest);color:#fff}.copy-button:disabled{opacity:.42;cursor:not-allowed;background:transparent;color:var(--forest)}.result-copy{min-height:48px}.alternatives{margin-top:14px;border-top:1px solid var(--line)}.alternatives summary{padding:14px 2px 8px;cursor:pointer;color:var(--muted);font-size:12px;font-weight:700}.alternate-list{display:flex;gap:8px;flex-wrap:wrap;padding:4px 0 2px}.alternate-button{padding:8px 11px;border:1px solid var(--line);border-radius:8px;background:transparent;color:var(--ink);cursor:pointer;font-size:12px;font-weight:700}.alternate-button:hover{border-color:var(--forest);color:var(--forest)}.trust-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:0;margin:28px 0 72px;border-block:1px solid var(--line)}.trust-strip article{position:relative;padding:28px}.trust-strip article+article{border-left:1px solid var(--line)}.trust-strip span{position:absolute;top:28px;right:28px;color:#a7a090;font:700 11px ui-monospace,monospace}.trust-strip h3{margin:0 0 8px;font-size:15px}.trust-strip p{margin:0;color:var(--muted);font-size:12px}.tool-promo{display:flex;align-items:center;justify-content:space-between;gap:30px;margin:-36px 0 72px;padding:28px 32px;border-radius:var(--radius-lg);background:var(--forest);color:#fff}.tool-promo .eyebrow{color:var(--gold-soft)}.tool-promo h2{font-size:clamp(22px,3vw,30px)}.tool-promo p:last-child{margin:8px 0 0;color:#d9e5df;font-size:13px}.tool-promo>a{display:inline-flex;align-items:center;justify-content:space-between;gap:30px;min-width:220px;padding:13px 16px;border-radius:10px;background:var(--gold-soft);color:var(--forest-dark);font-weight:900;text-decoration:none}.furima-promo{background:#674235}.furima-promo>a{background:#f5d8bd;color:#4f2c22}.unit-promo{background:#455d78}.unit-promo>a{background:#dce8f2;color:#263d55}.csv-promo{background:#244d49}.csv-promo>a{background:#d8ebe2;color:#173c38}.shipping-promo{background:#315f70}.shipping-promo>a{background:#f2d8c9;color:#573226}.pdf-promo{background:#283b4b}.pdf-promo>a{background:#f0d49d;color:#28333c}.split-promo{background:#4d3e58}.split-promo>a{background:#d8e9e4;color:#3b4950}.image-pdf-promo{background:#214653}.image-pdf-promo>a{background:#f0d49d;color:#283c43}.study-timer-promo{background:#263f3a}.study-timer-promo>a{background:#f2dfaa;color:#173f39}.easy-chart-promo{background:#173f39}.easy-chart-promo>a{background:#f1d0bf;color:#4f2d25}.screen-recorder-promo{background:#162b3a}.screen-recorder-promo>a{background:#dcebf3;color:#162b3a}.character-count-promo{background:#3e4f68}.character-count-promo>a{background:#e3e9f2;color:#29384c}.days-calculator-promo{background:#6a4b3d}.days-calculator-promo>a{background:#f3dfc9;color:#4f3429}.discount-calculator-promo{background:#24594c}.discount-calculator-promo>a{background:#d9eee4;color:#174036}.percentage-calculator-promo{background:#5a3f5d}.percentage-calculator-promo>a{background:#eadfed;color:#412d45}.postal-promo{background:#365f59}.postal-promo>a{background:#d9ece6;color:#21443e}.calendar-promo{background:#7a4b3e}.calendar-promo>a{background:#f2d9c8;color:#543126}.file-tool{margin:0 0 84px}.file-tool>details{border:1px solid var(--line);border-radius:var(--radius-lg);background:#ebe4d5;overflow:hidden}.file-tool summary{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:28px 32px;cursor:pointer;list-style:none}.file-tool summary::-webkit-details-marker{display:none}.file-tool summary span:first-child{display:flex;align-items:center;gap:18px}.file-tool summary small{padding:5px 8px;border-radius:6px;background:var(--forest);color:#fff;font:700 10px ui-monospace,monospace}.file-tool summary strong{font-family:Yu Mincho,Hiragino Mincho ProN,serif;font-size:20px}.summary-action{color:var(--forest);font-size:13px;font-weight:800}.file-tool-body{padding:0 32px 32px}.section-intro{max-width:720px;margin:0 0 20px;color:var(--muted);font-size:14px}.dropzone{display:grid;place-items:center;min-height:180px;padding:25px;border:2px dashed #a8a18f;border-radius:var(--radius-md);background:#ffffff73;cursor:pointer;text-align:center}.dropzone.dragging{border-color:var(--coral);background:#fff7e8}.dropzone input{position:absolute;width:1px;height:1px;opacity:0}.drop-icon{font:300 34px/1 Georgia,serif;color:var(--coral)}.dropzone strong{margin-top:8px}.dropzone small{margin-top:4px;color:var(--muted)}.file-result{margin-top:22px;padding:22px;border-radius:var(--radius-md);background:var(--surface)}.file-meta{justify-content:flex-start}.file-meta>div{min-width:210px}.file-meta small,.preview-box small{display:block;color:var(--muted);font-size:11px}.file-meta strong{display:block;margin-top:4px;word-break:break-word}.encoding-settings{display:flex;align-items:end;gap:14px;margin-top:22px}.encoding-settings label{display:grid;gap:7px;flex:1;color:var(--muted);font-size:12px}.encoding-settings select{width:100%;padding:11px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink)}.preview-box{margin-top:20px;padding:14px;border:1px solid var(--line);border-radius:9px;background:#fff}.preview-box pre{max-height:180px;margin:7px 0 0;overflow:auto;white-space:pre-wrap;word-break:break-all;font:12px/1.65 ui-monospace,monospace}.warning{margin:12px 0 0;font-size:12px;font-weight:700}.warning.safe{color:#347155}.warning.danger{color:var(--coral)}.guide{display:grid;grid-template-columns:.85fr 1.4fr;gap:60px;margin-bottom:90px}.guide-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.guide-grid article{padding:24px;border-top:3px solid var(--forest);background:#ffffff6b}.guide-grid article+article{border-top-color:var(--coral)}.guide-kicker{margin:0 0 14px;font-size:11px;font-weight:800;letter-spacing:.08em}.guide-kicker.good{color:var(--forest)}.guide-kicker.bad{color:var(--coral)}.guide-grid h3{margin:0 0 10px;font-size:17px}.guide-grid article>p:last-child{margin:0;color:var(--muted);font-size:13px}.faq{max-width:820px;margin-bottom:90px}.faq h2{margin-bottom:24px}.faq details{border-top:1px solid var(--line)}.faq details:last-child{border-bottom:1px solid var(--line)}.faq summary{padding:18px 4px;cursor:pointer;font-weight:800}.faq details p{margin:-5px 0 20px;color:var(--muted);font-size:14px}footer{align-items:end;padding:28px 0 42px;border-top:1px solid var(--line)}footer b{font:800 14px ui-monospace,monospace;letter-spacing:.14em}footer p{margin:5px 0 0;color:var(--muted);font-size:12px}footer nav{display:flex;flex:none;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:22px;color:var(--muted);font-size:11px}footer nav a,footer nav span{white-space:nowrap}footer nav a{color:inherit;text-decoration:none}footer nav a:hover{color:var(--forest);text-decoration:underline}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.home-page{background:radial-gradient(circle at 84% 7%,rgba(217,170,69,.16),transparent 24rem),var(--paper)}.home-header{padding-block:25px;border-bottom:1px solid rgba(30,75,66,.13)}.home-nav{display:flex;align-items:center;gap:clamp(14px,3vw,30px)}.home-nav a{color:var(--muted);text-decoration:none;font-size:11px;font-weight:900}.home-nav a:hover{color:var(--forest)}.home-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(420px,.9fr);gap:clamp(34px,6vw,72px);align-items:center;min-height:450px;padding:56px 0 62px}.home-hero h1{margin:0;font:900 clamp(49px,7vw,78px)/1.06 "Yu Mincho","Hiragino Mincho ProN",serif;letter-spacing:-.055em}.home-hero h1 span{color:var(--forest)}.home-hero>div>p:not(.eyebrow){max-width:590px;margin:22px 0 0;color:var(--muted);font-size:14px}.home-primary-link{display:inline-flex;align-items:center;justify-content:space-between;gap:55px;min-width:225px;margin-top:29px;padding:13px 17px;border-radius:10px;background:var(--forest);color:#fff;text-decoration:none;font-size:13px;font-weight:900}.home-primary-link:hover{background:var(--forest-dark)}.home-feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.home-feature-grid a{position:relative;min-height:240px;overflow:hidden;border:1px solid var(--line);border-radius:18px;background:#e9f0e9;color:var(--ink);text-decoration:none;box-shadow:var(--shadow);transition:transform .18s ease,box-shadow .18s ease}.home-feature-grid a:last-child{background:#f5e6d9}.home-feature-grid a:hover{transform:translateY(-3px);box-shadow:0 16px 34px #25302b21}.feature-image{position:absolute;inset:12px 12px 65px;width:calc(100% - 24px);height:calc(100% - 77px);border-radius:13px;background:#fbf8ec;object-fit:cover}.feature-copy{position:absolute;right:16px;bottom:14px;left:16px;display:grid;gap:2px}.feature-copy small{color:var(--muted);font-size:9px;font-weight:800}.feature-copy b{font-size:14px}.home-tools{padding:60px 0 30px;border-top:1px solid var(--line)}.catalog-heading{display:flex;align-items:end;justify-content:space-between;gap:30px;margin-bottom:28px}.catalog-heading>p{margin:0 0 7px;padding:6px 11px;border:1px solid #bdd2c8;border-radius:999px;background:#edf5ee;color:var(--forest);font-size:10px;font-weight:900}.tool-finder{position:sticky;z-index:3;top:10px;display:grid;grid-template-columns:minmax(260px,1fr) auto auto;gap:12px 18px;align-items:center;margin-bottom:30px;padding:14px;border:1px solid var(--line);border-radius:16px;background:#fffdf7f0;box-shadow:0 12px 30px #25302b14;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.tool-search{display:grid;grid-template-columns:32px minmax(0,1fr);align-items:center;border:1px solid #b8c5be;border-radius:11px;background:#fff}.tool-search>span{text-align:center;color:var(--forest);font:900 19px/1 serif}.tool-search input{min-width:0;padding:11px 12px 11px 0;border:0;outline:0;background:transparent;color:var(--ink);font:inherit;font-size:12px}.tool-search:focus-within{border-color:var(--forest);box-shadow:0 0 0 3px #1e4b421a}.tool-filters{display:flex;flex-wrap:wrap;gap:5px}.tool-filters button{padding:7px 10px;border:1px solid var(--line);border-radius:999px;background:transparent;color:var(--muted);cursor:pointer;font-size:9px;font-weight:900}.tool-filters button:hover,.tool-filters button.is-active{border-color:var(--forest);background:var(--forest);color:#fff}.tool-result-count{margin:0;white-space:nowrap;color:var(--muted);font-size:9px;font-weight:900}.tool-category{padding:24px 0 30px;border-top:1px solid var(--line)}.tool-category[hidden],.home-tool-card[hidden]{display:none}.category-heading{display:flex;gap:9px;align-items:center;margin-bottom:12px}.category-heading>span{display:grid;min-width:23px;height:23px;place-items:center;border-radius:999px;background:#e8e0ce;color:var(--forest);font:900 9px/1 ui-monospace,monospace}.category-heading h3{margin:0;font:900 18px/1.25 Yu Mincho,serif}.home-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.home-tool-card{position:relative;display:grid;grid-template-columns:96px minmax(0,1fr);gap:12px;align-items:center;min-height:90px;padding:8px 27px 8px 8px;overflow:hidden;border:1px solid var(--line);border-radius:13px;background:#fffdf7c7;color:var(--ink);text-decoration:none;transition:border-color .15s ease,transform .15s ease,box-shadow .15s ease}.home-tool-card:hover{border-color:#99aaa3;transform:translateY(-2px);box-shadow:0 10px 25px #25302b14}.home-tool-card:after{content:"›";position:absolute;right:10px;color:var(--coral);font-size:18px;font-weight:900}.tool-image{display:block;width:96px;height:72px;overflow:hidden;border-radius:10px;background:#fbf8ec}.tool-image img{display:block;width:100%;height:100%;object-fit:cover}.tool-card-copy{display:grid;gap:4px;min-width:0}.tool-card-copy strong{overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.tool-card-copy small{display:-webkit-box;overflow:hidden;color:var(--muted);font-size:9px;line-height:1.45;-webkit-box-orient:vertical;-webkit-line-clamp:2}.othello-tool-icon{display:grid;grid-template-columns:repeat(2,1fr);place-items:center;padding:18% 22%;background:linear-gradient(135deg,#16734c,#38a06e)}.othello-tool-icon i,.othello-tool-icon b{display:block;width:82%;aspect-ratio:1;border-radius:50%;box-shadow:inset -5px -5px 7px #00000038,inset 3px 3px 5px #ffffff4d,0 2px 3px #00000038}.othello-tool-icon i{background:#14221b}.othello-tool-icon b{background:#edf3ed}.chess-tool-icon{display:grid;place-items:center;background:linear-gradient(135deg,#d6bd92,#8a6845);color:#1c2730;font:900 clamp(42px,6vw,76px)/1 Georgia,serif;text-shadow:0 1px 0 rgba(255,255,255,.55)}.tool-empty{margin:22px 0 50px;padding:28px;border:1px dashed #b8c5be;border-radius:14px;color:var(--muted);text-align:center;font-size:12px}.home-footer{margin-top:60px}.policy-back{color:var(--forest);text-decoration:none;border-bottom:1px solid currentColor;font-size:11px;font-weight:900}.policy-hero{max-width:820px;padding:76px 0 46px}.policy-hero h1{margin:0;font:900 clamp(38px,7vw,64px)/1.15 "Yu Mincho",serif;letter-spacing:-.04em}.policy-hero>p:last-child{margin:22px 0 0;color:var(--muted);font-size:14px}.policy-content{max-width:820px;margin-bottom:90px;padding:clamp(25px,5vw,48px);border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow)}.policy-content section+section{margin-top:34px;padding-top:30px;border-top:1px solid var(--line)}.policy-content h2{margin-bottom:11px;font-size:clamp(20px,3vw,25px)}.policy-content p{margin:0;color:var(--muted);font-size:13px}.policy-content a{color:var(--forest);font-weight:900}.policy-content .policy-date{margin-top:42px;color:var(--ink);font-size:11px;font-weight:900}.not-found-page{display:grid;min-height:100vh;grid-template-rows:auto 1fr}.not-found-page main{display:grid;place-items:center;padding-block:50px 90px}.not-found-card{width:min(680px,100%);padding:clamp(30px,7vw,70px);border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow);text-align:center}.not-found-code{margin:0;color:var(--coral);font:900 clamp(58px,12vw,110px)/1 Georgia,serif;opacity:.22}.not-found-card h1{margin:-6px 0 12px;font:900 clamp(29px,5vw,43px)/1.25 "Yu Mincho",serif}.not-found-card>p:not(.not-found-code){margin:0;color:var(--muted);font-size:13px}.not-found-card a{display:inline-flex;align-items:center;justify-content:space-between;gap:45px;min-width:220px;margin-top:28px;padding:13px 17px;border-radius:10px;background:var(--forest);color:#fff;text-decoration:none;font-size:12px;font-weight:900}@media(max-width:780px){.site-header,main,footer{width:min(100% - 28px,1120px)}.brand small{display:none}.local-badge{font-size:10px}.hero{padding:52px 0 34px}.tool-heading-row{display:block}.text-button{margin-top:12px}.repair-grid{grid-template-columns:1fr;gap:18px}.flow-arrow{display:none}.trust-strip{grid-template-columns:1fr}.trust-strip article+article{border-left:0;border-top:1px solid var(--line)}.tool-promo{align-items:flex-start;flex-direction:column;margin-top:-28px}.file-tool summary,.file-tool-body{padding-inline:20px}.file-tool summary span:first-child{align-items:flex-start;flex-direction:column;gap:8px}.encoding-settings,.file-meta{align-items:stretch;flex-direction:column}.encoding-settings>span{transform:rotate(90deg);align-self:flex-start}.guide{grid-template-columns:1fr;gap:28px}.guide-grid{grid-template-columns:1fr}footer{align-items:flex-start;flex-direction:column}footer nav{justify-content:flex-start;flex-wrap:wrap}.home-hero{grid-template-columns:1fr;min-height:auto;padding:52px 0 58px}.home-feature-grid{max-width:600px}.tool-finder{position:static;grid-template-columns:1fr}.tool-result-count{justify-self:end}.home-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.site-header{align-items:flex-start}.local-badge{max-width:135px;border-radius:10px;line-height:1.35}.hero h1{font-size:41px}.tool-shell{padding:22px 16px;border-radius:18px}#sourceText,#resultText{min-height:190px;padding:15px}.primary-button{width:100%;min-width:0}.secondary-button{flex:1}.result-actions{align-items:flex-start;flex-direction:column}.copy-button{min-width:86px}.file-tool summary{padding-block:22px}.home-header{align-items:center}.home-nav{gap:11px}.home-nav a{font-size:9px}.home-hero h1{font-size:47px}.home-hero{padding-top:48px}.home-feature-grid a{min-height:210px}.catalog-heading{align-items:flex-start;flex-direction:column;gap:13px;margin-bottom:38px}.tool-filters{gap:4px}.tool-filters button{flex:1 1 auto}.home-card-grid{grid-template-columns:1fr}.tool-category{padding:25px 0 29px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition-duration:.01ms!important}}:root{--shogi-green:#172c26;--shogi-green-2:#25483c;--shogi-gold:#d5a94e;--board:#d9ae68;--board-dark:#8d5f2a;--paper:#f5f0e5;--ink:#17201d;--muted:#66716c;--line:#d8d1c4}*{box-sizing:border-box}.shogi-page{margin:0;background:var(--paper);color:var(--ink);font-family:Yu Gothic,Hiragino Kaku Gothic ProN,sans-serif}.site-header{display:flex;align-items:center;justify-content:space-between;max-width:1200px;margin:auto;padding:20px 28px}.brand{display:flex;align-items:center;gap:11px;color:inherit;text-decoration:none}.brand-mark{display:grid;place-items:center;width:39px;height:39px;border-radius:50%;background:var(--shogi-green);color:#fff;font:900 21px Georgia,serif}.brand b,.brand small{display:block}.brand b{font:900 14px/1.1 ui-monospace,monospace;letter-spacing:.12em}.brand small{margin-top:3px;color:var(--muted);font-size:8px}.mini-nav{display:flex;gap:22px}.mini-nav a{color:var(--muted);font-size:10px;font-weight:800;text-decoration:none}.shogi-page main{max-width:1180px;margin:auto;padding:0 28px}.shogi-hero{padding:48px 0 34px}.eyebrow{margin:0 0 7px;color:var(--shogi-gold);font:900 10px ui-monospace,monospace;letter-spacing:.18em}.shogi-hero h1{margin:0;color:var(--shogi-green);font:900 clamp(48px,7vw,78px)/1 serif;letter-spacing:.05em}.shogi-hero>p:last-child{margin:14px 0 0;color:var(--muted);font-size:15px;font-weight:700}.shogi-app{overflow:hidden;border:1px solid #c5bba8;border-radius:18px;background:#fffdf8;box-shadow:0 24px 65px #2f26151f}.game-settings{display:flex;align-items:end;gap:14px;padding:16px 20px;border-bottom:1px solid #c7bda9;background:var(--shogi-green)}.game-settings label{display:grid;gap:5px;color:#dce6e1;font-size:9px;font-weight:800}.game-settings select{min-width:150px;padding:9px 34px 9px 10px;border:1px solid #667d74;border-radius:7px;background:#fff;color:var(--ink);font:800 12px sans-serif}.new-game-button{margin-left:auto;padding:10px 18px;border:1px solid #e7c77f;border-radius:7px;background:var(--shogi-gold);color:#17251f;cursor:pointer;font-weight:900}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;min-height:720px}.board-column{display:grid;align-content:start;justify-items:center;padding:20px 25px 26px;background:#e9e0ce}.player-row{display:flex;align-items:center;justify-content:space-between;width:min(100%,650px);min-height:58px;padding:8px 4px}.player-row>span{display:grid;min-width:78px}.player-row b{font-size:13px}.player-row small{color:var(--muted);font-size:9px}.opponent-row{align-items:start}.board-frame{width:min(100%,650px);padding:7px;border:4px solid #70471e;background:#a56f34;box-shadow:0 11px 26px #4c31163d}.shogi-board{display:grid;grid-template-columns:repeat(9,1fr);width:100%;border-top:1px solid #3f2b16;border-left:1px solid #3f2b16;background:var(--board)}.shogi-board.is-disabled{opacity:.72}.shogi-board.is-disabled .board-square{cursor:wait}.board-square{position:relative;display:grid;place-items:center;aspect-ratio:1;padding:3px;border:0;border-right:1px solid #49321a;border-bottom:1px solid #49321a;background:transparent;cursor:pointer}.board-square:hover{background:#fff7bb47}.board-square.is-target{background:#fff9b275}.board-square.is-target:after{content:"";position:absolute;width:25%;height:25%;border-radius:50%;background:#315a4b;opacity:.72}.board-square.is-selected{background:#ffec7494;box-shadow:inset 0 0 0 3px #315a4b}.board-square.is-last{box-shadow:inset 0 0 0 3px #a93023b3}.piece{position:relative;z-index:1;display:grid;place-items:center;width:82%;height:88%;padding-top:9%;clip-path:polygon(50% 0,92% 17%,100% 100%,0 100%,8% 17%);background:linear-gradient(145deg,#f3cf8e,#d59c4f);box-shadow:inset 0 0 0 1px #54311066;color:#15130f;font:900 clamp(15px,3.2vw,30px)/1 serif;text-shadow:0 1px 0 #f8dda8}.piece.is-opponent{transform:rotate(180deg)}.piece.is-promoted{color:#a2261c}.hand{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px;min-height:40px}.hand-piece{display:flex;align-items:center;gap:3px;min-width:36px;padding:5px 7px;border:1px solid #9c7b50;border-radius:5px;background:#f5d89b;color:#1f1a12;cursor:pointer;font:900 17px serif}.hand-piece small{color:#58452f;font:800 10px sans-serif}.hand-piece.is-selected{outline:3px solid #315a4b;background:#ffedaf}.hand-piece:disabled{cursor:default;opacity:.85}.game-status{width:min(100%,650px);min-height:24px;margin:8px 0 0;color:var(--shogi-green);font-size:12px;font-weight:900;text-align:center}.game-sidebar{display:flex;min-width:0;flex-direction:column;padding:22px 18px;background:#fff}.turn-card{display:grid;grid-template-columns:1fr auto;gap:4px 12px;padding:15px;border-radius:10px;background:#edf1ee}.turn-card small{grid-column:1/-1;color:var(--muted);font-size:8px}.turn-card strong{font-size:17px}.turn-card span{align-self:center;color:var(--muted);font-size:10px;font-weight:800}.game-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.game-actions button{padding:10px;border:1px solid #9aa69f;border-radius:7px;background:#fff;cursor:pointer;font-weight:900}.game-actions button:last-child{border-color:#c79e96;color:#8d2c20}.game-actions button:disabled{opacity:.42;cursor:default}.move-history{display:flex;min-height:0;flex:1;flex-direction:column;margin-top:23px}.move-history>div{display:flex;align-items:center;justify-content:space-between}.move-history h2{margin:0;font-size:13px}.move-history button{border:0;background:none;color:var(--shogi-green-2);cursor:pointer;font-size:9px;font-weight:900}.move-history ol{overflow:auto;max-height:390px;margin:10px 0 0;padding:0;list-style:none;border-top:1px solid var(--line)}.move-history li{display:grid;grid-template-columns:32px 1fr;gap:8px;padding:8px 4px;border-bottom:1px solid #eee9de;font-size:11px}.move-history li span{color:var(--muted);font:700 9px ui-monospace,monospace}.move-history .empty-moves{display:block;color:var(--muted);font-size:10px;text-align:center}.engine-note{display:flex;align-items:flex-start;gap:9px;margin-top:18px;padding:11px;border-radius:8px;background:#f3f0e9}.engine-note>span{flex:none;width:8px;height:8px;margin-top:4px;border-radius:50%;background:#d0a342;box-shadow:0 0 0 4px #d0a34224}.engine-note>span.is-ready{background:#43825f}.engine-note p{display:grid;gap:3px;margin:0}.engine-note b{font-size:9px}.engine-note small{color:var(--muted);font-size:8px;line-height:1.5}.shogi-info{display:grid;grid-template-columns:repeat(3,1fr);margin:70px 0;border-block:1px solid var(--line)}.shogi-info article{padding:25px 22px}.shogi-info article+article{border-left:1px solid var(--line)}.shogi-info span{color:var(--shogi-gold);font:900 10px ui-monospace,monospace}.shogi-info h2{margin:11px 0 7px;font-size:15px}.shogi-info p{margin:0;color:var(--muted);font-size:10px;line-height:1.8}.shogi-faq{max-width:780px;margin:0 auto 80px}.shogi-faq h2{font-size:22px}.shogi-faq details{border-top:1px solid var(--line)}.shogi-faq details:last-child{border-bottom:1px solid var(--line)}.shogi-faq summary{padding:17px 2px;cursor:pointer;font-size:12px;font-weight:900}.shogi-faq p{margin:-4px 0 18px;color:var(--muted);font-size:11px;line-height:1.8}.promotion-dialog,.result-dialog{border:0;border-radius:16px;background:#fffdf7;box-shadow:0 28px 80px #00000047}.promotion-dialog::backdrop,.result-dialog::backdrop{background:#111b1794}.promotion-dialog form,.result-dialog form{min-width:270px;padding:18px;text-align:center}.promotion-dialog p{font-weight:900}.promotion-dialog div,.result-dialog div{display:grid;grid-template-columns:1fr 1fr;gap:8px}.promotion-dialog button,.result-dialog button{padding:11px;border:1px solid #9ba9a2;border-radius:7px;background:#fff;cursor:pointer;font-weight:900}.promotion-dialog button:first-child,.result-dialog button:last-child{border-color:var(--shogi-green);background:var(--shogi-green);color:#fff}.result-dialog span{display:grid;place-items:center;width:62px;height:62px;margin:0 auto;border-radius:50%;background:var(--shogi-gold);color:#fff;font:900 29px serif}.result-dialog h2{margin:13px 0 5px}.result-dialog p{margin:0 0 18px;color:var(--muted);font-size:11px}.shogi-page footer{display:flex;align-items:flex-end;justify-content:space-between;padding:32px max(28px,calc((100vw - 1124px)/2));background:var(--shogi-green);color:#fff}.shogi-page footer b{font:900 14px ui-monospace,monospace}.shogi-page footer p{margin:5px 0 0;color:#b7c5bf;font-size:9px}.shogi-page footer nav{display:flex;gap:18px}.shogi-page footer a{color:#dce5e1;font-size:9px;text-decoration:none}@media(max-width:880px){.game-layout{grid-template-columns:1fr}.game-sidebar{display:grid;grid-template-columns:1fr 1fr;gap:12px}.turn-card,.game-actions{margin:0}.move-history{grid-column:1/-1;margin-top:8px}.move-history ol{max-height:180px}.engine-note{grid-column:1/-1;margin-top:0}.shogi-info{grid-template-columns:1fr}.shogi-info article+article{border-top:1px solid var(--line);border-left:0}}@media(max-width:620px){.site-header{padding:17px 15px}.mini-nav{display:none}.shogi-page main{padding:0 10px}.shogi-hero{padding:28px 7px 23px}.shogi-hero h1{font-size:52px}.game-settings{display:grid;grid-template-columns:1fr 1fr;padding:13px 12px}.game-settings select{width:100%;min-width:0}.new-game-button{grid-column:1/-1;width:100%;margin:0}.board-column{padding:12px 7px 18px}.board-frame{padding:4px;border-width:3px}.piece{font-size:clamp(13px,6vw,25px)}.player-row{min-height:52px}.game-sidebar{grid-template-columns:1fr;padding:16px 12px}.move-history,.engine-note{grid-column:1}.shogi-info{margin:48px 0}.shogi-page footer{display:grid;gap:20px;padding:28px 18px}}.shogi-board{grid-template-columns:repeat(9,minmax(0,1fr))}.board-square{min-width:0;overflow:hidden}.piece{min-width:0;overflow:hidden;white-space:nowrap}.piece.is-long-label{padding-top:0;font-size:clamp(10px,2vw,18px);line-height:1;letter-spacing:-.08em;text-orientation:upright;writing-mode:vertical-rl}.shogi-app{margin-bottom:70px}.record-actions{display:flex;align-items:center;gap:5px}.record-actions select,.record-actions button{min-height:30px;padding:5px 8px;border:1px solid #9aa69f;border-radius:6px;background:#fff;color:var(--shogi-green);font-size:9px;font-weight:900}.record-actions button{cursor:pointer}.record-actions select:disabled,.record-actions button:disabled{cursor:default;opacity:.38}@media(max-width:620px){.move-history>div{align-items:flex-start;gap:8px}.record-actions{flex-wrap:wrap;justify-content:flex-end}}.shogi-board.is-disabled{opacity:1}.shogi-board.is-disabled .board-square{cursor:default;pointer-events:none}.player-row{min-height:calc(var(--shogi-piece-height,62px) + 16px)}.hand{align-items:center;gap:5px;min-height:var(--shogi-piece-height,62px)}.hand-piece{position:relative;display:grid;place-items:center;flex:none;width:var(--shogi-piece-width,54px);height:var(--shogi-piece-height,62px);min-width:var(--shogi-piece-width,54px);padding:9% 0 0;border:0;border-radius:0;clip-path:polygon(50% 0,92% 17%,100% 100%,0 100%,8% 17%);background:linear-gradient(145deg,#f3cf8e,#d59c4f);box-shadow:inset 0 0 0 1px #54311066;color:#15130f;cursor:pointer;font:900 var(--shogi-piece-font-size,30px)/1 serif;text-shadow:0 1px 0 #f8dda8}.hand-piece small{position:absolute;right:3px;bottom:3px;padding:1px 3px;border-radius:8px;background:#fff4d3eb;color:#4b361f;font:800 10px/1.2 sans-serif}.hand-piece.is-selected{outline:0;filter:drop-shadow(0 0 3px #315a4b)}.hand-piece:disabled{opacity:.9}.shogi-page footer nav{flex:none;align-items:center;justify-content:flex-end;flex-wrap:wrap}.shogi-page footer nav a{white-space:nowrap}@media(max-width:620px){.hand{gap:3px}.shogi-page footer nav{justify-content:flex-start}}.shogi-player-shell{width:min(100%,650px)}.shogi-player-shell shogi-player-wc{display:block;width:100%;touch-action:manipulation}.shogi-player-shell shogi-player-wc::part(root){--sp_board_color:#d8ae69;--sp_board_even_cell_color:transparent;--sp_board_odd_cell_color:transparent;--sp_grid_inner_color:rgba(55,37,17,.72);--sp_grid_outer_color:rgba(55,37,17,.86);--sp_piece_origin_color:var(--sp_piece_selectable_color,hsl(0 0% 0%/.15));--sp_board_piece_size:.92;--sp_stand_piece_size:.92;--sp_board_padding:.012;--sp_board_radius:0}.shogi-player-shell+.player-row,.shogi-player-shell~.player-row{min-height:52px}@media(max-width:620px){.shogi-player-shell{width:100%}}.game-result{display:flex;align-items:center;gap:7px;min-height:0;margin-top:8px;padding:6px 8px;border:1px solid #d4b365;border-radius:7px;background:#fff6db}.game-result[hidden]{display:none}.game-result>span{display:grid;flex:none;place-items:center;width:23px;height:23px;border-radius:4px;background:var(--shogi-gold);color:#fff;font:900 11px serif}.game-result>div{display:flex;min-width:0;align-items:baseline;gap:6px;white-space:nowrap}.game-result strong{flex:none;font-size:11px}.game-result p{overflow:hidden;margin:0;color:var(--muted);font-size:9px;line-height:1.3;text-overflow:ellipsis}.review-controls{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-top:7px}.review-controls[hidden]{display:none}.review-controls button{min-width:0;padding:7px 4px;border:1px solid #9aa69f;border-radius:6px;background:#fff;color:var(--shogi-green);cursor:pointer;font-size:9px;font-weight:900}.review-controls button:hover:not(:disabled){border-color:var(--shogi-green);background:#edf1ee}.review-controls button:disabled{cursor:default;opacity:.38}.move-history li button{min-width:0;padding:0;border:0;background:none;color:var(--ink);cursor:pointer;font:inherit;font-weight:700;line-height:1.4;text-align:left}.move-history li button:hover{text-decoration:underline}.move-history li.is-current{background:#f5ead0}.move-history li button[aria-current=true]{color:#7a4d12;font-weight:900}.move-history li button:focus-visible,.review-controls button:focus-visible{outline:2px solid var(--shogi-gold);outline-offset:3px}@media(max-width:880px){.game-result{grid-column:1/-1}.game-actions{align-self:start}}.game-actions[hidden]{display:none}:root{--othello-green:#1f5e42;--othello-dark:#123b2b;--othello-board:#2b8d60;--othello-line:rgba(255,255,255,.52)}.othello-page{margin:0;background:var(--paper);color:var(--ink);font-family:Yu Gothic,Hiragino Kaku Gothic ProN,sans-serif}.othello-page .brand-mark,.othello-page footer{background:var(--othello-dark)}.othello-page main{max-width:1180px;margin:auto;padding:0 28px}.othello-hero{padding:48px 0 34px}.othello-hero h1{margin:0;color:var(--othello-dark);font:900 clamp(48px,7vw,78px)/1 serif;letter-spacing:.05em}.othello-hero>p:last-child{margin:14px 0 0;color:var(--muted);font-size:15px;font-weight:700}.othello-app{overflow:hidden;margin-bottom:70px;border:1px solid #c5bba8;border-radius:18px;background:#fffdf8;box-shadow:0 24px 65px #2f26151f}.othello-settings{display:flex;align-items:end;gap:14px;padding:16px 20px;border-bottom:1px solid #b7c7bc;background:var(--othello-dark)}.othello-settings label{display:grid;gap:5px;color:#dce6e1;font-size:9px;font-weight:800}.othello-settings select{min-width:150px;padding:9px 34px 9px 10px;border:1px solid #667d74;border-radius:7px;background:#fff;color:var(--ink);font:800 12px sans-serif}.othello-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;min-height:650px}.othello-board-column{display:grid;align-content:center;justify-items:center;gap:15px;padding:28px;background:#e5eee8}.othello-score{display:flex;justify-content:space-between;width:min(100%,600px);padding:0 4px;color:#33443b;font-size:13px;font-weight:900}.othello-score span{display:flex;align-items:center;gap:7px}.othello-score b{font-size:20px}.score-disc,.disc{display:block;border-radius:50%}.score-disc{width:18px;height:18px;border:1px solid rgba(0,0,0,.32)}.disc{width:74%;height:74%;box-shadow:inset -8px -8px 12px #0003,inset 5px 5px 8px #fff3,0 2px 3px #00000042;transition:transform .18s ease}.black{background:radial-gradient(circle at 32% 25%,#667a70,#101612 62%)}.white{background:radial-gradient(circle at 31% 24%,#fff,#d9e0da 63%,#aeb8b1)}.othello-board-frame{width:min(100%,600px);padding:9px;border:5px solid #765126;background:#bb8647;box-shadow:0 13px 28px #303c2b38}.othello-board{display:grid;grid-template-columns:repeat(8,1fr);width:100%;border-top:1px solid #15563a;border-left:1px solid #15563a;background:var(--othello-board)}.othello-cell{position:relative;display:grid;place-items:center;aspect-ratio:1;border:0;border-right:1px solid var(--othello-line);border-bottom:1px solid var(--othello-line);background:transparent;cursor:default}.othello-cell:disabled{opacity:1}.othello-cell.is-legal{cursor:pointer}.othello-cell.is-legal:after{width:18%;height:18%;border-radius:50%;background:#eeffe1e6;box-shadow:0 0 0 2px #0e482f40;content:""}.othello-cell.is-legal:hover{background:#eeffe12e}.othello-cell.is-legal:hover:after{transform:scale(1.25)}.othello-cell.is-last{box-shadow:inset 0 0 0 3px #ffda73e6}.othello-sidebar{display:flex;min-width:0;flex-direction:column;padding:22px 18px;background:#fff}.othello-sidebar .turn-card{grid-template-columns:1fr}.othello-result{display:flex;align-items:baseline;gap:7px;margin-top:8px;padding:8px 9px;border:1px solid #b7d0a5;border-radius:7px;background:#f3fae8}.othello-result[hidden]{display:none}.othello-result strong{font-size:12px}.othello-result span{color:var(--muted);font-size:10px}.othello-actions{margin-top:10px}.othello-actions button{width:100%;padding:10px;border:1px solid #c79e96;border-radius:7px;background:#fff;color:#8d2c20;cursor:pointer;font-weight:900}.othello-actions button:disabled{cursor:default;opacity:.42}.othello-history{display:flex;min-height:0;flex:1;flex-direction:column;margin-top:23px}.othello-history h2{margin:0;font-size:13px}.othello-history ol{overflow:auto;max-height:390px;margin:10px 0 0;padding:0;list-style:none;border-top:1px solid var(--line)}.othello-history li{display:grid;grid-template-columns:32px 1fr;gap:8px;padding:8px 4px;border-bottom:1px solid #eee9de;font-size:11px}.othello-history li span{color:var(--muted);font:700 9px ui-monospace,monospace}.othello-history .empty-moves{display:block;color:var(--muted);font-size:10px;text-align:center}.othello-page footer{display:flex;align-items:flex-end;justify-content:space-between;padding:32px max(28px,calc((100vw - 1124px)/2));color:#fff}.othello-page footer b{font:900 14px ui-monospace,monospace}.othello-page footer p{margin:5px 0 0;color:#b7cfc0;font-size:9px}.othello-page footer nav{display:flex;gap:18px}.othello-page footer a{color:#dceee3;font-size:9px;text-decoration:none}@media(max-width:880px){.othello-layout{grid-template-columns:1fr}.othello-sidebar{display:grid;grid-template-columns:1fr 1fr;gap:12px}.othello-sidebar .turn-card,.othello-actions{margin:0}.othello-history{grid-column:1/-1;margin-top:8px}.othello-history ol{max-height:180px}.othello-result{grid-column:1/-1;margin:0}}@media(max-width:620px){.othello-page main{padding:0 10px}.othello-hero{padding:28px 7px 23px}.othello-hero h1{font-size:52px}.othello-settings{display:grid;grid-template-columns:1fr 1fr;padding:13px 12px}.othello-settings select{width:100%;min-width:0}.othello-settings .new-game-button{grid-column:1/-1;width:100%;margin:0}.othello-board-column{padding:18px 6px}.othello-board-frame{padding:4px;border-width:3px}.othello-sidebar{grid-template-columns:1fr;padding:16px 12px}.othello-history,.othello-result{grid-column:1}.othello-page footer{display:grid;gap:20px;padding:28px 18px}}
