@charset "UTF-8";
/* CSS Document */

/* -------------------------------
  共通セクションスタイル
------------------------------- */
.customitem-section {
  line-height: 1.7;
  padding: 20px 0;
}

/* -------------------------------
  TECHNOLOGIESセクションスタイル
------------------------------- */
.customitem-technologies {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 24px auto 40px;
  text-align: center;
  max-width: 600px;
}

.customitem-technologies figure {
  margin: 0;
}

.customitem-technologies img {
  width: 60px;
  height: auto;
  margin: 0 auto;
}

.customitem-technologies figcaption {
  margin-top: 8px;
  font-size: 1.3rem;
  color: #666;
}

.technologies-title {
  text-align: center;
  font-weight: bold;
  font-size: 2.0rem;
}

/* -------------------------------
  2カラム（画像＋テキスト）
------------------------------- */
.customitem-two-column {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 24px;
  align-items: center;
  margin: 40px 0;
}
.customitem-two-column img {
  width: 100%;
  height: auto;
  display: block;
}

/* 2カラム（左右反転バージョン） */
.customitem-two-column--reverse {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 24px;
  align-items: center;
  margin: 40px 0;
}
.customitem-two-column--reverse > div:first-child {
  order: 2;
}
.customitem-two-column--reverse > div:last-child {
  order: 1;
}
.customitem-two-column--reverse img {
  width: 100%;
  height: auto;
  display: block;
}

/* -------------------------------
  2カラムギャラリー（画像＋キャプション）
------------------------------- */
.customitem-gallery-2c {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 40px 0;
}
.customitem-gallery-2c figure {
  margin: 0;
}
.customitem-gallery-2c img {
  width: 100%;
  height: auto;
  display: block;
}
.customitem-gallery-2c figcaption {
  text-align: center;
  padding-top: 8px;
  font-size: 14px;
}

/* -------------------------------
  3カラムギャラリー（画像＋キャプション）
------------------------------- */
.customitem-gallery-3c {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 40px 0;
}
.customitem-gallery-3c figure {
  margin: 0;
}
.customitem-gallery-3c img {
  width: 100%;
  height: auto;
  display: block;
}
.customitem-gallery-3c figcaption {
  text-align: center;
  padding-top: 8px;
  font-size: 14px;
}

/* -------------------------------
  カスタムギャラリー（スマホ変則表示対応版）
------------------------------- */
.customitem-gallery-alt {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 40px 0;
}
.customitem-gallery-alt figure {
  margin: 0;
  position: relative;
}
.customitem-gallery-alt img {
  width: 100%;
  height: auto;
  display: block;
}
.customitem-gallery-alt figcaption {
  text-align: center;
  padding-top: 8px;
  font-size: 0.9rem;
}

/* スマホ表示：ギャラリー調整 */
@media (max-width: 575px) {
  .customitem-technologies {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }

  .customitem-gallery-alt {
    grid-template-columns: 1fr 1fr;
  }

  .customitem-gallery-alt figure:nth-child(1),
  .customitem-gallery-alt figure:nth-child(4) {
    grid-column: span 2;
  }

  .customitem-gallery-alt figure:nth-child(2),
  .customitem-gallery-alt figure:nth-child(3) {
    aspect-ratio: 2 / 3;
    overflow: hidden;
  }

  .customitem-gallery-alt figure:nth-child(2) img,
  .customitem-gallery-alt figure:nth-child(3) img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  /* 全体を1カラム化 */
  .customitem-two-column,
  .customitem-gallery-2c,
  .customitem-gallery-3c,
  .customitem-two-column--reverse {
    grid-template-columns: 1fr;
  }

  .customitem-two-column--reverse > div:first-child,
  .customitem-two-column--reverse > div:last-child {
    order: initial;
  }
}

/* -------------------------------
  リンク付き画像（ホバーエフェクト付き）
------------------------------- */
.hover-effect {
  width: 100%;
  max-width: 100%;
  height: auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 8px;
  display: block;
}
.hover-effect:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}
@media screen and (min-width: 768px) {
  .hover-effect {
    width: 50%;
  }
}

/* -------------------------------
  枠囲みスタイル
------------------------------- */
.customitem-bordered {
  border: 1px solid #313131;
  padding: 10px;
  margin-top: 20px;
}

/* -------------------------------
  注意書きスタイル
------------------------------- */
.customitem-note {
  color: red;
  margin-top: 20px;
}

/* -------------------------------
  CEマークと特徴の2カラム構成
------------------------------- */
.ce-feature-section {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 16px;
  align-items: start;
  margin: 40px 0;
}

.ce-feature-section ul {
  font-size: 1.4rem;
  line-height: 1.8;
}
.ce-feature-section li {
  margin-bottom: 0.5em;
}

.ce-feature-section .note {
  font-size: 1.2rem;
  color: #666;
}

.ce-feature-section img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}

@media (max-width: 768px) {
  .ce-feature-section {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------
  YouTube埋め込み（16:9）
------------------------------- */
.youtube-embed {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* アスペクト比 16:9 */
  overflow: hidden;
}

.youtube-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* -------------------------------
  メディアライブラリ動画（16:9）
------------------------------- */
.video-embed {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* アスペクト比 16:9 */
  overflow: hidden;
}

.video-embed video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* -------------------------------
  メディアライブラリ動画（縦長 450px幅 → 854px高）
------------------------------- */
.responsive-video {
  position: relative;
  width: 100%;
  max-width: 450px;
  height: 0;
  padding-bottom: 189.78%; /* 854 / 450 = 約1.8978 → アスペクト比 9:16 */
  overflow: hidden;
}

.responsive-video video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* 450px以上の場合、高さ固定でパディング無効 */
@media (min-width: 450px) {
  .responsive-video {
    height: 854px;
    padding-bottom: 0;
  }
}
