/* ================================================================
 * page-hotel-child.css
 * ロングテール固定ページ (page-hotel-child.php) 専用スタイル
 * Prefix: oc-phc-*
 * ================================================================ */

/* ---- Main container ---- */
.oc-phc-main {
    padding-top: 0 !important;
    overflow: visible !important; /* sticky サイドバーのために必須 */
}

/* ================================================================
 * Hero
 * 背景: グラデーション + --hero-bg（エリア画像/アイキャッチ）の二層構造
 * ================================================================ */
.oc-phc-hero {
    position: relative;
    overflow: hidden;
    padding: 6px 16px 28px;
    background-color: var(--oc-paper);
    background-image:
        linear-gradient(180deg, rgba(255,255,255,0.86) 0%, rgba(210,235,229,0.92) 100%),
        var(--hero-bg, none);
    background-size: auto, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
}
.oc-phc-hero--sky {
    background-image:
        linear-gradient(180deg, rgba(255,255,255,0.86) 0%, rgba(210,232,250,0.92) 100%),
        var(--hero-bg, none);
}
.oc-phc-hero--coral {
    background-image:
        linear-gradient(180deg, rgba(255,255,255,0.86) 0%, rgba(255,228,220,0.92) 100%),
        var(--hero-bg, none);
}
.oc-phc-hero--accent {
    background-image:
        linear-gradient(180deg, rgba(255,255,255,0.86) 0%, rgba(255,244,220,0.92) 100%),
        var(--hero-bg, none);
}

/* 大型装飾SVG（背景） */
.oc-phc-hero__deco {
    position: absolute;
    right: -50px; top: -30px;
    width: 180px; height: 180px;
    opacity: .1;
    color: var(--oc-primary-500);
    pointer-events: none;
}
.oc-phc-hero--sky    .oc-phc-hero__deco { color: var(--oc-sky-500); }
.oc-phc-hero--coral  .oc-phc-hero__deco { color: var(--oc-coral-500); }
.oc-phc-hero--accent .oc-phc-hero__deco { color: var(--oc-accent-500); }

.oc-phc-hero__inner {
    position: relative;
}

.oc-phc-hero__h1 {
    font-family: var(--oc-font-display);
    font-size: 24px; line-height: 1.45;
    margin-top: 10px; letter-spacing: .02em;
    color: var(--oc-ink-900);
}

.oc-phc-hero__meta {
    margin-top: 14px; display: flex; gap: 12px; flex-wrap: wrap;
    font-size: 12px; color: var(--oc-ink-600);
}
.oc-phc-hero__meta i { margin-right: 3px; }

/* ================================================================
 * Body layout — SP: single column
 * ================================================================ */
.oc-phc-body {
    padding: 20px 16px 48px;
    overflow: visible; /* sticky に必要 */
}
.oc-phc-aside {
    display: none;
}

/* ================================================================
 * Post content — heading / list / FAQ overrides
 * Scope: #main_content で SWELL に勝てる詳細度を確保
 * ================================================================ */

/* h2 */
#main_content .oc-phc-content .post_content h2 {
    font-family: var(--oc-font-display);
    font-size: 20px; font-weight: 700; line-height: 1.5;
    color: var(--oc-ink-900);
    margin: 2.4em 0 0.7em;
    padding: 13px 16px;
    background: linear-gradient(90deg, var(--oc-primary-50) 0%, rgba(238,246,244,0) 100%);
    border-left: 5px solid var(--oc-primary-500);
    border-top: none; border-right: none; border-bottom: none;
    border-radius: 0 4px 4px 0;
}

/* h3 — position:static で SWELL の ::before position:absolute を打ち消す */
#main_content .oc-phc-content .post_content h3 {
    font-family: var(--oc-font-display);
    font-size: 17px; font-weight: 700; line-height: 1.5;
    color: var(--oc-primary-700);
    margin: 1.8em 0 0.5em;
    display: flex; align-items: flex-start; gap: 8px;
    padding: 0 0 8px;
    border-bottom: 1.5px solid var(--oc-primary-100);
    border-top: none; border-right: none; border-left: none;
    background: none;
}
#main_content .oc-phc-content .post_content h3::before {
    content: "";
    display: inline-block;
    position: static;
    bottom: auto; left: auto; z-index: auto;
    width: 9px; height: 9px; min-width: 9px;
    border-radius: 50%;
    background: var(--oc-accent-500);
    margin-top: 6px; flex-shrink: 0;
}

