/* ============================================================
Global utilities
============================================================ */
:root {
    --black: #000;
    --white: #fff;
    --gray: #eee;
    --transition-fast: 0.2s ease-out;
    --transition-med: 0.3s ease-out;
}

::selection {
    background-color: var(--black);
    color: var(--white);
}

.contents-cover {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 100;
}

/* ============================================================
Hero
============================================================ */
#hero {
    width: 100%;
    position: relative;
}

/* グラデーションマスクアニメーション用 */
#hero {
    --mask-size: 0%;
    --mask-angle: 165;
    --fade-opacity: 0;
    opacity: var(--fade-opacity);
    mask-image: linear-gradient(calc(var(--mask-angle) * 1deg),
            black 0%,
            black var(--mask-size),
            transparent var(--mask-size));
    -webkit-mask-image: linear-gradient(calc(var(--mask-angle) * 1deg),
            black 0%,
            black var(--mask-size),
            transparent var(--mask-size));
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
}

/* アニメーション完了後はマスクを削除 */
#hero.animation-complete {
    mask-image: none;
    -webkit-mask-image: none;
    opacity: 1;
}

#hero .main-title {
    position: absolute;
    bottom: 40px;
    left: 40px;
    color: white;
    z-index: 99;
    opacity: 0;
    /* 初期状態で非表示 */
}

#hero .main-title .title {
    font-size: 5vw;
    font-weight: lighter;
    letter-spacing: 0.2vw;
    opacity: 0;
}

#hero .main-title .subtitle {
    font-size: 3vw;
    font-weight: lighter;
    letter-spacing: 0.2vw;
    opacity: 0;
}

#hero .main-title .subtitle .decoration {
    display: inline-block;
    position: relative;
    top: -0.1em;
}

#hero .logo-rope {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 12vw;
    z-index: 99;
    opacity: 0;
}


@media (max-width: 768px) {

    #hero .main-title {
        position: absolute;
        bottom: 20%;
        left: 0;
        width: 100%;
        color: white;
        z-index: 99;
        opacity: 0;
        text-align: center;
    }

    #hero .main-title .title {
        font-size: 8vw;
        font-weight: lighter;
        letter-spacing: 0.2vw;
        opacity: 0;
    }

    #hero .main-title .subtitle {
        font-size: 5vw;
        font-weight: lighter;
        letter-spacing: 0.2vw;
        opacity: 0;
        margin-top: 4px;
    }

    #hero .logo-rope {
        position: absolute;
        top: 90%;
        right: 40%;
        width: 22vw;
        z-index: 99;
        opacity: 0;
    }
}

/* ============================================================
Hero Swiper
============================================================ */
.hero-swiper {
    position: relative;
    width: 100%;
}

/* PC版とSP版の両方でヒーローSwiperを表示 */
.pc .hero-swiper,
.sp .hero-swiper {
    display: block;
}

.hero-swiper .swiper-wrapper {
    width: 100%;
}

.hero-swiper .swiper-slide {
    width: 100%;
    position: relative;
}

.hero-swiper .swiper-slide img {
    width: 100%;
}

/* ============================================================
Fade mask
============================================================ */

/* 汎用フェードマスククラス */
.fade-mask {
    --mask-size: 0%;
    --mask-angle: 160;
    opacity: var(--fade-opacity);
    mask-image: linear-gradient(calc(var(--mask-angle) * 1deg),
            black 0%,
            black var(--mask-size),
            transparent var(--mask-size),
            transparent 100%);
    -webkit-mask-image: linear-gradient(calc(var(--mask-angle) * 1deg),
            black 0%,
            black var(--mask-size),
            transparent var(--mask-size),
            transparent 100%);
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    /* GPU最適化 */
    transform: translateZ(0);
    backface-visibility: hidden;
}

.fade-mask.animation-complete {
    mask-image: none;
    -webkit-mask-image: none;
    opacity: 1;
}

/* ============================================================
Device helpers
============================================================ */
@media (max-width: 768px) {
    .pc {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .sp {
        display: none !important;
    }
}

/* ============================================================
Main layout
============================================================ */
#main {
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
}

@media (max-width: 768px) {
    #main {
        width: 100%;
    }
}

@media (min-width: 769px) {
    #main {
        width: 90%;
        max-width: 1200px;
    }
}

/* ============================================================
Intro
============================================================ */
.brand-intro {
    margin: 40px auto;
    text-align: center;
}

.intro-paragraph {
    display: block;
    line-height: 1.6rem;
    font-size: 0.62rem;
}

.brand-intro {
    margin: 90px auto;
}

