@charset "utf-8";

/* =======================================================================
   Pamphlet ページ専用スタイル
   ======================================================================= */

/* 見出しのデザイン */
.f_page {
    font-size: 22px;
    font-weight: bold;
    color: #888;
    border-bottom: 3px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 40px;
    letter-spacing: 0.05em;
    text-align: center;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

/* =========================================
   スライダー・パンフレットレイアウト
   ========================================= */

/* ボタン（ページャー）の中央揃え */
.works_pager {
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 30px;
    display: flex !important;
    justify-content: center !important;
}
#bx-pager {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    float: none !important;
}
#bx-pager li {
    float: none !important;
    display: inline-block !important; 
    margin: 5px !important;
    width: auto !important;
}
#bx-pager li a {
    display: inline-block;
    padding: 8px 16px;
    text-decoration: none;
    background: #eee;
    color: #333;
    border-radius: 4px;
    transition: 0.3s;
    font-size: 14px;
    white-space: nowrap;
}
#bx-pager li a.active,
#bx-pager li a:hover {
    background: #8fc31f;
    color: #fff;
}

/* PC表示：横並びレイアウトの設定 */
@media (min-width: 769px) {
    .slide_box_a {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 2% !important;
        margin-bottom: 10px !important;
        padding-bottom: 10px !important;
        border-bottom: 1px dashed #ccc !important;
        min-height: 180px;
    }
    /* テキストエリア */
    .s_box_l {
        width: 73% !important;
        float: none !important;
        margin: 0 !important;
    }
    /* 画像エリア */
    .s_box_r, .s_box_r02 {
        width: 25% !important;
        margin: 0 !important;
        float: none !important;
    }
}

/* 画像を入れる「箱」のデザイン */
.s_box_r, .s_box_r02 {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    width: 100% !important;
    height: 220px !important; 
    background-color: transparent !important;
    border: none !important;
    margin-bottom: 0 !important;
    box-sizing: border-box;
}

/* 画像自体のデザイン */
.s_box_r img, .s_box_r02 img {
    max-width: 100%;
    max-height: 100%;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    box-shadow: 3px 6px 15px rgba(0,0,0,0.15);
    border-radius: 2px;
    transition: transform 0.3s ease;
    margin-left: auto !important; 
    margin-right: 0 !important;
}

.s_box_r img:hover, .s_box_r02 img:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 3px 10px 20px rgba(0,0,0,0.25);
}

/* スマホ表示時の調整 */
@media (max-width: 768px) {
    .slide_box_a {
        display: block !important;
        margin-bottom: 15px !important;
        padding-bottom: 15px !important;
        border-bottom: 1px dashed #ccc !important;
    }
    .s_box_l {
        width: 100% !important;
        margin-bottom: 5px !important;
    }
    .s_box_r, .s_box_r02 {
        width: 100% !important;
        height: 200px !important;
        margin-bottom: 10px !important;
        justify-content: center !important;
    }
    .s_box_r img, .s_box_r02 img {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* テキスト周りの微調整 */
.s_box_l p, .s_box_l02 p {
    margin-bottom: 0 !important; 
    line-height: 1.6;
    font-size: 14px;
    color: #444; 
    word-break: normal !important;
    overflow-wrap: break-word;
}
.s_box_l h4, .s_box_l02 h4 {
    margin-bottom: 8px !important;
    margin-top: 0 !important;
    font-size: 16px;
    white-space: nowrap !important; 
    word-break: normal !important;
    overflow-wrap: normal !important;
}

/* ダウンロードリンクのボタン化 */
.s_box_l p a {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background-color: #006400;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    transition: all 0.3s ease;
}
.s_box_l p a:hover {
    background-color: #004d00;
    opacity: 0.9;
}

/* ページ読み込み時のチラつき防止 */
.bxslider {
    opacity: 0;
    transition: opacity 0.5s ease-in;
    min-height: 400px;
}

/* =========================================
   共通パーツ（電話ボタン・CTA・ポップアップ）
   ========================================= */

/* お問い合わせ誘導エリア（CTA） */
.common-cta-area {
    background-color: #f5f5f5;
    padding: 50px 0;
    text-align: center;
    border-top: 5px solid #006400;
    width: 100%;
    margin-top: 60px;
}
.common-cta-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}
.common-cta-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}
.common-cta-text {
    margin-bottom: 40px;
    font-size: 18px;
    line-height: 1.6;
}
.common-cta-btn {
    display: inline-block;
    background-color: #cc0000;
    color: #fff !important;
    padding: 20px 60px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}
