/* -------------------------------
   相続対策ページ専用CSS
-------------------------------- */

/* レスポンシブでのmainの幅決め */
@media (max-width: 768px) {
  main {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }
}

/* ヘッダーセクション */
.inheritance-header {
  text-align: center;
}

.inheritance-header h2 {
  font-size: 2em;
  font-weight: bold;
  border-bottom: 2px solid #ccc;
  padding-bottom: 0.5em;
}

.inheritance-header .catch {
  font-size: 20px;
  line-height: 1.6;
  font-weight: bold;
  max-width: 800px;
  margin: 0 auto;
  color: rgb(238, 10, 10);
}

/* 動画セクション */
.video-feed-section {
  margin: 80px auto;
  max-width: 960px;
  padding: 0 16px;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .video-feed-section {
    max-width: 100%;
    margin: 40px auto;
    padding: 0 12px;
  }
}

/* あなたのお悩みは？セクション */
.concern-section {
  padding: 60px 20px;
  background-color: #fff;
  border-radius: 48px;
  margin-bottom: 90px;
}

.concern-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.concern-image {
  flex: 1;
  max-width: 50%;
}

.concern-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.concern-text {
  flex: 1;
  max-width: 50%;
}

.concern-text h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #507f99;
}

.concern-text ul {
  list-style: disc;
  padding-left: 20px;
  color: #555;
}

.concern-text li {
  font-size: 20px;
  margin-bottom: 10px;
  line-height: 1.6;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .concern-inner {
    display:block;
  }

  .concern-image {
    padding: 0 16px;
    max-width: 100%;
    margin: 0 auto;
  }

  .concern-image img {
    width: 100%;
    max-width: 480px; /* スマホでも大きめに表示 */
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
  }

  .concern-text {
    max-width: 80%;
    text-align: left;
    margin: 0 auto;
  }

  .concern-text h2 {
    white-space: nowrap;
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }

  .concern-text li {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    font-size: 1.1em;
  }
}

/* 料金プラン・サービス内容セクション */
.inheritance-service {
  width: 100%;
  padding-top: 60px;
  padding-bottom: 60px;
  padding-left: 10vw;
  padding-right: 10vw;
  box-sizing: border-box;
  text-align: center;
  font-family: "Helvetica Neue", sans-serif;
  color: #333;
  line-height: 1.8;
  background-color: #fff;
  border-radius: 48px;
  margin-bottom: 70px;
}

.inheritance-service h2 {
  font-size: 32px;
  text-align: left;
  margin-left: 2vw;
  margin-top: -20px;
  font-weight: bold;
  line-height: 1.4;
}

.service-items {
  margin-bottom: 30px;
}

.service-items li {
  font-size: 20px;
  text-align: left;
  padding-left: 1.5em;
  list-style-position:inside;
  margin-bottom: 5px;
  color: #007acc;
}

.blue {
  color: #007acc;
}

.service-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 16px;
}

.service-row .label {
  text-align: left;
  flex: 0 0 200px;
  font-weight: bold;
  color: #007acc;
  margin-right: 16px;
  font-size: 20px;
  white-space: nowrap;
}

.service-row .desc {
  font-size: 20px;
  flex: 1;
  text-align: left;
  padding-left: 2em;
}

/* 報酬具体例セクション */
.fee-box {
  max-width: 700px;
  margin: 0 auto;
  border: 1px solid black;
  padding: 20px;
  margin-top: 30px;
  background-color: #fff;
  font-family: 'Noto Sans JP', sans-serif;
}

.fee-box h4 {
  font-size: 25px;
  margin-top: 0;
  margin-bottom: 0;
}

.fee-box ul {
  padding-left: 1.5em;
  list-style: disc;
  list-style-position: outside;
  text-align: left;
  margin: 0;
}

.fee-box ul li {
  font-size: 22px;
  text-indent: -1em;
  padding-left: 1.5em;
  display: list-item;
}

.fee-box p {
  font-size: 16px;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .inheritance-service {
    padding-top: 40px;
    padding-bottom: 40px;
    padding-left: 6vw;
    padding-right: 6vw;
    border-radius: 24px;
    font-size: 16px;
  }

  .inheritance-service h2 {
    font-size: 24px;
    margin-left: 0;
    text-align: center;
    margin-top: 0;
  }

  .service-items li {
    font-size: 15px;
    padding-left: 1em;
  }

  .service-row {
    display: block;
    /* flex-direction: column;
    align-items: flex-start; */
    gap: 4px;
  }

  .service-row .label {
    font-size: 16px;
    padding-left: 0;
    padding-right: 0;
    margin-right: 0;
  }

  .service-row .desc {
    font-size: 15px;
    padding-left: 0;
  }

  .fee-box {
    padding: 16px;
    margin-top: 24px;
  }

  .fee-box h4 {
    font-size: 20px;
    text-align: center;
    margin-bottom: 12px;
  }

  .fee-box ul li {
    font-size: 16px;
    text-indent: 0;
    padding-left: 0;
    margin-bottom: 6px;
  }

  .fee-box p {
    font-size: 14px;
    text-align: left;
  }
}

/* -------------------------------
   よくある質問セクション
-------------------------------- */
.faq-box {
  background-color: white;
  border-radius: 48px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 64px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 80px;
  position: relative;
  box-sizing: border-box;
}

/* タイトルは左上に固定 */
.faq-title {
  padding-bottom: 40px;
  padding-left: 10vw;
  padding-right: 10vw;
  box-sizing: border-box;
  text-align: center;
  font-family: "Helvetica Neue", sans-serif;
  color: #333;
  line-height: 1.8;
  font-size: 28px;
  font-weight: bold;
  text-align: left;
  max-width: 640px;
  margin-left: 0;
}

/* FAQ項目を中央右寄りに配置 */
.faq-item {
  border-bottom: 1px solid white;
  padding: 16px 0;
  cursor: pointer;
  width: 60%; /* 少し狭めて中央寄りに */
  margin-left: auto;
  margin-right: 10%; /* 右寄せしすぎないように調整 */
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 500;
}

.faq-question .q-icon {
  font-weight: bold;
  margin-right: 12px;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  opacity: 0;
  font-size: 16px;
  color: #575757;
  margin-top: 12px;
  line-height: 1.5;
}

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

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

.active .faq-answer {
  display: block;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  opacity: 1;
}

.faq-question:hover {
  text-decoration: underline;
  text-decoration-color: #6e6e71;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .faq-box {
    padding: 32px 24px;
    border-radius: 24px;
    margin-bottom: 48px;
  }

  .faq-title {
    font-size: 22px;
    text-align: center;
    padding-left: 0;
    padding-right: 0;
    margin: 0 auto;
    max-width: 100%;
  }

  .faq-item {
    width: 100%;
    margin: 0 auto;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
  }

  .faq-question {
    font-size: 16px;
    flex-direction: row;
    gap: 8px;
  }

  .faq-question .q-icon {
    font-size: 16px;
    margin-right: 8px;
  }

  .faq-answer {
    font-size: 15px;
    line-height: 1.6;
    margin-top: 8px;
  }
}
