@charset "UTF-8";

/*!
 * single.css
 * 福井県観光サイト「ふくたま」 記事詳細ページ専用スタイル
 * - スマホファースト設計
 * - SWELLテーマ使用を前提
 * - クラスなしのブロックエディタに対応
 * - 記事内見出し / 段落 / テーブル / カスタムボックス / 基本情報DLなどに適用
 *
 * 作成日: 2025-05-02
 */

/* ------------------------------------------------------
 * single
 * ------------------------------------------------------ */

/* common */
.single .l-article {
    max-width: 960px;
}

.post_content {
    padding: 16px;
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    word-break: break-word;
}

.post_content h1,
.post_content h2,
.post_content h3,
.post_content h4,
.post_content h5,
.post_content h6 {
    margin: 2rem 0 1rem;
    font-weight: bold;
    line-height: 1.4;
}

.post_content h2 {
    font-size: 1.5rem;
    margin: 4rem 0 2.5rem;
    padding: 1rem;
    background: var(--color_main);
    color: var(--color-white);
    font-weight: 700;
}
.post_content h3 {
    font-size: 1.25rem;
    margin: 40px 0 30px;
    font-weight: 600;
    position: relative;
}

.post_content h3::before {
    color: var(--color_main);
    position: absolute;
    left: 0;
    bottom: 0;
    font-size: 0.75rem;
    line-height: 1.8;
}

.post_content h4 {
    font-size: 1rem;
}

.post_content p {
    margin-bottom: 1.5rem;
}

.post_content dl {
    margin: 1.5rem 0;
}

.post_content dt {
    font-weight: bold;
    margin-top: 1em;
    color: #333;
}

.post_content dd {
    margin-left: 1em;
    line-height: 1.7;
}

