下記Beyondコード
JS head
なし
HTML
<div class="question-reveal-scroll js-scroll-reveal-enquete-select">
<form name="form-scroll-enquete">
<div class="questionArea js-form-radio">
<h2 class="title">ここにテキストが入ります<br />
ここにテキストが入ります</h2>
<div class="navi">
<div class="navi__numbers"><span class="current">01</span><span>02</span><span>03</span><span>04</span><span>05</span><span>06</span></div>
</div>
<div class="imagebox"><picture><img src="https://production.static.squadbeyond.com/uploads/article_photo/photo/711633/2856f88e-0076-4f7a-9dd6-c1e5117bb18b.png" alt="" height="358" width="538" draggable="false" /> </picture></div>
<div class="linkbox"><input id="q1-1" type="radio" name="q1" /><label for="q1-1"><span class="btn">テキスト</span></label><input id="q1-2" type="radio" name="q1" /><label for="q1-2"><span class="btn">テキスト</span></label><input id="q1-3" type="radio" name="q1" /><label for="q1-3"><span class="btn">テキスト</span> </label><input id="q1-4" type="radio" name="q1" /><label for="q1-4"><span class="btn">テキスト</span> </label></div>
</div>
<div class="questionArea js-form-radio">
<h2 class="title">ここにテキストが入ります</h2>
<div class="navi">
<div class="navi__numbers"><span>01</span> <span class="current">02</span> <span>03</span> <span>04</span> <span>05</span> <span>06</span></div>
</div>
<div class="imagebox"><picture><img src="https://production.static.squadbeyond.com/uploads/article_photo/photo/711633/2856f88e-0076-4f7a-9dd6-c1e5117bb18b.png" alt="" height="358" width="538" draggable="false" /> </picture></div>
<div class="linkbox"><input id="q2-1" type="checkbox" data-ignore="" name="q2" /><label for="q2-1"><span class="btn">テキスト</span></label><input id="q2-2" type="checkbox" data-ignore="" name="q2" /><label for="q2-2"><span class="btn">テキスト</span></label><input id="q2-3" type="checkbox" data-ignore="" name="q2" /><label for="q2-3"><span class="btn">テキスト</span></label><input id="q2-4" type="checkbox" data-ignore="" name="q2" /><label for="q2-4"><span class="btn">テキスト</span></label> <label class="next"> <input type="checkbox" /> <span class="btn">次へ</span> </label></div>
</div>
<div class="questionArea js-form-radio">
<h2 class="title">ここにテキストが入ります</h2>
<div class="navi">
<div class="navi__numbers"><span>01</span> <span>02</span> <span class="current">03</span> <span>04</span> <span>05</span> <span>06</span></div>
</div>
<div class="imagebox"><picture><img src="https://production.static.squadbeyond.com/uploads/article_photo/photo/711633/2856f88e-0076-4f7a-9dd6-c1e5117bb18b.png" alt="" height="358" width="538" draggable="false" /> </picture></div>
<div class="linkbox"><input id="q3-1" type="radio" name="q3" /><label for="q3-1"><span class="btn">テキスト</span></label><input id="q3-2" type="radio" name="q3" /><label for="q3-2"><span class="btn">テキスト</span></label><input id="q3-3" type="radio" name="q3" /><label for="q3-3"><span class="btn">テキスト</span></label><input id="q3-4" type="radio" name="q3" /><label for="q3-4"><span class="btn">テキスト</span> </label></div>
</div>
<div class="questionArea js-form-radio">
<h2 class="title">ここにテキストが入ります</h2>
<div class="navi">
<div class="navi__numbers"><span>01</span> <span>02</span> <span>03</span> <span class="current">04</span> <span>05</span> <span>06</span></div>
</div>
<div class="linkbox"><input id="q4-1" type="radio" name="q4" /><label for="q4-1"><span class="btn">テキスト</span></label><input id="q4-2" type="radio" name="q4" /><label for="q4-2"><span class="btn">テキスト</span></label><input id="q4-3" type="radio" name="q4" /><label for="q4-3"><span class="btn">テキスト</span></label><input id="q4-4" type="radio" name="q4" /><label for="q4-4"><span class="btn">テキスト</span> </label></div>
</div>
<div class="questionArea js-form-radio">
<h2 class="title">ここにテキストが入ります</h2>
<div class="navi">
<div class="navi__numbers"><span>01</span> <span>02</span> <span>03</span> <span>04</span> <span class="current">05</span> <span>06</span></div>
</div>
<div class="imagebox"><picture><img src="https://production.static.squadbeyond.com/uploads/article_photo/photo/711633/2856f88e-0076-4f7a-9dd6-c1e5117bb18b.png" alt="" height="358" width="538" draggable="false" /> </picture></div>
<div class="linkbox"><input id="q5-1" type="checkbox" data-ignore="" name="q5" /><label for="q5-1"><span class="btn">テキスト</span></label><input id="q5-2" type="checkbox" data-ignore="" name="q5" /><label for="q5-2"><span class="btn">テキスト</span></label><input id="q5-3" type="checkbox" data-ignore="" name="q5" /><label for="q5-3"><span class="btn">テキスト</span></label><input id="q5-4" type="checkbox" data-ignore="" name="q5" /><label for="q5-4"><span class="btn">テキスト</span></label> <label class="next"> <input type="checkbox" /> <span class="btn">次へ</span> </label></div>
</div>
<div class="questionArea js-form-radio">
<h2 class="title">ここにテキストが入ります</h2>
<div class="navi">
<div class="navi__numbers"><span>01</span> <span>02</span> <span>03</span> <span>04</span> <span>05</span> <span class="current">06</span></div>
</div>
<div class="imagebox"><picture><img src="https://production.static.squadbeyond.com/uploads/article_photo/photo/711633/2856f88e-0076-4f7a-9dd6-c1e5117bb18b.png" alt="" height="358" width="538" draggable="false" /> </picture></div>
<div class="linkbox"><input id="q6-1" type="radio" name="q6" /><label for="q6-1"><span class="btn">テキスト</span></label><input id="q6-2" type="radio" name="q6" /><label for="q6-2"><span class="btn">テキスト</span></label><input id="q6-3" type="radio" name="q6" /><label for="q6-3"><span class="btn">テキスト</span></label><input id="q6-4" type="radio" name="q6" /><label for="q6-4"><span class="btn">テキスト</span></label></div>
</div>
<span class="send-btn js-switch-btn"> <button class="js-send" type="button">回答を完了する</button> </span>
<div class="revealarea js-reveal is-hidden">完了ボタンを押すと表示される部分。完了ボタンを押すと表示される部分。完了ボタンを押すと表示される部分。完了ボタンを押すと表示される部分。完了ボタンを押すと表示される部分。完了ボタンを押すと表示される部分。完了ボタンを押すと表示される部分。完了ボタンを押すと表示される部分。完了ボタンを押すと表示される部分。完了ボタンを押すと表示される部分。完了ボタンを押すと表示される部分。</div>
</form>
</div>
CSS
.btn{
margin: 0px;
}
.question-reveal-scroll {
width: 750px;
max-width: 100%;
font-size: 16px;
background-color: #fff;
margin: 0 auto 1rem;
padding: 1rem;
line-height: 1.5;
box-sizing: border-box;
}
.question-reveal-scroll .questionArea {
margin-bottom: 30px;
padding-bottom: 30px;
display: flex;
flex-direction: column;
border-bottom: 1px solid #cccccc;
}
.navi {
text-align: center;
margin-bottom: 20px;
order: 1;
}
.navi__numbers {
position: relative;
display: inline-flex;
margin: 10px 0;
font-weight: bold;
}
.navi__numbers::before {
content: '';
width: calc(100% - 40px);
height: 20px;
background-color: #eeeeee;
position: absolute;
top: calc(50% - 10px);
left: 20px;
}
.navi__numbers .current {
color: #fff;
background-color: #ff1493;
}
.navi__numbers span {
color: #ffffff;
background-color: #bbbbbb;
font-size: 20px;
border-radius: 50%;
padding: 0;
margin: 0 10px;
width: 35px;
aspect-ratio: 1/1;
display: inline-flex;
justify-content: center;
align-items: center;
box-sizing: border-box;
position: relative;
}
.navi__numbers .current~span {
color: #fff;
background-color: #eebbcb;
}
.question-reveal-scroll .title {
width: 100%;
color: #000000;
background-color: #ffffff;
font-size: 20px;
text-align: left;
margin: 0 auto 1em;
padding: 0;
order: 2;
}
.question-reveal-scroll .imagebox {
text-align: center;
margin: 0 0 20px;
order: 3;
}
.question-reveal-scroll .imagebox img,
.question-reveal-scroll .imagebox video {
display: inline !important;
}
.question-reveal-scroll .linkbox {
box-sizing: border-box;
order: 4;
}
.question-reveal-scroll input {
display: none;
}
.question-reveal-scroll input+label {
border: none;
padding: 6px;
display: block;
}
.question-reveal-scroll input+label .btn {
color: #000000;
background-color: #eeeeee;
width: 100%;
border-radius: 100vh;
padding: 0.5em 1em;
font-weight: bold;
text-align: center;
font-size: 18px;
display: inline-block;
box-sizing: border-box;
cursor: pointer;
}
.question-reveal-scroll input+label .btn:focus {
outline: none !important;
}
.question-reveal-scroll input:checked+label .btn {
background-color: #ff1493;
color: #ffffff;
}
.question-reveal-scroll ::-moz-focus-inner {
border-color: transparent;
}
.question-reveal-scroll .send-btn {
margin: 16px auto;
}
.question-reveal-scroll .send-btn button {
text-align: center;
border: none;
font-size: 20px;
font-weight: bold;
color: #fff;
margin: 0 auto;
padding: 1em;
background-color: #ff1493;
border-radius: 4px;
position: relative;
pointer-events: auto;
display: block;
transition: transform .2s;
}
.send-btn button:hover {
transform: scale(1.2);
cursor: pointer;
}
.revealarea {
font-size: 20px;
text-align: left;
margin: 48px auto 0;
padding: 0;
box-sizing: border-box;
}
.is-hidden {
display: none;
}
.next {
display: block;
border: none;
text-align: center;
}
.next input {
display: none;
}
.next .btn {
width: auto;
color: #fff;
font-size: 20px;
font-weight: 700;
background: linear-gradient(to bottom, #9acb3e, #018c48);
border: 1px solid #018c48;
border-radius: 5px;
box-shadow: 0 3px 0 #006666;
text-align: center;
position: relative;
margin: 10px auto 12px;
padding: 10px 20px 8px;
display: inline-block;
text-decoration: none;
box-sizing: border-box;
}
.next .btn:hover {
opacity: 0.7;
top: 2px;
}