/* Case Study Archive Styles - Based on Figma Design */

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Zen+Kaku+Gothic+Antique:wght@400;500;700;900&display=swap');

/* Main Container */
.case-archive {
    width: 100%;
    background: #f6f6f6;
}

/* Hero Section */
.case-hero-section {
    position: relative;
    width: 100%;
    height: 60vh;
    margin-top: -96px;
    overflow: hidden;
    background: #f6f6f6;
}

/* Hero Mask Group */
.case-hero-mask-group {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.case-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/kv/case.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
	 display: flex;    
	align-items: center; 
	justify-content: center; 
}

.case-hero-center-text {  
	position: relative; 
	z-index: 2;
	text-align: center;
	 color: #ffffff;                                                                                                                                                                                       │ │
      font-family: 'Zen Kaku Gothic Antique', sans-serif;                                                                                                                                                   │ │
    font-size: 48px;                                                                                                                                                                                      │ │
    font-weight: 700;     
}

/* Hero Content - モバイルのみ */
.case-hero-content {
    position: absolute;
    top: 50%;
    left: 120px;
    transform: translateY(-50%);
    z-index: 10;
}

 .case-hero-main {                                                                                                                                                                                         │ │
     color: #ffffff;                                                                                                                                                                                       │ │
      font-family: 'Zen Kaku Gothic Antique', sans-serif;                                                                                                                                                   │ │
    font-size: 48px;                                                                                                                                                                                      │ │
    font-weight: 700;                                                                                                                                                                                     │ │
    line-height: 1.4;                                                                                                                                                                                     │ │
      text-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);                                                                                                                                                          │ │
      margin: 0;                                                                                                                                                                                            │ │
 }  

.case-hero-title {
    font-family: 'Cinzel', serif;
    font-size: 64px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.08em;
    color: #ffffff;
    text-shadow: 0px 4px 4.7px rgba(0, 0, 0, 0.5), 0px 4px 10px rgba(0, 0, 0, 0.6);
    margin-bottom: 32px;
}


h2.case-hero-main {
	 font-family: 'Zen Kaku Gothic Antique', sans-serif !important;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.8;
    color: #ffffff !important;
}

.case-hero-text {
    font-family: 'Zen Kaku Gothic Antique', sans-serif;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.5;
    color: #ffffff;
    text-shadow: 0px 4px 4.7px rgba(0, 0, 0, 0.25), 0px 4px 10px rgba(0, 0, 0, 0.35);
    max-width: 600px;
}

.mobile-br {
    display: none;
}

/* PC/モバイル表示制御 */
.mobile-only {
    display: none;
}

.pc-only {
    display: block;
}

/* Case Text Section - PC版 */
.case-text-section {
    padding: 80px 0 60px;
    background: #f5f5f5;
}

.case-section-title {
    font-family: 'Cinzel', serif;
    font-size: 48px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.08em;
    color: #000000;
    margin-bottom: 32px;
}

.case-section-text {
    font-family: 'Zen Kaku Gothic Antique', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
    color: #000000;
    max-width: 100%;
}

/* Case Grid Section */
.case-grid-section {
    padding: 100px 0 120px;
    background: #f6f6f6;
}

.container {
    max-width: 100%;
    margin: 0;
    padding: 0 120px;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px 40px;
    margin-bottom: 100px;
}

.case-item {
    background: transparent;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.case-item:hover {
    opacity: 0.8;
}

.case-link {
    text-decoration: none;
    display: block;
}

.case-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    margin-bottom: 12px;
    background: #d0d0d0;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-image-placeholder {
    width: 100%;
    height: 100%;
    background: #d0d0d0;
}