.post_content .swell-block-dl {
    display: grid;
    grid-template-columns: auto 1fr;
    row-gap: 0.5em;
    column-gap: 1em;
    padding: 1.5em;
    max-width: 600px;
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

.post_content .swell-block-dl__dt {
    margin: 0;
    padding: 0;
    white-space: nowrap;
    font-weight: bold;
}

.post_content .swell-block-dl__dd {
    margin: 0;
    padding: 0;
}

.post_content table {
    display: block;
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.5rem;
    overflow-x: auto;
    white-space: nowrap;
}

.post_content th,
.post_content td {
    border: 1px solid var(--color_border);
    padding: 0.75rem;
}

.post_content th {
    background: #f5f5f5;
    text-align: left;
    white-space: nowrap;
}

.post_content iframe {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
    margin: 1.5rem 0;
}

.post_content img {
    max-width: 100%;
    display: block;
}

.cap_box {
    border: 1px solid var(--color_main);
    background-color: #fff9f9;
    margin: 2rem 0;
    border-radius: 6px;
    overflow: hidden;
}

.cap_box_ttl {
    background-color: var(--color_main);
    color: #fff;
    padding: 1rem;
    font-weight: bold;
    font-size: 1.125rem;
}

.cap_box_content {
    padding: 1rem;
    font-size: 0.9375rem;
    line-height: 1.8;
}

.cap_box_content p {
    margin-bottom: 1rem;
}

.swell-block-step__number:after {
    font-size: 1.125rem;
}

.swell-block-step__item {
    padding: 0 0 20px 64px;
}

.swell-block-step__item .swell-block-step__title {
    line-height: 1.65;
    font-size: 1.125rem!important;
}

.swell-block-step__title+.swell-block-step__body {
    margin-top: 0.625rem;
}

.post_content .swell-block-step__title+.swell-block-step__body {
    margin-left: 0!important;
    font-size: 1rem;
}

.post_content .basic-info,
.post_content .p-access {
    margin-top: 4rem;
}

.post_content .basic-info__list {
    display: block;
}

.post_content .basic-info__list dt,
.basic-info__list .basic-info__term {
    margin: 0;
    padding: .5rem 1rem;
    background: #fff9f9;
    font-size: 1rem;
    font-weight: bold;
    color: var(--color_main);
    white-space: nowrap;
}

.post_content .basic-info__list dd,
.basic-info__list .basic-info__description {
    display: block;
    margin: 0;
    padding: .5rem 1rem;
    margin-bottom: 0.5em;
    font-size: 1rem;
}

.basic-info__description p {
    margin: 0 0 0.5em;
    line-height: 1.6;
}

.basic-info__description .basic-info__payment-title:first-of-type {
    margin-top: 0;
}

.basic-info__payment-title {
    margin: 20px 0 0;
    padding: 0 0 5px;
    border-bottom: 1px dotted var(--color_border);
    color: #333;
    font-size: 1rem;
    font-weight: bold;
}

.basic-info__payment-list {
    margin: 10px 0 0;
    list-style: disc;
}

.basic-info__link.external-link,
.basic-info__link.phone-link {
    color: var(--color-link);
    font-weight: bold;
}

.basic-info__link {
    display: inline-block;
}

.basic-info__description .basic-info__sns-list {
    display: flex;
    gap: 0.75rem;
    padding: 0;
    list-style: none;
}

.basic-info__sns-list .basic-info__sns-item {
    margin: 0;
    padding: 10px;
    background: #f3f1e9;
    border-radius: 50%;
}

.basic-info__sns-list img {
    margin: 0;
    width: 20px;
}

.basic-info__disclaimer {
    color: #888;
    font-size: 0.75rem;
}

.p-blogCard {
    border: 1px solid var(--color_border);
    padding: 1rem;
    margin-top: 1rem;
    background-color: var(--color-white);
    border-radius: 6px;
}

.p-blogCard__title {
    font-weight: bold;
    font-size: 1rem;
    color: #000;
}

.p-blogCard__caption {
    font-size: 0.75rem;
    color: var(--color_main);
    margin-bottom: 0.5rem;
}

.wp-block-table.sp_block_ > table,
.wp-block-table.is-style-simple.sp_block_ > table {
    white-space: normal;
}

.wp-block-table.is-style-simple.sp_block_ > table tr > th {
    max-width: 100%;
}

/* header */
.l-post-header {
    position:relative;
    width: 100vw;
    margin: 0 calc(50% - 50vw);
    color: var(--color-white);
}

.l-post-header::before {
    content: "";
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    background-color: var(--color_main);
    z-index: -1;
    margin-inline: calc(50% - 50vw);
    width: 100vw;
    height: calc(100% + 5vw);
}

.l-post-header .o-inner {
    max-width: calc(var(--container_size, 0px) + var(--swl-pad_container, 0px)* 2);
    margin: 0 auto;
    padding-top: 30px;
    padding-right: var(--swl-pad_container, 0);
    padding-bottom: clamp(1rem, 3vw, 2rem);
    padding-left: var(--swl-pad_container, 0);
}

.c-post-date {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 2px;
    letter-spacing: 1.1px;
}

.c-post-date .c-favorite-icon {
    top: -20px;
    right: 0;
}

.c-post-updated {
    font-size: clamp(.9rem, 1vw, 1rem);
}

.post-views-count {
    margin-right: 50px;
    font-size: 0.875rem;
    line-height: 1.2;
}

.c-post-views-count {
    font-size: clamp(1.2rem, 2vw, 1.85rem);
}

.c-post-title__wrap {
    padding: clamp(1rem, 2vh, 2rem) 0;
    border-top: 2px solid var(--color-white);
    border-bottom: 2px solid var(--color-white);
}

.c-post-title-kana {
    text-align: center;
    font-size: clamp(.85rem, 2vw, 1.25rem);
}

.c-post-title {
    line-height:1.2;
    text-align: center;
    font-size: clamp(1.75rem, 5vw, 2.75rem);
}

.c-post-meta {
    margin-top: 1rem;
}

.l-post-meta {
	display: flex;
	flex-direction: column;
	margin: 0.9375rem 0.9375rem 0;
}

.l-post-meta__left,
.l-post-meta__right {
	width: 100%;
}

.c-post-meta__area,
.c-post-meta__category {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5em;
	margin-bottom: 0.8em;
}

.c-post-meta__title {
	margin: 0;
	font-size: 1rem;
	white-space: nowrap;
}

.c-post-meta__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	list-style: none;
	padding: 0;
	margin: 0;
}

