/*
Theme Name: Kadence Child
Theme URI: https://www.kadencewp.com/
Description: Child theme for be-FRESH
Author: be-FRESH
Template: kadence
Version: 1.0.0
Text Domain: kadence-child
*/

/* ここから独自CSSを追加 */

/* reCAPTCHA v3 バッジ非表示 */
.grecaptcha-badge {
    visibility: hidden;
}


/* コンテンツ余白を削除 */
.entry-content-wrap {
    padding: 0 2rem;
}



/* ========================================
   be-FRESH 施工事例 詳細ページ
======================================== */

.befresh-case-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 24px 90px;
}

.befresh-case-header {
    margin-bottom: 40px;
}

.befresh-case-header h1 {
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.5;
    color: #383838;
    margin: 0;
}

/* Before / After 写真 */

.befresh-case-images {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.befresh-case-image {
    margin: 0;
    min-width: 0;
}

.befresh-case-image img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: #f5f5f2;
}

.befresh-case-image figcaption {
    margin-top: 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: #777;
}

/* コメント・説明文 */

.befresh-case-description {
    max-width: 800px;
    margin: 0 0 50px;
    line-height: 2;
    color: #555;
}

/* 施工内容・料金 */

.befresh-case-details {
    padding: 30px;
    background: #f5f5f2;
}

.befresh-case-details h2 {
    font-size: 20px;
    margin: 0 0 25px;
    color: #383838;
}

.befresh-case-repair-row,
.befresh-case-total,
.befresh-case-duration {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 20px;
    padding: 14px 0;
}

.befresh-case-repair-row {
    border-bottom: 1px solid #ddd;
}

.befresh-case-repair-row span:last-child,
.befresh-case-total strong:last-child {
    white-space: nowrap;
}

.befresh-case-total {
    padding-top: 20px;
}

.befresh-case-duration {
    border-top: 1px solid #ddd;
    margin-top: 15px;
}

/* 一覧へ戻る */

.befresh-case-back {
    margin-top: 50px;
    text-align: center;
}

.befresh-case-back a {
    color: #555;
    text-decoration: none;
    border-bottom: 1px solid #aaa;
    padding-bottom: 5px;
}

.befresh-case-back a:hover {
    color: #252525;
    border-color: #252525;
}

/* スマホ表示 */

@media (max-width: 767px) {

    .befresh-case-container {
        padding: 35px 16px 65px;
    }

    .befresh-case-header {
        margin-bottom: 25px;
    }

    .befresh-case-images {
        gap: 10px;
        margin-bottom: 30px;
    }

    .befresh-case-image figcaption {
        font-size: 11px;
    }

    .befresh-case-description {
        margin-bottom: 35px;
    }

    .befresh-case-details {
        padding: 20px 16px;
    }

    .befresh-case-details h2 {
        font-size: 18px;
    }

    .befresh-case-repair-row,
    .befresh-case-total,
    .befresh-case-duration {
        font-size: 13px;
        gap: 10px;
    }
}



/* ========================================
   be-FRESH 施工事例 一覧ページ
======================================== */

.befresh-archive-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 70px 24px 100px;
}

/* ページ見出し */

.befresh-archive-header {
    margin-bottom: 45px;
}

.befresh-archive-header h6 {
    color: #A49B77;
}

.befresh-archive-header h1 {
    margin: 0 0 15px;
    font-size: clamp(26px, 3vw, 36px);
    color: #383838;
}


/* カード一覧 */

.befresh-case-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* カード全体をリンクに */

