/*
Theme Name: ryukore
Version: 1.0.0
Author: kflat
*/

/*****************************
* base
******************************/
*, *:before, *:after {
    box-sizing: border-box;
}

html {
    height: 100%;
    font-size: 62.5%;
    -webkit-text-size-adjust: 100%;
}

body {
    font-size: 1.6rem;
    letter-spacing: .05rem;
    height: 100%;
    font-family: "Helvetica Neue", "Helvetica", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Arial", "Yu Gothic", "Meiryo", sans-serif;
}

/*****************************
* header
******************************/

.header-component {
    width: 100%;
    position: fixed;
    z-index: 100;
    height: 80px;
    border-bottom: 4px solid #72D188;
    background-color: #ffffff;
}

.inner-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1080px;
    margin: 0 auto;
    height: 100%;
    width: 95%;
}

@media(max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    .inner-header{
        max-width: 690px;
        width: 90%;
    }
}

/* ------ burgerStyle --------*/

.toggle-btn {
    display: block;
    cursor: pointer;
    width: 33px;
    height: 22px;
    position: relative;
    z-index: 3;
}

.toggle-btn span {
    position: absolute;
    width: 33px;
    height: 3px;
    background-color: #000000;
    transition: all 0.5s;
    border-radius: 4px;
}

.toggle-btn.scrollNav span {
    background-color: black;
}

.toggle-btn span:nth-child(1) {
    top: 0px;
}

.toggle-btn span:nth-child(2) {
    top: 10px;
}

.toggle-btn span:nth-child(3) {
    bottom: 0px;
}

.open .toggle-btn span {
    background-color: #fff;
}

.open .toggle-btn.scrollNav span {
    background-color: black;
}

.open .toggle-btn span:nth-child(1) {
    transform: translateY(10px) rotate(-315deg);
}

.open .toggle-btn span:nth-child(2) {
    opacity: 0;
}

.open .toggle-btn span:nth-child(3) {
    transform: translateY(-10px) rotate(315deg);
    @media(max-width: 768px) {
        transform: translateY(-16px) rotate(315deg);
    }
}

.open .toggle-close_btn span {
    background-color: #000;
}

@media screen and (max-width:520px) {
    .toggle-btn {
        height: 28px;
        margin-left: 15px;
    }

    .toggle-btn span {
        width: 28px;
        height: 2px;
    }

    .toggle-btn span:nth-child(2) {
        top: 13px;
    }
}

/* -------- innerBurgerMenu ---------- */

nav {
    display: block;
    position: fixed;
    background: url("./assets/FV_background.svg");
    background-color: #93F8A0;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    width: 410px;
    height: 100vh;
    top: 0;
    right: -1000px;
    bottom: 0;
    transition: all .6s;
    z-index: 101;
    opacity: 0;
}

.open nav {
    right: 0;
    opacity: 1;
}

nav .inner-menu {
    margin-top: 100px;
    padding: 25px;
}


nav .inner-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav .inner-menu ul li {
    margin: 0;
}

nav .inner-menu ul li a , #closeBtn{
    color: #333;
    font-size: 1.625em;
    padding: 1rem;
    text-decoration: none;
    transition-duration: 0.2s;
    font-family: 'DIN Condensed', sans-serif;
    display: flex;
    align-items: center;
}

nav .inner-menu ul li a img {
    width: 50px;
    margin-right: 20px;
    object-fit: cover;
}

#closeBtn {
    margin-left: 0.6em;
    margin-top: 20px;
    font-size: 3.75em;
    position:absolute;
    right: 10%;
    cursor: pointer;
}

nav .inner-menu ul li a:hover {
    opacity: 0.3;
}

#mask {
    display: none;
    transition: all 2s;
}

.open #mask {
    display: block;
    background: #000;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: fixed;
    opacity: 0.8;
    z-index: 3;
    cursor: pointer;
}

@media screen and (max-width:520px) {
    nav .inner-menu ul li a {
        font-size: 20px;
    }
}


