:root {
    --ff-inter-serif: "Inter", sans-serif;
    --ff-montserrat-serif: "Montserrat", sans-serif;
}
.l-contents {
    margin-bottom: 0;
}
/* h1タイトル */
@media (min-width: 768px) {
    .p-tech-explanation-kv {
        height: 242px;
    }
    .p-tech-explanation-kv__txt {
        margin-top: 10px;
    }
    .p-tech-explanation-kv::before {
        background-image: url(/corporate/technology/rd/img/tech_article/img_main_ttl_bg_pc.png);
        background-size: auto;
    }
}
@media screen and (max-width: 767px) {
    .p-tech-explanation-kv {
        height: 135px;
        background-color: #001020;
    }
    .p-tech-explanation-kv__container {
        margin-inline: auto 20px;
        min-width: 215px;
        width: calc(215 / var(--design-width) * 100%);
    }
    .p-tech-explanation-kv::before {
        background-image: url(/corporate/technology/rd/img/tech_article/img_main_ttl_bg_smt.png);
        background-size: contain;
    }
    .p-tech-explanation-kv__ttl {
        font-size: calc(24 / var(--root-fz) * 1rem);
        line-height: 1.31;
    }
    .p-tech-explanation-kv__txt {
        font-size: calc(12 / var(--root-fz) * 1rem);
    }
}
@media screen and (max-width: 360px) {
    .p-tech-explanation-kv__container {
        margin-inline: auto 10px;
        min-width: 185px;
        width: calc(185 / var(--design-width) * 100%);
    }
    .p-tech-explanation-kv__ttl {
        font-size: calc(21 / var(--root-fz) * 1rem);
    }
}

/* 人気記事ランキング */
.ranking-cards-wrap {
    margin-top: 40px;
}
.ranking-cards {
    display: flex;
    gap: 20px;
}
.ranking-card{
    width: calc((100% - 40px) / 3);
    border: 1px solid var(--color-base-1);
    border-radius: 10px;
    background: white;
}
.ranking-card a{
    display: block;
    padding: 30px;
    height: 100%;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-family: var(--ff-noto-serif);
    color: var(--color-base-1);
    text-decoration: none;
}
.ranking-card .ranking-card-image-box {
    position: relative;
}
.ranking-number {
    position: absolute;
    left: 0;
    bottom: 0;
    background-color: #fff;
    padding: 10px 15px;
    font-weight: bold;
    font-size: calc(20 / var(--root-fz) * 1rem);
    line-height: 1;
}
.ranking-card .ranking-card-image {
    border-radius: 10px;
    overflow: hidden;
}
.ranking-card .ranking-card-image img{
    width: 100%;
}
.ranking-card-title {
    margin-top: 20px;
    font-weight: 700;
    line-height: 1.4;
    font-size: calc(20 / var(--root-fz) * 1rem);
}
@media (min-width: 768px) {
    .ranking-cards {
        flex-wrap: wrap;
        margin-inline: auto;
        padding-inline: 20px;
        max-width: calc((var(--contents-width) + 40) * 1px);
    }
    .ranking-card a:hover{
        opacity: .7;
    }
}
@media screen and (max-width: 767px) {
    .ranking-cards {
        padding-bottom: 20px;
        display: grid;
        grid-auto-flow: column;
        gap: 20px;
    }
    .ranking-card {
        position: relative;
        width: 247px;
    }
    .ranking-cards-wrap .ranking-card:last-child::after {
        position: absolute;
        display: block;
        content: "";
        top: 0;
        left: 100%;
        height: 1px;
        width: 20px;
        background-color: transparent;
    }
    .ranking-card a {
        padding: 20px;
        cursor: pointer;
    }
    .ranking-card-title {
        font-size: calc(14 / var(--root-fz) * 1rem);
    }
    .ranking-cards-wrap .p-top-list-2__track {
        background-color: #EFEFEF;
    }
    .ranking-cards-wrap .p-top-list-2__scrollbar::before {
        height: 6px;
    }
}


