/* ============================================================
   技術・工法 詳細ページ (single-technology.php)
   ============================================================ */

/* 投稿本文内でフォントサイズを個別指定するためのクラス（PC:24px / SP:21px） */
.u-fs-24 {
  font-size: 24px;
}

@media screen and (max-width: 767px) {
  .u-fs-24 {
    font-size: 21px;
  }
}

/* inner */
.single__inner {
  width: 100%;
  max-width: 1012px;
  padding-right: 16px;
  padding-left: 16px;
  margin: 0 auto;
}

/* ヒーロー */
.p-tech-hero {
  position: relative;
  min-height: 340px;
  background-color: #333;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.p-tech-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.3) 100%);
}

.p-tech-hero__inner {
  position: relative;
  z-index: 1;
  padding-top: 24px;
  padding-bottom: 48px;
  width: 100%;
}

.p-tech-hero__breadcrumb {
  margin-bottom: 40px;
}

.p-tech-hero__breadcrumb .p-breadcrumbs__link,
.p-tech-hero__breadcrumb .p-breadcrumbs__text {
  color: #fff !important;
}

.p-tech-hero__subtitle {
  font-size: 16px;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.5;
}

.p-tech-hero__title {
  font-size: 28px;
  font-weight: bold;
  color: #fff;
  line-height: 1.4;
  margin: 0;
}

/* カテゴリボタン */
.p-tech-categories {
  /* padding: 32px 0 0; */
}

.p-tech-categories__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-end;
}

.p-tech-categories__list--left {
  justify-content: flex-start;
}

.p-tech-categories__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 279px;
  padding: 12px 16px;
  border-bottom: 1px solid #333333;
  color: #000000;
  font-size: 18px;
  text-decoration: none;
  transition: opacity 0.2s;
}
@media only screen and (max-width: 768px) {
  .single-technology__mv {
    padding: 112px 15px 77px 15px;
  }
  .p-tech-categories__btn {
    font-size: 14px;
    min-width: 160px;
    padding: 12px 0px;

  }
  .p-tech-categories {
    margin-top: 30px;
  }
  .single__inner.categorie {
    padding-left: 0;
    padding-right: 0;
  }
}
@media only screen and (max-width: 480px) {
  .p-tech-categories__btn {
    font-size: 14px;
    min-width: 160px;
    max-width: 160px;
    padding: 12px 0px;

  }
}
@media only screen and (max-width: 650px) {
  .p-tech-categories {
    margin-top: 0px;
  }
}
.p-tech-categories__btn::after {
  content: '→';
  margin-left: 16px;
  flex-shrink: 0;
}

.p-tech-categories__btn:hover {
  opacity: 0.7;
}

/* 概要 */
.p-tech-overview {
  padding: 80px 0;
}

.p-tech-overview__text {
  font-size: 18px;
  line-height: 1.875;
  color: #000000;
  margin: 0 auto 83px auto;
  width: 100%;
  max-width: 860px;
}
@media only screen and (max-width: 768px) {
  .p-tech-overview__text {
    font-size: 14px;
    margin-bottom: 22px;

  }
}

