/**
 * オンライン相談ページ用スタイルシート
 *
 * 概要:
 * - オンライン相談ページ専用のスタイルを定義します。
 *
 * 主な仕様:
 * - メインイメージのレスポンシブ対応
 * - 最大幅1536pxで中央揃え
 *
 * 制限事項:
 * - なし
 */

/**
 * メインイメージ
 * 全幅表示、最大幅1536px、1536px以上は中央揃え
 */
.main-image {
  display: block;
  width: 100%;
  max-width: 1536px;
  margin-left: auto;
  margin-right: auto;
}

.main-image img {
  display: block;
  width: 100%;
  max-width: 1536px;
  height: auto;
}

/* 1536px以上の画面で中央揃えを確実にする */
@media (min-width: 1536px) {
  .main-image {
    margin-left: auto;
    margin-right: auto;
  }
}

/**
 * ヒーローセクション
 * メインイメージとSP用オーバーレイを配置
 * 背景は全幅、背景色#FFFFF4
 */
.hero-section {
  position: relative;
  width: 100%;
  background-color: #FFFFF4;
}

/**
 * タイトルコンテナ
 * 全画面サイズで表示、メインイメージの上に重ねる
 */
.title-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  position: absolute;
  bottom: -25%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1536px;
  padding: 0 20px;
  z-index: 10;
}

/**
 * タイトルセクション（サブタイトル用）
 * 全画面サイズで表示、背景色#FFFFF4、全幅
 */
.title-section {
  display: block;
  background-color: #FFFFF4;
  width: 100%;
  padding: 10% 20px 40px 20px;
  text-align: center;
}

.title-logo {
  width: 200px;
  height: auto;
  flex-shrink: 0;
}

.main-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.main-title-text {
  display: block;
  font-size: 42px;
  font-weight: 900;
  color: #000;
}

.main-title-question {
  display: inline-block;
  font-size: 42px;
  font-weight: 900;
  color: #000;
  background: linear-gradient(transparent 60%, #FCFF00 60%, #FCFF00 90%, transparent 90%);
  padding: 0 4px;
}
@media (max-width: 1024px) {
  .title-logo {
    width: 160px;
  }
  .main-title-text {
    font-size: 36px;
  }
}

/* スマホ用フォントサイズ（756px未満） */
@media (max-width: 755px) {
  .title-container{
    flex-direction: column;
  }
  .title-section{
    padding-top: 30%;
  }
  .title-logo {
    width: 30%;
  }
  .main-title-text {
    font-size: 22px;
  }

  .main-title-question {
    font-size: 22px;
  }
}

.subtitle-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 1536px;
  margin-left: auto;
  margin-right: auto;
}

.subtitle {
  font-size: 24px;
  color: #000;
  margin: 0;
  line-height: 1.6;
  font-weight: 600;
}

.subtitle strong {
  font-weight: 900;
}

/* スマホ用サブタイトルフォントサイズ（756px未満） */
@media (max-width: 755px) {
  .subtitle {
    font-size: 14px;
  }
}

/**
 * 特徴セクション
 * PC、SPともに横に3つ並べて表示
 */
.features-section {
  background-color: #FFFFF4;
  width: 100%;
  padding: 60px 20px;
}

.features-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  max-width: 1536px;
  margin-left: auto;
  margin-right: auto;
  flex-wrap: wrap;
}