.c-post-meta__item-link {
	display: inline-block;
	background: var(--color-white);
	padding: 0.3em 0.8em;
	border-radius: 20px;
	font-size: 0.9rem;
	text-decoration: none;
	color: var(--color_main);
    font-weight: bold;
}

.c-author-info {
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: 0.5em;
	row-gap: 0.3em;
	align-items: center;
}

.c-author-info__label {
	font-weight: bold;
	white-space: nowrap;
}

.c-author-info__value {
	margin: 0;
}

.c-author-info__link {
	text-decoration: none;
	color: var(--color-white);
}

/* mv */
.p-single-mv__image-main {
    width: 100%;
    height: auto;
    border-radius: .5rem;
    object-fit: cover;
}

.p-single-mv__splide-main .splide__arrow--prev,
.p-single-mv__splide-main .splide__arrow--next {
    background: var(--color_main);
    opacity: initial;
}

.p-single-mv__splide-main .splide__arrow--prev {
    left: 0;
}

.p-single-mv__splide-main .splide__arrow--next {
    right: 0;
}

.p-single-mv__splide-main .splide__arrow svg {
    fill: var(--color-white);   
}

.p-single-mv__splide-main .splide__arrow:hover:not(:disabled) {
    opacity: initial;
}

.p-single-mv__splide-thum {
    overflow: hidden;
    margin: 10px 0 0;
    padding: 0 5%;
}

.p-single-mv__splide-thum .splide__slide {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
    min-width: auto !important;
    height: auto;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    padding: 0;
}

.p-single-mv__splide-thum img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.3125rem;
}

.p-single-mv__splide-thum .splide__track--nav>.splide__list>.splide__slide,
.p-single-mv__splide-thum .splide__track--nav > .splide__list > .splide__slide.is-active {
    border: none;
    max-width: 80px;
    width: auto !important;
    aspect-ratio: 1 / 1;
    flex: 0 0 auto;
    height: auto;
    overflow: hidden;
}

.p-single-mv__splide-thum .splide__track--nav>.splide__list>.splide__slide {
    opacity: .6;
    min-width: 0;
    flex-shrink: 0;
}

.p-single-mv__splide-thum .splide__track--nav > .splide__list > .splide__slide.is-active {
    opacity: 1;
    transition: .8s;
}

/* swiper */
.p-single-mv__swiper-main,
.p-single-mv__swiper-thum {
    width: 100%;
}

.p-single-mv__slide-main {
    position: relative;
    aspect-ratio: 3 / 2;
}

.p-single-mv__slide-thum {
    height: 100%;
    aspect-ratio: 1 / 1;
    margin-top: 1rem;
}

.p-single-mv__image-thum {
    height: 100%;
    border-radius: 15px;
    object-fit: cover;
}

.p-single-mv__swiper-main .swiper-button-prev,
.p-single-mv__swiper-main .swiper-button-next {
    width: 32px;
    height: 32px;
    color: var(--color-white);
    background: var(--color_main);
    border-radius: 50%;
}

.p-single-mv__swiper-main .swiper-button-next:after,
.p-single-mv__swiper-main .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}
  

/* 目次 */
.p-toc {
    background-color: var(--color-white);
}

/* Access */
.p-access__info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.p-access__info-item {
    display: flex;
}

.p-access__subtitle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.p-access__subtitle svg {
    width: 45px;
    height: 45px;
    padding: 5px;
    fill: var(--color_main);
    background: var(--color-white);
    border-radius: 50%;
}

.p-access__map {
    margin-top: 2rem;
}

.p-access__description p:nth-child(n+2) {
    margin-top: 1rem;
}

