*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:30px}body{margin:0;background:var(--paper);color:var(--ink);font-family:'Noto Sans CJK JP','Yu Gothic',sans-serif;font-size:15px;line-height:1.85}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline}button,input{font:inherit}img{max-width:100%;height:auto;display:block}button,a,input{touch-action:manipulation}:focus-visible{outline:3px solid #be651f;outline-offset:4px}.wrap{width:min(1180px,calc(100% - 64px));margin:auto}.preview{background:#183d39;color:#fff;text-align:center;padding:7px 20px;font-size:11px;letter-spacing:.1em}.header{display:flex;justify-content:space-between;align-items:center;padding:25px 0;border-bottom:1px solid #d7ddd4;gap:22px}.brand{font-size:22px;font-weight:800;letter-spacing:.05em;display:flex;align-items:center;gap:11px}.brand-icon{display:grid;place-items:center;background:var(--accent);color:white;width:36px;height:39px;border-radius:10px 10px 10px 2px;font-family:serif;font-size:24px}.brand small{font-size:10px;display:block;font-weight:400;letter-spacing:.2em;line-height:1}.header nav{display:flex;gap:30px;font-size:13px;font-weight:600}.tag{display:inline-flex;gap:8px;align-items:center;font-size:11px;font-weight:700;letter-spacing:.12em;color:var(--accent)}.tag:before{content:'';width:7px;height:7px;border-radius:50%;background:#d17a43}.hero{display:grid;grid-template-columns:1.08fr 1fr;gap:20px;align-items:center;padding:56px 0 40px}.hero h1{font-family:'Noto Serif CJK JP','Yu Mincho',serif;font-size:44px;font-weight:600;line-height:1.55;letter-spacing:.04em;margin:15px 0 20px}.hero h1 em{font-style:normal;background:linear-gradient(transparent 76%,#e7bd7555 0)}.hero p{font-size:14px;line-height:2.1;color:#5b7069;max-width:460px}.hero-art{position:relative}.hero-art img{width:100%}.hero-note{font-size:11px;text-align:center;color:#64766d;letter-spacing:.07em;margin-top:8px}.pill{display:inline-block;border:1px solid #cbd8cd;padding:3px 12px;border-radius:25px;font-size:11px;margin:9px 5px 0 0}.search-panel{background:white;border:1px solid #d7dfd5;padding:24px 30px;border-radius:15px;box-shadow:0 6px 20px #183d3905}.search-panel label{font-size:12px;font-weight:700;display:block;margin-bottom:8px}.search-row{display:flex;gap:10px}.search-row input{flex:1;min-width:0;padding:14px 18px;border:1px solid #c6d3ca;background:#fcfcf9;border-radius:8px;outline-offset:2px}.button{border:0;border-radius:8px;background:var(--accent);color:#fff;padding:12px 27px;display:inline-block;font-size:13px;cursor:pointer;font-weight:700}.hint{font-size:11px;color:#65756d;margin:10px 0 0}.section{margin:49px 0}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;margin:0 0 22px}.section-heading h2{margin:0;font-family:'Noto Serif CJK JP',serif;font-size:25px;font-weight:600}.section-heading p{font-size:12px;color:#65756d;margin:4px 0 0}.section-heading a{font-size:12px}.grid4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.category{background:#fff;border:1px solid #dce2d9;border-radius:13px;overflow:hidden;transition:transform .2s}.category:hover{transform:translateY(-4px)}.category img{width:100%;aspect-ratio:1.8;object-fit:cover;background:#eaf0e3}.category div{padding:15px 19px}.category strong{display:block;font-size:15px}.category small{font-size:11px;color:#61736a}.word-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.word-card{display:block;padding:23px 24px;border-radius:10px;border:1px solid #d9e0d6;background:#fff;position:relative}.word-card:after{content:'↗';position:absolute;right:20px;top:22px;color:#709d8d}.native{font-family:'Sarabun','Noto Sans Thai',sans-serif;line-height:1.6;letter-spacing:0}.word-card .native{font-size:26px;display:block;padding-right:24px}.word-card small{display:block;color:#63736b;font-size:11px;margin:5px 0 10px}.word-card b{font-size:13px;font-weight:500}.ad-slot{border:1px dashed #aebdb1;border-radius:8px;background:#ecefe7;text-align:center;color:#65756a;padding:22px;min-height:94px;font-size:10px;letter-spacing:.12em;margin:35px 0}.editorial-note{display:flex;align-items:start;gap:24px;background:#e5eddf;border-radius:13px;padding:28px 32px;font-size:13px}.editorial-note strong{font-size:16px}.editorial-note p{margin:6px 0}.footer{border-top:1px solid #d1d9cd;padding:35px 0;margin-top:60px;font-size:11px;color:#627268}.footer .wrap{display:flex;justify-content:space-between;gap:25px;align-items:center}.footer nav{display:flex;gap:20px;flex-wrap:wrap}.bread{font-size:11px;color:#61756b;margin:25px 0;display:flex;gap:10px;flex-wrap:wrap}.page-intro{padding:20px 0 25px}.page-intro h1{font-family:'Noto Serif CJK JP',serif;font-size:36px;line-height:1.5;margin:10px 0}.page-intro p{color:#607269;font-size:14px}.word-hero{display:grid;grid-template-columns:1.6fr 1fr;background:#e8eee1;border:1px solid #d4dfcd;border-radius:20px;overflow:hidden;margin:24px 0 28px;padding:30px 38px;align-items:center;gap:25px}.word-hero h1{font-size:60px;margin:10px 0 0;font-weight:500;overflow-wrap:anywhere}.word-hero .kana{font-size:14px;color:#66756b;margin:0}.word-hero .meaning{font-family:'Noto Serif CJK JP',serif;font-size:24px;margin:18px 0 5px}.word-hero img{width:100%;max-height:250px}.word-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:44px;align-items:start}.toc{position:sticky;top:25px;border-top:2px solid var(--accent);padding-top:18px;font-size:12px}.toc strong{display:block;margin:0 0 12px}.toc a{display:block;border-bottom:1px solid #dce2d7;padding:11px 0;color:#546f62}.article{min-width:0;max-width:850px}.notice{font-size:11px;background:#fff3db;border-left:3px solid #dba755;padding:12px 16px;line-height:1.9;margin-bottom:25px}.article p{margin:0 0 20px;line-height:2.1}.article h2{font-family:'Noto Serif CJK JP',serif;font-size:25px;font-weight:600;line-height:1.7;border-top:1px solid #ccd8cb;padding-top:23px;margin:42px 0 22px}.article h2 .num{font-family:serif;color:var(--accent);font-size:17px;margin-right:16px}.article h3{font-size:16px;margin:25px 0 10px}.article ul{padding-left:23px}.pron-diagram{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid #d6dfd1;background:white;border-radius:10px;margin:25px 0;overflow:hidden}.pron-diagram div{padding:17px;border-right:1px solid #dce3d7;overflow-wrap:anywhere}.pron-diagram div:last-child{border:0}.pron-diagram small{font-size:10px;color:#65766b;display:block}.pron-diagram b{font-weight:500;font-size:17px;display:block;margin-top:7px}.tone-note{padding:18px 22px;background:#eef0e4;border-radius:10px;font-size:13px}.tone-note span{font-size:10px;letter-spacing:.1em;color:#65766b;display:block}.ex-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:22px}.example{background:white;border:1px solid #d5dfd1;border-top:3px solid #9aba9d;padding:20px;border-radius:9px;min-width:0}.example .native{font-size:21px;margin:0 0 10px;overflow-wrap:anywhere}.example small{font-size:10px;color:#68796e;line-height:1.9;display:block}.example .translation{font-size:13px;margin:12px 0}.example .ex-note{font-size:11px;background:#f2f4eb;padding:6px 9px;margin:12px 0 0}.scenes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.scene{border:1px solid #d9e1d3;background:#fffef9;border-radius:10px;padding:22px}.scene h3{margin:0 0 10px;font-size:15px}.scene h3:before{content:'↗';display:inline-grid;place-items:center;width:25px;height:25px;background:#e7eddd;border-radius:50%;margin-right:8px;color:var(--accent)}.scene p{font-size:13px;margin:0}.polite-chart{padding:23px;border:1px solid #d2dcca;background:#fff;border-radius:10px;margin:24px 0}.polite-chart h3{margin:0 0 15px!important}.polite-row{display:flex;gap:9px;align-items:center;font-size:12px;padding:10px;border-radius:7px;background:#edf1e7;margin:8px 0}.polite-row b{min-width:90px;color:var(--accent)}.mini{font-size:11px;color:#66786c}.jump{display:flex;justify-content:space-between;gap:20px;border-top:1px solid #cbd7c8;padding-top:22px;font-size:12px}.index-bar{display:flex;flex-wrap:wrap;gap:8px;margin:26px 0}.index-bar a{padding:8px 16px;border:1px solid #ccd9c8;border-radius:7px;background:white;font-size:13px}.index-group{margin:30px 0}.index-group h2{font-size:22px;border-bottom:1px solid #d2ddcc;padding-bottom:12px}.search-status{font-size:13px;color:#65786b;margin:22px 0}.empty{padding:30px;background:#fff;border:1px solid #d6dfd1;border-radius:10px;font-size:13px}.prose{max-width:780px;background:#fff;padding:36px 42px;border:1px solid #d8e0d1;border-radius:12px}.prose h2{font-size:20px;margin-top:32px}.prose h2:first-child{margin-top:0}.prose p{font-size:14px;line-height:2.1}.skip{position:absolute;left:-9999px}.skip:focus{left:20px;top:15px;background:#fff;padding:10px;z-index:100}.local-mark{font-size:10px;font-weight:500;color:#576b5f;margin-left:12px;letter-spacing:.05em}
@media(max-width:900px){.wrap{width:calc(100% - 40px)}.hero h1{font-size:35px}.grid4{grid-template-columns:repeat(2,1fr)}.word-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.word-layout{grid-template-columns:170px minmax(0,1fr);gap:24px}.word-hero h1{font-size:48px}.header nav{gap:18px}.ex-grid,.scenes{grid-template-columns:1fr}}
@media(max-width:620px){body{font-size:14px}.wrap{width:calc(100% - 36px)}.preview{font-size:9px;letter-spacing:.03em;padding:7px 10px}.header{padding:18px 0;flex-wrap:wrap;gap:17px}.brand{font-size:18px}.brand small{font-size:8px}.brand-icon{width:32px;height:35px}.header nav{gap:24px;font-size:11px;width:100%;justify-content:space-between}.local-mark{margin-left:0}.hero{grid-template-columns:1fr;padding:30px 0 23px;gap:14px}.hero h1{font-size:clamp(21px,6.8vw,29px);margin:10px 0 16px;line-height:1.65}.hero p{font-size:12px}.hero-art{max-width:380px;margin:auto}.hero-art img{max-height:250px}.hero-note{font-size:9px}.hero .pill{font-size:9px;margin-top:4px}.search-panel{padding:20px 16px}.search-row{gap:7px}.search-row input{font-size:12px;padding:12px 10px}.button{font-size:12px;padding:12px 18px}.hint{font-size:9px}.section{margin:35px 0}.section-heading{gap:8px;margin-bottom:16px}.section-heading h2{font-size:21px}.section-heading p,.section-heading a{font-size:10px}.grid4{gap:11px}.category div{padding:12px}.category strong{font-size:12px}.category small{font-size:9px}.word-grid{grid-template-columns:1fr;gap:11px}.word-card{padding:18px 20px}.word-card .native{font-size:25px}.word-card small{margin:2px 0 7px}.editorial-note{padding:22px;display:block;font-size:12px}.editorial-note strong{font-size:15px}.footer .wrap{align-items:start;flex-direction:column;gap:15px}.footer nav{gap:16px}.bread{font-size:10px;gap:6px;margin:20px 0}.page-intro{padding:8px 0 15px}.page-intro h1{font-size:28px}.page-intro p{font-size:12px}.word-hero{grid-template-columns:1fr;padding:24px;gap:15px;margin-top:15px;border-radius:14px}.word-hero h1{font-size:48px}.word-hero .meaning{font-size:22px;margin:14px 0 0}.word-hero img{max-height:145px;max-width:240px;margin:auto}.word-layout{display:block}.toc{position:static;padding:14px 0;margin-bottom:22px;display:flex;gap:10px;overflow-x:auto;white-space:nowrap;border-bottom:1px solid #cad8c5}.toc strong{display:none}.toc a{padding:4px 0;border:0;font-size:10px}.article h2{font-size:20px;margin:32px 0 18px;padding-top:20px}.article h2 .num{margin-right:9px;font-size:14px}.article p{font-size:14px;line-height:2.05}.pron-diagram div{padding:11px}.pron-diagram b{font-size:13px}.pron-diagram small{font-size:8px}.example{padding:18px}.example .native{font-size:22px}.notice{font-size:10px;padding:11px 13px}.polite-chart{padding:16px}.polite-row{font-size:10px}.polite-row b{min-width:68px}.prose{padding:24px}.ad-slot{padding:20px;min-height:80px}.index-bar a{padding:7px 12px;font-size:11px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.category{transition:none}}

/* Long source URLs/IPA must not widen mobile articles. */
.notice{overflow-wrap:anywhere}.word-card,.word-hero>div{min-width:0}.word-card b,.word-card small{overflow-wrap:anywhere}

/* Long IPA strings and kana must wrap without clipping on narrow screens. */
.article p,.article li,.article h2,.article h3,.jump a{overflow-wrap:anywhere;min-width:0}
