@charset "UTF-8";
/*
Theme Name: outi-cinema
Theme URI:
Description: おうちシネマ用 THE SONIC カスタマイズ子テーマ
Author: andco
Version: 0.1.4
Text Domain: outi-cinema
Template: thesonic
*/

/* =========================================================
   00. Tokens / Base
   ========================================================= */
:root {
    --oc-bg: #eeeeee;
    --oc-surface: #ffffff;
    --oc-border: rgba(0, 0, 0, 0.14);
    --oc-text: #000000;
    --oc-muted: rgba(0, 0, 0, 0.65);
    --oc-accent: #cc0000; /* リンクカラー */
    --oc-accent-2: #cc0000;
    --oc-band: #000000; /* 見出し帯（黒） */
    --oc-on-band: #ffffff; /* 見出し帯上の文字色（白） */
    --oc-max: 1100px;
    --oc-header-top-h: 96px;
    --oc-header-bottom-h: 0px; /* 1段ヘッダーに戻す */
    --oc-header-h: var(--oc-header-top-h);
    --oc-spnav-h: 42px; /* SP下段スライドナビの高さ（少し細く） */
}

@media (min-width: 720px) {
    :root {
        /* ロゴを小さくせずに見切れ回避：上段を高くする */
        --oc-header-top-h: 112px;
        --oc-header-h: var(--oc-header-top-h);
    }
}

@media (min-width: 1020px) {
    :root {
        --oc-header-h: var(--oc-header-top-h);
    }
}

* {
    box-sizing: border-box;
}
html,
body {
    height: 100%;
}
body {
    margin: 0;
    background: var(--oc-bg);
    color: var(--oc-text);
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic",
        Meiryo, sans-serif;
    font-size: 15px; /* 全体を一回り小さく */
    line-height: 1.7;
}
@media (max-width: 719px) {
    body {
        font-size: 14px; /* SPはさらに少し小さく */
    }
}
img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}
a {
    color: var(--oc-accent);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* =========================================================
   90. THE SONIC overrides (parent theme fixes)
   - !important を使う対策は基本ここに集約
   ========================================================= */
/* THE SONIC：ASP広告ボタン（青背景＋白文字）などはリンク色で文字が染まらないように固定 */
a.tsnc-btn,
a.tsnc-btn:visited,
.tsnc-btn,
.is-style-btn-mark1 .tsnc-btn,
.is-style-btn-mark2 .tsnc-btn,
.is-style-corebtn-mark1 .wp-block-button__link,
.is-style-corebtn-mark2 .wp-block-button__link {
    color: #fff !important;
    text-decoration: none !important;
}
a.tsnc-btn:hover,
.is-style-corebtn-mark1 .wp-block-button__link:hover,
.is-style-corebtn-mark2 .wp-block-button__link:hover {
    color: #fff !important;
    text-decoration: none !important;
}

/* 念のため：過去の「ボックス型メニュー」が残っていても非表示 */
.oc-jump {
    display: none !important;
}

/* =========================================================
   10. Layout / Utilities
   ========================================================= */
.oc-container {
    max-width: var(--oc-max);
    margin: 0 auto;
    padding: 0 16px;
}
.oc-container.oc-container--single {
    max-width: 980px; /* 個別投稿だけ少し狭く */
}
.oc-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =========================================================
   20. Header / Navigation
   ========================================================= */
/* Header */
.oc-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--oc-header-h);
    background: transparent;
    z-index: 50;
}
.oc-header a {
    color: inherit;
}

/* 2段ヘッダー：上段（白） */
.oc-header__top {
    height: var(--oc-header-h);
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0; /* 高さは変数で管理（中はinnerで余白） */
    box-sizing: border-box;
}
.oc-header__top-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 8px 0; /* 上段の上下に余白（ロゴ見切れ防止） */
}
.oc-header__actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
    position: relative; /* 検索ポップオーバーの基準 */
    margin-left: auto; /* SP：虫眼鏡/ハンバーガーを右寄せ */
}
.oc-search-toggle {
    appearance: none;
    border: 1px solid rgba(0, 0, 0, 0.18);
    background: #ffffff;
    color: #000;
    border-radius: 999px;
    height: 42px;
    width: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.oc-search-toggle:focus {
    outline: 2px solid rgba(204, 0, 0, 0.25);
    outline-offset: 2px;
}

/* SP：ハンバーガーが右端ギリギリにならないよう少し余白 */
@media (max-width: 719px) {
    .oc-header__actions .oc-nav-toggle {
        margin-right: 4px;
    }
}

/* 検索バー：虫眼鏡押下で展開 */
.oc-searchbar {
    display: none;
    position: fixed; /* SPのデフォルト（下に出す） */
    top: var(--oc-header-h);
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 55;
}
@media (max-width: 1019px) {
    /* SP：下段スライドナビの分だけ下に出す */
    .oc-searchbar {
        top: calc(var(--oc-header-h) + var(--oc-spnav-h));
    }
}
.oc-searchbar.is-open {
    display: block;
}
.oc-header-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    width: 100%;
}
.oc-header-search--top {
    display: none; /* SPでは出さない（虫眼鏡で展開） */
}
.oc-header-search__input {
    flex: 1 1 auto;
    min-width: 0;
    height: 44px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 999px;
    padding: 0 14px;
    font: inherit;
    box-sizing: border-box;
}
.oc-header-search__submit {
    flex: 0 0 auto;
    height: 44px;
    width: 44px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    background: #ffffff;
    color: #000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* 下段黒帯（旧仕様）は廃止 */
.oc-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 0 0 auto;
    height: 100%;
}
.custom-logo-link {
    display: flex;
    align-items: center;
    height: 100%;
}
.custom-logo-link img {
    max-height: 76px;
    width: auto;
    display: block; /* 画像のベースライン由来のズレを防ぐ */
}

