Nice!
COPY
-
ダミーテキストダミーテキストダミーテキストダミーテキストダミーテキストダミーテキストダミーテキストダミーテキストダミーテキストダミーテキストダミーテキストダミーテキストダミーテキストダミーテキストダミーテキストダミーテキストダミーテキストダミーテキスト
-
ダミーテキストダミーテキストダミーテキストダミーテキストダミーテキストダミーテキストダミーテキストダミーテキストダミーテキストダミーテキストダミーテキストダミーテキストダミーテキストダミーテキストダミーテキストダミーテキストダミーテキストダミーテキスト
-
ダミーテキストダミーテキストダミーテキストダミーテキストダミーテキストダミーテキストダミーテキストダミーテキストダミーテキストダミーテキストダミーテキストダミーテキストダミーテキストダミーテキストダミーテキストダミーテキストダミーテキストダミーテキスト
-
ダミーテキストダミーテキストダミーテキストダミーテキストダミーテキストダミーテキストダミーテキストダミーテキストダミーテキストダミーテキストダミーテキストダミーテキストダミーテキストダミーテキストダミーテキストダミーテキストダミーテキストダミーテキスト
Nice!
COPY
* {
margin: 0;
padding: 0;
list-style: none;
box-sizing: border-box;
}
.faq {
background: #ffe680;
font-family: "M PLUS Rounded 1c", sans-serif;
}
.faq .inner {
max-width: 800px;
margin: 0 auto;
padding: 100px 15px;
}
.faq .inner ul li {
padding: 20px 20px;
margin-bottom: 20px;
background: #f4701e;
-webkit-box-shadow: 5px 5px 0 0 #1b5f4d;
box-shadow: 5px 5px 0 0 #1b5f4d;
line-height: 1.8;
color: #fff;
font-weight: 600;
font-size: 16px;
border-radius: 10px;
}
@media only screen and (max-width: 500px) {
.faq .inner ul li {
font-size: 14px;
padding: 15px 10px;
}
}
.faq .inner ul li .Q {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
gap: 20px;
cursor: pointer;
}
.faq .inner ul li .Q .icon {
line-height: 0;
}
@media only screen and (max-width: 500px) {
.faq .inner ul li .Q .icon {
display: none;
}
}
.faq .inner ul li .Q .icon img {
width: 30px;
}
.faq .inner ul li .Q .txt {
-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1;
}
.faq .inner ul li .Q:after {
content: "";
display: block;
width: 0.5em;
height: 0.5em;
border-top: solid 3px #fff;
border-right: solid 3px #fff;
-webkit-transform: rotate(135deg);
transform: rotate(135deg);
-webkit-transition: 0.2s;
transition: 0.2s;
margin-left: 1em;
}
.faq .inner ul li .Q.open:after {
-webkit-transform: rotate(-45deg);
transform: rotate(-45deg);
}
.faq .inner ul li .A {
display: none;
font-size: 0.9em;
padding-top: 10px;
}
.faq .inner ul li .A .box {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
gap: 10px;
}
.faq .inner ul li .A .box .icon {
line-height: 0;
}
@media only screen and (max-width: 500px) {
.faq .inner ul li .A .box .icon {
display: none;
}
}
.faq .inner ul li .A .box .icon img {
width: 40px;
}
.faq .inner ul li .A .box .txt {
-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1;
padding: 20px;
margin-top: 10px;
background: #fff;
border-radius: 10px;
color: #1b5f4d;
}
@media only screen and (max-width: 500px) {
.faq .inner ul li .A .box .txt {
padding: 15px;
}
}
.faq .inner ul li .A .box .txt p {
line-height: 1.8;
}
/*# sourceMappingURL=style.css.map */
Nice!
COPY
* {
margin: 0;
padding: 0;
list-style: none;
box-sizing: border-box;
}
.faq {
background: #ffe680;
font-family: "M PLUS Rounded 1c", sans-serif;
.inner {
max-width: 800px;
margin: 0 auto;
padding: 100px 15px;
ul {
li {
padding: 20px 20px;
margin-bottom: 20px;
background: #f4701e;
box-shadow: 5px 5px 0 0 #1b5f4d;
line-height: 1.8;
color: #fff;
font-weight: 600;
font-size: 16px;
border-radius: 10px;
@media only screen and (max-width: 500px) {
font-size: 14px;
padding: 15px 10px;
}
.Q {
display: flex;
align-items: center;
gap: 20px;
cursor: pointer;
.icon {
line-height: 0;
@media only screen and (max-width: 500px) {
display: none;
}
img {
width: 30px;
}
}
.txt {
flex: 1;
}
&:after {
content: "";
display: block;
width: 0.5em;
height: 0.5em;
border-top: solid 3px #fff;
border-right: solid 3px #fff;
transform: rotate(135deg);
transition: 0.2s;
margin-left: 1em;
}
&.open:after {
transform: rotate(-45deg);
}
}
.A {
display: none;
font-size: 0.9em;
padding-top: 10px;
.box {
display: flex;
gap: 10px;
.icon {
line-height: 0;
@media only screen and (max-width: 500px) {
display: none;
}
img {
width: 40px;
}
}
.txt {
flex: 1;
padding: 20px;
margin-top: 10px;
background: #fff;
border-radius: 10px;
color: #1b5f4d;
@media only screen and (max-width: 500px) {
padding: 15px;
}
p {
line-height: 1.8;
}
}
}
}
}
}
}
}
Nice!
COPY
$(function () {
$(".Q").on("click", function () {
$(this).next().slideToggle(200);
$(this).toggleClass("open", 200);
});
});