@charset "UTF-8";
@media screen and (min-width: 1001px)
{
  .visible_p,
  .visible_pt{
    display: block !important;
  }
  .visible_t,
  .visible_m,
  .visible_tm{
    display: none !important;
  }
}

/* 共通 */
/* html {
  overflow: hidden;
} */
body{
  background-color: #22331D;
  color: #333;
  /* font-family: 'Axis Std', 'Arial', sans-serif; */
}
.base-width{
  margin: 0px auto;
  max-width: 1200px;
}
button{
  cursor: pointer;
  font-size: 16px;
}
input, textarea, select{
  border: 1px solid #c7c7c7;
  padding: 5px;
  background-color: #fff;
  border-radius: 5px;
}
textarea{
  resize: none;
  display:block;
}
li{
  list-style:none;
}
img{
  max-width: 100%;
}
a{
  transition: 0.3s;
}
a:hover{
  opacity: 0.7;
  transition: 0.3s;
}

h1{
  align-items: center;
  color: #fff;
}
h1 img{
  width: 100%;
}
p.error{
  color: #f24c3B;
  line-height: inherit;
}
#login p.error{
  color: #f24c3B;
  margin-bottom: 10px;
  text-align: center;
}
input,select{
  min-width: 50px;
}
.scroll-x {
  overflow-y: hidden;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  min-width: 1000px;
}
/* .scroll-x::-webkit-scrollbar {
  height: 8px;
}
.scroll-x::-webkit-scrollbar-thumb {
  background-color: #DBF2F1;
  border-radius: 4px;
}
.scroll-x::-webkit-scrollbar-track {
  background-color: #e0e0e0;
} */



/* login */
#login{
  padding: 3em 0;
}
#login .login-box{
  margin: 0 auto;
  padding: 2em;
  max-width: 500px;
  border-radius: 30px;
}
#login .logo-area{
  margin-bottom: 50px;
  justify-items: center;
}
#login .logo-area h1{
  display: grid;
  grid-template-columns: 20% auto;
  /* display: flex; */
  justify-content: center;
  gap: 20px;
}
#login .logo-area h1 .logo{
  max-width: 100px;
}
#login .logo-area h1 span{
  font-size: clamp(20px, 3vw, 30px);
  line-height: normal;
}
#login .input-area{
  margin-bottom: 50px;
}
#login .input-area li{
  display: grid;
  align-items: center;
  grid-template-columns: 120px auto;
  margin-bottom: 10px;
}
#login .input-area li:last-child{
  margin-bottom: 0;
}
#login .input-area li .name{
  color: #fff;
  min-height: 100%;
  align-content: center;
  text-align: center;
  border-radius: 10px;
}
#login .input-area li input{
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 10px;
}
#login .login-btn{
  justify-items: center;
  text-align: center;
}
#login .login-btn button{
  background-color: #55b1af;
  color: #fff;
  padding: 20px 30px;
  align-items: center;
  border-radius: 10px;
  border: 3px solid #fff;
}
#login .login-btn button span{
  font-weight: bold;
  font-size: 18px;
}
#login .login-btn a{
  display: inline-block;
}

/* auth */
.contents{
  display: grid;
  grid-template-columns: 300px auto;
  gap: 10px;
}

/* header */
header{
  background-color: #22331D;
  color: #fff;
  padding: 10px;
}

header .logo-area h1{
  display: grid;
  grid-template-columns: 50px auto;
  gap: 10px;
  padding: 10px 10px 20px;
  margin-bottom: 10px;
  border-bottom: #3e5736 1px solid;
}
header ul.drawer-menu li a,
nav ul.nav-menu li a {
  padding: 10px 15px;
  display: flex;
  align-items: center;
  border-radius: 5px;
  text-decoration: none;
  color: #fff;
}
header ul.drawer-menu li.active{
  background-color: #435c3b;
  border-radius: 5px;
}
header ul.drawer-menu li.active>a{
  padding: 10px 15px;
}
header ul.drawer-menu li:hover a{
  background-color: #435c3b;
  opacity: 1;
}
/* アクティブなリンクのスタイル - hover状態と同じにする */
header ul.drawer-menu li:not(.active):hover a, 
header ul.drawer-menu li.active a,
nav ul.nav-menu li:not(.active):hover a,
nav ul.nav-menu li.active a {
  background-color: #435c3b;
  opacity: 1;
}
header ul.drawer-menu li a i{
  width: 20px;
  margin-right: 10px;
}
header ul.drawer-menu li .child-menu{
  padding: 5px;
}
header ul.drawer-menu li .child-menu li a{
  padding: 5px;
}
header ul.drawer-menu li.active .child-menu li.active a{
  background-color: #638358;
}
header ul.drawer-menu li .child-menu li:hover a{
  background-color: #638358;
}
header .drawer-hamburger-icon,
header .drawer-hamburger-icon:after,
header .drawer-hamburger-icon:before {
  background-color: #fff;
}
.drawer--right header .drawer-hamburger,
.drawer--right.drawer-open header .drawer-navbar .drawer-hamburger {
  margin: 5px;
}



/* main */
main{
  padding: 10px;
  min-height: 100vh;
  display: flex;
  overflow: hidden; /* スクロールバーを非表示にする */
  box-sizing: border-box; /* paddingを要素の内側にする */
  height: 100vh; /* 画面の高さいっぱいに設定 */
}
.main-area{
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow: auto; /* main-area内部でスクロール */
  max-height: 100%; /* 親要素いっぱいに広げる */
}

.main-header{
  background-color: #F1EDE7;
  border-radius: 20px 20px 0 0;
  padding: 20px;
}
.main-header h2{
  font-size: clamp(18px, 3vw, 22px);
}
.main-header .head-area{
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.main-header .head-area .user-img{
  width: 40px;
  height: 40px;
}
.user-img{
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
}
.user-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.main-body{
  background-color: #fff;
  border-radius: 0 0 20px 20px;
  flex-grow: 1;
}
.main-body>div{
  padding: 20px;
}

.main-body .header-menu {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  /* border-bottom: 1px solid #eee; */
  padding: 20px;
  flex-wrap: nowrap;
}
.main-body .header-menu a{
  padding: 8px 15px;
  border-radius: 5px;
  border: #666 1px solid;
}
.main-body .header-menu .create{
  background-color: #0AA273;
  color: #fff;
  border: none;
}
.calendar-area {
  background-color: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 0 0 20px 20px;
  flex-grow: 1;
}

#calendar {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.calendar-area #month-area {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 55px;
  padding: 0 15px;
  margin: auto;
  /* border-bottom: 1px solid #ebebeb; */
  background-color: #fff;
  /* position: sticky;
  top: 0;
  z-index: 10; */
}

