/*
Theme Name: 8の字ルートテーマ
Description: 8の字ルートテーマ
Author: kashimura co.ltd..
*/

@charset "UTF-8";

:root {
    --color-accent: #0033cc;
    --color-white: #ffffff;
    --bg-color: #e5f2ff;
    --font-weight-medium: 500;
    --font-weight-bold: 700;
    --font-weight-black: 900;
}

/* ==========================================
Base
========================================== */
body {
    font-family: "noto-sans-cjk-jp", sans-serif;
    font-weight: 400;
    font-style: normal;
    line-height: 1.8125;
    font-size: 1rem;
}

ul,
li {
    list-style: none;
}

a {
    display: inline-block;
    transition: 0.5s;
}

a:hover {
    opacity: 0.7;
}

img {
    display: inline-block;
    clear: both;
    max-width: 100%;
    height: auto;
}

/* ==========================================
共通レイアウト
========================================== */
.in {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ==========================================
共通パーツ
========================================== */
.section-title {
    font-size: 2rem;
    color: var(--color-accent);
    text-align: center;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--color-accent);
    text-align: center;
    line-height: 1;
    letter-spacing: 0.1em;
}

.page-title-section {
    margin-top: 5.75rem;
    margin-bottom: 3.4375rem;
}

.btn-more {
    min-width: 140px;
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 0 0.2em 0 1em;
    border-radius: 10px;
    font-weight: var(--font-weight-medium);
    position: relative;
}

/* アイコンのスタイル */
.btn-arrow-right::after {
    content: '〉';
    margin-left: 1em;
}

/* -----swiper フェードアニメーション ここから */
.swiper-fade {
    .swiper-slide {
        transition-property: opacity !important;

        img.animate {
            animation: kenburns 8s ease-out forwards;
        }
    }
}

@keyframes kenburns {
    0% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* swiper フェードアニメーション ここまで----- */

/* -----swiper 前、次ボタン ここから */
.swiper-button-prev,
.swiper-button-next {
    display: grid;
    place-content: center;
    width: 30px;
    height: 30px;
    cursor: pointer;

    /* 共通の疑似要素設定 */
    &::before {
        position: absolute;
        inset: 0;
        /* top, right, bottom, left: 0 の短縮記法 */
        content: "";
        border-radius: 50%;
        border: 1px solid var(--color-accent);
    }

    &::after {
        width: 8px;
        height: 8px;
        content: "";
        border: solid var(--color-accent);
        position: absolute;
        top: 50%;
    }

    /* 無効状態 */
    &.swiper-button-disabled {
        pointer-events: none;
        opacity: 0;
    }
}

/* 個別の方向設定 */
.swiper-button-prev {
    &::after {
        right: 45%;
        transform: translateY(-50%) translateX(50%) rotate(-45deg);
        border-width: 1px 0 0 1px;
    }
}

.swiper-button-next {
    &::after {
        left: 45%;
        transform: translateY(-50%) translateX(-50%) rotate(-45deg);
        border-width: 0 1px 1px 0;
    }
}

/* swiper 前、次ボタン ここまで----- */

/* ==========================================
ページ固有の特定のパーツ
========================================== */
.p-firstview {
    position: relative;

    .swiper {
        width: 100%;
        height: 780px;
    }

    .swiper-slide-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .swiper-pagination {
        display: flex;
        flex-wrap: wrap;
        column-gap: 13px;
        justify-content: center;
        margin: 27px auto 0 0;

        .swiper-pagination-bullet {
            width: 11px;
            height: 11px;
            border-radius: 50%;
            cursor: pointer;
            vertical-align: top;
            background: #b3b3b3;
        }

        .swiper-pagination-bullet-active {
            background: #0033ff
        }
    }
}

.p-firstview__content {
    width: 100%;
    position: absolute;
    bottom: 14px;
    left: 0;
    z-index: 2;
    padding-left: 11px;
}

.p-firstview__copy {
    width: 338px;
    margin-bottom: 55px;
    margin-left: 158px;

    img {
        /* SafariなどのWebkitブラウザ用 */
        -webkit-filter: drop-shadow(0px 0px 20px rgba(0, 0, 0, 0.8));
        filter: drop-shadow(0px 0px 20px rgba(0, 0, 0, 0.8));
    }
}

/* ==========================================
News Section
========================================== */
.news-section {
    padding: 5.5rem 0 7.0625rem;
}

.section-title-wrap {
    margin-bottom: 1.75rem;
}

.news-list {
    display: flex;
    flex-direction: column;
}

.news-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 2.875rem 1rem 4.875rem;
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.05em;
}

