/* CMSの初期削除 */
#wrapper{
  padding-top: 0px;
}
#contents {
  max-width: 100% !important;
  padding: 0 !important;
}
.lib-fixed__bnr,
.lib-rss__001,
.lib-breadcrumb__outer{
  display: none !important;
}
.container {
  margin-top: 0rem !important;
}
:where(ul:not([class*="lib"])) > li::before{
  content: none;
}

/* メインスライド周り */
:root {
  --MAIN: #333;
  --LGRY: #FFF;
}
@media print, screen and (min-width: 576px) {
  html:not(:has(.is-open)) :where(#wrapper):where([style*="--scroll"]) .lib-wide__outer:not(.--fill-box) {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}
.container {
  max-width: 100% !important;
}
.lib-fv__thumb {
  height: 95vh !important;
}
main .slide img {
  max-width: 100%;
}
.lib-fv__control,
.lib-fv__slider .lib-swiper__btn {
  z-index: 1 !important;
}
main h1 {
  position: absolute;
  top: 60px;
  left: 3rem;
  margin: 0 auto;
  max-width: 1300px;
  width: 100%;
  z-index: 1;
}
@media (max-width: 1400px) {
  main h1{
    margin-left: 0rem;
  }
}
main h1 img {
  max-width: 400px;
  width: 100%;
}
main #logo p {
  position: absolute;
  bottom: 70px;
  left: 0;
  right: 3rem;
  z-index: 1;
  margin: 0 0 0 auto;
  max-width: 900px;
  width: 100%;
}



header div.block {
  max-width: 680px;
}
header nav ul li {
  width: 22%;
}
.font-large header nav ul li {
  width: 23%;
}
header p.kasou_logo {
  display: none;
}


main {
  width: 100%;
}
/*
main h2{
  background: url(/dcms_media/image/top-tl-boder.png) left bottom repeat-x;
  display: inline-block !important;
  padding: 0 8px 8px 15px;
  margin-bottom: 20px;
  letter-spacing: 3px;
  color: #765638;
}
main h2 span{
  background: url(/dcms_media/image/top-tl-boder.png) left bottom repeat-x;
  padding: 0 8px 8px 8px;
  margin-bottom: 12px;
  display: inline-block;
}
*/
main h2 {
  display: block !important;
  background: none !important;
  padding: 0 !important;
  margin-bottom: 20px;
  letter-spacing: 3px;
  color: #765638 !important;
  line-height: 1.8 !important;
  text-align: center;
  margin-top: 0 !important;
  padding-top: 50px !important;
}

main h2 span {
  padding: 0 6px 10px;
  background: url(/dcms_media/image/top-tl-boder.png) left bottom repeat-x;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}


/* 市川三郷町ってどんなところ？ */
section#about {
  width: 100%;
  background: url(/dcms_media/image/top-top-about-bg2.jpg) center bottom / auto no-repeat,
            url(/dcms_media/image/top-top-about-bg.png) 0 0 / auto repeat;
  padding-bottom: 240px;
}
section#about section{
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}
section#about > p img{
  width: 100%;
}
section#about .about-wrap{
  display: flex;
  justify-content: space-between;
  align-items: center;
}
section#about .about-wrap p img{
  width: 100%;
  max-width: 530px;
}
section#about .about{
  order: 2;
  width: 100%;
  max-width: 800px;
  background: #FFF;
  padding: 30px;
  border-radius: 30px;
  text-align: left;
  line-height: 1.7;
  margin: 0 auto;
}
p.top-link a{
  background: #E2B66E;
  border-radius: 99px;
  background: url(/dcms_media/image/top-bg-link.png) right 12px center no-repeat #E2B66E;
  padding: 11px 40px 13px 20px;
  width: 260px;
  margin: 20px auto 0 auto;
  display: block;
  line-height: 1rem;
}
section#about .about-wrap > p{
  order: 1;
  width: 100%;
  max-width: 530px;
  margin: 0 auto;
}


