/*
Theme Name: EPIC QUEST
Theme URI: https://epicquest.ninja/
Author: EPIC QUEST
Author URI: https://epicquest.ninja/
Description: EPIC QUEST コーポレートサイト
Version: 1.0
Text Domain: my-custom-theme
*/

@charset "utf-8";

img {
    width: 100%;
    display: block;
}

/* ロード画面 */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loader-wrapper.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    position: relative;
    width: 150px;
    height: 150px;
}

.loader-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-circle:nth-child(2) {
    width: 80%;
    height: 80%;
    border-top-color: #ff00ff;
    animation-duration: 0.8s;
    animation-direction: reverse;
}

.loader-circle:nth-child(3) {
    width: 60%;
    height: 60%;
    border-top-color: #00ff00;
    animation-duration: 0.6s;
}

.loader-progress {
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-bottom: 10px;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: var(--primary-color);
    transition: width 0.1s ease-out;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 1.5s infinite;
}

.progress-text {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 2px;
}

.loader-text {
    position: absolute;
    bottom: -120px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary-color);
    font-size: 1.2rem;
    letter-spacing: 4px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@media (max-width: 480px) {
    .loader {
        width: 120px;
        height: 120px;
    }

    .loader-progress {
        width: 160px;
        bottom: -70px;
    }

    .progress-text {
        font-size: 0.9rem;
    }

    .loader-text {
        font-size: 1rem;
        bottom: -100px;
    }
}

/* ロゴ */
.logo {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 100;
    width: 60px;
}

.logo-image {
    width: 100%;
    height: 100%;
}

@media (max-width: 480px) {
    .logo {
        top: 1.5rem;
        left: 1rem;
        width: 40px;
    }
}

/* ハンバーガー */
.hamburger {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media(max-width:480px) {
    .hamburger {
        top: 1.5rem;
    }
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transition: all var(--menu-timing) cubic-bezier(0.77, 0, 0.175, 1);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(100%);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* ナビゲーション */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform var(--menu-timing) cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 99;
    visibility: hidden;
    opacity: 0;
}

.nav.initialized {
    opacity: 1;
    transition: transform var(--menu-timing) cubic-bezier(0.77, 0, 0.175, 1),
        visibility 0s var(--menu-timing),
        opacity 0.3s ease;
}

.nav.active {
    transform: translateX(0);
    visibility: visible;
    transition: transform var(--menu-timing) cubic-bezier(0.77, 0, 0.175, 1),
        visibility 0s 0s,
        opacity 0.3s ease;
}

.nav-list {
    list-style: none;
    text-align: center;
}

.nav-list li {
    margin: 2rem 0;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.5s ease;
    visibility: hidden;
}

.nav.initialized .nav-list li {
    visibility: visible;
}

.nav.active .nav-list li {
    opacity: 1;
    transform: translateX(0);
}

.nav-list a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 2rem;
    letter-spacing: 4px;
    position: relative;
    padding: 5px 0;
    display: inline-block;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

.nav-list a:hover::after {
    width: 100%;
    left: 0;
}

/* mv */
.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 1;
    position: relative;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1.2;
    letter-spacing: 8px;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0, 247, 255, 0.3);
}

.title-line {
    display: block;
    overflow: hidden;
    margin-bottom: 0.2em;
}

.title-line span {
    display: block;
    will-change: transform, opacity;
}

.hero p {
    font-size: 1.2rem;
    letter-spacing: 4px;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 247, 255, 0.5);
    will-change: transform, opacity;
}

#particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
}

/* MESSAGEセクション */
.message {
    min-height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: var(--background-color);
    display: flex;
    align-items: center;
}

.epic-quest {
    position: absolute;
    font-size: 20vw;
    font-weight: 700;
    color: rgba(0, 247, 255, 0.03);
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
    letter-spacing: 1vw;
    transform: translateY(-50%);
}

.message-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.message-content {
    flex: 0 1 50%;
    padding-right: 4rem;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s ease;
}

.message-content.visible {
    opacity: 1;
    transform: translateX(0);
}

.message-content h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, var(--primary-color), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.message-content h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.message-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
}

.digital-design {
    flex: 0 1 50%;
    position: relative;
    opacity: 0;
    transform: translateX(50px);
    transition: all 1s ease 0.3s;
}