.calendar-area #month-area .left-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.calendar-area #month-area .view-toggle {
  display: flex;
  align-items: center;
  background-color: #f5f5f5;
  border-radius: 20px;
  padding: 4px;
  overflow: hidden;
  border: 1px solid #ddd;
  margin-left: 50px;
}

.calendar-area #month-area .view-toggle button {
  background: none;
  border: none;
  padding: 5px 15px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 16px;
}

.calendar-area #month-area .view-toggle button.active {
  background-color: #22331D;
  color: white;
}

.calendar-area #month-area #prev {
  margin-right: 0;
}

.calendar-area #month-area #next {
  margin-left: 0;
}

.calendar-area #month-area #now {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  padding: 5px 15px;
  border-radius: 5px;
  transition: background-color 0.2s;
}

.calendar-area #month-area #now:hover {
  background-color: #f5f5f5;
}

.calendar-area #month-area #prev,
.calendar-area #month-area #next {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px 15px;
  border-radius: 5px;
  background-color: #5e5e5e;
  color: #fff;
  font-size: 14px;
  transition: background-color 0.2s;
}

.calendar-area #month-area #prev:hover,
.calendar-area #month-area #next:hover {
  background-color: #38572e;
}

.calendar-area #month-area #now {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  padding: 5px 15px;
  border-radius: 5px;
  transition: background-color 0.2s;
}

/* 週表示用のスタイル */
.calendar-area #week-view {
  display: none;
  flex-direction: column;
  font-size: 14px;
  width: 100%;
  height: calc(100vh - 170px); /* 画面縦幅いっぱいに表示 */
  overflow: auto;
}

.calendar-area #week-view.active {
  display: flex;
}

.calendar-area #calendar.hidden {
  display: none;
}

.calendar-area #week-view .week-header {
  display: grid;
  grid-template-columns: 60px repeat(7, 1fr);
  background-color: #fff;
  border-bottom: 1px solid #ebebeb;
  position: sticky;
  top: 0;
  z-index: 2;
}

.calendar-area #week-view .week-header .time-label {
  text-align: center;
  padding: 10px 5px;
  font-weight: bold;
  font-size: 14px;
  border-right: 1px solid #ebebeb;
}

.calendar-area #week-view .week-header .day {
  text-align: center;
  padding: 10px 5px;
  font-size: 14px;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.calendar-area #week-view .week-header .day .date-num {
  font-size: 16px;
  margin-bottom: 5px;
}

.calendar-area #week-view .week-header .day .weekday {
  font-size: 12px;
  color: #666;
}

.calendar-area #week-view .week-header .day.sun .date-num {
  color: #ff0000;
}

.calendar-area #week-view .week-header .day.sat .date-num {
  color: #4169e1;
}

.calendar-area #week-view .week-body {
  display: grid;
  grid-template-columns: 60px repeat(7, 1fr);
  height: calc(100% - 55px); /* ヘッダー分を引いた高さ */
  overflow-y: auto;
}

.calendar-area #week-view .week-body .time-column {
  display: flex;
  flex-direction: column;
  min-width: 50px;
  border-right: 1px solid #ebebeb;
  height: auto;
}

.calendar-area #week-view .week-body .time-column .time-slot {
  height: 100%;
  border-bottom: 1px solid #ebebeb;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  font-size: 12px;
  color: #666;
  padding-top: 5px;
}

.calendar-area #week-view .week-body .day-column {
  display: flex;
  flex-direction: column;
  border-right: 1px solid #ebebeb;
  height: auto;
}

.calendar-area #week-view .week-body .day-column .time-slot {
  height: 100%;
  border-bottom: 1px solid #ebebeb;
  position: relative;
}

.calendar-area #week-view .week-body .day-column .time-slot .event {
  position: absolute;
  left: 2px;
  right: 2px;
  background-color: #e3f2fd;
  border-left: 3px solid #3788D8;
  border-radius: 3px;
  padding: 4px;
  font-size: 12px;
  overflow: hidden;
  cursor: pointer;
  z-index: 1;
  transition: transform 0.1s ease-out;
}

/* 案件が重複した時のホバー効果 */
.calendar-area #week-view .week-body .day-column .time-slot .event:hover {
  z-index: 10 !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transform: scale(1.02);
}

.calendar-area #week-view .week-body .day-column .time-slot .event.color01 { background-color: #e3f2fd; border-left: 3px solid #3788D8; }
.calendar-area #week-view .week-body .day-column .time-slot .event.color02 { background-color: #f3e5f5; border-left: 3px solid #b39ddb; }
.calendar-area #week-view .week-body .day-column .time-slot .event.color03 { background-color: #fce4ec; border-left: 3px solid #c4469b; }
.calendar-area #week-view .week-body .day-column .time-slot .event.color04 { background-color: #ffebee; border-left: 3px solid #c01b1b; }
.calendar-area #week-view .week-body .day-column .time-slot .event.color05 { background-color: #fff3e0; border-left: 3px solid #EF6C00; }
.calendar-area #week-view .week-body .day-column .time-slot .event.color06 { background-color: #e8f5e9; border-left: 3px solid #0B8043; }

/* リスト表示 */
.calendar-area #list-view {
  display: none;
  padding: 20px 0;
}

.calendar-area #list-view.active {
  display: block;
}

.calendar-area #list-view .list-content {
  max-width: 100%;
}

.calendar-area #list-view .no-schedule-message {
  text-align: center;
  color: #888;
  font-size: 16px;
  padding: 40px 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  margin: 20px 0;
}

/* スケジュールカード全体のスタイル */
.calendar-area #list-view .schedule-card {
  margin-bottom: 25px;
  border: 1px solid #e1e5e9;
  border-radius: 10px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.calendar-area #list-view .schedule-card.multi-day {
  border-left: 5px solid #ff7043;
}

/* 日時行（背景色付き） */
.calendar-area #list-view .datetime-row {
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  color: #333;
  font-weight: 500;
}

.calendar-area #list-view .datetime-row:last-of-type {
  border-bottom: none;
}

.calendar-area #list-view .datetime-row .date-info {
  font-size: 15px;
  font-weight: 600;
  min-width: 10px;
}

.calendar-area #list-view .datetime-row .time-info {
  font-size: 14px;
  min-width: 10px;
}

.calendar-area #list-view .datetime-row .client-name {
  font-size: 16px;
  font-weight: 600;
  color: #2c5530;
}