.intro-head {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.intro-head-jp {
    font-size: 1rem;
    margin-bottom: 40px;
}

.intro-paragraph {
    font-size: 1rem;
    line-height: 2rem;
}

@media (max-width: 768px) {
    .brand-intro {
        width: 80%;
        margin: 40px auto;
    }

    .intro-head {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .intro-head-jp {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }

    .intro-paragraph {
        font-size: 0.8rem;
        line-height: 1.5rem;
    }
}

/* ============================================================
Swipe Gallery Styles
============================================================ */
.swipe-gallery {
    position: relative;
    width: 100%;
    height: 100%;
}

.swipe-gallery .swiper-slide {
    width: 100%;
    height: 100%;
}

.swipe-gallery .swiper-slide .photo {
    width: 100%;
    height: 100%;
}

.swipe-gallery .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================================
Product list (shared)
============================================================ */
.product-list {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: end;
    margin: 40px auto 120px auto;
}

.product-list .product-item {
    display: flex;
    justify-content: end;
    align-items: center;
}

.product-item {
    gap: 8px;
}

.product-item .product-name,
.product-item .product-price {
    /* width: 48px; */
    font-size: 0.62rem;
}

.product-item a.product-action {
    background: var(--black);
    color: var(--white);
    font-size: 0.56rem;
    letter-spacing: 0.1rem;
    padding: 3px 8px;
    border: 1px solid var(--black);
    cursor: pointer;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.product-item a.product-action:hover {
    background: var(--white);
    color: var(--black);
}

@media (min-width: 769px) {
    .product-list {
        gap: 16px;
    }

    .product-item {
        gap: 32px;
    }

    .product-item .product-name,
    .product-item .product-price {
        font-size: 0.9rem;
    }

    .product-item a.product-action {
        font-size: 0.68rem;
        padding: 3px 20px;
    }
}

@media (max-width: 769px) {
    .product-list {
        margin: 30px auto 0 auto;
    }

    .product-item {
        margin-bottom: 10px;
        gap: 16px
    }
}

/* ============================================================
Content blocks (generic spacing)
============================================================ */
.content-block {
    position: relative;
    margin: 0 auto;
    margin-block: 120px;
}

@media (max-width: 769px) {
    .content-block {
        margin-block: 70px;
    }
}

/* ============================================================
Block‑specific layout overrides
============================================================ */

/* --- block 01, 07, 08 ------------------------------------------------- */
#photo-block-01,
#photo-block-07,
#photo-block-08 {
    width: 80%;
}

#photo-block-01 .image-gallery,
#photo-block-07 .image-gallery,
#photo-block-08 .image-gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

#photo-block-01 .image-gallery .image-item.item-1,
#photo-block-07 .image-gallery .image-item.item-1,
#photo-block-08 .image-gallery .image-item.item-1 {
    flex: 1;
    width: 50%;
}

#photo-block-01 .image-gallery .image-item.item-2,
#photo-block-07 .image-gallery .image-item.item-2,
#photo-block-08 .image-gallery .image-item.item-2 {
    flex: 1;
    width: 50%;
}

@media (max-width: 769px) {

    #photo-block-01,
    #photo-block-07,
    #photo-block-08 {
        width: 90%;
    }

    #photo-block-01 .image-gallery,
    #photo-block-07 .image-gallery,
    #photo-block-08 .image-gallery {
        gap: 5%;
    }
}

/* --- block 02, 04 ------------------------------------------------- */
#photo-block-02,
#photo-block-04 {
    width: 70%;
}

#photo-block-02 .image-gallery,
#photo-block-04 .image-gallery {
    justify-content: center;
    align-items: center;
}

#photo-block-02 .image-gallery .image-item,
#photo-block-04 .image-gallery .image-item {
    width: 100%;
}

@media (min-width: 769px) {}

@media (max-width: 769px) {

    #photo-block-02,
    #photo-block-04 {
        width: 90%;
    }
}

/* --- block3 ------------------------------------------------- */
#photo-block-03 {
    width: 80%;
    display: flex;
    gap: 20px;
}

#photo-block-03 .image-gallery {
    flex: 1;
}

#photo-block-03 .image-gallery .image-item {
    width: 100%;
}

#photo-block-03 .credit {
    flex: 0.6;
    display: flex;
    justify-content: center;
    align-items: center;

    .product-list {
        margin: 0 auto 0 auto;
    }
}

@media (min-width: 769px) {}

@media (max-width: 769px) {
    #photo-block-03 {
        width: 90%;
    }
}

/* --- block 05, 10 ------------------------------------------------- */
#photo-block-05,
#photo-block-10 {
    width: 80%;
    display: flex;
    gap: 40px;
}

#photo-block-10 {
    margin-block: 20px;
}

#photo-block-05 .image-gallery,
#photo-block-10 .image-gallery {
    flex: 1;
}

