@charset "UTF-8";

/* ===================================== */
/* パフューム共通スタイル */
/* ===================================== */

/* ------------------------------------ */
/* 基本設定 */
/* ------------------------------------ */

.perfume-container {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto 0;
}

/* ------------------------------------ */
/* Swiperカルーセル設定 */
/* ------------------------------------ */

.perfume-swiper {
    overflow: hidden;
}

.perfume-swiper .swiper-wrapper {
    display: flex;
}

.perfume-swiper .swiper-slide {
    display: flex;
    flex-direction: column;
    height: auto;
}

/* カルーセルナビゲーション（非表示） */
.perfume-swiper .swiper-button-prev,
.perfume-swiper .swiper-button-next {
    display: none;
}

/* ------------------------------------ */
/* グリッドレイアウト（PC用） */
/* ------------------------------------ */

@media (min-width: 769px) {
    .perfume-container[data-layout-type="grid-list"] {
        padding: 0 60px;
    }

    .perfume-container[data-layout-type="grid-list"] .perfume-swiper {
        display: block;
    }
    
    .perfume-container[data-layout-type="grid-list"] .swiper-wrapper {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        grid-template-rows: repeat(4, 1fr);
        gap: 20px;
    }
}

/* ------------------------------------ */
/* カルーセルレイアウト（4行） */
/* ------------------------------------ */

/* ------------------------------------ */
/* カルーセルレイアウト（2行） */
/* ------------------------------------ */
.perfume-container[data-layout-type="carousel-2row"] {
    max-width: 1290px;
    padding: 0 25px
}

.carousel-2row__title {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.perfume-container[data-layout-type="carousel-2row"] .perfume-swiper {
    display: block;
}

.perfume-container[data-layout-type="carousel-2row"] .swiper-wrapper {
    display: flex;
}

@media (max-width: 768px)  {
    .perfume-container[data-layout-type="carousel-2row"] {
        padding: 0 15px;
    }
    .carousel-2row__title {
        text-align: center;
        font-size: 1.6rem;
        margin-bottom: 15px;
    }
}


/* ------------------------------------ */
/* 共通カードスタイル */
/* ------------------------------------ */

.card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition:  0.3s ease;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.card:hover {
    opacity: .7;
    /* transform: translateY(-4px); */
    /* box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); */
}

.card__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.card__info {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 20px;
}

.card__title {
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    margin: 0;
}

.card__badge {
    position: absolute;
    top: 0px;
    left: 0px;
    background-color: #000030;
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    z-index: 3;
    text-transform: uppercase;
}

.card::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-top: 2px solid white;
    border-right: 2px solid white;
    transform: translateY(-50%) rotate(45deg);
    z-index: 3;
}

/* ------------------------------------ */
/* レスポンシブ対応 */
/* ------------------------------------ */

/* SP用表示設定 */
@media (max-width: 768px) {
    .perfume-container {
        padding: 0 15px;
    }
    
    
    /* SP時：SwiperのgridオプションでCarousel表示（CSS Gridは使用しない） */
    .perfume-container[data-layout-type="carousel-2row"] .swiper-wrapper {
        /* Swiperのgridオプション使用のため、CSS Grid設定をコメントアウト
        grid-template-columns: repeat(2, 1fr);
        gap: 12px 12px;
        */
        display: flex;
    }
    
    .card {
        min-height: 100px;
    }
    
    .card__info {
        padding: 10px;
    }
    
    .card__title {
        font-size: 12px;
    }
    
    .card__badge {
        /* font-size: 12px; */
        padding: 2px 6px;
    }
    
    .card::after {
        right: 8px;
        width: 6px;
        height: 6px;
    }
}

/* ------------------------------------ */
/* パフュームチャートリンク */
/* ------------------------------------ */

.perfume-chart-link {
    text-align: center;
    margin-top: 40px;
}

.perfume-chart-link__button {
    display: inline-block;
    background: #333;
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid transparent;
    transition: 0.3s ease;
}

.perfume-chart-link__button:hover {
    color: #333;
    background-color: #fff;
    border: 1px solid #333;
}

/* ------------------------------------ */
/* モーダル関連スタイル */
/* ------------------------------------ */

.perfume-modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.perfume-modali__wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    max-width: 1100px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.perfume-modal__content {
    max-width: 1100px;
    width: 100%;
}

.perfume-modal__close {
    position: absolute;
    top: -26px;  
    right: -26px; 
    font-size: 28px;
    background: #000030;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    cursor: pointer;
    color: #fff;
    z-index: 50;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.perfume-modal__close::before,
.perfume-modal__close::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: #fff;
    transform: rotate(45deg);
}

