@charset "UTF-8";

/*
Theme Name: aichi-deeptech.com
*/

html {
    scroll-behavior: smooth;
}

:target {
    scroll-margin-top: 90px;
}

@media (max-width: 767px) {
    :target {
        scroll-margin-top: 60px;
    }
}

a {
    transition: all 0.3s ease-in-out;
}

a:hover {
    transition: all 0.3s ease-in-out;
    opacity: 0.6;
}

/* main post
--------------------------------------------------------- */

.post-content a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.news-post .flex {
    display: flex;
}

.news-post {
    position: relative;
}

.news-post .bg-wh {
    background-color: #fff;
    padding: 60px 30px;
    margin-top: 100px;
    margin-top: -40px;
    z-index: 10;
}

.news-date {
    margin-top: 20px;
    font-size: 14px;
    color: #6d6d6d;
}

.post-title {
    font-weight: bold;
    font-size: 26px;
    margin: 11px 0 20px;
}

.cat-sns-wrap {
    justify-content: space-between;
    align-items: flex-end;
    margin: 5px 0 30px;
    padding: 0 0 5px 0;
    border-bottom: 1px solid #CD2C25;
}

.news-categories {
    padding-bottom: 5px;
}

.sns-list {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.sns-list li {
    width: 40px;
}

.sns-list a {
    display: block;
}

.sns-list img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: contain;
}

.news-news {
    position: relative;
    padding-bottom: 200px;
    justify-content: space-between;
}

.main-post {
    width: 70%;
}

.post-cat {
    gap: 15px;
    flex-wrap: wrap;
}

.post-cat a {
    display: inline-block;
    border: 1px solid #FBD858;
    padding: 5px 10px;
    font-size: 12px;
    text-decoration: none;
    text-align: center;
}

.news-index,
.manager-box {
    margin: 20px 0 40px;
    padding: 20px;
    border: 1px solid #ccd2ce;
    font-weight: bold;
    font-size: 20px;
}

.news-index ul {
    padding-left: 50px;
    list-style: disc;
}

.news-index li {
    font-weight: normal;
    font-size: 14px;
    line-height: 32px;
}

.manager-box {
    display: flex;
    gap: 15px;
    font-size: 18px;
    margin: 0 0 20px 0;
}

.news-manager-title {
    margin-top: 60px;
    margin-bottom: 15px;
    font-weight: bold;
}

#menu-news_tag {
    margin-top: 0 !important;
}

.manager-box img {
    width: 90px;
    max-width: 30%;
    height: auto;
    object-fit: contain;
}

.manager-position,
.manager-discription {
    font-weight: normal;
    font-size: 12px;
}

.manager-discription p:not(:first-child),
.manager-discription br {
    display: none;
}

.news-btn-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5%;
    padding: 60px 0;
    margin: 0 auto;
    width: 100%;
    position: absolute;
    bottom: 0;
}

.news-btn-wrap li {
    width: calc(100% / 3);
    text-align: center;
}

.news-btn-wrap a {
    position: relative;
    text-decoration: none;
}

.news-btn-prev a::before,
.news-btn-next a::after {
    content: "";
    position: absolute;
    top: 55%;
    transform: translateY(-50%);
    width: 15px;
    height: 13px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.news-btn-prev a::before {
    background-image: url(/k459mih3/wp-content/uploads/2025/06/icon-arrow-post.png);
    left: -25px;
}

.news-btn-next a::after {
    background-image: url(/k459mih3/wp-content/uploads/2025/06/icon-arrow-post2.png);
    right: -25px;
}

.news-btn-back .btn-submit {
    padding-top: 17px;
    padding-bottom: 17px;
}

.news-btn-back .btn-submit::after {
    content: none;
}


/* side nav
--------------------------------------------------------- */

.side-nav {
    width: 25%;
    min-width: 250px;
    padding-left: 20px;
    font-size: 12px !important;
}

.side-nav ul {
    margin-bottom: 30px;
}

.side-nav-title {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 15px;
    color: #070446;
    border-radius: 3px;
    background: #f7f9fa;
    width: 100%;
    padding: 7px 15px;
}

.side-nav-post .flex {
    gap: 10px;
    align-items: flex-start;
}

.side-nav-img,
.side-nav-post .flex>div {
    width: calc(50% - 5px);
}

.side-nav-post .news-date {
    margin-top: 0;
    font-size: 12px;
}

.side-nav img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

.side-nav .news-tags {
    margin: 5px 0 10px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 10px;
}

.side-nav .post-discription {
    color: #333533;
    margin: 5px 0 20px 0;
    text-decoration: underline;
}

.side-nav-cat ul {
    list-style: disc;
    padding-left: 30px;
}

.side-nav-cat li {
    margin-bottom: 10px;
    color: #070446;
}

.side-nav-cat a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* content
--------------------------------------------------------- */
.post-content p {
    margin-bottom: 30px;
}

.post-content h2 {
    font-weight: bold;
    font-size: 24px;
    color: #fff;
    margin-bottom: 40px;
    padding: 13px 30px;
    background-color: #070446;
    position: relative;
}

.post-content h2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 35px;
    width: 60px;
    height: 5px;
    background-color: #FFF94D;
}