.news-item:nth-child(odd) {
    background-color: var(--bg-color);

    .news-arrow {
        background-color: var(--color-white);
    }
}

.news-date {
    min-width: 80px;
}

.news-category {
    flex-shrink: 0;
    margin-left: 1.7rem;
    margin-right: 2.9375rem;
}

.category-badge {
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 0.125px 2.3125em 0.1875em 2.25em;
    border-radius: 10px;
    white-space: nowrap;
}

.news-title {
    flex: 1;
}

.news-arrow {
    flex-shrink: 0;
    background-color: var(--bg-color);
    width: 2.625em;
    height: 2.625em;
    border-radius: 50%;
    position: relative;

    span {
        position: absolute;
        top: 50%;
        left: 62%;
        transform: translate(-50%, -50%);
        font-size: 1rem;
    }
}

.news-archive-page {
    padding-bottom: 5rem;
}

.news-archive-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 2rem;
    align-items: start;
}

.news-sidebar-card {
    background-color: #ffffff;
    border: 1px solid #d6e4ff;
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: 0 5px 20px rgba(0, 51, 204, 0.08);
}

.news-sidebar-card + .news-sidebar-card {
    margin-top: 1.5rem;
}

.news-sidebar-title {
    margin: 0 0 0.875rem;
    font-size: 1.125rem;
    color: var(--color-accent);
}

.news-filter-list,
.news-year-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    padding: 0;
    margin: 0;
}

.news-filter-list li,
.news-year-list li {
    list-style: none;
}

.news-filter-list a,
.news-year-list a {
    color: #1a1a1a;
    text-decoration: none;
    background: var(--bg-color);
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    font-size: 0.95rem;
}

.news-filter-list a.is-active,
.news-filter-list a:hover,
.news-year-list a:hover {
    background-color: var(--color-accent);
    color: #ffffff;
}

.pagnav {
    margin-top: 2rem;
}

.pagination,
.news-archive-pagination .page-numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination a,
.pagination span,
.news-archive-pagination .page-numbers a,
.news-archive-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.65rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #d6e4ff;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: var(--font-weight-medium);
}

.pagination a:hover,
.news-archive-pagination .page-numbers a:hover {
    background: var(--bg-color);
}

.pagination .current,
.news-archive-pagination .page-numbers .current {
    background: var(--color-accent);
    color: #ffffff;
    border-color: var(--color-accent);
}

.news-archive-empty {
    margin: 0;
    background: #f5f8ff;
    border-radius: 14px;
    padding: 1.5rem;
}

.news-single-page {
    padding-bottom: 5rem;
}

.news-single-layout {
    max-width: 900px;
}

.news-single-header {
    margin-bottom: 1.75rem;
}

.news-single-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5efff;
}

.news-single-date {
    font-weight: var(--font-weight-bold);
    color: var(--color-accent);
    letter-spacing: 0.04em;
}

.news-single-content {
    line-height: 2;
    color: #20304a;
}

.news-single-content > *:first-child {
    margin-top: 0;
}

.news-single-content p {
    margin: 0 0 1.25rem;
}

.news-single-content h2,
.news-single-content h3,
.news-single-content h4 {
    margin: 2rem 0 1rem;
    color: #0f2442;
}

.news-single-content ul,
.news-single-content ol {
    margin: 0 0 1.5rem 1.5rem;
}

.news-single-content li {
    margin-bottom: 0.5rem;
}

.news-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 1rem 0;
}

.news-single-content a {
    color: var(--color-accent);
    text-decoration: underline;
}

.news-single-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    margin-top: 5rem;
}

.news-single-nav-item {
    min-width: 0;
}

.news-single-nav-prev {
    text-align: left;
}

.news-single-nav-back {
    text-align: center;
}

.news-single-nav-next {
    text-align: right;
}

.news-single-pagination-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    color: var(--color-accent);
    text-decoration: none;
    transition: 0.3s ease;
    min-width: 0;
}

.news-single-pagination-prev {
    align-items: flex-start;
}

