* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Noto Sans JP;
}

/* header */

.header-bg {
  height: 80px;
  width: 100%;
  background: #ffffff;
  position: fixed;
  top: 0;
  z-index: 1;
  box-shadow: 0 0 16px grey;
}

.header-contents {
  width: 100%;
  max-width: 1024px;
  height: 80px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  padding: 0 16px;
}

header img {
  width: 200px;
  height: 48px;
  object-fit: contain;
}

header p {
  text-align: center;
  font-weight: bold;
  font-family: Futura;
  font-size: 24px;
}

header button {
  width: fit-content;
  height: 64px;
  border-radius: 32px;
  padding: 0 16px;
  border: 0;
  color: white;
  background: linear-gradient(
    180deg,
    rgb(231, 78, 74) 8.35%,
    rgb(237, 126, 67) 88.79%
  );
  font-weight: bold;
  cursor: pointer;
}

/* main */

main {
  margin-top: 80px;
  color: #252525;
}

h1 {
  font-size: 48px;
  font-family: futura;
}

h2 {
  font-size: 32px;
  font-family: futura;
  font-weight: bold;
}

h3 {
  font-size: 28px;
}

/* Key Visual */

main .kvtop {
  height: 480px; /* 全画面表示に */
  background-image: url("../img/key-visual.jpg"); /* 背景画像のURLを指定 */
  background-size: cover;
  background-position: center;
}

main .kvtop .overlay {
  background: rgb(0, 0, 0, 0.5);
  height: 100%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

main .kvtop .container {
  width: 100%;
  max-width: 1024px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: right;
  padding: 24px;
}

main .kvtop .content {
  text-align: center;
}

.kvtop .subtitle {
  font-size: 40px;
  font-weight: bold;
  margin: 16px 0;
}

/* About */

.about-section {
  background-color: #fdf9f2;
  padding: 80px 0;
  position: relative;
}

.about-section .container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 24px;
}

.title {
  text-align: center;
  font-weight: 700;
}

.title p {
  color: rgb(237, 126, 67);
  font-weight: bold;
}

.about-section .content {
  display: flex;
  align-items: top;
  justify-content: center;
  margin-top: 64px;
  gap: 48px;
}

.about-section .text-container {
  flex: 1;
}

.about-section .text-container .subtitle {
  font-weight: bold;
  margin: 24px 0;
}

