@charset "shift_jis";

.wrapper {
  box-sizing: border-box;
}

.mainContent {
  width: 950px;
  margin: 0 auto 70px;
}

.heading {
  margin-top: 10px;
  font-size: 24px;
  font-weight: bold;
  color: #3b1800;
}

.searchPrefecture {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
  margin-top: 24px;
  background-color: #f7f5f2;
}

.searchPrefecture__selection {
  position: relative;
}

.openDropdownButton {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 320px;
  padding: 8px;
  font-size: 16px;
  cursor: pointer;
  background-color: #fff;
  border: 1px solid #bcb6b3;
  border-radius: 4px;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 700;
  display: none;
  width: 100vw;
  height: 100vh;
  background-color: transparent;
}

.dropdown {
  position: absolute;
  z-index: 700;
  width: 100%;
  height: 500px;
  padding: 0;
  background-color: #fff;
  border: 1px solid #bcb6b3;
  border-radius: 8px;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.5);
}

.dropdown[open] {
  display: flex;
  flex-direction: column;
}

.is-open {
  display: block;
}

.dropdown__list {
  overflow-y: scroll;
  border-radius: 8px 8px 0 0;
}

.dropdown__item {
  color: #3b1800;
}

.dropdown__item:not(:last-child) {
  border-bottom: 1px solid #e0dbd7;
}

.prefectureItem {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 8px 28px;
  cursor: pointer;
  background-color: transparent;
  border: none;
}

.prefectureItem:hover {
  background-color: #fef5d8;
}

.prefectureItem--selected {
  padding-left: 4px;
}

.selectedIcon {
  font-size: 24px;
  color: #e77611;
}

.dropdown__footer {
  width: 100%;
  padding: 12px;
  text-align: end;
  background-color: #fff;
  border-top: 1px solid #e0dbd7;
  border-radius: 0 0 8px 8px;
}

.dropdown__closeButton {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 0;
  font-size: 12px;
  font-weight: bold;
  color: #1558ce;
  cursor: pointer;
  background-color: #fff;
  border: none;
}

.dropdown__closeButton:hover {
  color: #e77611;
}

.searchPrefecture__submit {
  width: 100px;
  height: 40px;
  cursor: pointer;
}

.result {
  margin-top: 24px;
}

.result--none {
  margin-bottom: 80px;
}

.result__note {
  font-size: 12px;
  color: #918b8a;
}

.result__note::before {
  content: '※';
}

.result__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}

.count {
  font-size: 12px;
}

.count__all {
  font-size: 18px;
  font-weight: bold;
}

.count__shown {
  margin-left: 8px;
}

.sort {
  display: flex;
}

.sort__item {
  width: 102px;
  text-align: center;
  border: 1px solid #bcb6b3;
  border-right-width: 0;
}

.sort__item:first-child {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

.sort__item:last-child {
  border-right-width: 1px;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.sort__item:has(.sortBy--selected) {
  border-color: #e77611;
  border-right-width: 1px;
}

.sort__item:has(.sortBy--selected) + .sort__item {
  border-left-width: 0;
}

.sortBy {
  display: block;
  width: 100%;
  padding: 2px 8px;
  font-size: 12px;
}

.sortBy:link,
.sortBy:visited {
  color:#3b1800;
}

.sortBy:hover {
  color: #e77611;
  background-color: #fef5d8;
}

.sort__item:first-child .sortBy {
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
}

.sort__item:last-child .sortBy {
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
}

.sortBy--selected {
  font-weight: bold;
  color: #e77611;
  pointer-events: none;
}

.result__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 16px;
}

.areaCard {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  row-gap: 0;
  width: 100%;
  border: 1px solid #bcb6b3;
}

.areaCard--closed {
  position: relative;
}

.areaCard__imageCaption {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 147px;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.6);
}

.areaCard__image {
  width: 100%;
  object-fit: cover;
}

.areaCard__text {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 8px 12px;
}

.areaCard__name {
  width: fit-content;
  font-size: 16px;
  font-weight: bold;
}

.areaCard__description {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 4px 0 12px;
  overflow: hidden;
  font-size: 12px;
  word-break: break-all;
  overflow-wrap: break-word;
  white-space: pre-line;
}

.areaCard__hotelLink {
  padding-top: 8px;
  margin-top: auto;
  font-size: 12px;
  text-align: center;
  border-top: 1px solid #e0dbd7;
}

.areaCard__hotelCount {
  font-size: 16px;
}

.pagerLink {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}

.pagerLink__list {
  display: flex;
  gap: 8px;
}

.pagerLink__list:has(.pagerLink__item--number) {
  gap: 0;
}

.pagerLink__item {
  display: block;
  font-size: 12px;
  text-align: center;
}

.pagerLink__item--control {
  min-width: 60px;
  border: 1px solid #bcb6b3;
  border-radius: 4px;
}

.pagerLink__item--number {
  min-width: 32px;
  font-size: 14px;
  border-top: 1px solid #bcb6b3;
  border-bottom: 1px solid #bcb6b3;
}

.pagerLink__item--number + .pagerLink__item--number {
  border-left: 1px solid #bcb6b3;
}

.is-current + .pagerLink__item {
  border-left: 0;
}

.pagerLink__item--number:first-child {
  border-left: 1px solid #bcb6b3;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

.pagerLink__item--number:last-child {
  border-right: 1px solid #bcb6b3;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.pagerLink__link,
.pagerLink__text {
  display: block;
  padding: 6px 8px;
  font-weight: bold;
}

/* ページ番号部分と高さを揃えるため、ページ番号部分と同じline-heightを設定 */
.pagerLink__item--control .pagerLink__link,
.pagerLink__item--control .pagerLink__text {
  line-height: 21px;
}

.pagerLink__item--control .pagerLink__text {
  color: #ccc;
}

.pagerLink__link:link,
.pagerLink__link:visited {
  color: #3b1800;
}

.pagerLink__link:hover {
  background-color: #fef5d8;
}

.pagerLink__item--control .pagerLink__link:hover {
  border-radius: 3px;
}

.pagerLink__item--number:first-child .pagerLink__link:hover {
  border-radius: 3px 0 0 3px;
}

.pagerLink__item--number:last-child .pagerLink__link:hover {
  border-radius: 0 3px 3px 0;
}

.is-current.is-current.is-current {
  color: #fff;
  background-color: #e77611;
  border-color: #e77611;
}

.searchFromArea {
  margin-top: 40px;
}

.searchFromArea__heading {
  font-size: 20px;
  font-weight: bold;
}

.searchFromArea__list {
  display: flex;
  gap: 20px;
  padding: 16px;
  margin-top: 16px;
  background-color: #f7f5f2;
}

.searchFromArea__item {
  display: flex;
  align-items: center;
}

.searchFromArea__link {
  font-weight: bold;
}

.iconAreaItem {
  font-size: 20px;
  color: #918b8a;
}