/*
Theme Name: kachatto-tb-child
Template: kachatto-tb
Version: 1.0
*/

/* ========================================
   グローバルナビゲーション固定
======================================== */
.keni-gnav_wrap {
    position: fixed !important;
    top: 107px !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9998 !important;
    background-color: #fff !important;
    border-bottom: 1px solid #ddd !important;
}

.keni-gnav_outer {
    background-color: #fff !important;
}

.keni-gnav {
    background-color: #fff !important;
}

.keni-gnav_inner {
    display: block !important;
    position: static !important;
    width: 100% !important;
    background-color: #fff !important;
}

.keni-gnav_inner > ul {
    display: flex !important;
    justify-content: center !important;
    letter-spacing: normal !important;
    background-color: #fff !important;
}

.keni-gnav_inner > ul > li {
    display: block !important;
    letter-spacing: normal !important;
    border: none !important;
}

.keni-gnav_inner > ul > li > a {
    display: block !important;
    color: #333 !important;
    padding: 15px 20px !important;
    letter-spacing: normal !important;
    border: none !important;
}

.keni-gnav_inner > ul > li > a:hover {
    background-color: #f5f5f5 !important;
}

.keni-gnav_inner .menu-search {
    display: none !important;
}

/* ========================================
   施工事例リスト
======================================== */
.works-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}
.works-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.3s;
}
.works-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.works-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}
.works-thumb {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: #f5f5f5;
}
.works-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.works-info {
    padding: 15px;
}
.works-info h3 {
    font-size: 14px;
    font-weight: bold;
    margin: 0 0 10px;
    line-height: 1.4;
    color: #333;
}
.works-price {
    font-size: 14px;
    color: #e74c3c;
    font-weight: bold;
    margin: 0 0 5px;
}
.works-date {
    font-size: 12px;
    color: #888;
    margin: 0;
}

/* ========================================
   お客様の声
======================================== */
.voice-list {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}
.voice-item {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
}
.voice-header {
    margin-bottom: 10px;
}
.voice-rating {
    color: #FFB800;
    font-size: 18px;
}
.voice-name {
    margin-left: 10px;
    font-weight: bold;
}
.voice-service {
    font-size: 13px;
    color: #666;
}

/* ========================================
   共通部分
======================================== */
.area-common {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid #eee;
}
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}
.price-table th, .price-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}
.price-table th {
    background: #f5f5f5;
    width: 50%;
}

/* ========================================
   CTA
======================================== */
.common-cta {
    text-align: center;
    background: #fff8e1;
    padding: 30px;
    border-radius: 8px;
    margin: 30px 0;
}
.cta-text {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}
.cta-tel {
    display: inline-block;
    background: #4CAF50;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    margin: 10px;
}
.cta-mail {
    display: inline-block;
    background: #2196F3;
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    margin: 10px;
}

/* ========================================
   監修者バナー
======================================== */
.supervisor-banner {
    margin-top: 40px;
}
.supervisor-banner a {
    text-decoration: none;
    color: inherit;
}
.supervisor-inner {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #ddd;
    transition: box-shadow 0.3s;
}
.supervisor-inner:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.supervisor-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}
.supervisor-img img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.supervisor-name-area {
    flex: 1;
}
.supervisor-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}
.supervisor-name {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: #333;
}
.supervisor-position {
    display: block;
    font-size: 13px;
    color: #555;
    margin-top: 3px;
}
.supervisor-detail {
    font-size: 13px;
    line-height: 1.8;
    color: #555;
}
.supervisor-detail p {
    margin: 8px 0;
}
.supervisor-detail strong {
    color: #333;
}
.supervisor-link {
    display: block;
    text-align: right;
    color: #4CAF50;
    font-weight: bold;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

/* ========================================
   地域ページ レイアウト
======================================== */
.main-area {
    width: 100%;
}

/* ========================================
   地域ページ ヒーロー画像
======================================== */
.area-hero {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    margin-top: 50px; /* ナビの高さ分下げる */
}
.area-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.area-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 60%);
}
.area-hero-label {
    position: absolute;
    top: 30px;
    left: 30px;
    background: #4CAF50;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    padding: 12px 25px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

/* ========================================
   ヘッダー電話・お問い合わせボタン（LP以外）
======================================== */
body:not(.page-template-page-glp):not(.page-template-page-ylp) .tel-mail-box {
    display: flex !important;
    align-items: center !important;
    gap: 10px;
}
body:not(.page-template-page-glp):not(.page-template-page-ylp) .tel-mail-box a {
    display: inline-block !important;
    padding: 10px 20px !important;
    border-radius: 5px !important;
    text-decoration: none !important;
    font-weight: bold !important;
    color: #fff !important;
}
body:not(.page-template-page-glp):not(.page-template-page-ylp) .tel-mail-box a.tel {
    background: #fe6601 !important;
}
body:not(.page-template-page-glp):not(.page-template-page-ylp) .tel-mail-box a.mail {
    background: #039902 !important;
}

/* ========================================
   レスポンシブ
======================================== */
@media (max-width: 768px) {
    .works-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .works-thumb {
        height: 120px;
    }
    .supervisor-header {
        flex-direction: column;
        text-align: center;
    }
    .supervisor-img {
        margin-right: 0;
        margin-bottom: 10px;
    }
    .supervisor-img img {
        margin-right: 0;
    }
    .supervisor-inner {
        flex-wrap: wrap;
    }
    .supervisor-link {
        width: 100%;
        margin-top: 10px;
        text-align: right;
    }
    .area-hero {
        height: 200px;
    }
    .area-hero-label {
        top: 20px;
        left: 20px;
        font-size: 18px;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .works-list {
        grid-template-columns: 1fr;
    }
}