デフォルトのスタイルシート
/* エディターエリア */
#editor-area {
container-type: inline-size;
container-name: editor-area-container;
}
/* ※※※※※全サイズ共通※※※※※ */
/* Hero Block */
.ce-hero1 {
min-height: 480px;
background:
linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 100%),
var(--hero-image, url("https://libs.cmsod.jp/cmsod/page-aditor/v1/default/heroBg.svg")) center
center / cover no-repeat;
position: relative;
display: flex;
align-items: center;
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
overflow: hidden;
}
.ce-hero1 > .ce-item {
display: flex;
flex-direction: column;
max-width: 800px;
gap: 2rem;
padding: 48px 0px 48px 64px;
color: #fff;
}
.ce-hero1 > .ce-item .ce-header2-1 {
font-weight: bold;
line-height: 1.5;
padding: 0;
font-size: 36px;
text-align: left;
margin-bottom: 0;
}
.ce-hero1 > .ce-item .ce-paragraph {
font-weight: normal;
text-align: left;
line-height: 2;
font-size: 16px;
}
.ce-hero1 > .ce-item .ce-button {
display: inline-block;
font-size: 18px;
border: 1.5px solid #fff;
justify-content: center;
text-align: center;
padding: 16px 48px;
font-weight: 400;
text-decoration: none;
background: rgba(0, 0, 0, 0.4);
color: #fff;
transition: background 0.2s;
cursor: pointer;
width: max-content;
height: auto;
}
.ce-hero2 {
width: 100%;
max-width: 100vw;
margin: 0 auto;
display: block;
border-radius: 0;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.ce-hero2 > .ce-item-1 {
width: 100%;
margin: 0;
display: block;
padding: 20px;
}
.ce-hero2 > .ce-item-1 .ce-image {
width: 100%;
height: 320px;
object-fit: cover;
display: block;
margin: 0 auto 0 0;
border-radius: 0;
}
.ce-hero2 > .ce-item-2 {
width: 100%;
display: flex;
flex-direction: column;
gap: 1rem;
padding: 20px 20%;
}
.ce-hero2 > .ce-item-2 .ce-header3-1 {
font-weight: bold;
text-align: center;
line-height: 150%;
padding: 0;
font-size: 35px;
}
.ce-hero2 > .ce-item-2 .ce-paragraph {
font-size: 16px;
font-weight: normal;
line-height: 200%;
}
.ce-hero2 > .ce-item-2 .ce-button {
display: block;
justify-self: center;
font-size: 18px;
margin: 0 auto 32px;
text-align: center;
padding: 16px 48px;
font-weight: 400;
border: 1px solid #000;
background: transparent;
color: #222;
transition: background 0.2s;
cursor: pointer;
text-decoration: none;
width: auto;
height: auto;
}
.ce-hero3 {
display: flex;
width: 100%;
flex-direction: row;
max-width: none;
border-radius: 0;
box-shadow: none;
}
.ce-hero3 > .ce-item-1 {
width: 100%;
position: relative;
flex: 0 0 50%;
}
.ce-hero3 > .ce-item-1 .ce-image {
width: 100%;
object-fit: cover;
height: 600px;
margin: 0;
}
.ce-hero3 > .ce-item-2 {
display: flex;
flex-direction: column;
align-self: center;
width: 100%;
position: relative;
padding: 1.25rem 3.25rem;
gap: 1rem;
flex: 1 1 50%;
}
.ce-hero3 > .ce-item-2 .ce-header1-1 {
font-weight: bold;
line-height: 150%;
padding: 0;
font-size: 35px;
text-align: left;
}
.ce-hero3 > .ce-item-2 .ce-paragraph {
font-size: 16px;
font-weight: normal;
text-overflow: ellipsis;
overflow: hidden;
width: 100%;
line-height: 170%;
}
.ce-hero3 > .ce-item-2 .ce-button {
padding: 0 2rem;
text-align: center;
padding: 16px 48px;
font-weight: 400;
border: 1px solid #000;
background: transparent;
color: #222;
transition: background 0.2s;
cursor: pointer;
text-decoration: none;
display: block;
font-size: 18px;
justify-self: center;
width: auto;
height: auto;
}
/* Card Block */
.ce-card1 {
display: flex;
position: relative;
flex-direction: row;
box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 16px;
gap: 18px;
padding: 20px;
max-width: 600px;
}
.ce-card1 .ce-item-1 {
display: flex;
flex-direction: row;
gap: 18px;
padding: 0;
}
.ce-card1 > .ce-item-1 .ce-label {
position: absolute;
top: 0;
left: 0;
background: rgb(255, 0, 0);
color: rgb(255, 255, 255);
font-size: 16px;
font-weight: 700;
padding: 0px 20px;
z-index: 2;
}
.ce-card1 > .ce-item-1 .ce-image {
width: 100%;
object-fit: cover;
position: relative;
height: 250px;
}
.ce-card1 .ce-item-2 {
display: flex;
flex-direction: column;
gap: 8px;
}
.ce-card1 > .ce-item-2 .ce-paragraph {
font-size: 14px;
font-weight: 700;
}
.ce-card1 > .ce-item-2 .ce-header3-1 {
font-weight: 700;
line-height: 150%;
padding: 0;
font-size: 20px;
}
.ce-card1 > .ce-item-2 .ce-paragraph-1 {
color: #bb342b;
}
.ce-card1 > .ce-item-2 .ce-paragraph-2 {
font-size: 16px;
font-weight: 400;
color: #2d2d2d;
text-overflow: ellipsis;
overflow: hidden;
width: 100%;
display: -webkit-box;
-webkit-line-clamp: 5;
-webkit-box-orient: vertical;
line-height: 170%;
}
.ce-card1 > .ce-item-2 .ce-button {
display: block;
width: 100%;
height: auto;
background-color: rgb(255, 255, 255);
color: rgb(0, 0, 0);
border: 1px solid black;
padding: 14px;
font-size: 14px;
font-weight: normal;
text-decoration: none;
text-align: center;
}
.ce-card2 {
display: flex;
box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 16px;
padding: 20px;
max-width: 370px;
flex-direction: column;
gap: 1.25rem;
margin: auto;
background: rgb(255, 255, 255);
border: 1px solid rgb(232, 232, 232);
}
.ce-card2 > .ce-item-1 {
flex: 0 0 50%;
}
.ce-card2 > .ce-item-1 .ce-image {
width: 100%;
object-fit: cover;
height: 250px;
}
.ce-card2 > .ce-item-2 {
display: flex;
flex-direction: column;
gap: 0.5rem;
width: 100%;
}
.ce-card2 > .ce-item-2 .ce-label {
font-size: 12px;
color: #ffffff;
padding: 0px 16px;
border-radius: 12px;
background-color: #eb9494;
display: inline-block;
}
.ce-card2 > .ce-item-2 .ce-header3-1 {
font-weight: 700;
line-height: 150%;
padding: 0;
font-size: 20px;
}
.ce-card2 > .ce-item-2 .ce-paragraph {
font-size: 16px;
font-weight: 400;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
overflow: hidden;
line-height: 180%;
-webkit-line-clamp: 4;
}
.ce-card2 > .ce-item-2 .ce-paragraph-2 {
font-size: 14px;
color: #000;
text-align: left;
font-weight: 400;
}
.ce-card2 > .ce-item-2 .ce-button {
background: transparent;
border: none;
color: #000;
text-align: right;
font-size: 14px;
font-weight: 700;
display: block;
width: calc(100% - 24px);
float: right;
}
/* Link Block */
.ce-link {
max-width: 600px;
display: flex;
padding: 24px;
align-items: flex-start;
align-content: flex-start;
gap: 16px;
border: 1px solid #707070;
width: 100%;
}
.ce-link > .ce-item-1 .ce-image-1 {
font-size: 14px;
width: auto;
height: auto;
}
.ce-link > .ce-item-2 {
display: flex;
flex-direction: column;
gap: 8px;
}
.ce-link > .ce-item-2 .ce-paragraph {
font-size: 14px;
line-height: 170%;
color: #808080;
}
.ce-link > .ce-item-2 .ce-header3-1 {
font-size: 18px;
line-height: 130%;
font-weight: bold;
padding: 0;
text-align: center;
}
.ce-link > .ce-item-2 .ce-paragraph-1 {
font-size: 14px;
line-height: 170%;
}
/* Quote Block */
.ce-quote .ce-item {
width: 100%;
height: auto;
border-left: 11px solid #7592c9;
background: #f2f8ff;
padding: 34px 38px;
display: flex;
flex-direction: column;
gap: 16px;
font-weight: normal;
font-size: 14px;
align-items: end;
}
.ce-quote .ce-paragraph {
font-size: 16px;
text-align: left;
line-height: 170%;
margin-top: 16px;
margin-bottom: 24px;
}
.ce-quote .ce-paragraph-1 {
font-size: 14px;
}
/* List Block */
.ce-list > .ce-item {
width: 100%;
height: auto;
padding: 24px 32px;
display: flex;
flex-direction: column;
font-weight: normal;
font-size: 14px;
}
.ce-list > .ce-item .ce-column {
display: flex;
flex-direction: column;
}
.ce-list > .ce-item .ce-column > .ce-item-1 {
display: flex;
width: auto;
align-items: center;
}
.ce-list > .ce-item .ce-column > .ce-item-1 .ce-header3 {
width: auto;
flex: 0 0 auto;
color: #ee8e28;
text-align: left;
margin-bottom: 0;
font-weight: bold;
line-height: 150%;
padding: 0;
font-size: 24px;
white-space: nowrap;
}
.ce-list > .ce-item .ce-column > .ce-item-1 .ce-paragraph {
flex: 1;
height: 2px;
padding: 0;
background-color: #ee8e28;
border-radius: 1.5px;
margin-top: 0;
margin-bottom: 0;
margin-left: 16px;
}
.ce-list > .ce-item .ce-column > .ce-item-2 .ce-paragraph {
font-size: 16px;
text-align: left;
line-height: 170%;
margin-top: 16px;
margin-bottom: 24px;
}
/* Image Block */
.ce-image {
width: 100%;
object-fit: cover;
height: 500px;
}
/* Button Block */
.ce-button {
background-color: rgb(255, 255, 255);
color: rgb(0, 0, 0);
border: 1px solid black;
display: flex;
width: 120px;
height: 32px;
justify-content: center;
align-items: center;
font-size: 14px;
font-weight: normal;
text-decoration: none !important;
}
/* Label Block */
.ce-label {
background: rgb(255, 0, 0);
color: rgb(255, 255, 255);
font-size: 16px;
font-weight: 700;
padding: 0px 20px;
width: 80px;
}
/* Column Block */
.ce-column {
display: flex;
}
.ce-item {
flex: 1;
}
/* ※※※※※タブレット※※※※※ */
@container editor-area-container (min-width: 768px) and (max-width: 1024px) {
/* Hero Block */
.ce-hero1 > .ce-item {
max-width: 600px;
}
.ce-hero3 > .ce-item-2 {
padding: 1.25rem 2.5rem;
}
}
/* ※※※※※モバイル※※※※※ */
@container editor-area-container (max-width: 767px) {
/* Hero Block */
.ce-hero1 {
min-height: 700px;
background:
linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 100%),
var(--hero-image, url("https://libs.cmsod.jp/cmsod/page-aditor/v1/default/heroBg.svg")) center
center / cover no-repeat;
}
.ce-hero1 > .ce-item {
gap: 1rem;
padding: 32px;
width: 100%;
max-width: 600px;
}
.ce-hero1 > .ce-item .ce-header2-1 {
font-size: 28px;
text-align: center;
margin-bottom: 12rem;
}
.ce-hero1 > .ce-item .ce-paragraph {
font-size: 14px;
}
.ce-hero1 > .ce-item .ce-button {
display: flex;
font-size: 14px;
border: 1px solid #fff;
justify-content: center;
margin: 0 auto 32px auto;
text-align: center;
background: rgba(0, 0, 0, 0.7);
width: 100%;
height: auto;
}
.ce-hero2 > .ce-item-1,
.ce-hero2 > .ce-item-2 {
padding: 12px;
}
.ce-hero2 > .ce-item-2 .ce-header3-1 {
font-size: 30px;
}
.ce-hero2 > .ce-item-2 .ce-paragraph {
line-height: 170%;
}
.ce-hero2 > .ce-item-2 .ce-button {
display: flex;
justify-content: center;
font-size: 14px;
width: 100%;
height: auto;
justify-self: auto;
}
.ce-hero3 {
flex-direction: column;
max-width: 100vw;
margin: 0 auto;
border-radius: 0;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.ce-hero3 > .ce-item-1 {
flex: 0 0 35%;
}
.ce-hero3 > .ce-item-1 .ce-image {
height: 320px;
margin: 0 auto 0 0;
}
.ce-hero3 > .ce-item-2 {
gap: 2rem;
flex: 1 1 65%;
padding: 1rem 0.75rem;
}
.ce-hero3 > .ce-item-2 .ce-header1-1 {
font-size: 30px;
text-align: center;
}
.ce-hero3 > .ce-item-2 .ce-button {
display: flex;
font-size: 14px;
justify-content: center;
width: 100%;
height: auto;
justify-self: auto;
}
/* Card Block */
.ce-card1 > .ce-item-1 {
gap: 0;
}
.ce-card1 > .ce-item-1 .ce-image {
height: auto;
}
.ce-card1 > .ce-item-2 .ce-header3-1,
.ce-card2 > .ce-item-2 .ce-header3-1 {
font-size: 18px;
}
.ce-card1 > .ce-item-2 .ce-paragraph-2 {
height: 140px;
}
.ce-card2 {
flex-direction: row;
gap: 18px;
}
.ce-card2 > .ce-item-1 .ce-image {
height: 150px;
}
.ce-card2 > .ce-item-2 {
flex: 1 1 50%;
}
.ce-card2 > .ce-item-2 .ce-paragraph {
line-height: 170%;
-webkit-line-clamp: 5;
}
.ce-card2 > .ce-item-2 .ce-paragraph-2 {
font-weight: 700;
}
/* Link Block */
.ce-link {
width: 100%;
}
.ce-link > .ce-item-1 .ce-image-1 {
width: auto;
height: auto;
}
.ce-link > .ce-item-2 .ce-header3-1 {
text-align: left;
}
.ce-link > .ce-item-2 .ce-paragraph-1 {
font-size: 12px;
}
/* Quote Block */
.ce-quote .ce-paragraph {
margin-top: 0;
margin-bottom: 0;
}
/* List Block */
.ce-list > .ce-item {
padding: 24px 16px;
}
.ce-list > .ce-item .ce-column > .ce-item-1 {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 8px;
}
.ce-list > .ce-item .ce-column > .ce-item-1 .ce-header3 {
font-size: 20px;
white-space: nowrap;
text-wrap: auto;
}
.ce-list > .ce-item .ce-column > .ce-item-1 .ce-paragraph {
align-self: stretch;
margin-left: 0;
max-height: 2px;
}
/* Image Block */
.ce-image {
height: 200px;
}
}