/* 共通 */
.tpd-container {
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 10px;
}

.tpd-banners{
    margin: -1.2rem;
}

.tpd-banners-wrap {
position: relative;
    width: 100%;
    margin: auto;
    overflow: hidden;
    border-radius: 6px;
    aspect-ratio: 16 / 9;
    display: block;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 3rem;
}

.tpd-banners-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit; /* 親のbackground-imageを継承 */
    filter: blur(15px);
    z-index: 1;
}

.tpd-banner {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    filter: blur(15px);
}

.tpd-banner.active {
    opacity: 1;
    position: relative;
    z-index: 2;
    filter: none;
}

.tpd-banner img {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: transparent;
    border-radius: 6px;
    z-index: 3;
}

/* ナビボタン */
.tpd-banner-nav {
    text-align: center;
    margin-top: 10px;
}

.tpd-banner-nav button {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #bbb;
    border: none;
    margin: 0 7px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    padding: 0;
    box-sizing: border-box;
    display: inline-block;
}

.tpd-banner-nav button.active {
    background-color: #555;
}


/* --- ニュース・新着記事 --- */
.tpd-news-wrap ul,
.tpd-latest-wrap ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 20px 0 0;
    list-style: none;
}

.tpd-news-wrap li,
.tpd-latest-wrap li {
    flex: 1 1 calc(33.333% - 10px); /* 最大3列 */
    box-sizing: border-box;
}

.tpd-news-wrap li a,
.tpd-latest-wrap li a {
    display: block;
    text-align: center;
    text-decoration: none;
}

.tpd-news-wrap img,
.tpd-latest-wrap img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 5px;
}

.tpd-title {
    display: block;
    font-size: 14px;
    margin-bottom: 3px;
    color: #333;
}

.tpd-date {
    font-size: 12px;
    color: #666;
}

.tpd-excerpt{
    color: #333;
}

/* --- レスポンシブ --- */
@media screen and (max-width: 768px) {
    .tpd-news-wrap li,
    .tpd-latest-wrap li {
        flex: 1 1 calc(50% - 10px);
    }
    .tpd-banner { flex: 0 0 90%; }
}

@media screen and (max-width: 480px) {
    .tpd-news-wrap li,
    .tpd-latest-wrap li { flex: 1 1 100%; }
    .tpd-banner { flex: 0 0 95%; }
}