/*
 * ==============================================
 * Single Styles
 * ==============================================
*/
main#article-view>.inner {
    padding: 0 var(--x-gutter);
}

main#article-view .article {
    padding-top: 30px;
}

main#article-view .article .wp-post-image {
    width: 100%;
    height: auto;
    aspect-ratio: 3/ 2;
    margin-bottom: 30px;
    object-fit: cover;
}

main#article-view .article .date {
    color: var(--color-gold);
    font-family: 'Noto Serif JP';
    font-size: 12px;
    font-weight: 400;
}

main#article-view .article h1 {
    font-family: 'Noto Serif JP';
    font-size: 24px;
    font-weight: bold;
    line-height: 160%;
    margin: 20px auto 24px;
}

.article-content {
    color: var(--wp--preset--color--custom-ink);
    font-family: 'Noto Sans';
}

.article-text {
    margin: 0;
    font-size: 13px;
    font-weight: 300;
    line-height: 180%;
}

.article-text.article-text-gold {
    color: var(--color-gold);
}

.article-text.article-text-white {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
}


.article-section {
    margin-bottom: 80px;
    scroll-margin-top: 80px;
}

.article-section .article-section-h2 {
    position: relative;
    padding-bottom: 10px;
    font-size: 16px;
    font-weight: bold;
    font-family: 'Noto Serif JP';
    line-height: 160%;
}

.article-section-block {
    margin-bottom: 30px;
}

.article-section .article-section-h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--color-gold);
}

.article-section .article-section-h3 {
    margin: 20px 0;
    color: var(--color-gold-dark);
    font-size: 13px;
    font-weight: bold;
    line-height: 180%;
}

.article-image {
    display: flex;
    flex-flow: column;
    width: max-content;
    max-width: calc(100vw - var(--x-gutter) * 2);
    margin: 0 auto;
    margin-block-end: 0;
}

.article-image .wp-block-image {
    width: max-content;
}

.article-image img {
    max-width: calc(100vw - var(--x-gutter) * 2);
}

.article-image-caption {
    margin: 4px 0 0;
    color: var(--color-gray-dark);
    font-size: 10px;
    font-weight: 500;
    line-height: 180%;
    text-align: right;
}

.article-section-anchor-list-toggle {
    background-color: var(--color-gray-light);
    margin: 32px auto;
    padding: 10px 17px !important;
    border-radius: 10px;
}

.article-section-anchor-list-toggle summary.anchor-list-title {
    padding: 10px 17px !important;
    font-weight: 700;
    font-size: 12px;
    line-height: 180%;
    cursor: pointer;
    color: var(--color-gold);
    list-style: none;
    cursor: pointer;

}

.article-section-anchor-list-toggle summary.anchor-list-title::after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 10px;
    vertical-align: middle;
    background-image: url(../img/common/toggle-arrow.svg);
    background-size: contain;
    background-repeat: no-repeat;
    transform: rotate(180deg);
    margin-top: -5px;
}

summary.anchor-list-title::-webkit-details-marker {
    display: none;
}

.article-section-anchor-list-toggle details[open] summary.anchor-list-title::after {
    transform: rotate(0deg);
    margin-top: 0;
}

.article-section-anchor-list-toggle .article-section-anchor-list {
    margin: 0 auto;
}

.article-label-gold-block {
    background: linear-gradient(to right, #C8B4A0 calc(100% - 5px), #C8B4A04D 5px);
    display: inline-block;
    padding: 6px 18px;
}


.article-label-wrapper {
    width: 100%;
    aspect-ratio: 12 / 7;
    margin: 32px 0;
}

.article-label-wrapper .article-label-gold-block {
    margin-bottom: 20px;
}

.article-label-wrapper iframe {
    width: 100%;
    aspect-ratio: 12/7;
}

.article-section-anchor-list {
    margin: 32px auto;
    padding: 10px 17px !important;
    background-color: var(--color-gray-light);
    border-radius: 10px;
    list-style: none;
}

li.article-section-anchor {
    display: flex;
    align-items: center;
    height: 48px;
    margin: 0;
    padding-left: 16px;
    background-image: url(../img/common/article_list_arrow.svg);
    background-repeat: no-repeat;
    background-position: 0;
    font-size: 13px;
    font-weight: 300;
    line-height: 180%;
}

li.article-section-anchor>a {
    text-decoration: none;
}

li.article-section-anchor:hover>a {
    opacity: 0.7;
}

li.article-section-anchor:not(:last-child) {
    border-bottom: solid 0.5px var(--color-gray);
}

.article-writer {
    margin-bottom: 30px;
}

.article-writer>div {
    padding: 20px 30px 24px;
    background-color: var(--color-gray-light);
    border-radius: 10px;
}

.article-writer-title {
    height: 18px;
    margin-bottom: 14px;
}

.article-writer-title img {
    vertical-align: middle;
}

.article-writer-content {
    gap: 14px;
    align-items: start;
}

.article-writer-icon img {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    border-radius: 5px;
    object-fit: cover;
}

.article-writer-icon~div {
    flex-flow: column;
    align-items: start;
    flex: 1 1;
}

.article-writer-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-gold-dark);
    line-height: 180%;
}

