.body-content {
  padding-bottom: 30px;
}
/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
  white-space: normal;
}
.navbar-nav {
  padding: 10px 0;
}
.navbar-nav li {
  padding: 7px 7px;
}
.navbar-nav li a {
  font-size: 1.2rem;
  color: #036EB7;
}
.navbar-brand img {
  max-height: 60px;
}
@media (max-width: 468px) {
  .navbar-brand img {
    max-width: 300px;
  }
}
@media (max-width: 386px) {
  .navbar-brand img {
    max-width: 220px;
  }
}
.navbar {
  border-bottom: solid 3px #8CC63F;
}
.navbar .tel img {
  max-height: 50px;
}
.navbar-toggler {
  border-color: #E4F3F9;
}
.navbar-toggler .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(3,102,199,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}
.kozuka-h {
  font-family: "kozuka-mincho-pr6n";
  font-weight: 900;
  font-style: normal;
}
.kozuka-b {
  font-family: "kozuka-mincho-pr6n";
  font-weight: 700;
  font-style: normal;
}
.kozuka-r {
  font-family: "kozuka-mincho-pr6n";
  font-weight: 400;
  font-style: normal;
}
h2,
.h2 {
  margin: 30px 0;
  padding: 10px 15px;
  background-color: #036EB7;
  color: #fff;
  font-family: "kozuka-mincho-pr6n";
  font-weight: 700;
  font-style: normal;
}
@media (max-width: 768px) {
  h2,
  .h2 {
    font-size: 24px;
  }
  h3,
  .h3 {
    font-size: 22px;
  }
  .h4 {
    font-size: 20px;
  }
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}
h3 {
  padding-bottom: 3px;
  padding-left: 10px;
  margin-top: 50px;
  margin-bottom: 20px;
  color: #036EB7;
  border-bottom: solid 1px #036EB7;
  border-left: solid 6px #036EB7;
  font-family: "kozuka-mincho-pr6n";
  font-weight: 700;
  font-style: normal;
}
.btn-danger {
  color: #fff;
}
.btn-outline-danger:hover,
.btn-outline-danger:active {
  color: #fff;
}
.btn-outline-light:hover {
  color: #036EB7;
}
.badge-danger {
  color: #fff;
}
.cp_list {
  position: relative;
  padding: 0.5em;
  border: solid 2px #036EB7;
  list-style-type: none;
}
.cp_list li {
  padding: 0.5em 0 0.5em 1.6em;
  line-height: 1.5;
  border-bottom: 1px dashed #036EB7;
}
.cp_list li::before {
  position: absolute;
  content: "\002713";
  color: #036EB7;
  font-weight: bold;
  left: 0.8em;
}
.cp_list li:last-of-type {
  border-bottom: none;
}
table.shinryo th,
table.shinryo td {
  text-align: center;
  vertical-align: middle;
  height: 60px;
}
table.shinryo td {
  width: 10%;
}
table.shinryo th {
  color: #036EB7;
}
.calendar-legend {
  display: flex;
  gap: 20px;
  padding: 16px 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
  flex-wrap: wrap;
}
.calendar-legend .legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.calendar-legend .legend-color {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: inline-block;
}
.calendar-legend .legend-color.legend-closed {
  background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
}
.calendar-legend .legend-color.legend-changed {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}
.calendar-legend .legend-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: #495057;
}
.calendar-legend {
  display: flex;
  gap: 20px;
  padding: 16px 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
  flex-wrap: wrap;
}
.calendar-legend .legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.calendar-legend .legend-color {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: inline-block;
}
.calendar-legend .legend-color.legend-closed {
  background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
}
.calendar-legend .legend-color.legend-changed {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}
.calendar-legend .legend-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: #495057;
}
.calendar-container {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 24px;
  margin-bottom: 30px;
}
.calendar-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #E4F3F9;
}
.calendar-header .calendar-title {
  font-size: 2rem;
  font-weight: 600;
  color: #036EB7;
  margin: 0;
  letter-spacing: 0.05em;
}
.calendar-header .calendar-title .calendar-month-label {
  font-size: 1.2rem;
  font-weight: 400;
  margin-left: 4px;
}
table.calendar {
  width: 100%;
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
  border: none;
}
table.calendar thead th {
  color: #495057;
  background: linear-gradient(to bottom, #f8f9fa, #f0f1f3);
  text-align: center;
  padding: 12px 8px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  border-bottom: 2px solid #E4F3F9;
  letter-spacing: 0.05em;
}
table.calendar thead th.sunday {
  color: #e53935;
}
table.calendar thead th.saturday {
  color: #036EB7;
}
table.calendar thead th:first-child {
  border-top-left-radius: 8px;
}
table.calendar thead th:last-child {
  border-top-right-radius: 8px;
}
table.calendar tbody td {
  text-align: center;
  padding: 0;
  height: 60px;
  border: 1px solid #e9ecef;
  background: #fff;
  position: relative;
  transition: all 0.2s ease;
}
table.calendar tbody td:hover {
  background: #f8f9fa;
  transform: scale(1.02);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 10;
}
table.calendar tbody td .calendar-day {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 1rem;
  font-weight: 500;
  color: #212529;
}
table.calendar tbody td.sunday-cell .calendar-day {
  color: #e53935;
}
table.calendar tbody td.saturday-cell .calendar-day {
  color: #036EB7;
}
table.calendar tbody td.othermonth {
  background: #fafafa;
}
table.calendar tbody td.othermonth .calendar-day {
  color: #adb5bd;
  font-weight: 400;
}
table.calendar tbody td.othermonth:hover {
  background: #f5f5f5;
  transform: none;
  box-shadow: none;
}
table.calendar tbody td.other {
  background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
}
table.calendar tbody td.other .calendar-day {
  color: #e51373;
  font-weight: 700;
}
table.calendar tbody td.selected {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}
table.calendar tbody td.selected .calendar-day {
  color: #8CC63F;
  font-weight: 700;
}
table.calendar tbody tr:last-child td:first-child {
  border-bottom-left-radius: 8px;
}
table.calendar tbody tr:last-child td:last-child {
  border-bottom-right-radius: 8px;
}
.calendar-events {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
}
.calendar-events .events-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #036EB7;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}
.calendar-events .events-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: #036EB7;
  margin-right: 10px;
  border-radius: 2px;
}
.calendar-events .calendar-event {
  padding: 12px 16px;
  margin-bottom: 10px;
  background: #f8f9fa;
  border-left: 3px solid #E4F3F9;
  border-radius: 4px;
  transition: all 0.2s ease;
}
.calendar-events .calendar-event:hover {
  background: #E4F3F9;
  border-left-color: #036EB7;
  transform: translateX(4px);
}
.calendar-events .calendar-event .event-date {
  color: #036EB7;
  font-weight: 600;
  margin-right: 12px;
  white-space: nowrap;
}
.calendar-events .calendar-event .event-description {
  color: #495057;
  line-height: 1.6;
}
@media (max-width: 768px) {
  .calendar-container {
    padding: 16px;
  }
  .calendar-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .calendar-header .calendar-title {
    font-size: 1.6rem;
  }
  table.calendar tbody td {
    height: 45px;
    font-size: 0.9rem;
  }
  table.calendar tbody td:hover {
    transform: none;
  }
  table.calendar thead th {
    padding: 10px 4px;
    font-size: 0.85rem;
  }
  .calendar-events .calendar-event {
    padding: 10px 12px;
    font-size: 0.9rem;
  }
}
footer {
  color: #fff;
  padding: 30px 0;
}
@media (max-width: 768px) {
  footer {
    padding-bottom: 120px !important;
  }
}
footer a {
  color: #fff;
  padding: 3px 0;
}
footer a:hover {
  color: #ddd;
  text-decoration: none;
}
#map {
  height: 500px;
  margin-bottom: 20px;
}
#page_top {
  width: 50px;
  height: 50px;
  position: fixed;
  right: 15px;
  bottom: 10px;
  background: #006699;
  opacity: 0.6;
  border-radius: 50%;
}
@media (max-width: 768px) {
  #page_top {
    bottom: 120px;
  }
}
#page_top a {
  position: relative;
  display: block;
  width: 50px;
  height: 50px;
  text-decoration: none;
}
#page_top a::before {
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  content: '\f106';
  font-size: 25px;
  color: #fff;
  position: absolute;
  width: 25px;
  height: 25px;
  top: -15px;
  bottom: 0;
  right: 0;
  left: 0;
  margin: auto;
  text-align: center;
}
