/* ===================================
   Base Styles
=================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'YakuHanJP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
    line-height: 1.8;
    color: #333;

}


/* ===================================
   Left Column: Main Content
=================================== */
.detail-main {
    min-width: 0;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 50px;
    font-size: 13px;
    color: #999;
}

.breadcrumb-link {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: #666;
}

.breadcrumb-separator {
    color: #CCC;
}

.breadcrumb-current {
    color: #666;
}

/* Work Title */
.work-main-title {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #333;
    margin-bottom: 40px;
}

/* Banner Visual */
.work-main-visual {
    width: 100%;
    min-height: 400px;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}



.work-main-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

/* Section Title */
.work-section-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #333;
    margin-bottom: 25px;
}

/* Description Section */
.work-description-section {
    margin-bottom: 60px;
}

.work-description-text {
    font-size: 12px;
    line-height: 2.2;
    letter-spacing: 2px;
    color: #666;
}

/* ===================================
   TARGET & BACKGROUND
=================================== */
.case-meta {
    margin-top: 80px;
    margin-bottom: 20px;
}

.case-meta-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.meta-card {
    padding: 32px;
    border: 1px solid #e5e5e5;
    background-color: #fafafa;
}

.meta-label {
    font-size: 10px;
    letter-spacing: 2px;
    color: #777;
    margin-bottom: 5px;

}

.meta-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: #111;
}

.meta-text {
    font-size: 12px;
    letter-spacing: 2px;
    line-height: 1.9;
    color: #333;
    margin-bottom: 12px;
}

.meta-text:last-child {
    margin-bottom: 0;
}

/* ===================================
   DESIGN POINTS
=================================== */
.design-points-section {
    margin-top: 80px;
    margin-bottom: 80px;
}

.points-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.point-card {
    padding: 28px;
    background-color: #f7f6f4;
    border-radius: 4px;
}

.point-card h4 {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 12px;
    color: #111;
}

.point-card p {
    font-size: 11px;
    letter-spacing: 2px;
    line-height: 1.9;
    color: #333;
}

/* ===================================
   Right Column: Sidebar
=================================== */
.detail-sidebar {
    border-left: 1px solid #E5E5E5;
    padding-left: 40px;
}

.sidebar-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #F0F0F0;
}

.sidebar-section:last-of-type {
    border-bottom: none;
}

.sidebar-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #333;
    margin-bottom: 12px;
}

.sidebar-text {
    font-size: 12px;
    letter-spacing: 0.5px;
    color: #666;
    line-height: 1.8;
}

/* Tool Item */
.tool-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.tool-icon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background-color: #E8E8E8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #666;
}

.tool-name {
    font-size: 12px;
    letter-spacing: 0.5px;
    color: #666;
}

/* URL */
.sidebar-url {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar-url:hover {
    color: #333;
}

.url-arrow {
    font-size: 16px;
    color: #999;
}

/* Overview */
.sidebar-overview {
    background-color: #F8F8F8;
    padding: 24px;
    border-radius: 8px;
}

.points-list {
    list-style: none;
    padding: 0;
}

.points-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 11px;
    line-height: 1.9;
    letter-spacing: 0.5px;
    color: #666;
    margin-bottom: 16px;
}

.points-item:last-child {
    margin-bottom: 0;
}

.check-icon {
    flex-shrink: 0;
    font-size: 14px;
    color: #999;
}


/* ===================================
   Pagination
=================================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.pagination-arrow,
.pagination-number {
    width: 36px;
    height: 36px;
    border: 1px solid #D0D0D0;
    border-radius: 4px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-arrow:hover,
.pagination-number:hover {
    background-color: #F5F5F5;
    border-color: #BBB;
}

.pagination-active {
    background-color: #333;
    color: #fff;
    border-color: #333;
}

/* ===================================
   Responsive Design
=================================== */
@media screen and (max-width: 1024px) {
    .detail-wrapper {
        padding: 40px;
    }

    .detail-container {
        gap: 40px;
        padding: 40px;
    }

    .detail-sidebar {
        padding-left: 30px;
    }
}

@media screen and (max-width: 768px) {
    .header {
        padding: 0 20px;
    }

    .nav-menu {
        width: 100%;
        right: -100%;
    }

    .detail-wrapper {
        padding: 20px;
        margin-top: 90px;
    }

    .detail-container {
        grid-template-columns: 1fr;
        gap: 60px;
        padding: 30px 20px;
    }

    .detail-sidebar {
        border-left: none;
        border-top: 1px solid #E5E5E5;
        padding-left: 0;
        padding-top: 40px;
    }

    .work-main-title {
        font-size: 28px;
    }

    .work-main-visual {
        min-height: 280px;
    }

    .case-meta-inner {
        grid-template-columns: 1fr;
    }

    .points-grid {
        grid-template-columns: 1fr;
    }

    .work-navigation {
        padding: 0 20px;
        gap: 12px;
    }

    .nav-thumbnails {
        gap: 8px;
    }

    .nav-thumb {
        width: 60px;
        height: 45px;
    }

    .nav-arrow {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}

@media screen and (max-width: 480px) {


    .detail-wrapper {
        padding: 20px 12px;
        margin-top: 80px;
    }

    .detail-container {
        gap: 30px;
        padding: 24px 16px;
    }

    .breadcrumb {
        font-size: 10px;
        margin-bottom: 20px;
        flex-wrap: wrap;
    }

    .work-main-title {
        font-size: 20px;
        letter-spacing: 1px;
        margin-bottom: 20px;
    }

    .work-main-visual {
        min-height: 200px;
        margin-bottom: 30px;
    }

    .work-section-title {
        font-size: 16px;
        letter-spacing: 1px;
        margin-bottom: 16px;
    }

    .work-description-text {
        font-size: 11px;
        line-height: 1.9;
    }

    .meta-card {
        padding: 20px 16px;
    }

    .meta-label {
        font-size: 8px;
        letter-spacing: 1px;
    }

    .meta-title {
        font-size: 13px;
        letter-spacing: 1px;
    }

    .meta-text {
        font-size: 10px;
        line-height: 1.8;
    }

    .point-card {
        padding: 20px 16px;
    }

    .point-card h4 {
        font-size: 12px;
    }

    .point-card p {
        font-size: 10px;
    }

    .work-navigation {
        margin: 30px 0 20px;
        padding: 0 12px;
    }

    .nav-arrow {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .nav-thumb {
        min-width: 45px;
        width: 45px;
        height: 45px;
    }

    .pagination-arrow,
    .pagination-number {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: #77B0FF;
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
}

/* 外側のアウトライン */
.cursor-outline {
    width: 32px;
    height: 32px;
    border: 2px solid rgba(119, 176, 255, 0.5);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}

/* ホバー時の拡大 */
body.cursor-hover .cursor-dot {
    width: 16px;
    height: 16px;
    background-color: #D4C4A8;
}

body.cursor-hover .cursor-outline {
    width: 50px;
    height: 50px;
    border-color: rgba(212, 196, 168, 0.8);
}

/* クリック時のリップルエフェクト */
.cursor-ripple {
    position: fixed;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(119, 176, 255, 0.3);
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%) scale(0);
    animation: ripple-effect 0.6s ease-out;
}

@keyframes ripple-effect {
    to {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

/* スマホ・タブレットでは非表示 */
@media screen and (max-width: 1024px) {

    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }

    body.custom-cursor-active,
    body.custom-cursor-active * {
        cursor: auto !important;
    }
}