a.befresh-archive-card {
    display: grid;
    grid-template-columns: 48% 52%;
    overflow: hidden;
    background: #fff;
    color: #555;
    text-decoration: none;
    transition:
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

a.befresh-archive-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

a.befresh-archive-card:focus-visible {
    outline: 3px solid #8c8540;
    outline-offset: 3px;
}

/* Before / After */

.befresh-archive-images {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px;
    min-width: 0;
    background: #fff;
}

.befresh-archive-image {
    position: relative;
    min-width: 0;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f5f5f2;
}

.befresh-archive-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.befresh-archive-card:hover .befresh-archive-image img {
    transform: scale(1.04);
}

.befresh-image-label {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 5px 8px;
    background: rgba(37, 37, 37, 0.75);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.befresh-no-image {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 11px;
    letter-spacing: 0.08em;
}

/* 右側の情報 */

.befresh-archive-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 35px;
    min-width: 0;
}

.befresh-archive-title {
    margin: 0 0 18px;
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1.5;
    color: #383838;
}

.befresh-archive-repairs {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.9;
    color: #777;
}

.befresh-archive-price {
    margin: auto 0 18px;
    font-size: 19px;
    font-weight: 600;
    color: #383838;
}

.befresh-archive-more {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #8c8540;
}

.befresh-archive-more span {
    margin-left: 8px;
    transition: margin-left 0.2s ease;
}

.befresh-archive-card:hover .befresh-archive-more span {
    margin-left: 14px;
}



/* ========================================
   施工事例：衣類分類プルダウン
======================================== */

.befresh-case-filter {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin: 0 0 25px;
}

.befresh-case-filter label {
    font-size: 13px;
    font-weight: 500;
    color: #62584d;
}

.befresh-case-filter select {
    width: 230px;
    max-width: 100%;
    min-height: 42px;
    padding: 8px 34px 8px 14px;
    border: 1px solid #c9c3b6;
    border-radius: 0;
    background-color: #fff;
    color: #555;
    font-size: 13px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.befresh-case-filter select:hover {
    border-color: #8c8540;
}

.befresh-case-filter select:focus {
    outline: 2px solid #8c8540;
    outline-offset: 2px;
}

/* スマホ */
@media (max-width: 767px) {

    .befresh-case-filter {
        justify-content: flex-start;
        gap: 10px;
        margin-bottom: 20px;
    }

    .befresh-case-filter select {
        flex: 1;
        width: auto;
        min-width: 0;
    }
}



/* ページ送り */
.befresh-archive-pagination {
    margin-top: 50px;
    text-align: center;
}

.befresh-archive-pagination .nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.befresh-archive-pagination .page-numbers {
    padding: 8px 12px;
    color: #555;
    border: 1px solid #555;
    text-decoration: none;
}

.befresh-archive-pagination .current {
    background: #555;
    color: #fff;
}

.befresh-archive-empty {
    padding: 50px 0;
    text-align: center;
    color: #777;
}


/* ========================================
   スマホ表示
======================================== */

@media (max-width: 767px) {

    .befresh-archive-container {
        padding: 40px 16px 70px;
    }

    .befresh-archive-header {
        margin-bottom: 30px;
    }

    .befresh-case-list {
        gap: 18px;
    }

    a.befresh-archive-card {
        grid-template-columns: 1fr;
    }

    .befresh-archive-image {
        aspect-ratio: 4 / 3;
    }

    .befresh-archive-info {
        padding: 20px;
    }

    .befresh-archive-title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .befresh-archive-repairs {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .befresh-archive-price {
        margin: 0 0 12px;
        font-size: 17px;
    }

    .befresh-image-label {
        left: 7px;
        bottom: 7px;
        font-size: 9px;
        padding: 4px 6px;
    }
}



/* ========================================
   be-FRESH 料金表
======================================== */

.befresh-price-list {
    width: 100%;
    margin: 40px 0 70px;
}

.befresh-price-category {
    margin-bottom: 45px;
}

.befresh-price-category h2 {
    font-size: 22px;
    margin: 0 0 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #aaa69a;
    color: #383838;
}

.befresh-price-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    background: transparent;
    font-size: 14px;
}

.befresh-price-table th,
.befresh-price-table td {
    border: 1px solid #d0ccc0;
    padding: 13px 16px;
    text-align: left;
    vertical-align: middle;
    color: #555;
    background: transparent;
}

.befresh-price-table th {
    width: 35%;
    vertical-align: top;
}

.befresh-price-detail {
    width: 45%;
}

.befresh-price-amount {
    width: 20%;
    white-space: nowrap;
	text-align: right !important;
	padding-right: 20px !important;
}

/* スマホ */

@media (max-width: 767px) {

    .befresh-price-list {
        margin: 25px 0 50px;
    }

    .befresh-price-category {
        margin-bottom: 35px;
    }

    .befresh-price-category h2 {
        font-size: 19px;
    }

    .befresh-price-table {
        font-size: 12px;
    }

    .befresh-price-table th,
    .befresh-price-table td {
        padding: 10px 7px;
        overflow-wrap: anywhere;
    }

    .befresh-price-table th {
        width: 32%;
    }

    .befresh-price-detail {
        width: 38%;
    }

    .befresh-price-amount {
        width: 30%;
        white-space: normal;
    }
}



/* ========================================
   be-FRESH 料金表 デザイン調整
======================================== */

/* カテゴリー間の余白 */
.befresh-price-category {
    margin-bottom: 65px;
}

/* カテゴリー見出し */
.befresh-price-category h2 {
    position: relative;
    font-size: 23px;
    font-weight: 600;
    padding: 0 0 18px 18px;
    margin-bottom: 15px;
    border-bottom: 1px solid #81715E;
}

.befresh-price-category h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 4px;
    height: 24px;
    background: #81715E;
}

/* テーブル全体 */
.befresh-price-table {
    border: none;
    background: transparent;
}

/* セルのデザイン */
.befresh-price-table th,
.befresh-price-table td {
    border: none;
    border-bottom: 1px solid rgba(85, 85, 85, 0.16);
    padding: 17px 14px;
    background: transparent;
    vertical-align: top;
}


/* スマホ */
@media (max-width: 767px) {

    .befresh-price-category {
        margin-bottom: 45px;
    }

    .befresh-price-category h2 {
        font-size: 20px;
        padding-left: 14px;
    }

    .befresh-price-category h2::before {
        height: 20px;
        top: 3px;
        width: 3px;
    }

    .befresh-price-table th,
    .befresh-price-table td {
        padding: 13px 6px;
        font-size: 12px;
    }

    .befresh-price-amount {
        text-align: right !important;
    }
}



/* ========================================
   料金表：スマホの罫線を統一
======================================== */

.befresh-price-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: none !important;
}

.befresh-price-table tr {
    border: none !important;
    box-shadow: none !important;
}

.befresh-price-table th,
.befresh-price-table td {
    border: none !important;
    border-bottom: 1px solid rgba(85, 85, 85, 0.16) !important;
    box-shadow: none !important;
}


/* 通常投稿のタイトルサイズ調整 */
.single-post .entry-title {
    font-size: 24px;
    line-height: 1.5;
    font-weight: 600;
}

@media (max-width: 767px) {
    .single-post .entry-title {
        font-size: 20px;
    }
}


/* 通常投稿アーカイブ：記事タイトル */
.blog .entry-title,
.archive.category .entry-title,
.archive.tag .entry-title,
.archive.date .entry-title,
.archive.author .entry-title {
    font-size: 24px;
    line-height: 1.5;
    font-weight: 600;
}

/* スマホ */
@media (max-width: 767px) {
    .blog .entry-title,
    .archive.category .entry-title,
    .archive.tag .entry-title,
    .archive.date .entry-title,
    .archive.author .entry-title {
        font-size: 20px;
    }
}