/* 上段はロゴを小さくしない（見切れはヘッダー高さ/余白で吸収） */
.oc-header__top .oc-brand,
.oc-header__top .custom-logo-link {
    height: 100%;
}
.oc-brand__name {
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 720px) {
    .custom-logo-link img {
        max-height: 88px;
    }
    .oc-brand__name {
        font-size: 20px;
    }
}

/* PCでロゴが下寄りに見える場合の微調整 */
@media (min-width: 1020px) {
    .oc-brand {
        transform: translateY(0); /* 上端の見切れ対策 */
    }
}

/* 旧：ヘッダー内ナビ/ボタン（2段化したので上段アクションに統合） */
.oc-header__nav {
    display: none;
}

/* Header category nav (PC only) */
.oc-header-cats {
    display: flex; /* SPでも下段に表示 */
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    align-items: center;
    justify-content: center;
}
/* 上段に移したナビ：PCのみ表示、右寄せ */
.oc-header-cats--top {
    display: none;
}

/* =========================================================
   SP：ヘッダー下段スライドナビ（親タブ + 子はタップでアコーディオン）
   ========================================================= */
.oc-header__spnav {
    display: none;
}
@media (max-width: 1019px) {
    .oc-header__spnav {
        display: block;
        position: fixed;
        top: var(--oc-header-h);
        left: 0;
        right: 0;
        height: var(--oc-spnav-h);
        background: #ffffff;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        z-index: 54;
    }
    .oc-header__spnav-inner {
        position: relative;
        height: 100%;
        display: flex;
        align-items: center;
    }
    .oc-header-cats--sp {
        width: 100%;
        height: 100%;
    }
    .oc-header__spnav .oc-hnav.oc-hnav--sp {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        align-items: center;
        gap: 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* ネイティブは隠してカスタム表示 */
        height: 100%;
    }
    .oc-header__spnav .oc-hnav.oc-hnav--sp::-webkit-scrollbar {
        display: none;
    }

    /* SP下段ナビ：カスタムスクロールインジケータ（長さを固定したいので自前表示） */
    .oc-header__spnav {
        overflow-x: hidden;
        overflow-y: visible; /* 子カテゴリ（sub-menu）を下に出すため */
    }
    .oc-spnav-scroll {
        position: absolute;
        left: 16px;
        right: 16px;
        bottom: 4px;
        height: 2px;
        background: rgba(0, 0, 0, 0.10);
        border-radius: 999px;
        pointer-events: none;
        opacity: 0;
        transition: opacity 180ms ease;
    }
    .oc-spnav-scroll.is-visible {
        opacity: 1;
    }
    .oc-spnav-scroll__thumb {
        height: 100%;
        width: 33.333%;
        background: rgba(0, 0, 0, 0.28);
        border-radius: 999px;
        transform: translateX(0);
        will-change: transform;
    }
    .oc-header__spnav .oc-hnav.oc-hnav--sp > li {
        position: static;
        flex: 0 0 auto;
    }
    .oc-header__spnav .oc-hnav.oc-hnav--sp > li > a {
        display: inline-flex;
        align-items: center;
        height: 100%;
        padding: 0 4px; /* 横幅を少し細く */
        font-weight: 700;
        font-size: 13px; /* 文字サイズをもう少し小さく */
        color: var(--oc-text);
        text-decoration: none;
        white-space: nowrap;
        border-bottom: 2px solid transparent;
    }
    /* 「サイトTOP」だけ下線（アクティブ線）を出さない */
    .oc-header__spnav .oc-hnav.oc-hnav--sp > li.oc-spnav-home > a {
        border-bottom: 0 !important;
    }
    .oc-header__spnav .oc-hnav.oc-hnav--sp > li.current-menu-item > a,
    .oc-header__spnav .oc-hnav.oc-hnav--sp > li.current-menu-ancestor > a {
        border-bottom-color: #000;
    }

    /* 子カテゴリ：通常は非表示（親タップで開く） */
    .oc-header__spnav .oc-hnav.oc-hnav--sp .sub-menu {
        display: none !important;
    }
    .oc-header__spnav .oc-hnav.oc-hnav--sp > li.is-open > .sub-menu {
        display: block !important;
        position: fixed; /* クリップ/位置ズレ対策：画面基準で確実に表示 */
        top: calc(var(--oc-header-h) + var(--oc-spnav-h));
        left: 0;
        right: 0;
        padding: 8px 0;
        margin: 0;
        list-style: none;
        background: #ffffff;
        border-bottom: 1px solid rgba(0, 0, 0, 0.10);
        box-shadow: 0 16px 34px rgba(0, 0, 0, 0.12);
        z-index: 56;
    }
    .oc-header__spnav .oc-hnav.oc-hnav--sp > li.is-open > .sub-menu a {
        display: block;
        padding: 12px 16px;
        color: var(--oc-text);
        text-decoration: none;
        font-weight: 600;
        font-size: 12px; /* 子カテゴリは親ナビ(13px)より少し小さく */
        line-height: 1.25;
    }
    .oc-header__spnav .oc-hnav.oc-hnav--sp > li.is-open > .sub-menu a:hover {
        background: rgba(0, 0, 0, 0.05);
    }

    /* 親に子がある時の小さな矢印 */
    .oc-header__spnav .oc-hnav.oc-hnav--sp > li.menu-item-has-children > a {
        padding-right: 16px;
        position: relative;
    }
    .oc-header__spnav .oc-hnav.oc-hnav--sp > li.menu-item-has-children > a::after {
        content: "▾";
        font-size: 11px;
        opacity: 0.7;
        position: absolute;
        right: 2px;
        top: 50%;
        transform: translateY(-50%);
    }
    .oc-header__spnav .oc-hnav.oc-hnav--sp > li.is-open.menu-item-has-children > a::after {
        transform: translateY(-50%) rotate(180deg);
    }
}
@media (min-width: 1020px) {
    .oc-header-cats--top {
        display: flex;
        justify-content: flex-end;
        flex: 1 1 auto;
        min-width: 0;
        margin-left: auto; /* ナビ全体を右寄せ */
        transform: translateY(5px); /* 5pxだけ下げる */
    }
    .oc-header__actions {
        margin-left: 0; /* ナビを虫眼鏡寄りに */
    }
}
/* 上段ナビ：白背景なので黒文字にする */
.oc-hnav.oc-hnav--top > li > a {
    color: var(--oc-text);
}
.oc-hnav.oc-hnav--top > li > a[data-oc-slug]::after {
    color: rgba(0, 0, 0, 0.55);
}
.oc-hnav.oc-hnav--top > li > a:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--oc-text);
}

