@charset "UTF-8";

/* ==========================================================================
   Kodawari Page Specific Styles
   ========================================================================== */

/* --- Page Title --- */
.p-page-head {
    padding: 80px 0 60px;
    margin-top: 100px;
    ;
    text-align: center;
    background-color: var(--color-bg);
}

.p-page-head__title {
    font-family: var(--font-mincho);
    font-size: 2.4rem;
    letter-spacing: 0.1em;
    font-weight: 500;
    color: var(--color-text);
    opacity: 0;
    transition: opacity 2.0s ease;
}

.p-page-head__title.is-inview {
    opacity: 1;
}

/* --- Kodawari Block (Common) --- */
.p-kodawari-block {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.p-kodawari-block {
    background-image: url('../img/common/washi.jpg');
    /* Placeholder path */
    background-repeat: no-repeat;
    background-position: top;
    background-position-x: left;
    background-size: 500px auto;
}

/* Washi Texture Background */
.p-kodawari-block::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/common/washi.jpg');
    /* Placeholder path */
    background-repeat: no-repeat;
    background-size: 500px auto;
    /* Adjust as needed */
    opacity: 0.15;
    /* Subtly visible */
    z-index: 0;
    pointer-events: none;
    /* Fallback if image missing */

}

.p-kodawari-left {
    background-position-x: left;
}

.p-kodawari-right {
    background-position-x: right;
}

.p-kodawari-block__inner {
    position: relative;
    z-index: 1;
    max-width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 60px;
    padding: 0 20px;
}

/* Text & Image Area */
.p-kodawari-block__content-area {
    flex: 1;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.0s ease, transform 1.0s ease;
    transition-delay: 0.3s;
    /* Delay after title starts */
}

.p-kodawari-block__content-area.is-inview {
    opacity: 1;
    transform: translateY(0);
}

.p-kodawari-block__img img {
    width: 100%;
    height: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.p-kodawari-block__text {
    font-size: 1rem;
    line-height: 2.2;
    text-align: justify;
}

.p-kodawari-block__text p+p {
    margin-top: 1.5em;
}

/* Vertical Heading Area */
.p-kodawari-block__heading-area {
    padding-top: 20px;
    justify-content: center;
    width: 20%;
    display: flex;
    /* Adjust alignment with image top */
}

.p-kodawari-block__title.u-vertical {
    font-family: var(--font-shippori);
    font-weight: 100;
    font-size: 7.2rem;
    letter-spacing: 0.3em;
    color: var(--color-accent);
    line-height: 1;
    height: auto;
    max-height: 500px;
    margin: 0;
}

.p-kodawari-block__title span {
    opacity: 0;
    display: inline-block;
    transform: translateY(-20px);
    /* Move from top */
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.p-kodawari-block__title.is-inview span {
    opacity: 1;
    transform: translateY(0);
}

/* --- Block A Specifics (Default is Heading -> Content) --- */
/* Matches HTML order */

/* --- Block B Specifics (Content -> Heading) --- */
/* Matches HTML order */


/* --- Voice Section --- */
.p-voice {
    position: relative;
    padding: 100px 0;
    color: #fff;
    text-align: center;
}

.p-voice__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.p-voice__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    /* Darken for text readability */
}

.p-voice__inner {
    position: relative;
    z-index: 1;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.p-voice__heading {
    font-family: var(--font-mincho);
    font-size: 2rem;
    font-weight: 100;
    margin-bottom: 60px;
    letter-spacing: 0.1em;
}

.p-voice__list {
    display: flex;
    justify-content: flex-start;
    /* Change from center to start for scroll */
    gap: 40px;
    flex-wrap: nowrap;
    /* Important */
    width: max-content;
    will-change: transform;
}

.p-voice__scroller {
    overflow: hidden;
    cursor: grab;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    user-select: none;
}

.p-voice__scroller:active {
    cursor: grabbing;
}

/* Animation Class (Added by JS or default) */
.is-scrolling .p-voice__list {
    animation: infinite-scroll 40s linear infinite;
}

@keyframes infinite-scroll {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

.c-voice-card {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-text);
    padding: 40px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.c-voice-card__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    background: #ccc;
}

.c-voice-card__title {
    font-family: var(--font-mincho);
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--color-accent);
}

.c-voice-card__text {
    font-size: 0.9rem;
    line-height: 1.8;
    text-align: left;
}




/* ==========================================================================
   Responsive
   ========================================================================== */
@media screen and (max-width: 767px) {
    .p-page-head {
        margin-top: 10px;

    }

    .p-kodawari-block__text {
        font-size: 16px;

    }

    /* Page Title */
    .p-page-head__title {
        font-size: 1.3rem;
    }

    /* Kodawari Block */
    .p-kodawari-block {
        padding: 10px 0;
    }

    .p-kodawari-block__inner {
        flex-direction: column;
        gap: 20px;
    }

    /* Reset Block B reverse logic if any used (we used HTML order so just column is fine) */
    /* But we want Heading to be on top? or zigzag? */
    /* HTML Order A: Heading -> Content. Flex-col: Heading Top. */
    /* HTML Order B: Content -> Heading. Flex-col: Content Top. */
    /* Usually on SP we want consistent Heading Top. */

    .p-kodawari-block--b .p-kodawari-block__inner {
        flex-direction: column-reverse;
        /* Force Heading top for Block B too */
    }

    .p-kodawari-block__heading-area {
        width: 100%;
        text-align: center;
        padding-top: 0;
    }

    /* Switch Vertical to Horizontal on SP? or Keep Vertical? */
    /* If we keep Vertical: */
    /* .u-vertical is global utils. If we want to change it we need to override. */
    /* Let's Try Horizontal for SP Layout friendliness */
    .p-kodawari-block__title.u-vertical {
        writing-mode: horizontal-tb;
        font-size: 1.5rem;
        letter-spacing: 0.1em;
        text-align: center;
        width: 100%;
        margin-bottom: 10px;
        border-bottom: 1px solid var(--color-accent);
        display: inline-block;
        padding-bottom: 10px;
    }

    .p-kodawari-block__content-area {
        width: 100%;
    }

    /* Voice */
    .p-voice {
        padding: 60px 0;
    }

    .p-voice__heading {
        font-size: 1.3rem;
        line-height: 1.3;
    }

    .p-voice__heading {

        margin-bottom: 30px;
    }



    .c-voice-card {
        /* min-width: 100%;  */
    }

    .p-kodawari-block {
        background: none;
    }

}