.feature-item {
  flex: 1;
  min-width: 200px;
  max-width: 400px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-image {
  width: 100%;
  position: relative;
  z-index: 1;
}

.feature-image picture {
  display: block;
  width: 100%;
}

.feature-bg {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.feature-content {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  padding: 20px 20px 10% 20px;
  z-index: 2;
}

.feature-title {
  font-size: 36px;
  font-weight: 900;
  color: #362500;
  margin: 0 0 12px 0;
}

.feature-text {
  font-size: 24px;
  color: #000;
  margin: 0;
  line-height: 1.6;
}
@media (max-width: 1024px) {
  .feature-title {
    font-size: 24px;
  }
  .feature-text {
    font-size: 16px;
  }
}

/* スマホ用スタイル（756px未満） */
@media (max-width: 755px) {
  .features-section {
    padding: 20px 10px;
  }

  .features-container {
    gap: 5px;
  }

  .feature-item {
    min-width: calc(33.333% - 5px);
    max-width: calc(33.333% - 5px);
  }

  .feature-content {
    padding: 20px 10px 10% 10px;
  }

  .feature-title {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .feature-text {
    font-size: 16px;
    margin: 2px 0;
  }
}


@media (max-width: 480px) {
  .feature-title {
    font-size: 15px;
  }
  .feature-text {
    font-size: 10px;
  }
}

/**
 * スマホでのご利用法セクション
 * PC: 3つ横並び、SP: スリックでスライド
 */
.usage-section {
  background-color: #FFFFF4;
  width: 100%;
  padding: 60px 20px;
}

.usage-title {
  text-align: center;
  font-size: 42px;
  font-weight: 900;
  margin: 0 0 40px 0;
}

.usage-title-smartphone {
  color: #ed8026;
}

.usage-title-method {
  color: #3e3a39;
}

.usage-container {
  max-width: 1536px;
  margin-left: auto;
  margin-right: auto;
}

.usage-slider {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
}

.usage-card {
  flex: 1;
  min-width: 300px;
  max-width: 400px;
  background-color: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 40px 20px 0 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.usage-number {
  position: absolute;
  z-index: 10;
}

.usage-number-pc {
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
}

.usage-number-sp {
  top: -13px;
  left: -13px;
  display: none;
}

.usage-number-img {
  width: 60px;
  height: auto;
  display: block;
}

.usage-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  min-height: 400px;
  justify-content: space-between;
}

.usage-text {
  font-size: 20px;
  font-weight: 600;
  color: #000;
  margin: 0;
  line-height: 1.6;
  text-align: center;
}

.usage-marker {
  background: linear-gradient(transparent 60%, #FCFF00 60%, #FCFF00 90%, transparent 90%);
  padding: 0 4px;
  font-weight: 900;
}

.usage-image {
  width: 100%;
  max-width: 250px;
  object-fit: contain;
  object-position: bottom;
  border-radius: 8px;
  display: block;
  margin-top: auto;
}

.usage-card-1 .usage-image {
  height: 370px;
  margin-bottom: 20px;
}

/* スマホ用スタイル（756px未満） */
@media (max-width: 755px) {
  .usage-section {
    padding: 40px 0 60px 0;
  }

  .usage-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .usage-slider {
    display: block;
  }

  .usage-card {
    width: 300px !important;
    min-width: 300px;
    max-width: 300px;
    margin: 0 auto;
    transform: scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  
  .usage-slider .slick-slide {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .usage-slider .slick-center .usage-card {
    opacity: 1;
    transform: scale(1);
  }

  .usage-number-pc {
    display: none;
  }

  .usage-number-sp {
    display: block;
  }

  .usage-text {
    font-size: 16px;
  }

  .usage-content {
    min-height: 350px;
  }

  .usage-image {
    max-width: 250px;
    margin-top: auto;
  }

  /* スリック矢印ボタンのスタイル */
  .usage-slider .slick-prev,
  .usage-slider .slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 80px;
    height: 80px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* スリックのデフォルトの:before疑似要素を削除 */
  .usage-slider .slick-prev:before,
  .usage-slider .slick-next:before {
    content: none !important;
    display: none !important;
  }

  .usage-slider .slick-prev {
    left: 10px;
  }

  .usage-slider .slick-next {
    right: 10px;
  }

  .usage-slider .slick-prev .slick-arrow-icon,
  .usage-slider .slick-next .slick-arrow-icon {
    width: 40px;
    height: 40px;
    display: block;
  }

  /* スリックドットのスタイル */
  .usage-slider .slick-dots {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .usage-slider .slick-dots li {
    margin: 0;
  }

  .usage-slider .slick-dots li button {
    width: 12px;
    height: 12px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    font-size: 0;
    line-height: 0;
    text-indent: -9999px;
    overflow: hidden;
    transition: all 0.3s ease;
  }

  /* スリックのデフォルトの:before疑似要素を削除 */
  .usage-slider .slick-dots li button:before {
    content: none !important;
    display: none !important;
  }

  .usage-slider .slick-dots li.slick-active button {
    background-color: #333;
    border-radius: 6px;
  }

  /* アクティブなドットの:before疑似要素も削除 */
  .usage-slider .slick-dots li.slick-active button:before {
    content: none !important;
    display: none !important;
  }
}

/**
 * たとえばこんなご相談が可能です！セクション
 * PC: 2行2列、SP: 4行1列
 */
.example-section {
  background-color: #FFFFF4;
  width: 100%;
  padding: 60px 0;
}

.example-container {
  max-width: 1536px;
  margin-left: auto;
  margin-right: auto;
}

.example-title-wrapper {
  text-align: center;
  margin-bottom: 40px;
}

.example-title {
  font-size: 36px;
  font-weight: 600;
  color: #3e3a39;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  line-height: 1.7;
}

.example-title-cont2{
  display: flex;
}

.example-title-with-dots {
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
  position: relative;
}

.example-dot-wrapper {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  position: relative;
}

.example-dot {
  width: 8px;
  height: 8px;
  background-color: #3e3a39;
  border-radius: 50%;
  display: block;
  margin-bottom: 4px;
}

.example-dot-text {
  display: inline-block;
  line-height: 1;
}

.example-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.example-card {
  background-color: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 30px 100px 30px 30px;
  position: relative;
  border: 4px solid;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}

.example-card-green {
  border-color: #6bbb41;
}

.example-card-teal {
  border-color: #34bdbb;
}

.example-card-blue {
  border-color: #4a97e3;
}

.example-card-purple {
  border-color: #8b5ee6;
}

.example-text {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.6;
  margin: 0;
  text-align: center;
  flex: 1;
}

.example-card-green .example-text {
  color: #6bbb41;
}

.example-card-teal .example-text {
  color: #34bdbb;
}

.example-card-blue .example-text {
  color: #4a97e3;
}

.example-card-purple .example-text {
  color: #8b5ee6;
}

.example-illust {
  position: absolute;
  bottom: -5px;
  right: -30px;
  height: 200px;
  z-index: 1;
}
.example-title-cont1{
  line-height: 1.7;
}
.example-title-cont2{
  line-height: 1.7;
}

/* スマホ用スタイル（756px未満） */
@media (max-width: 755px) {
  .example-section {
    padding: 40px 0;
  }

  .example-title {
    font-size: 24px;
    line-height: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .example-title-cont1{
    display: block;
  }
  .example-title-cont2{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    line-height: 2;
  }

  .example-cards {
    grid-template-columns: 1fr;
    gap: 24px;
    width: 90%;
  }

  .example-card {
    padding: 15px;
    min-height: 120px;
  }
  .example-card-green {
    margin-right: 50px;
    padding-right:50px;
  }
  .example-card-green img{
    right: -40px;
  }
  .example-card-teal {
    margin-left: 50px;
    padding-left:50px;
  }
  .example-card-teal img {
    left: -40px;
    right: unset;
  }
  .example-card-blue {
    margin-right: 50px;
    padding-right:50px;
  }
  .example-card-blue img{
    right: -60px;
  }
  .example-card-purple {
    margin-left: 50px;
    padding-left:50px;
  }
  .example-card-purple img {
    left: -40px;
    right: unset;
  }

  .example-text {
    font-size: 16px;
  }

  .example-illust {
    height: 150px;
  }
}

/**
 * 対象のリフォームセクション
 *
 * 概要:
 * - 背景画像（PC/SP）を表示し、その上にタイトル画像・アイコン・ボタンを配置します。
 *
 * 主な仕様:
 * - PC: 最大幅1536pxで中央寄せ（背景画像もこの幅で表示）
 * - SP: 幅いっぱいで背景画像を表示
 */
 .target-section-wrapper {
  background-color: #FFFFF4;
}
.target-section {
  width: 100%;
  max-width: 1536px;
  margin-left: auto;
  margin-right: auto;

  /* 背景色を追加 */
  background-color: #FFFFF4;

  /* PC画像比率 */
  aspect-ratio: 1536 / 1109;
  background-repeat: no-repeat;
  background-position: center top;
  background-size: contain;

  /* 中央配置 */
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 755px) {
  .target-section {
    background-image: url("/online-consultation/assets/img/target-bg-sp.webp");
    /* SP用 縦横比 */
    aspect-ratio: 768 / 985;
  }
}

@media (min-width: 756px) {
  .target-section {
    /* PC画像比率 */
    aspect-ratio: 1536 / 1109;

    background-image: url("/online-consultation/assets/img/target-bg-pc.webp");
  }
}

.target-inner {
  width: 80%;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  background-color: rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  padding: 40px 24px;
  text-align: center;
}

.target-title-img {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
  margin: 0 auto 24px auto;
}

.target-icon {
  display: block;
  width: 100%;
  max-width: 680px;
  margin: 0 auto 24px auto;
}

.target-icon-img {
  width: 100%;
  height: auto;
  display: block;
}

.target-button {
  display: inline-block;
  width: 100%;
  max-width: 720px;
  background-color: #e6e6e6;
  border-radius: 12px;
  padding: 14px 16px;
  color: #3e3a39;
  border: 3px solid #ffffff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 2px 2px 4px rgba(66, 66, 66, 0.5);
  font-size: 20px;
}

.target-button:hover,
.target-button:focus-visible {
  filter: brightness(0.98);
}

@media (max-width: 755px) {
  .target-inner {
    width: 70%;
    padding: 20px;
  }
  .target-title-img {
    width: 80%;
    margin-bottom: 12px;
  }
  .target-icon {
    max-width: 400px;
    width: 80%;
    margin-bottom: 12px;
  }
  .target-button {
    max-width: 400px;
    font-size: 14px;
  }
}

/**
 * よくある質問セクション
 * Q&Aアコーディオン機能付き
 */
.faq-section {
  background-color: #F4F4F4;
  width: 100%;
  padding: 60px 20px;
}

.faq-container {
  max-width: 1536px;
  margin-left: auto;
  margin-right: auto;
}

.faq-header {
  text-align: center;
  margin-bottom: 20px;
}

.faq-title-main {
  font-size: 32px;
  font-weight: 900;
  color: #999;
  margin: 0 0 16px 0;
  border-bottom: 1px solid #666;
  padding-bottom: 8px;
  display: inline-block;
}

.faq-subtitle {
  font-size: 24px;
  font-weight: 900;
  color: #3e3a39;
  margin: 0;
  margin-bottom: 32px;
}

.faq-category-tab {
  text-align: center;
  margin-bottom: 30px;
}

.faq-category-tab-2 {
  margin-top: 30px;
}

.faq-category-text {
  display: inline-block;
  background-color: #3e3a39;
  color: #fff;
  border: 3px solid #ffffff;
  padding: 12px 40px;
  border-radius: 8px;
  font-size: 24px;
  font-weight: 700;
  width: 500px;
}

.faq-item {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;
  background-color: #fff;
  border-radius: 12px;
  border: 1px solid #000000;
  border-bottom: none;
  overflow: hidden;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-question-wrapper {
  width: 100%;
  border-bottom: 1px solid transparent;
  transition: border-bottom-color 0.3s ease-in 0.3s;
}

.faq-item.closed .faq-question-wrapper {
  border-bottom: 1px solid #000000;
  transition: border-bottom-color 0s ease-in 0s;
}

.faq-toggle {
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.faq-question {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  position: relative;
}

.faq-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: block;
}

.faq-question-text {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  color: #3e3a39;
  margin: 0;
  line-height: 1.6;
  padding-top: 4px;
  padding-right: 20px;
}

.faq-toggle-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.faq-toggle-minus {
  position: absolute;
  right: 24px;
  top: 32px;
  width: 24px;
  height: 24px;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.faq-toggle-plus {
  position: absolute;
  right: 24px;
  top: 32px;
  width: 24px;
  height: 24px;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.faq-answer-wrapper {
  max-height: 1000px;
  overflow: hidden;
  transition: max-height 0.3s ease-out, border-top-color 0.3s ease-in 0.3s;
  box-sizing: border-box;
  border-top: 1px solid #000000;
  border-bottom: 1px solid #000000;
}

.faq-item.closed .faq-answer-wrapper {
  max-height: 0;
  transition: max-height 0.3s ease-in, border-top-color 0s ease-in 0s;
  border-top-color: transparent;
  border-bottom: none;
}

.faq-answer {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
}

.faq-answer-text {
  flex: 1;
  font-size: 16px;
  font-weight: 400;
  color: #3e3a39;
  margin: 0;
  line-height: 1.8;
  padding-top: 8px;
}

.faq-item.closed .faq-toggle-minus {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

.faq-item.closed .faq-toggle-plus {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.faq-item:not(.closed) .faq-toggle-minus {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.faq-item:not(.closed) .faq-toggle-plus {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

/* スマホ用スタイル（756px未満） */
@media (max-width: 755px) {
  .faq-section {
    padding: 40px 16px;
  }

  .faq-title-main {
    font-size: 24px;
  }

  .faq-subtitle {
    font-size: 20px;
  }

  .faq-category-text {
    font-size: 20px;
    padding: 10px 24px;
    width: 100%;
  }

  .faq-question {
    padding: 20px;
    gap: 12px;
  }

  .faq-icon {
    width: 32px;
    height: 32px;
  }

  .faq-question-text {
    font-size: 18px;
    padding-top: 0;
  }

  .faq-toggle-icon {
    width: 20px;
    height: 20px;
  }

  .faq-toggle-minus,
  .faq-toggle-plus {
    right: 20px;
    top: 24px;
    width: 20px;
    height: 20px;
  }

  .faq-answer {
    gap: 12px;
  }

  .faq-answer-text {
    font-size: 18px;
    padding-top: 4px;
  }
}

/* 下部固定ボタン */
.bottom-fixed-button {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #D20C0C;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px;
  margin: 0;
  overflow: hidden;
  height: 72px;
}

.bottom-fixed-button picture {
  width: 100%;
  height: 100%;
  display: block;
}

.bottom-fixed-button a {
  display: block;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.3s ease;
  width: 100%;
  height: 100%;
}

.bottom-fixed-button a:hover {
  opacity: 0.9;
}

.bottom-fixed-button a:active {
  opacity: 0.8;
}

.bottom-button-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

@media (min-width: 756px) {
  footer{
    padding-bottom: 75px !important;
  }
  #pageTopButton{
    bottom: 5rem;
  }
}

@media (max-width: 755px) {
  .bottom-fixed-button {
    padding: 0;
  }
}