/**
 * 税理士 導入事例（/tax/cases/ 一覧 + /tax/cases/{slug}/ 詳細）専用スタイル
 * 既存 tax-style.css の後に読み込んで上書き・追加定義する。
 */

/* ============================================================
   共通: パンくず
   ============================================================ */
.tax-cases-breadcrumb {
    max-width: 1200px;
    margin: 16px auto 0;
    padding: 0 20px;
    font-size: 13px;
    color: #666;
}
.tax-cases-breadcrumb ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.tax-cases-breadcrumb li + li::before {
    content: ">";
    margin-right: 6px;
    color: #999;
}
.tax-cases-breadcrumb a {
    color: #666;
    text-decoration: none;
}
.tax-cases-breadcrumb a:hover {
    text-decoration: underline;
}

/* ============================================================
   一覧: タイトルバナー（既存 .voice と同じ voice-bg.jpg を流用）
   ============================================================ */
.tax-cases-title-banner {
    background: url(../img/tax/voice-bg.jpg) bottom center/cover no-repeat;
    padding: 64px 20px 72px;
    text-align: center;
    margin-top: 16px;
}
.tax-cases-title-banner em {
    display: block;
    font-style: normal;
    font-size: 15px;
    color: #1A3261;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    font-weight: 700;
    position: relative;
}
.tax-cases-title-banner em::before {
    content: "";
    display: inline-block;
    width: 60px;
    height: 1px;
    background: #1A3261;
    vertical-align: middle;
    margin: 0 12px 4px 0;
}
.tax-cases-title-banner em::after {
    content: "";
    display: inline-block;
    width: 60px;
    height: 1px;
    background: #1A3261;
    vertical-align: middle;
    margin: 0 0 4px 12px;
}
.tax-cases-title-banner h1 {
    font-size: 36px;
    font-weight: 700;
    color: #FF5500;
    margin: 0;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .tax-cases-title-banner { padding: 40px 20px 48px; }
    .tax-cases-title-banner h1 { font-size: 26px; }
    .tax-cases-title-banner em::before,
    .tax-cases-title-banner em::after { width: 36px; }
}

/* ============================================================
   一覧: カードグリッド
   ============================================================ */
.tax-cases-grid {
    max-width: 1200px;
    margin: 48px auto 80px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 24px;
    list-style: none;
}
@media (max-width: 768px) {
    .tax-cases-grid {
        grid-template-columns: 1fr;
        margin: 32px auto 56px;
        gap: 24px;
    }
}

.tax-cases-grid__item {
    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.tax-cases-grid__item:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.tax-cases-grid__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

/* メディア枠（画像 / 動画 / プレースホルダー） — 16:9 固定 */
.tax-cases-grid__media,
.tax-cases-grid__video { /* 旧クラス名との互換 */
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background-color: #ccc;
    overflow: hidden;
}
.tax-cases-grid__media iframe,
.tax-cases-grid__media .tax-cases-grid__image,
.tax-cases-grid__media .tax-cases-grid__placeholder,
.tax-cases-grid__video iframe,
.tax-cases-grid__video .tax-cases-grid__placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.tax-cases-grid__image { object-fit: cover; }
/* iframeへの直接クリックを無効化し、親リンク（詳細ページ遷移）が受け取るようにする */
.tax-cases-grid__media iframe,
.tax-cases-grid__video iframe {
    pointer-events: none;
}
.tax-cases-grid__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    background: #8c9fae;
}

.tax-cases-grid__body {
    padding: 18px 18px 20px;
}
.tax-cases-grid__title {
    font-size: 16px;
    font-weight: 700;
    color: #1A3261;
    text-align: center;
    margin: 0 0 10px;
    line-height: 1.5;
}
.tax-cases-grid__desc {
    font-size: 13px;
    color: #444;
    line-height: 1.7;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   詳細ページ：動画中心レイアウト（Vimeo風、動画→H1→メタ）
   ============================================================ */
#tax-case-single,
#tax-cases-archive {
    width: 100%;
    display: block;
}

/* ============================================================
   税理士下層ページ共通 サブヘッダー
   ============================================================ */
