/* AKIPITA BIZ 共通スタイル
   base #0471D1 / main #0487D9 / bg #F0F1F2 / text #383838 / alert #E0503A */
:root {
  --base: #0471D1;
  --main: #0487D9;
  --bg: #F0F1F2;
  --text: #383838;
  --alert: #E0503A;
  --line: #d6dade;
  --free: #2E7D32;
  --muted: #8a9099;
  --appo: #FFB74C;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: var(--text); background: var(--bg); font-size: 14px; line-height: 1.6;
}
a { color: var(--base); text-decoration: none; }
a:hover { opacity: .85; }

/* ===== ヘッダー ===== */
header.app {
  background: var(--base); color: #fff;
  display: flex; align-items: center; gap: 18px; padding: 0 20px; height: 52px;
  position: sticky; top: 0; z-index: 50;
}
header.app .brand { font-weight: 700; font-size: 17px; color: #fff; letter-spacing: .5px; }
header.app .brand small { font-weight: 400; opacity: .8; margin-left: 4px; font-size: 11px; }
header.app nav { display: flex; gap: 2px; flex: 1; overflow-x: auto; }
header.app nav a {
  color: #ffffffcc; padding: 6px 12px; border-radius: 6px; white-space: nowrap;
  font-size: 13px; position: relative;
}
header.app nav a.active, header.app nav a:hover { background: #ffffff22; color: #fff; opacity: 1; }
header.app .user { font-size: 12px; color: #ffffffcc; white-space: nowrap; }
.nav-dot { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--alert); }

/* ===== レイアウト ===== */
main { max-width: 1280px; margin: 0 auto; padding: 24px 20px 60px; }
main.narrow { max-width: 640px; }
main.mid { max-width: 900px; }
h1 { font-size: 22px; margin-bottom: 14px; }
h2 { font-size: 16px; margin-bottom: 10px; }
.muted { color: var(--muted); font-size: 13px; }
.hint { color: var(--muted); font-size: 12px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

/* ===== カード ===== */
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin-bottom: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 800px) { .grid2, .grid3 { grid-template-columns: 1fr; } }

/* ===== ボタン ===== */
.btn {
  display: inline-block; border: none; border-radius: 7px; cursor: pointer;
  padding: 9px 18px; font-size: 14px; font-weight: 600; text-align: center;
}
.btn-primary { background: var(--main); color: #fff; }
.btn-base { background: var(--base); color: #fff; }
.btn-alert { background: var(--alert); color: #fff; }
.btn-ghost { background: #fff; color: var(--text); border: 1px solid var(--line); }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-block { display: block; width: 100%; }
.btn:hover { opacity: .9; }

/* ===== フォーム ===== */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 5px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=time],
input[type=number], input[type=tel], select, textarea {
  width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 7px;
  font-size: 14px; background: #fff; color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--main); border-color: var(--main); }

/* ===== ピル・バッジ ===== */
.pill { display: inline-block; padding: 1px 9px; border-radius: 99px; font-size: 11px; font-weight: 600; }
.pill-blue { background: #e1eefb; color: var(--base); }
.pill-green { background: #e3f1e4; color: var(--free); }
.pill-gray { background: #e8eaec; color: var(--muted); }
.pill-red { background: #fbe5e1; color: var(--alert); }
.pill-yellow { background: #fff3df; color: #b57917; }

/* ===== アラート ===== */
.alert { padding: 11px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 14px; }
.alert-error { background: #fbe5e1; color: var(--alert); }
.alert-info { background: #e1eefb; color: var(--base); }
.alert-warn { background: #fff3df; color: #b57917; }

/* ===== 一覧カード(.share-item 個人版踏襲) ===== */
.share-item { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; }
.share-item .item-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.share-item .item-head .name { font-weight: 700; font-size: 15px; }
.share-item .item-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.share-item .item-meta b { color: var(--text); font-weight: 600; }
.share-item .item-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ===== テーブル ===== */
table.list { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; }
table.list th, table.list td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 13px; }
table.list th { background: #f7f8f9; font-size: 12px; color: var(--muted); }

/* ===== タブ ===== */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 16px; }
.tabs a { padding: 8px 16px; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tabs a.active { color: var(--base); border-color: var(--base); font-weight: 700; }

/* ===== モーダル ===== */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); display: none; align-items: center; justify-content: center; z-index: 100; }
.modal-backdrop.show { display: flex; }
.modal { background: #fff; border-radius: 10px; padding: 20px; width: 92%; max-width: 460px; max-height: 90vh; overflow-y: auto; }

/* ===== 俯瞰タイムライン(SC-B07) ===== */
.tl-wrap { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; }
.tl { display: grid; min-width: 860px; }
.tl .tl-head, .tl .tl-row { display: grid; grid-template-columns: 150px repeat(12, 1fr); }
.tl.week .tl-head, .tl.week .tl-row { grid-template-columns: 150px repeat(7, 1fr); }
.tl .tl-head div { font-size: 11px; color: var(--muted); padding: 6px 4px; border-bottom: 1px solid var(--line); text-align: center; }
.tl .tl-name { font-size: 13px; font-weight: 600; padding: 8px 10px; border-bottom: 1px solid #edefef; border-right: 1px solid var(--line); display: flex; align-items: center; gap: 6px; background: #fbfcfc; }
.tl .tl-name .tl-type { font-size: 10px; color: var(--muted); font-weight: 400; }
.tl .cell { border-bottom: 1px solid #edefef; border-right: 1px solid #f2f4f4; min-height: 38px; position: relative; cursor: pointer; }
.tl .cell:hover { background: #eef6fd; }
.tl .cell.busy { background: var(--base); opacity: .85; cursor: default; }
.tl .cell.appo { background: var(--appo); cursor: default; }
.tl .cell.private { background: #b9bfc6; cursor: default; }
.tl .cell.conflict { background: var(--alert); cursor: pointer; }
.tl .cell .lbl { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 10px; color: #fff; overflow: hidden; white-space: nowrap; }
.tl-legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); padding: 10px 4px; flex-wrap: wrap; }
.tl-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }

/* ===== 空き共有グリッド(SC-B13) ===== */
.avail-grid { display: grid; grid-template-columns: 90px repeat(5, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; min-width: 640px; }
.avail-grid > div { padding: 9px 6px; border-bottom: 1px solid #edefef; border-right: 1px solid #f2f4f4; text-align: center; font-size: 12px; }
.avail-grid .gh { background: #f7f8f9; color: var(--muted); font-size: 11px; }
.avail-grid .slot { cursor: pointer; }
.avail-grid .slot:hover { outline: 2px solid var(--main); }
.avail-grid .all-free { background: #e3f1e4; color: var(--free); font-weight: 700; }
.avail-grid .some { background: #fffbe9; color: #b57917; }
.avail-grid .ng { background: #f4f5f6; color: #c2c7cc; cursor: default; }
.avail-grid .sel { outline: 3px solid var(--main); background: #d9edfb; }

/* ===== LP ===== */
.lp-hero { background: linear-gradient(160deg, var(--base), var(--main)); color: #fff; text-align: center; padding: 70px 20px 60px; }
.lp-hero h1 { font-size: 34px; margin-bottom: 12px; }
.lp-hero p { font-size: 16px; opacity: .92; margin-bottom: 26px; }
.lp-section { max-width: 1000px; margin: 0 auto; padding: 50px 20px; }
.lp-section h2 { text-align: center; font-size: 24px; margin-bottom: 28px; }
.lp-price { border: 2px solid var(--line); border-radius: 12px; background: #fff; padding: 22px; text-align: center; }
.lp-price.reco { border-color: var(--main); position: relative; }
.lp-price .p { font-size: 26px; font-weight: 700; margin: 8px 0; }
.lp-price .p small { font-size: 13px; font-weight: 400; color: var(--muted); }
footer.lp { text-align: center; padding: 26px; font-size: 12px; color: var(--muted); }

/* ===== ゲスト画面 ===== */
.guest-head { background: var(--base); color: #fff; padding: 14px 20px; font-weight: 700; }
.guest-head small { font-weight: 400; opacity: .85; margin-left: 8px; }

@media (max-width: 700px) {
  header.app { padding: 0 12px; gap: 10px; }
  main { padding: 16px 12px 50px; }
}
