@charset "UTF-8";

:root {
    --int-main-color: #0177B4;
    --int-light-bg: #f3f5f5;
    --int-text-dark: #333333;
    --int-text-gray: #666666;
    --int-border-color: #eeeeee;
}

/* ==========================================================================
   共通コンテナスタイル・レイアウト
   ========================================================================== */
.interview-wrapper, 
.interview-container {
    max-width: 1140px;
    margin: 0 auto;
    margin-top: 0 !important;
    padding: 0 20px 100px;
    box-sizing: border-box;
}

/* 1カラムレイアウト (single-interview.php用) */
.interview-flex {
    display: block;
}
.interview-main {
    width: 100%;
    min-width: 0;
}
/* スマホ時の1カラムレイアウト */
@media screen and (max-width: 900px) {
    .interview-wrapper,
    .interview-container {
        margin-top: 0 !important;
    }
}

/* 一覧へ戻るボタン */
.btn-back-wrap { max-width: 1080px; margin: 80px auto 0; padding-top: 50px; text-align: center; border-top: 1px solid var(--int-border-color); }
.btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: min(100%, 360px);
    min-height: 66px;
    padding: 0 24px;
    background: #fff;
    color: #0177B4 !important;
    border: 1px solid #0177B4;
    text-decoration: none;
    border-radius: 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.2s ease, background 0.2s ease;
}
.btn-back::after {
    content: "→";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-left: 0;
    color: #fff;
    background: #0177B4;
    border: 1px solid #0177B4;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn-back:visited { color: #0177B4 !important; }
.btn-back:hover,
.btn-back:focus-visible { background: #0177B4; color: #fff !important; }
.btn-back:hover::after,
.btn-back:focus-visible::after { color: #0177B4; background: #fff; border-color: #fff; }

/* ==========================================================================
   記事ヘッダー ＆ サイドバーデザイン (single-interview.php)
   ========================================================================== */
.detail-header { margin-bottom: 50px; }
.detail-title { font-size: 2.2rem; font-weight: bold; line-height: 1.4; color: var(--int-text-dark); margin: 0; }

/* ==========================================================================
   記事本文（参考サイト準拠・レスポンシブ対応版）
   ========================================================================== */
.interview-body { color: #333333; overflow-wrap: break-word; }
.interview-body img { max-width: 100%; height: auto; border-radius: 4px; margin: 2em 0; }
.interview-body a { color: #0177B4; text-decoration: underline; transition: opacity 0.2s; }
.interview-body a:hover { opacity: 0.7; font-weight: normal; }
.interview-body mark, .interview-body .marker { background: linear-gradient(transparent 60%, rgba(15, 130, 198, 0.24) 60%); color: inherit; font-weight: bold; }

/* --- スマートフォン表示（767px以下） --- */
@media screen and (max-width: 767px) {
    .interview-body p { font-weight: 400; font-size: 16px; line-height: 1.8; margin-bottom: 1.875rem; }
    .interview-body h2 { font-size: 18px; font-weight: bold; padding: 10px 20px 15px; color: var(--int-main-color); background-color: var(--int-light-bg); border-top: 2px solid var(--int-main-color); border-bottom: 2px solid var(--int-main-color); margin-top: 2.5em; margin-bottom: 1.0rem; display: block; }
    .interview-body h3 { font-size: 18px; font-weight: bold; color: var(--int-main-color); border-left: 5px solid var(--int-main-color); padding-left: 10px; margin-top: 2.5rem; margin-bottom: 0.5rem; }
    .interview-body p + h3 { margin-top: 2.5rem; }
    .interview-body h4 { font-size: 18px; font-weight: 700; color: var(--int-main-color); border-bottom: 1px solid var(--int-main-color); padding-bottom: 3px; margin-top: 2.0rem; margin-bottom: 0.5rem; display: inline-block; width: auto; }
    .interview-body h5 { font-size: 18px; font-weight: 700; color: var(--int-main-color); margin-top: 2.0rem; margin-bottom: 0.3rem; display: flex; align-items: center; }
    .interview-body h5::before { content: "■"; margin-right: 8px; font-size: 0.8em; }
    .interview-body ul, .interview-body ol { list-style: disc !important; margin: 2em; }
    .interview-body li { margin-bottom: 0.5em; }
}

/* --- PC表示（768px以上） --- */
@media screen and (min-width: 768px) {
    .interview-body p { font-size: 16px; line-height: 1.875; margin-top: 1.5rem; }
    .interview-body h2 { font-size: 26px; font-weight: bold; margin-top: 2.5rem; margin-bottom: 1.0rem; background-color: var(--int-light-bg); border-top: 2px solid var(--int-main-color); border-bottom: 2px solid var(--int-main-color); color: var(--int-main-color); padding: 12px 20px 18px; display: block; }
    .interview-body h3 { font-size: 24px; font-weight: bold; color: var(--int-main-color); border-left: 5px solid var(--int-main-color); padding-left: 10px; margin-top: 2.5rem; margin-bottom: 0.5rem; }
    .interview-body p + h3 { margin-top: 2.5rem; }
    .interview-body h4 { font-size: 22px; font-weight: 700; color: var(--int-main-color); border-bottom: 1px solid var(--int-main-color); padding-bottom: 3px; margin-top: 2.0rem; margin-bottom: 0.5rem; display: inline-block; width: auto; }
    .interview-body h5 { font-size: 18px; font-weight: 700; color: var(--int-main-color); margin-top: 2.0rem; margin-bottom: 0.2rem; display: flex; align-items: center; }
    .interview-body h5::before { content: "■"; margin-right: 10px; font-size: 0.8em; }
    .interview-body ul, .interview-body ol { list-style: disc !important; margin: 2em; }
    .interview-body li { margin-bottom: 0.5em; }
}
/* ==========================================================================
   クライアントインタビュー一覧（2026）
   ========================================================================== */
.interview-archive__header {
    margin-top: -28px !important;
    padding: 0 0 14px !important;
    text-align: left !important;
}

.interview-archive__header .section__inner {
    width: min(var(--content-width), calc(100% - 80px));
    max-width: none;
    margin: 0 auto;
    padding: 0;
}

.interview-archive__header .section__head {
    margin-bottom: 22px;
}

.filter-wrap {
    display: flex;
    flex-direction: column;
    width: min(var(--content-width), calc(100% - 80px));
    max-width: none;
    margin: 0 auto 30px !important;
    padding: 0;
    gap: 10px;
    background: transparent;
    border-radius: 0;
}

.filter-row {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.filter-label {
    width: auto;
    min-width: 64px;
    color: #1c1c1c;
    font-size: 14px;
    font-weight: 600;
}

.industry-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.industry-nav-link {
    min-width: 54px;
    padding: 1px 13px 2px;
    color: #0177B4;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    background: #fff;
    border: 1px solid #0177B4;
    border-radius: 0;
}

.filter-wrap .industry-nav-link:not(.is-active) {
    color: #0177B4 !important;
    border-color: #0177B4 !important;
}

.industry-nav-link:hover,
.industry-nav-link.is-active {
    color: #fff !important;
    background: #0177B4;
    border-color: #0177B4 !important;
}

.filter-wrap .industry-nav-link:hover,
.filter-wrap .industry-nav-link:focus-visible,
.filter-wrap .industry-nav-link.is-active {
    color: #fff !important;
    background: #0177B4;
    border-color: #0177B4 !important;
}

.interview-container {
    width: min(var(--content-width), calc(100% - 80px));
    max-width: none;
    margin: 0 auto;
    padding: 0 0 100px !important;
}

.interview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 32px 28px;
}

.interview-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    background: #E6F1F7;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    transition: none;
}

.interview-card:hover {
    transform: none;
    box-shadow: none;
}

.interview-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e8e8e8;
}

.interview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.interview-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 22px 20px;
    background: #E6F1F7;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 8px;
    max-height: none;
    margin-bottom: 10px;
    overflow: visible;
}

.card-service,
.card-industry {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    padding: 1px 13px 2px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
    border: 0;
    border-radius: 0;
}

.card-service {
    background: #0177B4;
}

.card-service.interview-tag--promotion {
    background: #e95b25;
}

.card-service.interview-tag--web {
    background: #2da84a;
}

.card-service.interview-tag--podcast {
    background: #d72a8a;
}

.card-service.interview-tag--owned {
    background: #2d3191;
}

.card-service.interview-tag--content {
    background: #0089c8;
}

.card-industry {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 7px;
    min-width: 54px;
    padding: 1px 10px 2px;
    color: #0177B4;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    background: #fff;
    border: 1px solid currentColor;
    border-radius: 0;
}

.card-tags--service {
    margin-bottom: 10px;
}

.interview-company {
    display: block;
    margin: 3px 0 0;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.interview-title {
    margin: 6px 0 14px;
    color: var(--color-text);
    font-size: 17px;
    font-weight: 900;
    line-height: 1.4;
}

.interview-excerpt {
    display: block;
    margin: 0;
    color: #1c1c1c;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.55;
}

.works-card__company {
    margin: 0 0 6px;
    color: #1c1c1c;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.post-type-archive-works .interview-title {
    margin: 0 0 14px;
}

.works-card__products {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    margin-top: auto;
}

.works-card__products span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 10px;
    color: var(--works-product-color, #0177B4);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    background: #fff;
    border: 1px solid currentColor;
}

@media (max-width: 980px) {
    .interview-archive__header .section__inner,
    .filter-wrap,
    .interview-container {
        width: min(100% - 56px, var(--content-width));
    }

    .interview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .interview-archive__header {
        padding-top: 0 !important;
    }

    .filter-row {
        display: block;
    }

    .filter-label {
        display: block;
        margin-bottom: 8px;
    }

    .industry-nav {
        width: 100%;
    }

    .card-tags {
        min-height: 0;
    }

    .interview-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   制作実績詳細
   ========================================================================== */
.single-works .header-spacer {
    height: 0;
}

.works-detail__breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin: 20px 0 28px;
    color: #8b969d;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
}

@media (min-width: 681px) {
    .works-detail__breadcrumb {
        margin-top: 40px;
    }
}

.works-detail__breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.works-detail__breadcrumb span::before {
    content: ">";
    margin-right: 8px;
    color: #b4c0c6;
}

.works-detail .works-detail__content {
    display: block;
}

.single-works .works-detail {
    max-width: 1120px;
    margin-top: 0 !important;
    padding-top: 0;
}

.works-detail .works-detail__main {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
}

.works-detail-hero {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
    margin: 0 0 64px;
}

.works-detail-hero--no-image {
    grid-template-columns: 1fr;
}

.works-detail-hero__content {
    min-width: 0;
}

.works-detail-hero__title {
    margin: 0 0 18px;
    color: #111820;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.38;
    letter-spacing: 0;
}

.works-detail-hero__company {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
}

.works-detail-hero__company p {
    margin: 0;
    color: var(--int-main-color);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
}

.works-detail-hero__products {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    margin: 0 0 14px;
}

.works-detail-hero__products span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 10px;
    color: var(--works-product-color, #0177B4);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    background: #fff;
    border: 1px solid currentColor;
}

.works-detail-hero__image {
    width: 100%;
    margin: 0;
    overflow: hidden;
    background: #e8e8e8;
}

.works-detail-hero__image img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    object-position: center;
}

.works-detail__article-body {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    color: #333;
    font-size: 16px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.single-works .works-detail__article-body a {
    color: #00a3ad;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: opacity 0.2s;
}

.single-works .works-detail__article-body a:hover {
    opacity: 0.7;
    font-weight: normal;
}

.works-detail__article-body > *:first-child {
    margin-top: 0;
}

.works-detail__article-body img {
    max-width: 100%;
    height: auto;
}

.works-detail__article-body .alignwide {
    width: min(1080px, 100%);
    max-width: 1080px;
    margin-right: auto;
    margin-left: auto;
}

.works-detail__article-body .alignfull {
    width: 100%;
    max-width: none;
}

@media (max-width: 900px) {
    .works-detail-hero {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-bottom: 52px;
    }

    .works-detail-hero__image {
        width: min(520px, 100%);
        justify-self: center;
    }
}

@media (max-width: 680px) {
    .works-detail__breadcrumb {
        margin-bottom: 20px;
    }

    .single-works .works-detail {
        padding-top: 18px;
    }

    .works-detail-hero {
        margin-bottom: 40px;
    }

    .works-detail-hero__title {
        margin-bottom: 16px;
        font-size: 26px;
        line-height: 1.45;
    }

    .works-detail-hero__company {
        margin: 0;
        padding: 0;
    }

    .works-detail-hero__company p {
        font-size: 18px;
    }

    .single-works .works-detail__article-body .wp-block-buttons {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }

    .single-works .works-detail__article-body .wp-block-button,
    .single-works .works-detail__article-body .wp-block-button.has-custom-width.wp-block-button__width-25 {
        width: 100% !important;
        margin: 0;
    }

    .single-works .works-detail__article-body .wp-block-button__link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100% !important;
        min-height: 48px;
        padding: 8px 4px;
        font-size: clamp(11px, 3.4vw, 14px);
        line-height: 1.2;
        white-space: nowrap;
        word-break: keep-all;
        overflow-wrap: normal;
        border-radius: 999px;
    }

}

@media (max-width: 390px) {
    .single-works .works-detail__article-body .wp-block-buttons {
        grid-template-columns: 1fr;
        gap: 10px;
        width: min(100%, 280px);
        margin-right: auto;
        margin-left: auto;
    }

    .single-works .works-detail__article-body .wp-block-button__link {
        min-height: 48px;
        padding: 10px 18px;
        font-size: 15px;
    }
}
