@charset "utf-8";

li{
  list-style: none;
}

a{
  text-decoration: none;
  color: #333;
}

.container{
  max-width: 960px;
  margin: 0 auto;
}

h2{
  margin: 0;
}
.text-title{
  text-align: center;
  font-size: 1.5em;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.button{
  border-radius: 10px;
  border: none;
  color: #fff;
  font-size:18px;
  padding: 18px 40px;
  cursor: pointer;
}
img{
  max-width: 100%;
}

/*---header---*/
header{
  display: flex;
  justify-content: space-between;
  align-items:center;
  padding: 0 40px; 
  height: 80px;
}
.logo{
  max-height: 40px;
}
header a{
  display: block;
}
header nav{
  display: block;
}
header li{
  display: inline-block;
  margin-left: 20px;
}

header li a:hover{
  text-decoration: underline;
  text-decoration-thickness: 1px; 
  text-underline-offset: 6px;
  text-decoration-color:#3C9CDC;
  color:#3C9CDC;
}

.c-menu-open-button{
  display: none;
  width: 38px;
}
.sp-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 70vw;
  height: 100vh;
  background-color: rgba(60, 156, 220, 0.95);
  z-index: 999;

  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.sp-menu nav ul{
  margin-top: 100px;
}
.sp-menu nav li{
  margin-top: 40px;
}
.sp-menu nav li a{
  color: #fff;
}

/* 表示状態 */
.sp-menu.active {
  transform: translateX(0);
}
  /* メニュー開いてる時は背景スクロール禁止 */
  .is-menu-open {
    overflow: hidden;
}

/* overlay */
.c-menu-overlay {
  display: none;
}

.c-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10;
}

.is-menu-open .c-menu-overlay {
  display: block;
}

@media(max-width:500px){
  .pc-nav{
    display: none;
  }
  .c-menu-open-button{
    display: block;
    z-index: 1000; 
    border: none;
    background-color: transparent;
  }
  .c-menu-close-button{
    position: absolute;
    top:30px;
    right: 40px;
  }


}


/*---top---*/
.top-flex{
  position: relative;
  min-height: 90vh;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  color: #fff;

  background-image: url(../img/top.jpg);
  background-repeat:no-repeat;
  background-size: cover;
}
.top-flex::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}
.top-flex h2{
  font-size: 48px;
}
.top-flex p{
  font-size: 24px;
}
.top-flex h2,
.top-flex p {
  position: relative;
  z-index: 1;
}
@media(max-width:500px){
  .top-flex h2{
  font-size: 32px;
}
.top-flex p{
  font-size: 18px;
  margin-top: 20px;
}
}

/*---search---*/
.search{
  text-align: center;
  margin: 60px 0;
}
.search .container{
  padding: 0 20px;
}

.search h2{
  margin-bottom: 28px;
}

.search input[type="search"]{
  width: 80%;
  max-width: 600px;
  margin-bottom: 20px;
  padding: 18px 20px;
  border-radius: 5px;
  border: #aaa 1px solid;
}

.search button{
  background-color: #E45653;
  margin-left: 28px;
}

.search button:hover{
  background-color: #fb6260;
}

@media(max-width:778px){
.search input[type="search"]{
  width: 100%;
  max-width: 100%;
}
.search button{
  margin-left: 0px;
  width: 100%;
}
}


/*詳細検索*/
button.detail-button{
  display: block;
  margin: 0 auto;
  background-color:transparent;
  color:#333;
}
button.detail-button:hover{
  background-color: transparent;
}
#details{
  max-height:0; 
  overflow:hidden;
  transition: max-height ease-in-out 0.5s;
}

.rent-flex{
  display: flex;
  justify-content: center;
}
.option{
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1em;
}

.option-title{
  margin-top: 2rem;
}

#lower-rent,#higher-rent{
  padding: 5px;
  margin: 0 10px;
}

/*---property-list---*/
.property-list h2{
  text-align: center;
}
.property-list .container{
  max-width: 1080px;
  padding: 0 20px;
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}
.property-list h2{
  margin-bottom: 30px;
}

.property-card{
  padding: 10px 10px;
}
.property-card h3{
  margin: 20px 0 20px;
}
.property-list article p {
  margin: 0;
}

.property-image{
  width: 100%;
  height: 200px;
  border-radius:5px;
  transition: opacity 0.2s ease-in-out; 
}
.image-position{
  position: relative;
  object-fit: cover;
}

