﻿body { padding-bottom: 120px; /* 画面下に広い余白 */font-family: "Noto Sans JP","Hiragino Sans","Hiragino Kaku Gothic ProN","BIZ UDPGothic",Meiryo,sans-serif; background: #f7f7f7; margin:0;  }
    /* .container { max-width: 100vw; padding: 1em; } */
        .container { max-width: 540px; margin: 0 auto; background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); padding: 2em 1em 1.5em 1em; }

    h1 { font-size: 1.2em; margin-bottom: 1em; }

    .info { margin: 0.8em 0;
  line-height: 1.6;
  word-break: break-word; /* 英数字でも強制的に折り返す */
  white-space: normal; }
.info .label {
  display: inline-block;
  margin-top: 0.4em;
  font-weight: 500;
}
    .scroll-table-wrapper {
      overflow-x: auto;
      background: #fff;
      border-radius: 8px;
      border: 1px solid #ddd;
      box-shadow: 0 1px 4px rgba(0,0,0,0.03);
      padding-bottom: 1em;
      -webkit-overflow-scrolling: touch;
  width: 100%;
    }
    table.schedule-table {
      border-collapse: collapse;

      border-spacing: 0;
      
      width: max-content;
      margin: 0 auto;
      background: #fff;
      font-size: 0.98em;
    }
    table.schedule-table th,
    table.schedule-table td {
      border: 1px solid #ddd;
      text-align: center;
      min-width: 50px;
      padding: 0.4em 0.2em;
      transition: background 0.2s;
    }
    table.schedule-table th {
      background: #eef3fb;
      font-size: 0.92em;
      font-weight: normal;
      border-bottom: 2px solid #1a3a6b;
    }
    table.schedule-table th.today {
      background: #ffe0eb !important;
      color: #e91e63;
      border-bottom: 2px solid #e91e63;
    }
    table.schedule-table td.time-col {
      background: #f8f8f8;
      font-weight: bold;
      position: sticky;
      left: 0;
      z-index: 1;
      min-width: 68px;
      max-width: 70px;
    }
    table.schedule-table td.selectable {
      cursor: pointer;
      transition: background 0.15s;
      font-size: 1.4em;
    }
    table.schedule-table td.selectable:hover,
    table.schedule-table td.selectable:focus-visible {
      background: #ffd5e6 !important;
    }
    table.schedule-table td.unavailable {
      color: #bbb;
      background: #fafafa;
      font-size: 1.1em;
    }
    table.schedule-table td.busy {
  background-color: #ffe0e0;
  color: #d32f2f;
  font-size: 1.2em;
  text-align: center;
}

