.sv-article-container {
  container-type: inline-size;
  max-width: 90%;
  margin: 0 auto;
  font-family: "Outfit", "Inter", "Roboto", sans-serif;
  color: #333;
}

/* ヒーローセクション */
.sv-hero-section {
  display: flex;
  align-items: center;
  background-color: var(--bg_gray);
  margin-bottom: 4cqw;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
}
.sv-block-headline {
  font-size: var(--font-xl);
  line-height: 1.5;
  font-weight: bold;
  margin: 6cqw 0 3cqw;
  color: #000;
}

@media (max-width: 767px) {
  .sv-block-headline {
    margin: 10cqw 0 3cqw;
    font-size: var(--font-2xl);
  }
}
.sv-hero-section-img {
  width: 50%;
  line-height: 0;
}

.sv-hero-section-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.sv-hero-section-info {
  width: 50%;
  padding: 4cqw;
}

.sv-hero-section-info .sv-date {
  font-size: var(--font-s);
  color: #666;
  margin-bottom: 1rem;
}

.sv-hero-section-info .sv-title {
  font-size: var(--font-xl);
  font-weight: bold;
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

.sv-hero-section-info .sv-name {
  font-size: var(--font-s);
  color: #333;
  border-bottom: 1px solid #ccc;
  display: inline-block;
  padding-bottom: 0.5rem;
}

@media (max-width: 767px) {
  .sv-hero-section {
    flex-direction: column;
  }

  .sv-hero-section-img,
  .sv-hero-section-info {
    width: 100%;
  }
}

/* コンテンツブロック */
.sv-content-blocks {
  padding: 0 8cqw;
}

.sv-block-img {
  width: 100%;
  margin: auto;
}

.sv-block-img img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  margin-bottom: 2cqw;
}

.sv-block-text {
  font-size: var(--font-m);
  line-height: 1.5;
  margin-bottom: 3cqw;
  color: #000;
}

/* 余白共通 */
.cmn_spacer {
  margin-top: 2rem;
}

@media (max-width: 767px) {
  .cmn_spacer {
    margin-top: 2.8rem;
  }
  /* コンテンツブロック */
  .sv-content-blocks {
    padding: 0;
  }
}

/* おすすめ記事 */
.sv-recommended-section {
  background-color: var(--bg_gray);
  padding: 0.1cqw 4cqw 4cqw;
  margin-top: 6cqw;
}

.recommended-header {
  display: flex;
  align-items: center;
  gap: 2cqw;
}

.sv-recommended-section .recommended-title {
  font-size: var(--font-2xl);
  font-weight: bold;
  margin: 3cqw 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.recommended-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2cqw;
}

.recommended-item {
  display: flex;
  gap: 1.5cqw;
  text-decoration: none;
  color: inherit;
  border-radius: 15px;
  flex-direction: column;
  background: #fff;
  overflow: hidden;
}

.recommended-item .sv-tag {
  margin-top: 1cqw;
}

.recommended-thumb img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.recommended-info {
  padding: 1.5cqw;
}

.recommended-info time {
  font-size: 0.8rem;
  color: #888;
  display: block;
  margin-bottom: 0.5rem;
}

.recommended-post-title {
  font-size: var(--font-s);
  line-height: 1.5;
  font-weight: bold;
}

@media (max-width: 767px) {
  .recommended-list {
    grid-template-columns: 1fr;
    gap: 6cqw;
  }

  .recommended-item {
    flex-direction: column;
    gap: 3cqw;
  }

  .recommended-thumb {
    width: 100%;
  }

  .recommended-info {
    padding: 3cqw;
  }
  .recommended-header {
    display: flex;
    gap: 2cqw;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 3cqw;
  }

  .recommended-info time {
    margin-top: 0.5rem;
  }
}
/* 回り込みブロック全体の基本 */
.sv-block--float {
  width: 100%;
  margin-bottom: 4cqw;
}

/* 画像のfloat設定 */
.is-left .sv-float-img {
  float: left;
  margin: 0 4cqw 1cqw 0;
}

.is-right .sv-float-img {
  float: right;
  margin: 0 0 1cqw 4cqw;
}

