@charset "UTF-8";

/* ========================================
   ページヘッダー
======================================== */
.voice-head {
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url(../images/head_userVoice.jpg);
    background-size: cover;
    background-position: center;
}

.voice-head__ttl {
    background-color: rgba(0, 0, 0, 0.35);
    color: #fff;
    text-align: center;
    font-weight: normal;
    letter-spacing: 0.47em;
}

.voice-head__sub {
    display: block;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: bold;
    letter-spacing: 0.05em;
}

/* ========================================
   一覧ページ
======================================== */
.voice-archive {
    margin: 0 auto;
}

.voice-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.voice-list__link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.voice-list__link:hover {
    opacity: 0.7;
}

.voice-list__thumb {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    position: relative;
    margin: 0;
    background-color: #f0f0f0;
}

.voice-list__thumb img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.voice-list__link:hover .voice-list__thumb img {
    transform: translate(-50%, -50%) scale(1.05);
}

.voice-list__title {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: bold;
    line-height: 1.6;
    border-bottom: 1px solid #e0e0e0;
}

/* ページネーション */
.voice-pager {
    text-align: center;
}

.voice-pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0 3px;
    text-decoration: none;
    color: #333;
    border: 1px solid #ccc;
    font-size: 1.4rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.voice-pager .page-numbers.current,
.voice-pager .page-numbers:hover {
    background-color: #ee470b;
    color: #fff;
    border-color: #ee470b;
}

.voice-pager .page-numbers.dots {
    border: none;
}

.voice-empty {
    text-align: center;
    font-family: "Noto Sans JP", sans-serif;
    color: #666;
}

/* ========================================
   詳細ページ
======================================== */
.voice-detail {
    margin: 0 auto;
    font-family: "Noto Sans JP", sans-serif;
}

.voice-detail__title {
    font-weight: 600;
    line-height: 1.6;
    border-bottom: 2px solid #ee470b;
}

.voice-detail__thumb {
    margin: 0;
    overflow: hidden;
}

.voice-detail__thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.voice-detail__body {
    line-height: 1.9;
}

.voice-detail__body p {
    margin: 0 0 1.5em;
}

.voice-detail__body img {
    max-width: 100%;
    height: auto;
}

/* WordPressがキャプション付き画像に付与するinline widthを上書き */
.voice-detail__body .wp-caption {
    max-width: 100% !important;
}

.voice-detail__body .wp-caption img {
    width: 100%;
    height: auto;
}

/* 前後ナビゲーション */
.voice-paging {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.voice-paging__prev,
.voice-paging__next {
    color: #ee470b;
    text-decoration: none;
    letter-spacing: 0.1em;
    font-size: 1.4rem;
    transition: opacity 0.2s ease;
}

.voice-paging__prev:hover,
.voice-paging__next:hover {
    opacity: 0.7;
}

.voice-paging__prev::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 6px;
    border-bottom: 1.5px solid #ee470b;
    border-left: 1.5px solid #ee470b;
    transform: rotate(45deg);
    vertical-align: middle;
}

.voice-paging__next::after {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-left: 6px;
    border-top: 1.5px solid #ee470b;
    border-right: 1.5px solid #ee470b;
    transform: rotate(45deg);
    vertical-align: middle;
}

.voice-paging__line {
    display: inline-block;
    height: 1.5px;
    background-color: #ee470b;
}

.voice-paging__prev.is-hidden,
.voice-paging__next.is-hidden {
    visibility: hidden;
}

/* 一覧に戻る */
.voice-back {
    margin: 0 auto;
    text-align: center;
}

.voice-back a {
    display: inline-block;
    text-decoration: none;
    font-family: "Noto Sans JP", sans-serif;
    color: #333;
    transition: color 0.2s ease;
}

.voice-back a::before {
    content: "←";
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
    transition: transform 0.2s ease;
}

.voice-back a:hover {
    color: #ee470b;
}

.voice-back a:hover::before {
    transform: translateX(-6px);
}

/* ========================================
   mainContent 余白リセット
======================================== */
.mainContent {
    padding-bottom: 0;
}

