/* Theme Name: arx-hars
Theme URI: https://test.arx-hars.com/
Description: 西東京市の注文住宅/リフォーム
Version: 1.0
Author: Shu Hamaji
*/

@charset "utf-8";

/* //////////////// */
/* First View */
/* //////////////// */

#first_view {
    position: relative;
    z-index: 0;
    height: 100dvh;
    height: calc(var(--vh, 1vh) * 100);
    overflow: hidden;
}

#first_view::after {
    content: "";
    /* display: block; */
    position: absolute;
    /* width: 100%; */
    background-color: rgba(0, 0, 0, .15);
    z-index: 1;
    inset: 0;
    /* overflow: hidden; */
}

#first_view .slide_show {
    width: 100%;
    height: 100%;
}

#first_view .slide_show li {
    width: 100%;
    height: 100%;
}

#first_view .slide_show li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center ;
    vertical-align: bottom;
}

#first_view .catch-copy {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
}

@media screen and (max-width: 412px) {
    #first_view .catch-copy {
        width: 80%;
    }
}

#first_view .catch-copy .catch-copy_main {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    line-height: 4rem;
    text-align: center;
}

@media screen and (max-width: 412px) {
    #first_view .catch-copy .catch-copy_main {
        font-size: 1.61rem;
        margin-bottom: 1.88rem;
        line-height: 1.8em;
        text-align: left;
    }
}

#first_view .catch-copy .catch-copy_sub {
    font-size: 1.88rem;
    text-align: center;
}

@media screen and (max-width: 412px) {
    #first_view .catch-copy .catch-copy_sub {
        font-size: 1.61rem;
        text-align: left;
    }
}

#first_view .first_view-logo_box {
    position: absolute;
    left: 0;
    bottom: -1px;
    background-color: #fff;
    padding: 1.16rem 1.88rem;
    border-radius: 0 23px 0 0;
    z-index: 2;
}

@media screen and (max-width: 800px) {
    #first_view .first_view-logo_box {
        padding: 1.25rem 1.88rem;
    }
}

#first_view .first_view-logo_box img {
    width: 13.75rem;
}

@media screen and (max-width: 800px) {
    #first_view .first_view-logo_box img {
        width: 9.375rem;
    }
}

/* //////////////// */
/* SECTION NEWS & SNS */
/* //////////////// */

#news_and_sns {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.88rem 6.25rem;
    font-size: 1rem;
    font-weight: 400;
    box-shadow: 0 0 5px 0 rgb(0 0 0 / 20%);
}

@media screen and (max-width: 800px) {
    #news_and_sns {
        padding: 1.88rem 5%;
    }
}

@media screen and (max-width: 412px) {
    #news_and_sns {
        padding: 1.25rem 5% 3.75rem 5%;
    }
}

#news_and_sns .news_wrapper {
    display: flex;
    align-items: center;
    width: 75%;
    padding-right: 3.13rem;
    border-right: 1px solid #777;
    height: 3.13rem;
}

@media screen and (max-width: 1280px) {
    #news_and_sns .news_wrapper {
        width: 100%;
        padding-right: 0;
        border-right: none;
    }
}

@media screen and (max-width: 412px) {
    #news_and_sns .news_wrapper {
        display: block;
        padding-bottom: 1.25rem;
    }
}

#news_and_sns #newslist {
  position: relative;
  height: 2em;
  overflow: hidden;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media screen and (max-width: 412px) {
    #news_and_sns #newslist {
        margin-top: 1.25rem;
        padding-bottom: 5rem;
    }
}

.top_news_content {
  position: absolute;
  width: 100%;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 1.2s ease, transform 1.2s ease;
  pointer-events: none;
}

.top_news_content a {
    transition: .5s all;
}

.top_news_content:hover a {
    opacity: .8;
    transition: .5s all;
}

.top_news_content a .top_news_category {
    transition: .5s all;
}

.top_news_content:hover a .top_news_category {
    opacity: .8;
    transition: .5s all;
}

.top_news_content.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}

.top_news_content.exit-up {
  opacity: 0;
  transform: translateY(-100%);
  /* position は変えない！active のままでアニメーション終了後に JS で削除 */
}

#news_and_sns .news_wrapper ul .top_news_content a {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

@media screen and (max-width: 412px) {
    #news_and_sns .news_wrapper ul .top_news_content a {
        display: block;
    }
}

#news_and_sns .top_news_heading {
    padding-right: 3.13rem;
    margin-right: 3.13rem;
    border-right: 1.5px solid #777;
    height: 1.88rem;
    display: flex;
    align-items: center;
    font-weight: bold;
}

@media screen and (max-width: 412px) {
    #news_and_sns .top_news_heading {
        height: 1.25rem;
    }
}

.top_news_d_c {
    display: flex;
    align-items: center;
}

#news_and_sns .top_news_date {
    font-size: 1rem;
    margin-right: 1.25rem;
}

#news_and_sns .top_news_category {
    font-size: 0.88rem;
    letter-spacing: normal;
    font-weight: normal;
    padding:  0 0.61rem;
    border-radius: 0.5rem;
    display: inline-block;
    line-height: 1.5em;
    margin-right: 1.25rem;
}