.about-section .image-container {
  flex: 1;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.about-section .image-container img {
  max-width: 100%;
  object-fit: cover;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.about-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px; /* 曲線の高さ */
  background: white;
  border-top-left-radius: 50% 100%;
  border-top-right-radius: 50% 100%;
}

@media (max-width: 768px) {
  .about-section .content {
    flex-direction: column;
  }
}

/* feature section */

.feature {
  position: relative;
  overflow: hidden;
  padding-bottom: 80px;
}

.feature::after {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  width: 120%;
  height: auto;
  background-image: url(data:image/svg+xml;charset=utf8,%3Csvg%20width%3D%222060%22%20height%3D%221650%22%20viewBox%3D%220%200%202060%201650%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20opacity%3D%220.5%22%20d%3D%22M2020.57%20975.408C2094.75%201159.2%202066.89%201265.02%201893.47%201481.35C1675.89%201752.76%201351.17%201657.16%20939.007%201465.13C618.652%201315.88%20623.07%201412.16%20349.663%201254.31C12.0633%201059.39%20-120.257%20700.811%20130.855%20271.57C352.473%20-107.255%201094.22%20-16.9755%201316.13%20111.141C1548.43%20245.263%201596.4%20354.987%201704.86%20548.86C1793.34%20707.014%201917.93%20721.094%202020.57%20975.408Z%22%20fill%3D%22%23FEF6F7%22%2F%3E%0A%3C%2Fsvg%3E%0A);
  z-index: -1;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
}

.feature .container {
  max-width: 1024px;
  padding: 24px;
  margin: 0 auto;
}

.lead {
  text-align: center;
  font-weight: bold;
  margin: 16px 0;
}

.list {
  display: flex;
  flex-direction: column;
  margin-top: 64px;
  gap: 48px;
}

.img-txt-set {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
}

.txt-container {
  flex: 1;
}

.txt-container h3 {
  margin: 16px 0;
}

.img-container {
  flex: 1;
  border-radius: 16px;
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}

.feature img {
  max-width: 100%;
  object-fit: cover;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ellipse {
  width: 56px;
  height: 40px;
  background: linear-gradient(
    180deg,
    rgb(231, 78, 74) 8.35%,
    rgb(237, 126, 67) 88.79%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  transform: rotate(-30deg);
  color: #ffffff;
}

.ellipse p {
  transform: rotate(30deg);
}

@media (min-width: 769px) {
  .img-txt-set:nth-child(odd) .txt-container {
    order: 1;
  }
  .img-txt-set:nth-child(odd) .img-container {
    order: 2;
  }

  .img-txt-set:nth-child(even) .txt-container {
    order: 2;
  }
  .img-txt-set:nth-child(even) .img-container {
    order: 1;
  }
}

@media (max-width: 768px) {
  .img-txt-set {
    flex-direction: column;
  }
  .txt-container,
  .img-container {
    flex: 1 1 100%;
    width: 100%; /* SP時に有効化 */
  }
}

/* Example */

.example {
  background-color: #fdf9f2;
  padding-bottom: 80px;
}

.example .container {
  max-width: 1024px;
  padding: 24px;
  margin: 0 auto;
}

.example .card-image img {
  max-width: 100%;
  object-fit: cover;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* カードコンテナ */
.cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 48px;
  margin-top: 64px;
}

/* 各カード */
.card {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 400px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  display: block;
}

.tag {
  position: absolute;
  background: linear-gradient(
    180deg,
    rgb(231, 78, 74) 8.35%,
    rgb(237, 126, 67) 88.79%
  );
  color: #fff;
  padding: 8px 16px;
  border-radius: 16px 0 16px 0;
  font-weight: bold;
}

/* カードコンテンツ */
.card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-content h3 {
  font-size: 1.5em;
  color: #2c3e50;
  margin-bottom: 10px;
}

.property-info {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-bottom: 16px;
}

.info-item {
  display: flex;
  align-items: center;
  color: #7f8c8d;
  font-size: 0.95em;
}

.info-item img {
  margin-right: 8px;
}

/* ストーリー */
.story {
  font-size: 1em;
  color: #34495e;
  line-height: 1.5;
  margin-bottom: 15px;
}

/* テストモニアル（引用） */
.testimonial {
  font-style: italic;
  color: #95a5a6;
  margin-bottom: 10px;
}

/* 評価 */
.rating {
  color: #f1c40f;
  font-size: 1.2em;
  display: none;
}

/* CTAボタン */
.cta-button {
  text-align: center;
  margin-top: 40px;
}

.cta-button a {
  background-color: #27ae60;
  color: #fff;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1em;
  transition: background-color 0.3s ease;
}

.cta-button a:hover {
  background-color: #219150;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  .cards-container {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 100%;
    max-width: 400px;
  }
}

.FAQ .container {
  max-width: 1024px;
  padding: 24px;
  margin: 0 auto;
}

.contact {
  height: 400px; /* 全画面表示に */
  background-image: url("../img/key-visual.jpg"); /* 背景画像のURLを指定 */
  background-size: cover;
  background-position: center;
}

.contact .overlay {
  background: linear-gradient(
    180deg,
    rgb(231, 78, 74, 0.9) 8.35%,
    rgb(237, 126, 67, 0.9) 88.79%
  );
  height: 100%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.contact .container {
  width: 100%;
  max-width: 1024px;
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  padding: 24px;
}

.contact .txt-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact .lead {
  text-align: left;
}

.contact button {
  width: fit-content;
  height: 64px;
  border-radius: 32px;
  padding: 0 16px;
  border: 0;
  color: rgb(237, 126, 67);
  background: #ffffff;
  font-weight: bold;
  cursor: pointer;
}

footer {
  height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  .contact .container {
    flex-direction: column;
    gap: 24px;
  }
}

/* FAQ */

.FAQ {
  padding-bottom: 80px;
}

.faq-item {
  border-bottom: 1px solid #e0e0e0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 16px 0;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: #f1f1f1;
}

.faq-question i {
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 8px 0 16px 0;
  color: #34495e;
  line-height: 1.6;
}

/* アコーディオンが開いたときのスタイル */
.faq-item.active .faq-answer {
  max-height: 500px; /* 回答の内容に応じて調整 */
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}
