/* ベース */
figure { margin: 0 }
img {
    max-width: 100%;
    vertical-align: bottom;
}
button {
    margin: 0;
    width: auto;
    height: auto;
    font-family: inherit;
    cursor: pointer;
}
a *,
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 {
    position: absolute;
    z-index: 1;
    border-radius: 50%;
    line-height: 1;
    transition: .25s;
    top: 7px;
    right: 7px;
    padding: 6px;
    background: 0;
    color: #{style.closeColor};
}
.btn-close:hover,
.btn-close:focus {
    opacity: .5;
    -webkit-transform: rotate(90deg);
            transform: rotate(90deg);
}
.btn-close .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._edged { border-radius: 0 }
.card-head,
.card-body,
.card-foot { padding: 18px 20px 0 }
.card-head::after,
.card-body::after,
.card-foot::after {
    display: block;
    height: 18px;
    content: "";
    position: relative;
    z-index: -1;
}
.card-head {
    position: relative;
    box-shadow: 0 1px rgba(0,0,0,.06);
    min-height: auto;
}
.card-body {
    position: relative;
    overflow: inherit;
}
.card-foot {
    box-shadow: 0 -1px rgba(0,0,0,.06);
    min-height: auto;
}
.card ._fit-card {
    margin-left: -20px;
    margin-right: -20px;
}
.card ._fit-card:first-child { margin-top: -18px }
.card ._fit-card:last-child { margin-bottom: -18px }

/* - 見出し */
.card-heading {
    color: #{style.colorMain};
    font-weight: 600;
    font-size: 16px;
    line-height: 1.375;
}
.card-heading._size-sm {
    font-size: 14px;
    line-height: 1.5;
}

/* - リスト */
.card-list._fit-card {
    border-left: 0;
    border-right: 0;
}
.card-list._fit-card:first-child { border-top: 0 }
.card-list._fit-card:last-child { border-bottom: 0 }

/* リンクリスト */
.list-link { border: solid 1px rgba(0,0,0,.06) }
.list-link li { list-style: none }
.list-link li + li { border-top: solid 1px rgba(0,0,0,.06) }
.list-link a {
    transition: .2s;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
            align-items: center;
    padding: 1em 20px;
    color: inherit;
    text-decoration: none;
    line-height: 1.5;
}
.list-link a:hover,
.list-link a:focus { opacity: .5 }
.list-link .link-arrow {
    margin: auto;
    margin-right: 0;
    width: 23px;
    min-width: 23px;
    text-align: right;
}
.list-link .link-image {
    margin-right: 1em;
    overflow: hidden;
}
.list-link .link-body {
    -webkit-flex-basis: 0;
            flex-basis: 0;
    -webkit-flex-grow: 1;
            flex-grow: 1;
}
.list-link .link-heading {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.42857;
}

/* ユーティリティ */
.radius-round {
    border-radius: 4px !important;
    overflow: hidden;
}
.bg-head {
    background: #{style.colorMain};
    color: #fff;
}
.bg-head .card-heading { color: inherit }
