@charset "utf-8";

html {
  font-size: 62.5%;
}
:root {
  --bg-gray: #fafafa;
  --button-gray: #f1f1f1;
}

body {
  font-size: 1.4rem;
  line-height: 1.6;
  color: #333;
  font-family: "游ゴシック Medium", "游ゴシック体", "Hiragino Kaku Gothic ProN", "Hiragino Kaku Gothic Pro", メイリオ, Meiryo, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
select,
label {
  cursor: pointer;
}

::selection {
  background: #111;
  color: #fff;
}

.font-uppercase {
  text-transform: uppercase;
}

.font-en {
  font-family: 'Work Sans', "游ゴシック Medium", "游ゴシック体", "Hiragino Kaku Gothic ProN", "Hiragino Kaku Gothic Pro", メイリオ, Meiryo, sans-serif;
  font-weight: 300;
}

.font-bold {
  font-weight: 500;
}

.link-underline {
  text-decoration: underline;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
}

/*-------------------- list --------------------*/
.header {
  padding: 2rem;
}

.title {
  font-size: 2rem;
}

.prop-head {
  font-size: 3rem;
  letter-spacing: 0.05em;
}

.main {
  padding: 5rem 0 10rem;
}

.search-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 5rem;
}

.search-text,
.search-select {
  width: 100%;
  height: calc(1.6em + 2rem);
  border: solid 1px #333;
  padding: 1rem;
}

.search-button {
  border: none;
  background: #111;
  color: #fff;
  padding: 1rem 2rem;
  width: max-content;
  align-self: center;
  transition: background 0.3s, color 0.3s;
}

.prop-empty-text {
  margin-top: 5rem;
  text-align: center;
}

.prop-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5rem 3rem;
  margin-top: 5rem;
}