.article-writer-profile {
    font-size: 12px;
    font-weight: 300;
    line-height: 180%;
}

.article-relation {
    margin-bottom: 30px;
    padding: 30px 30px 14px;
    border: solid 1px var(--color-gold);
    border-radius: 10px;
}

.article-relation>img {
    height: 20px;
}

.article-relation>p {
    margin: 8px 0;
    font-size: 12px;
    color: var(--color-gray-dark);
}

.article-relation li {
    margin: 8px 0;
}

.article-relation article {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 10px;
    padding: 8px 0;
}

.article-relation article>img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.article-relation article>img.logo {
    align-self: center;
    width: 30px;
    height: 30px;
    border: solid 1px var(--color-gray-light);
    border-radius: 15px;
}

.article-relation article div {
    display: flex;
    flex-flow: column;
}

.article-relation article p {
    align-self: center;
    font-size: 16px;
    font-weight: 400;
}

.article-relation article .prefecture {
    width: 40px;
    margin-bottom: 6px;
    padding: 2px 0;
    color: white;
    font-size: 10px;
    text-align: center;
    background-color: var(--color-gold);
}

.article-relation.article-relation-location article p {
    font-size: 10px;
    line-height: 150%;
}

.article-relation a:after {
    position: absolute;
    content: '';
    z-index: 2;
    inset: 0;
    cursor: pointer;
}

.article-box-block {
    margin: 30px 0;
    padding: 15px 30px;
    border: solid 1px var(--color-gray);
    border-radius: 10px;

}

.article-box-block .article-section-h3 {
    font-weight: 500;
    font-size: 14px;
    color: var(--color-gold);
    margin: 15px 0;
    line-height: 1.8;
}

.article-box-block .article-text {
    font-size: 12px;
    margin-bottom: 30px;
}

.article-relation a:hover:after {
    background-color: white;
    opacity: 0.3;
}


aside.sidebar {
    margin-bottom: 160px;
    padding: 0 var(--x-gutter);
}

aside.sidebar>div {
    width: 100%;
}

aside.sidebar>div.location,
aside.sidebar>div.producer {
    margin-bottom: 58px;
    padding: 36px 30px 44px;
    background-color: var(--color-gold-alpha-10);
    border-radius: 10px;
}

aside.sidebar>div.location {
    padding-left: 60px;
    padding-right: 60px;
}

aside.sidebar>div ul {
    display: flex;
    flex-flow: column;
    gap: 30px;
}

aside.sidebar>div.producer ul {
    gap: 50px;
}

aside.sidebar .articles ul {
    gap: 44px;
}

aside.sidebar>div>img {
    height: 20px;
    margin-bottom: 4px;
}

aside.sidebar>div>p {
    margin-bottom: 30px;
    color: var(--color-gold);
    font-family: 'Noto Serif JP';
    font-size: 14px;
}

.col-location,
.col-producer,
aside.sidebar .articles li {
    position: relative;
}

.col-location {
    font-size: 12px;
    font-weight: 400;
    line-height: 150%;
}

.col-location img,
.col-producer .body>img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.col-location img {
    aspect-ratio: 1 / 1;
}

.col-producer .body>img {
    aspect-ratio: 5 / 4;
    background-color: white;
    border-radius: 10px;
}

.col-location .prefecture {
    position: absolute;
    top: calc(100% - 42px);
    right: 0;
    padding: 1px 10px;
    background-color: var(--color-gold);
    color: white;
    font-size: 12px;
}

.col-producer .header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.col-producer .header img.logo {
    width: 34px;
    height: 34px;
    background-color: white;
    border: solid 1px var(--color-gray-light);
    border-radius: 17px;
}

.col-producer .header span {
    font-size: 14px;
    font-weight: 400;
}

.col-producer .concept {
    display: -webkit-box;
    margin: 5px 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    line-clamp: 1;
    -webkit-line-clamp: 1;
}

.col-producer .prefectures {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
}

.col-producer span.prefecture-tag {
    padding: 0.5px 8px;
    background-color: var(--color-gold);
    color: white;
    font-size: 12px;
    border-radius: 4px;
}

.col-producer span.over {
    margin-left: 8px;
    color: var(--color-gold);
    font-size: 14px;
}

.col-location a:after,
.col-producer a:after,
aside.sidebar .articles li a:after {
    position: absolute;
    content: '';
    z-index: 2;
    inset: 0;
}