/* FAQ — details / summary */
#main_content .oc-phc-content .post_content details {
    background: var(--oc-white);
    border: 1px solid var(--oc-ink-200);
    border-radius: 12px;
    padding: 14px;
    margin-top: 10px;
}
#main_content .oc-phc-content .post_content details + details {
    margin-top: 8px;
}
#main_content .oc-phc-content .post_content summary {
    font-weight: 700; font-size: 14px;
    cursor: pointer;
    display: flex; gap: 10px; align-items: center;
    list-style: none;
}
#main_content .oc-phc-content .post_content summary::-webkit-details-marker { display: none; }
#main_content .oc-phc-content .post_content summary::before {
    content: "Q";
    display: grid; place-items: center;
    width: 24px; height: 24px; flex-shrink: 0;
    border-radius: 50%;
    background: var(--oc-primary-500); color: #fff;
    font-size: 12px; font-family: var(--oc-font-en); font-weight: 700;
}
#main_content .oc-phc-content .post_content details > p {
    margin-top: 10px; font-size: 13px;
    color: var(--oc-ink-700); line-height: 1.85;
    padding-left: 34px;
}

/* oc-list-pin — ピン箇条書き */
#main_content .oc-phc-content .post_content ul.oc-list-pin {
    padding-left: 0; list-style: none; margin: 16px 0;
}
#main_content .oc-phc-content .post_content ul.oc-list-pin li {
    position: relative; padding: 8px 0 8px 20px;
    border-bottom: 1px dashed var(--oc-ink-200);
    font-size: 14px; line-height: 1.7;
}
#main_content .oc-phc-content .post_content ul.oc-list-pin li::before {
    content: "›";
    position: absolute; left: 0;
    color: var(--oc-primary-500); font-weight: 700; font-size: 16px;
}

/* ================================================================
 * Related features shortcode (.oyako-related-features-widget)
 * メインコンテンツ内での表示（本文下）
 * ================================================================ */
.oyako-related-features-widget {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid var(--oc-primary-100);
}

/* ================================================================
 * oc-phc-aside 内での oyako ウィジェット
 * oc-phc-widget と同じボックス装飾を付与し、サイズをコンパクトに
 * ================================================================ */
.oc-phc-aside .oyako-related-features-widget {
    /* oc-phc-widget 同等のボックス */
    background: var(--oc-white) !important;
    border: 1px solid var(--oc-ink-200) !important;
    border-radius: 14px !important;
    padding: 16px !important;
    font-size: 13px;
    line-height: 1.8;
    color: var(--oc-ink-700);
    /* メインコンテンツ用の余白・ボーダーをリセット */
    margin-top: 0 !important;
    padding-top: 16px !important;
}
/* タイトルをサイドバーサイズに */
.oc-phc-aside .oyako-related-features-widget .orf-main-title {
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 0 0 8px !important;
    background: none !important;
    border-left: none !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: 1.5px solid var(--oc-primary-100) !important;
    border-radius: 0 !important;
    margin-bottom: 10px !important;
    color: var(--oc-ink-700) !important;
}
.oc-phc-aside .orf-article-link  { padding: 10px 4px !important; }
.oc-phc-aside .orf-article-text  { font-size: 12px !important; }
.oc-phc-aside .orf-area-group    { font-size: 12px; }
.oc-phc-aside .orf-area-label.-summary { font-size: 12px !important; padding: 8px 4px !important; }

/* hotel-search-form の外枠をリセット（oc-phc-widget で包まれているため） */
.oc-phc-aside .hotel-search-form {
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: none !important;
    width: 100%;
    box-sizing: border-box;
}
/* サイドバー内の検索グリッドを単一カラムに強制 */
.oc-phc-aside .search-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-bottom: 10px !important;
}
.oc-phc-aside .search-group {
    width: 100% !important;
    margin-bottom: 0 !important;
}
.oc-phc-aside .search-group input,
.oc-phc-aside .search-group select {
    width: 100% !important;
    box-sizing: border-box !important;
    font-size: 13px !important;
    padding: 8px 10px !important;
}
.oc-phc-aside .search-group label {
    font-size: 11px;
    color: var(--oc-ink-500);
    margin-bottom: 4px;
}
.oc-phc-aside .search-buttons {
    flex-direction: column !important;
    gap: 8px !important;
    margin-top: 10px !important;
}
.oc-phc-aside .search-buttons .search-btn,
.oc-phc-aside .search-buttons .reset-btn {
    width: 100% !important;
    font-size: 13px !important;
    padding: 10px !important;
}

