:root {
  --green: #0C563C;
  --red: #BF0505;
}

.l-section{
  margin-top: 60px;
}

.p-default__btn{
  margin-top: 30px;
  margin-inline: auto;

  & a{
    text-decoration: underline;
    cursor: pointer;
    transition: opacity .3s ease-out;
  }
}

.u-mt-120{
  margin-top: 60px;
}

@media screen and (min-width: 768px) {
  .u-mt-120 {
    margin-top: 120px;
  }
  .l-section{
    margin-top: 100px;
  }
}

@media screen and (min-width: 1024px) {
  .p-default__btn a:hover{
    text-decoration: none;
    opacity: .8;
  }
}

/*
top
*/

.p-top__news{
  margin-top: 60px;
}

.p-top__service{
  margin-top: 60px;
}

.p-top__news-btn{
  margin-top: 60px;
  & a{
    margin-inline: auto;
  }
}

.p-top__news-inner{
  width: min(100%, 1280px);
  margin-inline: auto;
}

.p-top__news-title{
  text-align: center;
  font-size: 3.6rem;
  font-weight: 700;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 10px;

  &::before{
    content: attr(data-label);
    display: inline-block;
    text-transform: uppercase;
    color: var(--green);
    font-size: calc( 24 / 36 * 1em);
    line-height: 1.5;
    font-weight: 700;
  }
}

.p-top__news-links{
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-top: 60px;

  & a{
    color: #222;
    font-size: 1.4rem;
    line-height: 1.5;
    font-weight: 500;
  }
}

@media screen and (min-width: 1024px) {
  .p-top__news-links{
    flex-direction: row;
    gap: 15px 60px;
    & a{
      font-size: 1.8rem;
    }
  }

  .p-top__news-body{
    margin-top: 80px;
  }
}

.p-top__news-link.is-active a{
  background-color: var(--green);
  color: #fff;
  min-width: 100px;
  padding: 3px 10px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-top__news-body{
  --space: 40px;
  margin-top: 40px;
  padding: 0 var(--space);
  position: relative;
}

.swiper{
  position: relative;
}

.swiper__next,
.swiper__prev{
  --size: 30px;
  --space: 3px;
  cursor: pointer;
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  background-color: var(--green);
  width: var(--size);
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .3s ease-out;

  &::before{
    content: "";
    display: inline-block;
    width: 20%;
    aspect-ratio: 1;
    border-top: 1px solid #fff;
    border-right: 1px solid #fff;
  }
}


.swiper__next{
  left: var(--space);
  &::before{
    rotate: -135deg;
    translate: 20% 0;
  }
}

.swiper__prev{
  right: var(--space);
  &::before{
    rotate: 45deg;
    translate: -20% 0;
  }
}

@media screen and (min-width: 768px) {
  .p-top__news{
    margin-top: 80px;
  }
  .p-top__service{
    margin-top: 100px;
  }
  .p-top__news-body{
    --space: 90px;
  }

  .swiper__next,
  .swiper__prev{
    --size: 40px;
    --space: 15px;
  }
}

@media screen and (min-width: 768px) {
  .swiper__next:hover,
  .swiper__prev:hover{
    opacity: .8;
  }
}

.p-news__load-more-button{
  color: #222;
}

.p-news{
  margin-top: 60px;
}

.p-news * {
  box-sizing: border-box;
}

.p-news__no-text{
  text-align: center;
}

.p-news__contents,
.p-news__no-text{
  margin-top: 50px;
}

.p-news__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-direction: column;
  font-size: 1.8rem;
}

.p-news__link {
  width: 100%;
  text-align: center;
  border-right: 1px solid rgba(12, 86, 60, 0.5);
  border-left: 1px solid rgba(12, 86, 60, 0.5);
  border-bottom: 1px solid rgba(12, 86, 60, 0.5);

  &:first-child{
    border-top: 1px solid rgba(12, 86, 60, 0.5);
  }
}