.col-location a:hover:after,
.col-producer a:hover:after,
aside.sidebar .articles li a:hover:after {
    background-color: white;
    opacity: 0.3;
}

aside.sidebar .articles article img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

aside.sidebar .articles article .title {
    margin: 10px 0;
    line-height: 180%;
    font-size: 12px;
}

aside.sidebar .articles article .date {
    color: var(--color-gold);
    font-size: 12px;
    text-align: end;
}

aside.sidebar .more-btn {
    background-color: white;
    width: 100%;
    max-width: 300px;
    min-height: 40px;
    background-image: url(../img/common/more.svg), url(../img/common/arrow_gold.svg);
    background-position: 20px 50%, calc(100% - 10px) 50%;
    background-repeat: no-repeat;
    border-radius: 20px;
    border: solid 0.5px var(--color-gold);
}

.has-background {
    background-color: var(--color-gray-light);
    padding: 2rem;
    border-radius: 10px;
    margin: 1rem 0;

    h4 {
        font-size: 1.2rem;
    }

    p {
        margin-top: 1rem;
    }
}

.wp-block-buttons {
    margin: 20px 0;
    justify-content: flex-start;
    gap: 1.5rem;

    .wp-block-button__link {
        all: unset;
        display: inline-block;
        text-decoration: none;
    }

    .wp-block-button {
        all: unset;
        box-shadow: 0px 4px 0px 0px rgba(0, 0, 0, 0.1);
        padding: 13px 30px;
        border-radius: 25px;
        margin: 5px 0;
        font-size: 1.2rem;
        font-weight: 500;

        &.btn-gold {
            background-color: var(--color-gold-dark);
            border: 0.5px solid rgba(165, 141, 116, 1);
            color: #fff;
        }

        &.btn-white {
            background-color: #fff;
            border: 0.5px solid var(--color-gold-dark);
            color: var(--color-gold-dark);
        }
    }

    @media (max-width: 767px) {
        gap: 0.75em;

        .wp-block-button {
            width: 100%;
            margin: 5px 0;

        }

        .wp-block-button__link {
            display: block;
            width: 100%;
            text-align: center;
        }
    }


}


.background-box-list {
    padding: 10px 17px !important;
    border-radius: 10px;
    border: 1px solid var(--color-gray);
    margin: 15px 0;

    h4 {
        text-align: center;
        position: relative;
        margin: 10px auto;
        font-size: 1.2rem;
        font-weight: 700;
        line-height: 1.8;
        color: var(--color-gold);

        &::after {
            content: "";
            display: block;
            width: 100%;
            height: 0.5px;
            background-color: rgba(217, 217, 217, 1);
            margin: 15px auto 0;
        }
    }

    ul {
        list-style: none;
        padding-left: 1.5em;
        margin-top: 7px;

        li {
            margin-bottom: 10px;
            position: relative;
            font-weight: 300;
            font-size: 1.3rem;
            line-height: 1.8;
            padding-left: 24px;

            &::before {
                content: "";
                position: absolute;
                left: 0;
                top: 50%;
                transform: translateY(-50%);
                width: 16px;
                height: 16px;
                background-image: url(../img/common/ls_icon.svg);
                background-size: contain;
                background-repeat: no-repeat;
            }
        }
    }

}

.border-line-gold {
    border: 0.5px solid var(--color-gold-dark);
    margin: 40px auto;
    width: 190px;
}

.wp-block-columns {
    &.two-column-group {
        margin: 40px 0;

        is-not-stacked-on-mobile>.wp-block-column {
            all: unset;
        }

        :first-child {
            flex: 0 1 auto;
            white-space: nowrap;
            margin-right: 1em;
        }

        :last-child {
            flex: 1 1 0;
        }
    }


}

@media (min-width: 768px) {

    main#article-view,
    aside.sidebar {
        max-width: 708px;
        margin-left: auto;
        margin-right: auto;
        padding: 0;
    }

    main#article-view>.inner {
        padding: 0;
    }

    aside.sidebar>* {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 992px) {

    .wrapper.single {
        display: flex;
        flex-flow: wrap;
        justify-content: center;
        gap: 20px;
        padding-top: 56px;
    }

    main#article-view {
        width: 600px;
        margin: 0;
        padding-bottom: 104px;
    }

    aside.sidebar {
        width: 360px;
        margin: 0;
    }

    main#article-view .article {
        padding-top: 0;
    }

    .article-image {
        max-width: 100%;
    }

    .article-image .wp-block-image {
        max-width: 100%;
    }

    .article-image img {
        max-width: 100%;
    }
}

@media (min-width: 1080px) {
    .wrapper.single {
        gap: 50px;
    }
}