header {
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  background-color: rgb(243, 243, 243);
}

.kanbanbox {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
}

.kanban {
  display: block;
  width: 750px;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

.banner-wrapper {
  position: relative;
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  touch-action: pan-y;
}

.banner-slider {
  overflow: hidden;
  border: 3px solid #000000;
  height: auto;
}

.slide-track {
  display: flex;
  transition: transform 0.5s ease;
  width: auto;
}

.slide-track img {
  width: 750px;
  height: auto;
  flex-shrink: 0;
  display: block;
}

button.prev,
button.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgb(218, 218, 218);
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
}

button.prev {
  left: 0;
  transform: translateX(-100%) translateY(-50%);
}

button.next {
  right: 0;
  transform: translateX(100%) translateY(-50%);
}

.open-day-wrapper {
  width: 750px;
  margin: 50px auto 0 auto;
  text-align: left;
}

.open-day-wrapper .open-time p {
  margin: 0;
  font-size: 22px;
  line-height: 1.8;
  text-align: center;
  font-weight: 600;
}

.open-wrapper {
  width: 750px;
  margin: 50px auto 0 auto;
  text-align: left;
}

.open-time p {
  margin: 0;
  font-size: 18px;
  line-height: 1.8;
}

.open-title p {
  display: inline-block;
  position: relative;
  padding: 10px 20px;
  font-size: 32px;
  font-weight: bold;
  margin: 0;
}

.open-title p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 10px;
  height: 100%;
  background-color: #f5deb3;
}

.title-wrapper {
  width: 750px;
  margin: 50px auto 50px auto;
  text-align: left;
}

.card-title {
  width: 100%;
  margin: 0;
}

.card-title p {
  display: inline-block;
  position: relative;
  padding: 10px 20px;
  font-size: 32px;
  font-weight: bold;
  margin: 0;
}

.card-title p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 10px;
  height: 100%;
  background-color: #f5deb3;
}

.title-images {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.logo-bg {
  background-color: #eeeeee;
  padding: 10px;
  display: inline-block;
}

.logo-bg img {
  display: block;
  width: 300px;
  height: auto;
}

.access-wrapper {
  width: 750px;
  margin: 50px auto 100px auto;
  text-align: left;
}

.section-title {
  width: 100%;
  margin: 0;
  text-align: left;
}

.section-title p {
  display: inline-block;
  position: relative;
  padding: 10px 20px;
  font-size: 32px;
  font-weight: bold;
  margin: 0;
  border: none;
}

.section-title p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 10px;
  height: 100%;
  background-color: #f5deb3;
}

.access-content {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 20px;
}

.map-wrapper {
  width: 400px;
  height: 300px;
  margin: 0;
  border: 3px solid #ccc;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.moyori {
  flex: 1;
  font-size: 16px;
  color: #333;
  margin-top: auto;
  margin-bottom: auto;
}

.moyori h3 {
  margin: 0 0 5px 0;
  font-size: 20px;
}

.moyori p {
  margin: 0 0 10px 0;
}

.moyori hr {
  margin: 30px 0;
  border: none;
  border-top: 1px solid #000000;
  opacity: 0.7;
}

.footer {
  background-color: #333;
  color: white;
  padding: 60px 0;
  margin-top: 20px;
}

.footer-inner {
  width: 750px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 40px;
}

.footer-text p {
  margin: 0;
  font-size: 22px;
}

.footer-images img {
  height: 80px;
  width: auto;
}

.footer-icons a {
  color: white;
  font-size: 50px;
  text-decoration: none;
}

.footer-icons-text {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
}

.footer-icons a:hover {
  opacity: 0.7;
}

/* 各PHPページの本文エリア */
.page-main {
  width: 100%;
  margin-top: 30px;
}

.page-main-inner {
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
  display: block;
}

@media screen and (max-width: 768px) {
  .back {
    display: none;
  }

  .kanbanbox {
    height: auto;
  }

  .kanban {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    height: auto;
    border: none;
  }

  .banner-wrapper {
    width: 100%;
    margin: 3px auto;
    overflow: hidden;
    touch-action: pan-y;
  }

  .banner-slider {
    overflow: hidden;
    border: 3px solid #000000;
    height: auto;
    box-sizing: border-box;
  }

  .slide-track {
    display: flex;
    transition: transform 0.5s ease;
    width: fit-content;
  }

  .slide-track a {
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .slide-track img {
    width: 100%;
    height: auto;
    flex-shrink: 0;
    display: block;
  }

  button.prev,
  button.next {
    display: none;
  }

  .open-day-wrapper {
    width: 90%;
    margin: 30px auto 0 auto;
  }

  .open-day-wrapper .open-time p {
    font-size: 20px;
    text-align: left;
    padding-left: 1em;
  }

  .open-wrapper {
    width: 90%;
    margin: 30px auto 0 auto;
  }

  .card-title {
    width: 90%;
  }

  .title-wrapper {
    width: 90%;
    margin: 10px auto 0 auto;
  }

  .card-title p {
    padding: 10px 20px;
    font-size: 28px;
  }

  .title-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
  }

  .logo-bg {
    flex: 0 1 calc(50% - 5px);
    box-sizing: border-box;
  }

  .logo-bg img {
    width: 100%;
    height: auto;
    display: block;
  }

  .access-wrapper {
    width: 90%;
    margin: 30px auto;
  }

  .section-title p {
    padding: 10px 20px;
  }

  .access-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .map-wrapper {
    width: 100%;
    height: auto;
    overflow: hidden;
  }

  .map-wrapper iframe {
    width: 100%;
    height: 300px;
    display: block;
  }

  .moyori {
    width: 100%;
    text-align: center;
    margin-top: 0;
  }

  .footer-inner {
    width: 90%;
    flex-direction: column;
    align-items: center;
  }

  .footer-images img {
    width: 100%;
    height: auto;
  }

  .footer-icons-text {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    gap: 10px;
  }

  .footer-icons-text .footer-icons a {
    font-size: 50px;
    margin: 0;
  }

  .footer-text p {
    margin: 0 0 0 20px;
    font-size: 18px;
  }

  .footer-text {
    text-align: left;
  }

  .page-main-inner {
    max-width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }
}

.page-main {
  padding-left: 0 !important;
}

.page-main-inner {
  margin-left: auto !important;
  margin-right: auto !important;
}