.news-single-pagination-next {
    align-items: flex-end;
    text-align: right;
}

.news-single-pagination-link:hover {
    opacity: 0.8;
}

.news-single-pagination-label {
    font-size: 0.75rem;
    font-weight: var(--font-weight-bold);
    color: #6b7a96;
    letter-spacing: 0.08em;
}

.news-single-pagination-title {
    font-size: 0.95rem;
    font-weight: var(--font-weight-bold);
    color: #0e2a60;
    line-height: 1.5;
    word-break: break-word;
}

.route-view-all,
.news-view-all {
    text-align: right;
    margin-top: 1.75rem;
}

/* ==========================================
Route Intro Section
========================================== */
.route-intro-section {
    padding: 2.6875rem 0 2.5625rem;
    background-color: var(--bg-color);
}

.route-intro-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.route-text {
    width: 47.5%;

    .section-title {
        text-align: left;
        position: relative;
    }

    p {
        text-align: justify;
        margin-top: 1.1875em;
    }
}

.route-icon {
    position: absolute;
    bottom: 0;
    right: 0;
}

/* ==========================================
Featured Images Section
========================================== */
.featured-images-section {
    padding: 5.375rem 0 7.9375rem;
    background-color: #fff;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.featured-item {
    overflow: hidden;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.featured-item:hover {
    transform: translateY(-5px);
}

.featured-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.featured-item h3 {
    padding: 0.6em;
    font-size: 1.25rem;
    font-weight: var(--font-weight-midium);
    background-color: var(--color-white);
    text-align: center;
}

/* ==========================================
Resources Section
========================================== */
.resources-section {
    padding: 3.1875rem 0 3.6875rem;
    background-color: var(--bg-color);
}

.resources-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.resource-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    background-color: var(--color-white);
    border: 1px solid var(--color-accent);
    border-radius: 30px;
    padding: 2.5rem 2.125rem 3.625rem;
    transition: 0.3s;
    cursor: pointer;
}

.resource-card:hover {
    transform: translateY(-3px);
}

.resource-card h3 {
    font-size: 1.5625rem;
    line-height: 1.2;
    color: var(--color-accent);
}

.resource-desc {
    color: #000;
    font-size: 1rem;
}

.resource-card:first-child .resource-icon {
    position: relative;
    width: 100%;
    height: 100%;

    img {
        position: absolute;
        left: 43%;
        transform: translateX(-50%);
        bottom: -11%;
        box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.2);
    }

}

.resource-card:last-child {
    .resource-icon img {
        width: 100%;
        position: relative;
        top: 10px;
    }

    h3 {
        padding-left: 2em;
    }
}

/* ==========================================
banner
========================================== */
.partner-section {
    padding: 4.5rem 0 2.875rem;
}

.partner-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.partner-logo:nth-child(2) {
    margin-left: 6%;
}

/* ==========================================
エリア紹介
========================================== */
.area-section {}

.area-block {
    margin-bottom: 3rem;
}

.area-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-accent);
}

.area-name {
    font-size: 1.4375rem;
    color: var(--color-accent);
    padding: 0.5rem 1rem;
    font-weight: var(--font-weight-midium);
    min-width: fit-content;
    border: 1px solid transparent;
    border-left-color: var(--color-accent);
    border-right-color: var(--color-accent);
}

.area-subtitle {
    color: var(--color-accent);
}

/* Image Grid */
.image-grid {
    display: grid;
    /* 最大幅を max-content（中身のサイズ）にする */
    grid-template-columns: repeat(auto-fit, minmax(200px, max-content));
    gap: 2.5rem;
    margin-bottom: 2rem;
    padding: 0 1.25rem;
}

.image-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-item:hover {
    transform: translateY(-8px);
}

.image-item img {
    width: 100%;
    object-fit: cover;
}

.image-caption {
    text-align: center;
}