.p-news__link a {
  display: block;
  padding: 10px 30px;
  width: 100%;
  color: #222;
}

.p-news__link.is-active a {
  background-color: var(--green);
  color: #fff;
}

@media screen and (min-width: 500px) {
  .p-news__links {
    gap: 15px 50px;
    flex-direction: row;
    font-size: 2rem;
  }
  .p-news__link {
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    border: none;

    &:first-child{
      border-top: none;
    }
  }

  .p-news__link a {
    display: block;
    padding: 0px;
  }
  .p-news__link.is-active a {
    padding: 5px 30px;
    border-radius: 100px;
  }
}

.c-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 40px;
}

.c-card {
  max-width: 400px;
  margin-inline: auto;
  position: relative;
}

.c-card  a{
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-inline: auto;
  color: #222;
}

.c-card a:hover figure img{
  scale: 1.1;
}

.c-card__fiugre{
  overflow: hidden;

  & img{
    display: block;
    width: 100%;
    aspect-ratio: 340 / 250;
    height: auto;
    object-fit: cover;
    background-color: aliceblue;
    transition: scale .3s ease-out;
  }
}

.c-card__lists {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.c-card__date,
.c-card__cat {
  font-size: 1.4rem;
}

.c-card__tag{
  z-index: 2;
  color: #fff;
  background-color: var(--red);
  font-size: 2rem;
  min-width: 100px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
}

.c-card__date {
  font-weight: 700;
}

.c-card__title,
.c-card__title-property {
  --weight: 500;
  font-size: 1.6rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-weight: var(--weight);
  line-height: 2;
}

.c-card__title-property{
  --weight: 700;
}

.c-card__cat{
  --color: #0C563C;
  min-width: 120px;
  padding: 0 10px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--color);
  color: #fff;
  border-radius: 100px;
}

.c-card__cat.cat-green{
  --color: var(--green);
}

.c-card__cat.cat-sale{
  --color: #D1AA3F;
}

.c-card__cat.cat-lent{
  --color: var(--green);
}

.c-card__cat.cat-business{
  --color:#2B40AA;
}

.c-card__dl-items{
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1.5rem;
}

.c-card__dl-item{
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
}

@media screen and (min-width: 768px) {
  .p-news {
    margin-top: 150px;
  }
  .p-news__contents, .p-news__no-text{
    margin-top: 70px;
  }
  .c-card__date,
  .c-card__cat {
    font-size: 1.5rem;
  }
  .c-card__title {
    font-size: 1.8rem;
  }
  .c-card__title-property{
    font-size: 2rem;
  }
}

.p-single{
  margin-top: 50px;
}

.p-single__contents{
  margin-top: 50px;
}

.p-single__title{
  margin-top: 25px;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.5;
}

.p-single__lists{
  display: flex;
  gap: 40px;
  align-items: center;
}

.p-single__cat,
.p-single__date{
  font-size: 1.4rem;
  line-height: 1.5;
}

.p-single__date{
  font-weight: 700;
}

.p-single__cat{
  background-color: var(--green);
  color: #fff;
  border-radius: 100px;
  padding: 5px 30px
}

.p-single__figure{
  margin-top: 45px;
  margin-bottom: 45px;
  margin-inline: auto;
  width: min(100%, 960px);

  & img{
    display: block;
    width: calc( 810 / 960 * 100%);
    height: auto;
    object-fit: cover;
    margin-inline: auto;
  }
}

.p-single__header-block{
  margin-top: 45px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 45px;
}

.p-single__figure-property{
  width: min(100%, 540px);
  margin-inline: auto;
}

.p-single__figure-property img{
  display: block;
  width: 100%;
  object-fit: cover;
  height: auto;
}

.p-single__body-property{
  margin-top: 60px;
}

