/*
Theme Name: Enfold Child
Description: A Child Theme for the Enfold Wordpress Theme.
Version: 1.0
Author: Kriesi
Author URI: http://www.kriesi.at
Template: enfold
*/

/* =========================================================
   ベース調整
========================================================= */

.entry-content-wrapper p {
    margin-bottom: 15px;
    line-height: 1.9;
    color: #666666;
}

.entry-content-wrapper ul,
.entry-content-wrapper ol {
    margin: 18px 0 18px 1.5em;
}

.entry-content-wrapper li {
    line-height: 1.8;
    margin-bottom: 8px;
    color: #666666;
}

.entry-content-wrapper img {
    max-width: 100%;
    height: auto;
}

.entry-content-wrapper a {
    color: #2997ab;
    text-decoration: none;
}

.entry-content-wrapper a:hover {
    color: #55adbd;
    text-decoration: underline;
}

/* =========================================================
   見出しデザイン
========================================================= */

.entry-content-wrapper h2 {
    background: #243b64;
    color: #ffffff !important;
    padding: 0.95rem 1.4rem;
    margin: 56px 0 24px;
    line-height: 1.45;
    font-weight: 700;
    font-size: 1.55em;
    letter-spacing: 0.02em;
    border-radius: 2px;
}

.entry-content-wrapper h2 a,
.entry-content-wrapper h2 strong,
.entry-content-wrapper h2 span {
    color: #ffffff !important;
}

.entry-content-wrapper h3 {
    position: relative;
    color: #253243;
    padding: 0 0 0.55rem 0;
    margin: 38px 0 18px;
    line-height: 1.5;
    font-weight: 700;
    font-size: 1.18em;
    letter-spacing: 0.01em;
    border-bottom: 1px solid #d7dde5;
}

.entry-content-wrapper h3 a,
.entry-content-wrapper h3 strong,
.entry-content-wrapper h3 span {
    color: inherit;
}

.entry-content-wrapper h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 56px;
    height: 2px;
    background: #243b64;
}

.entry-content-wrapper h4 {
    color: #8c8a81;
    font-size: 18px;
    line-height: 1.6;
    font-weight: 700;
    margin: 28px 0 12px;
}

/* =========================================================
   記事内パーツ：デザインシステム
========================================================= */

/* 1. 結論ボックス（冒頭やまとめ用） */
.agc-conclusion {
    background-color: #f4fbfc;
    border: 1px solid #bfe3e8;
    border-left: 5px solid #2997ab;
    border-radius: 8px;
    padding: 24px;
    margin: 30px 0;
}

.agc-conclusion__title {
    display: block;
    color: #222222;
    font-weight: 800;
    font-size: 1.05em;
    line-height: 1.5;
    margin-bottom: 12px;
}

.agc-conclusion p:last-child,
.agc-conclusion ul:last-child,
.agc-conclusion ol:last-child {
    margin-bottom: 0;
}

/* 2. 箇条書き（チェックリスト風） */
.agc-list {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 20px 0 0 !important;
}

.agc-list li {
    position: relative;
    padding-left: 28px !important;
    margin-bottom: 12px;
    line-height: 1.8;
}

.agc-list li:last-child {
    margin-bottom: 0;
}

.agc-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 6px;
    height: 12px;
    border-right: 3px solid #2997ab;
    border-bottom: 3px solid #2997ab;
    transform: rotate(45deg);
}

/* 3. スタイリッシュ・テーブル（比較・スペック用） */
.agc-table-wrapper {
    overflow-x: auto;
    margin: 30px 0;
}

table.agc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    border: 1px solid #e1e1e1;
    background: #ffffff;
}

table.agc-table th {
    background-color: #f4fbfc;
    color: #222222;
    font-weight: 700;
    padding: 12px;
    text-align: left;
    border: 1px solid #e1e1e1;
    white-space: nowrap;
}

table.agc-table td {
    padding: 12px;
    border: 1px solid #e1e1e1;
    line-height: 1.7;
    vertical-align: top;
    color: #666666;
}

/* 4. マーカー（強調用） */
.agc-marker {
    background: linear-gradient(transparent 70%, #d9f1f5 70%);
    font-weight: 700;
    color: inherit;
}

/* 5. ヒントボックス（補足・ポイント用） */
.pww-hint-box {
    background-color: #f8f8f8;
    border: 1px solid #d7e8eb;
    border-left: 5px solid #55adbd;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 32px 0;
}

.pww-hint-box__title {
    font-weight: 700;
    color: #222222;
    margin-bottom: 8px;
    line-height: 1.5;
}

.pww-hint-box__title img {
    display: inline-block;
    position: relative;
    top: 3px;
    margin-right: 6px;
}

/* =========================================================
   バナー・CTAまわり
========================================================= */

.entry-content-wrapper .pww-banner,
.entry-content-wrapper .pww-cta-link {
    margin: 24px 0;
}

.entry-content-wrapper .pww-banner img {
    display: block;
    max-width: 100%;
    height: auto;
}

.entry-content-wrapper .pww-cta-link a {
    display: inline-block;
    font-weight: 700;
    color: #2997ab;
    text-decoration: none;
}

.entry-content-wrapper .pww-cta-link a:hover {
    color: #55adbd;
    text-decoration: underline;
}

/* =========================================================
   FAQや補足段落の微調整
========================================================= */

.entry-content-wrapper strong {
    font-weight: 700;
}

.entry-content-wrapper blockquote {
    border-left: 4px solid #2997ab;
    background: #f8f8f8;
    padding: 16px 20px;
    margin: 24px 0;
    color: #666666;
}

/* =========================================================
   スマホ調整
========================================================= */

@media only screen and (max-width: 767px) {
    .entry-content-wrapper h2 {
        padding: 0.7rem 1rem;
        margin: 44px 0 20px;
        font-size: 1.25em;
    }

    .entry-content-wrapper h3 {
        margin: 32px 0 14px;
        font-size: 1.08em;
    }

    .agc-conclusion,
    .pww-hint-box {
        padding: 18px 16px;
    }

    table.agc-table {
        font-size: 14px;
    }

    table.agc-table th,
    table.agc-table td {
        padding: 10px;
    }
}