/*****************************
* footer
******************************/

.footer-component {
    width: 100%;
    border-bottom: 14px solid #72D188;
    position: relative;
    background: #f8f8f8;
}

.inner-footer {
    max-width: 840px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    padding: 40px 0;
    font-size: 12px;
}

.footer-top-menu {
    width: 100%;
    margin-bottom: 130px;
}

.footer-top-menu ul {
    display: flex;
    justify-content: space-between;
}

.footer-top-menu a,
.footer-under-menu a {
    text-decoration: none;
    color: #000000;
    margin-left: 10px;
}

.footer-under-menu {
    max-width: 500px;
    width: 100%;
    margin-top: 32px;
    margin-bottom: 60px;
}

.footer-under-menu ul {
    display: flex;
    justify-content: space-around;
}

.footer-line {
    width: 100%;
    height: 4px;
    margin-bottom: 10px;
    background-color: #72D188;
}

.footer-company {
    font-size: 1.2rem;
    margin: 30px 0;
    text-align: center;
}

@media(max-width: 768px) {
    .footer-component a {
        font-size: 1.25em;
    }
    .inner-footer {
        width: 95%;
        max-width: 750px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        padding-top: 60px;
        padding-bottom: 90px;
        gap: 0;
        grid-auto-flow: row;
        grid-template-areas:
      "a a"
      "b b"
      "c c"
      "d d"
      "e e";
    }

    .footer-top-menu {
        grid-area: a;
    }

    .footer-logo {
        grid-area: c;
    }

    .footer-under-menu {
        grid-area: b;
    }

    .footer-company {
        grid-area: d;
    }

    .copyright {
        grid-area: e;
    }

    .footer-top-menu {
        margin-bottom: 0;
    }

    .footer-top-menu ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr 1fr;
        gap: 0;
        grid-template-areas:
      "e h"
      "f i"
      "g .";
    }
    .assessment {
        grid-area: e;
    }
    .guide {
        grid-area: f;
    }
    .inquiry {
        grid-area: g;
    }
    .search {
        grid-area: h;
    }
    .login {
        grid-area: i;
    }
    .footer-top-menu ul li {
        padding-bottom: 30px;
    }
    .footer-under-menu {
        max-width: 300px;
        width: 100%;
        margin-bottom: 0;
        margin-top: 0;
    }
    .footer-under-menu ul {
        display: flex;
        flex-direction: column;
    }
    .footer-under-menu ul li {
        padding-bottom: 30px;
    }
    .footer-logo {
        margin: 200px auto 0;
    }
    .copyright {
        margin: 10px auto;
    }
}

/*****************************
* メインエリア
******************************/

.contents-wrapper {
    padding-top: 80px;
    width: 100%;
    margin-bottom: 120px;
    resize: horizontal;
}
@media (max-width: 1080px) {
    .contents-wrapper {
        margin-bottom: 0;
    }
}

.contents {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    gap: 50px;
    padding: 60px 0;
}
@media (max-width: 1080px) {
    .contents {
        flex-direction: column;
        padding: 30px 10px;
    }
}

.main {
    flex: 2;
}

.side {
    flex: 1;
}

@media (max-width: 1080px) {
    .article-list {
        margin-bottom: 40px;
    }
}

.article-list, .popular-article-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
@media (max-width: 1080px) {
    .article-list, .popular-article-list {
        gap: 10px;
    }
}

.article-list .icon-arrow {
    display: block;
    border-top: 3px solid #000;
    border-right: 3px solid #000;
    transform: rotate(45deg);
    width: 16px;
    height: 16px;
    align-self: center;
}

.article-list .article-item:first-child .icon-arrow {
    display: none;
}
@media (max-width: 1080px) {
    .article-list .article-item:first-child .icon-arrow {
        display: block;
    }
}

.popular-article-list .icon-arrow {
    display: block;
    border-top: 2px solid #000;
    border-right: 2px solid #000;
    transform: rotate(45deg);
    width: 12px;
    height: 12px;
    align-self: center;
}

