@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/



@charset "UTF-8";

/*------------------------------------- */

/* =============================================
 * 共通設定：不要な情報の非表示
 * ============================================= */
.single-works .c-postTitle__date,
.single-works .p-articleMetas,
.single-works .p-articleFoot,
.my-works-item .my-works-card-tags,
.my-works-item .card-tag,
.my-works-item .p-articleThumb__cat,
.my-works-item .c-categoryList { 
    display: none !important; 
}

/* =============================================
 * 1. 個別ページ（single-works）専用
 * ============================================= */
.single-works .l-mainContent { 
    padding-top: 100px;
    padding-bottom: 20px; 
}

.single-works .c-postTitle__ttl {
    display: table;
    position: relative;
    margin-bottom: 50px;
    padding: 0 0 14px 0;
    color: #53565B;
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
    background: transparent;
    border: none;
}
@media (max-width: 767px) {
	.single-works .c-postTitle__ttl {
		margin-bottom: 20px;
	}
	.works-visual-flex {
		margin-bottom: 20px !important;
	}
	.works-spec-table {
		margin-bottom: 20px !important;
	}
}

.single-works .c-postTitle__ttl::before {
    display: none;
}

.single-works .c-postTitle__ttl::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 80px;
    height: 4px;
    background-color: #D9D9D6;
}
@media (max-width: 767px) {
	.single-works .c-postTitle__ttl::after {
		width: 50px;
	}
}

.works-visual-flex {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-bottom: 40px;
    align-items: center;
    position: relative;
    width: 100%;
}

.works-photo-item { 
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.works-photo-item:nth-of-type(1) {
    flex: 3.5 !important;
}

.works-photo-item:nth-of-type(2) {
    flex: 6.5 !important;
}

.works-visual-flex::after {
    content: "≫";
    position: absolute;
    left: 35%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    color: #2BA9D7;
    font-size: 76px;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
    pointer-events: none;
    animation: arrow-move 2.0s infinite ease-in-out;
}

.label-before,
.label-after {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    border-style: solid;
    border-color: transparent;
    font-size: 0;
    overflow: visible;
}

.label-before::after,
.label-after::after {
    position: absolute;
    display: block;
    text-align: center;
    transform: rotate(-45deg);
    color: #fff;
    pointer-events: none;
    font-family: sans-serif;
	letter-spacing:0.1em;
}

.label-before {
    border-width: 95px 95px 0 0;
    border-top-color: rgba(83, 86, 91, 0.6);
}

.label-before::after {
    content: "BEFORE";
    width: 140px;
    font-size: 14px;
    font-weight: 800;
    top: -73px;
    left: -34px;
}

.label-after {
    border-width: 125px 125px 0 0;
    border-top-color: rgba(43, 169, 215, 0.8);
}

.label-after::after {
    content: "AFTER";
    width: 160px;
    font-size: 22px;
    font-weight: 900;
    top: -98px;
    left: -33px;
    color: #ffffff;
}

.works-spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    border-top: 1px solid #ddd;
}

.works-spec-table th,
.works-spec-table td {
    padding: 12px 20px;
    border-bottom: 1px solid #ddd;
    font-size: 15px;
}

.works-spec-table th {
    background-color: #F7F7F7;
    color: #53565B;
    width: 30%;
    text-align: center;
}

.works-spec-table td {
    width: 70%;
    text-align: left;
    color: #444;
}

.works-staff-comment {
    border: 1px solid #DCDCDC;
    border-radius: 0;
    background-color: #fff;
}

.comment-header {
    background-color: #F7F7F7;
    padding: 12px 20px;
    color: #53565B;
    font-weight: bold;
    border-bottom: 1px solid #DCDCDC;
	display: flex !important;
    align-items: center;
    gap: 8px; /* 文字とアイコンの間隔 */
}
.comment-header::after {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    background-color: #ccc; /* アイコンの色 */
    
    /* マスク画像の設定（ペンアイコン） */
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z' /%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z' /%3E%3C/svg%3E");
    
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}
.comment-body {
    padding: 25px;
    line-height: 1.8;
    color: #53565B;
}

.works-photo-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

.visual-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    border-radius: 4px;
    vertical-align: bottom;
}

@media (max-width: 767px){
	.comment-header{
		font-size: 14px;
	}
	.works-spec-table th, .works-spec-table td{
		padding: 8px 20px;
		font-size: 14px;
	}
	.comment-body{
		font-size: 14px;
		padding: 20px;
	}
}

