@charset "utf-8";

.main {
    position: relative;
}
.main::before {
  content: "";
  position: absolute;
  top: 0;left: 0;
  width: 100%;  height:  100%;
  background-image: url(../images/index/bg-main02-2.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
/* ↓ここで透過度を調整！ */
  opacity: 0.15;
  /* ↓ 文マイナスにしない文字が出てこない */
  z-index: -1;
}

.title {
  height: 310px;
  background-image: url(../images/concept/bg-main01.webp);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #f3dfdf;
}

/* レイアウトの肝：横並びの設定 */
.concept-container {
  /* background-color: #03ffb7; */
  display: flex;
  align-items: flex-start;
  /* 上揃え */
  gap: 40px;
  /* 動画とテキストの間隔 */
  padding: 40px;
  max-width: 1200px;
  /* 全体の最大幅 */
  margin: 0 auto;
  /* 中央寄せ */
}

.video-content {
  flex: 0 0 250px;
  /* 幅を300pxで固定、または狭めに設定 */
}

.video-content p {
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 10px;
}


.horizontal-video {
  width: 100%;
  /* 親要素に対してはいっぱいまで広がるが */
  max-width: 300px;
  /* 500px以上には大きくならない */
  height: auto;
  /* 高さは自動調整して比率を保つ */
  display: block;
  /* 中央寄せしやすくするためにブロック要素化 */
  margin: 0 auto;
  /* 必要に応じて中央に配置 */
}

.text-content {
  flex: 1;/
}

.concept h3 {
  text-align: left;
  /* 左寄せに変更（横並び時） */
  font-size: 2.5rem;
  margin-bottom: 20px;
}

/* 見出しの下のライン（疑似要素） */
.concept h3::after {
  content: '';
  display: block;
  width: 500px;
  /* ラインの長さ */
  height: 5px;
  /* ラインの太さ */
  background: #000;
  /* ラインの色 */
  margin-top: 10px;
  /* 見出し文字との間隔 */
}

.concept-text {
  /* background-color: #DAD2C6; */
  /* background-color: #CCA172; */
  font-size: 2rem;
  line-height: 3;
  text-align: center;
}

@media (max-width: 800px) {
  .title {
    height: 150px;
  }

  .title h1 {
    font-size: 2rem;
  }

  .concept-container {
    flex-direction: column;
    /* 縦並びにする */
    align-items: center;
    gap: 30px;
    /* padding: 40px 20px; */
  }

  .video-content p {
    font-size: 1.8rem;
    padding-bottom: 15px;
  }

  .horizontal-video {
    flex: 0 0 auto;
    /* ↓動画を横幅いっぱいに */
    width: 100%;
    max-width: 400px;
    height: 450px;
  }

  .text-content {
    width: 100%;
  }

  .concept h3 {
    font-size: 1.5rem;
    text-align: center;
    /* スマホでは中央寄せ */
  }

  .concept h3::after {
    width: 60px;
    height: 4px;
    /* ラインを中央に */
    margin: 20px auto 0;
  }

  .concept-text p {
    font-size: 1.26rem;
    line-height: 3;
      /* ↑ラインの太さ */
    br {
      display: none;
      /* スマホでは変な改行を防ぐためにbrを無効化 */
    }
  }
}