@charset "UTF-8";

/* --- Hero --- */
.p-hero {
    position: relative;
    height: 90vh;
    overflow: hidden;
}

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

.p-hero__bg img,
.p-hero__bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.p-hero__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translate(-50%, -40%);
    transition: opacity 2s ease, transform 2s ease;
}

.p-hero__content.is-inview {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.p-hero__catch {
    font-size: 28px;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    font-weight: 500;
}

.p-hero__sub {
    font-size: 14px;
    letter-spacing: 0.2em;
    margin-top: 20px;
    opacity: 0.9;
}

.p-hero__logo-mark {
    position: absolute;
    bottom: 100px;
    left: 120px;
    width: 15%;
    z-index: 2;
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 1.5s ease 1s, transform 1.5s ease 1s;
    /* delay changed to 1s */
}

.p-hero__logo-mark.is-inview {
    opacity: 1;
    transform: translateX(0);
}

.p-hero__scroll {
    position: absolute;
    bottom: 20px;
    right: 40px;
    color: #fff;
    font-family: var(--font-script);
    font-size: 14px;
    letter-spacing: 0.1em;
    z-index: 2;
    padding-bottom: 80px;
}

.p-hero__scroll::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 1px;
    height: 60px;
    background-color: #fff;
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% {
        transform: translateX(-50%) scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: translateX(-50%) scaleY(1);
        transform-origin: top;
    }

    50.1% {
        transform: translateX(-50%) scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: translateX(-50%) scaleY(0);
        transform-origin: bottom;
    }
}

/* --- Concept --- */
.p-concept {
    padding: 100px 0;
    background-color: #F5ECD3;
    /* Base color kept */
    position: relative;
    /* BG moved to ::before */
}

.p-concept::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/index/p-conceptbg.png');
    background-size: cover;
    opacity: 0;
    transition: opacity 1.5s ease 0.5s;
    /* delay 0.5s */
    z-index: 0;
}

.p-concept.is-bg-inview::before {
    opacity: 1;
}

.p-concept__bg {
    /* Existing empty div removed or kept if necessary? Assuming not used based on new structure */
    display: none;
}

.p-concept__inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: flex-start;
    gap: 80px;
    height: 400px;
    position: relative;
    z-index: 1;
    /* Above BG */
}

.p-concept__title {
    font-family: var(--font-mincho);
    font-size: 32px;
    font-weight: 100;
    letter-spacing: 0.3em;
    height: 100%;
    color: #231815;
}

.p-concept__body {
    color: #231815;
    font-size: 19px;
    line-height: 2.8;
    height: 100%;
}

/* --- Features Nav --- */
.p-features-nav__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.p-features-nav__item {
    position: relative;
    height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    overflow: hidden;
}

.p-features-nav__item--logo {

    background-image: url(../img/index/p-featuresbg.png);
    background-size: auto;
    background-position: center;
    color: #333;
}

.p-features-nav__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s;
    z-index: 0;
}

.p-features-nav__item:hover .p-features-nav__bg {
    transform: scale(1.1);
}

.p-features-nav__content {
    position: relative;
    z-index: 1;
    text-align: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.p-features-nav__content.is-inview {
    opacity: 1;
}

/* Delays */
.p-features-nav__item:nth-child(2) .p-features-nav__content {
    transition-delay: 0.3s;
}

.p-features-nav__item:nth-child(3) .p-features-nav__content {
    transition-delay: 0.6s;
}

.p-features-nav__item:nth-child(4) .p-features-nav__content {
    transition-delay: 0.9s;
}

.p-features-nav__num {
    display: inline-block;
    font-family: var(--font-shippori);
    font-size: 56px;
    margin-bottom: 10px;
    line-height: 1;
    border-bottom: 1px solid #fff;
    padding-bottom: 5px;
}

.p-features-nav__title {
    font-family: var(--font-mincho);
    font-size: 20px;
    margin-bottom: 5px;
    margin-top: 10px;
}

.p-features-nav__sub {
    font-size: 14px;
    font-family: var(--font-gothic);
    letter-spacing: 0.1em;
    opacity: 0.8;
}

.p-features-nav__item--link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* --- Products --- */
.p-products {
    padding: 100px 0;
}

.p-products__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.p-products__heading {
    text-align: center;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0.2em;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 1s ease;
}

.p-products__heading.is-inview {
    opacity: 1;
}

.p-products__heading::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background-color: #333;
    margin: 15px auto 0;
}

.p-products__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.c-product-card {
    text-align: center;
    font-family: var(--font-gothic);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
    margin: auto;
}