/* フィルター機能 */
.background-gray-area{
    position: relative;
    z-index: 0;
    margin-top: 60px;
    padding-bottom: 60px;
}
.background-gray-area::after {
    content: "";
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-white-3);
    z-index: -1;
}
.filter-area {
}
.filter-header {
    background: #333;
    color: white;
    padding: 12px 0;
    text-align: center;
    font-weight: bold;
    font-size: calc(16 / var(--root-fz) * 1rem);
    border-radius: 10px 10px 0 0;
    line-height: 1.5;
}
.filter-content {
    background: white;
    border: 1px solid #333;
    border-top: none;
    border-radius: 0 0 10px 10px;
    padding: 20px 50px;
}
.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 20px;
}
.filter-row:first-child {
    margin-top: 0;
}
.filter-tag {
    background: #f2f2f2;
    padding: 5px 7px;
    border-radius: 4px;
    font-family: 'Noto Sans CJK JP', sans-serif;
    font-weight: 500;
    font-size: calc(12 / var(--root-fz) * 1rem);
    color: #333;
    text-decoration: none;
    line-height: 1.5;
    white-space: nowrap;
    min-width: 50px;
    text-align: center;
}
.filter-tag.related {
    background: #ffd1d1;
}
.filter-tag.disabled {
    background: #f0f0f0;
    color: #bbb;
    cursor: not-allowed;
    pointer-events: none;
}
.filter-tag:hover,
.filter-tag.related:hover,
.filter-tag.active {
    color: white;
    background: var(--color-red-2);
}
.filter-more-area {
    text-align: center;
    margin-top: 20px;
}
.filter-more-btn {
    color: #666;
    text-align: center;
    font-size: calc(12 / var(--root-fz) * 1rem);
    position: relative;
    padding-right: 20px;
}
.filter-more-btn:before {
    content: '';
    width: 6px;
    height: 6px;
    border: 0;
    border-bottom: solid 1px #666;
    border-right: solid 1px #666;
    transform: rotate(45deg);
    position: absolute;
    top: -3px;
    right: 0;
    bottom: 0;
    margin: auto;
}
.filter-more-hide {
    display: none;
    margin-top: 20px;
}

@media (min-width: 767px) {
    .filter-row{
        justify-content: center;
    }
    
}
@media screen and (max-width: 768px) {
    .background-gray-area::after {
        top: 200px;
    }
    .filter-header {
        padding: 9px 0;
        font-size: calc(12 / var(--root-fz) * 1rem);
    }
    .filter-content {
        border-radius: 0 0 6px 6px;
        padding: 16px 30px;
    }
    .filter-row{
        margin-top: 10px;
        gap: 10px;
    }
    .filter-more-area {
        margin-top: 10px;
    }
}


