.image-with-text-overlay {
    position: relative;
    width: 100%;
    height: 180px; /* PCでの表示時の高さ。必要に応じて調整してください */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff; /* テキストの色 */
    text-align: center;
}

/* 画像の表示と暗さ調整、比率維持のロジック */
.image-with-text-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* HTMLで設定したカスタムプロパティ（CSS変数）から画像URLを取得 */
    background-image: var(--background-image-url);
    background-size: cover; /* 画像の縦横比を保ちつつ、要素全体を覆う */
    background-position: center; /* 画像を中央に配置 */
    filter: brightness(60%); /* 画像を60%の明るさに暗くする */
    /* 半透明のオーバーレイで暗くしたい場合は、上のfilter行を削除し、以下を使用 */
    /* background: rgba(0, 0, 0, 0.4); */
    /* filter: none; */
    z-index: 1; /* テキストより奥に配置 */
}

/* テキストコンテンツの配置とスタイル */
.content-overlay {
    position: relative; /* 暗くなった画像より手前に表示 */
    z-index: 2; /* テキストを画像より手前に来るように */
    padding: 20px;
    min-width: 800px; /* テキストの最大幅 */
    box-sizing: border-box;
}

.content-overlay h1 {
    font-size: 2.5em; /* タイトルのフォントサイズ */
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* タイトルに影をつけて読みやすく */
}

.content-overlay .description-text {
    font-size: 1.1em; /* 説明文のフォントサイズ */
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7); /* 説明文に影をつけて読みやすく */
}

---

### スマートフォン対応

以下のCSSスニペットを、上記のCSSに追加してください。
画面幅が768px以下のデバイスで見た際に、高さや文字サイズが調整され、**説明文が非表示**になります。

```css
@media (max-width: 768px) {
    .image-with-text-overlay {
        height: 200px; /* スマートフォンでの高さを調整 */
    }

    .content-overlay h1 {
        font-size: 1.8em; /* スマートフォンでのタイトルサイズを調整 */
        margin-bottom: 10px;
    }


@media (max-width: 580px) { 


.content-overlay .description-text {
    font-size: 0.1em; /* 説明文のフォントサイズ */
}