.p-tech-overview__text p:has(span[style*="font-size"]) {
  line-height: 1.5;
}
.p-tech-overview__text:last-child {
  margin-bottom: 0;
}
.p-tech-overview__img-wrap {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

.p-tech-overview__img {
  display: block;
  margin: 0 auto;
}

/* セクション共通 */
.p-tech-section--even {
  background: #F0F0F0;
}

.p-tech-section--odd {
  background: #ffffff;
}

.p-tech-section {
  padding: 86px 0;
  
}

.p-tech-section__title {
  font-size: 36px;
  font-weight: bold;
  color: #000000;
  margin: 0;
  padding-bottom: 0;
  border-bottom: none;
}
@media only screen and (max-width: 768px) {
  .p-tech-section__title {
    font-size: 21px;

  }
  
}



.p-tech-section__title::after {
  content: '';
  display: block;
  /* max-width: 344px; */
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, #861c3c 72px, #cccccc 72px);
  margin-top: 8px;
  margin-bottom: 45px;
}

.p-tech-section__text {
  font-size: 18px;
  line-height: 1.875;
  color: #000000;
  margin: 0 0 32px;
}
.p-tech-section__text ul,
.p-tech-section__text ol {
  list-style-position: inside;
  margin: 0;
  padding: 0;
}
.p-tech-section__text li {
  margin: 0;
  padding-left: 1.2em;
  text-indent: -1.2em;
}
@media only screen and (max-width: 768px) {
  .p-tech-section__text {
    font-size: 14px;

  }
  .p-tech-section__title::after {
    margin-bottom: 21px;
  }
}

.p-tech-section__imgs {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 860px;
  margin: 0 auto;
}

.p-tech-section__imgs--1 .p-tech-section__img-wrap {
  flex: 1 1 100%;
}

/* 横並び表示（2枚）：高さを揃え、幅は画像の比率のまま表示する（--row-heightは横幅860pxに収まるようPHP側で計算） */
.p-tech-section__imgs--2:not(.p-tech-section__imgs--column) .p-tech-section__img-wrap {
  flex: 0 0 auto;
}

.p-tech-section__imgs--2:not(.p-tech-section__imgs--column) .p-tech-section__img {
  width: auto;
  height: var(--row-height, 360px);
}

/* 横並び表示（3枚以上）：2枚ずつの行に分けて表示する */
.p-tech-section__imgs--paired {
  flex-direction: column;
}

.p-tech-section__imgs-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.p-tech-section__imgs-row .p-tech-section__img-wrap {
  flex: 0 0 auto;
}

.p-tech-section__imgs-row .p-tech-section__img-wrap:only-child {
  flex: 1 1 100%;
}

.p-tech-section__imgs-row .p-tech-section__img {
  width: auto;
  height: var(--row-height, 360px);
}

.p-tech-section__imgs-row .p-tech-section__img-wrap:only-child .p-tech-section__img {
  width: 100%;
  height: auto;
}

/* 管理画面で「上下」を選択した場合、枚数にかかわらず縦積み表示にする */
.p-tech-section__imgs--column {
  flex-direction: column;
  gap: 40px;
}

.p-tech-section__imgs--column .p-tech-section__img-wrap {
  flex: 0 0 auto;
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
}

.p-tech-section__img-wrap {
  margin: 0;
  overflow: hidden;
}

.p-tech-section__img {
  width: 100%;
  height: auto;
  display: block;
}

.p-tech-section__img-caption {
  margin-top: 20px;
  font-size: 16px;
  text-align: center;
}

/* ラベルタイトル（動画・資料・参考情報） */
.p-tech-label-title {
  font-size: 36px;
  font-weight: bold;
  color: #000000;
  margin: 0;
  padding-bottom: 0;
  border-bottom: none;
}
@media only screen and (max-width: 768px) {
  .p-tech-label-title {
    font-size: 21px;

  }
}

.p-tech-label-title::after {
  content: '';
  display: block;
  /* max-width: 344px; */
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, #861c3c 72px, #cccccc 72px);
  margin-top: 8px;
  margin-bottom: 45px;
}

/* 動画 */
.p-tech-movies {
  padding: 86px 0;
  
}

.p-tech-movies__grid {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.p-tech-movies__item {
  flex: 1 1 calc(50% - 16px);
  min-width: 240px;
  max-width: 454px;
}

.p-tech-movies__thumb {
  display: block;
  position: relative;
  margin-bottom: 37px;
  overflow: hidden;
}

.p-tech-movies__thumb img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.2s;
}

.p-tech-movies__thumb:hover img {
  opacity: 0.85;
}

.p-tech-movies__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 69px;
  height: 43px;
  background: #9E163A;
  border-radius: 10px;
  pointer-events: none;
}

.p-tech-movies__play::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff;
}