/* =========================================================
   TOP：ヒーロー画像
   - PC：1024×576px（16:9）
   - SP：横幅100%、16:9
   ========================================================= */
.oc-top-eyecatch {
    width: 100%;
    max-width: 1024px; /* PC：1024×576（16:9） */
    margin-top: 0;
    margin-bottom: 10px;
    margin-left: auto;
    margin-right: auto;
    background: transparent; /* 余白が出ても黒にしない */
    aspect-ratio: 16 / 9;
    overflow: hidden; /* 念のため */
}

/* TOP：ヒーロー直下の差し込み（固定ページの中身） */
.oc-top-insert {
    padding: 8px 0 0;
}
.oc-top-insert__content {
    margin-top: 0;
    max-width: 100%;
    overflow-x: hidden; /* SPでページ全体が横にはみ出すのを防ぐ */
}
.oc-top-insert__title {
    margin: 0 0 14px;
    padding: 10px 14px;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 12px;
    background: #000;
    color: #fff;
    text-align: center;
    font-size: 20px;
    line-height: 1.2;
}
@media (max-width: 719px) {
    .oc-top-insert__title {
        font-size: 15px; /* SP時だけさらに小さく */
    }
}
/* TOP差し込み固定ページ内：H2だけ余白調整 */
.oc-top-insert__content h2 {
    margin: 2px 0 24px !important; /* .oc-content h2 の既定(28px…)を上書き */
}

/* TOP差し込み固定ページ内：2カラム等の横はみ出し対策（SP） */
.oc-top-insert__content img,
.oc-top-insert__content video,
.oc-top-insert__content iframe,
.oc-top-insert__content embed,
.oc-top-insert__content object {
    max-width: 100%;
}
.oc-top-insert__content table {
    max-width: 100%;
    border: 0;
    outline: 0;
    box-shadow: none;
}
/* Gutenbergのテーブルブロック：外枠（薄い枠線）を消す（TOP差し込み内だけ） */
.oc-top-insert__content .wp-block-table {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    max-width: 100%;
    overflow-x: auto; /* Gutenbergテーブルはラッパーで横スクロール */
    -webkit-overflow-scrolling: touch;
}
.oc-top-insert__content .wp-block-table table {
    width: max-content; /* 中身に合わせて広げ、ラッパーでスクロール */
    min-width: 100%;
}

/* FAQ等のQ&Aブロック内で、flexのmin-widthが原因でテーブルが“スクロールせずはみ出す”のを防ぐ */
.oc-top-insert__content .a-area,
.oc-top-insert__content .qa-content {
    max-width: 100%;
    min-width: 0; /* flex子要素が内容幅で広がるのを防止 */
}