/* いちかわのニュース */
#news {
  width: 100%;
  max-width: 1400px;
  background: url(/dcms_media/image/top-bg-news.png) 0 0 no-repeat;
  padding: 50px 0 0 170px;
  margin: -90px auto 0;
}
#news section{
  width: 100%;
  max-width: 820px;
  padding-left: 15px;
}
.news_title{
  margin: 0 0 20px -15px;
  min-height: 111px;
  display: flex;
  align-items: end;
}
.news_title h2{
  margin: 0 25px 8px 0;
}
.news_title p {
  display: none;
}
.news_area{
  background: #FFF;
  border-radius: 30px;
  padding: 25px 35px 45px;
}
.news_area ul {
  margin-bottom: 40px;
}
.news_area ul li {
  padding: 20px 0 20px 5px;
  background: url(/dcms_media/image/syo-bg-link.png) left bottom repeat-x;
}
.news_area ul li a {
  color: #0D59B7;
  text-decoration: underline;
}
.news_area ul li a:hover {
  text-decoration: none;
  opacity: 1;
}
.news_area ul li span {
  display: block;
  margin-bottom: 8px;
}
#news section > p {
  margin: 25px auto 0;
}
#support section > p{
  width: 100%;
  max-width: 530px;
  margin: 25px auto 0;
}
#news .lib-blog-002__row > li .lib-recommend__thumb {
  display: none;
}
#news .news_area ul li {
  width: 100%;
}
#news .lib-blog-002__row .lib-recommend__item,
#news .lib-blog-002__row .lib-recommend__item:hover {
  background: transparent;
  box-shadow: none;
  transform: none;
  text-decoration: none;
  color: inherit;
}
/*
#news .lib-recommend__txtarea {
  display: block;
  overflow: hidden;
  padding: 0;
}
#news .lib-recommend__txtarea time {
  width: 140px;
  float: left;
  display: block;
}
#news .lib-recommend__txtarea p.txt {
  width: calc( 100% - 140px );
  float: left;
}
*/
#news .lib-recommend__txtarea p.txt {
  text-decoration: underline;
}
#news .lib-recommend__txtarea p.txt:hover {
  text-decoration: none;
}
#news .lib-recommend__txtarea time {
  margin-bottom: 3px;
}
#news .news_area ul li {
  padding: 10px 0 10px 5px;
}


/* いちかわのリアル */
#real {
  width: 100%;
  max-width: 1080px;
  background: url(/dcms_media/image/top-bg-real.png) right 0 top 0 no-repeat;
  background-size: contain;
  padding: 80px 0;
  margin: 100px auto 50px;
}
#real section {
  width: 100%;
  max-width: 720px;
  margin: 0 0 0 auto;
}
#real section > div {
  display: flex;
  gap: 20px;
}
#real section > div:first-of-type {
  align-items: center;
  margin-bottom: 25px;
}

#real section > div:first-of-type > div:first-child {
  text-align: center;
  order: 2;
}
#real section > div:first-of-type > dl:last-child {
  order: 1;
}
#real dl dt,
#real dl dd {
  width: 255px;
}
#real dl dd {
  margin-top: 8px;
}






/* いちかわのサポート */
#support {
  width: 100%;
  max-width: 1400px;
  background: url(/dcms_media/image/top-bg-support.png) 0 0 no-repeat;
  padding: 80px 0 150px 0;
  margin: 0px auto 0;
}
#support section{
  width: 100%;
  max-width: 1080px;
  /* padding-left: 15px; */
  margin: 0 auto;
}
#support h2 {
  margin-left: auto;
  margin-right: auto;
}
#support section > div {
  text-align: center;
}
#support ul {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
}
#support ul li {
  width: calc((100% - 60px) / 4);
  min-height: 200px;
  border-radius: 25px;
  padding-left: 0;
}
#support ul li:nth-child(1) {
  background: url(/dcms_media/image/top-support-ijyu.png) center center no-repeat;
  background-size: cover;
}
#support ul li:nth-child(2) {
  background: url(/dcms_media/image/top-support-kosodate.png) center center no-repeat;
  background-size: cover;
}
#support ul li:nth-child(3) {
  background: url(/dcms_media/image/top-support-seikatu.png) center center no-repeat;
  background-size: cover;
}
#support ul li:nth-child(4) {
  background: url(/dcms_media/image/top-support-syugyo.png) center center no-repeat;
  background-size: cover;
}
#support ul li a {
  width: 100%;
  height: 100%;
  color: #fff;
  font-size: 1.5rem;
  text-align: center;
  display: block;
  position: relative;
}
#support ul li a span {
  width: 100%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

#support section > p img {
  margin: 0 auto;
}