/* 月表示と同じ背景色を日時行に適用 */
.calendar-area #list-view .datetime-row.color01 { 
  background-color: #e3f2fd; 
  border-left: 4px solid #3788D8;
}
.calendar-area #list-view .datetime-row.color02 { 
  background-color: #f3e5f5; 
  border-left: 4px solid #b39ddb;
}
.calendar-area #list-view .datetime-row.color03 { 
  background-color: #fce4ec; 
  border-left: 4px solid #c4469b;
}
.calendar-area #list-view .datetime-row.color04 { 
  background-color: #ffebee; 
  border-left: 4px solid #c01b1b;
}
.calendar-area #list-view .datetime-row.color05 { 
  background-color: #fff3e0; 
  border-left: 4px solid #EF6C00;
}
.calendar-area #list-view .datetime-row.color06 { 
  background-color: #e8f5e9; 
  border-left: 4px solid #0B8043;
}

/* 物件名行（白背景） */
.calendar-area #list-view .property-row {
  padding: 10px 20px;
  background-color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.calendar-area #list-view .property-row .map-icon {
  color: #ff7043;
  font-size: 16px;
  margin-right: 8px;
}

.calendar-area #list-view .property-row .property-link {
  color: #2c5530;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  flex: 1;
  transition: color 0.2s ease;
  cursor: pointer;
}

.calendar-area #list-view .property-row .property-link:hover {
  color: #3a6b3f;
  text-decoration: underline;
}

.calendar-area #list-view .property-row .map-link {
  color: #666;
  font-size: 14px;
  transition: color 0.2s ease;
  cursor: pointer;
}

.calendar-area #list-view .property-row .map-link:hover {
  color: #ff7043;
}

/* サービス名・施工業者行（#F9F9FA背景） */
.calendar-area #list-view .service-row {
  padding: 5px 20px;
  background-color: #F9F9FA;
}

.calendar-area #list-view .service-row .service-info {
  font-size: 14px;
  color: #333;
  padding: 5px;
  margin-bottom: 0;
}

.calendar-area #list-view .service-row .service-name {
  font-weight: 600;
  margin-right: 8px;
}

.calendar-area #list-view .service-row .contractor-info {
  color: #666;
  font-weight: 400;
}

/* 区切り線 */
.calendar-area #list-view .divider {
  height: 1px;
  background-color: #e0e0e0;
  margin: 0;
}

/* 依頼内容ラベル行 */
.calendar-area #list-view .request-label-row {
  padding: 10px 20px 6px 20px;
  background-color: #fff;
  font-size: 14px;
  color: #333;
}

.calendar-area #list-view .request-label-row strong {
  font-weight: 700;
}

/* 依頼内容詳細行 */
.calendar-area #list-view .request-content-row {
  padding: 0 20px 10px 20px;
  background-color: #fff;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

@media screen and (max-width: 768px) {
  .calendar-area #month-area {
    font-size: 11px;
    padding: 0 5px;
    height: 45px;
    border-bottom: 1px solid #ebebeb;
    margin-bottom: 0;
  }
  
  .calendar-area #month-area .view-toggle {
    padding: 3px;
  }

  .calendar-area #month-area .view-toggle button {
    padding: 4px 8px;
    font-size: 12px;
    line-height: 110%;
  }
  
  .calendar-area #month-area #now {
    font-size: 16px;
    padding: 5px 10px;
  }
  
  .calendar-area #week-view {
    height: calc(100vh - 130px); /* モバイル用に高さ調整 */
  }
  
  .calendar-area #week-view .week-header .day .date-num {
    font-size: 14px;
    margin-bottom: 2px;
  }
  
  .calendar-area #week-view .week-header .day .weekday {
    font-size: 10px;
  }
  
  .calendar-area #week-view .week-body .time-column .time-slot {
    height: 100%;
    font-size: 10px;
  }
  
  .calendar-area #week-view .week-body .day-column .time-slot {
    height: 100%;
  }
  
  .calendar-area #week-view .week-body .day-column .time-slot .event {
    font-size: 10px;
    padding: 2px;
  }

  /* リスト表示のモバイル対応 */
  .calendar-area #list-view .schedule-card {
    margin: 15px;
    border-radius: 8px;
  }

  .calendar-area #list-view .datetime-row {
    padding: 8px 16px;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }

  .calendar-area #list-view .datetime-row .date-info {
    font-size: 13px;
    min-width: auto;
    flex-shrink: 0;
  }

  .calendar-area #list-view .datetime-row .time-info {
    font-size: 12px;
    min-width: auto;
    text-align: left;
    flex-shrink: 0;
  }

  .calendar-area #list-view .datetime-row .client-name {
    font-size: 14px;
    text-align: left;
    margin-top: 0;
    flex: 1;
    min-width: 0;
  }

  .calendar-area #list-view .property-row {
    padding: 8px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .calendar-area #list-view .property-row .property-link {
    font-size: 14px;
  }

  .calendar-area #list-view .service-row {
    padding: 8px 16px;
  }

  .calendar-area #list-view .service-row .service-info {
    font-size: 13px;
  }

  .calendar-area #list-view .request-label-row {
    padding: 8px 16px 4px 16px;
    font-size: 13px;
  }

  .calendar-area #list-view .request-content-row {
    padding: 0 16px 12px 16px;
    font-size: 13px;
  }
}

/* 古いcolor spanは使用しない */
span.color01, span.color02, span.color03, span.color04, span.color05, span.color06 { display: none; }

