/* Awase — デザインの土台
   色：SHIGO十色のロゴ10色（値はそのまま・不透明度や淡色は作らない）＋グレー
   メイン＝紺 #1b395c（文字・主ボタン）／空色 #5a9ac4（選択）
   影・グラデーション・左の太線は使わない。区切りは細い線と余白 */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;500;700&display=swap");

:root {
  --pink: #d86a92; --coral: #d87664; --orange: #e39c3d; --yellow: #f2da30; --green: #64af6f;
  --deepteal: #33a393; --teal: #50a9b3; --sky: #5a9ac4; --purple: #6d6299; --navy: #1b395c;
  --ink: #1b395c; --text: #22303e; --sub: #6b7785; --faint: #98a2ad;
  --bg: #f5f5f7; --surface: #ffffff; --line: #e3e5e8; --line2: #eef0f2; --fill: #f0f1f3;
  --danger: #c2453a;
  --r-l: 20px; --r-m: 14px; --r-s: 10px;
  --font: "Inter", "Noto Sans JP", -apple-system, "Hiragino Sans", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; font-feature-settings: "palt"; }
a { color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* 十色の帯（グラデーションではなく10等分） */
.stripe { display: flex; height: 3px; }
.stripe i { flex: 1; }
.stripe i:nth-child(1) { background: var(--pink); } .stripe i:nth-child(2) { background: var(--coral); }
.stripe i:nth-child(3) { background: var(--orange); } .stripe i:nth-child(4) { background: var(--yellow); }
.stripe i:nth-child(5) { background: var(--green); } .stripe i:nth-child(6) { background: var(--deepteal); }
.stripe i:nth-child(7) { background: var(--teal); } .stripe i:nth-child(8) { background: var(--sky); }
.stripe i:nth-child(9) { background: var(--purple); } .stripe i:nth-child(10) { background: var(--navy); }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; font-size: 17px; }
.mark { width: 22px; height: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.mark i { border-radius: 4px; }
.mark i:nth-child(1) { background: var(--navy); } .mark i:nth-child(2) { background: var(--sky); }
.mark i:nth-child(3) { background: var(--teal); } .mark i:nth-child(4) { background: var(--pink); }

h1, h2, h3 { color: var(--ink); letter-spacing: -0.02em; margin: 0; line-height: 1.3; }
h1 { font-size: 30px; font-weight: 700; }
h2 { font-size: 21px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 600; }
.muted { color: var(--sub); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); }
.pad { padding: 24px; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.wrap { flex-wrap: wrap; }

/* ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--fill); }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover { background: #24476e; }
.btn.danger { color: var(--danger); }
.btn.block { width: 100%; }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn:disabled { opacity: .45; cursor: default; }
.link { background: none; border: 0; padding: 0; color: var(--ink); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* 入力 */
label.f { display: block; }
label.f > span { display: block; font-size: 13px; font-weight: 600; color: var(--sub); margin-bottom: 6px; }
.in { width: 100%; height: 46px; padding: 0 14px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--surface); outline: none; transition: border-color .15s; }
textarea.in { height: auto; min-height: 92px; padding: 12px 14px; resize: vertical; }
.in:focus { border-color: var(--sky); }
select.in { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b7785' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

/* 切り替え（セグメント） */
.seg { display: inline-flex; padding: 3px; background: var(--fill); border-radius: 999px; gap: 2px; }
.seg button { border: 0; background: none; height: 34px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: 13px; color: var(--sub); cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }

/* スイッチ */
.switch { position: relative; width: 46px; height: 28px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: #d6dade; transition: background .2s; pointer-events: none; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + i { background: var(--deepteal); }
.switch input:checked + i::after { transform: translateX(18px); }

/* 人（丸） */
.av { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-size: 13px; font-weight: 700; flex: none; border: 2px solid var(--surface); }
.av.sm { width: 24px; height: 24px; font-size: 11px; }
.avs { display: inline-flex; }
.avs .av + .av { margin-left: -8px; }
.c-pink { background: var(--pink); } .c-coral { background: var(--coral); } .c-orange { background: var(--orange); }
.c-yellow { background: var(--yellow); color: var(--navy); } .c-green { background: var(--green); } .c-deepteal { background: var(--deepteal); }
.c-teal { background: var(--teal); } .c-sky { background: var(--sky); } .c-purple { background: var(--purple); } .c-navy { background: var(--navy); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--fill); font-size: 12px; font-weight: 600; color: var(--sub); }
.chip.ok { background: var(--deepteal); color: #fff; }
.chip.warn { background: var(--orange); color: #fff; }
.chip.off { background: var(--fill); color: var(--faint); }

.list > * + * { border-top: 1px solid var(--line2); }
.item { display: flex; align-items: center; gap: 14px; padding: 16px 20px; text-decoration: none; color: inherit; }
a.item:hover, button.item:hover { background: #fafafb; }
button.item { width: 100%; border: 0; background: none; text-align: left; cursor: pointer; }
.empty { padding: 40px 20px; text-align: center; color: var(--faint); }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 14px; z-index: 50; }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--navy); animation: sp 0.8s linear infinite; margin: 30px auto; }
@keyframes sp { to { transform: rotate(360deg); } }

/* ── 予約・調整のページ（相手向け） ── */
.guest { max-width: 1040px; margin: 0 auto; padding: 28px 20px 60px; }
.guest-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.book { display: grid; grid-template-columns: 320px 1fr; gap: 0; overflow: hidden; }
.book-info { padding: 32px 28px; border-right: 1px solid var(--line); }
.book-main { padding: 28px; min-height: 520px; }
.meta { display: flex; align-items: center; gap: 10px; color: var(--sub); font-size: 14px; margin-top: 10px; }
.meta svg { flex: none; }
.pick { display: grid; grid-template-columns: 1fr 240px; gap: 28px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-head button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center; }
.cal-head button:disabled { opacity: .3; cursor: default; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.cal .dow { font-size: 12px; color: var(--faint); font-weight: 600; padding-bottom: 4px; }
.cal button { aspect-ratio: 1; border: 0; border-radius: 50%; background: none; font-weight: 600; font-size: 15px; color: var(--faint); cursor: default; font-variant-numeric: tabular-nums; }
.cal button.has { color: var(--ink); background: var(--fill); cursor: pointer; }
.cal button.has:hover { background: #e4e7ea; }
.cal button.sel { background: var(--navy); color: #fff; }
.cal button.today { box-shadow: none; text-decoration: underline; text-underline-offset: 4px; }
.times { display: flex; flex-direction: column; gap: 8px; max-height: 440px; overflow-y: auto; }
.times button { height: 48px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--surface); font-weight: 600; color: var(--ink); cursor: pointer; font-variant-numeric: tabular-nums; }
.times button:hover { border-color: var(--sky); }
.times button.sel { background: var(--sky); border-color: var(--sky); color: #fff; }
.gbar { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-m); margin-bottom: 20px; }
.gicon { width: 18px; height: 18px; flex: none; }
.done-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--deepteal); display: grid; place-items: center; margin: 0 auto 18px; }

/* グループ調整の表 */
.grid-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-m); }
table.poll { border-collapse: collapse; width: 100%; font-size: 14px; }
table.poll th, table.poll td { padding: 10px 12px; border-bottom: 1px solid var(--line2); text-align: center; white-space: nowrap; }
table.poll th { font-size: 12px; color: var(--sub); font-weight: 600; background: #fafafb; position: sticky; top: 0; }
table.poll td.when { text-align: left; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
table.poll tr.best td { background: #fafafb; }
table.poll tr.best td.when::after { content: "全員OK"; margin-left: 8px; font-size: 11px; color: #fff; background: var(--deepteal); padding: 2px 8px; border-radius: 999px; }
.mk { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-weight: 700; font-size: 14px; }
.mk.mk-o { background: var(--deepteal); color: #fff; }
.mk.mk-m { background: var(--yellow); color: var(--navy); }
.mk.mk-x { color: var(--faint); }
.mine button { width: 40px; height: 34px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; cursor: pointer; color: var(--faint); }
.mine button.s-o { background: var(--deepteal); border-color: var(--deepteal); color: #fff; }
.mine button.s-m { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
.count { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); }

/* ── メンバーの画面 ── */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { background: var(--surface); border-right: 1px solid var(--line); padding: 20px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.side nav { margin-top: 26px; display: flex; flex-direction: column; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: var(--r-s); text-decoration: none; color: var(--sub); font-weight: 600; font-size: 14px; }
.side nav a:hover { background: var(--fill); }
.side nav a.on { background: var(--fill); color: var(--ink); }
.side nav svg { width: 18px; height: 18px; flex: none; }
.side .me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-top: 1px solid var(--line2); }
.main { padding: 36px 40px 80px; max-width: 1080px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.et { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.et-top { display: flex; align-items: center; gap: 10px; }
.kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.kpi .card { padding: 20px 22px; }
.kpi b { display: block; font-size: 30px; color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.day-label { font-size: 13px; font-weight: 700; color: var(--sub); padding: 18px 20px 8px; }
.time-col { width: 92px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; flex: none; }
.sheet-bg { position: fixed; inset: 0; background: rgba(20, 28, 38, .32); z-index: 40; display: flex; justify-content: flex-end; }
.sheet { width: min(560px, 100%); height: 100%; background: var(--surface); overflow-y: auto; padding: 28px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--fill); cursor: pointer; display: grid; place-items: center; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.hours-row { display: grid; grid-template-columns: 40px 46px 1fr; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line2); }
.hours-row .in { height: 38px; }
.hours-row .times-in { display: flex; align-items: center; gap: 8px; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 10px 16px; font-size: 14px; }
.kv dt { color: var(--sub); }
.kv dd { margin: 0; word-break: break-all; }
.research { border-top: 1px solid var(--line2); padding-top: 18px; margin-top: 18px; }
.research ul { margin: 6px 0 0; padding-left: 18px; }
.copy { display: flex; gap: 8px; }
.copy .in { font-size: 13px; color: var(--sub); }

@media (max-width: 880px) {
  .book { grid-template-columns: 1fr; }
  .book-info { border-right: 0; border-bottom: 1px solid var(--line); padding: 24px; }
  .book-main { padding: 20px; min-height: 0; }
  .pick { grid-template-columns: 1fr; }
  .times { max-height: none; display: grid; grid-template-columns: repeat(3, 1fr); }
  .shell { grid-template-columns: 1fr; }
  .side { position: sticky; height: auto; flex-direction: row; align-items: center; padding: 10px 14px; z-index: 10; }
  .side nav { margin: 0 0 0 auto; flex-direction: row; }
  .side nav a span { display: none; }
  .side .me { display: none; }
  .main { padding: 24px 18px 60px; }
  .kpi { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .kpi .card { padding: 14px; }
  .kpi b { font-size: 24px; }
  .form-grid { grid-template-columns: 1fr; }
  h1 { font-size: 26px; }
}
.guest.w960 { max-width: 960px; }
.guest.w760 { max-width: 760px; }
.gbar .lbl { white-space: nowrap; }
@media (max-width: 480px) { .gbar .lbl { display: none; } .gbar .btn { width: 100%; } }
/* ── ログイン ── */
.login-wrap { min-height: 90vh; display: grid; place-items: center; padding: 20px; }
.login-card { width: min(400px, 100%); padding: 40px 32px; }
.login-brand { display: flex; justify-content: center; margin-bottom: 22px; }
.login-card h2 { text-align: center; margin-bottom: 22px; }
.login-err { color: var(--danger); text-align: center; }
.login-or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12px; margin: 20px 0; }
.login-or::before, .login-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.login-foot { display: block; text-align: center; margin: 18px auto 0; }
.login-code { font-size: 22px; letter-spacing: 0.3em; text-align: center; }
/* O-Dash のロゴ（O の代わりにマーク・後ろにサービス名） */
.brand { gap: 8px; align-items: baseline; }
.odw { display: inline-flex; align-items: baseline; font-weight: 700; letter-spacing: 0.01em; font-size: 19px; color: var(--navy); line-height: 1; }
.odm { display: inline-block; width: 1em; height: 1em; position: relative; top: 0.058em; margin-right: -0.17em; }
.odm svg { width: 100%; height: 100%; display: block; }
.ods { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sky); font-family: Inter, sans-serif; }
.ws-name { margin: 14px 4px 0; color: var(--sub); font-weight: 600; }
.ws-select { margin-top: 14px; height: 38px; font-size: 13px; font-weight: 600; }
@media (max-width: 880px) { .ws-name, .ws-select { display: none; } }
