@charset "utf-8";
/* ============================================================
   新着導線
   ・.top-notice-banner  ヘッダー最上部の新着バナー
   ・.p-pickup           トップページ中盤の施工事例・ブログ
   ============================================================ */

/* ---------- ヘッダー最上部の新着バナー ---------- */
.top-notice-banner {
    background: linear-gradient(135deg, #00579e 0%, #0072bc 100%);
    padding: 8px 0;
    margin: 0;
    position: relative;
    z-index: 1000;
}

.top-notice-banner__container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.top-notice-banner__label {
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 0.08em;
    padding-right: 4px;
    border-right: 1px solid rgba(255, 255, 255, 0.45);
}

.top-notice-banner__item {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
    max-width: 100%;
}

.top-notice-banner__item:hover {
    opacity: 0.85;
}

.top-notice-banner__tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 1.1rem;
    font-weight: bold;
    margin-right: 8px;
    white-space: nowrap;
}

.top-notice-banner__tag--news {
    background: #c0392b;
}

.top-notice-banner__tag--blog {
    background: #229954;
}

.top-notice-banner__new {
    display: inline-block;
    background: #ffcc01;
    color: #14395c;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 0.06em;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 3px;
    margin-right: 8px;
}

.top-notice-banner__date {
    font-weight: bold;
    margin-right: 8px;
    font-size: 1.3rem;
    white-space: nowrap;
}

.top-notice-banner__title {
    font-size: 1.3rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 30ch;
}

.top-notice-banner__more {
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap;
    padding: 3px 12px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.top-notice-banner__more:hover {
    background-color: rgba(255, 255, 255, 0.18);
}

/* 1行に収まる幅でだけ3件目を出す（折り返しによる乱れを防ぐ） */
@media (max-width: 1500px) {
    .top-notice-banner__item.is-extra {
        display: none;
    }
}

@media (max-width: 768px) {
    .top-notice-banner__container {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .top-notice-banner__label {
        border-right: 0;
        padding-right: 0;
        font-size: 1.1rem;
        text-align: center;
    }

    .top-notice-banner__item {
        padding: 3px 0;
    }

    .top-notice-banner__title {
        font-size: 1.2rem;
        max-width: none;
    }

    .top-notice-banner__date {
        font-size: 1.2rem;
    }

    .top-notice-banner__more {
        align-self: center;
    }
}

/* ---------- トップページ中盤：施工事例・ブログ ---------- */
.p-pickup {
    background-color: #F8F8F8;
}

.p-pickup .c-section-title {
    margin-bottom: 30px;
}

.p-pickup__lead {
    text-align: center;
    font-size: 1.6rem;
    color: #555;
    margin-bottom: 32px;
    line-height: 1.8;
}

.p-pickup__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.p-pickup__item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.p-pickup__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.p-pickup__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.p-pickup__img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: #eee;
}

.p-pickup__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.p-pickup__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ffcc01;
    color: #14395c;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 0.06em;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 3px;
}

.p-pickup__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px 18px 20px;
}

.p-pickup__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.p-pickup__tag {
    display: inline-block;
    background: #229954;
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1;
    padding: 5px 10px;
    border-radius: 3px;
}

.p-pickup__date {
    font-size: 1.2rem;
    color: #999;
}

.p-pickup__title {
    color: #0068C0;
    font-size: 1.7rem;
    font-weight: bold;
    line-height: 1.5;
    margin: 0 0 10px;
}

.p-pickup__text {
    font-size: 1.4rem;
    color: #666;
    line-height: 1.8;
    margin: 0 0 14px;
}

.p-pickup__read {
    margin-top: auto;
    align-self: flex-start;
    font-size: 1.3rem;
    font-weight: bold;
    color: #0068C0;
}

.p-pickup__read::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-top: 2px solid #0068C0;
    border-right: 2px solid #0068C0;
    transform: rotate(45deg);
    margin-left: 8px;
    vertical-align: middle;
}

.p-pickup__more {
    text-align: center;
    margin-top: 36px;
}

.p-pickup__more-btn {
    display: inline-block;
    min-width: 280px;
    padding: 16px 40px;
    background-color: #0068C0;
    color: #fff;
    font-size: 1.6rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    transition: background-color 0.3s ease;
}

.p-pickup__more-btn:hover {
    background-color: #00579e;
}

@media (max-width: 980px) {
    .p-pickup__list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .p-pickup__item:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .p-pickup__list {
        grid-template-columns: 1fr;
    }

    .p-pickup__item:last-child:nth-child(odd) {
        grid-column: auto;
    }

    .p-pickup__lead {
        font-size: 1.5rem;
        text-align: left;
        margin-bottom: 24px;
    }

    .p-pickup__more-btn {
        min-width: 0;
        width: 100%;
        padding: 16px 20px;
    }
}
