.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 0.3cqw 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-right .sv-float-img {
    float: right;
    margin: 0 0 1.5cqw 4cqw;
}

.sv-block-text p {
    display: inline;
    margin: 0;
    padding: 0;
    line-height: 1.8;
}

.sv-block-text br {
    display: block;
    content: "";
    margin-top: 1.2em;
}

.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;
}

.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;
}

.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);
}

/* ==================================================
   ★ 追加拡張ブロック用スタイル
   ================================================== */

/* 1. 複数画像ギャラリー (2〜4列) */
.sv-block--gallery {
    margin-bottom: 4cqw;
}

.sv-gallery-grid {
    display: grid;
    gap: 2cqw;
}

.sv-block--gallery.cols-2 .sv-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
}

.sv-block--gallery.cols-3 .sv-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
}

.sv-block--gallery.cols-4 .sv-gallery-grid {
    grid-template-columns: repeat(4, 1fr);
}

.sv-gallery-item {
    margin: 0;
}

.sv-gallery-img img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    display: block;
    object-fit: cover;
}

.sv-gallery-caption {
    font-size: var(--font-s, 0.85rem);
    color: #666;
    margin-top: 0.8cqw;
    text-align: center;
}

@media (max-width: 767px) {
    .sv-gallery-grid {
        grid-template-columns: 1fr !important;
        gap: 4cqw;
    }
}

/* 2. 受賞者・箇条書きリスト（背景なし・リード文対応） */
.sv-block--list {
    margin-bottom: 4cqw;
}

.sv-list-title {
    font-size: var(--font-l, 1.2rem);
    font-weight: bold;
    margin-bottom: 1.5cqw;
    color: #000;
    border-bottom: 2px solid #ccc;
    padding-bottom: 0.5cqw;
}

/* リード文用スタイル */
.sv-list-lead {
    font-size: var(--font-m, 1rem);
    line-height: 1.8;
    color: #333;
    margin-bottom: 2.5cqw;
}

.sv-custom-list {
    margin: 0;
    padding: 0;
}

.sv-list-item {
    margin-bottom: 2cqw;
}

.sv-list-item:last-child {
    margin-bottom: 0;
}

.sv-list-term {
    font-size: var(--font-m, 1rem);
    font-weight: bold;
    color: #111;
    margin-bottom: 0.3cqw;
}

.sv-list-desc {
    font-size: var(--font-s, 0.95rem);
    color: #444;
    margin-left: 0;
    line-height: 1.6;
}

@media (max-width: 767px) {
    .sv-list-item {
        margin-bottom: 4cqw;
    }

    .sv-list-lead {
        margin-bottom: 4cqw;
    }
}

/* 3. 注釈エリア (※1 等) */
.sv-block--annotation {
    margin-top: 4cqw;
    margin-bottom: 4cqw;
    border-top: 1px dashed #ccc;
    padding-top: 2cqw;
}

.sv-annotation-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: var(--font-s, 0.85rem);
    color: #666;
    line-height: 1.6;
}

.sv-annotation-list li {
    margin-bottom: 0.3em;
}

/* ==================================================
   ★ 画像＋テキスト（回り込み / 回り込まない ＆ サイズ拡張）
   ================================================== */

/* キャプションの共通設定 */
.sv-img-caption {
    font-size: 0.8em;
    margin-top: 5px;
    color: #666;
    text-align: center;
}

/* 1. 回り込みスタイル (is-float) */
.sv-block--image-text.is-float {
    width: 100%;
    margin-bottom: 4cqw;
}

.sv-block--image-text.is-float.is-left .sv-float-img {
    float: left;
    margin: 0 4cqw 1cqw 0;
}

.sv-block--image-text.is-float.is-right .sv-float-img {
    float: right;
    margin: 0 0 1cqw 4cqw;
}

/* 2. 回り込まないスタイル (is-no_wrap) - Flexboxで整列 */
.sv-block--image-text.is-no_wrap {
    display: flex;
    gap: 3cqw;
    align-items: flex-start;
    margin-bottom: 4cqw;
}

.sv-block--image-text.is-no_wrap.is-right {
    flex-direction: row-reverse;
}

.sv-block--image-text.is-no_wrap .sv-float-img {
    float: none !important;
    margin: 0 !important;
    flex-shrink: 0;
}

.sv-block--image-text.is-no_wrap .sv-block-text {
    flex-grow: 1;
    margin-bottom: 0;
}

/* 3. 画像幅バリエーション (20%〜100%) */
.sv-float-img.w-20 {
    width: 20%;
}

.sv-float-img.w-25 {
    width: 24%;
}

.sv-float-img.w-33 {
    width: 32%;
}

.sv-float-img.w-40 {
    width: 39%;
}

.sv-float-img.w-50 {
    width: 48%;
}

.sv-float-img.w-60 {
    width: 58%;
}

.sv-float-img.w-70 {
    width: 68%;
}

.sv-float-img.w-100 {
    width: 100%;
}

/* 回り込まない＆100%の場合は縦並びに */
.sv-block--image-text.is-no_wrap .sv-float-img.w-100 {
    width: 100%;
}

.sv-block--image-text.is-no_wrap:has(.w-100) {
    flex-direction: column !important;
}

@media (max-width: 767px) {
    .sv-block--image-text.is-no_wrap {
        flex-direction: column !important;
    }

    .sv-block--image-text.is-no_wrap .sv-float-img,
    .sv-block--image-text.is-float .sv-float-img {
        float: none !important;
        width: 100% !important;
        margin: 0 0 4cqw 0 !important;
    }
}

/* ==================================================
   ★ 動画紹介カードブロック (.sv-block--video-intro)
   ================================================== */
.sv-block--video-intro {
    background-color: var(--bg_gray, #f9f9f9);
    padding: 4cqw;
    border-radius: 18px;
    margin-bottom: 4cqw;
}

.sv-v-intro-title {
    font-size: var(--font-l, 1.2rem);
    font-weight: bold;
    margin-bottom: 3cqw;
    color: #000;
    border-left: 4px solid #333;
    padding-left: 12px;
    line-height: 1.4;
}

.sv-v-intro-inner {
    display: flex;
    flex-direction: column;
    gap: 3cqw;
}

.sv-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.sv-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.sv-v-intro-desc {
    font-size: var(--font-m, 1rem);
    line-height: 1.8;
    color: #333;
    margin-bottom: 3cqw;
}

.sv-v-intro-btn-wrap {
    text-align: center;
}

.sv-v-intro-btn {
    display: inline-block;
    background-color: #ff0000;
    /* YouTubeカラー */
    color: #fff;
    font-weight: bold;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 0, 0, 0.2);
}

.sv-v-intro-btn:hover {
    background-color: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 0, 0, 0.3);
}

@media (max-width: 767px) {
    .sv-block--video-intro {
        padding: 5cqw;
    }

    .sv-v-intro-btn {
        width: 100%;
        box-sizing: border-box;
    }
}