/*
Theme Name: twentyseventeen_child_v2
Template: twentyseventeen
Description: pet-sumu.jp child theme v2. Adds "ペットライフマガジン" section (case D layout). Inherits everything from twentyseventeen_child v2.4.
Version: 2.5
*/


/* ===== existing rules (from v2.4) ===== */

.topSearch {
    width: 1000px;
    margin: 0 auto;
    position: relative;
    top: -900px;
    z-index: 1000;
}

.topSearch ul {
    position: absolute;
    top: 20px;
    left: 350px;
}

.topSearch li {
    margin: 0;
    padding: 5px!important;
    float: left;
}

.topSearch select.sf-input-select {
    font-size: 30px;
}


/* ============================================================
   Pet Life Magazine — Case D section styles
   既存ブランド変数 (#87c2be / #ffdfa1 / #e67e22) に準拠
   ============================================================ */

.petsumu-mag {
    max-width: 1080px;
    margin: 40px auto;
    padding: 0 16px;
    box-sizing: border-box;
    font-size: 16px;
    color: #333;
    line-height: 1.7;
}

/* Section header bar — replicates h2.widget-title */
.petsumu-mag__head {
    background: #87c2be url('/wp-content/uploads/img-paw.png') no-repeat 14px center;
    background-size: 30px 30px;
    color: #fff;
    padding: 14px 20px 14px 56px;
    border-radius: 4px 4px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.08);
    box-sizing: border-box;
}

.petsumu-mag__title {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.petsumu-mag__title-jp {
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.petsumu-mag__title-en {
    font-size: 10px;
    letter-spacing: 2px;
    opacity: 0.85;
    margin-top: 2px;
}

.petsumu-mag__title-sub {
    font-size: 11px;
    opacity: 0.85;
    margin-top: 3px;
}

.petsumu-mag__more {
    color: #fff;
    font-size: 13px;
    text-decoration: none;
    opacity: 0.95;
}

.petsumu-mag__more:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Body wrapper — replicates entry-content h2 border pattern */
.petsumu-mag__body {
    background: #fff;
    border: 1px solid #ffdfa1;
    border-top: none;
    border-bottom: 4px solid #ffdfa1;
    padding: 24px;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.06);
}

/* Category chips */
.petsumu-mag__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-bottom: 14px;
    border-bottom: 1px dashed #d4d2c8;
    margin: 0 0 18px;
    list-style: none;
}

.petsumu-mag__tag {
    background: #f5f3ed;
    color: #5a857f;
    font-size: 13px;
    font-weight: bold;
    padding: 4px 14px;
    border-radius: 14px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.petsumu-mag__tag:hover,
.petsumu-mag__tag.is-active {
    background: #87c2be;
    color: #fff;
}

/* Grid: featured + sub list */
.petsumu-mag__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 28px;
    align-items: start;
}

/* Featured article */
.petsumu-mag__feat {
    margin: 0;
}

.petsumu-mag__feat-thumb {
    display: block;
    position: relative;
    height: 220px;
    border-radius: 4px;
    overflow: hidden;
    background: #87c2be center/cover no-repeat;
}

.petsumu-mag__feat-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.petsumu-mag__feat-pick {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ffdfa1;
    color: #5a4a1a;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.petsumu-mag__feat-cat {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(255,255,255,0.95);
    color: #3a8d88;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 10px;
    border-radius: 2px;
}

.petsumu-mag__feat-title {
    font-size: 18px;
    font-weight: bold;
    line-height: 1.55;
    color: #333;
    margin: 14px 0 8px;
}

.petsumu-mag__feat-title a {
    color: inherit;
    text-decoration: none;
}

.petsumu-mag__feat-title a:hover {
    color: #3a8d88;
}

.petsumu-mag__feat-excerpt {
    font-size: 13px;
    line-height: 1.75;
    color: #666;
    margin: 0 0 10px;
}

.petsumu-mag__feat-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 12px;
    color: #888;
}

.petsumu-mag__feat-meta-dot {
    width: 3px;
    height: 3px;
    background: #bbb;
    border-radius: 50%;
}

.petsumu-mag__feat-link {
    color: #e67e22;
    font-weight: bold;
    text-decoration: none;
}

.petsumu-mag__feat-link:hover {
    text-decoration: underline;
}

/* Sub article list */
.petsumu-mag__sublist {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.petsumu-mag__sub {
    display: flex;
    gap: 12px;
    padding: 8px 4px;
    border-bottom: 1px solid #f0eee5;
    align-items: flex-start;
    transition: background 0.15s;
}

.petsumu-mag__sub:last-child {
    border-bottom: none;
}

.petsumu-mag__sub:hover {
    background: #fafaf7;
}

.petsumu-mag__sub-thumb {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 3px;
    overflow: hidden;
    background: #87c2be center/cover no-repeat;
    position: relative;
    display: block;
}

.petsumu-mag__sub-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.petsumu-mag__sub-tag {
    position: absolute;
    top: 4px;
    left: 4px;
    background: rgba(255,255,255,0.95);
    color: #3a8d88;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 2px;
}

.petsumu-mag__sub-body {
    flex: 1;
    min-width: 0;
}

.petsumu-mag__sub-title {
    font-size: 14px;
    font-weight: bold;
    line-height: 1.55;
    color: #333;
    margin: 0;
}

.petsumu-mag__sub-title a {
    color: inherit;
    text-decoration: none;
}

.petsumu-mag__sub-title a:hover {
    color: #3a8d88;
}

.petsumu-mag__sub-meta {
    font-size: 11px;
    color: #888;
    margin-top: 4px;
}

/* Bottom CTA */
.petsumu-mag__cta {
    margin-top: 20px;
    background: #e67e22;
    color: #fff;
    text-align: center;
    padding: 14px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: bold;
    display: block;
    text-decoration: none;
    transition: background 0.15s;
}

.petsumu-mag__cta:hover {
    background: #d76d11;
    color: #fff;
    text-decoration: none;
}

/* Empty state */
.petsumu-mag__empty {
    padding: 32px;
    text-align: center;
    color: #888;
    font-size: 13px;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1023px) {
    .petsumu-mag {
        max-width: 720px;
    }
    .petsumu-mag__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .petsumu-mag__feat-thumb {
        height: 200px;
    }
    .petsumu-mag__sublist {
        gap: 4px;
    }
}

@media (max-width: 767px) {
    .petsumu-mag {
        margin: 24px auto;
        padding: 0 12px;
    }
    .petsumu-mag__head {
        padding: 12px 16px 12px 50px;
        background-position: 12px center;
        background-size: 26px 26px;
    }
    .petsumu-mag__title-jp {
        font-size: 15px;
    }
    .petsumu-mag__title-sub {
        display: none;
    }
    .petsumu-mag__body {
        padding: 16px 14px;
    }
    .petsumu-mag__tags {
        gap: 4px;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
        margin: 0 -2px 14px;
    }
    .petsumu-mag__tag {
        font-size: 12px;
        padding: 3px 11px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .petsumu-mag__feat-thumb {
        height: 160px;
    }
    .petsumu-mag__feat-title {
        font-size: 15px;
        margin: 10px 0 6px;
    }
    .petsumu-mag__feat-excerpt {
        font-size: 12px;
    }
    .petsumu-mag__sub-thumb {
        width: 56px;
        height: 56px;
    }
    .petsumu-mag__sub-title {
        font-size: 12px;
    }
    .petsumu-mag__cta {
        font-size: 13px;
        padding: 11px;
    }
}