.perfume-modal__close::after {
    transform: rotate(-45deg);
}

.perfume-modal__inner {
    width: 100%;
    /* max-width: 1000px; */
    position: relative;
}

/* モーダルナビゲーション */
.perfume-modal__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    /* background: rgba(255, 255, 255, 0.9); */
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
    color: #333;
}

/* PC: コンテンツの左右に配置 */
@media (min-width: 769px) {
    .perfume-modal__nav--prev {
        left: 1.5%;
    }
    
    .perfume-modal__nav--next {
        right: 1.5%;
    }
    
    .perfume-modal__inner {
        display: flex;
        align-items: flex-start;
        gap: 30px;
        padding: 40px 85px;
    }
    
    .perfume-modal__image-area {
        flex: 0 0 300px;
        width: 300px;
        position: relative;
    }
    
    .perfume-modal__info {
        flex: 1;
    }
}

/* SP: */
@media (max-width: 768px) {
    .perfume-modali__wrapper {
        max-width: 800px;
        width: 80%;
        padding: 0;
        flex-direction: row;
        align-items: center;
        /* margin-top: 26px; */
    }

    .perfume-modal__content {
        height: 680px;
        max-height: 80vh;
        overflow-y: scroll;
        padding: 30px 0;
    }

    .perfume-modal__close {
        top: -26px;
        right: -26px;
    }

    .perfume-modal__nav--prev {
        left: -40px;
    }
    
    .perfume-modal__nav--next {
        right: -40px;
    }
    
    .perfume-modal__inner {
        display: flex;
        flex-direction: column;
        /* padding: 30px 20px; */
        max-width: calc(100% - 10%);
        margin:  0 auto;
    }

    .perfume-modal__image {
        position: relative;
    }
    
    .perfume-modal__image-area {
        width: 76%;
        margin: 0 auto 20px;
        position: relative;
    }

    .perfume-modal__image-area svg {
        height: 65%;
    }
    
    .perfume-modal__info {
        width: 100%;
    }
}

/* モーダル画像 */
.perfume-modal__image {
    width: 100%;
    height: auto;
    max-width: 100%;
}

.perfume-modal__head {
    display: flex;
    gap: 16px;
    width: 100%;
    height: fit-content;
    padding-bottom: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid #000030;
}

.perfume-modal__badge {
    display: none;
    max-width: 68px;
    height: fit-content;
    background-color: #000030;
    color: white;
    font-size: 12px;
    text-align: center;
    padding: 2px 12px;
    text-transform: uppercase;
}

.perfume-modal__titleBox {
    width: 100%;
}

/* モーダル情報エリア */
.perfume-modal__info {
    color: #000030;
}
.perfume-modal__title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0;
}

.perfume-modal__subtitle {
    font-size: 10px;
    line-height: 1.5;
}

.perfume-modal__description {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
    font-weight: 600;
    word-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

.perfume-modal__additional-description {
    margin-bottom: 16px;
}

.perfume-modal__notes {
    margin-bottom: 24px;
}

.perfume-modal__notes ul li {
    font-size: 12px;
}

.perfume-modal__cta {
    background: #2C2E33;
    border-radius: 3px;
    color: white;
    border: none;
    padding: 12px 30px;
    cursor: pointer;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    max-width: 300px;
    display: flex;
    justify-content: center;
    transition: 0.3s ease;
}

.perfume-modal__cta:hover {
    background: #2C2E33;
    color: white;
    opacity: .7;
}

@media (max-width: 768px) {
    .perfume-modal__head {
        flex-direction: column;
    }
    .perfume-modal__badge {
        font-size: 12px;
        padding: 4px 8px;
    }

    .perfume-modal__cta {
        margin: 0 auto;
    }
}

/* ------------------------------------ */
/* アニメーション・トランジション */
/* ------------------------------------ */

.perfume-modal {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.perfume-modal--show {
    opacity: 1;
}

.perfume-modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ------------------------------------ */
/* 製品ページ下部チャート図
/* ------------------------------------ */
.perfumeChart {
    display: flex;
    justify-content: flex-end;
    margin: 30px auto 0;
}

.perfumeChart a {
    color: #393c41;
    text-decoration: underline;
    
}

.chartmodal {
    display: none;
}

@media (max-width: 768px)  {
    .perfumeChart {
        margin-top: 15px;
    }
}

/* ------------------------------------ */
/* 製品詳細ページ
/* ------------------------------------ */
.productDetail__ttl {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.productDetail__desc {
    margin-bottom: 2rem;
}