:root{
  --brand:#005781;
  --brand2:#0b6ea1;
  --accent:#ffdd59;

  --bg:#f5f8fb;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#475569;
  --line:#e2e8f0;

  --radius:18px;
  --shadow:0 10px 25px rgba(2, 28, 58, .08);
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: "Rounded M+ 1c", "Rounded M+", "Hiragino Maru Gothic ProN",
               "Noto Sans JP", system-ui, -apple-system, "Segoe UI", sans-serif;
  color:var(--text);
  background:var(--bg);
}

a{ color:inherit; }
.container{
  width:min(1100px, 92vw);
  margin:0 auto;
}

.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:linear-gradient(90deg, var(--brand), var(--brand2));
  color:#fff;
  box-shadow:0 6px 18px rgba(0,0,0,.08);
}

.header-actions{
  display:flex;
  align-items:center;
  gap: 4px;           /* ← まずここを詰める */
  flex-wrap:nowrap;  /* ← 折り返し防止 */
}


.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:12px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  letter-spacing:.02em;
}
.brand-mark{
  width:34px; height:34px;
  display:grid; place-items:center;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.25);
  border-radius:12px;
}
.brand-title{ font-size:16px; }

.hero{
  background:linear-gradient(180deg, rgba(0,87,129,.16), rgba(0,87,129,0));
  padding:34px 0 12px;
}
.hero-inner{
  display:grid;
  grid-template-columns: 1.4fr .9fr;
  gap:26px;
  align-items:stretch;
}
.badge{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(0,87,129,.10);
  border:1px solid rgba(0,87,129,.18);
  color:var(--brand);
  font-weight:700;
  margin:0 0 10px;
}
.hero h1{
  font-size: clamp(26px, 4vw, 40px);
  line-height:1.15;
  margin:0 0 10px;
}
.lead{
  margin:0 0 18px;
  color:var(--muted);
  line-height:1.7;
}
.hero-cta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:14px 0 8px;
}
.note{
  margin:8px 0 0;
  color:var(--muted);
  font-size:13px;
}

.hero-visual{
  display:flex;
  flex-direction:column;
  gap:12px;
  justify-content:center;
}
.visual-card{
  background:rgba(255,255,255,.7);
  border:1px solid rgba(0,87,129,.16);
  border-radius:var(--radius);
  padding:14px;
  display:flex;
  gap:12px;
  align-items:center;
}
.visual-icon{
  width:44px; height:44px;
  border-radius:14px;
  display:grid; place-items:center;
  background:#fff;
  border:1px solid var(--line);
  box-shadow:0 8px 18px rgba(2, 28, 58, .06);
  font-size:20px;
}
.visual-title{ font-weight:800; }
.visual-sub{ color:var(--muted); font-size:13px; margin-top:2px; }

.text-red{
  color: #dc2626;   /* 赤（Tailwind系でよく使う赤） */
}

.hero-locations-map{
  margin-top: 18px;
}

.location-map-card{
  width: 100%;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(0,87,129,.16);
  border-radius: var(--radius);
  padding: 12px;
}

.location-map-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}

.location-map-label{
  font-weight: 900;
  color: var(--brand);
}

.location-map-note{
  font-size: 12px;
  color: var(--muted);
}

.location-map-figure{
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.location-map-img{
  width: 100%;
  height: auto;
  display: block;
}

.location-map-meta{
  margin-top: 10px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.location-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,87,129,.08);
  border: 1px solid rgba(0,87,129,.18);
  font-size: 14px;
  font-weight: 800;
}


.location-item{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0,87,129,.08);
  border: 1px solid rgba(0,87,129,.18);
  font-size: 13px;
}

.location-label{
  font-weight: 900;
  color: var(--brand);
}

.location-name{
  color: #0f172a;
  font-weight: 700;
}

/* ===== Section Head (unified) ===== */
.section-head{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.section-head .card-icon{
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255,221,89,.35);
  border: 1px solid rgba(255,221,89,.55);
  font-size: 18px;
}

.section-title-inline{
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .01em;
  color: var(--brand);
}


.section{ padding:22px 0 34px; }
.section-soft{ padding-top:0; }
.section-title{
  margin:0 0 12px;
  font-size:18px;
}

.grid-2{
  display: grid;
  grid-template-columns: 1.5fr 1fr; /* ← 稼働時間を広く */
  gap: 16px;
}

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:16px;
}
.card-head{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}
.card-icon{
  width:38px; height:38px;
  border-radius:14px;
  display:grid; place-items:center;
  background:rgba(255,221,89,.35);
  border:1px solid rgba(255,221,89,.55);
}
.card-title{
  margin:0;
  font-size:16px;
  letter-spacing:.01em;
}

