@charset "UTF-8";

/* ―――――――――――
凡庸（汎用）
―――――――――――  */

/* ボタン */
.btn_g {
    display: flex;
    background-color: #5caa65;
    color: #fff;
    font-size: 1.6em;
    line-height: 1.3;
    text-decoration: none;
    letter-spacing: .15em;
    padding: .8em 1em;
    border-radius: 8px; /* 全体が角丸0でもこのボタンは8pxでキープ */
    cursor: pointer;
    box-shadow: 0 2px 3px rgba(0, 0, 0, .2), 0 2px 3px -2px rgba(0, 0, 0, .15);
    -webkit-tap-highlight-color: transparent;
    transition: .3s ease-out;
    width: 85%;
    margin-bottom: 40px;
	align-items: center;            /* 垂直方向を中央揃え */
    justify-content: center;        /* 水平方向を中央揃え */
    gap: 8px; 
}

/* ブレイクポイント */
@media screen and (max-width: 768px) {
    .btn_g {
        font-size: 1.1em;
        line-height: 1.5;
        padding: 1em .3em;
        width: 100%;
    }
}

/* 2つ横並びボタン（追従などに） */
.btn-wrap {
    display: flex;
    justify-content:center;
    gap: 10px;
}
.btn-wrap a {
    width:140px;
    background: #1466b3;
    color: #fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight: bold;
    text-align: center;
    padding: 10px 10px;
    font-size:11px;
}
.btn-wrap a:nth-child(2){
    background:#041b68;
}

/* ―――――――――――
追従
―――――――――――  */
/* 1. 投稿ページのフッター（ロゴ周辺）をスタジオと同じグレーにする */
.single-post .sng-footer {
    background-color: #f7f7f7 !important;
}

/* 2. ボタンの帯：透過の白 ＆ 上の線なし */
.pk-final-wrapper {
    position: fixed !important;
    bottom: -150px; 
    left: 0 !important;
    width: 100% !important;
    height: auto !important; 
    min-height: 90px !important; 
    background-color: rgba(255, 255, 255, 0.5) !important; 
    padding-top: 15px !important;
    padding-bottom: 18px !important;
    border-top: none !important; 
    z-index: 2147483647 !important;
    display: none;
    align-items: center;
    justify-content: center;
}

.pk-final-wrapper.is-active {
    display: flex !important;
}

/* 3. ボタンの横幅：PCでしっかり長く見せる */
.pk-final-container {
    width: 95% !important;
    max-width: 1100px !important; 
}

/* 4. ボタン本体：角丸8px */
.pk-final-btn {
    display: block !important;
    width: 80% !important;
    background-color: #74b684 !important;
    background-image: none !important;
    color: #ffffff !important;
    padding: 16px 0 !important;
    border-radius: 8px !important; /* ボタンの角丸はキープ */
    text-align: center !important;
    font-weight: bold !important;
    text-decoration: none !important;
    font-size: 1.4em !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
    line-height: 1.6 !important;
    margin: 16px auto;
}

/* ブレイクポイント */
@media screen and (max-width: 768px) {
    .pk-final-btn {
        width: 98% !important;
        font-size: 16px !important;
        margin: 0 auto;
    }
    .article-header { padding-top: 0 !important; }
}

/* 共通お問い合わせボタン */
.contact_btn {
    display: inline-block;
    background-color: #203a45;
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: opacity 0.2s;
}

.contact_btn:hover {
    opacity: 0.8;
}

/* ―――――――――――
続きを読む
―――――――――――  */
.grad-wrap {
    text-align: center;
}

.grad-btn {
    position: relative;
    display: inline-block;
    padding: 0.25em 0.5em;
    text-decoration: none;
    color: #FFF;
    background: #9f9f9f;
    border-bottom: solid 2px #b7b7b7;
    border-radius: 4px;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2), 0 2px 2px rgba(0, 0, 0, 0.19);
    font-weight: bold;
    width: 280px;
}

.grad-btn:active {
    border-bottom: solid 2px #8d8d8d;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.30);
}

.grad-btn:hover {
    opacity: 60%;
}

.grad-btn::before {
    content: "続きを読む"
}

.grad-item {
    position: relative;
    overflow: hidden;
    height: 80px; /*隠した状態の高さ*/
}

.grad-item::before {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px; /*グラデーションで隠す高さ*/
    background: -webkit-linear-gradient(top, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 50%, rgba(255,255,255,0.9) 50%, #fff 100%);
    background: linear-gradient(top, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 50%, rgba(255,255,255,0.9) 50%, #fff 100%);
    content: "";
}

.grad-trigger {
    display: none; /*チェックボックスは常に非表示*/
}

.grad-trigger:checked ~ .grad-btn::before {
    content: "閉じる" /*チェックされていたら、文言を変更する*/
}

.grad-trigger:checked ~ .grad-item {
    height: auto; /*チェックされていたら、高さを戻す*/
}

.grad-trigger:checked ~ .grad-item::before {
    display: none; /*チェックされていたら、grad-itemのbeforeを非表示にする*/
}


/* =========================================
   マップボタンのデザイン（右寄せ＆コンパクト化）
========================================= */
.map-app-btn-area {
    text-align: right;
}

.map-app-btn {
    display: inline-block;
    background: #4285f4;
    color: #fff !important;
    text-align: center;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
}

.map-app-btn:hover {
    opacity: 0.85;
    transform: translateY(-2px);
    color: #fff !important;
}

.map-app-btn i {
    margin-right: 6px;
    font-size: 1.1em;
}

@media screen and (max-width: 520px) {
    .map-app-btn {
        padding: 3px 8px !important;
        font-size: 11px !important;
    }
}


/* ===================================================
   WordPressブロックエディタ干渉対策：CTAボタン中央寄せ強制
=================================================== */
/* 1. .centerを囲む親ブロックの影響をリセットし、横幅いっぱいにする */
.wp-block-group .center,
div.center {
    width: 100% !important;
    text-align: center !important;
    display: block !important;
}

/* 2. ボタン自身（btn_g）にも中央配置の命令を二重でかける */
a.btn_g.center,
.center a.btn_g {
    margin-left: auto !important;
    margin-right: auto !important;
    display: inline-block !important;
}