.p-single__body{

  & h2, & h3, & h4, & p, & ul, & ol{
    margin-top: 1.5em;
    margin-bottom: 1.5em;
  }

  & h2{
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.5;
  }

  & h3{
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.5;
  }

  & h4{
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.5;
  }

  & p{
    font-size: 1.4rem;
    line-height: 2;
  }

  & ul, & ol{
    font-size: 1.4rem;
    line-height: 2;
    list-style-position: outside;
    margin-left: 1.15em;
  }

  & ul & li{
    list-style-type: disc!important;
  }

  & ol & li{
    list-style-type: decimal!important;
  }

  & a:hover{
    cursor: pointer;
    text-decoration: underline;
  }

  & .wp-block-columns, & > figure{
    margin-top: 35px;
    margin-bottom: 35px;
  }

  & .wp-block-buttons{
    margin-top: 70px;
  }

}

.wp-block-button{
  background-color: var(--green);
  color: #fff;
  border-radius: 100px;
  padding: 10px 30px;
  transition: background-color .3s ease-out;

  & .wp-block-button__link{
    background-color: transparent;
  }

  & .wp-block-button__link:hover{
    text-decoration: none;
  }
}

.wp-block-button:hover{
  background-color: #238764;
}

@media screen and (min-width: 768px) {
  .p-single{
    margin-top: 60px;
  }

  .p-single__title{
    font-size: 3rem;
    margin-top: 30px;
  }

  .p-single__figure{
    margin-top: 60px;
    margin-bottom: 60px;
  }

  .p-single__date{
    font-size: 1.5rem;
    line-height: 1.5;
  }

  .p-single__body-property{
    margin-top: 100px;
  }

  .p-single__body{
    & h2, & h3, & h4, & p, & ul, & ol{
      margin-top: 2em;
      margin-bottom: 2em;
    }
  
    & h2{
      font-size: 2.4rem;
    }
  
    & h3{
      font-size: 2.0rem;
    }

    & h4{
      font-size: 1.8rem;
    }
  
    & p, & ul, & ol{
      font-size: 1.5rem;
    }
  
  }
}


/*
pagenation
*/
.c-pagenation{
  margin-top: 60px;
  display: flex;
  align-items: center;
  justify-content: center;

  & .wp-pagenavi{
    position: relative;
    display: flex;
    justify-content: center;
  }

  & .page, & .current, & .last, & .first{
    margin: 0 5px;
    width: 3rem;
    height: 3rem;
    display: inline-block;
    vertical-align: middle;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    line-height: normal;
    letter-spacing: .1em;
    font-weight: 400;
    transition: filter .3s ease-out;
  }

  & .extend, & .first{
    align-self: center;
  }

  & .current{
    color: #fff;
    background-color: var(--green);
  }

  & .page, & .last, & .first{
    color: var(--green);
    background-color: #fff;
    border: 1px solid var(--green);
  }
}