/*画像をクリックで拡大表示*/
/* 1. 背景と重なり順（セレクタを詳細にして優先度を上げる） */
html body .lum-lightbox {
    background: rgba(0, 0, 0, 0.6); 
    z-index: 999999;
}

/* 2. 画像を表示する枠のサイズ制限 */
.lum-lightbox-inner {
    inset: 10%; /* top, right, bottom, leftを一括指定 */
    padding: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out; /* 画像外クリックで閉じる感を表す */
}

/* 3. 画像の装飾（影と白枠） */
.lum-lightbox-inner img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    border: 4px solid #fff;
    background-color: #fff; /* 画像読み込み前の土台 */
}

/* 4. 閉じるボタン（バツ印） */
.lum-close-button {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    opacity: 0.8;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transition: opacity 0.3s;
}

.lum-close-button:hover {
    opacity: 1;
}

/* =============================================
 * 2. 一覧ページ（archive / taxonomy）専用
 * ============================================= */
.my-works-full-wrap {
    width: 100%;
    display: block;
}

.works-archive-mv {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    height: 296px; 
    /*background-image: url('http://north-sea-road2.local/wp-content/uploads/2026/01/company-1-scaled.jpg');*/
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.works-archive-mv__title {
    position: relative;
    z-index: 1;
    font-size: 2.5rem !important;
    color: #53565B;
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.1em;
}

/* カテゴリーナビ：PC表示 */
.works-category-nav {
    display: block;
    width: 100%;
    max-width: 1400px;
    margin: 96px auto 0;
}

.works-category-list {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.works-category-list li {
    flex: 1;
    min-width: 0;
}

.works-category-list li a { 
    display: block;
    padding: 14px 2px; 
    background: #F7F7F7;
    border: none;
    border-radius: 0;
    color: #53565B; 
    text-decoration: none;
    font-size: 16px;
    text-align: center;
    white-space: nowrap; 
}

.works-category-list li.is-active a,
.works-category-list li a:hover {
    background-color: #53565B;
    color: #fff;
}

/* コンテナ：PC表示 */
.my-works-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 0 80px;
}

.my-works-list {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
    list-style: none;
    padding: 0;
}

@media (min-width: 960px) {
    .my-works-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px 16px;
    }
}

.my-works-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 0;
    overflow: hidden;
}

.my-works-item a {
    text-decoration: none;
    color: inherit;
    padding: 15px 15px 50px;
    display: block;
    position: relative;
}

.my-works-item .my-works-ttl { 
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    height: 3em; 
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; 
    overflow: hidden;
    color: #53565B;
    transition: color 0.3s ease; 
}

.my-works-item a:hover .my-works-ttl {
	color: #2BA9D7;
}

.my-works-date {
    font-size: 14px;
    color: #bbb;
    margin-bottom: 4px;
    display: block;
}

.my-works-spec {
    background: #f9f9f9;
    padding: 8px 12px;
    font-size: 14px;
    margin-bottom: 10px;
    color: #53565B;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spec-item {
    font-weight: 700;
}

.spec-item span {
    font-weight: 400;
    margin-left: 4px;
}

.my-works-visual {
    display: flex !important;
    gap: 10px;
    margin-bottom: 10px;
    position: relative;
    width: 100%;
}

.visual-box:nth-of-type(1) {
    flex: 3.5 !important;
    width: auto !important;
}

.visual-box:nth-of-type(2) {
    flex: 6.5 !important;
    width: auto !important;
}

.visual-box {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.visual-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    border-radius: 4px;
}

.my-works-visual::after {
    content: "≫";
    position: absolute;
    left: calc(35% - 2px);
    top: 58%;
    transform: translate(-50%, -50%);
    z-index: 10;
    color: #2BA9D7;
    font-size: 40px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    animation: arrow-move-card 2.0s infinite ease-in-out;
}

.label-b,
.label-a {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    font-size: 0;
    border-style: solid;
    border-color: transparent;
    pointer-events: none;
}

.label-b {
    border-width: 42px 42px 0 0;
    border-top-color: rgba(83, 86, 91, 0.8);
}

.label-b::after {
    content: "BEFORE";
    position: absolute;
    top: -36px;
    left: -1px;
    width: 40px;
    font-size: 8px;
    font-weight: bold;
    transform: rotate(-45deg);
    color: #fff;
}

.label-a {
    border-width: 56px 56px 0 0;
    border-top-color: rgba(43, 169, 215, 0.8);
}

.label-a::after {
    content: "AFTER";
    position: absolute;
    top: -52px;
    left: -2px;
    width: 57px;
    font-size: 12px;
    font-weight: bold;
    transform: rotate(-45deg);
    color: #ffffff;
}