/* 記事一覧 */
.articles-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}
.articles-grid .no-articles-message {
    width: 100%;
    margin-top: 20px;
    text-align: center;
    font-size: calc(20 / var(--root-fz) * 1rem);
    font-family: 'Noto Sans CJK JP', sans-serif;
    font-weight: bold;
}
.article-card {
    background: white;
    border: 1px solid var(--color-base-1);
    border-radius: 10px;
    display: flex;
    gap: 20px;
}
.article-card a {
    position: relative;
    display: flex;
    gap: 20px;
    padding: 20px;
    width: 100%;
    text-decoration: none;
    color: var(--color-base-1);
}
.article-icon-new {
    position: absolute;
    top: -1px;
    left: -1px;
    background-color: var(--color-red-2);
    color: white;
    font-family: var(--ff-montserrat-serif);
    font-size: calc(16 / var(--root-fz) * 1rem);
    font-weight: bold;
    padding: 8px 14px;
    z-index: 1;
    line-height: 1;
}
.article-icon-new::after {
    content: "";
    position: absolute;
    top: 0;
    right: -9px;
    width: 10px;
    height: 100%;
    background-color: var(--color-red-2);
    clip-path: polygon(0 0, 0% 100%, 60% 0);
    z-index: 1;
}
.article-image {
    border-radius: 10px;
    overflow: hidden;
}
.article-image img{
    width: 100%;
}
.article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.article-date {
    font-size: calc(15 / var(--root-fz) * 1rem);
    color: var(--color-gray-2);
    line-height: 1;
}
.article-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    font-weight: bold;
    font-size: calc(20 / var(--root-fz) * 1rem);
    color: var(--color-base-1);
    line-height: 1.4;
    margin: 0;
    flex: 1;
    font-family: var(--ff-noto-serif);
}
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0 10px;
}
.article-tag {
    font-weight: 500;
    font-size: calc(12 / var(--root-fz) * 1rem);
    color: #666;
    line-height: 1.5;
}
@keyframes loop {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
.article-btn-area {
    margin-top: 40px;
    text-align: center;
}
.article-btn-more {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 352px;
    overflow: hidden;
    margin: 0 auto;
    border-radius: 100vw;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.5s ease;
}
.article-btn-more::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 380%;
    height: 100%;
    background: linear-gradient(90deg, #86F3FF 0%, #FFF 12.5%, #FF94B5 25%, #FFF 37.5%, #86F3FF 50%, #FFF 62.5%, #FF94B5 75%, #FFF 87.5%, #86F3FF 100%);
    z-index: 0;
    animation-name: loop;
    animation-duration: 4s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}
.article-btn-more span {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    margin: 3px;
    padding: 22px 22px;
    color: var(--color-base-1);
    font-size: calc(16 / var(--root-fz) * 1rem);
    background-color: #fff;
    border-radius: 100vw;
    z-index: 1;
    transition: all 0.5s ease;
}
.article-btn-more span::after {
    --s: 18px;
    content: "";
    display: inline-block;
    width: var(--s);
    height: var(--s);
    margin-left: 0.7em;
    background: url(/corporate/technology/rd/img/tech_article/icon_arrow_down.svg);
    background-size: contain;
    background-repeat: no-repeat;
    transition: all 0.5s ease;
}
.article-btn-more:hover span {
    background-color: transparent;
    color: #000;
}

@media (min-width: 767px) {
    .article-card {
        width: calc((100% - 20px) / 2);
    }
    .article-card a:hover{
        opacity: .7;
    }
    .article-image-area {
        width: 170px;
    }
}
@media screen and (max-width: 768px) {
    .articles-grid {
        gap: 10px;
    }
    .articles-grid .no-articles-message {
        font-size: calc(14 / var(--root-fz) * 1rem);
    }
    .article-card {
        width: 100%;
        border-radius: 6px;
    }
    .article-card a {
        gap: 10px;
        padding: 10px;
    }
    .article-icon-new {
        font-size: calc(11 / var(--root-fz) * 1rem);
        padding: 4px 8px;
    }
    .article-icon-new::after {
        right: -10px;
        width: 10px;
        height: 100%;
    }
    .article-image-area {
        width: 110px;
    }
    .article-image {
        border-radius: 6px;
    }
    .article-date {
        font-size: calc(10 / var(--root-fz) * 1rem);
    }
    .article-title {
        font-size: calc(12 / var(--root-fz) * 1rem);
    }
    .article-tags {
        display: flex;
        flex-wrap: wrap;
    }
    .article-tag {
        font-size: calc(10 / var(--root-fz) * 1rem);
    }
    .article-btn-more {
        width: 220px;
    }
    .article-btn-more span {
        padding: 20px;
    font-size: calc(12 / var(--root-fz) * 1rem);
    }
    .article-btn-more span::after {
        --s: 12px;
    }
}


/* Technology section */
.technology-section {
    position: relative;
    padding: 80px 0 100px;
    background-color: var(--color-red-2);
}
.technology-section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    background: linear-gradient(to right, #f9a8d4, #ffffff, #22d3ee);
    width: 100%;
    height: 20px;
}
.technology-container {
    margin: 0 auto;
    max-width: 1220px;
}
.technology-header {

}
.technology-title {
    line-height: 1;
    font-family: var(--ff-noto-serif);
    font-size: calc(90 / var(--root-fz) * 1rem);
    color: white;
}
.technology-subtitle {
    margin-top: 15px;
    font-family: var(--ff-inter-serif);
    font-weight: bold;
    font-size: calc(22 / var(--root-fz) * 1rem);
    color: white;
}
.technology-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 60px;
}
.tech-card a{
    display: block;
    text-decoration: none;
    font-family: var(--ff-inter-serif);
}
.tech-card-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.tech-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 40px;
}
.tech-card-title {
    padding-right: 34px;
    font-weight: 600;
    font-size: calc(24 / var(--root-fz) * 1rem);
    color: white;
}
.tech-card-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
}
.tech-card-description {
    font-weight: bold;
    font-size: calc(18 / var(--root-fz) * 1rem);
    color: white;
    line-height: 1.5;
}
.technology-archive {
    display: flex;
    justify-content: flex-end;
    margin-top: 40px;
}
.technology-archive a {
    display: flex;
    justify-content: flex-end;
    text-decoration: none;
    line-height: 1;
}
.technology-archive-text {
    padding-right: 10px;
    font-family: var(--ff-inter-serif);
    font-weight: 600;
    font-size: calc(16 / var(--root-fz) * 1rem);
    color: white;
}
.technology-archive-icon img{
    width: 20px;
}
@media (min-width: 767px) {
    .technology-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 40px;
        margin-top: 60px;
    }
    .tech-card {
        width: calc((100% - 80px) / 3);
        display: flex;
        flex-direction: column;
        gap: 40px;
    }
    .tech-card-image {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: calc(100% + 20px);
        margin-left: -10px;
        padding: 10px;
        overflow: hidden;
        z-index: 0;
    }
    .tech-card a:hover .tech-card-image::before,
    .tech-card a:hover .tech-card-image::after {
        --s-x: calc(100% + 10px);
        --s-y: calc(100% + 10px);
    }
    .tech-card a:hover .tech-card-image::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        display: block;
        width: 380%;
        height: 100%;
        background: linear-gradient(90deg, #86F3FF 0%, #FFF 12.5%, #FF94B5 25%, #FFF 37.5%, #86F3FF 50%, #FFF 62.5%, #FF94B5 75%, #FFF 87.5%, #86F3FF 100%);
        animation-name: loop;
        animation-duration: 4s;
        animation-iteration-count: infinite;
        animation-timing-function: linear;
    }
    .tech-card:hover .tech-card-image::after {
        opacity: 0;
    }
    .tech-card-image::before {
        --s-x: calc(100% - 10px);
        --s-y: calc(100% - 10px);
        content: "";
        position: absolute;
        top: -10px;
        left: -10px;
        display: block;
        width: var(--s-x);
        height: var(--s-y);
        background: #5299ab;
        transition: all 0.5s ease;
        z-index: -1;
    }
    .tech-card-image::after {
        --s-x: calc(100% - 10px);
        --s-y: calc(100% - 10px);
        content: "";
        position: absolute;
        bottom: -10px;
        right: -10px;
        display: block;
        width: var(--s-x);
        height: var(--s-y);
        background: #f51a77;
        transition: all 0.5s ease;
        z-index: -1;
    }
    .tech-card-image img {
        width: 100%;
        height: 100%;
        -o-object-fit: cover;
            object-fit: cover;
        transition: transform 0.5s ease;
    }
}
@media screen and (max-width: 768px) {
    .technology-section {
        padding: 40px 0 50px;
        background-color: var(--color-red-2);
    }
    .technology-section::after {
        height: 10px;
    }
    .technology-title {
        font-size: calc(45 / var(--root-fz) * 1rem);
    }
    .technology-container {
        padding: 0 20px;
    }
    .technology-subtitle {
        margin-top: 7px;
        font-size: calc(11 / var(--root-fz) * 1rem);
    }
    .technology-grid {
        gap: 20px;
        margin-top: 30px;
    }
    .tech-card {
        width: calc((100% - 20px) / 2);
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .tech-card-image {
        box-shadow: -5px -5px 0px 0px rgba(0,255,251,0.6), 5px 5px 0px 0px rgba(255,32,136,0.8);
        background-size: cover;
        background-position: center;
    }
    .tech-card-image img{
        width: 100%;
    }
    .tech-card-content {
        gap: 8px;
    }
    .tech-card-header {
        margin-top: 18px;
    }
    .tech-card-title {
        padding-right: 18px;
        font-size: calc(14 / var(--root-fz) * 1rem);
    }
    .tech-card-arrow img{
        width: 16px;
    }
    .tech-card-description {
        font-size: calc(12 / var(--root-fz) * 1rem);
    }
    .technology-archive-text {
        padding-right: 10px;
        font-size: calc(12 / var(--root-fz) * 1rem);
    }
    .technology-archive-icon img{
        width: 12px;
    }
}