/* 1つ目の記事 */
.article-list .article-item:first-child {
    margin-bottom: 40px;
}
@media (max-width: 1080px) {
    .article-list .article-item:first-child {
        margin-bottom: 0;
    }
}

.article-list .article-item:first-child a {
    flex-direction: column;
}
@media (max-width: 1080px) {
    .article-list .article-item:first-child a {
        flex-direction: row;
    }
}

.article-list .article-item:first-child a .article-item-thumbnail {
    width: 100%;
    height: 220px;
}
@media (max-width: 1080px) {
    .article-list .article-item:first-child a .article-item-thumbnail {
        width: 110px;
        height: 110px;
    }
}

.article-list .article-item:first-child a .article-item-thumbnail img {
    min-width: 100%;
    aspect-ratio: 16/9;
    height: 220px;
    object-fit: cover;
}
@media (max-width: 1080px) {
    .article-list .article-item:first-child a .article-item-thumbnail img {
        height: 110px;
        aspect-ratio: 1/1;
    }
}
/* 1つ目の記事ここまで */

.article-item a {
    display: flex;
    gap: 20px;
    flex-direction: row;
    text-decoration: none;
    color: #000;
}

.article-item-thumbnail {
    width: 140px;
    height: 140px;
}
@media (max-width: 1080px) {
    .article-item-thumbnail {
        width: 110px;
        height: 110px;
    }
}
.article-item-thumbnail img {
    object-fit: cover;
    aspect-ratio: 1/1;
}

.popular-article-list .article-item-thumbnail {
    width: 110px;
    height: 110px;
}
.popular-article-list .article-item-thumbnail img {
    object-fit: cover;
    aspect-ratio: 1/1;
}

.article-item-info {
    flex: 1;
}

.article-item-title {
    font-size: 26px;
    color: #5B6F6D;
    font-weight: 600;
    margin-bottom: 8px;
}
.popular-article-list .article-item-title {
    font-size: 18px;
}
@media (max-width: 1080px) {
    .article-item-title,
    .popular-article-list .article-item-title {
        font-size: 16px;
    }
}

.article-item-category {
    font-size: 18px;
    color: #707070;
    margin-bottom: 8px;
}
.popular-article-list .article-itme-category {
    font-size: 10px;
}
@media (max-width: 1080px) {
    .article-item-category,
    .popular-article-list .article-itme-category {
        font-size: 11px;
    }
}

.article-item-excerpt {
    font-size: 16px;
}
.popular-article-excerpt {
    font-size: 12px;
}
@media (max-width: 1080px) {
    .article-item-excerpt,
    .popular-article-excerpt {
        font-size: 14px;
    }
}


.appraisal-request-btn-area {
    width: 100%;
    padding: 40px 0;
    background: #cbf3d8;
}

.btn-wrapper {
    width: 100%;
    text-align: center;
}

.more-btn {
    font-size: 2rem;
    font-weight: 600;
    display: inline-block;
    padding: 20px 0;
    text-decoration: none;
    text-align: center;
    max-width: 600px;
    width: 95%;
    color: #000;
    background: transparent;
    border: 2px solid #000;
    border-radius: 60px;
    cursor: pointer;
}
@media (max-width: 1080px) {
    .more-btn {
        font-size: 1.6rem;
        padding: 16px 0;
    }
}

.more-btn:hover {
    opacity: .5;
}

.appraisal-request-btn {
    font-size: 2rem;
    font-weight: 600;
    display: inline-block;
    padding: 20px 0;
    background: #f4b305;
    border-radius: 60px;
    box-shadow: 0 7px 0 #987516;
    max-width: 600px;
    position: relative;
    text-align: center;
    width: 95%;
    text-decoration: none;
    color: white;
}

.appraisal-request-btn:hover {
    background-color: rgb(255, 187, 0);
}

