@charset "utf-8";

/* ===== RESET & BASE ===== */
* { box-sizing: border-box; }
body {
    background: #e2e2e2;
    margin: 0;
    padding: 0;
}
.main_wrap_project {
    font-family: "Google Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "GRAD" 0;
}
#breadcrumb { border-top: none; }

/* ===== WRAP ===== */
.bwd-wrap {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

/* ===== FV ===== */
.bwd-fv img {
    width: 100%;
    display: block;
}

/* ===== INTRO TEXT ===== */
.bwd-intro {
    text-align: center;
    padding: 48px 20px 40px;
    font-size: 14px;
    line-height: 2.2;
    letter-spacing: 0.08em;
    color: #282626;
}

/* ===== GRID SECTION ===== */
.bwd-section {
    display: flex;
    align-items: flex-start;
    padding: 0 0 60px;
}

/* 縦書きテキスト ラッパー */
.bwd-vertical-wrap {
    flex-shrink: 0;
    align-self: stretch;
    position: relative;
    border-left: 1px solid #282626;
    margin-left: 10px;
}

/* 縦書きテキスト */
.bwd-vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-size: 14px;
    letter-spacing: 0.12em;
    color: #666;
    white-space: nowrap;
    padding: 10px 6px 10px 10px;
    position: sticky;
    top: 150px;
}

/* グリッド */
.bwd-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 0 10px 0 4px;
}

/* 各アイテム */
.bwd-item {
    cursor: pointer;
    position: relative;
}
.bwd-item img {
    width: 100%;
    display: block;
}
.bwd-tap {
    text-align: center;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: #555;
    padding: 4px 0 10px;
}

/* ===== BOTTOM BUTTONS ===== */
.bwd-btn-area {
    width: 50%;
    margin: 20px auto 80px;
}
.bwd-btn-area a {
    display: block;
    text-align: center;
    background: #282626;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.12em;
    padding: 20px 10px;
    margin-bottom: 40px;
    transition: .3s;
}
.bwd-btn-area a:hover {
    opacity: 0.75;
}

/* ===== POPUP OVERLAY ===== */
.popup-overlay {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    z-index: 9000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.popup-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ポップアップ本体 */
.popup-box {
    background: #fff;
    width: 90%;
    max-width: 480px;
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
    padding: 40px 30px;
    overflow-x: hidden;
}

/* × 閉じるボタン */
.popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #222;
    z-index: 10;
    background: none;
    border: none;
    padding: 0;
}

/* 画像スライダー エリア */
.popup-slider-outer {
    position: relative;
    width: 100%;
}
.popup-slider-wrap {
    width: 100%;
    overflow: hidden;
}
.popup-slider-track {
    display: flex;
    transition: transform 0.35s ease;
}
.popup-img-slide {
    width: 100%;
    flex-shrink: 0;
}
.popup-img-slide img {
    width: 100%;
    display: block;
}

/* 左右矢印 */
.popup-prev, .popup-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 5;
    line-height: 1;
}
.popup-prev {
    left: -20px;
}
.popup-next {
    right: -20px;
}
.popup-prev img, .popup-next img {
    width: 12px;
    display: block;
}
.popup-prev:hover,
.popup-next:hover { opacity: 0.6; }

/* 商品情報 */
.popup-info {
    padding: 18px 0 0;
    font-size: 14px;
    line-height: 1.7;
    color: #222;
    letter-spacing: 0.05em;
}

/* BUYボタン */
.popup-buy {
    display: block;
    background: #222;
    color: #fff;
    text-decoration: none;
    text-align: center;
    font-size: 14px;
    letter-spacing: 0.15em;
    padding: 10px 20px;
    margin: 14px 0 0;
    border: none;
    cursor: pointer;
    width: 30%;
    transition: .3s;
}
.popup-buy:hover { opacity: 0.75; color: #fff; }


@media screen and (max-width: 768px) {
    .bwd-intro { font-size: 3.4vw; }
    .bwd-vertical-text { font-size: 2.2vw; top: 60px; }
    .bwd-tap { font-size: 2.5vw; }
    .bwd-btn-area { width: 65%; }
    .bwd-btn-area a { font-size: 3.2vw; padding: 13px 10px; }
}
