/* resp.css 2026-10-31: PC/スマホ適配（最後に読み込み） */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{overflow-x:hidden}
/* iOS 自動ズーム防止：入力は16px以上 */
input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px!important}
input[type=checkbox],input[type=radio]{width:22px;height:22px}
/* タップ領域 44px */
button,.btn,.btn.sm,.chip,.segadd,.ngadd,.tabs a,.topstat,select{min-height:44px}
.arrow{width:44px!important;height:44px!important}
.x,.todayr-x,.segrow .x,.ngrow .x{min-width:44px!important;min-height:44px!important;width:44px!important;height:44px!important;display:grid;place-items:center}
.segrow,.seghead{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px!important}
.ngrow{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px!important}
.chip{display:inline-flex;align-items:center;justify-content:center}
label.chk{min-height:44px;align-items:center}
.btn.sm{display:inline-flex;align-items:center;justify-content:center}
#plsel{min-height:44px}
/* 下からのシート：画面より高い時はシート内スクロール */
.sheet{max-height:92vh;max-height:92dvh;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-bottom:calc(28px + env(safe-area-inset-bottom))!important}
input[type=time]{min-height:48px}
/* カレンダー：狭い画面 */
@media(max-width:400px){
 .grid{gap:4px!important}
 .day{min-height:60px;padding:4px 3px!important}
 .day .t{font-size:10px!important;word-break:keep-all}
 .day .hol,.day .ord{font-size:9px!important}
 .wrap{padding-left:12px!important;padding-right:12px!important}
}
/* PC：シートを中央寄せのカード風に */
@media(min-width:900px){
 .sheet{bottom:24px!important;border-radius:28px!important;border-bottom:1px solid var(--line)!important;max-height:calc(100vh - 48px)}
}
/* 管理画面（スマホ） */
body.admin a[href^="/admin/lang/"]{display:inline-flex;align-items:center;min-height:44px;padding:0 8px}
@media(max-width:600px){
 body.admin table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}
}
.lineprompt button[aria-label="閉じる"]{min-width:44px;min-height:44px}