/* 画像自体のサイズ制限 */
.sv-float-img.w-50 {
  width: 48%;
} /* 50%ぴったりより少し余裕を持たせる */
.sv-float-img.w-33 {
  width: 32%;
}
.sv-float-img.w-25 {
  width: 24%;
}

.sv-float-img img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  display: block;
}

/* テキストのスタイル：ここが重要！ */
.sv-block-text {
  display: block;
  overflow: visible;
  line-height: 1.8;
}

/* スマホ対応 */
@media (max-width: 767px) {
  .is-left .sv-float-img,
  .is-right .sv-float-img {
    float: none;
    width: 100% !important;
    margin: 0 0 4cqw 0;
  }
}

.sv-block--float .sv-block-text.is-wysiwyg-container {
  display: block;
  overflow: visible;

  white-space: normal;
}

.sv-block--float .is-wysiwyg-container p {
  display: inline;
  margin: 0;
  padding: 0;
}

.sv-block--float .is-wysiwyg-container br {
  display: block;
  content: "";
  margin-top: 1.2em;
}

.is-left .sv-float-img {
  float: left;
  margin: 0 4cqw 1.5cqw 0;
}
.is-right .sv-float-img {
  float: right;
  margin: 0 0 1.5cqw 4cqw;
}
.sv-block-text p {
  display: inline; /* 内部の改行をbrに任せ、pタグ自体は塊を作らない */
  margin: 0;
  padding: 0;
  line-height: 1.8;
}

/* &nbsp; から変換された <br> を「空行」として見せる */
.sv-block-text br {
  display: block;
  content: "";
  margin-top: 1.2em; /* 空行の高さ（お好みで調整してください） */
}

/* 最後のbrで余計な余白が出ないようにする調整 */
.sv-block-text p > br:last-child {
  display: none;
}
.sv-hero-section-img {
  position: relative;
  cursor: pointer;
}

.sv-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(0, 0, 0, 0.6); /* 半透明の黒 */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  pointer-events: none; /* 親のクリックを邪魔しない */
  z-index: 2;
}
/* ホバー時に少し明るくする演出 */
.sv-hero-section-img:hover .sv-play-button {
  background: rgba(0, 0, 0, 0.8);
}

/* 三角形の部分 */
.sv-play-button span {
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 15px 0 15px 25px; /* 上・右・下・左 の幅で形を調整 */
  border-color: transparent transparent transparent #ffffff; /* 左側だけ白くして右向き三角にする */
  margin-left: 5px; /* 中心に合わせるための微調整 */
}

/* 動画プレイヤーのコンテナ */
.video-overlay {
  display: none; /* 初期は非表示 */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 10;
}

.video-overlay.is-active {
  display: block;
}

.video-overlay iframe {
  width: 100%;
  height: 100%;
}

.js-video-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 11;
  color: #fff;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
}

.sv-hero-sub-link {
  margin: 24px 0;
  text-align: left; /* infoエリア内ならそのままでOK */
}

.sv-hero-img-button {
  display: inline-block;
  transition:
    transform 0.2s ease-in-out,
    filter 0.2s;
  max-width: 80%; /* ボタンのサイズ感に合わせて調整 */
}

.sv-hero-img-button img {
  width: 100%;
  height: auto;
  display: block;
  /* 必要に応じて角丸などを追加 */
  /* border-radius: 6px; */
}

/* ホバー時に少し浮き上がるような演出 */
.sv-hero-img-button:hover {
  transform: scale(1.03);
  filter: brightness(1.1);
}

.sv-hero-sub-link-text {
  margin-bottom: 3cqw;
}

.sv-link-label {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 5px;
}

.sv-link-main-text {
  font-size: var(--font-m);
  font-weight: bold;
  color: #333;
  line-height: 1.6;
}

.sv-hero-img-button {
  display: inline-block;
  max-width: 500px;
  transition:
    opacity 0.3s,
    transform 0.2s;
}

.sv-hero-img-button img {
  width: 100%;
  height: auto;
  display: block;
}

.sv-hero-img-button:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}
