@charset "utf-8";

/* ▼▼▼ 見出しのデザイン（SEO構造変更に伴い統一） ▼▼▼ */
.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%;
    margin-bottom: 50px;
}
.works_pager ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    list-style: none;
}
.works_pager li {
    width: 24%;
    margin-bottom: 5px;
    box-sizing: border-box;
}
.works_pager li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 35px;
    background: #f8f8f8;
    color: #888;
    text-decoration: none;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 12px;
    font-weight: normal;
    transition: all 0.3s ease;
    box-sizing: border-box;
}
.works_pager li a:hover,
.works_pager li a.active {
    background: #006400;
    color: #fff;
    border-color: #006400;
    opacity: 1;
}

/* =========================================
   ▼▼▼ 卓上模型ページ専用CSS（ハイブリッドレイアウト） ▼▼▼
   ========================================= */
.content-area .inner {
    max-width: 1000px;
    margin: 0 auto;
}
.section-box { margin-bottom: 80px; scroll-margin-top: 100px; /* ジャンプした時の余白 */ }
.section-title { 
    font-size: 24px; font-weight: bold; color: #006400; 
    border-left: 8px solid #006400; padding-left: 15px; 
    margin-bottom: 20px; line-height: 1.4;
}
.section-lead { margin-bottom: 30px; font-weight: bold; color: #666; }

/* ▼ 目次ボタンのデザイン */
.anchor-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
}
.anchor-nav a {
    display: block;
    width: 32%;
    text-align: center;
    background: #f8f8f8;
    border: 1px solid #ccc;
    padding: 15px 0;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 3px 0 rgba(0,0,0,0.1);
}
.anchor-nav a:hover {
    background: #006400;
    color: #fff;
    border-color: #006400;
    transform: translateY(2px);
    box-shadow: none;
}
.anchor-nav a span {
    display: block;
    font-size: 12px;
    font-weight: normal;
    margin-top: 5px;
    color: #666;
}
.anchor-nav a:hover span { color: #eee; }

/* Flexboxレイアウト */
.flex-row { 
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start;
    margin-bottom: 40px; border-bottom: 1px dashed #ddd; padding-bottom: 30px; 
}
.flex-row:last-child { border-bottom: none; margin-bottom: 0; }
.flex-txt { width: 48%; }
.flex-txt h4 { 
    font-size: 18px; font-weight: bold; margin-bottom: 15px; color: #333; 
    background: #f4f4f4; padding: 8px 12px; border-radius: 4px;
}
.flex-txt p { line-height: 1.8; font-size: 15px; }
.flex-img { width: 48%; text-align: center; }
.flex-img img { max-width: 100%; height: auto; border: 1px solid #eee; box-shadow: 0 4px 8px rgba(0,0,0,0.1); border-radius: 4px;}

/* 納期テーブル */
.table_nouki { width: 100%; border-collapse: collapse; border: 1px solid #ccc; font-size: 14px; }
.table_nouki th { background: #eee; padding: 10px; border: 1px solid #ccc; text-align: left; width: 40%; }
.table_nouki td { padding: 10px; border: 1px solid #ccc; background: #fff; }
.t_att { font-size: 12px; color: #666; margin-top: 5px; text-align: right; }

/* ▼ 下部ナビゲーションボタン（2つ並列） */
.nav-button-area {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 60px auto 40px;
    max-width: 600px;
    width: 100%;
}
.nav-btn-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48%;
    height: 50px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    box-sizing: border-box;
}
.nav-btn-item span { margin-right: 8px; font-size: 10px; }

/* ページ上部へ戻るボタン */
.nav-btn-item.to-top {
    background: #fff;
    color: #006400;
    border: 2px solid #006400;
}
.nav-btn-item.to-top:hover {
    background: #f0fff0;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.15);
}

/* 一覧へ戻るボタン */
.nav-btn-item.to-list {
    background: #f8f8f8;
    color: #666;
    border: 1px solid #ccc;
}
.nav-btn-item.to-list:hover {
    background: #666;
    color: #fff;
    border-color: #666;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.15);
}

/* スマホ対応 */
@media(max-width:768px){ 
    .anchor-nav { flex-direction: column; }
    .anchor-nav a { width: 100%; margin-bottom: 10px; padding: 12px 0; font-size: 14px; }
    .section-box { margin-bottom: 50px; }
    .flex-row { flex-direction: column-reverse; } 
    .flex-txt, .flex-img { width: 100%; } 
    .flex-img { margin-bottom: 15px; } 

    /* 下部ボタンのスマホ対応 */
    .nav-button-area { flex-direction: column; gap: 15px; padding: 0 20px; }
    .nav-btn-item { width: 100%; height: 55px; font-size: 15px; }
}

/* ▼▼▼ お問い合わせ誘導エリア（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;
}

/* ▼▼▼ スマホ表示時の調整 ▼▼▼ */
@media (max-width: 768px) {
    .f_page { font-size: 20px; margin-bottom: 30px; }
    .works_pager li { width: 49%; margin-bottom: 10px; }
    .works_pager li a { font-size: 13px; height: 45px; }
    
    .common-cta-btn { padding: 15px 30px; width: 90%; box-sizing: border-box; }
    .common-cta-text { font-size: 15px; }
}

/* =========================================
   ▼▼▼ ヘッダー・電話ボタン周り CSS ▼▼▼
   ========================================= */

/* ① パンくずと電話ボタンを横並びにするラッパー */
.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) {
    .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;
    }
}