@charset "UTF-8";

/* =========================================
   Base (基本設定)
========================================= */
body {
  margin: 0;
}
h1 {
  font-size: 1.5rem !important;
  margin-bottom: 15px;
  font-weight: bold;
  border: none !important;
  padding-left: 0 !important;
  line-height: 1.3;
}
p {
  margin: 0;
  line-height: 1.6;
}

/* =========================================
   Layout (全体レイアウト)
========================================= */
.main-content {
  margin: 30px 0 30px 0;
}
.content-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  max-width: 1170px;
  margin: 0 auto;
}
.main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: calc(100% - 350px);
}
.side-area {
  width: 270px;
}
.box {
  width: 100%;
  box-sizing: border-box;
  padding: 20px;
  border-radius: 0;
  border: 1px solid transparent;
}
section.box:has(.slider-outer) {
  padding: 0;
}
.headline {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 15px;
  padding-left: 12px;
  border-left: 4px solid #333;
  line-height: 1.2;
  margin-top: 0;
}

/* =========================================
   Slider (スライダー関連)
========================================= */
.slider-outer {
  position: relative;
  width: 100%;
  margin: 0 auto;
}
.main-slider-wrapper {
  position: relative;
  width: 100%;
  margin: 0 auto;
}
.main-slider {
  width: 100%;
  height: auto;
}
.main-slider .swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
}
.swiper-button-next,
.swiper-button-prev {
  color: #333;
  top: 50%;
  transform: translateY(-50%) scale(0.6);
  position: absolute;
  width: 100px;
  height: 100px;
  z-index: 10;
}
.swiper-button-prev {
  left: -80px;
}
.swiper-button-next {
  right: -80px;
}
.thumbs-slider {
  margin-top: 5px;
  padding: 5px 0;
  width: 70%;
  margin-left: auto;
  margin-right: auto;
  height: auto;
}
.thumbs-slider .swiper-slide {
  opacity: 0.4;
  cursor: pointer;
}
.thumbs-slider .swiper-slide-thumb-active {
  opacity: 1;
}
.thumbs-slider img {
  width: 100%;
  height: auto;
  display: block;
}
.swiper-pagination {
  display: none;
}

/* =========================================
   News (お知らせエリア)
========================================= */
section.box:has(.news-list) {
  background-color: #f7fbff;
  border-color: #d0e3f7;
}
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.news-list li {
  padding: 8px 0;
  border-bottom: 1px solid #d0e3f7;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.news-list li:last-child {
  border-bottom: none;
}
.news-date {
  color: #888;
  font-size: 0.9rem;
  margin-right: 10px;
}
.news-label {
  background-color: #e0e0e0;
  color: #333;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 0;
  margin-right: 15px;
  display: inline-block;
  min-width: 80px;
  text-align: center;
}
.news-label.blue {
  background-color: #cfe2ff;
  color: #004085;
}
.news-label.green {
  background-color: #c3e6cb;
  color: #155724;
}
.news-label.red {
  background-color: #f5c6cb;
  color: #721c24;
}
.news-label.orange {
  background-color: #ffeeba;
  color: #856404;
}
.news-text {
  flex: 1;
  color: #333;
  text-decoration: none;
}
.news-text a,
.news-text a:visited {
  text-decoration: underline;
  color: #333;
}

/* =========================================
   Menu Grid (メニュー一覧)
========================================= */
section.box:has(.menu-grid) {
  background-color: #fbf9ff;
  border-color: #e8e0f5;
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 0;
}
.menu-item,
.menu-item:visited {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #e8e0f5;
  padding: 10px;
  text-decoration: none;
  color: #333;
  border-radius: 0;
  transition: all 0.2s ease;
}
.menu-item:hover {
  background-color: #f0e8ff;
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  color: #333;
}
.menu-text {
  font-size: 1rem;
  font-weight: normal;
}

/* =========================================
   Two Columns & Calendar (2カラム・カレンダー)
========================================= */
.two-columns {
  display: flex;
  gap: 30px;
  align-items: stretch;
}
.column-wrapper:first-child {
  flex: 1.5;
}
.column-wrapper:last-child {
  flex: 1;
  min-width: 280px;
}
section.box:has(#calendar-wrapper) {
  background-color: #fafffa;
  border-color: #e0f0e0;
  height: 100%;
}
#calendar-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  justify-content: center;
}
#calendar-wrapper table,
.table {
  flex: 1;
  min-width: 0;
  background: #fff;
  font-size: 0.8rem;
  border-collapse: collapse;
  border-spacing: 0;
  margin-bottom: 10px;
}
#calendar-wrapper thead,
.table thead {
  background-color: transparent;
}
#calendar-wrapper thead tr th {
  background-color: #f6fff6 !important;
  border: none;
  color: #333;
  padding: 0 0 10px 0;
  font-size: 1rem;
  font-weight: bold;
}
#calendar-wrapper th,
#calendar-wrapper td,
.table th,
.table td {
  border: 1px solid #dcdcdc;
  font-style: normal;
  font-weight: normal;
  padding: 2px;
  text-align: center;
  font-size: small;
}
.sunday {
  background-color: #FFE2E0;
  color: #333;
}
.saturday {
  background-color: #FFE2E0;
}
.weekday {
  background-color: #FFFFFF;
}
.today {
  background-color: #9AD19C !important;
  font-weight: bold !important;
}