.case-info {
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.case-title {
    font-family: 'Zen Kaku Gothic Antique', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #1B1B1B;
    line-height: 1.5;
    letter-spacing: 0.02em;
    flex: 1;
}

/* 間取りラベル */
.case-floor {
    font-family: 'Cinzel', serif;
    font-size: 14px;
    font-weight: 700;
    color: #1b1b1b;
    background: #ffffff;
    padding: 4px 12px;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

/* タグコンテナ */
.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 12px;
}

/* 個別タグ */
.case-tag {
    display: inline-block;
    background: #333333;
    color: #ffffff;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 0;
    letter-spacing: 0.02em;
}

/* Pagination */
.case-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.page-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    font-size: 16px;
    font-weight: 400;
    color: #1b1b1b;
    background: transparent;
    border: 1px solid #1b1b1b;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.page-number:hover {
    background: #c00707;
    color: #ffffff;
    border-color: #c00707;
}

.page-number.active {
    background: #1b1b1b;
    color: #ffffff;
    border-color: #1b1b1b;
}

/* モバイル・レスポンシブ */
@media (max-width: 768px) {
    /* PC/モバイル表示制御 */
    .mobile-only {
        display: block;
    }
    
    .pc-only {
        display: none;
    }
    
    /* Hero Section Mobile */
    .case-hero-section {
        height: 720px;
        margin-top: 0;
    }
    
  
    
    .case-hero-image {
        width: 100%;
        height: 100%;
        /* マスクを無効にして背景画像をそのまま表示 */
        mask-image: none;
        -webkit-mask-image: none;
    }
    
    .case-hero-content {
        left: 22px;
        right: 22px;
        top: 109px;
        transform: none;
    }
    
    .case-hero-title {
        font-size: 40px;
        margin-bottom: 76px;
    }
    
    .case-hero-text {
        font-size: 10px;
        font-weight: 900;
        line-height: 1.5;
        max-width: 295px;
    }
    
    .mobile-br {
        display: inline;
    }
    
    /* Grid Section Mobile */
    .case-grid-section {
        padding: 40px 0 60px;
    }
    
    .container {
        padding: 0 22px;
    }
    
    .case-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-bottom: 40px;
    }
    
    .case-item {
        background: transparent;
        transition: opacity 0.3s ease;
        cursor: pointer;
    }
    
    .case-image {
        position: relative;
        width: 100%;
        height: 120px;
        overflow: hidden;
        margin-bottom: 8px;
        background: #d0d0d0;
    }
    
    .case-info {
        padding: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 6px;
    }
    
    .case-title {
        font-family: 'Zen Kaku Gothic Antique', sans-serif;
        font-size: 9px;
        font-weight: 500;
        color: #1B1B1B;
        line-height: 1.3;
        letter-spacing: 0.02em;
        flex: 1;
        margin: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    /* 間取りラベル モバイル */
    .case-floor {
        font-family: 'Cinzel', serif;
        font-size: 8px;
        font-weight: 700;
        color: #1b1b1b;
        background: #ffffff;
        padding: 2px 4px;
        letter-spacing: 0.02em;
        flex-shrink: 0;
        min-width: 35px;
        text-align: center;
    }
    
    /* タグスタイル モバイル */
    .case-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 3px;
        margin-top: 6px;
    }
    
    .case-tag {
        font-size: 8px;
        padding: 2px 4px;
    }
    
    /* Pagination Mobile - デスクトップと同じデザイン */
    .case-pagination {
        gap: 16px;
    }
    
    .page-number {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: 'Cinzel', serif;
        font-size: 14px;
        font-weight: 400;
        color: #1b1b1b;
        background: transparent;
        border: 1px solid #1b1b1b;
        text-decoration: none;
        transition: all 0.3s ease;
        cursor: pointer;
    }
    
    .page-number.active {
        background: #1b1b1b;
        color: #ffffff;
        border-color: #1b1b1b;
    }
    
    .page-number:hover {
        background: #c00707;
        color: #ffffff;
        border-color: #c00707;
    }
}

