*,*::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;padding:0 8px;line-height:1.1;appearance:none;-webkit-appearance:none}.reserve-input::placeholder{color:#8c8c8c;opacity:1}.reserve-field{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;resize:none;padding-top:12px}.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{display:none}.reserve-keyboard-value{display:none}.reserve-key-grid{display:none}.reserve-key{display:none}
.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}}
.cal-day.new-booked{
  background:#000;
  color:#fff;
  border-width:5px;
}
.cal-day.new-booked span{
  border-color:#fff;
  color:#fff;
}
.reserve-done-modal .send-card{
  max-width:84%;
}


/* ボイスメモ */
.voice-layout-v2{
  flex:1 1 auto;
  min-height:0;
  display:flex;
  flex-direction:column;
  gap:7px;
}
.voice-help{
  flex:0 0 auto;
  text-align:center;
  font-size:14px;
  font-weight:900;
  line-height:1.25;
  padding:1px 4px;
}
.voice-log-panel{
  flex:1 1 auto;
  min-height:0;
  border:3px solid #05303d;
  background:#fff;
  position:relative;
  padding:10px 12px 76px;
  overflow:hidden;
}
.voice-log-list{
  width:100%;
  height:100%;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  padding-right:4px;
}
.voice-log-item{
  margin-bottom:20px;
  font-size:17px;
  font-weight:900;
  line-height:1.28;
  letter-spacing:.02em;
}
.voice-log-time{
  margin-bottom:2px;
}
.voice-log-text{
  white-space:pre-wrap;
}
.voice-mic-button{
  position:absolute;
  left:50%;
  bottom:10px;
  transform:translateX(-50%);
  width:56px;
  height:56px;
  border-radius:50%;
  background:#f00;
  color:#000;
  border:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:30px;
  font-weight:900;
  line-height:1;
  box-shadow:none;
}
.voice-mic-button.recording{
  background:#f00;
  color:#fff;
  font-size:26px;
}
.voice-send-button{
  flex:0 0 48px;
  width:100%;
  border:4px solid #05303d;
  border-radius:24px;
  background:#fff;
  color:#000;
  font-size:23px;
  font-weight:900;
  letter-spacing:.03em;
}

/* 業務報告カメラ */
.report-camera-layout{
  flex:1 1 auto;
  min-height:0;
  display:flex;
  flex-direction:column;
  gap:7px;
}
.report-camera-sub{
  flex:0 0 auto;
  text-align:center;
  font-size:16px;
  font-weight:900;
  line-height:1.15;
}
.report-category-row{
  flex:0 0 44px;
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:7px;
}
.report-category{
  height:44px;
  border:3px solid #05303d;
  border-radius:22px;
  background:#fff;
  color:#000;
  font-size:18px;
  font-weight:900;
  line-height:1;
}
.report-category.on{
  background:#000;
  color:#fff;
}
.report-preview-frame{
  flex:1 1 auto;
  min-height:0;
  border:3px solid #05303d;
  background:#fff;
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
.report-guide-box{
  position:absolute;
  inset:16px;
  border:3px dashed #9a9a9a;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#777;
  font-size:18px;
  font-weight:900;
  text-align:center;
  line-height:1.3;
  padding:10px;
  pointer-events:none;
}
.report-preview-frame.has-media .report-guide-box{
  display:none;
}
.report-media{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.report-actions-row{
  flex:0 0 56px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.report-action-button{
  width:100%;
  height:56px;
  border:4px solid #05303d;
  border-radius:28px;
  background:#fff;
  color:#000;
  font-size:24px;
  font-weight:900;
  line-height:1;
}
.report-save-button{
  flex:0 0 56px;
  width:100%;
  height:56px;
  border:4px solid #05303d;
  border-radius:28px;
  background:#fff;
  color:#000;
  font-size:25px;
  font-weight:900;
  line-height:1;
}


/* 車番管理 */
.carplate-layout-v2{
  flex:1 1 auto;
  min-height:0;
  display:grid;
  grid-template-rows:auto 1fr auto auto;
  gap:8px;
}
.car-lead{
  border:2px solid #05303d;
  border-radius:10px;
  padding:6px 8px;
  text-align:center;
  font-size:15px;
  font-weight:900;
  background:#fff;
}
.car-capture-grid{
  min-height:0;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.plate-block-v2{
  min-width:0;
  min-height:0;
  display:grid;
  grid-template-rows:auto 1fr auto auto;
  gap:5px;
}
.plate-label-v2{
  text-align:center;
  font-size:17px;
  font-weight:900;
  line-height:1.15;
}
.plate-window-v2{
  position:relative;
  min-height:0;
  width:100%;
  height:100%;
  border:4px solid #05303d;
  border-radius:14px;
  overflow:hidden;
  background:#f8f8f8;
  display:flex;
  align-items:center;
  justify-content:center;
}
.plate-window-v2 img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  display:none;
  z-index:4;
}
.plate-window-v2.has-image img{display:block}
.plate-window-v2.has-image .photo-guide-v2,
.plate-window-v2.has-image .plate-touch-v2{display:none}
.photo-guide-v2{
  width:88%;
  height:76%;
  border:3px dashed rgba(0,0,0,.35);
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
}
.plate-shadow-v2{
  width:92%;
  height:58%;
  border:4px solid rgba(0,0,0,.35);
  border-radius:10px;
  position:relative;
  background:rgba(255,255,255,.55);
  display:grid;
  grid-template-rows:42% 58%;
  padding:4px 14px 8px;
}
.plate-screw{
  width:12px;
  height:12px;
  border:2px solid rgba(0,0,0,.35);
  border-radius:50%;
  position:absolute;
  top:50%;
  transform:translateY(-50%);
}
.plate-screw.left{left:10px}
.plate-screw.right{right:10px}
.plate-upper{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  font-size:17px;
  font-weight:900;
  color:rgba(0,0,0,.42);
}
.plate-lower{
  display:grid;
  grid-template-columns:30px 1fr;
  align-items:center;
  gap:8px;
  font-weight:900;
  color:rgba(0,0,0,.42);
}
.plate-lower span{font-size:20px}
.plate-lower b{font-size:32px;letter-spacing:.06em;text-align:center}
.room-shadow-v2{
  width:78%;
  height:78%;
  border:4px solid rgba(0,0,0,.35);
  border-radius:16px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  color:rgba(0,0,0,.42);
  background:rgba(255,255,255,.55);
  font-weight:900;
}
.room-circle{
  width:82px;
  height:82px;
  border:5px solid rgba(0,0,0,.35);
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:30px;
}
.room-caption{
  margin-top:10px;
  font-size:17px;
}
.plate-touch-v2{
  position:absolute;
  left:50%;
  bottom:10px;
  transform:translateX(-50%);
  background:#000;
  color:#fff;
  border-radius:18px;
  padding:8px 18px;
  font-size:16px;
  font-weight:900;
  z-index:3;
  white-space:nowrap;
}
.plate-result-v2{
  min-height:26px;
  border:2px solid #999;
  border-radius:8px;
  background:#f5f5f5;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  font-size:13px;
  font-weight:900;
}
.plate-result-v2.ok{
  border-color:#05303d;
  background:#fff;
}
.mini-retake-v2{
  min-height:34px;
  border:3px solid #05303d;
  border-radius:17px;
  background:#fff;
  font-size:15px;
  font-weight:900;
}
.car-status-panel{
  min-height:34px;
  border:3px solid #05303d;
  border-radius:10px;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  font-size:16px;
  font-weight:900;
}
.car-status-panel.ok{
  background:#000;
  color:#fff;
}
.car-send-button{
  min-height:46px;
}
