@charset "UTF-8";

/*
Theme Name: Soluzione Rules
Description: A WordPress theme for your sites.
Version: 1.0.0
 */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    height: 100%;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
}

body {
    font-family: "Noto Sans JP", sans-serif !important;
    font-size: 1.2rem !important;
    overflow-x: hidden !important;
    overflow-y: auto;
    width: 100% !important;
    max-width: 100vw !important;
    background-color: #c92423 !important;
    height: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ヘッダー固定スタイル */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0 1rem 0;
    background-color: #fff;
    z-index: 1000;
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo-wrapper {
    flex-shrink: 0;
}

.header-logo {
    height: 60px;
    cursor: pointer;
}

.main-content {
    padding-top: 80px;
    flex: 1 0 auto;
}

h1 .text-white {
    color: #fff !important;
}

h4 .text-white {
    color: #fff !important;
}

article {
    background-color: #fff;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 6px;
}

.category-container {
    background-color: #fff;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 6px;
}

.category-title {
    margin-bottom: 2rem;
}

.category-item {
    margin-bottom: 1.5rem;
}

.animated-button {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 16px 36px;
    border: 4px solid;
    border-color: transparent;
    font-size: 16px;
    background-color: inherit;
    border-radius: 12px;
    font-weight: 600;
    color: #b00007;
    box-shadow: 0 0 0 2px #b00007;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button svg {
    position: absolute;
    width: 24px;
    fill: #b00007;
    z-index: 9;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button .arr-1 {
    right: 16px;
}

.animated-button .arr-2 {
    left: -25%;
}

.animated-button .circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background-color: #b00007;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button a {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    text-decoration: none;
}

.animated-button a .text {
    position: relative;
    z-index: 999;
    transform: translateX(0);
    transition:
        transform 0.8s cubic-bezier(0.23, 1, 0.32, 1),
        color 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    color: #b00007;
}

.animated-button:hover {
    box-shadow: 0 0 0 12px transparent;
    color: #212121;
    border-radius: 12px;
}

.animated-button:hover .arr-1 {
    right: -25%;
}

.animated-button:hover .arr-2 {
    left: 16px;
}

.animated-button:hover a .text {
    transform: translateX(12px);
    color: #212121;
}

.animated-button:hover svg {
    fill: #212121;
}

.animated-button:active {
    scale: 0.95;
    box-shadow: 0 0 0 4px #b00007;
}

.animated-button:hover .circle {
    width: 636px;
    height: 250px;
    opacity: 1;
}

/* 記事ナビゲーションカードスタイル */
.post-navigation .card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: #fff;
}

.post-navigation .card:hover {
    transform: translateY(-2px);
}

.post-navigation-thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.post-thumbnail-wrapper {
    flex-shrink: 0;
}

.post-navigation .nav-title {
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.post-navigation .card:hover .nav-title {
    color: #007bff;
}

.footer-background {
    padding-top: 1rem;
    background-color: #333;
    color: #fff !important;
    font-size: 1rem;
    margin-top: auto;
}

@media (max-width: 991.98px) {
}
/* スマートフォン表示（768px以下） */
@media (max-width: 767.98px) {
    .header-logo {
        height: 35px;
        cursor: pointer;
    }

    .header-container {
        padding: 0 0.75rem;
    }

    .search-field {
        min-width: 150px;
        font-size: 0.9rem;
    }

    .main-content {
        margin-top: 70px; /* スマートフォン用の調整 */
    }

    .post-navigation .card-body {
        flex-direction: column !important;
    }

    .post-thumbnail-wrapper {
        margin-bottom: 1rem !important;
        margin-right: 0 !important;
    }

    .post-navigation-thumbnail {
        width: 100%;
        max-width: 200px;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .post-title-wrapper {
        text-align: center !important;
    }

    .post-navigation .next-post-card .card-body {
        flex-direction: column !important;
    }

    .post-navigation .next-post-card .post-thumbnail-wrapper {
        order: 0 !important;
    }

    .post-navigation .next-post-card .post-title-wrapper {
        order: 1 !important;
    }
}