/* タイトル: 明示的に color 指定（SWELL の h2 スタイルが上書きする可能性があるため） */
.oyako-related-features-widget .orf-main-title {
    font-family: var(--oc-font-display) !important;
    font-size: 18px !important; font-weight: 700 !important;
    color: var(--oc-ink-900) !important;
    padding: 12px 14px !important;
    background: linear-gradient(90deg, var(--oc-primary-50), transparent) !important;
    border-left: 5px solid var(--oc-primary-500) !important;
    border-top: none !important; border-right: none !important; border-bottom: none !important;
    border-radius: 0 4px 4px 0 !important;
    margin-bottom: 16px !important;
}

/* SWELL の [class*="-heading"] スタイルを完全リセット */
.oyako-related-features-widget .orf-area-label.-heading {
    font-size: 11px !important; font-weight: 700 !important;
    color: var(--oc-ink-500) !important;
    margin: 20px 0 4px !important;
    padding: 2px 6px !important;
    border: none !important; border-left: none !important;
    background: none !important;
    box-shadow: none !important;
    letter-spacing: .04em !important;
}

/* リストアイテム間の空白 */
.oyako-related-features-widget .orf-article-list {
    list-style: none;
    padding: 0; margin: 0;
}
.oyako-related-features-widget .orf-article-item {
    border-bottom: 1px solid var(--oc-ink-200);
}
.oyako-related-features-widget .orf-article-item:last-child {
    border-bottom: none;
}
.oyako-related-features-widget .orf-article-link {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 8px;
    color: var(--oc-ink-700);
    text-decoration: none;
    transition: background .15s;
}
.oyako-related-features-widget .orf-article-link:hover {
    background: var(--oc-primary-50);
    color: var(--oc-primary-700);
}
.oyako-related-features-widget .orf-article-icon {
    width: 28px; height: 28px; flex-shrink: 0;
    background: var(--oc-primary-50); color: var(--oc-primary-600);
    border-radius: 50%; display: grid; place-items: center;
    font-size: 12px;
}
.oyako-related-features-widget .orf-article-text {
    flex: 1; font-size: 13px; line-height: 1.5;
}
.oyako-related-features-widget .orf-article-arrow {
    color: var(--oc-ink-300); font-size: 11px; flex-shrink: 0;
}

/* ================================================================
 * Sidebar widgets
 * ================================================================ */
.oc-phc-widget {
    background: var(--oc-white);
    border: 1px solid var(--oc-ink-200);
    border-radius: 14px;
    padding: 16px;
    font-size: 13px; line-height: 1.8;
    color: var(--oc-ink-700);
}
.oc-phc-widget--dark {
    background: var(--oc-primary-700); color: #fff; border-color: transparent;
}
.oc-phc-widget__title {
    font-family: var(--oc-font-display);
    font-size: 13px; font-weight: 700;
    color: var(--oc-ink-700);
    padding-bottom: 10px; margin-bottom: 10px;
    border-bottom: 1.5px solid var(--oc-primary-100);
}
.oc-phc-widget--dark .oc-phc-widget__title {
    color: #fff; border-color: rgba(255,255,255,.2);
}
.oc-phc-widget--dark p {
    font-size: 12px; opacity: .9; margin: 0;
}

/* ================================================================
 * Sidebar TOC list
 * ================================================================ */
.oc-phc-toc {
    padding: 0; list-style: none; margin: 0;
}
.oc-phc-toc__item {
    display: flex; gap: 10px; align-items: baseline;
    padding: 8px 0;
    border-bottom: 1px dashed var(--oc-ink-200);
}
.oc-phc-toc__item:last-child { border-bottom: none; }
.oc-phc-toc__num {
    font-family: var(--oc-font-en);
    color: var(--oc-primary-500); font-weight: 700; font-size: 13px;
    flex-shrink: 0;
}
.oc-phc-toc__link {
    font-size: 13px; color: var(--oc-ink-600);
    line-height: 1.5; text-decoration: none;
}
.oc-phc-toc__link:hover { color: var(--oc-primary-600); }

