/*
Theme Name: Lightning Child
Theme URI:
Template: lightning
Description:
Author:
Tags:
*/

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

* {
    font-family: "EB Garamond", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

:root {
    --pcp: / 1440 * 100%;
    --pcv: / 1440 * 100vw;

    --spv: / 375 * 100vw;
	--spp: / 375 * 100%;
}

.container {
    max-width: inherit;
}

.first-view {
    height: calc(100vh + 112.15vw);
}

.first-view-bg {
    height: calc(1615 var(--pcv));
    position: fixed !important;
    width: 100% !important;
    left: 0;
    top: 0;
}

.first-view-h1 {
    width: calc(280 var(--pcp));
    right: calc(150 var(--pcp));
    top:  calc(344 var(--pcv));
    position: fixed !important;
    z-index: 4;
    font-size: 0.9vw !important;
    font-weight: lighter;
    line-height: 1.3em;
    letter-spacing: 0.15em;
}

.first-view-h1 img {
    width: 100%;
    margin-bottom: 15px;
}

.no-fix .first-view-h1 {
    position: absolute !important;
    top: calc(100vh + 22vw);
}

.no-fix .first-view-bg {
    position: absolute !important;
    top: 100vh;
}

h2, h3 {
    padding: 0;
    border-top: none;
    border-bottom: none;
}

h3:after {
    border-bottom: none;
}
.concept-section {
    margin: 150px 0;
}

.concept-h2 {
    font-size: 3.7rem !important;
    font-family: "Playfair Display", serif;
    font-weight: 400 !important;
    letter-spacing: .2em !important;
    margin-bottom: .7em;
    text-indent: .2em;
}

.concept-p {
    font-size: 13px;
    line-height: 2;
    letter-spacing: 0.05em;
    font-family: inherit;
    color: #c0c0c0;
    font-family: YuGothic;
}

.product-section {
    display: flex;
    flex-wrap: wrap;
    margin: 0 calc(50% - 50vw);
	width: 100vw;
}

.product-container {
    position: relative;
    width: 25%; /* 必要に応じてサイズを調整 */
    aspect-ratio: 5 / 6;
    overflow: hidden; /* 親要素からはみ出した部分を隠す */
}

.product-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0; /* 初期状態では非表示 */
    transition: opacity 3s ease; /* フェードのアニメーション */
}

.product-container img.active {
    opacity: 1; /* 表示する画像 */
}

.product-container:hover {
    opacity: 0.4;
}

.dialog {
    max-height: 90vh;
    overflow: auto;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    /* 初期状態は非表示 */
    display: none;
    /* アニメーションの設定 */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
}

.dialog {
    background: white;
    color: black;
    width: 90%;
    max-width: 800px;
}

#modal-close {
    width: 34px;
    height: 34px;
    position: absolute;
    right: 6px;
    top: 6px;
    z-index: 130;
    cursor: pointer;
}

#modal-close::before {
    transform: rotate(45deg);
}

#modal-close::after {
    transform: rotate(-45deg);
}

#modal-close::before, #modal-close::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background: #000;
    position: absolute;
    top: 50%;
    left: 0;
}

/* アニメーション用のクラス */
.modal.is-animate {
    opacity: 1;
}

/* modal内コンテンツ */
.modal-content {
    display: flex;
    flex-direction: row;
    margin: 0 auto;
    border: none;
}

/* modal内スライダー */
.images-container {
    /* width: calc(472 / 850* 100%); */
    position: relative;
    width: 94%;
    overflow: hidden;
}

.slides {
    display: flex;
    transition: transform 0.3s ease;
    cursor: grab;
    will-change: transform;
}

.slides.no-transition {
    transition: none;
}

.slide {
    min-width: 100%;
    height: 569px;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0);
    color: white;
    padding: 16px;
    cursor: pointer;
    border: none;
    font-size: 25px;
}

.prev {
    left: 0;
}

.next {
    right: 0;
}