/* =========================================
   Banner & Other Box (バナー等)
========================================= */
section.box:has(.image-area) {
  background-color: #fffdf7;
  border-color: #f3e5ab;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.image-area {
  text-align: center;
}
.image-area img {
  max-width: 100%;
  height: auto;
}
.box-btn-area {
  text-align: center;
  margin-top: auto;
}
.btn-keikaku,
.btn-keikaku:visited {
  display: inline-block;
  padding: 8px 35px;
  font-size: 1rem;
  font-weight: normal;
  cursor: pointer;
  background-color: #fff;
  border: 1px solid #ccc;
  color: #333;
  text-decoration: none;
  border-radius: 0;
  transition: all 0.2s;
}
.btn-keikaku:hover {
  background-color: #f5f5f5;
  color: #333;
  text-decoration: none;
}

/* =========================================
   サイドメニュー
========================================= */
.boxmenu {
  background: #fafafa;
  border: 1px solid #dddddd;
  padding: 0 !important;
  border-radius: 0;
  overflow: hidden;
}
.boxmenu .headline {
  background-color: #1e5082;
  color: #ffffff;
  border-left: none;
  padding: 15px 10px;
  margin-bottom: 0;
  font-size: 1rem;
  font-weight: normal;
}
.item-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.item-list li {
  border-bottom: 1px solid #dddddd;
}
.item-list li:last-child {
  border-bottom: none;
}
.item-list a,
.item-list a:visited {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 10px;
  color: #333333;
  text-decoration: none;
  transition: all 0.2s ease;
}
.item-list a:hover {
  background-color: #eeeeee;
}
.item-list a span,
.item-list a:visited span {
  color: #999999;
  font-size: 1.5rem;
}

/* 検索ボックス */
.top-search-box {
  background-color: #f8f9fa;
  border: 2px solid #1e5082;
  padding: 25px 20px;
  border-radius: 0;
  text-align: center;
}

.top-search-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: #1e5082;
  margin-bottom: 15px;
}

.top-search-form {
  display: flex;
  justify-content: center;
  max-width: 600px;
  margin: 0 auto;
  gap: 8px;
}

.top-search-input {
  flex: 1;
  padding: 12px 15px;
  font-size: 1.1rem;
  border: 1px solid #ccc;
  border-radius: 0;
  box-sizing: border-box;
}

.top-search-btn {
  padding: 12px 30px;
  font-size: 1.1rem;
  background-color: #1e5082;
  color: #fff;
  border: none;
  border-radius: 0;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s ease;
}

.top-search-btn:hover {
  background-color: #1a3a5f;
}

/* =========================================================
   ▼ モバイル（スマホ）表示時の縮小設定 ▼ 
   ※画面幅が768px以下になった時だけ適用されます
========================================================= */
@media screen and (max-width: 768px) {
  .top-search-box {
    padding: 15px 15px;
  }
  .top-search-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }
  .top-search-input {
    padding: 10px 10px;
    font-size: 1rem;
  }
  .top-search-btn {
    padding: 10px 20px;
    font-size: 1rem;
  }
}
/* =========================================
   Responsive (メディアクエリ)
========================================= */
@media (max-width: 1100px) {
  .content-wrapper {
    flex-direction: column;
    gap: 0;
  }
  .main-area {
    width: 100%;
  }
  .side-area {
    display: block;
    width: 100%;
    margin-top: 40px;
  }
  .two-columns {
    flex-direction: column;
  }
  #calendar-wrapper {
    flex-direction: column;
    gap: 30px;
  }
  .thumbs-slider,
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
  .swiper-pagination {
    display: block;
    position: absolute;
    bottom: -5px !important;
    text-align: center;
    width: 100%;
    z-index: 10;
  }
  .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #ccc;
    opacity: 1;
    margin: 0 5px;
  }
  .swiper-pagination-bullet-active {
    background: #0055aa;
    opacity: 1;
  }
  .main-slider {
    padding-bottom: 30px;
  }
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .news-list li {
    flex-wrap: wrap;
    align-items: flex-start;
    display: block;
  }
  .menu-text {
    font-size: 0.8rem;
  }
  .news-text {
    flex-basis: 100%;
    width: 100%;
    margin-top: 5px;
    display: block;
  }
  .btn-calendar-style,
  .btn-keikaku,
  .btn-keikaku:visited {
    margin-top: 30px;
  }
  a,
  .menu-item,
  .btn-keikaku,
  .controls .btn,
  .news-text {
    -webkit-tap-highlight-color: transparent;
    cursor: default !important;
    transition: none !important;
  }
  .item-list a:hover,
  .menu-item:hover {
    background-color: transparent !important;
    padding-left: 10px !important;
    transform: none !important;
    box-shadow: none !important;
    text-decoration: none;
  }
  .controls .btn:hover,
  .btn-keikaku:hover {
    background-color: #f5f5f5 !important;
  }
}