@charset "UTF-8";

/* ============================================
 * Card Page Base Style (Layout & Typography)
 * ============================================ */
.bl_cardPage {
    /* Full viewport height, no padding for header */
    min-height: 100vh;
    background-color: #111;
    /* Changed to dark to fix gap visibility */
    width: 100%;
    margin-bottom: 0;

    position: relative;
}

.bl_cardPage_inner {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    justify-content: center;
    max-width: 1440px;
    margin: 0 auto;
}

/* Back Button */
.bl_cardPage_back {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100;
    display: none;
    /* Hidden by default, shown via JS if referrer matches */
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.bl_cardPage_back::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    transform: rotate(-45deg);
    margin-right: 4px;
}

.bl_cardPage_back:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}

@media only screen and (max-width: 960px) {
    .bl_cardPage_back {
        top: 15px;
        left: 15px;
    }
}

/* Left: Image */
.bl_cardPage_img {
    width: 40%;
    max-width: 800px;
    align-items: center;
    padding: 40px 0 0 40px;
}

.bl_cardPage_img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 24px;
    /* Rounded corners for the card image */
    transition: transform 0.8s ease;
    cursor: zoom-in;
}

.bl_cardPage_inner:hover .bl_cardPage_img img {
    transform: scale(1.02);
}

/* Right: Content */
.bl_cardPage_content {
    width: 60%;
    padding: 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    position: relative;
    z-index: 2;
    overflow: hidden;
    box-sizing: border-box;

    mix-blend-mode: screen;
}

/* Watermark */
.bl_cardPage::before {
    content: "";
    position: fixed;
    bottom: -150px;
    right: -50px;
    width: 600px;
    /* Large enough to be decorative */
    height: 600px;
    background-image: url("./logo_takumi.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.06;
    /* Subtle transparency */
    z-index: 0;
    pointer-events: none;
    animation: watermarkRotate 80s linear infinite;
}

@keyframes watermarkRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.bl_cardPage_ttl {
    font-size: 4.8rem;
    /* Larger for impact */
    font-weight: 700;
    margin-bottom: 40px;
    color: #fff;
    font-family: "YuMincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
    position: relative;
    z-index: 1;
    letter-spacing: 0.1em;
}

.bl_cardPage_ttl::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: #b59c5e;
    margin-top: 20px;
}

.bl_cardPage_txt {
    font-size: 2.0rem;
    /* Increased size for impact */
    line-height: 3.2;
    /* Generous spacing for elegance */
    color: #e5e5e5;
    /* Brighter, more metallic white */
    font-family: "YuMincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    text-align: justify;
    letter-spacing: 0.15em;
    /* Wider tracking */
    font-weight: 500;
    /* Slightly bolder */
    margin-bottom: 40px;
}

.bl_cardPage_share {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    padding: 12px 32px;
    background: transparent;
    border: 1px solid #fff;
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    width: fit-content;
    position: relative;
    z-index: 1;
    margin-top: 0;
}

.bl_cardPage_share:hover {
    background: #fff;
    color: #000;
}

.bl_cardPage_share_icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    display: block;
}

.bl_cardPage_share_txt {
    font-size: 1.4rem;
    font-weight: 700;
    font-family: sans-serif;
    /* Clean font for UI elements */
}

/* Job Description (below share button) */
.bl_cardPage_desc {
    margin-top: 32px;
    font-size: 1.4rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    text-align: justify;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.bl_cardPage_desc.has_overflow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 24px;
    background: linear-gradient(to bottom, rgba(17, 17, 17, 0), rgba(17, 17, 17, 1));
    pointer-events: none;
}

.bl_cardPage_desc.is_expanded::after {
    display: none;
}

.bl_cardPage_desc_toggle {
    display: none;
    background: transparent;
    border: none;
    color: #b59c5e;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0;
    margin-top: 8px;
    text-decoration: underline;
    z-index: 2;
    position: relative;
}

.bl_cardPage_desc.has_overflow+.bl_cardPage_desc_toggle {
    display: inline-block;
}

/* Animation */
.bl_cardPage_content>* {
    animation: fadeInRight 1s ease-out forwards;
    opacity: 0;
    transform: translateX(20px);
}

.bl_cardPage_ttl {
    animation-delay: 0.2s;
}

.bl_cardPage_txt {
    animation-delay: 0.4s;
}

.bl_cardPage_share {
    animation-delay: 0.6s;
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Modal Style */
.bl_card_modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.bl_card_modal.is-active {
    opacity: 1;
    pointer-events: auto;
}

.bl_card_modal img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 8px;
    cursor: zoom-out;
}

/* Mobile Responsiveness */
@media only screen and (max-width: 960px) {
    .bl_cardPage {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
        /* 横スクロールを防止 */
        padding-top: 100px;
        /* Prevent header overlap */
    }

    .bl_cardPage_inner {
        flex-direction: column;
    }

    .bl_cardPage_img {
        width: 100%;
        height: auto;
        min-height: 40vh;
        padding: 10px;

        margin: 0 auto;
    }

    .bl_cardPage_img img {
        border-radius: 12px;
        /* 小さい画面に合わせて角丸を抑える */
    }

    .bl_cardPage_content {
        width: 100%;
        height: auto;
        padding: 40px 24px;
    }

    .bl_cardPage_ttl {
        font-size: 3.2rem;
        margin-bottom: 24px;
    }

    .bl_cardPage_txt {
        font-size: 1.6rem;
        line-height: 2.2;
        text-align: left;
    }

    .bl_cardPage_share {
        margin-top: 0;
    }

    .bl_cardPage_desc {
        margin-top: 24px;
        font-size: 1.3rem;
    }

    /* Footer Mobile Adjustments */
    .bl_footer_ttl {
        font-size: 1.8rem;
    }

    .bl_footer_txt {
        font-size: 1.3rem;
        line-height: 1.6;
    }

    .bl_footer_info_ttl,
    .bl_footer_info_txt {
        font-size: 1.2rem;
    }

    .bl_footer_copylight {
        font-size: 1.0rem;
        margin-top: 20px;
    }

    .bl_footer_sns_list li a img {
        width: 24px;
        height: 24px;
    }
}

/* Footer Link Style */
.bl_footer_ttl a,
.bl_footer_ttl a:visited {
    color: #fff;
    /* 明示的に白を指定 */
    text-decoration: none;
}

.bl_footer_ttl a:hover {
    text-decoration: underline;
}

/* 全体的なフッター内リンクの訪問済みカラーをリセット */
.bl_footer a,
.bl_footer a:visited {
    color: inherit;
}