@charset 'UTF-8';

/* destyle.css リセット----------------------------------- */

h2 {
  line-height: 1.15;
}
body {
  line-height: 1.15;
}
header,
footer {
  line-height: 1.7;
}

/* 共通----------------------------------- */

html {
  scroll-behavior: smooth;
}

.contents {
  font-family: "Shippori Mincho", "Yu Mincho", serif;
  font-weight: 400;
  font-style: normal;
  color: #282828;
  font-size: 14px;
  animation: fade 2s forwards;
}
@media (min-width:768px) {
  .contents {
    font-size: 16px;
  }
}

@keyframes fade{
  0%{
    opacity: 0;
  }
  100%{
    opacity: 1;
  }
}

p{
  line-height: 1.7;
  color: #333;
}
img{
  max-width: 100%;
  height: auto;
  vertical-align: top;
}
a{
  text-decoration: none;
  color: #fff;
}
ul{
  list-style: none;
}
.wrapper{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 4%;
}

.en{
  font-family: "Marcellus SC", serif;
  font-weight: 400;
  font-style: normal;
}

/* セクションタイトル--- */
.section-title{
  font-size: 2.3em;
  text-align: center;
  position: relative;
}
.section-title::before{
  content: '';
  position: absolute;
  top: -16px; /* タイトルの上に配置 */
  left: 50%;
  width: 30px;
  height: 1px;
  background-color: #282828;
  transform: translateX(-50%);
}
.section-subtitle{
  text-align: center;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .section-title{
    font-size: 2.5em;
  }
  .section-subtitle{
    font-size: 20px;
}
}

/* ファーストビュー--------------------- */
.hero {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: stretch;
}

.hero-inner {
  display: flex;
  flex-direction: column; /* スマホ：縦並び */
  width: 100%;
  height: 100%;
}

/* 画像エリア：スマホは上半分 */
.image-area {
  position: relative;
  width: 100%;
  height: 60%;
  overflow: hidden;
}

.slideshow {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

/* テキスト画像：スマホは下半分 */
.text-area {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40%;
  padding: 1em;
  text-align: center;
  background: #fff;
}

.text-area img {
  width: 300px;
  height: auto;
}

@media (min-width: 768px) {
  .text-area img{
    width: 400px;
  }
}

@media (min-width: 900px) {
  .hero-inner {
    flex-direction: row; /* 横並び */
  }

  .image-area {
    width: 50%;
    height: 100%;
  }

  .text-area {
    width: 50%;
    height: 100%;
    justify-content: center;
    align-items: center;
  }

  .text-area img {
    max-width: 400px;
  }
}

/* お悩みエリア-------------------------- */
.worry{
  padding: 40px 4%;
  background: #F7F7F7;
}

.worry-box,
.notice-box {
  background-color: #fff;
  padding: 2em 1.5em;
  max-width: 600px;
  margin: 0 auto;
}

.worry-title {
  text-align: center;
  font-size: 1.6em;
  margin-bottom: 1.5em;
  line-height: 1.6;
  font-weight: 500;
  color: #282828;
}

.worry-list li,
.notice-list li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 1.5em;
  color: #333;
  line-height: 1.6;
}
.worry-list li:last-child,
.notice-list li:last-child  {
  margin-bottom: 0;
}

/* チェックアイコン（画像）を左に表示 */
.worry-list li::before,
.notice-list li::before {
  content: "";
  position: absolute;
  top: 0.2em;
  left: 0;
  width: 1em;
  height: 1em;
  background-image: url('/wp2024/wp-content/themes/takamatsu-house-kansai/img/mujin/check.png');
  background-size: contain;
  background-repeat: no-repeat;
}

img.arrow {
  vertical-align: bottom;
  position: relative;
  top: -3px;
}

@media (min-width: 768px) {
  .worry{
    margin-top: 100px;
    padding: 80px 4%;
  }

  .worry-title{
    font-size: 2em;
  }

  .worry-list li {
    padding-left: 2em;
  }

  .worry-box {
    padding: 2em 1.5em;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: center; /* 横方向（必要なら） */
    align-items: center;     /* 縦方向の中央揃え */
    min-height: 300px;       /* 中身が少ない時でも中央に見せる */
  }

  .worry-list li::before {
    width: 1.2em;
    height: 1.2em;
    top: 50%;
    transform: translateY(-40%);
  }

  .worry-title {
    margin-bottom: 1.25em;
  }
}

/* ３つの特徴----------------------------- */
.merit{
  background: #fff;
  padding: 24px 4% 0px;
}

@media (min-width: 768px) {
  .merit{
    padding: 80px 4% 80px;
  }
}

.merit-title {
  text-align: center;
  margin-bottom: 2em;
}

.sub-title {
  position: relative;
  display: inline-block;
  background-color: #282828;
  color: #fff;
  padding: 0.3em 1.2em;
  font-size: 1.2em;
  border-radius: 3px;
  text-align: center;
}

