/* -------------------------------
   後継者対策/事業承継専用CSS
-------------------------------- */

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

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

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

.succession-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 {
    flex-direction: column; /* ←縦並びに変更 */
    gap: 24px;
    padding: 0 16px;
  }

  .concern-image,
  .concern-text {
    max-width: 100%; /* ←横幅制限を解除して全幅表示 */
    flex: none;
  }

  .concern-text h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
  }

  .concern-text li {
    font-size: 18px;
  }
}

/* プラン・サービス内容セクション */
.succession-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: 180px;
}

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

.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 220px;
  font-weight: bold;
  color: #007acc;
  font-size: 20px;
  white-space: nowrap;
}

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

/* シミュレーション手順セクション */
.simulation-container {
  position: relative;
  width: 900px;
  margin: 80px auto; /* 中央寄せ＋余白調整 */
}

.simulation-title {
  position: absolute;
  top: -120px; /* 枠の外に浮かせる */
  left: -150px; /* 枠の左端より少し外に出す */
  font-size: 32px;
  font-weight: bold;
  padding: 4px 12px;
  z-index: 10;
}

.simulation-wrapper {
  border: 2px solid #007acc;
  padding: 48px 32px;
  background-color: #fff;
  box-sizing: border-box;
}

.simulation-flow {
  display: flex;
  flex-direction: column;
}

.step {
  font-size: 24px;
  color: #333;
}

.arrow {
  margin-left: 1em;
  font-size: 22px;
  color: #333;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .succession-service {
    padding-left: 5vw;
    padding-right: 5vw;
    border-radius: 24px;
    margin-bottom: 100px;
  }

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

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

  .service-row {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 24px;
  }

  .service-row .label {
    flex: none;
    font-size: 18px;
    padding-left: 0;
    margin-bottom: 8px;
  }

  .service-row .desc {
    font-size: 18px;
    padding-left: 0;
    line-height: 1.8;
  }

  /* シミュレーション手順セクション */
  .simulation-container {
    width: 90%;
    margin: 60px auto;
  }

  .simulation-title {
    position: static;
    font-size: 24px;
    margin-bottom: 16px;
    text-align: center;
  }

  .simulation-wrapper {
    padding: 32px 16px;
  }

  .step {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .arrow {
    font-size: 18px;
    margin-left: 0.5em;
  }
}


/* -------------------------------
   よくある質問セクション
-------------------------------- */
.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;
  color: #333;
  line-height: 1.8;
  font-size: 28px;
  font-weight: bold;
  text-align: left;
}

/* 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;
  }
}