.digital-design.visible {
    opacity: 1;
    transform: translateX(0);
}

.image-container {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
}

.message-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8) contrast(1.1);
    transition: all 0.5s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 247, 255, 0.1), rgba(0, 0, 0, 0.3));
    pointer-events: none;
}

.corner-border {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary-color);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.top-left {
    top: 20px;
    left: 20px;
    border-right: none;
    border-bottom: none;
}

.top-right {
    top: 20px;
    right: 20px;
    border-left: none;
    border-bottom: none;
}

.bottom-left {
    bottom: 20px;
    left: 20px;
    border-right: none;
    border-top: none;
}

.bottom-right {
    bottom: 20px;
    right: 20px;
    border-left: none;
    border-top: none;
}

.image-container:hover .corner-border {
    box-shadow: 0 0 15px var(--primary-color);
}

.image-container:hover .message-image {
    transform: scale(1.05);
    filter: brightness(0.9) contrast(1.2);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 1.1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: all 0.3s ease;
    z-index: -1;
}

.cta-button:hover {
    color: var(--background-color);
}

.cta-button:hover::before {
    left: 0;
}

@media (max-width: 1024px) {
    .message-container {
        padding: 3rem 1.5rem;
    }

    .message-content {
        padding-right: 2rem;
    }
}

@media (max-width: 768px) {
    .message-container {
        flex-direction: column;
        text-align: center;
    }

    .message-content {
        flex: 0 1 100%;
        padding-right: 0;
        margin-bottom: 3rem;
    }

    .message-content h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .digital-design {
        flex: 0 1 100%;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .message-content h2 {
        font-size: 2rem;
    }

    .message-content p {
        font-size: 1rem;
    }

    .corner-border {
        width: 20px;
        height: 20px;
    }
}

/* BUSINESSセクション */
.business {
    min-height: 100vh;
    width: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}

.business::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 48%, rgba(0, 247, 255, 0.1) 50%, transparent 52%) 0 0 / 20px 20px, linear-gradient(-45deg, transparent 48%, rgba(255, 0, 255, 0.1) 50%, transparent 52%) 0 0 / 20px 20px;
    pointer-events: none;
    opacity: 0.5;
}

.business-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.business-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    color: #1a1a1a;
    background: linear-gradient(45deg, #1a1a1a, #4a4a4a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.business-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #ff00ff);
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.business-card {
    position: relative;
    border-radius: 15px;
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0;
    transform: translateY(50px);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    cursor: pointer;
    overflow: hidden;
    will-change: transform;
    aspect-ratio: 3/4;
}

.business-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card-content {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.card-image {
    width: 120px;
    height: 120px;
    margin-bottom: 2rem;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.card-title {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}


.view-all-card {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.view-all-card .card-content {
    justify-content: center;
    text-decoration: none;
}

.view-all-card .card-image {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
}

.view-all-card .card-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary-color), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.view-all-card .card-text {
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 1200px) {
    .business-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .business {
        padding: 4rem 0;
    }

    .business-title {
        font-size: 2.5rem;
    }

    .business-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        max-width: 600px;
        margin: 0 auto;
    }

    .card-image {
        width: 100px;
        height: 100px;
        margin-bottom: 1.5rem;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .card-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .business-container {
        padding: 0 1rem;
    }

    .business-title {
        font-size: 2rem;
    }

    .business-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        grid-column-gap: 1rem;
        grid-row-gap: 1rem;
    }

    .card-image {
        width: 80px;
        height: 80px;
        margin-bottom: 1rem;
    }

    .card-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .card-text {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .business-card {
        aspect-ratio: 2/3;
    }

    .card-content {
        padding: 0.8rem;
    }

    .sp-br {
        display: block;
    }
}

/* Worksセクション */
.works {
    min-height: 100vh;
    width: 100%;
    background: #0a0a0a;
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}

.works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(10, 10, 10, 0.98) 100%), linear-gradient(45deg, transparent 48%, rgba(0, 247, 255, 0.05) 49%, transparent 51%) 0 0 / 30px 30px, linear-gradient(-45deg, transparent 48%, rgba(255, 0, 255, 0.05) 49%, transparent 51%) 0 0 / 30px 30px, radial-gradient(circle at 50% 50%, rgba(255, 255, 0, 0.03) 0%, transparent 60%) 0 0 / 60px 60px;
    opacity: 0.9;
}

.works::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(0, 247, 255, 0.1) 0%, transparent 40%), radial-gradient(circle at 80% 70%, rgba(255, 0, 255, 0.1) 0%, transparent 40%);
    filter: blur(50px);
}

