/* 基本スタイル */
.point-box {
    margin: 2em 0;
    transition: all 0.3s ease;
}

/* ヘッダー部分 */
.point-box-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

/* ヘッダーがない場合はマージンなし */
.point-box-header:empty {
    display: none;
}

/* アイコン */
.point-box-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}

/* タイトル */
.point-box-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin: 0;
    flex: 1;
}

/* コンテンツ */
.point-box-content {
    /*color: #555;*/
    line-height: 1.7;
    /*font-size: 15px;*/
}

.point-box-content p {
    margin: 0 0 0.8em 0;
}

.point-box-content p:last-child {
    margin-bottom: 0;
}

/* ============================================
   スタイル1: 枠線ボックス（border）
   ============================================ */
.point-box-style-border {
    padding: 20px 24px;
    border-left: 6px solid var(--box-border-color, #ffc107);
    border-radius: 8px;
    background-color: var(--box-bg-color, #fff9e6);
}

/* ============================================
   スタイル2: ノート風（note）
   ============================================ */
.point-box-style-note {
    padding: 20px 24px;
    background-color: var(--box-bg-color, #fff9e6);
    border: 2px solid var(--box-border-color, #ffc107);
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
}

/* ノート風の穴 */
.point-box-style-note::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent 10px,
        var(--box-border-color, #ffc107) 10px,
        var(--box-border-color, #ffc107) 20px
    );
}

.point-box-style-note .point-box-header,
.point-box-style-note .point-box-content {
    margin-left: 24px;
}

/* ============================================
   スタイル3: シンプル（simple）
   ============================================ */
.point-box-style-simple {
    padding: 20px 24px;
    background-color: var(--box-bg-color, #fff9e6);
    border-radius: 8px;
}

/* ============================================
   スタイル4: タイトル飛び出し（popup）
   ============================================ */
.point-box-style-popup {
    padding: 40px 24px 20px 24px;
    background-color: var(--box-bg-color, #fff9e6);
    border: 2px solid var(--box-border-color, #ffc107);
    border-radius: 8px;
    position: relative;
    margin-top: 2.5em;
}

.point-box-style-popup .point-box-header {
    position: absolute;
    top: -16px;
    left: 20px;
    background-color: var(--box-border-color, #ffc107);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 0;
}

.point-box-style-popup .point-box-title {
    color: #fff;
    font-size: 16px;
}

.point-box-style-popup .point-box-icon {
    font-size: 20px;
}

/* タイトルがない場合は通常の余白 */
.point-box-style-popup:not(:has(.point-box-header)) {
    padding-top: 20px;
    margin-top: 2em;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .point-box-style-border,
    .point-box-style-note,
    .point-box-style-simple {
        padding: 16px 20px;
    }
    
    .point-box-style-popup {
        padding: 36px 16px 16px 16px;
    }
    
    .point-box-icon {
        font-size: 20px;
    }
    
    .point-box-title {
        font-size: 16px;
    }
    
    .point-box-content {
        /*font-size: 14px;*/
    }
    
    .point-box-style-note .point-box-header,
    .point-box-style-note .point-box-content {
        margin-left: 16px;
    }
}