.tax-subheader { width: 100%; }
.tax-subheader__banner {
    display: block;
    width: 100%;
    max-width: 1340px;
    margin: 0 auto 0;
}
.tax-subheader__banner img {
    width: 100%;
    height: auto;
    display: block;
}
.tax-subheader__bar {
    background: #fff;
    border-bottom: 1px solid #e4e4e4;
    padding: 12px 20px;
}
.tax-subheader__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.tax-subheader__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}
.tax-subheader__logo img { height: 36px; width: auto; display: block; }
.tax-subheader__tagline {
    font-size: 11px;
    color: #1A3261;
    line-height: 1.4;
    font-weight: 600;
}
.tax-subheader__actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.tax-subheader__btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s;
    line-height: 1.2;
}
.tax-subheader__btn:hover { opacity: 0.85; }
.tax-subheader__btn--contact { background: #1A3261; color: #fff; }
.tax-subheader__btn--free { background: #FF5500; color: #fff; }
.tax-subheader__btn--job {
    background: #fff;
    color: #1A3261;
    border: 1px solid #1A3261;
}

@media (max-width: 768px) {
    .tax-subheader__tagline { display: none; }
    .tax-subheader__inner { gap: 12px; }
    .tax-subheader__btn { padding: 8px 12px; font-size: 12px; }
    .tax-subheader__logo img { height: 28px; }
}

/* ============================================================
   税理士下層ページ共通 サブフッター
   ============================================================ */
.tax-subfooter {
    background: #f4f6f9;
    color: #1A3261;
    text-align: center;
    padding: 32px 20px;
    margin-top: 48px;
    font-size: 13px;
}
.tax-subfooter__links {
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.tax-subfooter__links a {
    color: #1A3261;
    text-decoration: none;
}
.tax-subfooter__links a:hover { text-decoration: underline; }
.tax-subfooter__sep { color: #90a4b5; }
.tax-subfooter__copyright {
    color: #566378;
    font-size: 12px;
}

.tax-case-article {
    display: block;
    max-width: 900px;
    margin: 24px auto 48px !important;
    padding: 0 20px;
    box-sizing: border-box;
}
.tax-case-related {
    max-width: 1200px;
    margin: 48px auto 80px;
    padding: 0 20px;
    box-sizing: border-box;
}
.tax-case-related__title {
    text-align: center;
    font-size: 22px;
    color: #1A3261;
    margin: 0 0 24px;
    font-weight: 700;
}

/* Splide カルーセル内のカード（ヘーローカルーセル形式） */
.splide-tax-cases-related .splide__slide {
    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    overflow: hidden;
    height: auto;
}
.splide-tax-cases-related .splide__arrow {
    background: #1A3261;
    opacity: 0.9;
}
.splide-tax-cases-related .splide__arrow svg { fill: #fff; }
.splide-tax-cases-related .splide__arrow:hover { opacity: 1; }
.tax-case-video {
    margin: 0 0 24px;
}
.tax-case-video__inner {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
}
.tax-case-video__inner iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.tax-case-header {
    border-bottom: 1px solid #e4e4e4;
    padding-bottom: 18px;
    margin-bottom: 32px;
}
.tax-case-header__title {
    font-size: 26px;
    font-weight: 700;
    color: #1A3261;
    margin: 0 0 12px;
    line-height: 1.4;
}
.tax-case-header__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    color: #666;
    font-size: 13px;
}
.tax-case-header__logo {
    max-height: 32px;
    width: auto;
}
@media (max-width: 768px) {
    .tax-case-header__title { font-size: 20px; }
}

/* ============================================================
   詳細ページ：Before / After / 導入感想
   既存 _main.php の .introduction 配下スタイルを縦並び用に移植
   ============================================================ */
.tax-case-summary {
    margin: 0 0 40px;
}
.tax-case-summary .change-container {
    display: flex;
    gap: 16px;
    width: 100%;
}
.tax-case-summary .item1,
.tax-case-summary .item2 {
    flex: 1 0 0;
    width: 100%;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}
.tax-case-summary .item1 { background-color: #dadee6; }
.tax-case-summary .item2 { background-color: #fad8c9; }
.tax-case-summary .item2.onlyone { align-items: center; }

.tax-case-summary .item1 .subtitle,
.tax-case-summary .item2 .subtitle {
    font-size: 22px;
    margin-bottom: 8px;
    font-weight: bold;
}
.tax-case-summary .item1 .subtitle { color: #1A3261; }
.tax-case-summary .item2 .subtitle { color: #e95513; }

.tax-case-summary .item1 ul,
.tax-case-summary .item2 ul {
    width: 100%;
    font-weight: bold;
    list-style: none;
    margin: 0;
    padding: 0;
}
.tax-case-summary .item1 ul { font-size: 16px; color: #323232; }
.tax-case-summary .item2 ul { font-size: 18px; color: #1A3261; }

.tax-case-summary .item1 ul li,
.tax-case-summary .item2 ul li {
    position: relative;
    padding-left: 2em;
    line-height: 1.5;
}
.tax-case-summary .item1 ul li:not(:first-child) { margin-top: 0.5em; }
.tax-case-summary .item2 ul li:not(:first-child) { margin-top: 0.8em; }

.tax-case-summary .item1 ul li img,
.tax-case-summary .item2 ul li img {
    position: absolute;
    width: 1.3em;
    height: 1.3em;
    left: 0;
    top: 0.2em;
}
.tax-case-summary .item2 ul li em {
    font-size: 0.95em;
    font-style: normal;
}

@media (max-width: 768px) {
    .tax-case-summary .change-container { flex-direction: column; }
}

/* ============================================================
   詳細ページ：セクション共通（感想 / 本文）
   ============================================================ */
.tax-case-section-title {
    position: relative;
    font-size: 22px;
    font-weight: 700;
    color: #1A3261;
    margin: 0 0 20px;
    padding-left: 14px;
}
.tax-case-section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15em;
    bottom: 0.15em;
    width: 4px;
    background: #FF5500;
    border-radius: 2px;
}

.tax-case-impression {
    margin: 0 0 40px;
}
.tax-case-impression h4 {
    font-size: 18px;
    color: #1A3261;
    margin: 0 0 0.5em;
    font-weight: 700;
}
.tax-case-impression p {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    margin: 0;
    font-weight: 500;
}

/* 本文（WP Editor で装飾入力されたインタビュー記事）
   装飾は SWELL 親テーマの editor_style.css に任せるため、
   ここでは最低限のマージンのみ指定する */
.tax-case-body {
    margin: 48px 0 0;
}
.tax-case-body__content {
    font-size: 16px;
    line-height: 1.9;
    color: #333;
}
.tax-case-body__content > *:first-child { margin-top: 0; }
.tax-case-body__content > *:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
    .tax-case-section-title { font-size: 18px; }
    .tax-case-body__content { font-size: 15px; line-height: 1.85; }
}