.c-product-card img {
    aspect-ratio: 2.5 / 4;
    object-fit: cover;
}

.c-product-card.is-inview {
    opacity: 1;
    transform: translateY(0);
}

/* Delays */
.c-product-card:nth-child(2) {
    transition-delay: 0.2s;
}

.c-product-card:nth-child(3) {
    transition-delay: 0.4s;
}

.c-product-card:nth-child(4) {
    transition-delay: 0.6s;
}

.c-product-card__img:hover {
    opacity: 0.8;
}

.c-product-card__name {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 5px;
}

.c-product-card__price {
    font-size: 18px;
    color: #666;
}

/* --- 追加 --- */

.c-product-card {
    display: flex;
    flex-direction: column;
}

.c-product-card__name {
    line-height: 1.4;
    min-height: calc(2em * 2);
    /* 2行分の高さを確保 */
    margin: 12px 0 0;
}

.c-product-card__name a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* 2行で打ち切り */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Details (ZigZag) --- */
.p-details {
    display: flex;
    align-items: center;
}

.p-details--reverse {
    flex-direction: row-reverse;
}

.p-details__img {
    width: 50%;
    height: 500px;
}

.p-details__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.p-details__content {
    width: 50%;
    padding: 100px;
    background-color: #fcf9f2;
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.p-details__title {
    font-family: var(--font-shippori);
    font-size: 38px;
    font-weight: 100;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #4A4343;
}

.p-details__title span {
    opacity: 0;
    transition: opacity 1s ease;
}

.p-details__title.is-inview span {
    opacity: 1;
}

.p-details__text {
    font-size: 16px;
    line-height: 2;
    text-align: justify;
    opacity: 0;
    transition: opacity 2s ease 1s;
    /* slower duration, added delay */
}

.p-details__text.is-inview {
    opacity: 1;
}

/* --- News --- */
.p-news {
    padding: 100px 0;
    background-color: #fff;
}

.p-news__inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.p-news__heading {
    text-align: center;
    font-size: 24px;
    font-weight: 100;
    margin-bottom: 60px;
}

.p-news__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.c-news-card__img {
    margin-bottom: 10px;
    position: relative;
}

.c-news-card__img img {
    aspect-ratio: 5 / 4;
    object-fit: cover;
}

.c-news-card__category {
    background-color: #333;
    color: #fff;
    font-size: 10px;
    padding: 2px 8px;
    margin-bottom: 5px;
    display: inline-block;
    border-radius: 2px;
}

.c-news-card__date {
    font-size: 12px;
    color: #999;
    font-family: var(--font-gothic);
    display: block;
    margin-bottom: 5px;
}

.c-news-card__title {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
}

/* --- Responsive --- */
@media screen and (max-width: 1024px) {
    .p-details__content {

        padding: 20px;

    }

    .p-products__list,
    .p-news__list {
        grid-template-columns: repeat(3, 1fr);
    }

    .p-concept__inner {
        height: auto;
        padding: 40px;
    }
}

@media screen and (max-width: 767px) {
    .p-features-nav__sub {
        font-size: 16px;

    }

    /* Hero */
    .p-hero__logo-mark {
        left: 20px;
        bottom: 20px;
        width: 150px;
    }

    .p-hero__scroll {
        right: 20px;
        bottom: 20px;
    }

    /* Concept */
    .p-concept__inner {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .p-concept__title {
        font-size: 25px;
        writing-mode: horizontal-tb;
        height: auto;
        width: 100%;
        text-align: center;
    }

    .p-concept__body {
        font-size: 17px;
        font-weight: bold;
        writing-mode: horizontal-tb;
        height: auto;
        width: 100%;

    }

    /* Features */
    .p-features-nav__list {
        grid-template-columns: 1fr;
    }

    .p-features-nav__item {
        height: 450px;
    }

    /* Details */
    .p-details,
    .p-details--reverse {
        flex-direction: column;
    }

    .p-details__img,
    .p-details__content {
        width: 100%;
        height: auto;
    }

    .p-details__img {
        height: 250px;
    }

    .p-details__content {
        padding: 40px 20px;
    }

    .p-details__title {
        font-size: 25px;
    }

    .p-details__text {
        font-size: 16px;

    }

    .c-product-card__name {
        font-size: 16px;

    }

}

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

    /* Products & News */
    .p-products__list,
    .p-news__list {
        grid-template-columns: repeat(2, 1fr);
    }

    .c-product-card__img img,
    .c-news-card__img img {
        width: 100%;

    }
}