@media (min-width: 768px) {
  .sub-title {
    font-size: 1.3em;
  }
}

/* 下向きの三角 */
.sub-title::after {
  content: "";
  position: absolute;
  bottom: -9px; /* 三角の位置 */
  left: 50%;
  transform: translateX(-50%);
  border-width: 10px 8px 0 8px;
  border-style: solid;
  border-color: #282828 transparent transparent transparent;
  width: 0;
  height: 0;
}

.main-title {
  font-size: 1.75em;
  font-weight: 500;
  margin: 16px auto 50px;
}

@media (min-width: 768px) {
  .main-title {
    font-size: 2.5em;
  }
}

.merit-item {
    margin-bottom: 3.5em;
    position: relative;
}

.merit-item img {
    margin-bottom: 1.2em;
}

.merit-text h3{
    font-size: 1.5em;
    margin-bottom: 10px;
}

@media (min-width: 768px) {
  .merit-text h3{
    font-size: 1.5em;
    margin-bottom: 16px;
  }
  .merit-text p{
    line-height: 2;
  }
}

.merit-number {
  position: absolute;
  font-size: 3.5em;
  color: #4d4d4d;
  margin-bottom: 0.3em;
  font-weight: 700;
  line-height: 1;
  top: -30px;
  left: 6px;
}

@media (min-width: 768px) {
  .merit-item{
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .reverse{
    flex-direction: row-reverse; 
  }
  .reverse .merit-number {
    left: auto;
    right: 10px;
}
  .merit-img{
    width: 45%;
  }
  .merit-text{
    width: 50%;
  }
  .merit-number {
    left: 10px;
    font-size: 4em;
    top: -40px;
  }
}
@media (min-width: 1000px) {
  .merit-number {
    font-size: 5em;
    }
}

/* ご利用の流れ------------------------ */
.howto{
  padding: 60px 4%;
  border-top: 1px solid #ddd;
}

@media (min-width: 768px) {
  .howto{
    padding: 100px 4% 20px;
  }
}

/* スライダー */
.howto-slider {
  width: 100%;
  max-width: 500px;
  margin: auto;
}

.swiper-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px;
}

.swiper-slide img {
  width: 100%;
  max-width: 330px;
  height: auto;
  margin-bottom: 1em;
}

.step-number {
  font-size: 1.5em;
  color: #637B61;
  margin-bottom: 0.34em;
}

.step-number span{
  font-size: 0.53em;
  color: #637B61;
}

.step-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom:0.83em;
}

.step-desc {
  font-size: 1.1em;
  text-align: justify;
  max-width: 330px;
}
.small-box{
  text-align: left;
  max-width: 330px;
  margin: 0 auto;
}
.small-p{
  font-size: 10px;
}

.small-p:first-of-type{
  margin-top: 10px;
}

/* ページネーション */
.swiper-pagination{
  position: static !important; /* absoluteを解除 */
  margin-top: 10px;
}
.swiper-pagination-bullet {
  background: #ccc;         /* 通常のドットの色（薄グレー） */
  width: 8px;
  height: 8px;
  border-radius: 50%;
  opacity: 1;
}

@media (min-width: 768px) {
  .howto-slider {
    max-width: 1000px;
}
}

.swiper-pagination-bullet-active {
  background: #637B61;      /* アクティブなドットの色（グリーンに） */
}


/* 注意事項-------------------------- */
.notice{
  padding: 50px 0;
  background: #f7f7f7;
}

@media (min-width: 768px) {
  .notice{
    margin-top: 100px;
    padding: 80px 0;
  }

  .notice-list li {
    padding-left: 2.5em;
  }
  .notice-box {
    background-color: #fff;
    padding: 2em 1.5em;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: center; /* 横方向（必要なら） */
    align-items: center;     /* 縦方向の中央揃え */
    min-height: 300px;       /* 中身が少ない時でも中央に見せる */
}
  .notice-list li::before {
    width: 1.2em;
    height: 1.2em;
    top: 50%;
    transform: translateY(-40%);
  }

}

/* 体験してみた----------------------- */
.impression{
  padding: 50px 4%;
}
.imp-p{
  margin: 30px auto;
}
.btn-detail {
  display: inline-block;
  padding: 0.7em 2.0em;
  background-color: #282828;
  color: #fff;
  border-radius: 50px;
  font-size: 1.4em;
  transition: background-color 0.3s;
}
.center{
  text-align: center;
}