/* タブレット用 */
@media (min-width: 769px) and (max-width: 1024px) {
    .case-hero-content {
        left: 60px;
    }
    
    .case-hero-title {
        font-size: 48px;
    }
    
    .case-hero-text {
        font-size: 14px;
    }
    
    .container {
        padding: 0 60px;
    }
    
    .case-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px 30px;
    }
    
    .case-image {
        height: 200px;
    }
}

/* Filter Section Styles - nouse/page.css.txtから正確に移植 */
.section01 {
    padding: 30px 0;
    background: #f6f6f6;
}

.section01 .inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    margin-bottom: 10px;
}

.section01 .inner:last-child {
    margin-bottom: 0;
}

.section01 .inner .tit {
    font-weight: 900;
    color: #333;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #333;
    margin-bottom: 1rem;
    text-align: left;
}

.cateList .item {
    display: inline-block;
    margin: 0 0.5rem 0.5rem 0;
    padding: 0.6em;
    line-height: 1;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: bold;
    background: transparent;
    border: 2px solid #333;
    position: relative;
    z-index: 1;
    transition: 0.3s;
}

.cateList .item::before {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    background: #333;
    transform-origin: 100% 50%;
    transform: scaleX(0);
    transition: transform ease 0.3s;
}

.cateList .item:hover {
    color: #fff;
}

.cateList .item:hover::before {
    transform-origin: 0% 50%;
    transform: scaleX(1);
}

@media (max-width: 768px) {
    .section01 {
        padding: 20px 0;
    }
    
    .section01 .inner {
        padding: 0 15px;
        margin-bottom: 8px;
    }
    
    .section01 .inner .tit {
        font-size: 18px;
    }
    
    .cateList .item {
        padding: 0.5em;
        font-size: 14px;
    }
}

/* 画面全体の背景をグレーに */
body {
    background: #f6f6f6 !important;
}

/* フィルター後のデザインCSS - 均等な幅に修正 */
.item_archive01 {
    padding: 0 80px;
}