.works-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.works-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    color: var(--text-color);
    position: relative;
}

.works-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #ff00ff);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.work-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 4/3;
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0;
    transform: translateY(50px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.work-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.work-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            rgba(0, 0, 0, 0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.work-item:hover .work-overlay {
    opacity: 1;
}

.work-item:hover .work-image {
    transform: scale(1.1);
}

.work-title {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.work-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.1s;
}

.work-item:hover .work-title,
.work-item:hover .work-description {
    transform: translateY(0);
}

.all-view {
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.all-view-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-color);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.all-view:hover .all-view-content {
    transform: translateX(10px);
}

.all-view-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.all-view:hover .all-view-icon {
    transform: translateX(10px);
}

@media (max-width: 1200px) {
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .work-overlay {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .works {
        padding: 4rem 0;
    }

    .works-title {
        font-size: 2.5rem;
    }

    .works-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .work-title {
        transform: translateY(0px);
    }

    .work-description {
        transform: translateY(0px);
    }
}

@media (max-width: 480px) {
    .works-container {
        padding: 0 1rem;
    }

    .works-title {
        font-size: 2rem;
    }

    .work-overlay {
        padding: 1.5rem;
    }

    .work-title {
        font-size: 1.2rem;
    }

    .work-description {
        font-size: 0.9rem;
    }
}

/* blogセクション */
.blog {
    min-height: 100vh;
    width: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    position: relative;
    overflow: hidden;
    padding: 11rem 0;
}

.blog::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 48%, rgba(0, 247, 255, 0.1) 50%, transparent 52%) 0 0 / 20px 20px, linear-gradient(-45deg, transparent 48%, rgba(255, 0, 255, 0.1) 50%, transparent 52%) 0 0 / 20px 20px;
    pointer-events: none;
    opacity: 0.5;
}

.blog-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.blog-header {
    flex: 0 0 300px;
}

.blog-title {
    font-size: 3rem;
    color: #1a1a1a;
    position: relative;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, #1a1a1a, #4a4a4a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: sticky;
    top: 2rem;
}

.blog-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #ff00ff);
}

.blog-content {
    flex: 1;
}

.blog-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 15px;
    overflow: hidden;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.blog-card.visible {
    transform: translateY(0);
    opacity: 1;
}

.blog-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.1);
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.blog-card-title {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-card-excerpt {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #3f3f3f;
    text-decoration: none;
    font-weight: 500;
    transition: gap 0.3s ease;
}

.blog-card-link:hover {
    gap: 1rem;
}

.blog-card-link span {
    transition: transform 0.3s ease;
}

.blog-card-link:hover span {
    transform: translateX(5px);
}

.all-view-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.all-view-button:hover {
    transform: translateX(10px);
}

.all-view-button span {
    transition: transform 0.3s ease;
}

.all-view-button:hover span {
    transform: translateX(5px);
}

.EQ-bg {
    width: 100%;
}

.EQ-bg img {
    position: absolute;
    bottom: 0;
    width: 100%;
    vertical-align: bottom;
}

@media (max-width: 1200px) {
    .blog-container {
        flex-direction: column;
        gap: 2rem;
    }

    .blog-header {
        flex: none;
    }

    .blog-title {
        position: relative;
        top: 0;
        text-align: center;
    }

    .blog-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .blog {
        padding: 4rem 0;
    }

    .blog-title {
        font-size: 2.5rem;
    }

    .blog-card-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .blog-container {
        padding: 0 1rem;
    }

    .blog-title {
        font-size: 2rem;
    }

    .blog-card-title {
        font-size: 1.3rem;
    }
}

/* footer */
.footer {
    background: linear-gradient(180deg, var(--background-color) 0%, #0d0d0d 100%);
    padding: 6rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-color) 50%, transparent 100%);
    opacity: 0.3;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem;
}