.my-works-list .my-works-comment {
    border: 1px solid #eee;
    padding: 8px 12px;
    border-radius: 0;
    background: #fff;
}

.my-works-list .comment-label { 
    font-size: 14px;
    color: #53565B;
    font-weight: 700;
    margin-bottom: 8px; 
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px; 
    border-bottom: 1px solid #eee;
    padding-bottom: 6px; 
}

.my-works-list .comment-label::after {
    content: "";
    width: 16px;
    height: 16px;
    background-color: #ccc;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z' /%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z' /%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    mask-size: contain;
}

.my-works-list .comment-txt {
    font-size: 14px;
    line-height: 1.6;
    color: #53565B;
    font-weight: 400;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    height: 3.2em;
}

.my-works-item a::after {
    content: "詳しく見る";
    position: absolute;
    bottom: 16px;
    right: calc(20px + 2rem); 
    font-size: 12px;
    color: #53565B;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.my-works-item a::before {
    content: ">";
    position: absolute;
    bottom: 11px;
    right: 20px;
    font-size: 19px;
    color: #53565B;
    font-weight: 100;
    transition: opacity 0.3s ease;
}

.my-works-item a:hover::after,
.my-works-item a:hover::before {
    opacity: 0.6;
}

/* =============================================
 * 3. ページネーション
 * ============================================= */