.item_archive01 ul {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.item_archive01 ul li {
    flex: 0 0 calc(33.333% - 14px);
    margin: 0;
    margin-top: 20px;
    background: #fff;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

@media only screen and (max-width: 768px) {
    .item_archive01 ul li {
        flex: 0 0 100%;
        display: flex;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 20px;
    }
    
    .item_archive01 ul li img {
        width: 160px;
        height: 100px;
        object-fit: cover;
        flex-shrink: 0;
        border-radius: 4px;
    }
    
    .item_archive01 ul li .txt {
        flex: 1;
        padding: 8px 0;
    }
    
    .item_archive01 ul li .caseList__info {
        position: absolute;
        top: 5px;
        left: 5px;
        z-index: 10;
    }
}

@media only screen and (min-width: 769px) {
    .item_archive01 ul li:nth-child(1), .item_archive01 ul li:nth-child(2), .item_archive01 ul li:nth-child(3) {
        margin-top: 0;
    }
}

.item_archive01 ul li a {
    display: block;
    text-decoration: none;
}

.item_archive01 ul li a img {
    -o-object-fit: cover;
    object-fit: cover;
}

.item_archive01 ul li a:hover img {
    filter: alpha(opacity=100);
    -moz-opacity: 1;
    opacity: 1;
}

.item_archive01 ul li .txt {
    padding: 20px;
}

@media only screen and (max-width: 768px) {
    .item_archive01 ul li .txt {
        padding: 2rem;
    }
}

.item_archive01 ul li .txt .ttl {
    font-weight: 500;
    font-size: 20px;
    font-size: 2rem;
    line-height: 1.4;
    transition: 0.3s;
}

.item_archive01 ul li .txt .read {
    margin-top: 10px;
    font-size: 15px;
    font-size: 1.5rem;
    color: rgba(0, 0, 0, 0.54);
}

.item_archive01 ul li .txt .category_list {
    font-size: 0;
}

.item_archive01 ul li .txt .category_list .item {
    line-height: 1;
    display: inline-block;
    margin-right: 5px;
    margin-top: 5px;
    font-size: 12px;
    font-size: 1.2rem;
    background: #414141;
    padding: 5px 10px;
    color: #fff;
    font-weight: 500;
}

@media only screen and (max-width: 768px) {
    .item_archive01 ul li .txt .category_list .item {
        font-size: 10px;
    }
}

@media only screen and (min-width: 769px) {
    .item_archive01 ul li:hover {
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.08);
    }
    .item_archive01 ul li:hover .ttl {
        color: #e61725;
    }
}

/* タイトルスタイル - 部位別事例紹介等 */
.sub_ttl {
    font-family: 'Zen Kaku Gothic Antique', sans-serif;
    font-size: 36px;
    font-weight: 900;
    color: #1b1b1b;
    text-align: center;
    margin: 40px 0;
}

@media (max-width: 768px) {
    .sub_ttl {
        font-size: 28px;
        margin: 30px 0;
    }
}

/* Case情報ラベル */
.caseList a {
    position: relative;
}

.caseList__info {
    z-index: 10;
    position: absolute;
    top: 5px;
    left: 0;
    background-color: rgba(230,23,37,0.8);
    padding: 10px 20px;
    text-align: center;
    border-top-left-radius: 0;
    -webkit-border-top-left-radius: 0;
    -moz-border-radius-topleft: 0;
    border-top-right-radius: 12px;
    -webkit-border-top-right-radius: 12px;
    -moz-border-radius-topright: 12px;
    border-bottom-left-radius: 0;
    -webkit-border-bottom-left-radius: 0;
    -moz-border-radius-bottomleft: 0;
    border-bottom-right-radius: 12px;
    -webkit-border-bottom-right-radius: 12px;
    -moz-border-radius-bottomright: 12px;
}

.caseList__info__icon {
    margin: 0 auto;
    padding: 5px 10px 5px;
    min-width: 85px;
    border-radius: 12px;
    background-color: #FFF;
    color: #e61725;
    font-weight: bold;
    font-size: 14px;
    line-height: 1;
}

.caseList__info__date {
    margin: 0 0 0 5px;
    color: #000;
    font-weight: bold;
    font-size: 12px;
    line-height: 1.333;
}

.caseList__info__date-month {
    font-size: 157.142%;
    line-height: 1;
}

@media only screen and (max-width: 768px) {
    .caseList__info {
        top: 3px;
        padding: 10px 5px;
    }
    .caseList__info__icon {
        margin: 0 5px 0 0;
    }
}

/* ページネーションスタイル */
.pager {
    display: flex !important;
    justify-content: center !important;
    margin: 40px 0 !important;
    font-family: 'Zen Kaku Gothic Antique', sans-serif !important;
}

.pager ul {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.pager li {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.pager .nth-box {
    display: flex !important;
    gap: 10px !important;
}

.pager a, 
.pager span {
    display: inline-block !important;
    padding: 12px 20px !important;
    border: 2px solid #333 !important;
    background: #fff !important;
    color: #333 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    min-width: 50px !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
}

.pager a:hover {
    background: #333;
    color: #fff;
}

.pager .current {
    background: #333 !important;
    color: #fff !important;
}

/* 数字部分の特別なスタイル */
.pager .nth-box a,
.pager .nth-box span {
    min-width: 40px !important;
    padding: 10px 12px !important;
    font-weight: 700 !important;
}

/* 最初・最後ボタンの調整 */
.pager .first a,
.pager .first span,
.pager .last a, 
.pager .last span {
    min-width: 60px !important;
    font-size: 14px !important;
}

.pager .first, .pager .last {
    min-width: 80px;
}

@media (max-width: 768px) {
    .pager {
        gap: 8px;
        margin: 30px 0;
    }
    
    .pager a, .pager span {
        padding: 10px 16px;
        font-size: 14px;
        min-width: 40px;
    }
    
    .pager .first, .pager .last {
        min-width: 60px;
    }
}