/* 医療DX案内用カスタムスタイル - 最終調整版 */

.dx-info-container {
    max-width: 800px;
    margin: 20px auto;
    /* ご指定の余白設定（下側を5pxに調整） */
    padding: 30px 30px 5px 30px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #ffffff;
    color: #333;
    line-height: 1.8;
}

/* タイトル部分 */
.dx-info-title {
    color: #005a9c;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px double #005a9c;
}

/* 強調メッセージエリア：常に横並びを維持 */
.dx-highlight-text {
    display: flex;
    align-items: center;      /* 垂直方向の中央揃え */
    justify-content: center; /* 水平方向の中央揃え */
    gap: 10px;               /* 星と文字の間隔 */
    background-color: #f0f7ff;
    color: #005a9c;
    font-weight: bold;
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 10px;
    
    /* 重要：画面が狭くなっても横並びを強制 */
    flex-wrap: nowrap !important;
    flex-direction: row !important;
}

/* テキスト部分：幅が狭いときは自動で改行させる */
.dx-text {
    flex: 1;
    text-align: center;
    line-height: 1.4;
    font-size: 1rem;
    /* 重要：中身の長さに引っ張られず縮むように設定 */
    min-width: 0;
}

/* ☆アイコンの装飾 */
.dx-star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: #005a9c;
    color: #ffffff;
    border-radius: 50%;
    font-size: 1.1rem;
    flex-shrink: 0; /* 星が潰れるのを防ぐ */
}

/* リスト部分 */
.dx-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dx-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    border-bottom: 1px dotted #ccc;
    padding-bottom: 10px;
    padding-left: 0;
}

/* 記号部分のデザイン */
.dx-list li::before {
    content: '●';
    color: #005a9c;
    font-size: 1rem;
    margin-right: 8px;
    margin-left: 5px;
    line-height: 1.8;
    display: inline-block;
    flex-shrink: 0;
    /* 位置の微調整：0pxで補正できない場合はここを数ピクセル動かしてください */
    transform: translateY(-1px); 
}

.dx-list li:last-child {
    border-bottom: none;
}

/* 枠の外の画像用スタイル */
.dx-external-image {
    max-width: 800px;
    margin: 20px auto;
    text-align: center;
}

.dx-external-image img {
    width: 500px; 
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* レスポンシブ対応 */
@media (max-width: 600px) {
    .dx-info-container, .dx-external-image {
        width: 85%;
        margin: 10px auto;
        padding: 20px 20px 5px 20px;
   }
    
    /* 縦並びにする設定（flex-direction: column）を削除しました */
    
    .dx-external-image img {
        width: 80%;
    }

    /* スマホで星が大きすぎる場合はここで微調整 */
    .dx-star {
        width: 24px;
        height: 24px;
        font-size: 0.9rem;
    }
}