@media screen and (max-width: 412px) {
    #news_and_sns .top_news_category {
        margin-right: 0.62rem;
    }
}

#news_and_sns .top_news_title {
    font-size: 1rem;
}

#news_and_sns .top_news_more {
    margin-left: auto;
}

#news_and_sns .top_sns_heading {
    font-size: 0.88rem;
    font-weight: bold;
}

#news_and_sns .sns_wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media screen and (max-width: 1280px) {
    #news_and_sns .sns_wrapper {
    display: none;
    }
}

#news_and_sns .sns_wrapper ul {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#news_and_sns .sns_wrapper ul a {
    display: flex;
    margin-left: 1.25rem;
}

/* //////////////// */
/* SECTION WORKS */
/* //////////////// */

#top_works .btn_link {
    margin-left: auto;
    margin-right: auto;
}

details {
    margin-top: 6.25rem;
    position: relative;
}

@media screen and (max-width: 412px) {
    details {
        margin-top: 3.13rem;
    }
}

summary {
    width: 100%;
    background-color: #D9D9D9;
    border-radius: 1.25rem;
    height: 5rem;
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 3.75rem;
    width: 100%;
    box-sizing: border-box;
}

details[open] summary {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

summary::before {
    content: "";
    display: block;
    width: 0.62rem;
    height: 0.62rem;
    border-radius: 50%;
    background-color: #A6381B;
    position: absolute;
    left: 2.5rem;
}

details .area_icon {
    height: 15px;
    position: absolute;
    right: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
}

details .area_icon::after,
details .area_icon::before {
    background: #fff;
    content: "";
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: #333;
}

details .area_icon::before {
    height: 2px;
    width: 100%;
}

details .area_icon::after {
    height: 100%;
    width: 2px;
    opacity: 1;
    transition: opacity 0.4s ease; 
}

details[open] .area_icon::after {
    opacity: 0;
}

details .accordion_content-box {
    background-color: #fff;
    border: 1px solid #D9D9D9;
    border-bottom-left-radius: 1.25rem;
    border-bottom-right-radius: 1.25rem;
    width: 100%;
    box-sizing: border-box;
    position: absolute;   /* ←ここがポイント */
    left: 0;
    top: 100%;            /* summaryの真下から表示 */
    z-index: 10;          /* 下の要素より上に重なる */
    display: none;  
}

details[open] .accordion_content-box {
    display: block;
    padding: 1em;
}

details .accordion_content-box p {
    line-height: 2em;
}


/* //////////////// */
/* SECTION ABOUT */
/* //////////////// */

#top_about .content_wrapper_01 {
    padding-top: 9.375rem;
    padding-bottom: 9.375rem;
}

@media screen and (max-width: 800px) {
    #top_about .content_wrapper_01 {
        padding-top: 6.25rem;
        padding-bottom: 6.25rem;
    }
}

@media screen and (max-width: 412px) {
     #top_about .content_wrapper_01 {
        padding-top: 3.13rem;
        padding-bottom: 3.13rem;
    }
}

/* Slogan */

#top_about .top_about_slogan-box {
    align-items: start;
    margin-bottom: 6.25rem;
    display: flex;
    justify-content: space-between;
}

@media screen and (max-width: 800px) {
    #top_about .top_about_slogan-box {
        display: block;
    }
}

@media screen and (max-width: 412px) {
     #top_about .top_about_slogan-box {
        margin-bottom: 3.13rem;
    }
}

#top_about .slogan-box_left {
    width: 56%;
}

@media screen and (max-width: 800px) {
    #top_about .slogan-box_left {
        width: 100%;
        margin-bottom: 3.13rem;
    }
}

#top_about .slogan-box_img-box {
    width: 40%;
    height: 34.75rem;
    overflow: hidden;
    position: relative;
    border-radius: 1.88rem;
}

@media screen and (max-width: 800px) {
    #top_about .slogan-box_img-box {
        width: 100%;
    }
}

#top_about .slogan-box_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

#top_about .top_about_text_02 {
    font-size: 2.38rem;
    margin: 3.13rem 0;
    line-height: 1.5em;
}

#top_about .top_about_text_03 {
    font-size: 1.75rem;
    margin-bottom: 2.5rem;
} 

#top_about .top_about_text_04 {
    margin-bottom: 2.5rem;
} 

#top_about .top_about_text_05 {
    margin-bottom: 2.5rem;
} 

/* Features */

#top_about .features-box {
    border-radius: 1.88rem;
    padding: 3.13rem;
    margin-bottom: 6.25rem;
}

@media screen and (max-width: 800px) {
    #top_about .features-box {
        padding: 1.25rem;
    }
}

@media screen and (max-width: 412px) {
    #top_about .features-box {
        margin-bottom: 3.13rem;
    }
}

.features-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center; 
}

.features_list {
    display: grid;
    grid-template-rows: repeat(2, auto);   
    grid-template-columns: repeat(2, 1fr);     
    grid-auto-flow: column;                     
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    margin-top: 3.13rem;
}

