/* フレームスタイル：シンプルなクラス名で使用可能 */

/* 基本設定 */
:root {
    --frame-padding-x: 20px;
    --frame-padding-y: 20px;
}

/* フレーム3: 角丸＋影付き枠 */
.frame3 {
    background-color: white;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* 枠内のh3スタイル調整 */
.frame3 h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* 枠内のpスタイル調整 */
.frame3 p {
    margin-bottom: 0;
}

/* 番号付きフレームシステム */
.number-frame {
    position: relative;
}

/* 番号スタイル */
.flow-number {
    position: absolute;
    top: -15px;
    left: -10px;
    z-index: 10;
}

.flow-number i {
    font-size: 3rem;
    color: #ffde21;
    position: relative;
}

.flow-number i::before {
    position: relative;
    z-index: 1;
}

.flow-number i::after {
    content: attr(data-number);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    color: #575757;
    z-index: 2;
    font-style: normal;
}

/* 制作の流れのレイアウト調整 */
.flow-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.flow-left {
    position: relative;
    flex-shrink: 0;
    width: 200px;
}

.flow-left .flow-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.flow-left .flow-number {
    position: absolute;
    top: -10px;
    left: -10px;
}

.flow-right {
    flex: 1;
}

.flow-right h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: bold;
}

.flow-right p {
    margin: 0;
    line-height: 1.6;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .flow-item {
        flex-direction: column;
    }
    
    .flow-left {
        width: 100%;
    }
    
    .flow-number i {
        font-size: 2.5rem;
    }
    
    .flow-number i::after {
        font-size: 1.2rem;
    }
}