.prop-list-img-wrapper {
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.prop-list-img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.prop-list-category {
  display: inline-block;
  font-size: 1.4rem;
  background: var(--button-gray);
  padding: 0.3rem 0.5rem;
  margin-top: 0.5rem;
}

.pagination {
  margin-top: 5rem;
}

.pagination ul {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.pagination li a,
.pagination li span {
  width: 4rem;
  height: 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pagination li a {
  background: var(--button-gray);
  transition: background 0.3s, color 0.3s;
}

.pagination li[aria-current='page'] span {
  background: none;
  box-shadow: 0 0 0 2px var(--button-gray) inset;
}

.pagination li span[aria-hidden='true'] {
  color: #e1e1e1;
}

.pagination li a[rel='prev']::before,
.pagination li a[rel='next']::before {
  content: '';
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  border-top: solid 1px;
}

.pagination li a[rel='prev']::before {
  border-left: solid 1px;
  transform: rotate(-45deg);
  margin-left: 0.4rem;
}

.pagination li a[rel='next']::before {
  border-right: solid 1px;
  transform: rotate(45deg);
  margin-right: 0.4rem;
}

.button {
  display: block;
  margin: 5rem auto 0;
  padding: 2rem 0 2rem 2rem;
  max-width: 40rem;
  font-size: 1.4rem;
  text-align: center;
  font-weight: bold;
  background: #111;
  color: #fff;
  transition: color .3s, background .3s;
  position: relative;
}

.button::before {
  content: "";
  width: 2rem;
  height: 2rem;
  background-image: url('data:image/svg+xml;utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23fff" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="feather feather-mail"><path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path><polyline points="22,6 12,13 2,6"></polyline></svg>');
  background-size: cover;
  transition: background .3s;
  position: absolute;
  left: 1.6rem;
  top: 50%;
  transform: translateY(-50%);
}

.prop-contact-text {
  text-align: center;
  margin-top: 2rem;
}

/*-------------------- detail --------------------*/
body:has(main .detail-container) {
  background: var(--bg-gray);
}

main:has(.detail-container) {
  padding: 10rem 1rem;
}

.detail-container {
  max-width: 1000px;
  padding: 5rem 2rem;
  background: #fff;
  position: relative;
}

.detail-close {
  width: 5rem;
  height: 5rem;
  position: fixed;
  right: 1rem;
  top: 3rem;
}

.detail-close::before,
.detail-close::after {
  content: '';
  width: 5rem;
  height: 1px;
  background: #333;
  position: absolute;
  left: 0;
  top: 50%;
  transform: rotate(45deg);
}

.detail-close::after {
  transform: rotate(-45deg);
}

.detail-title {
  font-size: 2rem;
}

.detail-img {
  margin: 1rem auto 0;
}

.detail-img-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.detail-img-nav-button {
  position: absolute;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
}

.detail-img-nav-item:has(.detail-img-nav-button:checked) {
  box-shadow: 0 0 0 2px #333;
}

.detail-img-nav-img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.detail-info {
  margin-top: 5rem;
  width: 100%;
}

.detail-info tr:nth-child(even) {
  background: #f1f1f1;
}

.detail-info th,
.detail-info td {
  text-align: left;
  padding: 1rem;
}

.detail-info th {
  width: 40%;
  font-weight: 700;
}

/*-------------------- form completed --------------------*/
.main:has(.completed-text) {
  padding-top: 12rem;
}

.completed-text {
  margin-top: 1em;
  font-size: 1.6rem;
}

.completed-text:first-of-type {
  margin-top: 5rem;
}

.completed-button {
  display: block;
  max-width: 195px;
  background: #f1f1f1;
  padding: 1rem 0;
  text-align: center;
  font-weight: bold;
  transition: color 0.3s, background 0.3s;
  position: relative;
  letter-spacing: .05em;
  margin-top: 2rem;
}

.completed-button::after {
  content: '';
  width: 0.8rem;
  height: 0.8rem;
  border-top: solid 1px;
  border-right: solid 1px;
  transform: rotate(45deg) translateY(-50%);
  transform-origin: top;
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transition: border 0.3s;
}

@media only screen and (min-width: 768px) {
  body {
    font-size: 1.6rem;
  }

  .sp-only {
    display: none;
  }

  .header {
    padding: 2.6rem 4rem;
  }

  .title {
    font-size: 3rem;
  }

  .prop-head {
    font-size: 6rem;
  }

  .search-form {
    flex-direction: unset;
    justify-content: center;
    align-items: end;
  }

  .search-text {
    min-width: 300px;
  }

  .search-button {
    align-self: unset;
  }

  .prop-list {
    grid-template-columns: repeat(4, 1fr);
  }

  .button {
    padding-left: 0;
    font-size: 1.8rem;
  }

  .button::before {
    width: 2.6rem;
    height: 2.6rem;
    left: 2rem;
  }

  /*detail*/
  .detail-container {
    padding-inline: 5rem;
  }

  .detail-close {
    width: 8rem;
    height: 8rem;
    right: 3rem;
    top: 5rem;
  }

  .detail-close::before,
  .detail-close::after {
    width: 8rem;
  }

  .detail-title {
    font-size: 4rem;
  }

  .detail-img-nav {
    grid-template-columns: repeat(5, 1fr);
  }

  .detail-info th {
    width: 20%;
  }

  .main:has(.completed-text) {
    padding-top: 15rem;
  }

  .completed-text {
    font-size: 1.8rem;
  }

  .completed-button {
    max-width: 250px;
  }
}

@media (any-hover: hover) {
  .link-underline:hover {
    text-decoration: unset;
  }

  .search-button:hover {
    background: #e1e1e1;
    color: #333;
  }
  .prop-list-img {
    transition: transform 0.3s;
  }

  .prop-list-link:hover .prop-list-img {
    transform: scale(1.08);
  }

  .pagination li a:hover {
    background: #333;
    color: #fff;
  }

  .button:hover {
    background: #e1e1e1;
    color: #333;
  }

  .button:hover::before {
    background-image: url('data:image/svg+xml;utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23333" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="feather feather-mail"><path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path><polyline points="22,6 12,13 2,6"></polyline></svg>');
  }

  .completed-button:hover {
    background: #111;
    color: #fff;
  }
}

