{% include '@style-variables' -%}
{% include '@self-resources' %}
<div class="wrapper">
<section krt-if="state == 1">
<!-- 閉じるボタン -->
<button type="button" class="btn btn-close-circle karte-close"
aria-label="閉じる"
>
<i class="icon #{style.closeIcon}" aria-hidden="true"></i>
</button>
<div class="card">
<div class="card-body">
<!-- 動画 -->
<figure class="card-image _fit-card">
<div class="video">
#{video|safe}
</div>
</figure>
<!-- 見出し -->
<h1 class="card-heading text-center">
#{heading}
</h1>
<!-- 詳細テキスト -->
<p class="card-detail">
#{detail}
</p>
<!-- ボタン -->
<div class="card-button">
<ul class="button-block">
<li>
<a class="btn _fit-width"
href="#{btnLink}"
>
#{btnLabel}
</a>
</li>
</ul>
</div>
</div>
</div>
</section>
</div>
/* ベース */
figure { margin: 0 }
button {
margin: 0;
width: auto;
height: auto;
font-family: inherit;
cursor: pointer;
}
button * { cursor: inherit }
.wrapper {
position: relative;
height: 100%;
text-align: left;
font-size: 12px;
line-height: 1.66667;
}
.wrapper * {
box-sizing: border-box;
white-space: inherit;
font-size: 100%;
line-height: inherit;
}
/* ボタン */
.btn {
transition: .2s;
display: inline-block;
border-radius: 4px;
border: solid 1px transparent;
padding: 13px 16px;
background: #{style.colorMain};
color: #fff;
vertical-align: middle;
text-decoration: none;
text-align: center;
line-height: 1.25;
}
.btn:hover,
.btn:focus { opacity: .75 }
.btn._fit-width { width: 100% }
/* 閉じるボタン */
.btn-close-circle {
position: absolute;
z-index: 1;
border-radius: 50%;
line-height: 1;
transition: .25s;
top: -10px;
right: -10px;
padding: 10px;
background: #{style.colorMain};
color: #fff;
font-size: 10px;
}
.btn-close-circle:hover,
.btn-close-circle:focus {
-webkit-transform: rotate(90deg);
transform: rotate(90deg);
}
.btn-close-circle .icon {
display: inline-block;
vertical-align: top;
}
/* ボタンブロック */
.button-block li { list-style: none }
.button-block.columns > li {
-webkit-flex-basis: calc(~"25% - 10px");
flex-basis: calc(~"25% - 10px");
}
.button-block:not(.columns) li + li { margin-top: 10px }
/* カラム */
.columns {
display: -webkit-flex;
display: flex;
-webkit-flex-wrap: wrap;
flex-wrap: wrap;
margin: -10px 0 0 -10px;
}
.columns > li {
-webkit-flex-grow: 1;
flex-grow: 1;
margin: 10px 0 0 10px;
}
.columns > li { list-style: none }
.card .columns > li {
-webkit-flex-basis: calc(~"25% - 10px");
flex-basis: calc(~"25% - 10px");
}
/* カード */
.card {
display: -webkit-flex;
display: flex;
-webkit-flex-direction: column;
flex-direction: column;
box-shadow: 0 5px 16px rgba(0,0,0,.05), 0 8px 14px rgba(0,0,0,.08);
border-radius: 8px;
width: 320px;
max-width: 90vw;
max-height: calc(~"100vh - 160px");
overflow-y: auto;
background: #{style.colorBg} no-repeat 50%;
background-size: cover;
color: #{style.colorText};
}
.card-body { padding: 18px 20px 0 }
.card-body::after {
display: block;
height: 18px;
content: "";
position: relative;
z-index: -1;
}
.card-body {
position: relative;
overflow: inherit;
}
.card ._fit-card {
margin-left: -20px;
margin-right: -20px;
}
.card ._fit-card:first-child { margin-top: -18px }
/* - 画像 */
.card-image {
margin: 0 auto;
text-align: center;
}
.card-image:not(:last-child) { margin-bottom: 12px }
.card-image._fit-card { margin-top: -18px }
/* - 見出し */
.card-heading {
color: #{style.colorMain};
font-weight: 600;
font-size: 16px;
line-height: 1.375;
}
.card-heading:not(:last-child) { margin-bottom: .5em }
/* - 詳細テキスト */
.card-detail:not(:last-child) { margin-bottom: 12px }
/* - ボタン */
.card-button:not(:first-child) { margin-top: 16px }
/* 動画 */
.video {
position: relative;
box-shadow: 0 1px rgba(0,0,0,.06);
padding-top: 56.25%;
overflow: hidden;
}
.video iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
/* ユーティリティ */
.text-center { text-align: center !important }
name,folder,folder_name,label,data_type,value,preview_value,help,is_required,is_hidden
colorMain,style,スタイル,メインカラー,color,#333,,,,
colorText,style,スタイル,テキストカラー,color,#333,,,,
colorBg,style,スタイル,背景カラー,color,#fff,,,,
closeIcon,style,スタイル,閉じるアイコン,icon,krt-icon-close05,,,,1
video,,,埋め込みコード,text,"<iframe width=""560"" height=""315"" src=""https://www.youtube.com/embed/sSgN-L4DU0c?controls=0&showinfo=0"" frameborder=""0"" allow=""autoplay; encrypted-media"" allowfullscreen></iframe>",,,,
heading,,,見出し,text,一人ひとりに合わせた体験づくり,,,,
detail,,,詳細テキスト,text,今どんな人が来て、どんな体験をしているかご存知ですか? KARTEは訪問者の行動や感情をリアルタイムに解析し、一人ひとりに合わせたCX(顧客体験)を提供します。,,,,
btnLabel,,,ボタン ラベル,text,詳細を確認する,,,,
btnLink,,,ボタン リンク先,text,https://example.com/,,,,