#photo-block-05 .image-gallery .image-item,
#photo-block-10 .image-gallery .image-item {
    width: 100%;
}

@media (min-width: 769px) {}

@media (max-width: 769px) {

    #photo-block-05,
    #photo-block-10 {
        width: 90%;
        gap: 5%;
    }
}

/* --- block 06, 09 ------------------------------------------------- */
#photo-block-06,
#photo-block-09 {
    width: 40%;
}

#photo-block-06 .image-gallery,
#photo-block-09 .image-gallery {
    justify-content: center;
    align-items: center;
}

#photo-block-06 .image-gallery .image-item,
#photo-block-09 .image-gallery .image-item {
    width: 100%;
}

@media (min-width: 769px) {}

@media (max-width: 769px) {

    #photo-block-06,
    #photo-block-09 {
        width: 60%;
    }
}

/* --- block 11 ------------------------------------------------- */

#photo-block-11 {
    width: 50%;
}

#photo-block-11 .image-gallery {
    justify-content: center;
    align-items: center;
}

#photo-block-11 .image-gallery .image-item {
    width: 100%;
}

@media (max-width: 769px) {

    #photo-block-11 {
        width: 90%;
        margin-block: 10px;
    }
}

/* ============================================================
Staff credit
============================================================ */
.staff-credit {
    text-align: center;
    margin-top: 160px;
    margin-bottom: 80px;
}

.staff-credit ul li {
    margin-bottom: 40px;
}

.staff-role {
    margin-bottom: 12px;
    color: #9c9c9c;
    font-size: 0.72rem;
}

.staff-name {
    font-size: 0.72rem;
}

@media (min-width: 769px) {

    .staff-role,
    .staff-name {
        font-size: 0.82rem;
    }
}

@media (max-width: 769px) {
    .staff-credit {
        margin-top: 80px;
        margin-bottom: 0px;
    }
}

/* ----------------------------------------------------------------
ec store
----------------------------------------------------------------- */

.ec {
    text-align: center;
    width: 100%;
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: center;
    justify-content: center;
    margin: 120px auto 90px auto;
}

.ec p {
    font-size: 0.9rem;
    letter-spacing: 0.15rem;
    font-style: italic;
    font-weight: normal;
    text-align: center;
    margin: 0 10px;
    padding: 0;
}

.ec p a {
    color: #000;
    background: #fff;
    min-width: 320px;
    min-height: 60px;
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: center;
    align-items: center;
    box-sizing: border-box;
    border: 1px solid #111;
    padding: 0 20px;
    transition: color 0.2s ease-out, background 0.2s;
}

.ec p a:hover {
    color: #fff;
    background: #000;
}

@media (max-width: 769px) {
    .ec {
        text-align: center;
        width: 70%;
        margin: 80px auto 40px auto;
    }

    .ec p a {
        min-width: 280px;
    }
}


/* ============================================================
Footer
============================================================ */
#footer {
    width: 100%;
    margin: 64px auto;
    text-align: center;
}

#footer a:hover img {
    opacity: 0.5;
}

#footer-logo {
    margin: 0 auto 90px;
}

#footer-logo h3 {
    width: 90px;
    margin: 0 auto 5px;
}

#footer-logo h3 img {
    width: 100%;
}

#footer-link {
    font-size: 0.8rem;
    letter-spacing: 0.1rem;
    margin: 0 auto 90px;
}

#footer-link span {
    color: #aaa;
    margin: 0 25px;
}

#footer-sns {
    margin: 0 auto 90px;
}

.footer-sns-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

#footer-sns p {
    font-size: 1rem;
    letter-spacing: 0.1rem;
    margin: 0 auto 40px;
}

#footer-sns img {
    width: 33px;
    margin: 0 15px;
}

#footer-sns a:nth-of-type(3) img {
    margin: 0 15px 0 8px;
}

#footer-copyright {
    width: 100%;
    margin: 0 auto 90px;
}

#footer-copyright p {
    font-size: 0.8rem;
    letter-spacing: 0.1rem;
}

@media (min-width: 769px) {
    #footer {
        margin: 90px auto;
    }
}

@media (max-width: 768px) {
    #footer-link a {
        display: block;
        margin: 0 auto 20px;
    }

    #footer-link span {
        display: none;
    }
}

/* ============================================================
Mobile touch issues fix
============================================================ */
/* 画像のタッチ時の問題を防ぐ */
.photo a,
.photo img {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.photo a:active {
    opacity: 1;
}

/* fade-mask適用時のタッチ問題を防ぐ */
.fade-mask:active {
    opacity: inherit;
}

/* モバイルでhover状態を無効化 */
@media (hover: none) {

    .photo a:hover,
    .photo a:active {
        opacity: 1;
        filter: none;
    }
}