/* DETAIL */

@media screen and (min-width: 801px) {
  body.single .l-main {
    margin-top: -4px;
  }
  body.single .l-pagecontainer {
    position: relative;
    padding-bottom: 35px;
  }
  body.single .l-wrapper {
    padding-bottom: 60px;
  }
}
body.single .l-pagecontainer::before {
  content: '';
  display: block;
  width: 100%;
  height: 440px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  background-color: #f7f9fa;
}

body.single .l-main article {
  max-width: 864px;
}

body.single .l-pagecontainer .l-basecontent,
body.single .l-pagecontainer .c-snippetcontent {
  max-width: 828px;
  max-width: 864px;
}

body.single .l-pagecontainer .widget {
  position: relative;
}

body.single .l-pagecontainer .widget .toc {
  width: 288px;
  max-height: calc(100vh - 160px);
  overflow-y: auto;
}

body.single .l-pagecontainer .widget .toc.is-fixed {
  position: fixed;
  top: 120px;
}

body.single .l-pagecontainer .widget .toc.is-bottom {
  position: absolute;
  top: unset;
  bottom: 0px;
}

@media screen and (max-width: 1100px) {
  body.single .l-pagecontainer .widget .toc,
  body.single .l-pagecontainer .widget .toc.is-fixed,
  body.single .l-pagecontainer .widget .toc.is-bottom {
    width: 100%;
    max-height: 100%;
    position: relative;
    top: unset;
    bottom: unset;
  }
}

body.single .c-sharebox {
  margin-top: 52px;
}

body.single .c-sharebox.-title-area {
  margin-top: 20px;
  margin-bottom: 40px;
}
body.single .c-sharebox.-title-area ul li a {
  width: 60px;
  height: 28px;
}
@media screen and (min-width: 1440px) {
  body.single .c-sharebox.-title-area {
    display: none;
  }
}

@media screen and (min-width: 1440px) {
  body.single .c-sharebox {
    display: block;
    position: fixed;
    top: calc(50% - 86px);
    left: calc((100% - 1332px) / 2 - 48px);
    margin: 0;
  }
  body.single .c-sharebox p {
    margin-right: 0;
    margin-bottom: 5px;
    font-size: 13px;
    text-align: center;
    color: #666;
  }
  body.single .c-sharebox ul {
    display: block;
    margin: 0;
  }
  body.single .c-sharebox ul li {
    margin-bottom: 8px;
  }
  body.single .c-sharebox ul li a {
    display: block;
    width: 40px;
    height: 40px;
    padding-top: 5px;
    background-color: #f3f3f3;
    text-align: center;
    border-radius: 20px;
    transition: opacity 0.2s ease-out;
  }
  body.single.ua-desktop .c-sharebox ul li a:hover {
    /* opacity: .6; */
  }
}
@media screen and (min-width: 1468px) {
  body.single .c-sharebox {
    left: calc((100% - 1332px) / 2 - 64px);
  }
}

body.single .l-pagecontainer .section-related {
  padding-top: 55px;
  border-top: 1px solid #d8d8d8;
  margin-bottom: 0;
}
body.single .c-snippetcontent {
  margin-top: 56px;
  padding-top: 36px;
}
body.single .c-snippetcontent h2 {
  margin-top: 2em;
  padding: 0;
  border: none;
  text-align: center;
}
body.single .c-snippetcontent h2:before {
  display: none;
}
body.single .l-pagecontainer .c-snippetcontent.c-snippetcontent-primary {
  border-top: 2px solid #002c91;
  border-bottom: 2px solid #002c91;
}

body.single
  .l-pagecontainer
  .c-snippetcontent.c-snippetcontent-primary.l-basecontent {
  padding-right: 0;
  padding-bottom: 44px;
  padding-left: 0;
}
body.single .c-snippetcontent.c-snippetcontent-secondary {
  margin-top: 0;
  padding-top: 48px;
}
body.single .c-snippetcontent.c-snippetcontent-secondary .inner {
  background-color: #f7f9fa;
  border: 1px solid #e7edf0;
  border-radius: 5px;
  text-align: center;
  padding: 15px;
}

/* 目次枠内にH2がある時のための調整用スタイル */
body.single .wp-block-group .l-basecontent h2 {
  position: static;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  border-bottom: none;
  color: inherit;
  font-size: inherit;
}

@media screen and (min-width: 801px) {
}

/* ARCHIVE */
@media screen and (min-width: 801px) {
  body.archive .l-main {
    margin-top: -6px;
  }
}

/* HOME */
body.home.is-top .header-logo {
  pointer-events: none;
}
body.home .l-pagecontainer.is-home .l-wrapper {
  padding-bottom: 0;
}
body.home .l-pagecontainer .l-section:first-child {
  margin-bottom: 50px;
}
body.home .l-pagecontainer .l-section:last-child {
  margin-bottom: 0;
}
body.home .l-section .c-entrylist.c-entrylist-col3 .item:nth-child(4) {
  /* 4つ目が表示された場合の対策 */
  display: none;
}

@media screen and (min-width: 801px) {
  body.home .l-section .c-entrylist.c-entrylist-col3 .item {
    margin-bottom: 0;
  }
}