/* モバイル対応の改善 */
@media screen and (max-width: 768px) {
  main {
    padding: 0;
  }
  
  /* ヘッダー部分の調整 */
  .main-header {
    display: none; /* カレンダーページのヘッダーを非表示 */
  }
  
  /* header-menuの左右余白をなくす */
  .main-body .header-menu {
    padding: 10px 5px;
    margin: 0;
    width: 100%;
    border-bottom: none;
  }
  
  /* 左右余白を0に */
  .main-body > div {
    padding: 0;
    margin: 0;
  }
  
  /* 登録ボタンとフィルターの高さ統一 */
  .main-body .header-menu .right .create,
  .staff-filter .filter-btn,
  .staff-filter .staff-select input {
    height: 30px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    padding: 0 8px;
    border-radius: 5px;
  }
  .staff-filter .staff-select input {
    padding: 0 5px;
  }
  
  /* 登録ボタンをheader-menuの右側に移動 */
  .main-body .header-menu .right {
    display: flex;
    align-items: center;
  }
  
  .main-body .header-menu .right .create {
    background-color: #0AA273;
    color: #fff;
    white-space: nowrap;
    display: flex;
    border: none;
  }
  
  /* スタッフフィルターの調整 */
  .staff-filter {
    flex-wrap: nowrap;
    width: 100%;
    align-items: center;
    gap: 5px;
  }
  
  .staff-filter .filter-btn {
    min-width: 40px;
    flex-shrink: 0;
    border: 1px solid #ddd;
    background-color: #f5f5f5;
  }
  
  .staff-filter .filter-btn.active {
    background-color: #0AA273;
    color: #fff;
    border-color: #0AA273;
  }
  
  .staff-filter .staff-select {
    flex: 1;
    position: relative;
  }
  
  .staff-filter .staff-select select {
    min-width: 0;
    width: 100%;
    appearance: auto;
    padding-left: 8px;
    text-align-last: left;
    text-align: left;
  }
  
  /* カレンダーエリアの余白調整 */
  .calendar-area {
    margin: 0;
    border-radius: 0;
    /* border-radius: 0 0 20px 20px; */
  }
  
  /* 月表示エリアの調整 */
  .calendar-area #month-area {
    font-size: 11px;
    padding: 0 5px;
    height: 45px;
    border-bottom: 1px solid #ebebeb;
    margin-bottom: 0;
  }
  
  .calendar-area #month-area #now {
    font-size: 16px;
  }
  
  .calendar-area #month-area #prev .prev-month,
  .calendar-area #month-area #next .next-month {
    display: none;
  }
  
  /* 月表示エリア内の登録ボタンを非表示にする */
  .calendar-area #month-area .create {
    display: none;
  }
  
  /* ボタン調整 */
  .calendar-area #month-area #prev,
  .calendar-area #month-area #next {
    padding: 5px 8px;
    font-size: 11px;
    margin: 0;
  }
  
  /* 年月と登録ボタンを中央に集める */
  .calendar-area #month-area #prev {
    margin-right: 5px;
  }
  
  .calendar-area #month-area #next {
    margin-left: 5px;
  }
  
  /* カレンダー下部の余白をなくす */
  .main-area {
    border-radius: 0;
    margin-bottom: 0;
  }
  
  .main-body {
    border-radius: 0;
    margin-bottom: 0;
  }
  
  /* カレンダーのフォントサイズ調整 */
  .calendar-area #calendar {
    font-size: 10px;
    margin-bottom: 0;
  }
  
  /* カレンダーの行間を調整 */
  .calendar-area #calendar .row-week,
  .calendar-area #calendar .row-date {
    margin: 0;
  }
  
  .calendar-area #calendar .row-week .week {
    padding: 5px 0;
    font-size: 10px;
  }
  
  /* 日付セル調整 */
  .calendar-area #calendar .date {
    min-height: 90px;
    height: 90px;
    padding: 1px !important;
    box-sizing: border-box;
  }
  
  /* 日付番号を左上に寄せる */
  .calendar-area #calendar .date .date-num {
    font-size: 10px;
    width: 18px;
    height: 18px;
    line-height: 18px;
    /* margin: 1px 0 1px 1px; */
  }
  
  /* イベントリストの調整 */
  .calendar-area #calendar .date .event-list {
    margin: 1px;
    font-size: 9px;
  }
  
  .calendar-area #calendar .date .event-list li {
    /* margin-bottom: 1px; */
    padding: 2px 1px;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip; /* 省略せずに切り取る */
    border-radius: 2px;
  }
  
  /* 色付きのライン調整 */
  .calendar-area #calendar .date .event-list li.color01,
  .calendar-area #calendar .date .event-list li.color02,
  .calendar-area #calendar .date .event-list li.color03,
  .calendar-area #calendar .date .event-list li.color04,
  .calendar-area #calendar .date .event-list li.color05,
  .calendar-area #calendar .date .event-list li.color06 {
    border-left-width: 2px;
    font-size: 11px;
  }
  
  .calendar-area #calendar .date .event-list li:last-child {
    background-color: transparent;
    font-size: 11px;
  }
  
  /* モバイルでのスケジュール関連の調整 */
  .schedule-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .schedule-header .staff {
    margin-left: 0;
  }
}

/* モーダルスクロールの修正 */
body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

.modal-container {
  -webkit-overflow-scrolling: touch;
  overflow-y: auto;
}

.modal-container .modal-body {
  max-height: 90vh;
  overflow-y: auto;
}

/* モーダル背景のクリックでも閉じるようにする */
.modal-container.active {
  cursor: pointer;
}

.modal-container.active .modal-body {
  cursor: default;
}

/* modal */
.modal-container{
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	text-align: center;
	background: rgba(0,0,0,50%);
	padding: 40px 20px;
	overflow: auto;
	opacity: 0;
	visibility: hidden;
	transition: .3s;
  box-sizing: border-box;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
}
.modal-container:before{
	content: "";
	display: inline-block;
	vertical-align: middle;
	height: 100%;
}
.modal-container.active{
	opacity: 1;
	visibility: visible;
}
.modal-body{
	position: relative;
	display: inline-block;
	vertical-align: middle;
  max-height: 90vh;
}
.modal-close{
	cursor: pointer;
}
.modal-close.upper-right{
	position: absolute;
	display: flex;
  align-items: center;
  justify-content: center;
  /* top: 5px; */
  right: 5px;
	width: 30px;
	height: 30px;
	font-size: 30px;
	color: #333;
	cursor: pointer;
  z-index: 100;
}
.modal-content{
	background: #fff;
  position: relative;
  overflow-y: auto;
}
.calendar-area #modal-select .modal-content{
  /* min-width: 500px; */
  width: 800px;
	padding: 30px;
}
.calendar-area #modal-select .modal-content .title{
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 15px;
}
.calendar-area #modal-select .modal-content .select-area{
  font-size: 18px;
  margin-bottom: 20px;
}
.calendar-area #modal-select .modal-content .select-area select{
  font-size: 18px;
  margin-right: 5px;
}
.calendar-area #modal-select .modal-content .modal-close.btn{
  background-color: #4f5f92;
  color: #fff;
  display: inline-block;
  padding: 5px 20px;
  border-radius: 5px;
}
@media screen and (max-width: 480px) {
  .calendar-area #modal-select .modal-content{
    width: 300px !important;
    height: 170px !important;
    padding: 15px;
    font-size: 12px;
  }
  .calendar-area #modal-select .modal-content .title{
    font-size: 14px;
  }
  .calendar-area #modal-select .modal-content .select-area{
    font-size: 14px;
  }
  .calendar-area #modal-select .modal-content .select-area select{
    font-size: 14px;
  }
  .calendar-area #modal-select .modal-content .modal-close.btn{
    font-size: 14px;
  }
}
/* 日付詳細モーダル */
.calendar-area #modal-date .modal-content {
  height: 90vh;
  width: 95vw !important;
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.calendar-area #modal-date .modal-content .head-area {
  position: sticky;
  top: 0;
  background-color: #F5F5F5;
  z-index: 100;
  padding: 15px 15px 0 15px;
  border-radius: 15px 15px 0 0;
}