/* ================================================================
 * PC breakpoint (≥768px)
 * ================================================================ */
@media (min-width: 768px) {
    /* Hero */
    .oc-phc-hero {
        padding: 40px 32px 56px;
    }
    .oc-phc-hero__deco {
        right: -80px; top: -80px;
        width: 420px; height: 420px;
    }
    .oc-phc-hero__h1 {
        font-size: 44px;
        max-width: 900px;
    }
    .oc-phc-hero__meta { margin-top: 18px; gap: 14px; font-size: 13px; }

    /* 2カラム body */
    .oc-phc-body {
        max-width: 1200px;
        margin: 0 auto;
        padding: 44px 32px 80px;
        display: grid;
        grid-template-columns: 1fr 280px;
        gap: 48px;
        align-items: start;
    }
    .oc-phc-content {
        /* グリッド内でオーバーフロー防止 */
        min-width: 0;
    }
    /* sticky サイドバー: ビューポートに収め独立スクロール */
    .oc-phc-aside {
        display: flex;
        flex-direction: column; gap: 16px;
        position: sticky;
        top: 88px;
        max-height: calc(100vh - 108px);
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-width: thin;
        scrollbar-color: var(--oc-ink-200) transparent;
    }
    .oc-phc-aside::-webkit-scrollbar { width: 4px; }
    .oc-phc-aside::-webkit-scrollbar-track { background: transparent; }
    .oc-phc-aside::-webkit-scrollbar-thumb { background: var(--oc-ink-200); border-radius: 4px; }
    /* .oc-phc-aside__sticky はレイアウト wrapper のみ */
    .oc-phc-aside__sticky {
        display: contents;
    }

    /* PC heading size */
    #main_content .oc-phc-content .post_content h2 {
        font-size: 26px;
    }
    #main_content .oc-phc-content .post_content h3 {
        font-size: 20px;
    }

    /* PC FAQ */
    #main_content .oc-phc-content .post_content summary {
        font-size: 16px; gap: 12px;
    }
    #main_content .oc-phc-content .post_content summary::before {
        width: 28px; height: 28px; font-size: 13px;
    }
    #main_content .oc-phc-content .post_content details > p {
        font-size: 14px; padding-left: 40px;
    }

    /* Related features: PC で大きいタイトル */
    .oyako-related-features-widget .orf-main-title {
        font-size: 22px !important;
    }
    .oyako-related-features-widget .orf-article-link {
        padding: 12px 8px;
    }
    .oyako-related-features-widget .orf-article-text {
        font-size: 14px;
    }
}

/* ================================================================
 * Sidebar feature list (direct PHP output inside .oc-phc-widget)
 * ================================================================ */
.oc-phc-widget .orf-article-list {
    list-style: none; padding: 0; margin: 0;
}
.oc-phc-widget .orf-article-item {
    border-bottom: 1px solid var(--oc-ink-200);
}
.oc-phc-widget .orf-article-item:last-child {
    border-bottom: none;
}
.oc-phc-widget .orf-article-link {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 4px;
    color: var(--oc-ink-700);
    text-decoration: none;
    font-size: 12px; line-height: 1.5;
    transition: background .15s;
}
.oc-phc-widget .orf-article-link:hover {
    background: var(--oc-primary-50);
    color: var(--oc-primary-700);
}
.oc-phc-widget .orf-article-icon {
    width: 24px; height: 24px; flex-shrink: 0;
    background: var(--oc-primary-50); color: var(--oc-primary-600);
    border-radius: 50%; display: grid; place-items: center;
    font-size: 11px;
}

/* ---- サイドバー共通 CTA ボタン（philosophy / policy 等） ---- */
.oc-phil-contact-desc {
    font-size: 12px;
    line-height: 1.7;
    color: var(--oc-ink-500);
    margin: 0 0 10px;
}

.oc-phil-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--oc-primary-600);
    color: #fff !important;
    border-radius: 8px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 700;
    transition: background .15s;
}

.oc-phil-cta-btn:hover {
    background: var(--oc-primary-700);
}
