*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
html,body{width:100%;height:100%;overflow:hidden;background:#eee;color:#000;font-family:Arial,"Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif}
button,input,select{font:inherit}button{appearance:none;-webkit-appearance:none;border:none;background:none;cursor:pointer;color:#000}input{border:none;background:#fff;color:#000}
.app{width:min(100vw,calc(100vh*.75));height:min(100vh,calc(100vw/.75));margin:auto;position:fixed;inset:0;background:#d8d8d8;border:16px solid #070707;border-radius:36px;overflow:hidden;display:flex;flex-direction:column;color:#000}
.topbar{height:28px;flex:0 0 28px;display:flex;align-items:center;gap:12px;padding:0 26px;font-size:15px;font-weight:700;letter-spacing:.08em;background:#d8d8d8;white-space:nowrap}.wifi{margin-left:auto;font-size:18px;transform:rotate(90deg);line-height:1}.battery{width:28px;height:14px;background:#000;display:inline-block}
.brand{height:34px;flex:0 0 34px;display:flex;align-items:center;justify-content:center;color:#000;font-size:22px;font-weight:900;letter-spacing:.04em;line-height:1}.main{flex:1 1 auto;min-height:0;overflow:hidden;position:relative;padding:6px 18px}.back-area{height:52px;flex:0 0 52px;display:flex;align-items:center;justify-content:center;background:#d8d8d8}.ai-area{height:54px;flex:0 0 54px;display:flex;align-items:center;justify-content:center;background:#d8d8d8}.line-area{height:54px;flex:0 0 54px;display:flex;align-items:center;justify-content:center;padding:5px 24px 12px;background:#d8d8d8}.hidden,.hidden-input{display:none!important}
.round-back,.ai-button{width:44px;height:44px;border-radius:50%;border:2px solid #777;color:#000;background:radial-gradient(circle at 35% 30%,#fff 0,#f5f5f5 20%,#aaa 48%,#fff 58%,#777 74%,#ddd 100%);box-shadow:inset 0 0 6px rgba(0,0,0,.35);font-weight:900;font-size:12px}.ai-button{width:50px;height:50px;font-size:20px}.line-button{width:100%;height:100%;border-radius:22px;background:#000;color:#fff;font-size:21px;font-weight:900;letter-spacing:.08em}
.home-grid{width:100%;height:100%;display:grid;grid-template-columns:repeat(5,1fr);grid-template-rows:repeat(5,1fr);gap:14px 11px}.home-icon{width:100%;height:100%;min-width:0;min-height:0;border:4px solid #05303d;border-radius:12px;background:#fff;color:#000;display:flex;align-items:center;justify-content:center;text-align:center;font-size:18px;line-height:1.24;font-weight:900;padding:0;overflow:hidden}
.page{width:100%;height:100%;border:3px solid #05303d;border-radius:14px;background:#fff;display:flex;flex-direction:column;overflow:hidden;padding:8px 10px}.page-title{height:34px;flex:0 0 34px;display:flex;align-items:center;justify-content:center;font-size:26px;font-weight:900;letter-spacing:.03em}.page-sub{flex:0 0 auto;text-align:center;font-size:13px;font-weight:800;line-height:1.35;padding:0 0 5px}.short-note{border:2px solid #777;background:#f5f5f5;text-align:center;font-size:14px;font-weight:900;line-height:1.35;padding:7px;border-radius:8px}.panel-head{height:30px;display:flex;align-items:center;justify-content:center;background:#000;color:#fff;font-size:17px;font-weight:900;border-radius:8px}.big-button{width:100%;min-height:44px;border:4px solid #05303d;border-radius:22px;background:#fff;color:#000;display:flex;align-items:center;justify-content:center;text-align:center;font-size:21px;font-weight:900;line-height:1.15}.big-button.black{background:#000;color:#fff}.big-button:disabled{opacity:.34}.two-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;flex:0 0 auto}.choice{height:40px;border:3px solid #05303d;border-radius:20px;background:#fff;font-size:18px;font-weight:900}.choice.on{background:#000;color:#fff}
/* 予約 */
.reserve-page-v3{flex:1 1 auto;min-height:0;display:grid;grid-template-rows:38% 52% 10%;gap:5px}.reserve-box{border:3px solid #05303d;border-radius:12px;background:#fff;min-height:0;padding:6px 8px;display:flex;flex-direction:column;gap:4px}.reserve-section-title{font-size:21px;font-weight:900;text-align:center;line-height:1.05}.reserve-section-sub{font-size:12px;font-weight:900;text-align:center;line-height:1.1}.reserve-check-list{flex:1 1 auto;min-height:0;display:grid;grid-template-rows:repeat(5,1fr);gap:4px}.reserve-check-row{width:100%;min-height:0;border:3px solid #05303d;border-radius:18px;background:#fff;display:grid;grid-template-columns:72px 1fr 62px 1fr;align-items:center;gap:4px;padding:0 10px;font-size:17px;font-weight:900;text-align:left}.reserve-check-row span{font-size:17px}.reserve-check-row b{font-size:17px}.reserve-check-row em{font-style:normal;text-align:center;font-size:16px}.reserve-check-row strong{font-size:17px;text-align:right}.reserve-check-row.empty{color:#000;background:#fff}.reserve-check-row.empty em{grid-column:1/-1;text-align:center}.reserve-input-box{padding-bottom:7px}.reserve-input-grid{flex:1 1 auto;min-height:0;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:repeat(3,1fr);gap:8px}.reserve-input{width:100%;height:100%;min-height:44px;border:3px solid #05303d;border-radius:18px;background:#fff;color:#000;text-align:center;font-size:20px;font-weight:900;display:flex;align-items:center;justify-content:center;padding:0 8px;line-height:1.1;overflow:hidden}.reserve-input span{color:#8c8c8c}.reserve-field{cursor:pointer;-webkit-user-select:none;user-select:none;touch-action:manipulation}.reserve-input.name{grid-column:1/2}.reserve-input.tel{grid-column:2/3}.reserve-input.time{grid-column:1/2}.reserve-input.room{grid-column:1/2}.reserve-input.memo{grid-column:2/3}.reserve-type-toggle{display:grid;grid-template-columns:1fr 1fr;gap:6px}.reserve-type{height:100%;min-height:44px;border:3px solid #05303d;border-radius:18px;background:#fff;font-size:20px;font-weight:900;touch-action:manipulation}.reserve-type.on{background:#000;color:#fff}.reserve-confirm-button{width:100%;min-height:50px;border:4px solid #05303d;border-radius:24px;background:#000;color:#fff;font-size:22px;font-weight:900;line-height:1.1}.reserve-calendar-button{width:100%;height:100%;border:4px solid #05303d;border-radius:22px;background:#fff;color:#000;font-size:22px;font-weight:900}.reserve-confirm-modal{gap:10px}.detail-card{width:86%;max-height:86%;background:#fff;border:3px solid #05303d;border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:12px}.detail-grid{display:grid;grid-template-columns:80px 1fr;gap:8px;font-size:20px;font-weight:900}.modal-form{display:grid;grid-template-columns:1fr 1fr;gap:8px}.modal-form input{border:3px solid #05303d;border-radius:10px;height:46px;text-align:center;font-size:18px;font-weight:900}.reserve-keyboard-card{width:92%;max-height:92%;background:#fff;border:3px solid #05303d;border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:10px}.reserve-keyboard-value{height:46px;border:3px solid #05303d;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:900;background:#fff;overflow:hidden}.reserve-key-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:7px}.reserve-keyboard-card.num .reserve-key-grid{grid-template-columns:repeat(3,1fr)}.reserve-key{min-height:42px;border:3px solid #05303d;border-radius:12px;background:#fff;color:#000;font-size:20px;font-weight:900}.reserve-key.wide{font-size:16px}.reserve-keyboard-card.num .reserve-key{min-height:54px;font-size:24px}
/* カメラ */
.camera-layout{flex:1 1 auto;min-height:0;display:grid;grid-template-rows:42px 1fr auto 50px;gap:8px}.camera-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.camera-preview{border:3px solid #05303d;background:#f2f2f2;display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative;border-radius:8px}.camera-preview img{width:100%;height:100%;object-fit:contain;display:none;background:#000}.camera-preview.has-image img{display:block}.camera-preview.has-image .camera-placeholder{display:none}.camera-placeholder{font-size:34px;font-weight:900;color:#777}.camera-help{text-align:center;font-size:13px;font-weight:900}
/* 車番 */
.carplate-layout{flex:1 1 auto;min-height:0;display:grid;grid-template-rows:auto 1fr 1fr auto;gap:8px}.car-instruction{height:28px;display:flex;align-items:center;justify-content:center;background:#f5f5f5;border:2px solid #777;border-radius:8px;font-size:14px;font-weight:900}.plate-block{min-height:0;display:grid;grid-template-rows:24px 1fr 30px;gap:4px}.plate-label{font-size:17px;font-weight:900;line-height:1}.plate-window{position:relative;width:100%;height:100%;border:4px solid #05303d;border-radius:10px;background:#f6f6f6;overflow:hidden;display:flex;align-items:center;justify-content:center}.plate-window img{width:100%;height:100%;object-fit:contain;background:#000;display:none}.plate-window.has-image img{display:block}.plate-window.has-image .plate-shadow,.plate-window.has-image .plate-touch{display:none}.plate-shadow{width:78%;height:68%;border:4px solid #c8c8c8;border-radius:12px;color:#b8b8b8;display:flex;flex-direction:column;justify-content:center;gap:4px;padding:8px 18px;background:#fafafa}.plate-top{display:flex;justify-content:space-between;font-size:18px;font-weight:900}.plate-main{display:flex;align-items:flex-end;justify-content:space-between}.plate-main span{font-size:24px;font-weight:900}.plate-main b{font-size:42px;line-height:.9;letter-spacing:.05em}.plate-touch{position:absolute;inset:auto 10px 8px;min-height:30px;border-radius:15px;background:#000;color:#fff;display:flex;align-items:center;justify-content:center;font-size:17px;font-weight:900}.mini-retake{height:30px;border:2px solid #05303d;border-radius:15px;font-size:14px;font-weight:900;background:#fff}.car-bottom{display:grid;grid-template-columns:1.5fr 1fr;gap:8px;align-items:stretch}.car-note{border:2px solid #777;border-radius:8px;background:#f5f5f5;display:flex;align-items:center;justify-content:center;text-align:center;font-size:12px;font-weight:900;line-height:1.25;padding:4px}
/* 入力・静的 */
.business-form,.business-menu,.inventory-layout{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;gap:8px}.business-form.compact{gap:6px}.form-row{display:grid;grid-template-columns:105px 1fr;align-items:center;gap:8px}.form-label{font-size:19px;font-weight:900;white-space:nowrap}.input-pill{width:100%;height:40px;border:3px solid #05303d;border-radius:20px;background:#fff;color:#000;text-align:center;font-size:21px;font-weight:900}.inline-fields{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.inline-fields.two{grid-template-columns:repeat(2,1fr)}.choice-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.inventory-row{border:3px solid #05303d;border-radius:12px;display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;align-items:center;gap:6px;min-height:58px;padding:0 10px;font-size:17px;font-weight:900}.inventory-row em{font-style:normal;text-align:center;border:2px solid #000;border-radius:14px;padding:4px}.survey-layout{flex:1 1 auto;display:grid;grid-template-columns:1fr 1fr 1fr;grid-template-rows:1fr auto;gap:10px}.survey-layout .short-note{grid-column:1/-1}.stats-box{border:2px solid #000;padding:8px 12px;display:grid;grid-template-columns:1fr auto;row-gap:6px;font-size:17px;font-weight:900}.stats-subhead{grid-column:1/-1;text-align:right;font-size:12px;font-weight:700}.stats-box.nengo{flex:1 1 auto;align-content:center;font-size:22px;row-gap:14px}
/* SNS */
.sns-frame{flex:1 1 auto;min-height:0;border:2px solid #000;background:#000;overflow-y:auto;padding:10px}.sns-post{border:1px solid #fff;color:#fff;margin-bottom:12px;padding:10px;min-height:140px}.sns-date{text-align:right;font-size:10px;margin-bottom:8px}.sns-text{font-size:14px;line-height:1.55;white-space:pre-wrap}.sns-img{width:100%;max-height:220px;object-fit:contain;display:block;margin-top:8px;background:#111}
/* 企画 */
.kikaku-layout{flex:1 1 auto;min-height:0;display:grid;grid-template-columns:1fr 1fr;gap:10px}.kikaku-form{display:flex;flex-direction:column;gap:7px}.kikaku-form label{font-size:13px;font-weight:900;display:flex;flex-direction:column;gap:2px}.kikaku-form input{height:34px;border:3px solid #05303d;border-radius:8px;text-align:center;font-size:16px;font-weight:900}.flyer{border:3px solid #05303d;border-radius:12px;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:6px;padding:8px}.flyer-bowl{width:70px;height:70px;border-radius:50%;border:4px solid #000;display:flex;align-items:center;justify-content:center;font-size:34px;font-weight:900}.flyer-title{font-size:24px;font-weight:900;line-height:1.1}.flyer-caption{font-size:13px;font-weight:900}.flyer-price{font-size:34px;font-weight:900}.flyer-period{font-size:12px;font-weight:900}
/* クーポン */
.coupon-menu{flex:1 1 auto;display:grid;grid-template-columns:1fr 1fr;gap:14px}.giant-choice{border:4px solid #05303d;border-radius:18px;background:#fff;font-size:34px;font-weight:900;line-height:1.2}.giant-choice small{font-size:15px}.pin-boxes{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:4px 24px}.pin-boxes.six{grid-template-columns:repeat(6,1fr);margin:4px 0}.pin-cell{height:56px;border:3px solid #05303d;display:flex;align-items:center;justify-content:center;font-size:26px;font-weight:900;background:#fff;border-radius:8px}.keypad{flex:1 1 auto;min-height:0;display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.key{border-radius:12px;background:#000;color:#fff;display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:900}.key.wide{font-size:19px}.coupon-result{height:70px;border:3px solid #05303d;border-radius:12px;display:flex;align-items:center;justify-content:center;gap:12px;font-size:18px;font-weight:900}.coupon-result b{font-size:42px}.coupon-result.ok b{color:#000}.coupon-form{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;gap:8px}.coupon-row{display:grid;grid-template-columns:100px 1fr;gap:6px;align-items:center}.coupon-row.double{grid-template-columns:100px repeat(3,1fr)}.coupon-label{font-size:15px;font-weight:900}.small-pill{height:36px;border:3px solid #05303d;border-radius:18px;display:flex;align-items:center;justify-content:center;font-size:17px;font-weight:900}
/* 翻訳 */
.translate-layout{flex:1 1 auto;min-height:0;display:grid;grid-template-rows:38px 1fr 32px 50px;gap:8px}.lang-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:4px}.lang-tabs button{border:3px solid #05303d;border-radius:12px;background:#fff;font-size:17px;font-weight:900}.lang-tabs button.on{background:#000;color:#fff}.talk-log{min-height:0;overflow-y:auto;border:3px solid #05303d;border-radius:12px;padding:8px;background:#f7f7f7}.bubble{max-width:88%;border:2px solid #777;border-radius:12px;background:#fff;padding:8px;margin-bottom:8px;font-weight:900}.bubble.guest{margin-left:auto}.bubble small{display:block;font-size:11px;color:#555}.heard{font-size:13px}.translated{font-size:22px;line-height:1.25;margin-top:4px}.listening{border:2px solid #777;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:900;background:#fff}
/* ボイレコ */
.voice-layout{flex:1 1 auto;min-height:0;display:grid;grid-template-rows:52px 1fr 50px 46px;gap:9px}.voice-state{border:3px solid #05303d;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:900}.voice-text{border:3px solid #05303d;border-radius:12px;padding:12px;font-size:20px;font-weight:900;line-height:1.45;overflow-y:auto;background:#f7f7f7}
/* カレンダ */
.calendar-grid{flex:1 1 auto;min-height:0;display:grid;grid-template-columns:repeat(7,1fr);grid-template-rows:30px repeat(5,1fr);gap:4px}.cal-head{display:flex;align-items:center;justify-content:center;background:#000;color:#fff;font-weight:900;border-radius:6px}.cal-day{border:2px solid #05303d;border-radius:8px;background:#fff;font-size:18px;font-weight:900;display:flex;flex-direction:column;align-items:center;justify-content:center}.cal-day span{font-size:10px;border:1px solid #000;border-radius:8px;padding:1px 5px}.cal-day.booked{border-width:4px}.reserve-line{border:2px solid #05303d;border-radius:10px;padding:8px;font-size:18px;font-weight:900;margin-bottom:6px}
/* 天気・電卓 */
.weather-screen{width:100%;height:100%;display:flex;flex-direction:column;overflow:hidden;background:#fff;border:3px solid #05303d;border-radius:14px}.weather-tabs{height:42px;flex:0 0 42px;display:grid;grid-template-columns:1fr 1fr}.weather-tabs button{border-bottom:2px solid #05303d;font-size:16px;font-weight:900;background:#fff}.weather-tabs button.on{background:#000;color:#fff}.weather-frame{flex:1 1 auto;min-height:0}.weather-frame iframe{width:100%;height:100%;border:0}.calc-screen{width:100%;height:100%;border:3px solid #05303d;border-radius:14px;overflow:hidden;background:#fff;display:flex;flex-direction:column}.calc-display{height:88px;flex:0 0 88px;display:flex;align-items:center;justify-content:flex-end;padding:0 18px;border-bottom:3px solid #05303d;font-size:38px;font-weight:900}.calc-grid{flex:1 1 auto;min-height:0;display:grid;grid-template-columns:repeat(4,1fr);gap:2px;background:#05303d}.calc-key{background:#fff;color:#000;font-size:28px;font-weight:900}.calc-key.black{background:#000;color:#fff}
.send-modal{position:absolute;inset:0;background:rgba(0,0,0,.25);display:flex;align-items:center;justify-content:center;z-index:30}.send-card{width:82%;height:74%;background:#fff;border:3px solid #05303d;border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;text-align:center}.send-title{font-size:27px;font-weight:900}.send-text{font-size:16px;line-height:1.4}
@media (max-width:560px){.app{border-width:12px;border-radius:28px}.topbar{padding:0 16px;gap:7px;font-size:12px}.brand{font-size:18px}.main{padding:5px 13px}.home-grid{gap:10px 8px}.home-icon{font-size:15px;border-width:3px}.page-title{font-size:22px}.big-button{min-height:40px;font-size:18px}.line-button{font-size:17px}.plate-main b{font-size:34px}.plate-shadow{width:84%}.reserve-card{font-size:15px}.kikaku-layout{grid-template-columns:1fr}.flyer{display:none}}