.calendar-area #modal-date .modal-content .date-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.calendar-area #modal-date .modal-content .date-head .now {
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  flex-grow: 1;
  margin: 0 15px;
}

.calendar-area #modal-date .modal-content .date-head .prev,
.calendar-area #modal-date .modal-content .date-head .next {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 5px;
  background-color: #22331D;
  color: #fff;
  transition: background-color 0.2s;
}

.calendar-area #modal-date .modal-content .date-head .prev:hover,
.calendar-area #modal-date .modal-content .date-head .next:hover {
  background-color: #38572e;
}

/* スタッフフィルター */
.staff-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  flex-wrap: nowrap;
  width: 100%;
}

.staff-filter .filter-btn {
  padding: 5px 15px;
  border: 1px solid #ddd;
  background-color: #f5f5f5;
  color: #333;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  white-space: nowrap;
  flex-shrink: 0;
}

.staff-filter .filter-btn.active {
  background-color: #0AA273;
  color: #fff;
  border-color: #0AA273;
}

.staff-filter .staff-select {
  position: relative;
  flex: 1;
  min-width: 0;
}

.staff-filter .staff-select select {
  padding: 5px 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #fff;
  font-size: 14px;
  min-width: 150px;
  appearance: auto;
}

/* 予定サマリー */
.schedule-summary {
  padding: 12px 15px;
  background-color: #f6f6f6;
  border-radius: 10px;
  margin-bottom: 15px;
}

.schedule-summary ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.schedule-summary ul li {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  background-color: #fff;
  padding: 5px 10px;
  border-radius: 15px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* スケジュールリスト */
.schedule-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 15px 15px;
  background-color: #fff;
}

.schedule-item {
  border: 1px solid #eee;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  background-color: #fff;
}

.schedule-header {
  background-color: #f8f8f8;
  padding: 10px 15px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  border-bottom: 1px solid #eee;
  gap: 10px;
}

/* スケジュールヘッダーの時間帯別カラー */
.schedule-header.color01 { background-color: #e3f2fd; border-left: 3px solid #3788D8; }
.schedule-header.color02 { background-color: #f3e5f5; border-left: 3px solid #b39ddb; }
.schedule-header.color03 { background-color: #fce4ec; border-left: 3px solid #c4469b; }
.schedule-header.color04 { background-color: #ffebee; border-left: 3px solid #c01b1b; }
.schedule-header.color05 { background-color: #fff3e0; border-left: 3px solid #EF6C00; }
.schedule-header.color06 { background-color: #e8f5e9; border-left: 3px solid #0B8043; }

.schedule-header .time {
  font-weight: bold;
  color: #22331D;
  font-size: 14px;
}

.schedule-header .client {
  font-size: 14px;
}

.schedule-header .staff {
  font-size: 12px;
  color: #666;
  margin-left: auto;
}

/* 日次番号のスタイル */
.schedule-header .day-number {
  display: inline-block;
  margin-left: 5px;
  font-weight: bold;
  color: #0AA273;
}

.schedule-body {
  padding: 10px;
}

.schedule-body .property {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.schedule-body .property a {
  color: #0066cc;
  text-decoration: none;
  font-size: 14px;
}

.schedule-body .property .map-link {
  color: #ff6b6b;
  font-size: 18px;
}

.schedule-body .service-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 12px;
  margin-bottom: 0;
}

.schedule-body .service-name {
  font-size: 14px;
  color: #333;
}

.schedule-body .detail-btn {
  background-color: #22331D;
  color: #fff;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 13px;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s;
}

.schedule-body .detail-btn:hover {
  background-color: #38572e;
}

/* モバイル対応 */
@media screen and (max-width: 768px) {
  main {
    padding: 0;
  }
  .calendar-area #month-area #prev .prev-month,
  .calendar-area #month-area #next .next-month {
    display: none;
  }
  
  .calendar-area #calendar .date {
    min-height: 120px;
    height: 120px;
    padding: 5px;
  }
  
  .calendar-area #calendar .date .date-num {
    font-size: 14px;
    width: 25px;
    height: 25px;
    line-height: 25px;
  }
  
  .calendar-area #month-area #prev,
  .calendar-area #month-area #next {
    padding: 8px 10px;
  }
  
  .staff-filter {
    flex-wrap: wrap;
  }
  
  .staff-filter .filter-btn {
    padding: 6px 10px;
    font-size: 13px;
  }
  
  .staff-filter .staff-select {
    width: 100%;
    margin-top: 5px;
  }
  
  .schedule-header {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 10px;
  }
  
  .schedule-header .time {
    font-size: 12px;
    white-space: nowrap;
  }
  
  .schedule-header .client {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
  }
  
  .schedule-header .staff {
    margin-left: auto;
    font-size: 11px;
    white-space: nowrap;
  }
  .calendar-area #modal-date .modal-content .date-head .now {
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    flex-grow: 1;
    margin: 0 15px;
  }
}

/* 画面幅が1001px～1500pxの場合のスタイル */
@media screen and (min-width: 1001px) and (max-width: 1500px) {
    /* メニュー項目の間隔調整 */
    header ul.drawer-menu li {
      margin-top: 15px; /* 上マージンを追加 */
    }

    /* 最初のメニュー項目のマージンは不要 */
    header ul.drawer-menu li:first-child {
        margin-top: 0;
    }

    /* サブメニューの項目はマージン不要 */
    header ul.drawer-menu li .child-menu li {
        margin-top: 0;
    }
    /* メニューテキストを非表示 */
    header ul.drawer-menu li a span.menu-text {
      display: none;
    }

    /* メニューアイコンの調整 */
    header ul.drawer-menu li a i {
        margin-right: 0;
        width: 22px; /* 固定幅を設定 */
        font-size: 22px; /* アイコンサイズを大きく */
        text-align: center; /* 中央揃え */
    }

    /* メニュー項目の幅と配置調整 */
    header ul.drawer-menu li a {
      padding: 12px; /* パディングも少し大きく */
      text-align: center;
      display: flex;
      justify-content: center;
      align-items: center; /* 縦方向の中央揃えを確実に */
    }

    /* サブメニューの位置調整 */
    header ul.drawer-menu li .child-menu {
        padding: 5px 0;
    }

    header ul.drawer-menu li .child-menu li a {
        padding: 5px;
        text-align: center;
    }

    /* アクティブメニューの調整 */
    header ul.drawer-menu li.active > a {
        padding: 12px;
    }

    /* ヘッダーロゴエリアの調整 */
    header .logo-area h1 {
        grid-template-columns: 50px; /* ロゴのみの幅に変更 */
        gap: 0;
        padding: 10px 10px 20px;
        margin-bottom: 10px;
        border-bottom: #3e5736 1px solid;
    }

    /* アプリ名を非表示（divタグ対応） */
    header .logo-area h1 .name {
        display: none;
    }

    /* コンテンツエリアの幅調整 */
    .contents {
        grid-template-columns: auto 1fr; /* 左メニューを最小幅に */
    }

    /* ヘッダー全体の幅調整 */
    header {
        width: 70px; /* アイコンとパディングに合わせた幅 */
    }

    /* ドロワーメニュー幅の調整 */
    .drawer-nav {
        width: 70px;
    }
    
    /* 1000px～1500pxではアイコン右上のバッジを表示、テキスト横のバッジを非表示 */
    .unread-badge {
        display: flex;
    }
    
    .unread-text-badge {
        display: none;
    }
}

/* 画面幅が1000px以下の場合 */
@media screen and (max-width: 1000px) {
    /* アイコン右上のバッジを非表示、テキスト横のバッジを表示 */
    .unread-badge {
        display: none !important;
    }
    
    .unread-text-badge {
        display: inline-flex !important;
    }
}

/* 画面幅が1501px以上の場合 */
@media screen and (min-width: 1501px) {
    /* アイコン右上のバッジを非表示、テキスト横のバッジを表示 */
    .unread-badge {
        display: none !important;
    }
    
    .unread-text-badge {
        display: inline-flex !important;
    }
}

/* ヘッダー内の戻るボタンとユーザー画像のスタイル */
.head-area .right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.return-button {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    /* background-color: #d9d8d8; */
    color: #333333;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s ease;
}

/* .return-button:hover {
    background-color: #0AA273;
    color: white;
} */

.return-button i {
    margin-right: 5px;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .return-button {
        font-size: 13px;
        padding: 6px 10px;
    }
}

@media screen and (max-width: 480px) {
    .head-area .right {
        gap: 10px;
    }
    
    .return-button {
        font-size: 12px;
        padding: 5px 8px;
    }
}

/* ヘッダーエリアの基本スタイル */
.head-area {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
}

.head-area .left {
    display: flex;
    align-items: center;
}

.head-area h2 {
    margin: 0;
    font-size: 22px;
    color: #333;
}

.button-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.button-group > div:first-child {
  display: flex;
  gap: 10px;
}

.member-name {
  font-size: 16px;
  font-weight: bold;
  color: #22331D;
  text-align: right;
  margin-right: 15px;
}

/* モバイル用会員名表示 */
.mobile-return-button {
  display: none; /* 通常時は非表示 */
}

.mobile-member-name {
  font-size: 14px;
  font-weight: bold;
  color: #22331D;
  margin-left: auto;
  text-align: right;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .button-group .member-name {
    display: none; /* モバイルでは非表示 */
  }
  
  .mobile-return-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    width: 100%;
  }
  
  .mobile-return-button a {
    margin-right: auto; /* 左寄せ */
  }
  
  .mobile-member-name {
    margin-left: auto; /* 右寄せ */
  }
  
  .return-button {
    font-size: 13px;
    padding: 6px 10px;
  }
}