table.schedule-table td.normal {
  background-color: #fff9c4;
  color: #f57f17;
  font-size: 1.2em;
  text-align: center;
}

    table.schedule-table td {
      background: #fff;
    }
    .nav-container {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 0.7em;
    }
    .nav-btn {
      flex: 1;
    }
    .nav-btn.left {
      text-align: left;
    }
    .nav-btn.right {
      text-align: right;
    }
    .nav-btn-link {
      display: inline-block;
      padding: 0.36em 1.2em;
      background: #f07800;
      color: #fff;
      border-radius: 5px;
      font-weight: bold;
      text-decoration: none;
      margin: 0.3em 0;
      transition: background 0.18s;
    }
    .nav-btn-link:hover { background: #d46b00; }
    .back-menu-link {
      color: #1a3a6b;
      font-size: 1.05em;
      text-decoration: none;
      font-weight: bold;
      margin: 0.8em 0 0.3em 0;
      display: inline-block;
    }
    /* ステッパー */
.stepper { display:flex; gap:.5rem; padding:12px 16px; margin:8px 0 12px; overflow:auto; }
.stepper li { list-style:none; padding:6px 10px; border-radius:999px; border:1px solid #ddd; white-space:nowrap; font-size:.9rem; }
.stepper li.active { background:#1e88e5; color:#fff; border-color:#1e88e5; }
.stepper li.done { background:#e3f2fd; color:#1565c0; border-color:#bbdefb; }

/* アカウントバー */
.account-bar {
  display:flex; justify-content:space-between; align-items:center;
  gap:12px; padding:12px 16px; margin:8px 0 16px;
  border:1px solid #eee; border-radius:12px; background:#fafafa;
}
.account-left { display:flex; align-items:center; gap:12px; min-width:0; }
.avatar {
  width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background:#e0e0e0; font-weight:700;
}
.who .name { font-weight:600; }
.who .sub { font-size:.85rem; color:#666; }
.account-right { display:flex; gap:8px; flex-shrink:0; }

.btn { display:inline-block; padding:8px 12px; border-radius:8px; text-decoration:none; }
.btn-primary { background:#1976d2; color:#fff; }
.btn-outline { border:1px solid #bbb; color:#333; background:#fff; }
.btn-text { color:#1976d2; }
@media (max-width: 560px){
  .account-bar { flex-direction:column; align-items:stretch; }
  .account-right { justify-content:flex-end; }
}

/* 既存の .navbar.shrink と同じ動きのまま利用してください */

    .back-menu-link:hover { text-decoration: underline; }
    @media (max-width: 900px) {
      /* .container { padding: 0.3em; } */
      table.schedule-table { font-size: 0.92em;}
    }
    @media (max-width: 700px) {
      table.schedule-table { font-size: 0.86em; min-width:470px;}
      table.schedule-table td.time-col { font-size: 1em; }
    }

    /* スマホ時に小さくしすぎないように */
@media (max-width: 768px) {
  .schedule-table th,
  .schedule-table td {
    padding: 6px;
    font-size: 12px;
  }

  .schedule-table {
    min-width: 900px; /* 小さなスマホでも横スクロールで全日見えるように */
  }

  .scroll-table-wrapper {
    margin-bottom: 1em;
  }

  .container h2, .container h3 {
    font-size: 16px;
  }
  .info {
    font-size: 14px;
    padding: 0.5em;
    background: #fafafa;
    border-radius: 8px;
  }
  .info .label {
    display: block;
    margin-top: 0.3em;
  }
}
  /* サービス名が長い場合も自然に改行 */
  .info br {
    display: block;
  }
  .login-status {
  background: #f5f5f5;
  border-bottom: 1px solid #ddd;
  padding: 8px 16px;
  font-size: 14px;
  text-align: right;
  color: #333;
}

.logout-link {
  color: #007bff;
  text-decoration: none;
  margin-left: 8px;
}

.logout-link:hover {
  text-decoration: underline;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #1a3a6b;
  color: #fff;
  padding: 10px 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.logo {
  font-size: 1.2em;
  color: #fff;
  text-decoration: none;
}

.user-dropdown {
  position: relative;
  display: inline-block;
  right: 20px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #fff;
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  background-color: #fff;
  min-width: 160px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  border-radius: 8px;
  padding: 8px 0;
  z-index: 1000;
}

.dropdown-menu a {
  color: #333;
  padding: 10px 16px;
  display: block;
  text-decoration: none;
  transition: background 0.2s;
}

.dropdown-menu a:hover {
  background-color: #f2f2f2;
}

.dropdown-menu .user-name {
  display: block;
  padding: 8px 16px;
  font-weight: bold;
  color: #2f3e46;
  border-bottom: 1px solid #ddd;
}

/* 見出しの余白を調整 */
.calendar-header h2 {
  margin: 0;
  font-size: 1.4em;
  color: #333;
}
.user-avatar:hover {
  opacity: 0.8;
}
/* タイトルとアイコンを横並びで中央揃え */
.calendar-header {
  display: flex;
  justify-content: space-between; /* 左右に分ける */
  align-items: center;             /* 縦方向を中央に */
  
  margin-left: 20px;

}

/* タイトル部分 */
.calendar-header .calendar-title {
  font-size: 1.5em;
  font-weight: bold;
  color: #333;
  margin: 0;
  flex-shrink: 0; /* タイトルが圧縮されないように */
}

.user-name {
    font-size: 10px;
    color: #333;
}


.main-content {
  padding: 20px;
  max-width: 600px;
  margin: 0 auto;
  overflow-y: auto;
}

@media (max-width:540px) {
      .container { padding:1.2em;
        }
}
