命名規則 (1つ目のLP) |
命名規則 (2つ目のLP) |
|
---|---|---|
セクション(section) | lp_〇〇_sec ※新CMSでは「lp_sec」は原則不要です |
lp02_〇〇_sec 3つ目以降は、03、04…と数字を増やしてください |
/*----------------------------------
LP body(本体)
----------------------------------*/
@include theme-fo-base {
//LPヘッダー
&.lp_header_sec {
font-family: $lp_font_family;
color: $lp_text_color;
line-height: $lp_text_line_height;
letter-spacing: $lp_text_letter_spacing;
padding: 0;
@include lp-heading();
@include lp-richtext();
@include lp-form();
.inner {
padding: 10px 20px;
@include breakpoint-sp {
padding: 10px;
}
.row {
&.header_row {
display: flex;
align-items: center;
@include breakpoint-pc {
min-height: 60px;
}
.col {
padding: 0;
&.logo_col {
@include breakpoint-pc {
max-width: 300px;
min-width: 150px;
width: auto !important;
}
.component {
&.image {
margin: 0;
&.logo_img {
img {
@include breakpoint-pc {
max-width: $lp_header_logo !important;
width: 100% !important;
}
@include breakpoint-sp {
max-height: $lp_header_sp_logo !important;
}
}
}
}
}
}
&.btn_col {
display: flex !important;
justify-content: flex-end;
align-items: center;
flex: 1;
@include breakpoint-pc {
width: auto !important;
}
.component {
margin: 0;
&:not(:first-child) {
@include breakpoint-pc {
margin-left: 15px;
}
}
&.button {
margin-top: 0;
.button-cont {
a {
@include breakpoint-sp {
background: none;
width: auto;
min-width: auto;
font-size: 0 !important;
letter-spacing: 0;
border-radius: 0;
border: 0;
margin: 0;
box-shadow: none;
padding: 5px 10px 5px 5px;
}
&::before {
@include breakpoint-sp {
font-size: 22px;
line-height: 1;
color: $lp_main_color;
margin: 0;
}
}
}
}
}
}
}
}
}
&.nav_row {
@include breakpoint-pc {
margin: 20px 0 -10px;
}
.col {
padding: 0;
.component {
&.list {
margin: 0;
ul {
@include breakpoint-pc {
display: table;
width: 100%;
table-layout: fixed;
}
li {
margin: 0;
padding: 0;
font-size: 14px;
@include breakpoint-pc {
display: table-cell;
}
@include breakpoint-sp {
width: 50%;
}
a {
display: block;
font-size: inherit;
color: inherit;
text-align: center;
padding: 20px 10px;
@include breakpoint-sp {
padding: 10px 5px;
}
&:hover {
background-color: $lp_main_color;
color: #fff;
}
}
}
}
}
}
}
}
}
}
//LPコンテンツ記述
& ~ section {
@include lp-heading();
@include lp-richtext();
@include lp-form();
@include lp-mv();
@include lp-contents();
//フッター
&.lp_footer_sec {
padding: 0;
.inner {
max-width: 100% !important;
padding: 0;
.row {
padding: 0;
&:not(.copyright_row) {
max-width: $lp_max_width;
margin: 0 auto;
padding: 0 20px;
}
&.site_map_row {
padding: 40px 20px;
.col {
vertical-align: middle;
}
}
.col {
padding: 0;
.component {
&.image {
&.footLogo_img {
img {
max-width: 250px !important;
width: 100% !important;
}
}
}
&.list {
&.site_map_list {
ul {
display: flex;
gap: 10px 20px;
@include breakpoint-sp {
flex-direction: column;
}
li {
margin: 0;
padding: 0;
a {
color: inherit;
&:hover {
opacity: $lp_hover_opacity;
}
}
}
}
&.vertical {
ul {
flex-direction: column;
li {
a {
padding: 0;
}
}
}
}
}
}
&.cta {
margin: 0;
.cta-row {
padding-top: 0 !important;
&.page_top_row {
@include page_top;
& + .cta-row {
margin-top: -40px;
}
}
.cta-column {
padding: 0;
.component {
&.richtext {
&.foot-copyright {
@include copyright_custom;
}
}
}
}
}
}
}
}
}
}
}
}
}
//LPセクション固定
&.lp_sticky_sec {
position: sticky;
top: 0;
z-index: 1000;
box-shadow: $lp_box_shadow_nav_common;
& ~ section {
.inner {
.row {
.col {
[id] {
//ヘッダーの高さに合わせてください(ヘッダーの高さ+componentのmargin10px)
@include breakpoint-pc {
scroll-margin-top: 80px;
}
@include breakpoint-sp {
scroll-margin-top: 55px;
}
}
}
}
}
}
}
}
/*------------- カスタム用 LP END-------------*/
/*----------------------------------
LP contents(コンテンツ)
----------------------------------*/
@mixin lp-contents {
font-family: $lp_font_family;
color: $lp_text_color;
line-height: $lp_text_line_height;
letter-spacing: $lp_text_letter_spacing;
//セクション余白調整
@include breakpoint-pc {
padding: calc(#{$lp_section_padding} - 30px) 0 calc(#{$lp_section_padding} - 40px);
}
@include breakpoint-sp {
padding: $lp_section_sp_padding 0;
}
&.lp_cta_sec {
.inner {
.row {
.col {
.component {
&.cta {
margin: 0;
}
}
}
}
}
}
.inner {
.row {
//よくあるご質問
&.lp_faq_row {
margin: 10px 0 20px;
& + .lp_faq_row {
margin-top: 40px;
}
.col {
background: #fff;
box-shadow: $lp_box_shadow_common;
border-radius: $lp_border_radius_common;
padding: 20px;
.component {
&.richtext {
&:is(.faq_qu,.faq_an) {
position: relative;
border-bottom: 1px solid $lp_border_color;
margin: 0;
padding: 15px 15px 15px 50px;
@include breakpoint-sp {
padding-left: 40px;
}
&::before {
content: "Q.";
display: inline-block;
font-size: 28px;
font-weight: bold;
color: $lp_accent_color;
position: absolute;
left: 5px;
top: 4px;
@include breakpoint-sp {
top: 2px;
}
}
}
&.faq_an {
border-bottom: 0;
&::before {
content: "A.";
color: $lp_text_color;
}
}
}
}
}
}
.col {
.component {
&.richtext {}
&.image {}
&.list {}
}
}
}
}
}
セクションパーツの配置
セクションの命名規則とルール
LP案件におけるセクションの追加方法についてルールが定められています。
© Basic Inc. All Rights Reserved.