@media (max-width: 1080px) {
  body.is-open main h1 {
    display: none;
  }
  main h1{
    transform: none;
    left: 20px;
    top: 100px;
    width: 350px;
    z-index: -1;
  }
  header div.block {
    max-width: 1080px;
  }
  header nav ul li {
    width: 100% !important;
  }
  main #logo p {
    right: 0rem;
  }

  section#about .about-wrap {
    display: block;
    margin: 0 15px;
    width: calc( 100% - 30px );
    background: #FFF;
    border-radius: 30px;
    padding: 0 15px 30px 15px;
  }


  #news {
    padding: 50px 15px 0;
  }
  #support {
    padding: 50px 15px 150px;
  }
  #news section,
  #support section {
    max-width: none;
    padding: 0;
  }
  .news_title {
    margin-left: 0px;
  }
  #news section > p,
  #support section > p {
    margin: 25px auto 0;
    width: 100%;
    max-width: 805px;
  }


  #support ul {
    flex-wrap: wrap;
  }
  #support ul li {
    width: calc(50% - 10px);
  }
  #support section > p {
    max-width: 530px;
  }
}



@media (max-width: 768px) {
  main h1{
    width: 220px;
    top: 100px;
    left: 10px;
  }
  main #logo p img.sp{
    display: block;
  }
  main #logo p img.pc{
    display: none;
  }
  main #logo p {
    left: inherit;
    right: 10px;
    width: auto;
    width: 80%;
  }
  #real {
    padding: 0 15px;
  }
  #real section > div {
    flex-direction: column;
  }

  #real section > div:first-of-type > div:first-child {
    width: 100%;
    order: 1;
  }
  #real section > div:first-of-type > dl:last-child {
    order: 2;
  }
  #real dl dt,
  #real dl dd {
    margin-left: auto;
    margin-right: auto;
  }

}






@media (max-width: 530px) {
  section#about .about-wrap > p {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
  }
  section#about section > p img.pc,
  section#news p img.pc {
    display: none;
  }
  section#about section > p img.sp,
  section#news p img.sp {
    display: block;
  }
  section#about .about {
    padding: 30px 0;
  }
  section#about {
    padding-bottom: 190px;
  }
  section#about section > p {
    width: 119%;
    margin-left: -100px;
  }
  section#about section > p img.sp {
    width: 100%;
  }



  #support ul li {
    min-height: 150px;
  }
  #support ul li a {
    font-size: 1rem;
  }



}




/* いちかわのリアルスライド部分 */
#real_slide {
  position: relative;
}

#real_slide.real-slider {
  overflow: hidden;
  padding: 0 50px 40px;
  box-sizing: border-box;
}

#real_slide .real-slide-viewport {
  overflow: hidden;
  width: 100%;
}

#real_slide .real-slide-track {
  display: flex;
  transition: transform 0.4s ease;
  will-change: transform;
}

#real_slide dl {
  margin: 0;
  box-sizing: border-box;
  padding: 0 12px;
  flex: 0 0 auto;
  width: 50%;
}

#real_slide dt {
  margin: 0 0 12px;
}

#real_slide dt img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
}

#real_slide dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
}

#real_slide dd a,
#real_slide dt a {
  color: inherit;
  text-decoration: none;
  display: block;
}

/* 矢印 */
#real_slide .real-slide-arrow {
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #d9ab58;
    cursor: pointer;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;

}

#real_slide .real-slide-arrow svg {
  display: block;
  width: 14px;
  height: 14px;
}

#real_slide .real-slide-prev {
  left: 0;
}

#real_slide .real-slide-next {
  right: 0;
}

/* ドット */
#real_slide .real-slide-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  position: absolute;
  bottom: 0;
  left: 44%;
}

#real_slide .real-slide-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #fff;
  opacity: 0.8;
  cursor: pointer;
}

#real_slide .real-slide-dots button.is-active {
  background: #d9ab58;
  opacity: 1;
}

@media screen and (max-width: 767px) {
  #real_slide.real-slider {
    padding: 0 36px 36px;
  }

  #real_slide dl {
    width: 100%;
    padding: 0 8px;
  }

  #real_slide dd {
    font-size: 14px;
    line-height: 1.7;
  }

  #real_slide .real-slide-arrow {
    width: 30px;
    height: 30px;
    top: 34%;
  }

  #real_slide .real-slide-arrow svg {
    width: 12px;
    height: 12px;
  }
}