@media (max-width: 719px) {
    /* TOP差し込み固定ページ内：tableが素で出てくるケースも横スクロールさせる */
    .oc-top-insert__content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
@media (max-width: 719px) {
    /* Gutenberg Columns */
    .oc-top-insert__content .wp-block-columns {
        flex-wrap: wrap !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        gap: 14px !important;
        max-width: 100% !important;
    }
    .oc-top-insert__content .wp-block-column {
        min-width: 0 !important;
        flex-basis: 100% !important;
        width: 100% !important;
    }
}
.oc-top-eyecatch__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain; /* 見切れないように枠内に収める */
    object-position: center;
}
@media (min-width: 1020px) {
    .oc-top-eyecatch {
        margin-top: 0;
        margin-bottom: 10px;
        width: 1024px;
        height: 576px; /* 1024×(9/16) の確定値（aspect-ratio非対応の保険） */
    }
}

@media (min-width: 1020px) {
    .oc-header-cats {
        justify-content: center; /* PC：中央揃え */
        transform: translateY(0);
    }
    /* 上段ナビは右寄せを優先（後勝ち対策） */
    .oc-header-cats.oc-header-cats--top {
        justify-content: flex-end;
        transform: translateY(25px) !important; /* 5px下げる（後勝ち対策） */
    }
    /* PC：虫眼鏡も同じだけ下に */
    .oc-header__actions .oc-search-toggle {
        transform: translateY(25px) !important;
    }
    .oc-hnav {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center; /* PC：中央揃え */
        gap: 14px 28px;
        height: 100%;
        width: 100%;
    }
    .oc-hnav > li {
        position: relative;
    }
    /* 親メニュー→ドロップダウンへマウス移動する時に「隙間」で閉じないようにする */
    .oc-hnav > li.menu-item-has-children::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        height: 14px; /* サブメニューまでのブリッジ */
    }
    .oc-hnav > li > a {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 10px 10px;
        color: inherit; /* 黒帯内では白を継承 */
        text-decoration: none;
        font-weight: 700;
        font-size: 18px; /* PC：ナビ文字を大きく */
        line-height: 1.05;
        border-radius: 10px;
        min-height: 44px;
        position: relative;
        padding-right: 26px; /* 矢印分 */
    }
    /* スラッグ（小さく） */
    .oc-hnav > li > a[data-oc-slug]::after {
        content: attr(data-oc-slug);
        font-size: 11px;
        font-weight: 400;
        letter-spacing: 0.04em;
        color: rgba(255, 255, 255, 0.72);
        line-height: 1.1;
        margin-top: 2px;
        width: 100%;
        text-align: center; /* 小さい文字を中央寄せ */
    }
    /* ドロップダウン矢印（スラッグと干渉しないよう別要素で表示） */
    .oc-hnav > li.menu-item-has-children > a::before {
        content: "▾";
        font-size: 12px;
        opacity: 0.7;
        position: absolute;
        right: 10px;
        top: 14px;
    }
    .oc-hnav > li > a:hover {
        background: rgba(255, 255, 255, 0.10);
        color: #fff;
        text-decoration: none;
    }

    /* 上段（白背景）に移したナビだけは1行横並びにする */
    .oc-hnav.oc-hnav--top {
        justify-content: flex-end;
        width: auto;
        flex-wrap: nowrap; /* 折り返しで2段にならない */
        gap: 8px 18px;
        height: auto;
    }
    .oc-hnav.oc-hnav--top > li > a {
        flex-direction: column; /* 英字（スラッグ）を下に出す */
        align-items: center;
        gap: 2px;
        padding: 8px 10px;
        font-size: 15px;
        line-height: 1.15;
        min-height: 0;
        padding-right: 18px; /* 矢印分だけ確保（必要なら） */
        color: var(--oc-text);
        white-space: nowrap; /* 文字が折り返さない */
    }
    .oc-hnav.oc-hnav--top > li > a[data-oc-slug]::after {
        display: block; /* 上段でも英字を表示 */
        font-size: 11px;
        font-weight: 400;
        letter-spacing: 0.04em;
        line-height: 1.1;
        color: rgba(0, 0, 0, 0.55);
    }
    /* 上段ナビ：英字（スラッグ）表記の一部だけ置換 */
    .oc-hnav.oc-hnav--top > li > a[data-oc-slug="vod"]::after {
        content: "VOD";
    }
    .oc-hnav.oc-hnav--top > li > a[data-oc-slug="anime"]::after {
        content: "Anime";
    }
    .oc-hnav.oc-hnav--top > li > a[data-oc-slug="drama"]::after {
        content: "Drama";
    }
    .oc-hnav.oc-hnav--top > li > a[data-oc-slug="movie"]::after {
        content: "Movie";
    }
    .oc-hnav.oc-hnav--top > li > a:hover {
        background: rgba(0, 0, 0, 0.06);
        color: var(--oc-text);
    }
    .oc-hnav.oc-hnav--top > li.menu-item-has-children > a::before {
        top: 10px;
        color: rgba(0, 0, 0, 0.55);
        opacity: 1;
    }

    .oc-hnav .sub-menu {
        display: none;
        position: absolute;
        top: calc(100% + 6px);
        left: 50%;
        transform: translateX(-50%);
        width: max-content;
        min-width: 220px;
        max-width: 320px;
        padding: 8px 0;
        margin: 0;
        list-style: none;
        background: #fff;
        border: 1px solid rgba(0, 0, 0, 0.12);
        border-radius: 12px;
        box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
        z-index: 60;
    }
    .oc-hnav > li:hover > .sub-menu,
    .oc-hnav > li:focus-within > .sub-menu {
        display: block;
    }
    .oc-hnav .sub-menu a {
        display: block;
        padding: 10px 14px;
        color: #000;
        text-decoration: none;
        line-height: 1.2;
        font-weight: 600;
        white-space: nowrap;
    }
    .oc-hnav .sub-menu a:hover {
        background: rgba(0, 0, 0, 0.06);
        color: var(--oc-accent);
        text-decoration: none;
    }

    /* PCではハンバーガー（メニューボタン）を出さない */
    .oc-menu {
        display: none !important;
    }
    .oc-search-toggle {
        display: inline-flex; /* PCも虫眼鏡のみ */
    }
    .oc-header__actions .oc-nav-toggle {
        display: none;
    }
    /* PC：虫眼鏡の横に“重なって”出す（ヘッダ上にポップオーバー） */
    .oc-searchbar {
        position: absolute;
        top: 50%;
        right: calc(46px + 10px); /* 虫眼鏡の左に出す */
        transform: translateY(-50%);
        left: auto;
        width: min(360px, 46vw);
        background: #ffffff;
        border: 1px solid rgba(0, 0, 0, 0.12);
        border-radius: 12px;
        box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
        overflow: hidden;
        z-index: 60;
    }
    .oc-searchbar .oc-header-search {
        padding: 12px 14px;
    }
}