@media screen and (max-width: 800px) {
        .features_list {
        display: block;
    }
}

@media screen and (max-width: 412px) {
    .features_list {
        margin-bottom: 1.88rem;
    }
}

.features_list::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 7px;
  background-color: #ccc;
  transform: translateX(-50%);
  border-radius: 9999px;
  z-index: 0;
}

@media screen and (max-width: 800px) {
        .features_list::before {
            display: none;
    }
}

.features_list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem 1.25rem 1.25rem;
}

@media screen and (max-width: 800px) {
        .features_list li {
        margin-top: 3.13rem;
    }
}

@media screen and (max-width: 412px) {
    .features_list li {
        display: block;
        padding: 0;
    }
}

.features_list .img-box {
    width: 5.62rem;
    height: 5.62rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media screen and (max-width: 412px) {
    .features_list .img-box {
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 1.25rem;
    }
}

.features_list img {
    width: 4rem;
}

.features_list .text-box {
    flex: 1;
    margin-left: 1.25rem;
}

@media screen and (max-width: 412px) {
    .features_list .text-box {
        margin-left: 0;
    }
}

.features_list h4 {
    margin-bottom: 1.25rem;
}

@media screen and (max-width: 412px) {
    .features_list h4 {
        text-align: center;
    }
}

@media screen and (max-width: 412px) {
    .features_list .text-box .text-area {
        text-align: center;
    }
}

#top_about .btn_link {
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #fff;
    padding-left: 1.56rem;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0);
}

#top_about .btn_link:hover {
    background-color: rgba(255, 255, 255, 1);
}

#top_about .btn_link::after {
    border-right: 2.5px solid #fff;
    border-bottom: 2px solid #fff;
}

#top_about .btn_link:hover::after {
    border-right: 2.5px solid #A6381B;
    border-bottom: 2px solid #A6381B;
}

/* SECTION SERVICE */

#top_service {
    margin-bottom: 9.375rem;
}

@media screen and (max-width: 800px) {
    #top_service {
        margin-bottom: 6.25rem;
    }
}

.service-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-number,
.service_logo-add,
.service_logo-main {
    line-height: 1em;
}

@media screen and (max-width: 412px) {
    .service_logo-add {
        font-size: 1rem;
        letter-spacing: 0.1em;
    }
}

.service_logo-main {
    margin-top: 0.31rem;
}

#top_service .figure-left {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 6.25rem;
    margin-right: 13%;
}

@media screen and (max-width: 1536px) {
    #top_service .figure-left {
        margin-right: 10%;
    }
}

@media screen and (max-width: 800px) {
    #top_service .figure-left {
        display: block;
        margin-right: 5%;
    }
}

@media screen and (max-width: 412px) {
    #top_service .figure-left {
        margin-top: 3.13rem;
    }
}

#top_service .figure-right {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-direction: row-reverse;
    margin-top: 6.25rem;
    margin-left: 13%;
}

@media screen and (max-width: 800px) {
   #top_service .figure-right {
        display: block;
        margin-left: 5%;
    }
}

@media screen and (max-width: 412px) {
   #top_service .figure-right {
        margin-top: 3.13rem;
    }
}

#top_service .figure-left_img-box {
    border-top-right-radius: 1.88rem;
    border-bottom-right-radius: 1.88rem;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    width: 50%;
}

@media screen and (max-width: 800px) {
    #top_service .figure-left_img-box {
        width: 100%;
        margin-bottom: 1.88rem;
    }
}

#top_service .figure-left_img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

@media screen and (max-width: 800px) {
    .figure-left .btn_link_left  {
        margin-left: auto;
    }
}

@media screen and (max-width: 800px) {
    .figure-right .btn_link_left  {
        margin-left: auto;
    }
}

#top_service .figure-right_img-box {
    border-top-left-radius: 1.88rem;
    border-bottom-left-radius: 1.88rem;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    width: 50%;
}

@media screen and (max-width: 800px) {
   #top_service .figure-right_img-box {
        width: 100%;
        margin-bottom: 1.88rem;
    }
}

#top_service .figure-right_img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

#top_service .figure-left figcaption {
    margin-left: 6.25rem;
}

@media screen and (max-width: 800px) {
    #top_service .figure-left figcaption {
        margin-left: 5%;
    }
}

#top_service .figure-right figcaption {
    margin-right: 6.25rem;
}

@media screen and (max-width: 800px) {
    #top_service .figure-right figcaption {
        margin-right: 5%;
    }
}

#top_service .service_item-title {
    display: flex;
    align-items: center;
}

#top_service .service-number {
    font-size: 3.75rem;
    letter-spacing: 0;
     background: linear-gradient(to bottom, #E98367, #7B2109);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    display: inline-block;
    /* Firefox対応 */
    background-clip: text;
    color: transparent;
    margin-right: 0.62rem;
}

#top_service figcaption h4 {
    margin-bottom: 1.88rem
}

#top_service .service-text {
    margin-bottom: 1.88rem
}