/* アイコンコンテナとバッジのスタイル */
.icon-container {
    position: relative;
    display: inline-flex;
    justify-content: center;
}

/* アイコン右上に表示する未読バッジ */
.unread-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ff4d4d;
    color: white;
    border-radius: 50%;
    width: 21px;
    height: 21px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    /* border: 1px solid #fff; */
}

.unread-badge:empty {
    display: none;
}

/* テキスト右側に表示する未読バッジ */
.unread-text-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ff4d4d;
    color: white;
    border-radius: 50%;
    width: 21px;
    height: 21px;
    font-size: 11px;
    font-weight: bold;
    margin-left: 5px;
    padding: 1px 1px 0 0;
}

.unread-text-badge:empty {
    display: none;
}

/* メニューアイコンのスタイル調整 */
header ul.drawer-menu li a i {
    width: 20px;
    margin-right: 10px;
    text-align: center; /* アイコンを中央揃え */
}

@media screen and (max-width: 1000px), screen and (min-width: 1501px) {
    /* チャット一覧テキストのマージン調整 */
    header ul.drawer-menu li a .menu-text {
        margin-left: 0; /* 左マージンをリセット */
    }
    
    /* アイコンコンテナのマージン調整 */
    .icon-container {
        margin-right: 10px;
    }
    
    /* 通常メニューアイテムのアイコン位置調整（チャット一覧と揃える） */
    header ul.drawer-menu li a i:not(.icon-container i) {
        width: 20px;
        display: inline-flex;
        justify-content: center;
        margin-right: 10px;
    }
    
    /* メニューテキストの位置を統一 */
    header ul.drawer-menu li a .menu-text,
    header ul.drawer-menu li a span.menu-text {
        display: inline-block;
        position: relative;
        left: 10px; /* 右に調整してチャット一覧と揃える */
    }
    
    /* チャット一覧のテキストは調整しない */
    header ul.drawer-menu li a:has(.icon-container) .menu-text {
        left: 0;
    }
}

/* ナビゲーションメニューのアクティブ状態 */
nav ul.nav-menu li.active {
  background-color: #435c3b;
  border-radius: 5px;
}
nav ul.nav-menu li.active > a {
  display: flex;
  align-items: center;
}



/* 固定設定アイコンのスタイル */
.fixed-settings-icon {
  position: fixed;
  bottom: 20px;
  left: 15px;
  z-index: 1000;
  transition: all 0.3s ease;
}

.fixed-settings-icon:hover {
  background-color: #435c3b;
  border-radius: 5px;
}

.fixed-settings-icon.active {
  background-color: #435c3b;
  border-radius: 5px;
}

.fixed-settings-icon a {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
}

.fixed-settings-icon a i {
  width: 20px;
  font-size: 20px;
}

.fixed-settings-icon a:hover {
  opacity: 1;
}

/* レスポンシブ対応 - 固定設定アイコン */
@media screen and (max-width: 768px) {
  .fixed-settings-icon {
    bottom: 15px;
    left: 10px;
  }
  
  .fixed-settings-icon a {
    padding: 8px 12px;
  }
  
  .fixed-settings-icon a i {
    font-size: 18px;
  }
}



/* 予約ユーザー情報テーブルの調整 */
.calendar-area #modal-date .modal-content .tab-content .content .user-area .user-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  table-layout: fixed;
}