.post-content h3 {
    display: block;
    text-align: left;
    font-weight: bold;
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 15px;
    padding-left: 60px;
    position: relative;
    color: #070446;
}

.post-content h3::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 41px;
    height: 3px;
    background-color: #070446;
}

.post-content img {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 40px;
}

.post-content ul {
    list-style: disc;
    padding-left: 30px;
}

/* related post
--------------------------------------------------------- */
.related-post-title {
    font-weight: 500;
    font-size: 32px;
    margin-bottom: 48px;
}

.related-post .news-list {
    margin-top: 48px;
}

@media screen and (max-width:780px) {
    .news-news {
        flex-direction: column;
        padding-bottom: 0;
    }

    .side-nav,
    .main-post {
        width: 100%;
        padding-top: 0;
        padding-left: 0;
    }

    .news-post .bg-wh {
        padding: 40px 20px;
    }

    .news-btn-wrap {
        position: relative;
    }

    .news-btn-wrap li {
        width: auto;
    }

    .news-btn-wrap a {
        font-size: 12px;
    }

    .news-btn-wrap .btn-submit {
        width: fit-content;
        min-width: unset;
        padding: 5px 15px;
        font-size: 12px;
        margin: 0;
    }

    .post-content h2 {
        font-size: 20px;
    }

    .post-content h3 {
        font-size: 18px;
    }

    .related-post-title {
        font-size: 24px;
    }

}

/* archive
--------------------------------------------------------- */
/* news */
.news-archive .inner {
    max-width: 1000px;
}

.news-list {
    margin: 80px 0;
    gap: 50px;
    flex-wrap: wrap;
    position: relative;
}

.news-list li {
    width: calc(100% / 3 - 50px * 2 / 3);
    padding-bottom: 50px;
    position: relative;
}

.news-archive .news-list li {
    width: calc(100% / 2 - 50px / 2);
}

.news-list img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.news-archive .news-date {
    color: #fff;
}

.news-tags {
    margin: 5px 0 10px;
    display: flex;
    flex-wrap: wrap;
}

.news-tags span {
    font-weight: 500;
    font-size: 10px;
}

.news-list .link {
    position: absolute;
    bottom: 0;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.link-arrow {
    position: relative;
}

.link-arrow::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translateY(-40%);
    width: 10px;
    height: 16px;
    background: url(/k459mih3/wp-content/uploads/2025/06/icon-arrow-nv.png) no-repeat center / contain;
}

.link-arrow-wh::after {
    background: url(/k459mih3/wp-content/uploads/2025/06/icon-arrow-wh.png) no-repeat center / contain;
}

.news-cats {
    margin-top: 60px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.news-cats a {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    background-color: #CCD2CE;
    line-height: 1.3;
}

.news-cats a.is-stay {
    color: #070446;
    background-color: #fff;
}

.news-tags a,
.card-link {
    text-decoration: none;
}

.news-tags a:hover,
.card-link:hover {
    opacity: 0.6;
}

.news-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    overflow: hidden;
}

.news-img img {
    transition: 0.3s;
}

.news-archive .news-list a:hover img {
    transform: scale(1.03);
    opacity: 0.7;
    transition: 0.3s;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
}

.pagination a,
.pagination span {
    text-decoration: none;
    background-color: #999;
    border-radius: 50%;
    color: #fff;
    width: 25px;
    height: 25px;
    line-height: 25px;
    display: block;
}

.pagination a:hover,
.pagination span {
    background-color: #333;
}

.pagination .prev,
.pagination .next {
    background-color: transparent !important;
    color: #333;
}

.pagination .prev:hover,
.pagination .next:hover {
    opacity: 0.6;
}

@media screen and (max-width: 768px) {
    .news-list li {
        width: calc(100% / 2 - 50px / 2);
    }
}

@media screen and (max-width: 500px) {
    .news-list li {
        width: 100%;
    }

    .news-cats {
        text-align: left !important;
    }

    .news-cats a {
        margin: 5px 20px 5px 0px;
    }

}