/* SP：黒帯にナビは出すが、子メニューはハンバーガー側に寄せる */
@media (max-width: 1019px) {
    .oc-hnav {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 18px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .oc-hnav::-webkit-scrollbar {
        display: none;
    }
    .oc-hnav .sub-menu {
        display: none !important;
    }
    .oc-hnav > li > a {
        color: inherit;
        text-decoration: none;
        font-weight: 700;
        font-size: 16px; /* SP：下段ナビ文字を少し小さく */
        white-space: nowrap;
        padding: 10px 6px;
    }
    .oc-hnav > li > a[data-oc-slug]::after {
        display: none;
    }
}

/* SP：ハンバーガーメニュー内（カテゴリ階層） */
.oc-mnav,
.oc-mnav .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}
.oc-mnav a {
    display: block;
    padding: 12px 16px;
    color: var(--oc-on-band);
    text-decoration: none;
}
.oc-mnav .sub-menu a {
    padding-left: 28px;
    color: rgba(255, 255, 255, 0.85);
}
.oc-mnav a:hover {
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
}
.oc-mnav > li.menu-item-has-children > a::after {
    content: " ▾";
    opacity: 0.8;
    font-size: 12px;
}

/* SP用：ハンバーガーアイコン */
.oc-burger {
    width: 22px;
    height: 14px;
    position: relative;
    display: inline-block;
}
.oc-burger::before,
.oc-burger::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}
.oc-burger::before {
    top: 0;
}
.oc-burger::after {
    bottom: 0;
}
.oc-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    appearance: none;
    border: 1px solid rgba(0, 0, 0, 0.3);
    background: transparent;
    color: #000;
    border-radius: 10px;
    height: 44px;
    padding: 0 12px;
    cursor: pointer;
}
.oc-nav-toggle:focus {
    outline: 2px solid rgba(204, 0, 0, 0.25);
    outline-offset: 2px;
}
.oc-menu {
    display: none;
    position: absolute;
    top: var(--oc-header-h);
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.oc-menu::before {
    content: "";
    display: block;
}
.oc-menu.is-open {
    display: block;
}
.oc-menu__inner {
    padding: 12px 0 16px;
}
.oc-menu__inner ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.oc-menu__inner li a {
    display: block;
    padding: 10px 16px;
    color: var(--oc-on-band);
}
.oc-menu__inner li a:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* PC：メニューボタン直下に小さく表示（全幅にしない） */
@media (min-width: 720px) {
    .oc-menu {
        left: auto;
        right: 16px;
        width: min(360px, calc(100vw - 32px));
        margin-top: 10px;
        border: 1px solid rgba(0, 0, 0, 0.12);
        border-radius: 12px;
        box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
        overflow: hidden;
    }
    .oc-menu__inner {
        padding: 10px 0;
    }
    .oc-menu__inner li a {
        padding: 10px 14px;
    }
}

/* =========================================================
   30. Main / Breadcrumbs
   ========================================================= */
/* Main */
.oc-main {
    padding-top: 18px;
    padding-bottom: 56px;
}
.oc-main.oc-main--with-header {
    padding-top: var(--oc-header-h);
}
@media (max-width: 1019px) {
    .oc-main.oc-main--with-header {
        padding-top: calc(var(--oc-header-h) + var(--oc-spnav-h));
    }
}

/* Breadcrumbs */
.oc-breadcrumbs {
    margin: 10px 0 18px; /* 下に少し余白（+2px） */
}

/* 親テーマ側の breadcrumb クラスにも念のため適用 */
.breadcrumb {
    margin-bottom: 2px;
}
.oc-breadcrumbs nav {
    background: transparent;
    border: none;
    border-radius: 0;
}
.oc-breadcrumbs ol {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    font-size: 13px;
    color: var(--oc-muted);
    overflow: hidden;
}
.oc-breadcrumbs li {
    flex: 0 0 auto;
}
.oc-breadcrumbs li:last-child {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.oc-breadcrumbs a {
    color: var(--oc-muted);
}
.oc-breadcrumbs .sep {
    opacity: 0.6;
}

.oc-top-section {
    padding: 18px 0 6px;
}
.oc-top-section__header {
    margin-bottom: 12px;
}
.oc-top-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.25;
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.oc-top-pickup .oc-top-title,
.oc-top-latest .oc-top-title {
    font-size: 24px;
}
.oc-top-kicker {
    font-size: 12px;
    letter-spacing: 0.12em;
    color: var(--oc-muted);
}
.oc-keywords {
    display: grid;
    gap: 12px;
    justify-items: center;
}
.oc-top-keywords__band {
    background: #e5e5e5;
    padding: 18px 0 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
}
.oc-search {
    width: 100%;
    max-width: 520px;
}
.oc-search .search-form {
    display: flex;
    gap: 8px;
    align-items: center;
    position: static !important; /* THE SONIC の absolute を無効化 */
}
.oc-search .search-form label {
    flex: 1 1 auto;
}
.oc-search .search-field {
    width: 100%;
    border: 1px solid var(--oc-border);
    background: var(--oc-surface);
    color: var(--oc-text);
    height: 42px;
    padding: 0 12px;
    font: inherit;
    border-radius: 0;
}
.oc-search .search-field:focus {
    outline: 2px solid rgba(204, 0, 0, 0.25);
    outline-offset: 2px;
}
.oc-search .search-submit {
    flex: 0 0 auto;
    height: 42px;
    width: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: static !important; /* THE SONIC の absolute を無効化 */
    border: 1px solid #000 !important;
    background: #000 !important;
    color: #fff !important; /* 虫眼鏡が黒と同化しないように */
    cursor: pointer;
    font-weight: 700;
    border-radius: 0;
}
.oc-search .search-submit:hover {
    background: #222 !important;
}
.oc-tag-cloud {
    max-width: 820px;
    text-align: center;
}
.oc-tag-cloud a,
.oc-top-keywords .oc-tag-cloud a,
.oc-tag-cloud .tagcloud a,
.oc-top-keywords .oc-tag-cloud .tagcloud a {
    display: inline-block;
    margin: 0 10px 10px 0;
    padding: 6px 12px;
    border: 1px solid rgba(0, 0, 0, 0.35) !important;
    background: #e0e0e0 !important; /* 枠内は少し濃い灰色 */
    color: var(--oc-text) !important;
    font-size: 14px !important; /* wp_tag_cloud のインライン指定を固定 */
    line-height: 1.4;
    border-radius: 999px;
    text-decoration: none !important;
    white-space: nowrap;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}
.oc-tag-cloud a::before,
.oc-tag-cloud .tagcloud a::before {
    content: "#";
    margin-right: 2px;
}
.oc-tag-cloud a:hover,
.oc-top-keywords .oc-tag-cloud a:hover,
.oc-tag-cloud .tagcloud a:hover,
.oc-top-keywords .oc-tag-cloud .tagcloud a:hover {
    border-color: var(--oc-accent) !important;
    background: #d8d8d8 !important;
    color: var(--oc-accent) !important;
    text-decoration: none !important;
}

/* Titles */
.oc-page-title {
    margin: 0 0 16px;
    font-size: 26px;
    line-height: 1.25;
    letter-spacing: 0.01em;
}

/* Archive（カテゴリ/タグ）：見出しを統一 */
.oc-archive-head {
    margin: 0 0 18px;
    padding: 0 0 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.14); /* 下線 */
}
.oc-archive-kicker {
    margin: 0 0 6px;
    font-size: 12px;
    letter-spacing: 0.12em;
    color: var(--oc-muted);
    text-transform: uppercase;
}
.oc-archive-title {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
}
.oc-archive-desc {
    margin-top: 10px;
}
@media (max-width: 719px) {
    .oc-archive-title {
        font-size: 24px;
    }
}

/* 固定ページID=35（例：お問い合わせ）だけH1を調整 */
body.page-id-35 .oc-page-title {
    margin-bottom: 28px;
    font-size: 24px;
}
.oc-meta {
    color: var(--oc-muted);
    font-size: 13px;
}

/* 個別記事：日付下に「PR」表示 */
.oc-post-meta__line2 {
    margin-top: 6px;
}
.oc-pr {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    background: #e0e0e0;
    color: var(--oc-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.4;
    border-radius: 999px;
}

/* =========================================================
   40. Cards / Grids
   ========================================================= */
/* Post cards */
.oc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
@media (min-width: 720px) {
    .oc-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}
@media (min-width: 1020px) {
    .oc-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 22px;
    }
}

/* TOP用：少ない枚数でも中央揃え */
.oc-grid.oc-grid--center {
    justify-content: center;
}
@media (min-width: 720px) {
    .oc-grid.oc-grid--center {
        grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
    }
}
@media (min-width: 1020px) {
    .oc-top-pickup .oc-grid.oc-grid--center {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (min-width: 1020px) {
    .oc-top-latest .oc-grid.oc-grid--center {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
.oc-card {
    border: 1px solid var(--oc-border);
    border-radius: 14px;
    overflow: hidden;
    background: var(--oc-surface);
    transition: border-color 0.15s ease;
    height: 100%;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}
.oc-card:hover {
    border-color: rgba(0, 0, 0, 0.3);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}
.oc-card a {
    color: var(--oc-text);
    text-decoration: none;
}
.oc-card a:hover {
    text-decoration: none;
}
.oc-card:hover .oc-card__title {
    color: var(--oc-accent);
}
.oc-card__thumb {
    aspect-ratio: 16/9;
    background: #ffffff;
    overflow: hidden;
}
.oc-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* 個別記事：アイキャッチ（4:3の枠内に収める：見切れなし） */
.oc-post-thumb {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #ffffff;
    border-radius: 14px;
    width: 100%;
    max-width: 100%; /* article（oc-container--single）と同じ横幅にする */
    margin-left: auto;
    margin-right: auto;
}
.oc-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* 個別記事：アイキャッチは記事幅に合わせる（縮小しない） */
.oc-card__body {
    padding: 12px 12px 14px;
}
.oc-card__title {
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}
.oc-card__meta {
    margin-top: 8px;
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--oc-muted);
    font-size: 12px;
}
.oc-pill {
    display: inline-flex;
    align-items: center;
    padding: 0;
    border-radius: 0;
    border: none;
    color: var(--oc-muted);
    font-size: 12px;
}

/* =========================================================
   50. Content (post/page body)
   ========================================================= */
/* Content */
.oc-content {
    border: none;
    border-radius: 0;
    padding: 0;
    background: transparent;
}
.oc-content a {
    color: var(--oc-accent);
    text-decoration: underline;
}
.oc-content p {
    margin: 0 0 1.2em;
}
.oc-content ul,
.oc-content ol {
    padding-left: 1.2em;
}
.oc-content blockquote {
    margin: 18px 0;
    padding: 12px 14px;
    border-left: 4px solid rgba(204, 0, 0, 0.55);
    background: rgba(0, 0, 0, 0.03);
}

/* THE SONIC 目次：.entry-content 前提の開閉を .oc-content にも適用 */
.oc-content .mkj-content {
    display: block;
    position: relative;
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: height 0.3s, opacity 0.3s;
}
.oc-content .mkj-input:checked ~ .mkj-content {
    height: auto;
    opacity: 1;
}

/* Pagination */
.pagination {
    margin: 22px 0 0;
}
.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

/* 個別記事：タグ（#付き）をTOPと同じチップ風に */
.oc-post-meta-footer {
    background: transparent !important; /* 親テーマの footer 背景を打ち消す */
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}
.oc-post-tags-row {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.oc-post-tags-row::before,
.oc-post-tags-row::after {
    display: none !important;
    content: none !important;
}
.oc-post-tags a {
    display: inline-block;
    margin: 0 10px 10px 0;
    padding: 6px 12px;
    border: 1px solid rgba(0, 0, 0, 0.35) !important;
    background: #e0e0e0 !important;
    color: var(--oc-text) !important;
    font-size: 14px;
    line-height: 1.4;
    border-radius: 999px;
    text-decoration: none !important;
    white-space: nowrap;
}
.oc-post-tags a:hover {
    border-color: var(--oc-accent) !important;
    background: #d8d8d8 !important;
    color: var(--oc-accent) !important;
}

/* 個別記事：前/次の記事リンクも囲ったデザインに */
.pagination .nav-links {
    gap: 10px;
}
.pagination .nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    background: var(--oc-surface);
    color: var(--oc-text);
    border-radius: 12px;
    text-decoration: none;
    min-height: 44px;
}
.pagination .nav-links a:hover {
    border-color: rgba(0, 0, 0, 0.35);
    color: var(--oc-accent);
    text-decoration: none;
}

/* 個別記事：関連記事 */
.oc-related {
    padding-top: 26px;
}
.oc-related__header {
    margin-top: 10px;
    margin-bottom: 16px;
}
.oc-related__en {
    font-size: 26px;
    letter-spacing: 0.08em;
    line-height: 1.05;
    font-weight: 800;
}
.oc-related__jp {
    margin-top: 6px;
    color: rgba(0, 0, 0, 0.55);
    font-size: 14px;
}

/* PC：関連記事は3列固定（SPは1列のまま） */
@media (min-width: 1020px) {
    .oc-related .oc-grid.oc-grid--center {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
.oc-card__noimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 0, 0, 0.18);
    font-weight: 800;
    letter-spacing: 0.08em;
}
.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--oc-border);
    color: var(--oc-text);
    background: var(--oc-surface);
}
.page-numbers.current {
    border-color: rgba(204, 0, 0, 0.6);
    background: rgba(204, 0, 0, 0.1);
}

/* =========================================================
   60. Footer / Forms
   ========================================================= */
/* Footer */
.oc-footer {
    border-top: 1px solid var(--oc-border);
    background: var(--oc-band);
    padding: 28px 0;
}
.oc-footer,
.oc-footer a {
    color: var(--oc-on-band);
}
.oc-footer a:hover {
    color: var(--oc-accent);
}
.oc-footer__inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.oc-footer__menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
}
.oc-footer__copyright {
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
}

/* Contact */
.oc-form {
    display: grid;
    gap: 12px;
}

/* 固定ページに貼る Googleフォーム（.google-form）用スタイル */
.google-form {
    max-width: 900px;
    margin: 0 auto; /* H1側のmarginで間隔を作る */
}
.google-form form {
    display: block; /* label→input間の“謎の空き”を消す */
}
.google-form label {
    display: block;
    font-size: 20px; /* 氏名/メールアドレス等のラベル文字を大きく */
    font-weight: 700;
    margin: 0 0 4px;
}
.google-form input[type="text"],
.google-form input[type="email"],
.google-form input[type="tel"],
.google-form textarea {
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0;
    background: #fff;
    color: var(--oc-text);
    padding: 12px 12px;
    font: inherit;
    font-size: 16px;
}
.google-form input[type="text"],
.google-form input[type="email"],
.google-form input[type="tel"] {
    min-height: 46px;
    margin-bottom: 10px;
}
.google-form #input-name {
    margin-bottom: 6px; /* 氏名入力の下だけ少し詰める */
}
.google-form textarea {
    min-height: 220px;
    resize: vertical;
    margin-bottom: 10px;
}
.google-form input:focus,
.google-form textarea:focus {
    outline: 2px solid rgba(204, 0, 0, 0.25);
    outline-offset: 2px;
}
.google-form button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid rgba(0, 0, 0, 0.3);
    background: #bfbfbf; /* 画像1の薄グレー寄せ */
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
}
.google-form button[type="submit"]:hover {
    background: #a9a9a9;
}
.oc-field label {
    display: block;
    font-size: 13px;
    color: var(--oc-muted);
    margin-bottom: 6px;
}
.oc-field input,
.oc-field textarea {
    width: 100%;
    border: 1px solid var(--oc-border);
    border-radius: 12px;
    background: var(--oc-surface);
    color: var(--oc-text);
    padding: 10px 12px;
    font: inherit;
}
.oc-field input:focus,
.oc-field textarea:focus {
    outline: 2px solid rgba(204, 0, 0, 0.25);
    outline-offset: 2px;
}
.oc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(204, 0, 0, 0.55);
    background: rgba(204, 0, 0, 0.1);
    color: var(--oc-text);
    border-radius: 12px;
    height: 44px;
    padding: 0 16px;
    cursor: pointer;
    font-weight: 700;
}
.oc-button:hover {
    background: rgba(204, 0, 0, 0.16);
}
.oc-alert {
    border: 1px solid var(--oc-border);
    border-radius: 12px;
    padding: 10px 12px;
    background: var(--oc-surface);
}
.oc-alert.is-ok {
    border-color: rgba(0, 200, 120, 0.4);
    background: rgba(0, 200, 120, 0.08);
}
.oc-alert.is-ng {
    border-color: rgba(204, 0, 0, 0.5);
    background: rgba(204, 0, 0, 0.08);
}

