:root{--green:#1f6f43;--green-dark:#155232;--green-soft:#e7f3ec;--bg:#f4f6f4;--card:#fff;--text:#1c2420;--muted:#6b766f;--line:#dfe5e1;--red:#c0392b;--red-soft:#fbeceb;--blue:#2563c9;--orange:#c96a12;--purple:#7b3fb5;--radius:12px;color:var(--text);background:var(--bg);-webkit-text-size-adjust:100%;font-family:-apple-system,BlinkMacSystemFont,Hiragino Sans,Hiragino Kaku Gothic ProN,Noto Sans JP,sans-serif}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;color:inherit}h1,h2{margin:0}h2{margin-bottom:8px;font-size:1rem}.muted{color:var(--muted)}.hint{color:var(--muted);margin:0 0 8px;font-size:.8rem}.pre{white-space:pre-wrap;margin:0;line-height:1.6}.center{text-align:center;padding:24px}.row{align-items:center;display:flex}.row.between{justify-content:space-between;gap:8px}.row.gap{gap:8px}.row.wrap{flex-wrap:wrap}.link{color:var(--green);font-weight:600;text-decoration:none}.page{min-height:100dvh;padding-bottom:env(safe-area-inset-bottom)}.appbar{z-index:10;padding:calc(8px + env(safe-area-inset-top)) 8px 8px;background:var(--green);color:#fff;align-items:center;gap:8px;display:flex;position:sticky;top:0}.appbar-logo{padding:0 6px;font-size:1.4rem}.appbar-title{white-space:nowrap;text-overflow:ellipsis;flex:1;font-size:1.05rem;overflow:hidden}.appbar-right{align-items:center;gap:4px;display:flex}.icon-btn{min-width:44px;height:44px;color:inherit;cursor:pointer;background:0 0;border:0;border-radius:10px;font-size:1.5rem}.content{flex-direction:column;gap:12px;max-width:640px;margin:0 auto;padding:12px;display:flex}.menu-wrap{position:relative}.menu-backdrop{z-index:20;position:fixed;inset:0}.menu{z-index:21;min-width:200px;color:var(--text);border-radius:var(--radius);background:#fff;position:absolute;top:48px;right:0;overflow:hidden;box-shadow:0 8px 24px #0000002e}.menu-user{border-bottom:1px solid var(--line);flex-direction:column;padding:12px 16px;font-weight:600;display:flex}.menu-user small{color:var(--muted);font-weight:400}.menu button{text-align:left;cursor:pointer;background:0 0;border:0;width:100%;padding:14px 16px;display:block}.menu a{color:inherit;border-top:1px solid var(--line);padding:14px 16px;text-decoration:none;display:block}.menu button:active,.menu a:active{background:var(--green-soft)}.help-links{flex-wrap:wrap;justify-content:center;gap:10px;padding:8px 0 16px;display:flex}.help-links a{border:1px solid var(--line);min-height:40px;color:var(--green);background:#fff;border-radius:999px;align-items:center;padding:0 14px;font-size:.9rem;font-weight:600;text-decoration:none;display:inline-flex}.login .help-links{margin-top:16px}.card{background:var(--card);border-radius:var(--radius);padding:14px;box-shadow:0 1px 2px #0000000f}.btn{border:1px solid var(--line);cursor:pointer;background:#fff;border-radius:10px;min-height:44px;padding:0 16px;font-weight:600}.btn:disabled{opacity:.45;cursor:default}.btn.primary{background:var(--green);color:#fff;border-color:var(--green)}.btn.primary:active{background:var(--green-dark)}.btn.danger{color:var(--red);border-color:#f0c9c4}.btn.small{min-height:36px;padding:0 12px;font-size:.9rem}.btn.big{min-height:52px;font-size:1.05rem}.btn.block{width:100%}.btn.ghost{color:#fff;background:0 0;border-color:#ffffff80}.badge{white-space:nowrap;border-radius:999px;padding:3px 10px;font-size:.8rem;font-weight:600;display:inline-block}.badge-preparing{color:#4a5568;background:#eef1f6}.badge-active{background:var(--green-soft);color:var(--green)}.badge-finished{color:#777;background:#eee}.error-box{background:var(--red-soft);color:var(--red);border-radius:10px;justify-content:space-between;align-items:center;gap:8px;padding:10px 12px;font-size:.92rem;display:flex}.notice{color:#7a5a00;background:#fff6e0;border-radius:10px;padding:10px 12px}.toast{left:50%;bottom:calc(24px + env(safe-area-inset-bottom));z-index:50;color:#fff;background:#222;border-radius:999px;max-width:90vw;padding:12px 18px;font-size:.92rem;position:fixed;transform:translate(-50%);box-shadow:0 6px 20px #00000040}.toast-error{background:var(--red)}.chips{flex-wrap:wrap;gap:6px;margin-top:6px;display:flex}.chip{background:var(--green-soft);color:var(--green-dark);border-radius:999px;padding:3px 10px;font-size:.82rem}.chip.removable{align-items:center;gap:2px;padding-right:2px;display:inline-flex}.chip.removable button{color:var(--muted);cursor:pointer;background:0 0;border:0;width:28px;height:28px;font-size:1rem}.kind{color:#fff;white-space:nowrap;border-radius:6px;padding:2px 8px;font-size:.78rem;font-weight:700;display:inline-block}.kind-english{background:var(--purple)}.kind-longest{background:var(--orange)}.kind-nearest{background:var(--blue)}.form{flex-direction:column;gap:12px;display:flex}.form label{flex-direction:column;gap:4px;font-size:.9rem;font-weight:600;display:flex}.form label small{font-weight:400}input,select,textarea{border:1px solid var(--line);background:#fff;border-radius:10px;width:100%;min-height:44px;padding:8px 10px;font-size:16px}textarea{line-height:1.5}label.inline{flex-direction:row;align-items:center;gap:6px;font-weight:400}input.short{width:80px}.url-box{align-items:center;gap:8px;margin-bottom:10px;display:flex}.url-box code{word-break:break-all;background:var(--bg);border-radius:8px;flex:1;padding:8px;font-size:.75rem}.sticky-footer{padding:10px 12px calc(10px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#f4f6f4f2;position:sticky;bottom:0}.login{text-align:center;max-width:420px;margin:0 auto;padding:48px 16px}.login-logo{font-size:3rem}.login h1{color:var(--green);margin-bottom:20px}.login .form{text-align:left}.list{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.list-item{border-radius:var(--radius);background:var(--card);text-align:left;cursor:pointer;border:0;justify-content:space-between;align-items:center;gap:8px;width:100%;padding:14px;display:flex;box-shadow:0 1px 2px #0000000f}.list-item.plain{box-shadow:none;padding:0}.list-main{flex-direction:column;gap:2px;display:flex}.list-main small{color:var(--muted)}.compe-admin-item{flex-direction:column;gap:8px;display:flex}.edit-user{border-top:1px solid var(--line);margin-top:12px;padding-top:12px}.tabs,.group-tabs{gap:6px;display:flex;overflow-x:auto}.tabs button,.group-tabs button{border:1px solid var(--line);white-space:nowrap;cursor:pointer;background:#fff;border-radius:999px;flex:1;min-height:40px;padding:0 14px;font-weight:600}.tabs button.on,.group-tabs button.on{background:var(--green);color:#fff;border-color:var(--green)}.hole-nav{align-items:center;gap:8px;display:flex}.hole-nav .btn{min-width:52px;min-height:52px;padding:0;font-size:1.6rem}.hole-current{text-align:center;flex-direction:column;flex:1;align-items:center;gap:4px;display:flex}.hole-big{font-size:1.8rem;font-weight:800}.hole-marks{flex-wrap:wrap;justify-content:center;gap:4px;display:flex}.hole-strip{grid-template-columns:repeat(9,1fr);gap:4px;display:grid}.hole-strip button{border:1px solid var(--line);cursor:pointer;background:#fff;border-radius:8px;flex-direction:column;justify-content:center;align-items:center;min-height:40px;padding:2px 0;font-weight:700;line-height:1.1;display:flex}.hole-strip button .marks{color:var(--muted);min-height:.7rem;font-size:.6rem;font-weight:600}.hole-strip button.on{background:var(--green);color:#fff;border-color:var(--green)}.hole-strip button.on .marks{color:#d6f0e0}.contest-card{border-left:5px solid var(--orange);flex-direction:column;gap:6px;display:flex}.kind-border-nearest{border-left-color:var(--blue)}.big-select{min-height:52px;font-size:1.05rem;font-weight:600}.player-card h2{margin:0;font-size:1.1rem}.counter{border-top:1px solid var(--line);align-items:center;gap:8px;padding:6px 0;display:flex}.counter:first-of-type{border-top:0}.counter-label{flex-direction:column;flex:1;font-weight:600;display:flex}.counter-label small{color:var(--muted);font-size:.72rem;font-weight:400}.cnt-btn{border:1px solid var(--line);cursor:pointer;touch-action:manipulation;background:#fff;border-radius:50%;width:52px;height:52px;font-size:1.5rem;font-weight:700}.cnt-btn.plus{background:var(--green);color:#fff;border-color:var(--green)}.cnt-btn.plus:active{background:var(--green-dark)}.cnt-btn:disabled{opacity:.35}.cnt{text-align:center;min-width:32px;color:var(--muted);font-size:1.4rem;font-weight:800}.counter.has .cnt{color:var(--red)}.ranking{margin:0;padding:0;list-style:none}.ranking>li{border-top:1px solid var(--line);padding:8px 0}.ranking>li:first-child{border-top:0}.rank-row{cursor:pointer;text-align:left;background:0 0;border:0;align-items:center;gap:10px;width:100%;padding:4px 0;display:flex}.rank{min-width:40px;color:var(--muted);font-weight:700}.rank-name{flex:1;font-size:1.05rem;font-weight:700}.rank-total{font-size:1.1rem;font-weight:800}.ranking li.top .rank,.ranking li.top .rank-total{color:var(--red)}.ranking .chips{margin-left:50px}.detail{background:var(--bg);border-radius:8px;margin:6px 0 0 50px;padding:8px 12px;font-size:.88rem;line-height:1.7;list-style:none}.contest-list{margin:0;padding:0;list-style:none}.contest-list li{border-top:1px solid var(--line);align-items:center;gap:10px;padding:8px 0;display:flex}.contest-list li:first-child{border-top:0}.contest-hole{min-width:36px;font-weight:700}.contest-who{font-size:1.05rem;font-weight:700}.dash-head{background:var(--green);color:#fff;padding:calc(16px + env(safe-area-inset-top)) 16px 14px}.dash-head .muted{color:#cfe8d9;margin:4px 0 0}.dash-title{justify-content:space-between;align-items:center;gap:8px;display:flex}.dash-title h1{font-size:1.25rem}.dash-foot{justify-content:space-between;align-items:center;gap:8px;margin-top:8px;display:flex}.dash-input-link{min-height:40px;color:var(--green);background:#fff;border-radius:999px;flex-shrink:0;align-items:center;padding:0 14px;font-size:.9rem;font-weight:700;text-decoration:none;display:inline-flex}.dash-foot .live{margin:0}.live{color:#cfe8d9;align-items:center;gap:6px;margin:6px 0 0;font-size:.75rem;display:flex}.live-dot{background:#7dff9f;border-radius:50%;width:8px;height:8px;animation:1.6s infinite pulse}@keyframes pulse{50%{opacity:.3}}.group-edit{border-bottom:1px solid var(--line);flex-direction:column;gap:8px;padding:10px 0;display:flex}.group-edit select{flex:1}.hole-pick{margin-bottom:12px}.hole-grid{grid-template-columns:repeat(9,1fr);gap:4px;margin-top:6px;display:grid}.hole-grid button{border:1px solid var(--line);cursor:pointer;background:#fff;border-radius:8px;min-height:40px;font-weight:700}.hole-grid button.on{background:var(--green);color:#fff;border-color:var(--green)}.log-list{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.log-item{background:#fff;border-radius:10px;flex-direction:column;gap:2px;padding:10px 12px;font-size:.9rem;display:flex}.log-item .muted{font-size:.78rem}.log-change{color:var(--muted)}.log-change strong{color:var(--text)}.reset-row input{flex:1}.switch-list{flex-direction:column;display:flex}.switch{border-top:1px solid var(--line);cursor:pointer;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;font-weight:600;display:flex}.switch:first-child{border-top:0}.switch input{opacity:0;width:1px;height:1px;position:absolute}.switch-ui{background:#ccd3cf;border-radius:999px;flex-shrink:0;width:50px;height:30px;transition:background .15s;position:relative}.switch-ui:after{content:"";background:#fff;border-radius:50%;width:24px;height:24px;transition:transform .15s;position:absolute;top:3px;left:3px;box-shadow:0 1px 3px #00000040}.switch input:checked+.switch-ui{background:var(--green)}.switch input:checked+.switch-ui:after{transform:translate(20px)}.switch input:focus-visible+.switch-ui{outline:2px solid var(--green);outline-offset:2px}.link-btn{color:var(--green);cursor:pointer;background:0 0;border:0;padding:6px 0;font-size:.85rem;font-weight:600}.link-btn:disabled{opacity:.4}.olympic-off{justify-content:space-between;align-items:center;gap:8px;display:flex}.olympic-card{border-left:5px solid #b08a1e;flex-direction:column;gap:8px;display:flex}.olympic-card h2{margin:0}.oly-row{border-top:1px solid var(--line);flex-direction:column;gap:6px;padding-top:8px;display:flex}.oly-main{border:1px dashed var(--line);text-align:left;cursor:pointer;background:#fff;border-radius:10px;align-items:center;gap:10px;width:100%;min-height:48px;padding:4px 8px;display:flex}.oly-row.set .oly-main{border-style:solid}.oly-main:disabled{cursor:default;opacity:1}.oly-name{flex:1;font-size:1.05rem;font-weight:700}.oly-pts{color:var(--green);font-size:1.1rem;font-weight:800}.oly-pts.minus{color:var(--red)}.medal{min-width:44px;height:32px;color:var(--muted);background:#eef1ef;border-radius:8px;justify-content:center;align-items:center;font-size:.95rem;font-weight:800;display:inline-flex}.medal.m1{color:#5a4300;background:#f3d36b}.medal.m2{color:#3b4450;background:#d9dde2}.medal.m3{color:#5b3313;background:#e2b48a}.medal.m4{color:#fff;background:#8f8f8f}.medal.diamond{color:#0d5873;background:#b8e4f4}.medal.giveup{color:#999;background:#f1f1f1;font-size:.8rem}.oly-btns{flex-wrap:wrap;gap:6px;display:flex}.chip-btn{border:1px solid var(--line);cursor:pointer;background:#fff;border-radius:999px;min-height:36px;padding:0 12px;font-size:.85rem;font-weight:600}.chip-btn.on{background:var(--green);color:#fff;border-color:var(--green)}.chip-btn.diamond.on{background:#1d7fa3;border-color:#1d7fa3}.chip-btn:disabled{opacity:.35}.olympic-group{margin-top:10px}.olympic-group h3{color:var(--muted);margin:6px 0 2px;font-size:.95rem}.olympic-head,.olympic-row{grid-template-columns:40px 1fr 44px 56px;align-items:center;gap:6px;display:grid}.olympic-head{color:var(--muted);text-align:right;font-size:.72rem}.olympic-rows{margin:0;padding:0;list-style:none}.olympic-rows>li{border-top:1px solid var(--line)}.olympic-row{text-align:left;cursor:pointer;background:0 0;border:0;width:100%;padding:8px 0}.olympic-raw{text-align:right;color:var(--muted);font-weight:600}.olympic-final{text-align:right;font-size:1.1rem;font-weight:800}.olympic-final.plus{color:var(--green)}.olympic-final.minus{color:var(--red)}.olympic-rows .detail{margin-left:46px}.appbar-back{justify-content:center;align-items:center;text-decoration:none;display:inline-flex}.site-footer{padding:24px 12px calc(24px + env(safe-area-inset-bottom));flex-wrap:wrap;justify-content:center;gap:6px 16px;font-size:.85rem;display:flex}.site-footer a{color:var(--muted)}.hero{text-align:center;background:var(--green);color:#fff;padding:40px 16px 24px}.hero h1{margin:8px 0;font-size:2rem}.hero p{max-width:30em;margin:0 auto 20px;line-height:1.6}.hero .btn{color:var(--green-dark);background:#fff;border-color:#fff}.feature-list{margin:0;padding-left:1.2em;line-height:1.8}.steps{margin:0;padding-left:1.4em;line-height:1.8}.compe-row{color:inherit;justify-content:space-between;align-items:center;gap:8px;text-decoration:none;display:flex}.center-text{text-align:center}.field-label{font-size:.9rem;font-weight:600}.group-row{border-bottom:1px solid var(--line);padding:6px 0}.group-no{min-width:3.5em}.member-list li{padding:0}.member-list input{flex:1;min-width:0}.group-select{flex:0 0 6.5em;width:auto}.bulk-add{margin-top:12px}.bulk-add ul{margin:4px 0 0;padding-left:1.2em}.join-group{margin-bottom:12px}.join-group h3{color:var(--muted);margin:8px 0 6px;font-size:.9rem}.join-names{grid-template-columns:repeat(2,1fr);gap:8px;display:grid}.sticky-footer .hint{margin-bottom:6px}.list-main,.list-main strong,.rank-name,.oly-name,.join-names .btn,.member-name,.chip,.log-item{overflow-wrap:anywhere;min-width:0}.join-names .btn{padding:8px 12px;line-height:1.35}.join-names.single{grid-template-columns:1fr}.stat-list{margin:0;padding:0;list-style:none}.stat-list li{border-bottom:1px solid var(--line);justify-content:space-between;gap:8px;padding:8px 0;display:flex}.stat-list li:last-child{border-bottom:0}.admin-org{justify-content:space-between;align-items:center;gap:8px;display:flex}.appbar-right .btn.ghost{align-items:center;text-decoration:none;display:inline-flex}.admin-org .btn,.member-list .btn,.group-row .btn{white-space:nowrap;flex-shrink:0}.legal{line-height:1.75}.legal h2{margin:20px 0 6px;font-size:1rem}.legal p{margin:0 0 8px}.legal ul{margin:0 0 8px;padding-left:1.3em}.legal li{margin-bottom:4px}input[type=radio],input[type=checkbox]{width:20px;height:20px;min-height:0;accent-color:var(--green);flex:none;margin:0;padding:0}label.inline{justify-content:flex-start}.ad-slot{min-height:120px;margin:24px 0 8px}.ad-label{color:var(--muted);margin-bottom:2px;font-size:.72rem;display:block}.ad-placeholder{color:var(--muted);border-radius:var(--radius);background:#e6e9e7;justify-content:center;align-items:center;font-size:.85rem;display:flex}.ad-gap{height:24px}