/* ========================================
   PC（1025px〜）
======================================== */
@media screen and (min-width: 1025px), print {

    /* ヘッダー */
    .voice-head {
        height: 550px;
    }
    .voice-head__ttl {
        padding: 20px 60px 32px;
        font-size: 4.8rem;
    }
    .voice-head__sub {
        margin-top: 22px;
        font-size: 1.8rem;
    }

    /* 一覧 */
    .voice-archive {
        padding: 80px 0 120px;
    }
    .voice-list {
        gap: 60px 60px;
    }
    .voice-list__item {
        width: calc((100% - 120px) / 3);
    }
    .voice-list__title {
        margin-top: 14px;
        padding-bottom: 14px;
        font-size: 1.7rem;
    }
    .voice-pager {
        margin-top: 80px;
    }
    .voice-empty {
        margin-top: 100px;
        font-size: 1.6rem;
    }

    /* 詳細 */
    .voice-detail {
        margin-top: 80px;
        padding-bottom: 0;
        width: 860px;
    }
    .voice-detail__title {
        padding-bottom: 24px;
        margin-bottom: 40px;
        font-size: 2.2rem;
    }
    .voice-detail__thumb {
        margin-bottom: 50px;
    }
    .voice-detail__body {
        font-size: 1.6rem;
    }
    .voice-paging {
        margin-top: 60px;
        margin-bottom: 0;
        width: 860px;
    }
    .voice-paging__line {
        width: 80px;
        margin: 0 20px;
    }
    .voice-paging__prev,
    .voice-paging__next {
        font-size: 1.6rem;
    }
    .voice-back {
        margin-top: 40px;
        margin-bottom: 0;
        padding-bottom: 120px;
        font-size: 1.6rem;
        width: 860px;
    }
}

/* ========================================
   タブレット（600px〜1024px）
======================================== */
@media screen and (min-width: 600px) and (max-width: 1024px) {

    /* ヘッダー */
    .voice-head {
        height: 350px;
    }
    .voice-head__ttl {
        padding: 15px 38px 25px;
        font-size: 4.3rem;
    }
    .voice-head__sub {
        margin-top: 15px;
        font-size: 1.65rem;
    }

    /* 一覧 */
    .voice-archive {
        padding: 60px 0 90px;
    }
    .voice-list {
        gap: 40px 4%;
    }
    .voice-list__item {
        width: 48%;
    }
    .voice-list__title {
        margin-top: 12px;
        padding-bottom: 12px;
        font-size: 1.6rem;
    }
    .voice-pager {
        margin-top: 60px;
    }
    .voice-empty {
        margin-top: 80px;
        font-size: 1.5rem;
    }

    /* 詳細 */
    .voice-detail {
        margin-top: 50px;
    }
    .voice-detail__title {
        padding-bottom: 20px;
        margin-bottom: 35px;
        font-size: 2rem;
    }
    .voice-detail__thumb {
        margin-bottom: 40px;
    }
    .voice-detail__body {
        font-size: 1.5rem;
    }
    .voice-paging {
        margin-top: 50px;
    }
    .voice-paging__line {
        width: 60px;
        margin: 0 16px;
    }
    .voice-back {
        margin-top: 36px;
        padding-bottom: 90px;
        font-size: 1.5rem;
    }
}

/* ========================================
   スマートフォン（〜599px）
======================================== */
@media screen and (max-width: 599px) {

    /* ヘッダー */
    .voice-head {
        height: 200px;
    }
    .voice-head__ttl {
        padding: 6px 28px 14px;
        font-size: 2.9rem;
        letter-spacing: 0.38em;
    }
    .voice-head__sub {
        margin-top: 10px;
        font-size: 1.5rem;
    }

    /* 一覧 */
    .voice-archive {
        padding: 40px 0 70px;
    }
    .voice-list {
        flex-direction: column;
        gap: 40px 0;
    }
    .voice-list__item {
        width: 100%;
    }
    .voice-list__title {
        margin-top: 10px;
        padding-bottom: 10px;
        font-size: 1.5rem;
    }
    .voice-pager {
        margin-top: 50px;
    }
    .voice-empty {
        margin-top: 60px;
        font-size: 1.5rem;
    }

    /* 詳細 */
    .voice-detail {
        margin-top: 40px;
    }
    .voice-detail__title {
        padding-bottom: 16px;
        margin-bottom: 28px;
        font-size: 1.8rem;
    }
    .voice-detail__thumb {
        margin-bottom: 30px;
    }
    .voice-detail__body {
        font-size: 1.4rem;
    }
    .voice-paging {
        margin-top: 40px;
    }
    .voice-paging__line {
        width: 40px;
        margin: 0 14px;
    }
    .voice-back {
        margin-top: 30px;
        padding-bottom: 70px;
        font-size: 1.4rem;
    }
}