.calendar-area #modal-date .modal-content .tab-content .content .user-area .user-table th,
.calendar-area #modal-date .modal-content .tab-content .content .user-area .user-table td {
  font-size: 14px;
  line-height: normal;
  padding: 12px;
  border: 1px solid #e2e2e2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-area #modal-date .modal-content .tab-content .content .user-area .user-table thead .head {
  background-color: #f6f6f6;
  font-weight: bold;
}

.calendar-area #modal-date .modal-content .tab-content .content .user-area .user-table .time {
  width: 80px;
}

.calendar-area #modal-date .modal-content .tab-content .content .user-area .user-table .name {
  width: 150px;
}

.calendar-area #modal-date .modal-content .tab-content .content .user-area .user-table .kana {
  width: 150px;
}

.calendar-area #modal-date .modal-content .tab-content .content .user-area .user-table .mail {
  width: 200px;
}

.calendar-area #modal-date .modal-content .tab-content .content .user-area .user-table .tel {
  width: 140px;
}

.calendar-area #modal-date .modal-content .tab-content .content .user-area .user-table .text {
  width: auto;
  text-align: left;
  min-width: 250px;
}

.calendar-area #modal-date .modal-content .tab-content .content .user-area .user-table tbody tr:hover {
  background-color: #f0f8ff;
  cursor: pointer;
}

/* 予定がない場合のメッセージ */
.no-schedule-message {
  text-align: center;
  padding: 30px 20px;
  font-size: 15px;
  color: #666;
  background-color: #f8f8f8;
  border-radius: 10px;
  margin: 20px 0;
}

/* モーダルの閉じるボタン */
.modal-close.upper-right {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s;
}

.modal-close.upper-right:hover {
  background-color: rgba(255, 255, 255, 1);
}

.modal-close.upper-right i {
  font-size: 16px;
  color: #333;
}

/* 統合: admin-style_tablet.css の内容 */
/* ====================================
   タブレット対応スタイル
   ==================================== */

/* @charset "UTF-8"; */
@media screen and (max-width: 1000px) and (min-width: 740px)
{
    .visible_t,
    .visible_pt{
        display: block !important;
    }
    .visible_p,
    .visible_m{
        display: none !important;
    }
}
@media screen and (max-width: 1000px)
{
    .base-width{
        margin: 0px auto;
        max-width: 1200px;
    }

    .contents {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .user-img {
        margin-right: 30px;
    }
    header .logo-area h1 {
        margin-bottom: 0;
        padding: 0 0 10px;
    }
    header .drawer-nav{
        background-color: #22331D;
        color: #fff;
        padding: 5px;
    }
    header .drawer-hamburger{
        margin-top: 5px;
        z-index: 100;
        background: #22331D;
        border-radius: 5px;
    }
    header .drawer-nav button{
        color: #fff;
        width: 100%;
        text-align: end;
    }
    header .drawer-nav .head{
        padding: 15px;
    }
    header ul.drawer-menu li .child-menu{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}


/* 統合: admin-style_tablet.css の内容 */
@media screen and (max-width: 1000px) and (min-width: 740px) {
    .visible_t,
    .visible_pt{
        display: block !important;
    }
    .visible_p,
    .visible_m{
        display: none !important;
    }
}

@media screen and (max-width: 1000px) {
    .base-width{
        margin: 0px auto;
        max-width: 1200px;
    }

    .contents {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .user-img {
        margin-right: 30px;
    }
    header .logo-area h1 {
        margin-bottom: 0;
        padding: 0 0 10px;
    }
    header .drawer-nav{
        background-color: #22331D;
        color: #fff;
        padding: 5px;
    }
    header .drawer-hamburger{
        margin-top: 5px;
        z-index: 100;
        background: #22331D;
        border-radius: 5px;
    }
    header .drawer-nav button{
        color: #fff;
        width: 100%;
        text-align: end;
    }
    header .drawer-nav .head{
        padding: 15px;
    }
    header ul.drawer-menu li .child-menu{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* 統合: admin-style_mobile.css の内容 */
/* ====================================
   モバイル対応スタイル
   ==================================== */

/* @charset "UTF-8"; */
@media screen and (max-width: 739px)
{
    .visible_m,
    .visible_tm{
        display: block !important;
    }
    .visible_p,
    .visible_t,
    .visible_pt{
        display: none !important;
    }

    .calendar-area #modal-date.modal-container{
        padding: 0;
    }
    .calendar-area #modal-date.modal-container .date-head span{
        display: none;
    }
    .calendar-area #modal-date .modal-content .date-head {
        gap: 20px;
        justify-content: start;
    }
}

@media screen and (max-width: 600px)
{
}

@media screen and (max-width: 450px)
{
}


/* 統合: admin-style_mobile.css の内容 */
@media screen and (max-width: 739px) {
    .visible_m,
    .visible_tm{
        display: block !important;
    }
    .visible_p,
    .visible_t,
    .visible_pt{
        display: none !important;
    }

    /* 日付詳細モーダル */
    .calendar-area #modal-date.modal-container{
        padding: 0;
    }
    .calendar-area #modal-date.modal-container .date-head span{
        display: none;
    }
    .calendar-area #modal-date .modal-content .date-head {
        gap: 6px;
        justify-content: start;
    }
}

/* 新規登録モーダル関連のスタイル */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  width: 100%;
  position: relative;
}

.modal-title {
  font-size: 18px;
  font-weight: bold;
  margin: 10px 0 20px;
  text-align: center;
  width: 100%;
  position: absolute;
  left: 0;
  right: 0;
  z-index: 100;
}

.back-btn {
  padding: 8px 12px;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 5px;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.back-btn:hover {
  background-color: #e0e0e0;
}

.submit-btn {
  padding: 10px 20px;
  background-color: #0AA273;
  border: none;
  border-radius: 5px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 15px;
}

.submit-btn:hover {
  background-color: #088c61;
}

.form-area {
  padding: 0 15px 15px;
  overflow-y: auto;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 16px !important;
  font-weight: normal !important;
  text-align: left !important;
  color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.time-select {
  display: flex;
  align-items: center;
  gap: 10px;
}

.time-select select {
  flex: 1;
}

.time-select span {
  font-size: 14px;
  color: #666;
}

#modal-create .modal-content {
  width: 95vw;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  border-radius: 15px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

#modal-create .form-area {
  overflow-y: auto;
  flex-grow: 1;
}

#modal-create .form-bottom {
  display: flex;
  justify-content: flex-start;
  padding: 10px 0;
  border-top: 1px solid #eee;
  margin-top: 15px;
}

