@charset "UTF-8";

/* ==========================================================================
   Variables & Common
   ========================================================================== */
:root {
    --primary-darkCyan: #037388;
    --accent-orange: #f39800;
    --accent-red: #FC5F00;
}

body.menu-open { overflow: hidden; }

.breadcrumb { padding: 15px 20px; font-size: 1.2rem; color: #666; margin-top: 100px; }
.breadcrumb__inner { max-width: 1150px; margin: 0 auto; }
.breadcrumb a { color: var(--primary-darkCyan); text-decoration: none; }
.breadcrumb a::after { content: ">"; margin: 0 10px; color: #ccc; display: inline-block; }

/* PC/SP 表示切り替え */
.sp-only { display: none; }
.pc-only { display: block; }

/* ==========================================================================
   Header & Mobile Menu
   ========================================================================== */
.header { z-index: 9998 !important; }
.header__inner { z-index: 9999 !important; }
.header__nav-btn { position: absolute !important; top: 0; right: 0; z-index: 10005 !important; }

/* 💡 プログラムが出す "aria-expanded='true'" の合図に反応してバツ印にする */
.header__nav-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(13px) rotate(45deg); }
.header__nav-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__nav-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-14px) rotate(-45deg); }

/* 💡 aria-hidden="false" の時に白いメニュー画面を右からスライドインさせる */
.header__nav-inner { position: fixed; top: 0; right: -100%; width: 100%; height: 100vh; background: #fff; display: flex; flex-direction: column; justify-content: flex-start; align-items: center; transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1); z-index: 10000; overflow-y: auto; padding: 80px 20px 40px; }
.header__nav-inner[aria-hidden="false"] { right: 0; }

/* ==========================================================================
   Main Title Area
   ========================================================================== */
.case-main-title { width: 90%; max-width: 1150px; margin: 20px auto 0; padding: 0 0 20px 0; border-bottom: 1px solid #c3c3c3; display: flex; justify-content: space-between; align-items: flex-end; box-sizing: border-box; }
.case-main-title__heading { font-size: 28px; font-weight: bold; color: #333; margin: 0; line-height: 1.3; }
.case-main-title__link { display: flex; align-items: center; text-decoration: none; color: #333; font-size: 14px; font-weight: bold; transition: opacity 0.3s ease; padding-bottom: 5px; }
.case-main-title__link:hover { opacity: 0.7; }
.case-main-title__link i { margin-right: 8px; display: inline-flex; align-items: center; }
.case-main-title__link img { width: 16px; height: auto; }

/* ==========================================================================
   Layout & Container
   ========================================================================== */
.case-detail__inner { max-width: 1200px; margin: 0 auto; padding: 50px 20px; }
.case-detail__layout-container { display: flex; justify-content: space-between; align-items: flex-start; gap:40px; }
.case-detail__main-content { width: 773px; flex-shrink: 0; }
.case-detail__sidebar { flex: 1; position: sticky; top: 120px; }

/* ==========================================================================
   Content Styles
   ========================================================================== */
.case-detail__main-title { font-size: 2.8rem; font-weight: bold; border-bottom: none; margin-bottom: 15px; line-height: 1.4; }
.case-detail__section-title { font-size: 2.6rem; font-weight: bold; margin-bottom: 25px; padding-bottom: 10px; border-bottom: 1px solid var(--primary-darkCyan); }
.case-detail__section { margin-bottom: 60px; }

.case-detail__image { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; display: flex; align-items: center; justify-content: center; margin-bottom: 30px; }
.case-detail__image img { width: 100%; height: 100%; object-fit: cover; object-position: center; max-width: none; }

/* 実績数値ボックス */
.case-detail__stats { padding: 0px 10px; border-radius: 12px; }
.case-detail__stat-item { display: flex; flex-direction: column; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid #d5dfe5; margin: 0; gap: 36px; }
.case-detail__stat-label { align-self: flex-start; display: block; font-size: 2rem; color: #666; font-weight: bold; line-height: 1.0; margin-bottom: 0; }
.case-detail__stat-value { align-self: flex-end; font-size: 3rem; font-weight: bold; color: #333; line-height: 1; text-align: right; min-height: 2.6rem; margin-top: 0; }
.case-detail__stat-value--accent { color: var(--accent-red); }
.case-detail__unit { font-size: 0.6em; font-weight: normal; margin-left: 2px; display: inline-block; }

/* 物件スペックテーブル */
.case-detail__table { width: 100%; border-collapse: collapse; margin-bottom: 40px; background: #fff; }
.case-detail__table th { width: 25%; background: #f9f9f9; text-align: left; padding: 20px; font-weight: bold; border: 1px solid #e0e0e0; font-size: 1.5rem; color: #333; }
.case-detail__table td { width: 75%; padding: 20px; border: 1px solid #e0e0e0; font-size: 1.6rem; line-height: 1.8; color: #444; }

/* 売却ストーリー（経緯） */
.case-detail__story-wrapper { display: flex; flex-direction: column; gap: 10px; }
.case-detail__story-box { border: 1px solid #e0e0e0; padding: 30px; border-radius: 8px; background: #fff; }
.case-detail__story-meta { font-size: 1.5rem; font-weight: bold; color: var(--primary-darkCyan); margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px dashed #ccc; }
.case-detail__box-title { margin-bottom: 16px; font-size: 1.8rem; font-weight: bold; }
.case-detail__box-text { font-size: 1.6rem; line-height: 1.8; color: #333; }

/* ==========================================================================
   Interview Content (WP The Content)
   ========================================================================== */
.case-detail__article-content { line-height: 2; color: #333; font-size: 1.6rem; }
.case-detail__article-content h3 { font-size: 2.2rem; margin: 40px 0 20px; padding: 10px 15px; border-left: 6px solid var(--accent-orange); background: #fcfcfc; }
body .case-detail .case-detail__layout-container .case-detail__article-content h4 { display: block !important; font-size: 1.8rem !important; margin: 30px 0 15px !important; font-weight: bold !important; color: var(--primary-darkCyan) !important; padding-bottom: 10px !important; border-bottom: none !important; }
.case-detail__article-content p { margin-bottom: 25px; }
.case-detail__article-content .wp-caption { width: 100%; margin: 0 auto !important; max-width: 100% !important; text-align: center; }
.case-detail__article-content img { height: auto !important; max-width: 100%; display: block; margin: 0 auto; }
.case-detail__article-content .wp-caption-text { font-size: 1.3rem; color: #777; text-align: center; padding: 10px; margin-top: -10px; }

/* ==========================================================================
   CTA Area (記事下のCVボタン)
   ========================================================================== */
.case-detail__cta-area { text-align: center; padding: 40px 60px; border-radius: 12px; margin: 60px 0; }
.case-detail__cta-area .header__btns { display: flex; flex-direction: row; justify-content: center; gap: 20px; width: 100%; max-width: 800px; margin: 0 auto; background: transparent; padding: 0; position: static; }
.case-detail__cta-area .cv-btn { flex: 1; width: 100%; }
.case-detail__cta-area .cv-btn__click-area { width: 100%; box-sizing: border-box; text-align: center; justify-content: center; display: flex; padding: 15px 0px; font-size: 16px; }
.case-detail__cta-area .cv-btn__text { font-size: 1.2em; }
.case-detail__cta-area .cv-btn__click-area span { font-size: 1.3rem !important; padding: 4px 8px !important; }

/* ==========================================================================
   Sidebar Bottom (サイドバー下部)
   ========================================================================== */
.case-detail__sidebar-bottom { margin-top: 40px; width: 100%; }
.sidebar-banners { display: flex; flex-direction: column; gap: 20px; margin: 70px 0 20px 0; padding: 5px; }
.sidebar-banner { display: block; border-radius: 8px; overflow: hidden; box-shadow: 0 3px 10px rgba(0,0,0,0.08); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.sidebar-banner:hover { transform: translateY(-4px); box-shadow: 0 6px 15px rgba(0,0,0,0.15); opacity: 0.95; }
.sidebar-banner img { width: 100%; height: auto; display: block; }
.sidebar-links { padding: 0; margin: 0; }
.sidebar-links__title { font-size: 1.6rem; font-weight: bold; color: #333; margin-bottom: 10px; }
.sidebar-links__list { list-style: none; padding: 0; margin: 0; }
.sidebar-links__list li { margin-bottom: 12px; }
.sidebar-links__list li:last-child { margin-bottom: 0; }
.sidebar-links__list a { display: block; padding: 15px 35px 15px 15px; background: #fff; border: 1px solid #e0e0e0; border-radius: 6px; font-size: 1.3rem; color: #333; text-decoration: none; position: relative; transition: all 0.3s ease; box-shadow: 0 2px 4px rgba(0,0,0,0.02); line-height: 1.4; }
.sidebar-links__list a::after { content: ""; position: absolute; right: 15px; top: 50%; width: 7px; height: 7px; border-top: 2px solid var(--primary-darkCyan); border-right: 2px solid var(--primary-darkCyan); transform: translateY(-50%) rotate(45deg); transition: right 0.3s ease; }
.sidebar-links__list a:hover { border-color: var(--primary-darkCyan); color: var(--primary-darkCyan); box-shadow: 0 4px 8px rgba(0,0,0,0.08); transform: translateY(-2px); }
.sidebar-links__list a:hover::after { right: 10px; }

/* ==========================================================================
   Related Cases (関連記事エリア)
   ========================================================================== */
.section-title-wrap { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 25px; border-bottom: 1px solid var(--primary-darkCyan); padding-bottom: 10px; }
.section-title-wrap .case-detail__section-title { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.btn-more-side { display: inline-flex; align-items: center; font-size: 1.3rem; font-weight: bold; color: var(--primary-darkCyan); text-decoration: none; padding: 6px 18px; border: 1px solid var(--primary-darkCyan); border-radius: 30px; transition: all 0.3s ease; white-space: nowrap; }
.btn-more-side:hover { background-color: var(--primary-darkCyan); color: #fff; transform: translateY(-2px); }
.btn-more-side span { margin-left: 6px; font-size: 1.1em; }
.btn-more-bottom { display: none; }

.grid-style { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 30px; }
.case-item { border: 1px solid #e0e0e0; background: #fff; border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: 0.3s; }
.case-item:hover { transform: translateY(-2px); border-color: var(--primary-darkCyan); opacity: .8;}
.case-item__thumb { width: 100%; height: 180px; overflow: hidden; flex-shrink: 0; }
.case-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.case-item__body { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.case-item__title { font-size: 1.6rem; font-weight: bold; margin: 6px 0; color: #333; line-height: 1.5; min-height: 1.5em; }
.case-item__info { border-top: 1px solid #eee; margin-top: auto; padding-top: 15px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.btn-detail { background-color: #fff; color: var(--primary-darkCyan); border-radius: 45px; font-size: 1.4rem; font-weight: bold; white-space: nowrap; flex-shrink: 0; text-align: center; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }

/* ==========================================================================
   SP専用：画面下部追従ボタン (Default Hide)
   ========================================================================== */
.sp-sticky-cv { display: none; }

/* ==========================================================================
   Responsive (1200px / 1024px / 768px)
   ========================================================================== */
@media screen and (max-width: 1200px) {
    .case-main-title { padding: 0 0 35px 0; margin: 25px auto 0 auto; }
}

@media screen and (max-width: 1024px) {
    .header__gnav { flex-direction: column; margin-right: 0; margin-bottom: 30px; width: 100%; max-width: 400px; }
    .header__gnav__item a { display: block; padding: 15px; font-size: 1.8rem; }
    
    /* Layout 1 Column */
    .case-detail__layout-container { flex-direction: column; gap: 20px; }
    .case-detail__main-content { width: 100%; }
    .pc-only { display: none !important; }
    .sp-only { display: block !important; }
    .case-detail__stats { margin: 0 0 40px 0; }
    .grid-style { grid-template-columns: repeat(2, 1fr); }
    
    /* タブレット時のボタン類縦並び */
    .header__btns { flex-direction: column; width: 100%; gap: 15px; }
    .cv-btn { width: 100%; }
}

@media (max-width: 768px) {
    .breadcrumb { margin-top: 60px; padding: 10px 15px; }
    .case-detail__main-title { font-size: 1.8rem; }
    .case-detail__section-title { font-size: 2rem; }
    .case-detail__stat-item { gap: 18px; }
    .case-detail__stat-label { font-size: 1.6rem; }
    
    .case-main-title { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin: 10px auto 20px; padding: 0 0 15px 0; width: 92%; }
    .case-main-title__heading { font-size: 20px; order: 1; }
    .case-main-title__link { order: 2; font-size: 13px; padding-bottom: 0; color: var(--primary-darkCyan); }
    .case-main-title__link img { width: 14px; margin-right: 5px; }
    
    .case-detail__inner { padding: 0px 15px; }
    .case-detail__table th { width: 35%; font-size: 1.4rem; padding: 10px; }
    .case-detail__table td { font-size: 1.4rem; padding: 10px; }
    .case-detail__story-box { padding: 20px; }
    
    /* CTA Area (SP: 追従させず、通常配置で縦並び) */
    .case-detail__cta-area { padding: 30px 15px; margin: 30px auto; }
    .case-detail__cta-area .header__btns { position: static !important; flex-direction: column !important; gap: 15px; background: transparent !important; padding: 0 !important; display: flex !important; box-shadow: none; }

    /* Related Cases */
    .btn-more-side { display: none; }
    .btn-more-bottom { display: block; width: 100%; text-align: center; margin-top: 30px; padding: 18px; border: 2px solid var(--primary-darkCyan); color: var(--primary-darkCyan); border-radius: 8px; font-weight: bold; text-decoration: none; font-size: 1.6rem; }
    .grid-style { grid-template-columns: 1fr; }
    
    /* ==========================================================================
       SP専用：画面下部の追従バー（body直下の .header__btns のみ狙い撃ち）
       ========================================================================== */
    body > .header__btns { display: flex; flex-direction: row; width: 100%; padding: 10px; background: rgba(250, 248, 240, 0.95); position: fixed; left: 0; bottom: 0; z-index: 9999; box-shadow: 0 -2px 10px rgba(0,0,0,0.15); gap: 10px; margin: 0; }
    body > .header__btns .cv-btn { width: 50%; }
    body > .header__btns .cv-btn__text { font-size: 1rem; margin-bottom: 2px; }
    body > .header__btns .cv-btn__click-area { font-size: 1.3rem; padding: 10px 5px; }
    body { padding-bottom: 80px !important; /* 追従ボタン用に余白を確保 */ }
    /* メニュー展開時は画面下部の追従ボタンを一時的に非表示にする */
    body.menu-open > .header__btns,
    body:has(.header__nav-btn[aria-expanded="true"]) > .header__btns {
        display: none !important;
    }
}