@charset "UTF-8";

/* ==========================================================================
   Variables & Common Layout
   ========================================================================== */
:root { --primary-darkCyan: #037388; --primary-green: #007737; --accent-orange: #f39800; --accent-red: #FC5F00; --text-gray: #666; --light-bg: #f4f7f9; --border: #e0e0e0; --header-height: 100px; }
body.menu-open { overflow: hidden; }
.breadcrumb { padding: 15px 20px; font-size: 1.2rem; color: #666; margin-top: var(--header-height); }
.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; }
.container { max-width: 1080px; margin: 0 auto; padding: 40px 20px 80px; }

/* ==========================================================================
   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; }

/* ==========================================================================
   Case List Page UI (Filter, Header, Toggle)
   ========================================================================== */
.filter-section { background: var(--light-bg); border: 1px solid var(--border); padding: 20px 30px; margin-bottom: 30px; border-radius: 8px; }
.filter-grid { display: flex !important; gap: 30px !important; align-items: center; }
.filter-item { display: flex; align-items: center; gap: 15px; flex: 1; margin-bottom: 0 !important; }
.filter-item label { font-weight: bold; font-size: 1.4rem; color: var(--primary-darkCyan); white-space: nowrap; display: block; width: 50px; flex-shrink: 0; }
.filter-item select { width: 100%; padding: 12px 35px 12px 20px; border: 1px solid #ccc; border-radius: 4px; background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><path fill='%23037388' d='M7 10l5 5 5-5z'/></svg>") no-repeat calc(100% - 15px) center; background-size: 18px; font-size: 1.5rem; cursor: pointer; appearance: none; -webkit-appearance: none; }

.list-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; border-bottom: 2px solid var(--primary-darkCyan); padding-bottom: 10px; }
.count-info { font-size: 1.6rem; font-weight: bold; }
.count-info span { color: var(--primary-darkCyan); font-size: 2.2rem; }
.view-toggle { display: flex; gap: 5px; }
.view-toggle button { background: #fff; border: 1px solid var(--primary-darkCyan); color: var(--primary-darkCyan); padding: 8px 18px; cursor: pointer; font-size: 14px; transition: 0.2s; }
.view-toggle button.active { background: var(--primary-darkCyan); color: #fff; }

/* ==========================================================================
   Case Items (Cards & List UI) ベース設定
   ========================================================================== */
.case-wrapper { transition: 0.3s; }
.case-item { border: 1px solid var(--border); background: #fff; border-radius: 4px; overflow: hidden; transition: 0.3s; display: flex; flex-direction: column; }
.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__body-left { display: flex; flex-direction: column; flex-grow: 1; }
.case-item__cat { color: var(--text-gray); font-size: 1.6rem; margin-bottom: 5px; }
.case-item__title { font-size: 1.9rem; font-weight: bold; margin: 6px 0; color: #333; line-height: 1.5; min-height: 1.5em; }
.case-item__sub-info { font-size: 1.7rem; color: var(--text-gray); margin-bottom: 10px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.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; }
.case-item__meta { color: var(--text-gray); font-weight: bold; font-size: 1.4rem; flex-grow: 1; white-space: nowrap; flex-shrink: 0; }
.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; transition: .2s; }
.btn-detail:hover { text-decoration: none; filter: brightness(1.1); opacity: 0.9; transform: translateY(-3px);}
.material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24 }
.grid-style { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.related-cases__all-link { text-align: center; margin-top: 25px; }
.related-cases__all-link a { font-size: 1.3rem; color: #666; text-decoration: underline; }

/* ==========================================================================
   Pagination (ページネーション)
   ========================================================================== */
.pagination { margin: 60px 0; text-align: center; }
.pagination ul { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; padding: 0; list-style: none; }
.pagination .page-numbers { display: inline-flex; justify-content: center; align-items: center; min-width: 44px; height: 44px; padding: 0 10px; background: #fff; border: 1px solid var(--primary-darkCyan); color: var(--primary-darkCyan); font-size: 1.5rem; font-weight: bold; text-decoration: none; border-radius: 4px; transition: all 0.3s ease; }
.pagination a.page-numbers:hover { background: var(--primary-darkCyan); color: #fff; }
.pagination .current { background: var(--primary-darkCyan); color: #fff; pointer-events: none; }
.pagination .prev, .pagination .next { padding: 0 20px; }
.pagination .dots { border: none; background: transparent; color: #666; }

/* ==========================================================================
   SEOナビゲーションエリア（エリア・業態リンクの一覧）
   ========================================================================== */
.seo-navigation { margin: 30px auto; padding: 40px 20px; background: #f9f9f9; border-radius: 8px; border: 1px solid #eee; max-width: 1100px; }
.seo-navigation__title { font-weight: bold; font-size: 20px; margin-bottom: 20px; color: #333; border-left: 5px solid #005088; padding-left: 15px; }
.seo-navigation__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.seo-navigation__list { list-style: none; padding: 0; margin: 0; }
.seo-navigation__list li { margin-bottom: 10px; border-bottom: 1px dotted #ccc; }
.seo-navigation__list a { color: #0066cc; text-decoration: none; font-size: 15px; }
.seo-navigation__list a:hover { text-decoration: underline; }

/* 関連記事エリアの二重下線を防止パッチ */
.section-title-wrap .case-detail__section-title { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }

/* ==========================================================================
   絞り込み機能（JavaScript）連携用の修復パッチ
   ========================================================================== */
.case-wrapper .case-item[style*="display: block"] { display: flex; }
.case-wrapper .case-item[style*="display: none"] { display: none; }

/* ==========================================================================
   Responsive (1200px / 1024px / 768px)
   ========================================================================== */
@media screen and (min-width: 1200px) {
   .case-main-title { padding: 0 0 35px 0; margin: 25px auto 0 auto; }
}

@media screen and (min-width: 769px) {
   .case-wrapper.list-style { display: flex; flex-direction: column; gap: 15px; }
   .case-wrapper.list-style .case-item { display: flex; flex-direction: row; align-items: stretch; height: auto; min-height: 180px; }
   .case-wrapper.list-style .case-item__thumb { width: 280px; height: auto; flex-shrink: 0; }
   .case-wrapper.list-style .case-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
   .case-wrapper.list-style .case-item__body { flex: 1; display: flex; flex-direction: column; padding: 20px 25px; gap: 15px; justify-content: space-between; }
   .case-wrapper.list-style .case-item__body-left { display: flex; flex-direction: column; flex-grow: 1; justify-content: flex-start; }
   .case-wrapper.list-style .case-item__cat { margin: 0 0 5px 0; font-size: 1.6rem; }
   .case-wrapper.list-style .case-item__title { font-size: 1.8rem; margin: 0 0 10px 0; line-height: 1.4; }
   .case-wrapper.list-style .case-item__sub-info { font-size: 1.8rem; line-height: 1.6; margin-bottom: 0; }
   .case-wrapper.list-style .case-item__info { width: 100%; border-top: 1px dashed #ccc; border-left: none; padding-top: 15px; padding-left: 0; margin-top: auto; display: flex; flex-direction: row; justify-content: space-between; align-items: center; gap: 20px; }
   .case-wrapper.list-style .case-item__meta { font-size: 2rem; text-align: left; line-height: 1; }
   .case-wrapper.list-style .btn-detail { width: 220px; padding: 12px 0; font-size: 1.6rem; text-align: center; line-height: 1; }
}

@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; }
   .header__btns { flex-direction: column; width: 100%; gap: 15px; }
   .grid-style { grid-template-columns: repeat(2, 1fr); }
   
    /* PC/SP 表示切り替えのスマホ適用 */
   .pc-only { display: none !important; }
   .sp-only { display: block !important; }
}

@media (max-width: 768px) {
   :root { --header-height: 44px; }
   .breadcrumb { margin-top: 44px; padding: 10px 15px; }
   .container { padding: 10px 15px 0px 15px; }
   
   .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; }
   
   .filter-section { padding: 15px; }
   .filter-grid { display: flex !important; flex-direction: column !important; gap: 15px !important; }
   .filter-item { width: 100%; margin-bottom: 0; }
   
   .view-toggle { display: flex; }
   .view-toggle button { padding: 6px 12px; font-size: 12px; }
   .grid-style { grid-template-columns: 1fr; gap: 20px; }
   
   .pagination { margin: 40px 0; }
   .pagination .page-numbers { min-width: 36px; height: 36px; font-size: 1.3rem; padding: 0 8px; }
   .pagination .prev, .pagination .next { padding: 0 12px; font-size: 1.2rem; }
   
   .case-wrapper.list-style { display: flex; flex-direction: column; gap: 12px; }
   .case-wrapper.list-style .case-item { display: flex; flex-direction: row; height: 120px; }
   .case-wrapper.list-style .case-item__thumb { width: 110px; height: 100%; flex-shrink: 0; aspect-ratio: auto; }
   .case-wrapper.list-style .case-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
   .case-wrapper.list-style .case-item__body { flex: 1; display: flex; flex-direction: column; padding: 10px 8px 10px 12px; gap: 3px; justify-content: space-between; }
   .case-wrapper.list-style .case-item__body-left { display: flex; flex-direction: column; flex-grow: 0; }
   .case-wrapper.list-style .case-item__cat { font-size: 1.2rem; margin: 0; line-height: 1; }
   .case-wrapper.list-style .case-item__title { font-size: 1.2rem; margin: 3px 0; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: auto; padding: 0;}
   .case-wrapper.list-style .case-item__sub-info { font-size: 1.3rem; line-height: 1.6; margin-bottom: 0; color: #666; display: block; }
   .case-wrapper.list-style .case-item__info { display: flex; flex-direction: row; justify-content: space-between; align-items: center; margin-top: auto; border-top: none; padding-top: 5px; padding-left: 0; border-left: none; width: 100%; gap: 5px; }
   .case-wrapper.list-style .case-item__meta { font-size: 1.3rem; line-height: 1; margin: 0; }
   .case-wrapper.list-style .btn-detail { padding: 6px 10px; font-size: 1.4rem; width: auto; line-height: 1; margin-left: auto; }

   .seo-navigation__grid { display: block; }
   .seo-navigation__grid > div:first-child { margin-bottom: 40px; }
}

._footerEnd { margin-bottom: 80px; }