.list{
  list-style:none;
  padding:0;
  margin:10px 0 0;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.pill{
  display:inline-block;
  padding:2px 8px;
  border-radius:999px;
  background:rgba(0,87,129,.10);
  border:1px solid rgba(0,87,129,.18);
  color:var(--brand);
  font-weight:700;
  font-size:12px;
  margin-right:6px;
}
.muted{ color:var(--muted); }
.mini-note{ font-size:12px; color:var(--muted); line-height:1.6; }

.card-foot{ margin-top:12px; }

.divider{
  border:none;
  border-top:1px solid var(--line);
  margin:14px 0;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid transparent;
  text-decoration:none;
  font-weight:800;
  cursor:pointer;
  transition: transform .08s ease, filter .12s ease, background .12s ease;
}
.btn:hover{ filter:brightness(1.02); transform:translateY(-1px); }
.btn:active{ transform:translateY(0); }

.btn-primary{
  background:linear-gradient(90deg, var(--brand), var(--brand2));
  color:#fff;
}
.btn-sub{
  background:#fff;
  border-color:rgba(0,87,129,.22);
  color:var(--brand);
}
.btn-ghost{
  background:rgba(255,255,255,.12);
  border-color:rgba(255,255,255,.28);
  color:#fff;
}
.btn-block{ width:100%; }

.btn-arrow{
  display:inline-block;
  font-size:18px;
  line-height:1;
}

.link{
  color:var(--brand);
  text-decoration:underline;
  text-underline-offset:3px;
  font-weight:700;
}
.link:hover{ opacity:.9; }

/* ===== Hours (table) ===== */
.hours-table-wrap{
  margin-top: 8px;
}

.hours-table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.hours-table tbody th,
.hours-table tbody td{
  padding: 10px 12px;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}

.hours-table tbody tr:last-child th,
.hours-table tbody tr:last-child td{
  border-bottom: none;
}

.hours-table tbody th{
  width: 44%;
  font-weight: 900;
  color: var(--brand);
  background: rgba(0,87,129,.04);
}

.hours-table tbody td{
  font-weight: 800;
}

.hours-table .is-closed{
  color: rgb(220, 38, 38);
  font-weight: 900;
}


.today{
  margin:8px 0 10px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(0,87,129,.06);
  font-weight:900;
}
.today.closed{ background:rgba(220, 38, 38, .08); border-color:rgba(220, 38, 38, .25); }
.today.short{ background:rgba(245, 158, 11, .10); border-color:rgba(245, 158, 11, .28); }

/* =========================
   Calendar (final set)
   ========================= */

/* 見出し＋月移動 */
.cal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:14px;
}
.cal-title{
  font-weight:900;
  color:var(--brand);
}
.cal-nav{
  display:flex;
  gap:8px;
}
.icon-btn{
  width:38px;
  height:38px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#fff;
  cursor:pointer;
  font-size:18px;
  font-weight:900;
}
.icon-btn:hover{ filter:brightness(0.98); }

/* 7列グリッド（カレンダー感の核） */
.cal-grid{
  display:grid;
  grid-template-columns: repeat(7, minmax(56px, 1fr));
  gap:10px;
  margin-top:10px;
}

/* 曜日行 */
.cal-dow{
  height:22px;
  display:grid;
  place-items:center;
  font-weight:900;
  color:var(--muted);
  font-size:12px;
}


/* 日セル（サイズ統一） */
.cal-cell{
  border:1px solid var(--line);
  background:#fff;
  border-radius:14px;
  padding:10px;

  height: 104px;
  min-height: 104px;

  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  gap:6px;

  overflow:hidden;
}
.cal-cell.blank{
  border:none;
  background:transparent;
  height: 84px;
  min-height: 84px;
}

/* 日付 */
.cal-num{
  font-weight:900;
  font-size:13px;
  line-height:1;
}

/* 時間（2行まで） */
.cal-sub{
  font-size:11px;
  color:var(--muted);
  line-height:1.2;
  opacity:.9;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2; 
  overflow: hidden;
  word-break: break-word;
}

/* ===== Status colors ===== */

/* 通常：ブルー背景（薄め）＋文字は黒寄り */
.cal-cell.open{
  background: rgba(0, 87, 129, .08);
  border-color: rgba(0, 87, 129, .18);
}
.cal-cell.open .cal-num,
.cal-cell.open .cal-sub{
  color: var(--text);
}

/* 短縮：注意色（アンバー寄り） */
.cal-cell.short{
  background: rgba(245, 158, 11, .22) !important;
  border-color: rgba(245, 158, 11, .55) !important;
}
.cal-cell.short .cal-num{ color: rgb(146, 64, 14) !important; }
.cal-cell.short .cal-sub{ color: rgb(120, 53, 15) !important; font-weight:800; }

/* 停止：暗めグレー＋文字も暗く */
.cal-cell.closed{
  background: rgba(100, 116, 139, .28) !important;
  border-color: rgba(100, 116, 139, .75) !important;
  opacity: .88 !important;
}
.cal-cell.closed .cal-num{
  color: #475569 !important;
}
.cal-cell.closed .cal-sub{
  color: #64748b !important;
  font-weight: 900;
  letter-spacing: .06em;
}

