/*********************************
pc
*********************************/

#mainvisual {
    height: 100vh;
    background: top / cover no-repeat url(/wp/wp-content/themes/kouhouan/assets/images/top/mainvisual.jpg);
}
#read {
    padding: 120px 0 120px 3%;
    background: right / contain no-repeat url(/wp/wp-content/themes/kouhouan/assets/images/top/read.png);
}
#read p {
    font-size: 40px;
    line-height: 2;
    margin-bottom: 40px;
}
#read p > span {
    display: inline-block;
}
#read > span {
    font-size: 20px;
    line-height: 2;
    color: #B18147;
    letter-spacing: .1em;
}
#about {
    position: relative;
    background: #F9F8F3;
    z-index: 1;
}
#about .about-item { 
    position: relative;
}
#about .about-item:nth-of-type(1),
#about .about-item:nth-of-type(2),
#about .about-item:nth-of-type(3) {
    background:#F9F8F3;
}
#about .about-item:nth-of-type(1) {
    padding-top: 40px;
}
#about .about-item:nth-of-type(2),
#about .about-item:nth-of-type(3) {
    border-top: solid 1px #B8AA87;
}
#about .about-item:nth-of-type(3) {
    padding-bottom: 40px;
}
#about .about-item__inner { 
    width: 100%;
    padding: 80px 0;
    box-sizing: border-box;
}
#about .about-item__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4%;
}
#about .about-item__title {
    font-size: 32px;
    color: #B18147;
    margin-bottom: 24px;
}
#about .about-item__description { 
    line-height: 2;
    margin-bottom: 48px;
}
#about .about-item__image {
    width: 50%;
    height: 400px;
    object-fit: cover;
}
.more__link {
    display: flex;
    gap: 8px;
    align-items: baseline;
}
.more__link img {
    transition: all .3s;
}
.more__link:hover img {
    transform: translateY(-2px);
}
#works .works__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    color: #FFFFFF;
    background: top / cover no-repeat url(/wp/wp-content/themes/kouhouan/assets/images/top/works_bg.jpg);
    padding: 120px 4%;
}
#works .works__heading h2 {
    font-size: 32px;
    margin-bottom: 40px;
}
#works .works__heading p {
    line-height: 2;
}
#works .works__list {
    display: flex;
    flex-wrap: wrap;
}
#works .works__list-item {
    width: 33.3%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    aspect-ratio: 1 / 1;
}
#works .works__list-item a {
    display: block;
    height: 100%;
}
#works .works__item-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    height: 100%;
    color: #fff;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: all .3s;
}
#works .works__list-item a:hover .works__item-content {
    opacity: 1;
}
#works .works__item-title {
    font-size: 24px;
}
#works .works__item-meta {
    display: flex;
    gap: 16px;
    align-items: center;
}
#works .works__item-meta span {
    content: "";
    width: 40px;
    height: 1px;
    background: #fff;
}
#works .works__item-category ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
#works .works__item-category ul li {
    font-size: 14px;
    padding: 4px 8px;
    border: solid #fff;
    border-radius: 50px;
}
#service {
    padding: 120px 0;
}
#service .service__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    padding: 0 4%;
    margin-bottom: 64px;
}
#service .service__heading h2 {
    font-size: 32px;
    color: #B18147;
    margin-bottom: 40px;
}
#service .service__heading h3 {
    font-size: 20px;
    line-height: 2;
    margin-bottom: 24px;
}
#service .service__heading h3 span {
    display: inline-block;
}
#service .service__heading p {
    line-height: 2;
}

#service .service__slider {
    width: 100%;
    overflow: hidden;
}
#service .service__slider-inner {
    display: flex;
    gap: 16px;
    width: max-content;
    height: 500px;
    animation: slide 50s infinite linear;
}
@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 8px));
    }
}
#service .service__slider-item {
    height: 100%
}
#service .service__slider-item:nth-of-type(2),
#service .service__slider-item:nth-of-type(5),
#service .service__slider-item:nth-of-type(8), 
#service .service__slider-item:nth-of-type(11) {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
#service .service__slider-item img {
    height: 100%;
}
#service .service__slider-item:nth-of-type(2) img,
#service .service__slider-item:nth-of-type(5) img,
#service .service__slider-item:nth-of-type(8) img, 
#service .service__slider-item:nth-of-type(11)  img {
    height: 49%;
}

#access {
    background: #F9F8F3;
    padding: 120px 4%;
}
#access h2 {
    font-size: 32px;
    color: #B18147;
    text-align: center;
    margin-bottom: 40px;
}
#access iframe {
    width: 100%;
    height: 400px;
    margin-bottom: 32px;
}
#access .access__map-link {
    display: flex;
    align-items: baseline;
    gap: 4px;
    width: fit-content;
    padding-bottom: 2px;
    border-bottom: solid 1px;
    margin-left: auto;
    margin-bottom: 16px;
}
#access p {
    font-size: 20px;
    margin-bottom: 8px;
}
#access address {
    margin-bottom: 24px;
}
#access address span{
    display: block;
}
@media(max-width:820px) {
    #works .more__link,
    #service .more__link {
        width: 100%;
        justify-content: end;
    }
}

@media(max-width:768px) {
    .more__link {
        justify-content: end;
    }
    #about .about-item__content {
        flex-direction: column-reverse;
        align-items: start;
        gap: 40px;
    }
    #about .about-item__content div {
        width: 100%;
    }
    #about .about-item__content .about-item__image {
        width: 100%;
    }
}

@media(max-width:500px) {
    body {
        font-size: 14px;
    }
    #mainvisual {
        height: 60vh;
        background: 70% calc(50% - -64px) / cover no-repeat url(/wp/wp-content/themes/kouhouan/assets/images/top/mainvisual-sp.jpg);
    }
    #read {
        padding: 48px 0 48px 3%;
    }
    #read p {
        font-size: 20px;
        margin-bottom: 16px;
    }
    #read > span {
        font-size: 12px;
    }
    #about .about-item:nth-of-type(1) {
        padding-top: 16px;
    }
    #about .about-item:nth-of-type(3) {
        padding-bottom: 16px;
    }
    #about .about-item__inner {
        padding: 40px 0;
    }
    #about .about-item__content {
        gap: 16px;
    }
    #about .about-item__title {
        font-size: 24px;
        margin-bottom: 16px;
    }
    #about .about-item__description {
        margin-bottom: 8px;
    }
    #about .about-item__image {
        height: 240px;
    }
    #works .works__heading {
        gap: 24px;
        padding: 32px 4%;
    }
    #works .works__heading h2 {
        font-size: 24px;
        margin-bottom: 24px;
    }
    #works .works__item-content {
        display: none;
    }
    #service {
        padding: 56px 0;
    }
    #service .service__heading {
        gap: 24px;
    }
    #service .service__heading h2 {
        font-size: 24px;
        margin-bottom: 24px;
    }
    #service .service__heading h3 {
        font-size: 18px;
        margin-bottom: 16px;
    }
    #service .service__slider-inner {
        gap: 4px;
        height: 160px;
    }
    #access {
       padding: 56px 4%; 
    }
    #access h2 {
        font-size: 24px;
        margin-bottom: 24px;
    }
    #access iframe {
        height: 240px;
        margin-bottom: 16px;
    }
    #access .access__map-link img {
        height: 10px;
    }
    #access p {
        font-size: 16px;
        margin-bottom: 8px;
    }
    #access address {
        margin-bottom: 16px;
    }
}