.previouspostslink,
.nextpostslink{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  transition: filter .3s ease-out;

  & span{
    background-image: url(../images/common/arrow.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    height: 100%;
    width: 21px;
    height: 13px;
  }
}

  & .nextpostslink{
  span{
    scale: -1 -1;
  }
}

.previouspostslink{
  margin-right: 10px;
}

.nextpostslink{
  margin-left: 10px;
}
  

@media screen and (min-width: 768px) {
  .c-pagenation{
    margin-top: 100px;
  }

  .c-pagenation{
    & .page, & .current, & .last, & .first{
      font-size: 1.6rem;
      width: 3.5rem;
      height: 3.5rem;
    }
  }

  
  .previouspostslink{
    margin-right: 25px;
  }
  
  .nextpostslink{
    margin-left: 25px;
  }
}

.p-single__page{
  --_width: 150px;
  margin-top: 50px;
  display: grid;
  grid-template-columns: 1fr minmax(0, var(--_width)) 1fr;
  align-items: center;
  width: fit-content;
  margin-inline: auto;
  align-items: center;
  gap: 13px;
}

.p-single__page-button{
  --height: 45px;
  text-align: center;
  height: var(--height);
  grid-column: 2 / 3;
  font-size: 1.3rem;
  background-color: #222;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .3s ease-out;
}

.p-single__page-button:hover{
  background-color: var(--green);
}

.p-single__page-prev,
.p-single__page-next{
  --size: 1.3rem;
  font-size: var(--size);
  letter-spacing: .1em;
  font-weight: 400;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  color: #222;

  &::before,
  &::after{
    display: inline-block;
    width: 1.3rem;
    aspect-ratio: 21 / 13;
    background: url(../images/common/arrow.svg);
    background-size: contain;
    background-repeat: no-repeat;
  }
}


.p-single__page-prev{
  --space: .5em;
  grid-column: 1 / 2;
  &::before{
    margin-right: .7em;
  }
}

.p-single__page-next{
  grid-column: 3 / 4;
  &::after{
    scale: -1 -1;
    margin-left: .7em;
  }
}

@media screen and (min-width: 768px) {
  .p-single__page{
    --_width: 270px;
    margin-top: 100px;
    gap: 30px;
    font-size: 1.8rem;
  }

  .p-single__page-button{
    --height: 60px;
    font-size: 1.8rem;
  }

  .p-single__page-prev,
  .p-single__page-next{
    --size: 1.8rem;
  }

  .p-single__page-prev::before{
      content: "";
  }
  
  
  .p-single__page-next::after{
      content: "";
  }
}

.p-archive__no-text{
  margin-top: 50px;
  text-align: center;
  font-size: 1.6rem;
}

.p-archive__movies{
  margin-top: 60px;

  & h2{
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    color: var(--green);
    position: relative;
    width: fit-content;
    margin-inline: auto;

    &::before,
    &::after{
      content: "";
      display: inline-block;
      width: 2px;
      height: 100%;
      background-color: var(--green);
      position: absolute;
      top: calc( 2rem * 2 / 2);
      translate: 0 -50%;
    }

    &::before{
      rotate: -45deg;
      left: -1em;
    }

    &::after{
      rotate: 45deg;
      left: auto;
      right: -1em;
    }
  }
}

.p-archive__movies-items{
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 50px 40px;
}

.p-archive__movies-item{
  width: min(100%, 400px);
  margin-inline: auto;

  & iframe{
    background-color: aliceblue;
    width: 100%;
    height: auto;
    aspect-ratio: 340 / 609;
    border-radius: 10px;
  }
}

.p-archive__movie-item-active{
  margin-top: 20px;
  min-width: 140px;
  height: 33px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--red);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  width: fit-content;
  border-radius: 100px;
}

@media screen and (min-width: 768px) {
  .p-archive__movies{
    margin-top: 110px;

    & h2{
      font-size: 2.4rem;
    }
  }

  .p-archive__movies-items{
    display: grid;
    gap: 40px;
  }
}

.p-single__header-text-item{
  display: flex;
  font-size: 2rem;
  letter-spacing: .05em;
  line-height: 1.5;
  font-weight: 700;
  color: var(--green);

  & dd{
    flex: 1;
  }
}