.p-tech-movies__title {
  font-size: 18px;
  font-weight: bold;
  color: #000;
  margin: 0 0 23px;
}
@media only screen and (max-width: 768px) {
  .p-tech-movies__title {
    font-size: 14px;
    

  }
  .p-tech-label-title::after {
    margin-bottom: 21px;
  }
  .p-tech-movies__thumb {
    margin-bottom: 20px;
  }
}

.p-tech-movies__text {
  font-size: 18px;
  line-height: 1.5;
  color: #000000;
  margin: 0;
}
@media only screen and (max-width: 768px) {
  .p-tech-movies__text {
    font-size: 14px;

  }
}

/* カタログ */
.p-tech-catalogs {
  padding: 86px 0;
  
}

.p-tech-catalogs__grid {
  display: flex;
  gap: 55px;
  flex-wrap: wrap;
  
}
@media only screen and (max-width: 711px) {
  .p-tech-catalogs__grid {
    font-size: 14px;
    justify-content: flex-start;
    margin: 0 auto;
  }
}

.p-tech-catalogs__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s;
  width: 152px;
}
@media only screen and (max-width: 711px) {
  .p-tech-catalogs__grid {
    font-size: 14px;
    justify-content: flex-start;
    margin: 0 auto;
  }
  .p-tech-catalogs__item {
    width: 30%;
  }
}

.p-tech-catalogs__item:hover {
  opacity: 0.7;
}

.p-tech-catalogs__img-wrap {
  width: 100%;
  margin: 0 0 27px;
  border: 1px solid #e0e0e0;
}

.p-tech-catalogs__img {
  width: 100%;
  height: auto;
  display: block;
}

.p-tech-catalogs__name {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: bold;
  color: #861C3C;
  /* text-align: center; */
  line-height: 1.4;
}

.p-tech-catalogs__icon {
  width: 18px;
  height: auto;
  flex-shrink: 0;
}

/* 参考情報 */
.p-tech-info {
  padding: 86px 0;
  
}

.p-tech-info__text {
  font-size: 15px;
  line-height: 1.7;
  color: #000000;
  margin: 0 0 24px;
}

.p-tech-info__list {
  margin: 0;
  padding: 0;
}

.p-tech-info__item {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #e0e0e0;
}

.p-tech-info__item:first-child {
  border-top: 1px solid #e0e0e0;
}

.p-tech-info__dt {
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  background: #201F1F;
  padding: 22px 0px 26px 19px;
  min-width: 226px;
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  align-items: center;
}

.p-tech-info__dd {
  font-size: 18px;
  line-height: 1.7;
  color: #000000;
  padding: 20px 20px 24px 20px;
  margin: 0;
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
  background: #ffffff;
  border-right: 1px solid #e0e0e0;;
}

.p-tech-info__dd a {
  color: #0000ff;
  text-decoration: underline;
}


/* 関連技術一覧 */
.p-tech-related {
  padding: 64px 0 80px;
  background: #f5f5f5;
}

.p-tech-related__title {
  font-size: 22px;
  font-weight: bold;
  color: #000;
  margin: 0 0 32px;
}

.p-tech-related__list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.p-tech-related__item {
  flex: 1 1 calc(33.333% - 14px);
  min-width: 200px;
  max-width: calc(33.333% - 14px);
}

.p-tech-related__link {
  display: block;
  text-decoration: none;
  transition: opacity 0.2s;
}

.p-tech-related__link:hover {
  opacity: 0.8;
}