/* 今日：黄色枠 */
.cal-cell.today{
  outline: 3px solid rgba(255,221,89,.95);
  outline-offset: 0;
}

/* noteがある日の📌マーク（右上ちょい） */
.cal-num{
  position: relative;
}

.cal-note-mark{
  position: absolute;
  top: -2px;
  right: -2px;
  font-size: 12px;
  line-height: 1;
  opacity: .9;
}

/* Location tabs */
.loc-tabs{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin: 2px 0 10px;
}

.loc-tab{
  border:1px solid var(--line);
  background:#fff;
  border-radius:999px;
  padding:8px 12px;
  font-weight:900;
  cursor:pointer;
  color: var(--muted);
  transition: transform .08s ease, filter .12s ease, background .12s ease;
}
.loc-tab:hover{ filter:brightness(0.98); transform:translateY(-1px); }
.loc-tab:active{ transform:translateY(0); }

.loc-tab.active{
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  border-color: transparent;
  color: #fff;
}

/* 凡例 */
.legend{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:10px;
}
.lg{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  font-size:12px;
  font-weight:800;
}
.lg.open::before{ content:"●"; color:var(--brand); }
.lg.short::before{ content:"▲"; color:rgb(245, 158, 11); }
.lg.closed::before{ content:"×"; color:rgb(220, 38, 38); }

/* 例外メモ */
.cal-notes{
  margin-top:12px;
  font-size:12px;
  color:var(--muted);
  line-height:1.7;
}
.notes-list{ margin:8px 0 0; padding-left:18px; }

/* ===== Mobile: 7列を崩さない（横スクロール） ===== */
@media (max-width: 520px){
  .cal-grid{
    grid-template-columns: repeat(7, minmax(44px, 1fr));
    gap:8px;

    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    padding-bottom:6px;
  }

  .cal-cell,
  .cal-cell.blank{
    height: 76px;
    min-height: 76px;
    padding: 8px;
  }

  .cal-sub{
    font-size:10px;
  }
}


.legend{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:10px;
}
.lg{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  font-size:12px;
  font-weight:800;
}
.lg.open::before{ content:"●"; color:var(--brand); }
.lg.short::before{ content:"▲"; color:rgb(245, 158, 11); }
.lg.closed::before{ content:"×"; color:rgb(220, 38, 38); }

.cal-notes{
  margin-top:12px;
  font-size:12px;
  color:var(--muted);
  line-height:1.7;
}
.notes-list{ margin:8px 0 0; padding-left:18px; }

/* Footer */
.site-footer{
  padding:22px 0 26px;
  color:rgba(15,23,42,.75);
}
.footer-inner{
  border-top:1px solid var(--line);
  padding-top:16px;
  display:flex;
  justify-content:center;
}

/* Responsive */
@media (max-width: 920px){
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-visual{ flex-direction:row; flex-wrap:wrap; }
  .grid-2{
    grid-template-columns: 1fr;
  }
}

/* ===== 2面カレンダー（1号館 / KUDOS）横並び ===== */
.dual-cal-wrap{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 14px;
  align-items: start;
}

.cal-panel{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}

/* 見出し（1号館 / KUDOS）＋今日バッジ */
.cal-panel-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.cal-panel-title{
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  color: var(--brand);
}

/* 狭い画面は縦積み */
@media (max-width: 920px){
  .dual-cal-wrap{
    grid-template-columns: 1fr;
  }
}

/* ===== Calendar status mark ===== */
.cal-mark{
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  opacity: .9;
}

/* 通常：● */
.cal-cell.open .cal-mark::before{
  content: "●";
  color: var(--brand);
}

/* 短縮：▲ */
.cal-cell.short .cal-mark::before{
  content: "▲";
  color: rgb(245, 158, 11);
}

/* 停止：× */
.cal-cell.closed .cal-mark::before{
  content: "×";
  color: rgb(220, 38, 38);
}

/* mark表示のため：親を基準にする */
.cal-cell{ position: relative; }

/* 空白マスにはマーク不要 */
.cal-cell.blank .cal-mark{ display:none; }

/* 月ナビ：タイトルをど真ん中に */
.cal-head-global{
  display: grid;
  grid-template-columns: 38px 1fr 38px; /* 左ボタン / タイトル / 右ボタン */
  align-items: center;
  gap: 10px;
}

.cal-head-global .cal-title{
  justify-self: center;
  text-align: center;
}

/* memo表示（3行まで） */
.cal-memo{
  margin-top: 2px;
  font-size: 10px;
  line-height: 1.2;

  color: #334155;          /* ← mutedより一段濃い */
  font-weight: 700;        /* ← 少しだけ太く */
  opacity: 1;              /* ← 透明度は使わない */
}
