/* index.css */

.service-list .service-item {
    margin-bottom: 40px;
}

.works-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* スライドショー全体 */
.hero-slider {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 320px;
    overflow: hidden;
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.hero-slider .slide.active {
    opacity: 1;
}

/* 黒グラデーション */
.hero-slider .slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
    pointer-events: none;
}

/* 中央に大きくコピーを配置 */
.slide-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    padding: 0 20px;
    z-index: 10;
    color: #fff;
}

.slide-text p {
    font-size: 32px;
    line-height: 1.6;
    letter-spacing: 0.08em;
    opacity: 0.95;
}

/* スマホ調整 */
@media (max-width: 768px) {
    .slide-text p {
        font-size: 20px;
        line-height: 1.5;
    }
}
/* トップページのスライドショー終わり */

/* カレンダー全体 */
.calendar-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #004c97;
}

.business-hours {
  font-size: 15px;
  margin-bottom: 10px;
  color: #004c97;
}

.calendar-container {
  width: auto;
  max-width: 420px;
  margin: 30px auto;
  padding: 20px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-align: center;
  font-family: "Segoe UI", sans-serif;
  overflow-x: auto;
}

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 10px;
}

#monthTitle {
  font-size: 18px;
  font-weight: bold;
  color: #004c97;
  min-width: 120px;
  text-align: center;
}

/* 月移動ボタン */
.nav-btn {
  cursor: pointer;
  padding: 6px 16px;
  margin: 0 10px;
  background: #004c97;
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  border: none;
  transition: 0.2s;
}

.nav-btn:hover {
  background: #0062c7;
  transform: translateY(-2px);
}


/* カレンダー本体 */
.calendar {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  border-radius: 10px;
  overflow: hidden;
  table-layout: fixed;
  min-width: 360px;
}

.calendar th {
  background: #004c97;
  color: #fff;
  padding: 10px;
  font-weight: bold;
  font-size: 14px;
}

.calendar td {
  border: 1px solid #e0e0e0;
  width: 14.2%;
  height: 60px;
  text-align: center;
  vertical-align: middle;
  font-size: 15px;
  transition: 0.2s;
}

/* ホバーで軽く浮く */
.calendar td:hover {
  background: #f0f8ff;
  transform: scale(1.05);
}

/* 色分け */
.holiday {
  background: #ffdddd;
  color: #b30000;
  font-weight: bold;
}

.workday {
  background: #eaffea;
  color: #006600;
  font-weight: bold;
}

/* 今日のセル（背景は消さない） */
.today {
  position: relative;
  font-weight: bold;
  z-index: 1;
}

/* 今日の丸マーカー（背景の上に重ねる） */
.today::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  background: #fff7b3;
  border: 2px solid #e6c200;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}

/* td を stacking context にする（丸が背景の上に来るように） */
.calendar td {
  position: relative;
  z-index: 0;
}

.calendar-legend {
  margin-top: 15px;
  text-align: center;
  font-size: 14px;
}

.legend-box {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 4px;
  vertical-align: middle;
  border-radius: 3px;
  border: 1px solid #999;
}

.legend-box.holiday {
  background: #ffdddd;
}

.legend-box.workday {
  background: #eaffea;
}

/* 凡例の今日だけ小さくする（確実に上書き） */
.legend-box.legend-today {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff7b3;
  border: 1px solid #e6c200;
}

/* カレンダー終わり */