.p-tech-related__img-wrap {
  margin: 0 0 10px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.p-tech-related__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.p-tech-related__name {
  font-size: 14px;
  color: #000000;
  margin: 0;
  line-height: 1.5;
}

.p-tech-related__btn-wrap {
  text-align: center;
}

.p-tech-related__btn {
  display: inline-block;
  padding: 14px 48px;
  border: 2px solid #003a80;
  color: #003a80;
  font-size: 15px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.p-tech-related__btn:hover {
  background: #003a80;
  color: #fff;
}

/* レスポンシブ */
@media screen and (max-width: 768px) {
  .p-tech-hero {
    min-height: 260px;
  }

  .p-tech-hero__title {
    font-size: 20px;
  }

  .p-tech-hero__subtitle {
    font-size: 14px;
  }

  .p-tech-overview,
  .p-tech-section,
  .p-tech-movies,
  .p-tech-catalogs,
  .p-tech-info,
  .p-tech-related {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .p-tech-section__imgs--2:not(.p-tech-section__imgs--column) .p-tech-section__img-wrap,
  .p-tech-section__imgs-row .p-tech-section__img-wrap {
    flex: 1 1 100%;
    height: auto;
  }

  .p-tech-section__imgs--2:not(.p-tech-section__imgs--column) .p-tech-section__img,
  .p-tech-section__imgs-row .p-tech-section__img {
    width: 100%;
    height: auto;
  }

  .p-tech-movies__item {
    flex: 1 1 100%;
    max-width: none;
  }

  .p-tech-info__item {
    flex-direction: column;
  }

  .p-tech-info__dt {
    min-width: unset;
    padding: 12px 16px;
    font-size: 14px;
  }

  .p-tech-info__dd {
    padding: 12px 16px;
    font-size: 14px;
  }

  .p-tech-related__item {
    flex: 1 1 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }
}

/* MV */
.single-technology__mv {
  background-color: #E6E6E6;
  padding: 112px 35px 77px 35px;
  margin-top: 90px;
  overflow: visible;
  position: relative;
}
@media only screen and (max-width: 768px) {
  .single-technology__mv {
    padding: 112px 15px 77px 15px;
  }
}

.single-technology__mv-title {
  display: flex;
  align-items: flex-start;

  position: relative;
  width: 100%;
  max-width: 1370px;
  margin: 0 auto;
  margin-bottom: 110px; /* JSでsingle-technology__mv-imgの下端から110pxになるよう調整される */
}

.title__bk {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  background: #fff;
  padding: 40px 36px;
}

.single-technology__mv-img {
  position: absolute;
  top: -140px;
  right: 0px;
  width: 70%;
  max-width: none;
}
@media only screen and (max-width: 1024px) {
  .single-technology__mv-img {
    width: 90%;
    
  }
}
@media only screen and (max-width: 768px) {
  .single-technology__mv-img {
    width: 75%;
    right: -15px;
    top: -140px;
  }
}
@media only screen and (max-width: 480px) {
  .single-technology__mv-img {
    width: 85%;
  }
}

.single-technology__mv-img img {
  width: 100%;
  height: auto;
  aspect-ratio: 960 / 604;
  object-fit: cover;
  display: block;
}

.single-technology__mv-title-text {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.5;
  padding-bottom: 15px;
}
@media only screen and (max-width: 768px) {
  .single-technology__mv-title-text {
    font-size: 16px;
  }
}
.single-technology__mv-text {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.5;
}
@media only screen and (max-width: 768px) {
  .single-technology__mv-text {
    font-size: 12px;
  }
}

@media screen and (max-width: 768px) {
  .p-tech-hero__title {
    font-size: 18px;
  }

  .p-tech-related__item {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .p-tech-catalogs__grid {
    flex-direction: column;
    gap: 0;
  }

  .p-tech-catalogs__item {
    width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #e0e0e0;
  }

  .p-tech-catalogs__img-wrap {
    width: 100px;
    flex-shrink: 0;
    margin: 0;
  }

  .p-tech-catalogs__name {
    text-align: left;
    flex: 1;
  }
  .p-tech-catalogs__name {
    justify-content: flex-end;
  }
}
.title__bk {
  width: 100%;
  max-width: 520px;
  background-color: rgba(255,255,255,0.8);
  padding: 84px 55px 55px 65px;
}
@media only screen and (max-width: 768px) {
  .title__bk {
    padding: 37px 19px 27px 15px;
    max-width: 240px;
  }
}