@media (min-width: 768px) {
  .impression{
  padding: 80px 4%;
}
.imp-box{
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.imp-box img{
  width: 50%;
}
.center{
  width: 47%;
}
}

/* 無人内見可能な物件一覧---------------- */
.property{
  background: #f7f7f7;
  padding: 50px 0 40px;
}
.property-grid {
  display: grid;
  gap: 2.5em 2em;
  grid-template-columns: 1fr; /* 初期は1列 */
}

.property-card {
  overflow: hidden;
  background: #fff;
}

.property-info {
  padding: 1em;
  text-align: left;
}

.property-name {
  font-size: 1.4em;
  padding-bottom: 0.7em;
  margin-bottom: 0.7em;
  border-bottom: 1px solid #282828;
}

.buttons {
 display: flex;
  justify-content: center;
  gap: 1em; /* ボタン同士の間隔調整 */
  margin-top: 1em;
}

.btn {
  display: inline-block;
  padding: 0.6em 1.0em;
  font-size: 1em;
  text-decoration: none;
  border-radius: 40px;
  text-align: center;
  white-space: nowrap;
  width: 145px;
  transition: all 0.3s ease;
}

.btn:hover {
  opacity: 0.8;
}

.btn.green {
  background-color: #637B61;
  color: white;
}

.btn.white {
  background-color: white;
  border: 1px solid #637B61;
  color: #637B61;
}

@media (min-width: 768px) {
  .property{
    padding: 80px 4%;
  }
  .property-info{
    font-size: 14px;
    padding: 1.5em 1em;
  }
  .buttons {
    margin-top: 1.5em;
    }
    .property-grid {
    grid-template-columns: repeat(2, 1fr); /* PC時は2列 */
  }
}

/* よくあるご質問------------------------ */
.faq {
  max-width: 600px;
  margin: auto;
  padding: 50px 4% 40px;
}

.faq-item {
  border-bottom: 1px solid #ddd;
}

.faq-question {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 1.2em 0.5em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

/* ＋／− を右端に */
.faq-question .icon {
  margin-left: auto;
  font-size: 1.2em;
  transition: transform .2s ease;
  flex-shrink: 0;
}

.faq-answer {
  height: 0;
  overflow: hidden;
  transition: height 0.4s ease;
  padding: 0 0.5em;
  line-height: 1.6;
  background: #f7f7f7;
  box-sizing: border-box;
}

/* paddingはJSで調整するのでここでは上下0に */
.faq-item.open .faq-answer {
  padding-top: 1em;
  padding-bottom: 1em;
}
.icon {
  font-size: 1.2em;
}
.qa-icon {
  display: inline-block;
  width: 30px;
  height: 30px;
  line-height: 30px;
  font-size: 16px;
  color: #fff;
  text-align: center;
  border-radius: 50%;
  margin-right: 8px;
  flex-shrink: 0;
}

.q-icon {
  background-color: #738BB8; /* 青系 */
}
.a-icon {
  background-color: #CD8B8B; /* オレンジ系 */
}
.answer-inner {
  display: flex;
  align-items: flex-start;
  gap: 0.5em;
}

.answer-inner p {
  margin: 0;
  flex: 1;
}

@media (min-width: 768px) {
  .faq {
    max-width: 800px;
    padding: 80px 4% 70px;
}
}

/* お問い合わせ----------------------- */
.contents .contact {
  padding: 50px 0 40px;
  background: #f7f7f7;
}

.contact-box ,
.contact-phone{
  max-width: 600px;
  background: #fff;
  padding: 20px;
  margin-bottom: 30px;
  text-align: center;
  margin: 30px auto 0;
}

.contact-text {
  margin-bottom: 20px;
  text-align: left;
}

.contact-button {
  display: inline-block;
  padding: 10px 40px;
  background: #5e7652;  /* 緑のボタン色 */
  color: #fff;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.contact-button:hover {
  opacity: 0.8;
}


.contact-title {
  font-size: 16px;
  margin-bottom: 10px;
  color: #282828;
  font-weight: 500;
}

.contact-tel {
  font-size: 16px;
}

.mujin-tel-number {
  font-size: 24px;
  letter-spacing: 0.05em;
}

.tel-number a {
  color: #333;
}
.contact-hours {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}
@media (min-width: 768px) {
  .contact-box,
  .contact-phone {
    padding: 20px 40px;
  }
}
@media (min-width: 1000px) {
  .contents .contact{
    padding: 80px 4%;
  }
  .contact-title {
    font-size: 20px;
    margin-bottom: 20px;
  }
  .contact-wrapper{
    display: flex;
    justify-content: space-between;
    gap: 40px;
  }

  .contact-box,
  .contact-phone {
    flex: 1 1 300px; /* 最小300pxで横並び。画面が狭くなったら折り返し */
    max-width: 600px;
    background: #fff;
    padding: 40px 30px;
    margin-bottom: 30px;
    text-align: center;
  }
  .contact-phone{
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .contact-tel {
    font-size: 20px;
    line-height: 1;
  }
  .tel-number {
    font-size: 32px;
    letter-spacing: 0.05em;
  }
  .contact-hours {
    margin-top: 10px;
  }
}

/* アニメーション */
.fadein{
  object-fit: cover;
  opacity: 0;
  transition: opacity 2s 0.2s;
}
.fadein.loaded{
  opacity: 1;
}
.slidein{
  opacity: 0;
  transform: translateY(40px);
  transition: all 1.0s 0.1s;
}
.slidein.scrollin{
  opacity: 1;
  transform: translateY(0);
}