/* ##### カスタムプロパティ ##### */
:root {
    --color-001: #0d3387;
    --color-002: #6f5131;
    --color-003: #e41e26;
    --color-004: #eeebeb;
    --color-005: #fffaf4;
}

/* ##### 共通 ##### */
.dokodemo-banner-container img {
    border-radius: unset !important;
}

.dokodemo-banner-container [class*="ofi-"] {
    width: 100%;
    display: block;
    position: relative;
}

.dokodemo-banner-container [class*="ofi-"]::after {
    content: "";
    display: block;
}

.dokodemo-banner-container [class*="ofi-"] img {
    width: 100%;
    height: 100% !important;
    -o-object-fit: contain;
    object-fit: contain;
    -o-object-position: 50% 50%;
    object-position: 50% 50%;
    position: absolute;
    top: 0;
    left: 0;
}

.dokodemo-banner-container .ofi-100::after {
    padding-top: 112.5%;
}

.dokodemo-banner-container .ofi-52::after {
    padding-top: 52%;
}

.dokodemo-banner-container .img-pc {
    display: block;
}

.dokodemo-banner-container .img-mobile {
    display: none;
}

@media (max-width: 599px) {
    .dokodemo-banner-container .img-pc {
        display: none;
    }

    .dokodemo-banner-container .img-mobile {
        display: block;
    }
}

/* ##### バナーデザイン ##### */
.dokodemo-banner-container {
    /* display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: reverse;
    -ms-flex-direction: row-reverse;
    flex-direction: row-reverse; */
    position: relative;
    margin-top: 2rem;
}

.dokodemo-banner-item.banner-image {
    width: 100%;
    aspect-ratio: 16/9;
}

.dokodemo-banner-item .dokodemo-img {
    width: 100%;
    height: 100%;
    border-radius: 5px;
    overflow: hidden;
}

.dokodemo-banner-item .dokodemo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dokodemo-banner-container .banner-contents {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    align-items: flex-start;
    -ms-flex-align: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 2em;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

.dokodemo-banner-heading {
    padding-left: 1.5em;
    font-size: clamp(1.75rem, 1.567rem + 0.78vw, 2rem);
    line-height: 1.3;
    text-align: center;
    position: relative;
}

.dokodemo-banner-heading .icon {
    width: 1.25em;
    height: 1.25em;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    position: absolute;
    top: 0;
    left: 0;
}

.dokodemo-banner-heading .icon img {
    width: 100%;
    height: 100%;
    -o-object-fit: contain;
    object-fit: contain;
    -o-object-position: center center;
    object-position: center center;
}

.dokodemo-banner-btn {
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    max-width: 90%;
}

.dokodemo-banner-btn a {
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    display: block;
    padding: 0.5em 2em;
    font-size: clamp(1.25rem, 1.067rem + 0.78vw, 1.5rem);
    color: white;
    line-height: 1.2;
    text-align: center;
    border: 2px solid var(--color-001);
    border-radius: 0.5em;
    background-color: var(--color-001);
    -webkit-box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.2);
    box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.2);
    -webkit-transition: 0.3s linear;
    transition: 0.3s linear;
}

.dokodemo-banner-btn a:hover {
    color: var(--color-001);
    text-decoration: unset;
    background-color: white;
    -webkit-box-shadow: unset;
    box-shadow: unset;
    opacity: 1;
}

@media (max-width: 768px) {
  .banner-image{
    height: auto;
  }
}

@media (max-width: 599px) {
    .dokodemo-banner-container .banner-contents {
        padding: 1em;
    }
    
    .dokodemo-banner-btn a{
      padding: 0.5em 1em;
      font-size: 16px;
    }
}

.dokodemo-left-banner .img{
  overflow: hidden;
  border-radius: 5px;
  width: 100%;
  display: block;
  position: relative;
}

.dokodemo-left-banner .img::after {
  content: '';
  display: block;
  padding-top: 100%;
}

.dokodemo-left-banner .img img {
  width: 100%;
  height: 100% !important;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: 50% 50%;
  object-position: 50% 50%;
  position: absolute;
  top: 0;
  left: 0;
}

/* ##### 見たまま編集 ##### */
[data-element-id] .dokodemo-img.img-pc,
[data-element-id] .dokodemo-img.img-mobile {
    display: block;
    margin-top: calc(10px + 0.5em);
    border: 1px solid var(--color-001);
    position: relative;
}

[data-element-id] .dokodemo-img.img-pc::before,
[data-element-id] .dokodemo-img.img-mobile::before {
    content: "";
    width: 100%;
    display: block;
    padding: 0.25em 0.5em;
    font-size: 10px;
    color: white;
    line-height: 1;
    text-align: center;
    background-color: var(--color-001);
    -webkit-transform: translate(0, -100%);
    transform: translate(0, -100%);
    position: absolute;
    top: 0;
    left: 0;
}

[data-element-id] .dokodemo-img.img-pc::before {
    content: "PC用画像";
}

[data-element-id] .dokodemo-img.img-mobile::before {
    content: "スマホ用画像";
}