/* ==========================================
Animations & Keyframes
========================================== */
@keyframes add-shadow {
    to {
        box-shadow: 0 5px 5px -3px rgba(0, 0, 0, .26);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* .featured-item,
.resource-card,
.news-item {
    opacity: 0;
}

.featured-item.visible,
.resource-card.visible,
.news-item.visible {
    animation: fadeIn 0.6s ease-out forwards;
} */

/* ==========================================
Header
========================================== */
header {
    background-color: var(--color-white);
    position: sticky;
    top: 0;
    left: 0;
    animation: add-shadow linear both;
    animation-timeline: scroll();
    animation-range: 0 150px;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.header-logo {
    text-align: center;

    img {
        width: 162px;
    }

    p {
        font-weight: var(--font-weight-medium);
        margin-top: 0.9375em;
    }
}

.side-border-menu {
    display: flex;

    a {
        position: relative;
    }

    >li {
        padding: 0 2.25em;
    }

    >li:first-child {
        padding-left: 0;
    }

    >li:last-child {
        padding-right: 0;
    }

    >li:not(:first-child)>a::after {
        content: "";
        display: block;
        width: 1px;
        height: 1em;
        background: #231815;
        position: absolute;
        left: -2.25em;
        top: 50%;
        transform: translateY(-50%);
    }
}

/* ==========================================
ハンバーガーメニュー
========================================== */
/*============
nav
=============*/
.side-nav {
    display: block;
    position: fixed;
    top: 0;
    left: -300px;
    bottom: 0;
    width: 300px;
    background: #ffffff;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: .5s;
    z-index: 3;
}

.open .side-nav {
    left: 0;
}

.side-nav .inner {
    padding: 25px;
}

.side-nav .inner ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.side-nav .inner ul li {
    position: relative;
    margin: 0;
    border-bottom: 1px solid #333;
}

.side-nav .inner ul li a {
    display: block;
    color: #333;
    font-size: 14px;
    padding: 1em;
    text-decoration: none;
    transition-duration: 0.2s;
}

.side-nav .inner ul li a:hover {
    background: #e4e4e4;
}

@media screen and (max-width: 767px) {
    .side-nav {
        left: -240px;
        width: 240px;
    }
}

/*============
@keyframes
=============*/
@keyframes equalizer01 {
    0% {
        width: 70%;
    }

    10% {
        width: 50%;
    }

    20% {
        width: 100%;
    }

    30% {
        width: 10%;
    }

    40% {
        width: 50%;
    }

    50% {
        width: 70%;
    }

    60% {
        width: 50%;
    }

    70% {
        width: 10%;
    }

    80% {
        width: 100%;
    }

    90% {
        width: 10%;
    }

    100% {
        width: 70%;
    }
}

@keyframes equalizer02 {
    0% {
        width: 30%;
    }

    10% {
        width: 20%;
    }

    20% {
        width: 40%;
    }

    30% {
        width: 10%;
    }

    40% {
        width: 20%;
    }

    50% {
        width: 30%;
    }

    60% {
        width: 20%;
    }

    70% {
        width: 10%;
    }

    80% {
        width: 40%;
    }

    90% {
        width: 10%;
    }

    100% {
        width: 30%;
    }
}

/*============
.toggle_btn
=============*/
.toggle_btn_wrap {
    width: 13.5vw;
    height: 13.5vw;
    border-radius: 50%;
    background-color: var(--color-accent);
    position: relative;
    z-index: 3;
    cursor: pointer;
}

.toggle_btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
    width: 7.222222222222221vw;
    height: 4.8vw;
}

.toggle_btn span {
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    height: 0.56vw;
    background-color: #fff;
    border-radius: 9999px;
    transition: all .5s;
}

.toggle_btn span:nth-child(1) {
    top: 0;
}

.toggle_btn span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.toggle_btn span:nth-child(3) {
    bottom: 0;
}

.open .toggle_btn span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.open .toggle_btn span:nth-child(2) {
    opacity: 0;
}

.open .toggle_btn span:nth-child(3) {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%) rotate(-45deg);
}

/*============
#mask
=============*/
#mask {
    display: none;
}

.open #mask {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: .8;
    z-index: 2;
    cursor: pointer;
    transition: all .5s;
}

/* ==========================================
Footer
========================================== */
footer {
    padding: 7rem 0 6.5625rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
}

.footer-info {
    display: flex;
    gap: 2.75rem;
}

.footer-logo img {
    width: 187px;
}

.company-info {
    address {
        font-size: 0.8125rem;
        margin-top: 0.25rem;
    }
}

.company-info-name {
    font-weight: var(--font-weight-medium);
}

.footer-nav {
    margin-right: 0.25rem;
}

.copyright {
    text-align: center;
    font-size: 0.65625rem;
}