.tabList {
  border-bottom: 1px solid #e0e0e0;
  margin-top: -10px;
}

.tabList [role='tablist'] {
  display: flex;
  justify-content: center;
}

.tabList [role='tab'] {
  width: 50%;
  padding: 10px 5px 6px;
  border: 0;
  border-bottom: 4px solid transparent;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background: none;
  cursor: pointer;
  font-weight: 600;
}

.tabList [aria-selected='true'] {
  border-color: #c00;
  color: #c00;
}

.tabPanel {
  padding-top: 20px;
}

.index {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: -4px -12px;
}

.index li {
  margin: 4px 12px;
}

.index a {
  color: #c00;
}

.table {
  width: 100%;
  border-spacing: 0;
}

.table a {
  color: #c00;
  font-weight: 600;
}

.table b {
  font-style: normal;
}

.table2 {
  width: 100%;
  border-top: 1px solid #ccc;
  border-spacing: 0;
}

.table2 th,
.table2 td {
  padding: 8px 8px 8px 0;
  border-bottom: 1px solid #ccc;
  text-align: left;
}

.table2 th {
  white-space: nowrap;
}

html[data-states~='en'] .table2 th {
  white-space: normal;
}

.table2 a {
  color: #c00;
}

.container {
  padding: 0 17px;
}

.searchControl_result b {
  margin: 0 3px;
  color: #c00;
}

.maps_el {
  text-align: center;
}

.maps_el figure,
.maps_el img {
  width: 100%;
  margin: 0;
}

.maps_el figcaption {
  margin: 15px 0 10px;
  font-weight: 600;
}

.contact {
  text-align: center;
}

.gallery_list {
  display: flex;
  flex-wrap: wrap;
  margin: -3px;
}

.gallery_item {
  position: relative;
  width: calc(33.333333333% - 6px);
  height: 0;
  padding-bottom: calc(33.333333333% - 6px);
  margin: 3px;
}

.gallery_btn {
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 0;
  border-width: 0;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background: none;
  cursor: pointer;
}

html[data-states~='no-touch'] .gallery_btn:hover .g-i {
  opacity: 1;
}

.gallery_btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery_btn .g-i {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  display: flex;
  width: auto;
  height: auto;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.2);
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s;
}

.gallery_btn .g-i::before {
  font-size: 3.1rem;
}

.gallery_name {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  font-size: 1.4rem;
}

.gallery_name a {
  display: block;
  padding: 15px;
  color: #fff;
  font-weight: 600;
}

html[data-states~='gallery'][data-states~='fullscreen'] .g-modal {
  padding: 0;
}

html[data-states~='gallery'][data-states~='fullscreen'] .g-modal_content {
  max-width: none;
}

html[data-states~='gallery'] .g-modal_content {
  padding: 0;
  background-color: transparent;
  box-shadow: none;
}

.categoryList {
  display: flex;
  flex-wrap: wrap;
  margin: -10px;
}

.categoryList li {
  width: calc(50% - 10px * 2);
  margin: 10px;
}

.categoryList a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #ccc;
  background-color: #fff;
}

html[data-states~='no-touch'] .categoryList a:hover {
  text-decoration: none;
}

.categoryList img {
  width: 100%;
}

.categoryList span {
  position: relative;
  display: block;
  width: 100%;
  padding: 8px;
  background-color: #fff;
  color: #c00;
  font-weight: 600;
  text-align: center;
}

.nameList {
  display: flex;
  flex-wrap: wrap;
  margin: -10px;
}

.nameList li {
  margin: 10px;
}

.nameList a {
  display: flex;
  width: 70px;
  height: 70px;
  align-items: center;
  justify-content: center;
  border: 1px solid #ccc;
  background-color: #fff;
  color: #c00;
  font-size: 1.7rem;
  font-weight: 600;
  transition: background-color 0.2s;
}

html[data-states~='no-touch'] .nameList a:hover {
  background-color: #f0f0f0;
  text-decoration: none;
}