.p-access__iframe {
    position: relative;
    width: 100vw;
    max-height: 600px;
    margin: 0 calc(50% - 50vw);
    padding-top: 56.25%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.p-access__iframe iframe {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    max-width: var(--article_size);
    width: 90%;
    height: 100%;
    margin: auto;
    border: 0;
    border-radius: 1rem;
}

.p-access__link {
    margin-top: 1rem;
    text-align: right;
    font-size: clamp(0.9rem, 1vw, 1rem);
}

/* guide */
.l-guide .c-guide__list {
    display: flex;
    flex-wrap: wrap;
    gap:1rem;
    padding: 0;
    list-style: none;
}

.l-guide .c-guide__item {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    width: 100%;
    background: #fff;
    border: 1px solid var(--color_border);
    border-radius: .5rem
}

.l-guide .c-guide__thumbnail {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: .5rem;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.l-guide .c-guide__info {
    margin-top: 1rem;
}

.l-guide .c-guide__info-title {
    position: initial;
    margin: 1rem 0;
    padding: 0;
    border: none;
}

.l-guide .c-guide__info-title::before {
    content: none;
}

.c-guide__link::before {
    z-index: 1;
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.c-guide__meta {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.c-guide__author-avatar {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
}

.c-guide__author-name {
    font-size: .95rem;
}

.c-guide__post-date {
    margin-left: auto;
    font-size: .95rem;
}

/* parent */
.c-parent-info__item {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--color_border);
    border-radius: .5rem
}

.c-parent-info__thumbnail {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: .5rem;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.c-parent-info__text {
    margin-top: 1rem;
}

.l-parent-info .c-parent-info__text-title {
    position: initial;
    margin: 1rem 0;
    padding: 0;
    border: none;
}

.l-parent-info .c-parent-info__text-title::before {
    content: none;
}

.c-parent-info__link::before {
    z-index: 1;
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.c-parent-info__meta {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.c-parent-info__author-avatar {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
}

.c-parent-info__author-name {
    font-size: .95rem;
}

.c-parent-info__modified-date {
    margin-left: auto;
    font-size: .95rem;
}

/* share-btn */
.c-shareBtns__message .__text {
    font-weight: bold;
}

.c-shareBtns__list  {
    flex-wrap: wrap;
    gap: 10px;
}

.c-shareBtns:not(.-style-btn-small) .c-shareBtns__item {
    flex: initial;
}

.c-shareBtns__item {
    width: calc(100% / 2 - 5px);
}

.c-shareBtns__btn:not(:hover) {
    background: currentcolor;
}

.c-shareBtns__btn {
    border-radius: 30px;
    font-weight: bold;
    letter-spacing: 2px;
}

.c-shareBtns__icon {
    margin: 0 10px 0 0;
}

.c-shareBtns__btn:not(:hover) .c-shareBtns__icon {
    color: var(--color-white);
}

.c-shareBtns__item:not(:last-child) {
    margin: 0;
}

.c-shareBtns__item:last-child {
    width: 100%;
}

.c-shareBtns__label {
    color: var(--color-white);
}

.c-urlcopy {
    display: flex;
}

.c-urlcopy__content {
    width: initial;
}

.c-copyedPoppup {
    top: calc(100% + 2px);
}

.icon-note::before {
    content: '';
    width: 16px;
    height: 16px;
    background: url(../../images/common/icon_note.svg) no-repeat;
    background-position: center center;
    background-size: 25px;
}

/* share-btn-fix */
.-fix.c-shareBtns .c-shareBtns__label {
    display: none;
}

.-fix .c-shareBtns__btn:not(:hover) {
    background-color: currentcolor;
}

.-fix .c-shareBtns__icon {
    margin: 0;
}

/* related */
.p-postList.p-relatedList {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 1rem;
    width: 100%;
    margin: 0 auto;
}

.p-relatedList__item {
    position: relative;
    width: 100%;
}

.c-secTitle {
    font-size: 1.375rem;
}

.p-postList__body {
    position: initial;
    margin-top: 0.9375rem;
}

.single .p-postList .p-postList__title {
    margin: 0.625rem 0 0;
    font-size: 1.125rem;
}

.p-postList .post-views-count {
    margin-right: 0;
}

.c-article__area-item {
    padding: 0 .85rem;
    background: var(--color_main);
    border-radius: 1rem;
    color: var(--color-white);
    font-size: .95rem;
}

.c-categoryList::before {
    content: none;
}

/* event */
.p-eventDetail__thumbnail {
  text-align: center;
}

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

.post_content .p-eventDetail__table {
    width: fit-content;
    margin: 1.5em auto;
    white-space: normal;
}

.p-eventDetail__table tr {
    display: block;
    margin-bottom: 1em;
    border: 1px solid #ddd;
}

.p-eventDetail__table th,
.p-eventDetail__table td {
    display: block;
    padding: 0.5em 1em;
    text-align: left;
    border: none;
    word-break: break-word;
}

.p-eventDetail__table th {
    background-color: #f7f7f7;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
}

/* ------------------------------------------------------
 * 600px
 * ------------------------------------------------------ */

@media (min-width: 600px) {
    
    /* header */
	.l-post-meta {
		flex-direction: row;
		justify-content: space-between;
		align-items: flex-start;
	}

	.l-post-meta__left,
	.l-post-meta__right {
		width: 48%;
	}

    .l-taxonomy-lists {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .o-area-terms,
    .o-category-terms {
        flex: 1 1 45%;
    }
  
    .c-author-info {
        flex: 1 1 45%;
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 0.5em;
        row-gap: 0.3em;
    }
  
    .c-author-info dt,
    .c-author-info dd {
        margin: 0;
    }

    /* access */
    .p-access__iframe {
        aspect-ratio: 16 / 9;
    }

    /* related */
    .p-postList {
        gap: 2rem 1.5rem;
    }

    .p-postList__item {
        width: calc((100% - 3rem) / 2);
    }

    /* event */
    .p-eventDetail__table {
        display: table;
    }

    .p-eventDetail__table tr {
        display: table-row;
        border: none;
    }

    .p-eventDetail__table th,
    .p-eventDetail__table td {
        display: table-cell;
        padding: 0.8em;
        border: 1px solid #ddd;
        vertical-align: top;
    }

    .p-eventDetail__table th {
        width: 25%;
        background-color: #f7f7f7;
    }

    .p-eventDetail__table td {
        width: 75%;
    }

    .post_content .basic-info__list {
        display: grid;
        grid-template-columns: max-content 1fr;
        row-gap: 1em;
        column-gap: 1em;
        align-items: start;
    }

    .post_content .basic-info__list dt,
    .basic-info__list .basic-info__term,
    .post_content .basic-info__list dd,
    .basic-info__list .basic-info__description {
        margin-bottom: 0;
    }

}


/* ------------------------------------------------------
 * 960px
 * ------------------------------------------------------ */

@media (min-width: 960px) {
    /* mv */
    .p-single-mv__splide-thum .p-single-mv__list-thum .splide__slide {
        height: 130px;
    }

    .p-single-mv__image-thum {
        max-width: 260px;
        width: 100%;
    }

    /* Access */
    .p-access__info-wrapper {
        flex-direction: row;
    }

    .p-access__info-item {
        width: 50%;
    }

    /* guide */
    .l-guide .c-guide__item {
        flex-direction: row;
        align-items: flex-start;
    }

    .l-guide .c-guide__thumbnail {
        flex-shrink: 0;
        width: 300px;
        height: auto;
    }

    .l-guide .c-guide__info {
        margin-left: 1.5rem;
    }

    /* parent */
    .c-parent-info__item {
        flex-direction: row;
        align-items: flex-start;
    }

    .c-parent-info__thumbnail {
        flex-shrink: 0;
        width: 300px;
        height: auto;
    }   

    .c-parent-info__text {
        margin-left: 1.5rem;
    }

    /* share-btn */
    .c-shareBtns__list {
        flex-wrap: nowrap;
    }

    .c-shareBtns__item,
    .c-shareBtns__item:last-child {
        width: calc(100% / 5 - 5px);
    }

    /* related */
    .p-postList {
        gap: 3rem 2rem;
    }

    .p-postList__item {
        width: calc((100% - 4rem) / 3);
    }
}