.footer-brand {
    grid-column: span 1;
}

.footer-logo {
    width: 200px;
    height: auto;
    margin-bottom: 1.5rem;
}

@media(max-width: 480px) {
    .footer-logo {
        display: block;
        width: 160px;
        margin: 0 auto 1.5rem;
    }
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.social-link:hover::before {
    opacity: 0.1;
    transform: scale(1);
}

.social-link:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-nav {
    grid-column: span 1;
}

.footer-nav h3 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-nav h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 0.8rem;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-nav a::before {
    content: '→';
    margin-right: 0.5rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.footer-nav a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-nav a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-contact {
    grid-column: span 2;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.contact-item {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.contact-item h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.contact-item p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--primary-color);
    text-decoration: none;
}

@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-brand,
    .footer-nav {
        grid-column: span 1;
    }

    .footer-contact {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 4rem 0 2rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-contact {
        grid-column: span 1;
    }

    .footer-bottom {
        margin-top: 2rem;
    }
}

/* blog */
.single-post {
    color: #3f3f3f;
    width: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    position: relative;
    overflow: hidden;
}

.single-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 48%, rgba(0, 247, 255, 0.1) 50%, transparent 52%) 0 0 / 20px 20px, linear-gradient(-45deg, transparent 48%, rgba(255, 0, 255, 0.1) 50%, transparent 52%) 0 0 / 20px 20px;
    pointer-events: none;
    opacity: 0.5;
}

.single-post .container {
    margin: 20px auto;
    max-width: 1000px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.single-post .post-title {
    font-size: 2em;
    margin-bottom: 10px;
}

.single-post .post-content {
    font-size: 1.2em;
    line-height: 1.8;
}

.single-post .post-thumbnail img {
    margin-bottom: 20px;
}

.single-post .post-content h2 {
    position: relative;
    z-index: 0;
    margin-top: 2.5rem;
    margin-bottom: 0.8rem;
    display: block;
}

.single-post .post-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.single-post .post-content h4 {
    margin-top: 0.8rem;
}

.single-post .post-content h2::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: -20px;
    z-index: 0;
    height: 100%;
    width: 6px;
    background-color: var(--primary-color);

}

.single-post .post-content ul li {
    list-style-position: inside;
}

/* ブログ記事一覧 */
.blog-archive {
    padding: 40px 20px;
    color: #f3f3f3;
}

.blog-archive .container {
    max-width: 1000px;
    margin: 0 auto;
}

.blog-archive .page-title {
    font-size: 3.5rem;
    margin-bottom: 30px;
    text-align: center;
    color: #f3f3f3;
}

