.tab-wrap { display: flex; flex-wrap: wrap; margin:20px 0; } .tab-wrap:after { content: ''; width: 100%; height: 3px; background: #325A8C; display: block; order: -1; } .tab-label { color: White; background: LightGray; font-weight: bold; white-space: nowrap; text-align: center; padding: 10px .5em; order: -1; position: relative; z-index: 1; cursor: pointer; border-radius: 5px 5px 0 0; flex: 1; } .tab-label:not(:last-of-type) { margin-right: 5px; } .tab-content { width: 100%; height: 0; overflow: hidden; opacity: 0; } .tab-switch:checked+.tab-label { background: #325A8C; } .tab-switch:checked+.tab-label+.tab-content { height: auto; overflow: auto; padding: 15px; opacity: 1; transition: .5s opacity; box-shadow: 0 0 3px rgba(0, 0, 0, 0.3); } .tab-switch { display: none; } .tab-switch:checked+.tab-label:after { top: 100%; left: 50%; border: solid transparent; content: " "; height: 0; width: 0; position: absolute; pointer-events: none; border-color: rgba(136, 183, 213, 0); border-top-color: #325a8c; border-width: 14px; margin-left: -14px; } .tab-switch:checked+.tab-label { background: #ffc0cb; position: relative; } .box6-3 { margin: 2em auto; padding:1em 2em 2em; background-color: #98fb98; /* 背景色 */ border-radius:1px;/*ボックス角の丸み*/ } .box6-3 .box-title { color: #96a3a3 ; /* タイトル文字色 */ font-size: 18px;/*タイトル文字の大きさ*/ font-weight: bold; } .box6-3 .box-title:before { font-family: "Font Awesome 5 Free"; content: "\f059"; font-size: 18px;/*アイコンの大きさ*/ margin: 0 3px 0 0; font-weight: bold; } .box6-4 { margin: 2em auto; padding:1em 2em 2em; background-color:#FFF2C4; /* 背景色 */ border-radius:1px;/*ボックス角の丸み*/ box-shadow: 0px 1px 3px rgba(0,0,0,0.1);/*ボックス影*/ } .box6-4 .box-title { color: #FFBD59; /* タイトル文字色 */ font-size: 18px;/*タイトル文字の大きさ*/ font-weight: bold; } .box6-4 .box-title:before { font-family: "Font Awesome 5 Free"; content: '\f00c'; font-size: 18px;/*アイコンの大きさ*/ margin: 0 3px 0 0; font-weight: bold; } .box6-5 { margin: 2em auto; padding:1em 2em 2em; background-color:#afeeee; /* 背景色 */ border-radius:1px;/*ボックス角の丸み*/ box-shadow: 0px 1px 3px rgba(0,0,0,0.1);/*ボックス影*/ } .box6-5 .box-title { color: #FFBD59; /* タイトル文字色 */ font-size: 18px;/*タイトル文字の大きさ*/ font-weight: bold; } .box6-5 .box-title:before { font-family: "Font Awesome 5 Free"; content: '\f00c'; font-size: 18px;/*アイコンの大きさ*/ margin: 0 3px 0 0; font-weight: bold; } .box6-6 { margin: 2em auto; padding:1em 2em 2em; background-color:#FFF2C4; /* 背景色 */ border-radius:1px;/*ボックス角の丸み*/ box-shadow: 0px 1px 3px rgba(0,0,0,0.1);/*ボックス影*/ } .box6-6 .box-title { color: #FFBD59; /* タイトル文字色 */ font-size: 18px;/*タイトル文字の大きさ*/ font-weight: bold; } .box6-6 .box-title:before { font-family: "Font Awesome 5 Free"; content: '\f00c'; font-size: 18px;/*アイコンの大きさ*/ margin: 0 3px 0 0; font-weight: bold; } h2{ position:relative; padding:0px 15px; } h2::before{ content:""; position:absolute; background:#DEEBF7; width:50px; height:50px; border-radius:50%; top:50%; left:5px; transform:translateY(-50%); z-index:-1; } ul { background: #fof8ff; box-shadow: 0px 0px 0px 10px #fffde8;/*線の外側*/ border: dashed 2px #6495ed;/*破線*/ border-radius: 9px; margin-left: 9px;/*はみ出ないように調整*/ margin-right: 9px;/*はみ出ないように調整*/ padding: 0.5em 0.5em 0.5em 2em; } ul li, ol li { line-height: 1.5; padding: 0.5em 0; } h4{ position:relative; padding:0px 15px; } h4::before{ content:""; position:absolute; background:lightsalmon; width:50px; height:50px; border-radius:50%; top:50%; left:5px; transform:translateY(-50%); z-index:-1; } .box9 { margin: 1em 0 1.5em 0; background: #ffebcd; /* 背景色 */ padding: 1em; } .box9-title { color: black /* タイトル文字色 */ font-size: 18px; font-weight: bold; } .box9-title:before { font-family: "Font Awesome 5 Free"; content: "\f059"; font-size: 18px; margin: 0 3px 0 0; } .box9 p { margin: 0; padding: 0; } .sample_box2_5 { position: relative; padding: 1em 1.5em; margin: 2em 0; background-color: #ffffff ;/*背景色*/ color: #000000;/*文字色*/ z-index: 1; } .sample_box2_5::before, .sample_box2_5::after { position: absolute; content: ""; width: 100%; height: 100%; border-radius: 4px; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); } .sample_box2_5::before { background-color: rgba(255, 255, 255, 0.2); left: 0; top: 0; z-index: -1; } .sample_box2_5::after { background-color: #afeeee;/*ズレている方の背景色*/ top: 5px; left: 5px; z-index: -2; } .sample_box2_5 p { margin: 0; padding: 0; }