/* =========================================================
   70. Headings (inside .oc-content)
   ========================================================= */
/* 見出しデザイン（h2 > h3 > h4 の順で主張を弱く） */
.oc-content h2 {
    background: var(--oc-band);
    color: var(--oc-on-band);
    border-left: none;
    padding: 10px 14px;
    margin: 28px 0 24px;
    border-radius: 0;
    line-height: 1.3;
    font-size: 22px;
}
.oc-content h2 a {
    color: var(--oc-on-band);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.55);
}

/* h3: 黒い下線（枠・背景なし） */
.oc-content h3 {
    background: transparent;
    color: var(--oc-text);
    border-left: none;
    border-bottom: 2px solid rgba(0, 0, 0, 0.85);
    padding: 0 0 6px;
    margin: 22px 0 12px;
    border-radius: 0;
    line-height: 1.35;
    font-size: 18px;
}
.oc-content h3 a {
    color: var(--oc-text);
    text-decoration: underline;
}

/* h4: さらに控えめ（左線＋下線のみ、背景なし） */
.oc-content h4 {
    background: transparent;
    color: var(--oc-text);
    border-left: 3px solid rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    padding: 6px 0 6px 10px;
    margin: 18px 0 8px;
    border-radius: 0;
    line-height: 1.4;
    font-size: 15px;
}
.oc-content h4 a {
    color: var(--oc-text);
    text-decoration: underline;
}

/* h5: 左の縦線のみ（最小限の主張） */
.oc-content h5 {
    background: transparent;
    color: var(--oc-text);
    border-left: 3px solid rgba(0, 0, 0, 0.35);
    border-bottom: none;
    padding: 4px 0 4px 10px;
    margin: 16px 0 6px;
    border-radius: 0;
    line-height: 1.45;
    font-size: 14px;
}
.oc-content h5 a {
    color: var(--oc-text);
    text-decoration: underline;
}