/* スマホ対応調整 - モーダル */
@media screen and (max-width: 768px) {
  #modal-create .modal-content {
    width: 360px !important;
    /* padding: 15px; */
    font-size: 12px;
  }
  
  #modal-create .form-group label,
  #modal-create .form-group input,
  #modal-create .form-group select,
  #modal-create .form-group textarea,
  #modal-create .time-select span {
    font-size: 12px !important;
    margin-bottom: auto;
  }
  
  .modal-title {
    font-size: 16px !important;
    margin: 5px 0 15px;
  }
  
  .submit-btn {
    padding: 4px 15px;
    font-size: 12px;
  }
  
  .form-group {
    margin-bottom: 10px;
  }
  
  .time-select {
    /* flex-direction: column; */
    align-items: flex-start;
  }
  
  .time-select select {
    width: 100%;
    margin-bottom: 5px;
  }
}

/* フルスクリーン対応 */
.main-area {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.main-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* .main-body>div {
  flex: 1;
} */

/* フォーム内の注釈テキスト */
.form-group .note {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
  margin-bottom: 0;
  line-height: 1.2;
  text-align: left;
}

/* フォーム内の区切り線 */
.form-divider {
  border-top: 1px solid #ddd;
  margin: 20px 0;
}

.calendar-area #calendar .row-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background-color: #fff;
  border-bottom: 1px solid #ebebeb;
}

.calendar-area #calendar .row-week .week {
  padding: 10px 5px;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
}

/* 日曜と土曜の色 */
.calendar-area #calendar .row-week .week:first-child,
.calendar-area #calendar .date.sun .date-num {
  color: #ff0000;
}

.calendar-area #calendar .row-week .week:last-child,
.calendar-area #calendar .date.sat .date-num {
  color: #4169e1;
}

.calendar-area #calendar .row-date {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  flex-grow: 1;
}

.calendar-area #calendar .date {
  border: 1px solid #ebebeb;
  min-height: 130px;
  height: 100%;
  padding: 0 2px;
  background-color: #ffffff;
  cursor: pointer;
  transition: background-color 0.2s;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

/* 日付番号のスタイル */
.calendar-area #calendar .date .date-num {
  font-size: 16px;
  /* font-weight: bold; */
  /* margin-bottom: 5px; */
  text-align: center;
  display: inline-block;
  width: 30px;
  height: 30px;
  line-height: 30px;
  border-radius: 50%;
}

/* 今日の日付 */
.calendar-area #calendar .date.now .date-num {
  background-color: #0AA273;
  color: #fff !important;
}

/* 前月・翌月の日付 */
.calendar-area #calendar .date.disabled {
  background-color: #f8f8f8;
  color: #999;
  cursor: default;
}

.calendar-area #calendar .date:hover:not(.disabled) {
  background-color: #f0f8ea;
}

/* 複数日イベント表示のスタイル */
.calendar-area #calendar .date .event-list li.multi-day-start {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: none;
  margin-right: 0;
  padding-right: 5px;
}

.calendar-area #calendar .date .event-list li.multi-day-middle {
  border-radius: 0;
  border-left: none;
  border-right: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 5px;
  padding-right: 5px;
}

.calendar-area #calendar .date .event-list li.multi-day-end {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: none;
  margin-left: 0;
  padding-left: 5px;
}

/* イベントリスト */
.calendar-area #calendar .date .event-list {
  margin: 5px 0 0;
  padding: 0;
  list-style: none;
  font-size: 11px;
}

.calendar-area #calendar .date .event-list li {
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  /* text-overflow: ellipsis; */
  padding: 1px 3px;
  border-radius: 3px;
  background-color: #e8f4ff;
  font-size: 13px;
}

.calendar-area #calendar .date .event-list li:last-child {
  margin-bottom: 0;
  background-color: transparent;
}

/* 日次番号のスタイル */
.calendar-area #calendar .date .event-list li:before {
  display: inline;
  margin-right: 2px;
}

/* イベントの色 - 背景色に変更 */
.calendar-area #calendar .date .event-list li.color01 { background-color: #e3f2fd; border-left: 3px solid #3788D8; }
.calendar-area #calendar .date .event-list li.color02 { background-color: #f3e5f5; border-left: 3px solid #b39ddb; }
.calendar-area #calendar .date .event-list li.color03 { background-color: #fce4ec; border-left: 3px solid #c4469b; }
.calendar-area #calendar .date .event-list li.color04 { background-color: #ffebee; border-left: 3px solid #c01b1b; }
.calendar-area #calendar .date .event-list li.color05 { background-color: #fff3e0; border-left: 3px solid #EF6C00; }
.calendar-area #calendar .date .event-list li.color06 { background-color: #e8f5e9; border-left: 3px solid #0B8043; }

/* モバイル表示 */
@media screen and (max-width: 768px) {
  .calendar-area #calendar .date .event-list li {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip; /* スマホでは省略せず切り取り */
    line-height: 1.1;
    padding: 2px 1px;
    font-size: 11px;
  }
}

/* 週表示用のスタイル */
.calendar-area #week-view {
  display: none;
  flex-direction: column;
  font-size: 14px;
  width: 100%;
  height: calc(100vh - 170px); /* 画面縦幅いっぱいに表示 */
  overflow: auto;
}

/* 画面幅480px以下（スマホ表示）のスタイル */
@media screen and (max-width: 480px) {
    /* ヘッダーを非表示 */
    header {
        display: none !important;
    }

    .head-area {
      padding: 0;
    }

    .head-area h2 {
        font-size: 16px;
    }

    .main-header .head-area .user-img {
      width: 30px;
      height: 30px;
      margin-right: 45px;
    }
    
    /* ページ全体のグリッドレイアウトを調整 */
    .contents {
        display: block;
    }

    .main-area {
      margin: 10px !important;
    }

    /* main-header内にハンバーガーメニューを表示 */
    .main-header {
        display: block;
        position: relative;
        padding: 10px 20px;
    }
    
    .main-header .head-area {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    /* ハンバーガーメニューボタンを最右寄せで表示 */
    .main-header .drawer-hamburger {
        position: absolute;
        top: 50%;
        right: 15px;
        transform: translateY(-50%);
        background-color: #22331D;
        border-radius: 5px;
        margin: 0;
        padding: 10px;
        width: 38px;
        height: 38px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .main-header .drawer-hamburger-icon,
    .main-header .drawer-hamburger-icon:after,
    .main-header .drawer-hamburger-icon:before {
        background-color: #fff;
    }
    
    /* モバイル時のドロワーメニューの位置とスタイル */
    .drawer--right .drawer-nav {
        right: -100%;
        width: 80%;
        transition: right 0.3s ease;
    }
    
    .drawer--right.drawer-open .drawer-nav {
        right: 0;
    }
    
    .drawer-nav {
        background-color: #22331D;
        color: #fff;
        padding: 15px;
        z-index: 100;
    }
}