.g-carousel-disabled[data-carousel*='koshoten'] .g-carousel_wrapper {
  justify-content: center;
}

.g-carousel-disabled[data-carousel*='koshoten'] .g-carousel_slide {
  width: 83.2%;
}

.g-carousel-disabled[data-carousel*='koshoten'] .g-carousel_pagination {
  display: none;
}

.g-carousel-disabled[data-carousel*='panorama'] .g-carousel_prev, .g-carousel-disabled[data-carousel*='panorama'] .g-carousel_next {
  display: none;
}

.g-similar-map {
  z-index: 8;
}

@media (min-width: 769px) {
  .tabList {
    margin-top: -20px;
  }
  .tabList [role='tab'] {
    padding: 20px 30px 15px;
    border-bottom-width: 5px;
    font-size: 2.2rem;
  }
  .tabPanel {
    padding-top: 30px;
  }
  .index {
    font-size: 1.8rem;
  }
  .table {
    margin-top: 65px;
    font-size: 1.4rem;
  }
  .table caption {
    margin-bottom: 10px;
    font-size: 3.2rem;
    font-weight: 600;
    text-align: left;
  }
  .table tr:first-child th,
  .table tr:first-child td {
    border-top: 1px solid #ccc;
  }
  .table th,
  .table td {
    border-bottom: 1px solid #ccc;
    text-align: left;
  }
  .table th {
    padding: 5px 5px 5px 0;
  }
  .table td {
    padding: 15px 15px 15px 0;
  }
  .table_category {
    white-space: nowrap;
  }
  .table a {
    margin-right: 1em;
    font-size: 1.6rem;
  }
  .table2 th,
  .table2 td {
    padding: 12px 12px 12px 0;
  }
  .table2 th {
    width: 16%;
    padding-right: 20px;
  }
  .container {
    padding: 0 25px;
  }
  .searchControl {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
  }
  .searchControl_result {
    font-weight: 600;
  }
  .maps {
    display: flex;
    text-align: center;
  }
  .maps_el {
    padding: 0 15px;
  }
  .maps_el:nth-child(n + 2) {
    margin-left: 60px;
  }
  .gallery_list {
    margin: -5px;
  }
  .gallery_item {
    width: calc(25% - 10px);
    padding-bottom: calc(25% - 10px);
    margin: 5px;
  }
  .gallery_btn .g-i::before {
    font-size: 4.4rem;
  }
  .categoryArea,
  .nameArea {
    margin-top: 40px;
  }
  .categoryList {
    margin: -13px;
  }
  .categoryList li {
    width: calc(25% - 13px * 2);
    margin: 13px;
  }
  .categoryList span {
    padding: 12px 15px;
    font-size: 1.6rem;
    text-align: left;
  }
  .nameList {
    margin: -13px;
  }
  .nameList li {
    margin: 13px;
  }
  .nameList a {
    width: 90px;
    height: 90px;
    font-size: 2.2rem;
  }
  .g-carousel-disabled[data-carousel*='koshoten'] .g-carousel_slide {
    width: 55.172414%;
  }
}

@media (max-width: 768px) {
  .table {
    margin-top: 38px;
  }
  .table caption {
    margin-bottom: 10px;
    font-size: 2.1rem;
    font-weight: 600;
  }
  .table table,
  .table caption,
  .table tbody,
  .table tr,
  .table th,
  .table td {
    display: block;
  }
  .table tr {
    padding: 12px 0;
    border-bottom: 1px solid #ccc;
  }
  .table tr:first-child {
    border-top: 1px solid #ccc;
  }
  .table_category p {
    display: inline-block;
    margin-right: 1em;
  }
  .table b {
    display: none;
  }
  .table span {
    display: block;
    font-size: 1.2rem;
  }
  .searchControl {
    margin-bottom: 20px;
  }
  .searchControl_category {
    margin-top: 15px;
  }
  .maps_el:nth-child(n + 2) {
    margin-top: 40px;
  }
  .gallery_name {
    display: none;
  }
}
