@use "../../foundation/import" as f; /* faq ----------------------------------- */ .js-toggle-wrap { .jsAc-contents { display: none; } } .c-faq { margin: 120px 0 0; padding-bottom: 74px; &-group { margin-left: auto; margin-right: auto; max-width: 994px; width: calc(100% - 40px); } &__txt { flex: 1 1 50%; min-width: 0; line-height: 1.6; } &-item { margin-bottom: 20px; border: 2px solid #fcc800; border-radius: 10px; box-shadow: 0 5px 10px rgb(0 0 0 / 6%); overflow: hidden; &__head { display: flex; cursor: pointer; transition: opacity 0.3s 0s; &:hover { opacity: 0.6; } &::before { content: 'Q'; width: 52px; min-width: 52px; display: flex; justify-content: center; align-items: center; font-family: "Helvetica Neue", Helvetica, Arial, Verdana, Roboto, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "Meiryo UI", "メイリオ", Meiryo, "MS Pゴシック", "MS PGothic", sans-serif; font-size: 1.9em; font-weight: normal; line-height: 1; color: #fff; background: #fcc800; transition: all 0.3s; } .c-faq__txt { position: relative; height: 56px; display: flex; justify-content: left; align-items: center; padding: 0 0 0 20px; font-family: "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴシック", "メイリオ", Meiryo, "MS Pゴシック" , "MS PGothic" , sans-serif; font-size: 1.2em; font-weight: bold; transition: all 0.3s; &::before, &::after { content: ''; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 16px; height: 0; display: inline-block; border-top: 3px solid #333; transition: transform 0.3s; pointer-events: none; } &::before { transform: rotate(90deg); } &::after { margin-top: 1px; } } &.is-open { .c-faq__txt { &::before { transform: rotate(0deg); } } } } &__foot { display: flex; background: #f5f5f5; &::before { content: 'A'; margin-top: 22px; min-width: 48px; width: 48px; display: flex; justify-content: center; font-family: "Helvetica Neue", Helvetica, Arial, Verdana, Roboto, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "Meiryo UI", "メイリオ", Meiryo, "MS Pゴシック", "MS PGothic", sans-serif; font-size: 1.9em; font-weight: bold; line-height: 1; color: #59a2c2; } .c-faq__txt { padding: 25px 20px 22px 0; font-weight: normal; } } } @include f.mq(sp) { margin-top: 60px; padding-bottom: 20px; &-item { &__head { &::before { width: 42px; min-width: 42px; font-size: 1.4em; } .c-faq__txt { font-size: 1em; } } &__foot { &::before { margin-top: 18px; font-size: 1.4em; } .c-faq__txt { padding: 15px 15px 15px 0; } } } } }