@charset "utf-8";

.din-normal {
    font-family: "din-2014", sans-serif;
    font-weight: 400;
    font-style: normal;
}
.din-bold {
    font-family: "din-2014", sans-serif;
    font-weight: 700;
    font-style: normal;
}
.din-ex-bold {
    font-family: "din-2014", sans-serif;
    font-weight: 800;
    font-style: normal;
}

 #mainvisual {
    position: relative;
    overflow: hidden;
    padding: 170px 20px 0px;
    color: #333;
    background-color: var(--bg-color);
    min-height: 600px;
 }

    /* ▼ ストライプ三角形（左上→右下） */
    #mainvisual::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--main-color);
    background-image: repeating-linear-gradient(
        to right,
        #ffffff36 0px,
        #ffffff36 15px,
        transparent 15px,
        transparent 47px
    );
    clip-path: polygon(0 0, 85% 0, 0 25%);
    z-index: 2;
    }

    /* ▼ オレンジ三角形（右上→左下） → 上に重ねる */
    #mainvisual::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--sub-color);
    clip-path: polygon(100% 0, 100% 30%, 35% 0);
    z-index: 1;
    }

    /* テキストなどは最前面に */
    #mainvisual > * {
    position: relative;
    z-index: 3;
    }

    #mainvisual img {
        width: 100%;
        max-width: 1200px;
    }


    /* コンテンツ */
    .dj-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    gap: 40px;
    }

    .dj-text, .dj-image {
    flex: 1 1 300px;
    padding: 20px;
    }

    .dj-image img {
    max-width: 100%;
    height: auto;
    }

    #djsection {
    position: relative;
    padding: 120px 20px;
    overflow: visible;
    color: #333;
    }

    /* SVG背景 */
    #dj-bg2 {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
        pointer-events: none;
    }

    /* ストライプ重ね */
    #djsection::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--main-color);
        background-image: repeating-linear-gradient(
            to right,
            #ffffff36 0px,
            #ffffff36 15px,
            transparent 15px,
            transparent 47px
        );
        clip-path: polygon(0 0, 100% 25%, 0 40%);
        z-index: -1;
        pointer-events: none;
    }

    /* コンテンツ */
    #djsection .dj-inner {
        position: relative;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 40px;
        z-index: 2;
    }

    .dj-content {
        display: grid;
        grid-template-columns: 300px .8fr;
        align-items: center;
        justify-content: space-around;
    }

    #djsection .dj-image img {
        max-width: 100%;
        height: auto;
    }
    .txt-time {
        font-size: 3rem;
        line-height: normal;
    }

    .fadein-bottom {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.6s ease-out;
        transition-delay: 0s;
    }

    .fadein-bottom.show {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.5s;
    }

    .btn-main {
        position: relative;
        padding-right: 50px; /* 矢印分の余白 */
        font-size: 28px;
        font-weight: bold;
        background-color: white;
        color: var(--main-color);
        border: 2px solid var(--main-color);
        cursor: pointer;
    }
    .btn-sub {
        position: relative;
        font-size: 28px;
        font-weight: bold;
        background-color: white;
        color: var(--main-color);
        border: 2px solid var(--main-color);
        cursor: pointer;
    }
    .btn-main,
    .btn-sub:hover {
        color: #143058;
    }

    .btn-main::after {
        content: url('../svg/icon_arrow.svg'); /* 矢印画像のURLをここに指定 */
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        height: auto;
    }
    #topics {
        overflow-x: hidden;
    }
    .topics-content a:hover{
        opacity: 1;
    }

    .topics-time {
        font-size: 2rem;
        text-align: right;
        margin-bottom: 7px;
    }
    .topics-text {
        margin-top: 1.5rem;
        margin-left: .6rem;
        font-size: 1rem;
        line-height: normal;
        word-break: break-all;
    }
    .topics-img {
        box-shadow: 10px 10px 0px var(--main-color);
        height: 295px;
        width: 100%;
        overflow: hidden;
        position: relative;
    }
    .topics-img img {
        height: 100%;
        width: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.3s ease; /* アニメーション */
    }

    .topics-img:hover img {
        transform: scale(1.1);
    }

    .sub-title {
        font-size: 1.3rem;
        color: var(--main-color);
        padding: 0.5em 0;
        border-top: solid 3px var(--main-color);
        border-bottom: solid 3px var(--main-color);
    }
    
    #footer {
        position: relative;
        overflow: hidden;
        color: white; /* 任意：背景と区別するため */
    }
    #footer::before {
        content: "";
        position: absolute;
        inset: 0; /* top: 0; right: 0; bottom: 0; left: 0 と同じ */
        background-color: var(--main-color);
        background-image: repeating-linear-gradient(
            to right,
            #ffffff36 0px,
            #ffffff36 15px,
            transparent 15px,
            transparent 47px
        );
        clip-path: polygon(100% 100%, -60% 100%, 100% 2%);
        z-index: 0;
    }
    .footer-content {
        position: relative;
        z-index: 1;
        padding: 2rem;
        text-align: center;
        min-height: 300px;
    }

    .p-share {
        border: white 1px solid;
        border-radius: 70px;
        height: 50px;
        width: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 1rem;
    }
    .p-share img {
        height: 20px;
    }


    @media screen and (max-width: 768px){
        .txt-time {
            font-size: 2.3rem;
        }
        .topics-time {
            font-size: 1.5rem;
        }
        .topics-list-text {
            font-size: .8rem;
        }
        .dj-content {
            grid-template-columns: 1fr;
        }
        .btn-main {
            font-size: 22px;
        }
        #mainvisual {
            padding: 100px 20px 0px;
        }
        #mainvisual::before {
           clip-path: polygon(0 0, 100% 0, 0 15%);
        }
        #mainvisual::after {
            clip-path: polygon(100% 0, 100% 15%, 20% 0);
        }
        #djsection::after {
            clip-path: polygon(0 35px, 100% 20%, 0 30%);
        }
        #footer::before {
           clip-path: polygon(100% 100%, -150% 100%, 100% 2%);
        }
        
    }

    #topic-bg{
        position: absolute;
        top: auto;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -10;
        pointer-events: none;
    }
    .topics-list-text {
        margin-top: 1.5rem;
        margin-left: .6rem;
        margin-bottom: 2rem;
        line-height: normal;
        word-break: break-all;
    }
    .topics-list-img {
        box-shadow: 10px 10px 0px var(--main-color);
        height: auto;
        width: 100%;
    }
    .topics-list-img img {
        height: 100%;
        width: 100%;
    }