.heart-icon {
  position: absolute;
  bottom:10px;
  right:15px;
  width: 30px;
  height: 26px;
  fill: transparent;
  stroke: #aaa;
  stroke-width: 20;
  stroke-linejoin: round;
  stroke-linecap: round;
  transition: fill 0.2s ease;
}


.heart.on .heart-icon {
  fill: red;
  stroke: red;

}

.property-image:hover{
  opacity: 0.8;
}

@media (max-width: 500px) {
  .property-list .container {
    grid-template-columns: 1fr;
  }

.property-card h3{
  font-size: 1rem;
}
.property-card p{
  font-size: 0.9rem;
}
}

/*---footer---*/
footer{
  background-color: #333;
  padding: 60px 40px;
}

footer nav{
  text-align: right;
}
footer nav li{
  margin-bottom:20px ;
}
footer a{
  color: #fff;
}

/*-----下層ページ共通------*/
.subpage-flex{
  display: flex;
  justify-content: space-between; 
  margin-top: 60px;
  margin-bottom: 100px;
}
aside{
  width: 30%;
}
.subpage-flex .property-list{
  width: 65%;
}
aside #details{
  max-height:100%; 
}
aside.search{
  margin-top: 0;
}
aside.search .button{
  margin-top:40px;
  margin-left: 0;
}

.propertycard-flex{
  display: flex;
}

.propertycard-flex .image-position{
  width: 50%;
}
.property-text{
  margin-left:20px;
}

@media(max-width:600px){
.subpage-flex{
  flex-direction:column-reverse;
  padding: 0 20px;
}
aside{
  width: 100%;
}
.subpage-flex .property-list{
  width: 100%;
}
.propertycard-flex{
  flex-direction: column;
}
.propertycard-flex .image-position{
  width: 100%;
}
.property-text {
  margin-left: 0px;
}
.subpage-flex .property-card{
  margin-bottom: 30px;
}
  
}
/*----------物件一覧ページ-------------*/

@media(max-width:600px){
.subpage-flex{
  flex-direction:column-reverse;
  padding: 0 20px;
}
aside{
  width: 100%;
}
.subpage-flex .property-list{
  width: 100%;
}
  
}
/*-----------company----------*/
.company{
  margin-top: 100px;
}
.company.container{
  padding: 0 20px;
}
.company .text-title{
  margin-bottom: 40px;
}
.company-lists{
  margin-bottom: 60px;
}
.company-list{
  display: flex;
  align-items: center;
}
.company-list dt{
  width: 25%;
  font-size: 20px;
  font-weight: 500;
  margin: 10px 20px;
}
.company-list dd{
  width: 75%;
}
.map{
  margin-bottom: 100px;
}
.map-detail{
  margin-bottom: 30px;
  font-style:normal;
}

.map iframe{
  height: 450px;
  width: 100%;
}

/*---------contactお問い合わせページ---------*/
.form{
  margin: 80px auto 100px;
  padding: 0 20px;
}
input::placeholder{
  color: #555;
  opacity: 0.5;
  font-weight: 300;
}
.form .text-title{
  text-align: left;
  margin-bottom: 60px;
}
.form-item{
  margin-bottom: 10px;
}
.form-item input,
.other-textarea textarea{
  border: 1px #aaa solid ;
  border-radius: 5px;
}
.form-item input:focus,
.other-textarea textarea:focus{
  outline: none;
  border: 1px #3C9CDC solid ;
  box-shadow:0 0 6px rgba(60, 161, 220,0.5);
}

.form-require label,.form-require input{
  display: block;
}

.form-require label{
  margin-bottom: 10px;
}
.form-require input{
  margin-bottom: 24px;
  width: 60%;
  padding: 5px 10px;
}

.form-require label::after{
  display: inline-block;
  font-size: 10px;
  content: "必須";
  margin-left: 5px;
  padding: 3px 5px;
  border-radius: 5px;
  color: #fff;
  background-color: #E45653;
}

.inquiry{
  margin-top: 40px;
  margin-bottom:40px;
  border: 0;
  padding: 0;
}
.inquiry legend{
  font-weight: 600;
  margin-bottom: 20px;
}
.others{
  min-height: 120px; /* 最低限の高さだけ確保 */
}

.submit-button{
 background-color: #E45653;

}
.submit-button:hover{
 background-color: #fb6260;
}

#otherArea{
  display: none;
  margin-top: 8px;
}