.p-single__header-text-lists{
  margin-top: 45px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.p-single__header-text-list{
  display: flex;
  gap: 15px;
  font-size: 1.5rem;
  line-height: 27px;

  & dt{
    font-weight: 700;
    /* min-width: 140px; */
    min-width: 95px;
    height: 27px;
    background-color: var(--green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
  }
  
  & dd{
    letter-spacing: .05em;
    font-size: 500;
  }
}

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

  .p-single__header-text-item{
    font-size: 3rem;
  }

  .p-single__header-text-list{
    font-size: 1.6rem;
    line-height: 33px;

    & dt{
      min-width: 140px;
      height: 33px;
    }
  }
}

@media screen and (min-width: 1024px) {
  .p-single__header-block{
    gap: 75px;
    grid-template-columns: calc(540 / 1100 * 100%) 1fr;
  }
}

.p-form{
  margin-top: 50px;
}

.wpcf7 {
  max-width: 1100px;
  margin: 0 auto;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

.form-section {
  margin-bottom: 50px;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.section-title {
  margin: 0 0 15px;
  padding: 8px 0;
  font-size: 18px;
  font-weight: bold;
  color: #333;
  border-left: 5px solid #c00;
  padding-left: 10px;
  position: relative;
}

.form-group {
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 20px 20px;
  border-bottom: 1px solid #dadada;


    &:nth-child(even):not(.privacy-policy){
      background-color: #f5f5f0;
    }
    
}

@media screen and (min-width: 768px) {
  .form-group{
    gap: 30px;
    padding: 30px 40px;
    grid-template-columns: 230px 1fr;
  }
}

.form-group.required{
  --content: "必須";
}

.form-group .control-label:after {
  font-size: 12px;
  padding: 2px 5px;
  margin-left: 8px;
  border-radius: 3px;
}

.form-group.required .control-label:after {
  content: "必須";
  background-color: #c00;
  color: #fff;
}

.form-group.optional .control-label:after {
  content: "任意";
  background-color: #999;
  color: #fff;
}

.wpcf7-radio {
  display: block;
}

.wpcf7-radio .wpcf7-list-item {
  display: block;
  margin: 0 0 12px 0;
  position: relative;
}

.wpcf7-radio .wpcf7-list-item.last {
  margin-bottom: 0;
}

.wpcf7-radio .wpcf7-list-item label {
  display: block;
  padding-left: 25px;
  position: relative;
  cursor: pointer;
  line-height: 1.4;
}

.wpcf7-radio .wpcf7-list-item input[type="radio"] {
  position: absolute;
  left: 0;
  top: 2px;
  margin: 0;
}

.wpcf7-radio .wpcf7-list-item-label {
  display: inline-block;
  width: calc(100% - 25px);
  word-break: break-word;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.wpcf7-radio input[type="radio"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid #ccc;
  border-radius: 50%;
  outline: none;
}

.wpcf7-radio input[type="radio"]:checked {
  border: 5px solid #0066cc;
  background-color: #fff;
}

.wpcf7-form-control:not(.wpcf7-radio):not(.wpcf7-acceptance):not(.wpcf7-submit) {
  width: 100%;
  min-height: 35px;
  padding: 5px 10px; 
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  margin-top: 5px;
  box-sizing: border-box;
}

.wpcf7-textarea {
  min-height: 100px;
}

.other-input {
  margin-top: 10px;
  display: none;
}

.postal-code-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.zip-input {
  max-width: 150px;
}

.btn-postal-code {
  padding: 8px 10px;
  background-color: #eee;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}

.form-note {
  margin: 5px 0;
  font-size: 13px;
  color: #666;

  & span{
    display: block;
  }
}

.privacy-policy {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.privacy-policy a {
  color: #0066cc;
  text-decoration: underline;
}

.wpcf7-acceptance label {
  cursor: pointer;
}

.form-submit {
  text-align: center;
  margin-top: 30px;
}

.btn-submit {
  padding: 12px 45px;
  font-size: 18px;
  background-color: #0d563d!important;
  color: #fff;
  width: min(100%, 300px);
  transition: background-color .3s ease-out;
}

.btn-submit:disabled{
  background-color: #ccc!important;
  cursor: not-allowed;
}

.btn-submit:not(:disabled):hover{
  background-color: #2b795d!important;
  cursor: pointer;
}

.wpcf7-not-valid-tip {
  color: #c00;
  font-size: 13px;
  margin-top: 5px;
  width: 400px;
}

.wpcf7-response-output {
  margin: 20px 0;
  padding: 15px;
  border: 2px solid #c00;
  background-color: #fff;
  color: #c00;
  text-align: center;
  border-radius: 5px;
}

.wpcf7-mail-sent-ok {
  border-color: #398f14;
  color: #398f14;
}

@media screen and (max-width: 768px) {
  .btn-submit {
    width: 100%;
    max-width: 300px;
  }
}