.details--cms {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 900px;
  background: #fcfcfc;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
  color: #35321e;
  font-weight: 600;
}
@media (min-width: 641px) {
  .details--cms {
    width: 95%;
  }
}
@media (min-width: 1025px) {
  .details--cms {
    width: 100%;
  }
}
.details--cms::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  margin: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  border: 16px solid;
  -o-border-image: url(/shironekoproject/assets_v2/common/img/border_bg.png);
  border-image: url(/shironekoproject/assets_v2/common/img/border_bg.png);
  border-image-slice: 50%;
  border-image-repeat: repeat;
  border-image-width: 16px;
  pointer-events: none;
}

@scope (.details--cms) {
  .detailsInner {
    padding: 4% 5%;
  }
  @media (min-width: 641px) {
    .detailsInner {
      padding: 4% 10%;
    }
  }
  .detailsInner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    margin: 5px;
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    border: 1px solid #e9e7de;
    pointer-events: none;
  }

  .date {
    text-align: center;
    font-size: 14px;
    color: #777;
  }

  /* 記事本文 */
  h1 {
    color: #896901;
    margin-bottom: 1.5em;
    font-size: 5.4vw;
  }
  @media (min-width: 641px) {
    h1 {
      margin-bottom: 1em;
      font-size: 2em;
    }
  }
  h2 {
    margin: 2em 0 1em;
    color: #896901;
    font-size: 6vw;
    border-bottom: 3px solid #beaa42;
  }
  @media (min-width: 641px) {
    h2 {
      font-size: 32px;
    }
  }
  h3 {
    padding-left: 0.5em;
    color: #896901;
    font-size: 4.5vw;
    border-left: 3px solid #beaa42;
  }
  @media (min-width: 641px) {
    h3 {
      font-size: 22px;
    }
  }
  h4 {
    font-size: 4.2vw;
    color: #896901;
  }
  @media (min-width: 641px) {
    h4 {
      font-size: 20px;
    }
  }

  /* classをもたないリスト */
  :is(ul:not([class]), ol:not([class])) {
    padding-left: 40px;
    margin-block: 0.5em;

    ul, ol {
      margin-top: 0;
    }

    > li li {
      list-style: lower-alpha;
    }
  }

  :is(ul) {
    list-style: disc;
  }

  :is(ol) {
    list-style: decimal;
  }

  /* ulやolがクラスを持っている場合 */
  :is(ul[class]),
  :is(ol[class]) {
    list-style: none;
  }

  .note {
    font-size: 13px;
  }

  table {
    font-size: 3.4vw;
    
    th {
      vertical-align: top;
      width: 8em;
      text-align: left;
    }
    
    td {
      vertical-align: top;
      padding-left: 1em;
      padding-bottom: 0.6em;      
    }

    p {
      margin-top: 0;
    }
    *:last-child {
      margin-bottom: 0;
    }
  }
  @media (min-width: 641px) {
    table {
      font-size: 1em;
    }
  }

  img,
  iframe {
    max-width: 100%;
    height: auto;
  }

  iframe {
    aspect-ratio: 16 / 9;
  }

  :is(p, ol, ul) {
    margin-bottom: 1.8em;
    font-size: 3.7vw;
    line-height: 1.9;
  }
  @media (min-width: 641px) {
    :is(p, ol, ul) {
      font-size: 16px;
    }
  }
  :is(.supplementText) {
    font-size: calc(3.7 * (13 / 16) * 1vw);
    display: block;
    line-height: 1.6;
  }
  @media (min-width: 641px) {
    :is(.supplementText) {
      font-size: 13px;
    }
  }
  p a {
    color: #827006;
  }

  .wpArea {
    border-top: 1px solid #e3dec0;
  }
  .wpArea h3 {
    margin: 0 0 1%;
  }
  .wpArea ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }
  .wpArea ul li {
    margin: 3% 1% 0;
    width: 30%;
  }
  @media (min-width: 641px) {
    .wpArea ul li {
      width: 23%;
    }
  }
  .wpArea ul li img {
    width: 100%;
    height: auto;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  }
  .wpArea ul li p {
    margin: 2% 0;
    text-align: center;
    font-size: 12px;
  }
  .wpArea ul li .link {
    position: relative;
    margin-top: 8px;
  }
  .wpArea ul li .link.shareCover::after {
    content: "シェアで壁紙ゲット";
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 98%;
    background: rgba(49, 53, 7, 0.8);
    border-radius: 3px;
    font-size: 16px;
    color: #fff;
    text-shadow:
      0 2px 10px #222301,
      0 2px 10px #222301;
  }
  @media (max-width: 1024px) {
    .wpArea ul li .link.shareCover::after {
      font-size: 1.5vw;
    }
  }
  @media (max-width: 640px) {
    .wpArea ul li .link.shareCover::after {
      font-size: 2.5vw;
    }
  }
  .wpArea ul li a {
    display: inline-block;
    width: 100%;
    margin: 4px 0;
    padding: 8px 0;
    background: #c1b578;
    border-radius: 2px;
    text-align: center;
    font-size: 12px;
    color: #fff;
    text-decoration: none;
  }
  @media (min-width: 641px) {
    .wpArea ul li a {
      padding: 6px 0;
    }
  }

  /* アイコンエリア */
  .iconArea {
    margin: 45px 0 0;
    border-top: 1px solid #e3dec0;
  }
  .iconArea h3 {
    margin: 6% 0 3%;
  }
  .iconArea ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }
  .iconArea ul li {
    width: 23%;
    margin: 3% 1% 0;
  }
  @media (max-width: 640px) {
    .iconArea ul li {
      width: 30%;
    }
  }
  .iconArea ul li img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
  }
  .iconArea ul li p {
    text-align: center;
    font-size: 14px;
    line-height: 1.3;
  }
  .iconArea ul li .dlBtn {
    display: inline-block;
    width: 100%;
    margin: 8px 0;
    padding: 6px 0;
    background: #c1b578;
    border-radius: 2px;
    text-align: center;
    font-size: 12px;
    color: #fff;
    text-decoration: none;
  }
  @media (max-width: 640px) {
    .iconArea ul li .dlBtn {
      padding: 8px 0;
    }
  }

  /* シェアボタン */
  .shareArea {
    display: flex;
    justify-content: center;
    margin: 2em 0 0;
    padding: 2em 0 0.5em;
    border-top: 1px solid #edebdd;
  }
  @media (max-width: 640px) {
    .shareArea {
      padding: 1.2em 0 0.7em;
    }
  }
  .shareArea .twitter {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5em 1em 0.6em;
    font-size: 14px;
    font-family:
      source-han-serif-japanese, "ヒラギノ角ゴ Pro W3",
      "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック",
      "MS PGothic", sans-serif;
    color: #fff;
    font-weight: 600;
    background: #000;
    border: none;
    border-radius: 50rem;
    text-decoration: none;
    transition: 0.2s ease 0s;
    cursor: pointer;
  }
  .shareArea .twitter::before {
    content: "";
    display: inline-block;
    margin: 2px 5px 0 0;
    width: 15px;
    height: 13px;
    background: url('data:image/svg+xml;charset=UTF-8,<svg width="1200" height="1227" viewBox="0 0 1200 1227" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z" fill="white"/></svg>')
      no-repeat center/contain;
  }
  .shareArea .twitter:hover {
    background: #555;
  }
}