.appraisal-request-btn::after {
    display: block;
    content: "";
    position: absolute;
    background: url('./assets/img/point-arrow.svg') no-repeat;
    width: 12px;
    height: 20px;
    top: 50%;
    transform: translateY(-50%);
    left: 90%;
}

.appraisal-request-btn:active {
    box-shadow: none;
    transform: translateY(7px);
}

.block {
    margin-bottom: 20px;
}

/*****************************
* サイドバー
******************************/

.heading-sidebar {
    color: #5B6F6D;
    font-size: 20px;
    border-bottom: 2px solid #858585;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.search-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.search-box {
    display: flex;
    /* If you want to place the icon before the text input */
    flex-direction: row;
    /* Border */
    border: 2px solid #5B6F6D;
    border-radius: 4px;
    align-items: center;
    padding-right: 8px;
}

.search-box-input {
    border-color: transparent;
    /* Take available width */
    flex: 1;
    outline: none;
    padding: 4px;
    height: 40px;
}
.search-box-input::placeholder {
    color: lightgray;
}

.search-btn {
    background: transparent;
    border: none;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.icon-search {
    display: block;
    width: 20px;
    height: 20px;
    background: url('./assets/img/search-gray.png') 0 0 no-repeat;
    background-size: cover;
    font-size: 18px;
}

/*****************************
* 記事詳細（single.php）
******************************/

.wp-block-image {
    margin-bottom: 30px;
}

.article-title {
    font-size: 26px;
    margin-bottom: 10px;
}

.article-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

@media (max-width: 1080px) {
    .article-body {
        margin-bottom: 50px;
    }
}

.article-body-content {
    /* letter-spacing: 1.2px; */
}
.article-body-content p {
    line-height: 1.8;
    margin-bottom: 20px;
}

.wp-block-post-featured-image {
    display: block;
    margin: 30px auto;
}

.ry-article-section {
    margin-bottom: 60px;
}

.ry-article-heading {
    color: #5B6F6D;
    font-weight: 600;
    padding-bottom: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid #858585;
}

.ry-article-paragraph {
    margin-bottom: 20px;
}

/*****************************
* 検索結果（search.php）
******************************/

.search-result {
    margin-bottom: 20px;
}

.search-result-text {
    font-size: 26px;
    font-weight: 600;
}
@media (max-width: 1080px) {
    .search-result-text {
        font-size: 20px;
    }
}

/*****************************
* ヘルパー
******************************/

.u-mb10 {
    margin-bottom: 10px;
}

.u-mb20 {
    margin-bottom: 20px;
}

.u-mb30 {
    margin-bottom: 30px;
}

.u-mb40 {
    margin-bottom: 40px;
}

.u-mb50 {
    margin-bottom: 50px;
}

.u-mb60 {
    margin-bottom: 60px;
}

.u-sp {
    display: none;
}
.u-pc {
    display: block;
}
@media (max-width: 1080px) {
    .u-sp {
        display: block;
    }
    .u-pc {
        display: none;
    }
}

/*****************************
* 目次プラグイン
******************************/

main #toc_container {
    background: transparent;
    border: none;
    margin-bottom: 60px;
}

main #toc_container .toc_title {
    font-size: 20px;
    font-weight: 600;
    color: #5B6F6D;
    text-align: left;
}

main #toc_container .toc_title .toc_toggle {
    border: 1px solid black;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 12px;
    margin-left: 20px;
    vertical-align: text-bottom;
}

main #toc_container .toc_title .toc_toggle a {
    color: #5B6F6D;
}

main #toc_container .toc_title .toc_toggle .toc_brackets {
    display: none;
}

main #toc_container .toc_list li {
    margin-bottom: 8px;
}

main #toc_container .toc_list li a {
    color: #000;
}
main #toc_container .toc_list li a:hover {
    text-decoration: none;
}

main #toc_container .toc_list a span {
    padding: 4px 8px;
    background: lightgray;
    border-radius: 4px;
}