/* modal内テキスト */
.text-container {
    width: 50%;
    padding: 20px;
    display: flex;
    align-items: flex-end;
}

.text-container td:nth-child(1) {
    max-width: 90px;
}

.text-container td:nth-child(2) {
    max-width: 180px;
}

.text-container td:nth-child(3) {
    max-width: 70px;
}

.slick-track {
    width: 500px !important;
}

table {
    border-top: 0;
}

table td {
    border-bottom: 0 !important;
    padding: .3em;
}

.buy-btn {
    color: white;
    background: black;
    padding: .4em 1.4em;
    font-size: 11px;
}

.buy-btn:hover {
    color: white;
    text-decoration: none;
    opacity: 0.7;
}

.btn-all-item {
    min-width: 180px;
}
.btn-all-item a {
    border-radius: 0px;
    background: none;
    padding: 5px 40px;
    font-size: 15px;
    letter-spacing: 0.22em;
    transition: outline 0.2s ease-out, background 0.2s ease-out;
}

.btn-all-item .wp-block-button .wp-block-button__link:hover, .wp-block-button .wp-block-button__link:hover:not(.has-background) {
    outline: inset 6px #fff;
    background: #666;
}

.h3-title {
    font-size: 16px;
    margin-bottom: 0.5em;
}

.sns-icon div{
    display: flex;
    align-items: center;
    gap: 5px;
}

.icon {
    height: 22px;
    margin-bottom: 0;
    margin-right: 0.5em;
}

.info p {
    font-size: 13px;
    margin-bottom: 0;
    line-height: 20px;
}

.info a:hover {
    text-decoration: none;
}

/* アーカイブ */
.archives h2 {
    margin-bottom: .5em;
}

.archives .dialog {
    max-width: 560px ;
    height: 450px ;
}

.archives .modal-content {
    flex-direction: column;
    padding: 2em;
}

.archive {
    padding: .4em 0;
}

.archive a {
    color: black !important;
}

.archive a:hover {
    text-decoration: none;
}

/* タブレットサイズ */
@media screen and (max-width: 767px) {
    .first-view-h1 {
        /* top: calc(100vh + 122.66vw) !important; */
        width: 100%;
        font-size: 2.5rem !important;
        text-align: center;
        right: 0;

        top: calc(500 var(--spv));
    }

    .no-fix .first-view-h1 {
        top: calc(100vh + 127.55vw);
    }

    .first-view-h1 img {
        width: 85%;
    }

    .concept-section {
        margin-top: 70vh;
    }

    .concept-h2 {
        font-size: 5.7rem !important;
        letter-spacing: .3em !important;
        text-indent: .3em;
    }

    .concept-p {
        font-size: 1.58rem;
    }


    #modal-close::before, #modal-close::after {
        background: #fff;
    }

    #modal-close {
        width: calc(34 var(--spv));
        height: calc(34 var(--spv));
        right: calc(5 var(--spv));
        top: calc(5 var(--spv));
    }

    .archives #modal-close::before , .archives #modal-close::after{
        background: #000;
    }

    .modal-content {
        flex-direction: column;
    }

    .product-container {
        width: 50%;
    }

    .images-container {
        width: 100%;
    }

    .text-container {
        width: 100%;
    }

    .slide {
        height: 100%;
    }
}

@media screen and (max-width: 600px) {
    .first-view-h1 {
        font-size: 2rem !important;
    }

    .concept-h2 {
        font-size: 4rem !important;
    }

    .concept-p {
        font-size: 1rem;
    }

    table td {
        padding-right: .5em;
    }
}

@media screen and (max-width: 431px) {
    .first-view-h1 {
        font-size: 1.6rem !important;
    }

    .concept-h2 {
        font-size: 3rem !important;
    }
}

/* 以下既存要素の非表示 */
header, .page-header, .breadSection, .siteFooter {
    display: none;
}

.siteContent {
    padding-top: 0;
    padding-bottom: 0;
}
.vk-mobile-nav-menu-btn {
    display: none;
}