.common-cta-btn:hover {
    background-color: #aa0000;
    transform: translateY(2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    opacity: 1;
}
.common-cta-note {
    font-size: 13px;
    margin-top: 15px;
    color: #666;
}

/* パンくずと電話ボタンラッパー */
.breadcrumb-tel-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
    margin-top: 5px;
    border-bottom: none;
    padding-bottom: 10px;
}
#pankuzu {
    margin: 0 !important;
    padding: 0;
}

/* ページ上部の電話ボタン */
.head-tel-btn a {
    display: inline-flex;       
    align-items: center;
    background-color: #8fc31f;
    color: #fff !important;
    text-decoration: none;
    padding: 5px 22px 5px 18px; 
    border-radius: 30px;        
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    line-height: 1.2;
}
.head-tel-btn a:hover {
    background-color: #7aad13;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

@keyframes phone-ring {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(15deg); }
    50% { transform: rotate(-15deg); }
    75% { transform: rotate(10deg); }
    100% { transform: rotate(0deg); }
}
.head-tel-btn a:hover .tel-icon-svg {
    animation: phone-ring 0.4s ease-in-out;
}

.tel-text-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 10px;
}
.tel-label {
    font-size: 10px;
    font-weight: normal;
    opacity: 0.95;
    letter-spacing: 0.05em;
    text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}
.tel-number {
    font-size: 17px;
    font-weight: bold;
    letter-spacing: 0.05em;
    font-family: "Helvetica Neue", Arial, sans-serif;
    text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.tel-icon-svg {
    width: 22px;
    height: 22px;
    transition: all 0.3s;
}
.head-tel-btn .tel-icon-svg {
    fill: #fff;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.1));
}

/* ページ下部の電話リンク */
.tel-popup-trigger {
    margin-bottom: 30px;
}
.tel-popup-trigger a {
    display: inline-flex;       
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}
.tel-popup-trigger .tel-icon-svg {
    fill: #8fc31f;
    width: 28px;    
    height: 28px;
    margin-right: 12px;
}
.tel-popup-trigger a:hover {
    opacity: 0.7;
    transform: scale(1.05);
}
.tel-popup-trigger a:hover .tel-icon-svg {
    animation: phone-ring 0.4s ease-in-out;
}

/* ポップアップウィンドウ本体 */
.zoom-anim-dialog {
    background: white;
    padding: 30px;
    text-align: center;
    max-width: 300px;
    margin: 40px auto;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
}
.zoom-anim-dialog h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #006400;
}
.zoom-anim-dialog img {
    margin: 15px 0;
    border: 1px solid #ccc;
}
.zoom-anim-dialog .tel-number-pop {
    font-size: 20px;
    font-weight: bold;
    margin-top: 5px;
}

.sp-call-btn {
    display: none; 
}

/* スマホ表示時の調整 */
@media (max-width: 768px) {
    .f_page { font-size: 20px; margin-bottom: 30px; }
    .common-cta-btn { padding: 15px 30px; width: 90%; box-sizing: border-box; }
    .common-cta-text { font-size: 15px; }
    .breadcrumb-tel-wrap { padding: 0 5px 10px; }
    .head-tel-btn { margin-top: 10px; margin-left: auto; }
    .tel-popup-trigger a { font-size: 22px; }
    .tel-popup-trigger .tel-icon-svg { width: 22px; height: 22px; }
    .sp-call-btn {
        display: block;
        margin-top: 20px;
        background: #cc0000;
        color: white !important;
        padding: 12px;
        border-radius: 5px;
        text-decoration: none;
        font-weight: bold;
        font-size: 16px;
    }
}