.my-works-pagination {
    margin-top: 60px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.my-works-pagination .nav-links {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    gap: 8px !important;
    list-style: none !important;
    padding: 0 !important;
}

.my-works-pagination [class*=page-numbers] {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border: 1px solid #eee;
    background: #fff;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.my-works-pagination .page-numbers.current {
    background-color: #53565B !important;
    color: #fff !important;
    border-color: #53565B !important;
}

/* =============================================
 * スマイル解体ロゴ画像サイズ調整
 * ============================================= */
.l-mainContent .intro-banner-box {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    height: auto !important;
    aspect-ratio: auto !important;
}

.l-mainContent .intro-banner-box img {
    display: block;
    height: auto;
    width: 100%;
    max-width: 450px;
}

.l-mainContent .intro-banner-box {
    padding: 80px 15px 40px;
}

/* =============================================
 * 4. アニメーション & SP対応
 * ============================================= */
@keyframes arrow-move {
    0%, 100% { transform: translate(-50%, -50%) translateX(0); opacity: 0.9; }
    50% { transform: translate(-50%, -50%) translateX(8px); opacity: 1; }
}

@keyframes arrow-move-card {
    0%, 100% { transform: translate(-50%, -50%) translateX(0); opacity: 0.9; }
    50% { transform: translate(-50%, -50%) translateX(4px); opacity: 1; }
}

@media (max-width: 767px) {
    .l-mainContent .intro-banner-box {
        padding: 40px 15px 20px;
    }

    .single-works .l-mainContent {
        padding-top: 40px;
    }

    .works-archive-mv {
        height: 101px;
    }
    .works-archive-mv__title {
        font-size: 1.4rem !important;
    }
    
    /* 書き直し部分：左右パディング 10px */
    .works-category-nav {
        margin: 30px auto 0;
    }
    
    .works-category-list {
        display: flex;
        flex-wrap: wrap;       /* 自然に折り返す */
        justify-content: flex-start; /* 左詰め（隙間を一定にするため） */
        gap: 10px 10px;       /* 行間と列間の隙間 (お好みで調整) */
        margin: 0;
    }
    
    .works-category-list li {
        flex: 0 0 auto;       /* 文字数（内容）に合わせる指定 */
        min-width: 0;         /* 念のため追加 */
    }

    .works-category-list li a {
        padding: 10px 15px;   /* 上下左右に同じパディング */
        font-size: 13px;      /* PCよりは小さく、でも読みやすいサイズ */
        border: none;
        border-radius: 0;
        white-space: nowrap;  /* 改行させない */
        text-align: center;
    }

    .my-works-container {
        padding: 30px 0 80px;
    }

    .my-works-pagination {
        margin-top: 40px;
    }
    .my-works-pagination .nav-links {
        gap: 5px !important;
    }
    .my-works-pagination [class*=page-numbers] {
        min-width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .intro-banner-box {
        width: 100%;
        height: auto;
        aspect-ratio: 729 / 96;
    }

    .single-works .works-visual-flex {
        gap: 10px;
    }

    .single-works .works-visual-flex::after {
        font-size: 40px;
        left: calc(32% + 5px);
    }

    .single-works .label-before {
        border-width: 50px 50px 0 0;
    }
    .single-works .label-before::after {
        width: 100px;
        font-size: 8px;
        top: -37px;
        left: -30px;
    }
    .single-works .label-after {
        border-width: 83px 83px 0 0;
    }
    .single-works .label-after::after {
        width: 110px;
        font-size: 16px;
        top: -65px;
        left: -23px;
    }
}

/* =============================================
 * スマイル解体札幌
 * ============================================= */
/* 1. PC/SP共通：SWELL標準H3装飾を完全に打ち消す（詳細度を上げて上書き） */
.smile-simple-wrap h3.smile-footer-ttl:where(:not([class^="swell-block-"])) {
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
    margin-top: 0 !important;
}

/* 2. PC版のレイアウト設定 */
.smile-simple-wrap {
    margin-top: 100px; /* 画像の上の十分な余白 */
    margin-bottom: 40px;
    text-align: center;
}

/* PC：ロゴサイズと余白 */
.smile-footer-logo {
    max-width: 320px;
    width: 100%;
    margin: 0 auto 10px;
}

.smile-footer-logo img {
    width: 100%;
    height: auto;
}

/* PC：H3タイトル（border-leftを確実に切る） */
.smile-simple-wrap .smile-footer-ttl {
    border-left: none !important; 
    font-size: 1rem !important;
    font-weight: 500;
    color: #53565B !important;
    line-height: 1.5;
    margin-bottom: 20px !important;
    letter-spacing: 0.05em;
    display: block !important;
}

/* PC：説明文 */
.smile-footer-txt {
    font-size: 15px;
    color: #53565B !important;
    margin: 0 !important;
}

/* ロゴのホバーアクション設定 */
.smile-footer-link-block {
    text-decoration: none; /* 下線を消す */
    display: block;        /* ブロック要素にして全体をクリック可能に */
    color: inherit;        /* 文字色を継承（元の53565Bなど） */
    transition: opacity 0.3s ease;
}

.smile-footer-link-block:hover {
    opacity: 0.7;          /* ホバー時に少し薄くして「押せる感」を出す */
}

.pc-only { display: inline; }

/* =============================================
* スマホ対応 (SP) 767px以下
* ============================================= */
@media (max-width: 767px) {
    /* メインコンテンツ下の余白をゼロにしてフッターと密着させる */
    .single-works .l-mainContent {
        padding-bottom: 0 !important;
    }

    /* .post_content の大きなマージンをSPのみ下側ゼロに */
    .single-works .l-mainContent__inner > .post_content {
        margin-bottom: 0 !important;
    }

    /* SP：セクションの調整 */
    .smile-simple-wrap {
        margin-top: 60px; /* スマホでも適度な上余白は確保 */
        margin-bottom: 0;
        padding-bottom: 60px; /* 白背景の中の余白として確保 */
        text-align: center;
    }

    /* SP：画像（90%幅・中央寄せ） */
    .smile-footer-logo img {
        max-width: 80%; 
    }
	.smile-footer-logo{
	margin: 0 auto 0;
		width: 260px;
	}

    /* SP：H3（中央寄せ・1.5rem） */
    .smile-simple-wrap .smile-footer-ttl {
        font-size: 1.1rem !important;
        text-align: center;
        margin-bottom: 10px !important;
    }

    /* SP：テキスト（左寄せ） */
    .smile-footer-txt {
        font-size: 13px;
        text-align: left;
        line-height: 1.7;
        display: block;
		padding: 0 10px;
    }

    .pc-only { display: none; }
}

/* ===============================
   施工事例投稿ページ：PC・タブレットのみ
   フッター最上部にグレー
=============================== */
@media screen and (min-width: 960px) {
    .single-works .l-footer {
        padding-top: 40px; /* 帯の高さ分、フッターの中身を下げる */
        position: relative;
    }

    .single-works .l-footer::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 40px;        /* 帯の高さ */
        background-color: #f7f7f7; /* 指定の背景色 */
        display: block;
        z-index: 1;
    }

    /* フッターの中身が帯に被らないように調整 */
    .single-works .l-footer__inner {
        position: relative;
        z-index: 2;
    }
}
/* ===============================
   施工事例ページ：フッター上グレー非表示
=============================== */
/* デフォルト（スマホ）では非表示 */
.pc-only-divider {
    display: none;
}

/* PCサイズ（768px以上）の時だけ表示 */
@media screen and (min-width: 768px) {
    .pc-only-divider {
        display: block;
    }
}