.blog-archive .posts-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.blog-archive .post {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.blog-archive .post:hover {
    transform: translateY(-5px);
}

.blog-archive .post-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.blog-archive .post-title a {
    color: #f3f3f3;
    text-decoration: none;
}

.blog-archive .post-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.blog-archive .post-thumbnail img {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

.blog-archive .read-more {
    display: inline-block;
    margin-top: 15px;
    color: #0073aa;
    text-decoration: none;
}

.blog-archive .read-more:hover {
    text-decoration: underline;
}

/* --- ページネーション --- */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pagination a {
    margin: 0 5px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    color: #0073aa;
    text-decoration: none;
    border-radius: 4px;
}

.pagination a:hover {
    background: #0073aa;
    color: #fff;
}

/* --- フィルターフォーム --- */
.blog-filter-form {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}

.blog-filter-form>div {
    min-width: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.blog-filter-form label {
    font-size: 1rem;
    margin-bottom: 5px;
    display: block;
}

.blog-filter-form input[type="text"],
.blog-filter-form select {
    padding: 8px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #3f3f3f;
    background-color: #fcfaf8;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.blog-filter-form button {
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.blog-filter-form button:hover {
    background-color: #005b88;
}

/* --- 2カラムレイアウト --- */
.content-wrapper {
    display: flex;
    gap: 20px;
    margin-top: 100px;
}

.blog-main {
    flex: 3;
    /* 左カラムの幅 */
    font-weight: bold;
}

.blog-sidebar {
    flex: 1;
    /* 右カラムの幅 */
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* サイドバー内のウィジェット */
.widget {
    margin-bottom: 20px;
}

.widget-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
    border-bottom: 2px solid #00f7ff;
    padding-bottom: 5px;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    margin-bottom: 10px;
}

.widget ul li a {
    text-decoration: none;
    color: #fff;
}

.widget ul li a:hover {
    text-decoration: underline;
}

.widget input {
    padding: 10px;
    margin-bottom: 10px;
}

.widget button {
    padding: 3px 8px;
}

/* --- レスポンシブ対応 --- */
@media (max-width: 768px) {
    .blog-archive .page-title {
        font-size: 2.5rem;
    }

    .blog-archive .posts-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }

    .blog-filter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .content-wrapper {
        flex-direction: column;
        margin-top: 80px;
    }

    .blog-sidebar {
        margin-top: 20px;
    }

    .blog-filter-form input[type="text"],
    .blog-filter-form select {
        width: 100%;
        /* フィルターフィールドを全幅に */
    }

    .blog-filter-form>div {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .blog-archive {
        padding: 20px 10px;
    }

    .blog-archive .page-title {
        font-size: 2rem;
    }

    .blog-archive .posts-list {
        grid-template-columns: 1fr;
    }

    .blog-archive .post {
        padding: 15px;
    }

    .blog-archive .post-title {
        font-size: 1.2rem;
    }

    .blog-archive .read-more {
        font-size: 0.9rem;
    }

    .pagination a {
        padding: 8px 10px;
    }

    .content-wrapper {
        margin-top: 40px;
    }
}

/* contact */
.contact-hero {
    height: 40vh;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 2rem;
    color: #fff;
}

.contact-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 48%, rgba(0, 247, 255, 0.1) 50%, transparent 52%) 0 0 / 20px 20px, linear-gradient(-45deg, transparent 48%, rgba(255, 0, 255, 0.1) 50%, transparent 52%) 0 0 / 20px 20px;
    pointer-events: none;
    opacity: 0.5;
}

.contact-hero-content {
    position: relative;
    z-index: 1;
    padding: 0 1rem;
}

.contact-hero-title {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: #7FFFD4;
}

.contact-hero-subtitle {
    font-size: 1.5rem;
    margin-top: 1rem;
    letter-spacing: 0.1em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Contact Form 7 Styles */
.contact-page {
    padding: 3rem 1rem;
    min-height: 100vh;
    margin-top: -100px;
    position: relative;
    z-index: 2;
}

.wpcf7 {
    max-width: 42rem;
    margin: 0 auto;
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.wpcf7-form {
    padding: 1.5rem 2rem;
}

.form-header {
    padding: 2rem;
    border-bottom: 1px solid #E5E7EB;
}

.form-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.form-header p {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #4B5563;
}

.form-group {
    margin-bottom: 1.5rem;
}

.wpcf7-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
}

.required {
    color: #EF4444;
    margin-left: 0.25rem;
}

/* 詳細度を上げた入力フィールドのスタイル */
.wpcf7 .wpcf7-form input[type="text"],
.wpcf7 .wpcf7-form input[type="email"],
.wpcf7 .wpcf7-form textarea {
    width: 100% !important;
    padding: 0.75rem !important;
    margin-top: 0.25rem !important;
    border: 1px solid #D1D5DB !important;
    border-radius: 0.375rem !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
    font-size: 0.875rem !important;
    background-color: #F9FAFB !important;
    color: #0a0a0a !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

/* 自動入力時のスタイル */
.wpcf7 .wpcf7-form input:-webkit-autofill,
.wpcf7 .wpcf7-form input:-webkit-autofill:hover,
.wpcf7 .wpcf7-form input:-webkit-autofill:focus {
    -webkit-text-fill-color: #0a0a0a !important;
    -webkit-box-shadow: 0 0 0px 1000px #F9FAFB inset !important;
    transition: background-color 5000s ease-in-out 0s !important;
    caret-color: #0a0a0a !important;
}

.wpcf7 .wpcf7-form input[type="text"]:focus,
.wpcf7 .wpcf7-form input[type="email"]:focus,
.wpcf7 .wpcf7-form textarea:focus {
    outline: none !important;
    border-color: #3B82F6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    color: #0a0a0a !important;
}

.wpcf7 .wpcf7-form input[type="text"]::placeholder,
.wpcf7 .wpcf7-form input[type="email"]::placeholder,
.wpcf7 .wpcf7-form textarea::placeholder {
    color: #9CA3AF !important;
}

.wpcf7-form textarea {
    height: 8rem;
    resize: vertical;
}

.privacy-policy {
    margin: 2rem 0;
}

.privacy-policy-content {
    height: 10rem;
    overflow-y: auto;
    border: 1px solid #D1D5DB;
    border-radius: 0.375rem;
    padding: 1.25rem;
    font-size: 0.875rem;
    color: #4B5563;
    background-color: #F9FAFB;
}

.privacy-policy-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 1rem 0;
}

.privacy-policy-content h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin: 1.5rem 0 0.5rem 0;
}

.privacy-policy-content p {
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.privacy-acceptance {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    padding: 0.75rem;
    background-color: #F9FAFB;
    border-radius: 0.375rem;
}

.privacy-acceptance input[type="checkbox"] {
    height: 1rem;
    width: 1rem;
    color: #2563EB;
    border: 1px solid #D1D5DB;
    border-radius: 0.25rem;
    cursor: pointer;
}

.privacy-acceptance .wpcf7-list-item {
    margin: 0;
}

.privacy-acceptance label {
    margin-left: 0.75rem;
    margin-bottom: 0;
    font-size: 0.875rem;
    color: #111827;
    cursor: pointer;
}

.wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 10rem;
    margin: 2rem auto 0;
    padding: 0.875rem 2rem;
    background-color: #2563EB;
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    position: relative;
    overflow: hidden;
}

.wpcf7-submit:hover {
    background-color: #1D4ED8;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.wpcf7-submit:active {
    transform: translateY(0);
    box-shadow: none;
}

.wpcf7-submit:disabled {
    background-color: #9CA3AF;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Form spacing */
.wpcf7-form>p {
    margin-bottom: 1.5rem;
}

/* Error messages */
.wpcf7-not-valid-tip {
    color: #EF4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
}

.wpcf7-not-valid {
    border-color: #EF4444;
}

.wpcf7-response-output {
    margin: 2rem 0 0;
    padding: 1rem 1.25rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.wpcf7-validation-errors {
    background-color: #FEF2F2;
    border: 1px solid #EF4444;
    color: #B91C1C;
}

.wpcf7-mail-sent-ok {
    background-color: #F0FDF4;
    border: 1px solid #22C55E;
    color: #15803D;
}

/* レスポンシブデザイン */
@media (max-width: 640px) {
    .contact-hero {
        min-height: 300px;
    }

    .contact-hero-title {
        font-size: 2.5rem;
    }

    .contact-hero-subtitle {
        font-size: 1.25rem;
    }

    .contact-page {
        padding: 1.5rem 1rem;
        margin-top: -50px;
    }

    .wpcf7 {
        border-radius: 0.5rem;
    }

    .form-header {
        padding: 1.5rem;
    }

    .wpcf7-form {
        padding: 1rem;
    }

    .wpcf7-submit {
        width: 100%;
    }
}

.footer-privacy {
    display: block;
    font-size: 0.8rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.wpcf7 form.sent .wpcf7-response-output {
    color: #3f3f3f;
}

/* コードタグ関連 */
/* ===== Code style ===== */

/* インライン code（文章中の `code`） */
.entry-content :not(pre)>code,
.wp-block-post-content :not(pre)>code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.95em;
    color: #e5e7eb;
    background: #0b1220;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.12em 0.35em;
    border-radius: 0.4em;
    white-space: break-spaces;
}

/* コードブロック（<pre><code>...） */
.entry-content pre,
.wp-block-post-content pre {
    background: #0b1220;
    color: #e5e7eb;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 16px 18px;
    margin: 1.2em 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* pre の中の code は “箱” を二重にしない */
.entry-content pre code,
.wp-block-post-content pre code {
    background: transparent;
    border: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
    white-space: pre;
    /* 横に長い場合はスクロールさせる */
}

/* （任意）スクロールバーを控えめに */
.entry-content pre::-webkit-scrollbar,
.wp-block-post-content pre::-webkit-scrollbar {
    height: 10px;
}

.entry-content pre::-webkit-scrollbar-thumb,
.wp-block-post-content pre::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}