@charset "utf-8";

.box30 {
    margin: 2em 0;
	padding: 0px 0px 5px 0px;
    background: #f1f1f1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.22);
}

.box30 p {
	padding: 0px 30px;
}

.box-title {
	margin-bottom: 10px;
    font-size: 2em;
    background: #6FC017;
    padding: 10px;
    color: #FFF;
    letter-spacing: 0.05em;
}

.f2 {
	    font-size: 2em !important;	
}
.bold {
	font-weight: bold;
}
.mincho {
	font-family: YuMincho, "Yu Mincho", "Hiragino Mincho ProN", "serif";
	    font-size: 2.5em !important;
}
.ct-title {
    font-size: 2.0em !important;
	color: #0F4498;
	font-weight: bold;
}

.box-step-title {
    position: relative;
    width: 100%;
    margin: 2em auto; /* 円が上に飛び出すため、上の余白を広めに確保 */
    padding: 1em 3em;
    border: 2px solid #6FC017;
    border-radius: 3px;
    color: #333;
    box-sizing: border-box;
}

/* 青いタイトル帯（画像のデザインを再現） */
.box-step-title::after {
    content: attr(data-title);
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2.0em; /* タイトル帯の縦幅 */
    background-color: #6FC017;
    color: #fff;
    font-weight: bold;
	font-size: 2.0em;
	font-family: YuMincho, "Yu Mincho", "Hiragino Mincho ProN", "serif";
}

/* タイトル帯の分、本文を下に押し下げるための調整 */
.box-step-title {
    padding-top: 6em; /* タイトル帯の高さ(2.5em) + 本文との余白(1em) */
}

/* ★左上の円（数字）の設定：青い帯に少し被るように配置 */
.box-step-title::before {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: -1em; /* 上に1em飛び出させる */
    left: -1em; /* 左に1em飛び出させる */
    width: 4em; /* タイトル帯の高さに合わせて少し大きめに調整 */
    height: 4em;
    border-radius: 50%;
    background-color: #6FC017; /* 青に映えるオレンジ等（お好みで#2589d0など青系にしてください） */
    border: 2px solid #fff; /* 青い帯や外枠と馴染むように白枠を付与 */
    color: #fff;
    font-weight: 600;
	font-size: 2em;
    content: attr(data-number);
    z-index: 2; /* 青いタイトル帯よりも前面に出す */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* 少し立体感を出す影（不要なら削除してください） */
}

@media screen and (max-width: 500px) {


.box-step-title {
    position: relative;
    width: 100%;
    margin: 2em auto; /* 円が上に飛び出すため、上の余白を広めに確保 */
    padding: 1em 1.5em;
    border: 2px solid #6FC017;
    border-radius: 3px;
    color: #333;
    box-sizing: border-box;
}

/* 青いタイトル帯（画像のデザインを再現） */
.box-step-title::after {
    content: attr(data-title);
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1.5em; /* タイトル帯の縦幅 */
    background-color: #6FC017;
    color: #fff;
    font-weight: bold;
	font-size: 1.5em;
	font-family: YuMincho, "Yu Mincho", "Hiragino Mincho ProN", "serif";
}

/* タイトル帯の分、本文を下に押し下げるための調整 */
.box-step-title {
    padding-top: 3.2em; /* タイトル帯の高さ(2.5em) + 本文との余白(1em) */
}

/* ★左上の円（数字）の設定：青い帯に少し被るように配置 */
.box-step-title::before {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: -1em; /* 上に1em飛び出させる */
    left: -1em; /* 左に1em飛び出させる */
    width: 4em; /* タイトル帯の高さに合わせて少し大きめに調整 */
    height: 4em;
    border-radius: 50%;
    background-color: #6FC017; /* 青に映えるオレンジ等（お好みで#2589d0など青系にしてください） */
    border: 2px solid #fff; /* 青い帯や外枠と馴染むように白枠を付与 */
    color: #fff;
    font-weight: 600;
	font-size: 1.1em;
    content: attr(data-number);
    z-index: 2; /* 青いタイトル帯よりも前面に出す */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* 少し立体感を出す影（不要なら削除してください） */
}
.ct-title {
    font-size: 1.5em !important;
	color: #0F4498;
}
.box-step-title p {
    font-size: 1.2em !important;
	}
}