.other-textarea textarea{
  width: 80%;
  height: 100px;
  padding: 8px 10px;
}

@media(max-width:600px){
.form-require label,.form-require input{
  width: 100%;
}
.form-require label{
  margin-bottom:15px;
}
.other-textarea textarea{
  width: 100%;
}
}
/*------送信完了画面-----*/
.thanks .container{
  text-align: center;
  margin: 0 auto;
  padding: 0 20px;
}
.thanks img{
  width: 70%;
}
.thanks p{
  font-size: 24px;
}
.thanks .button{
  display: block;
  background-color: #E45653;
  margin:0 auto 100px;
  width: 300px;
}
.thanks .button:hover{
  background-color: #fb6260;
}
@media(max-width:600px){
.thanks p{
  font-size: 16px;
}
.thanks .button{
  margin-bottom: 60px;
  padding: 10px 20px;
  width: 100%;
}

}

/*---------物件詳細---------*/
.property-detail{
  display: flex;
  justify-content: space-between;
  margin-top:100px;
  margin-bottom: 80px;
  padding: 0 20px;
}
.main-property{
  width: 65%;
}
.side-contact{
  width: 30%;
}
.price{
  color:#f14341;
}
.price span{
  font-size:24px;
}
.fee::before{
  content: "/";
  padding: 0 4px;
}
.property-sub{
  margin-top: 10px;
}
.property-gallery{
  margin-top: 20px;
  
}
.property-gallery figure{
  width: 100%;
  height: 400px;
  object-fit:cover;
  margin: 0;
  position: relative;
}
.property-gallery figure img{
  width: 100%;
  height: 100%;
}
.property-gallery ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px; 
  padding: 0;
}
.gallery-thumbs li{
  aspect-ratio: 4 / 3; /* 正方形なら 1 / 1 */
  overflow: hidden;
}
.gallery-thumbs img{
  width: 100%;
  height: 100%;
  object-fit:cover;
}
.prev{
  position:absolute;
  top:50%;
  left: 0;
}
.next{
  position:absolute;
  top:50%;
  right: 0;
}
.prev,
.next{
  transform: translateY(-50%);
}
.arrow{
  background-color:rgba(150, 150, 150, 0.5);
  border: 0;
  padding: 10px 5px;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
}
.arrow:hover{
  background-color: rgba(60, 156, 220, 0.7);
}
@media(max-width:600px){
  .property-detail{
    flex-direction: column;
}
  .main-property,.side-contact{
    width: 100%;
  }
.property-gallery figure{
  height: 200px;
}
}
/*物件詳細お問い合わせ*/
.property-contact{
  position: sticky;
  top:18px;
}
.property-contact h2{
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.property-contact fieldset{
  border: none;
  padding: 0;
  margin-bottom: 20px;
}
.property-contact legend{
  margin-bottom: 18px;
}

.property-contact .contact-item{
  margin-bottom: 10px;
}

.property-contact .button{
  width: 100%;
}
@media(max-width:600px){
  .property-contact{
  position: static;
}
}
/*基本情報*/
.property-basicinfo{
  margin-top: 60px;
}
.info-item{
  display: grid;
  grid-template-columns:max-content 1fr;
  grid-auto-rows: minmax(48px, auto);
  border-left: 1px solid #c9c7c7;
  border-right: 1px solid #c9c7c7;
  border-bottom: 1px solid #c9c7c7;
}
.info-item dt,.info-item dd{
  border-top: 1px solid #c9c7c7;
}
.info-item dt{
  border-right: 1px solid #c9c7c7;
  background-color: #d5d4d4;
  padding: 16px 24px;
}
.info-item dd{
  padding: 16px 24px;
  margin: 0;
}

/*設備・条件*/
.property-facilities{
  margin-top: 60px;
}
.facility-list{
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  padding-inline-start: 0px;
}

/*周辺情報*/
.property-around{
  margin-top: 60px;
}
.around-list{
  padding-inline-start: 0;
}

.around-list li{
  margin-bottom: 0.5rem;
}

/*所在地*/
.property-map h2{
  margin-bottom: 1rem;
}
.property-map address{
  font-style:normal;
  margin-bottom: 18px;
}
.property-map{
  margin-top: 60px;
  margin-bottom: 100px;
}
.property-map iframe{
  height: 350px;
  width: 100%;
}
@media(max-width:600px){
 .property-map{
  margin-bottom: 60px;
}
}