/* ============================================
   カタログページ共通スタイル（ダークモード・閉鎖的仕様）
   ============================================ */

/* 共通パーツの即時表示と不要要素の削除 */
.sp-header,
.sp-fixed-btn {
    opacity: 1 !important;
    pointer-events: auto !important;
    animation: none !important;
}

/* ハンバーガーメニューと不要なナビ要素を削除 */
.hamburger-btn,
#common-hamburger,
#common-sp-nav,
.nav_list {
    /* PCメニューの中身を非表示 */
    display: none !important;
}

/* PCナビゲーションの表示設定（ロゴとオーダーボタンのみ残す） */
#common-pc-nav,
.pc-nav {
    display: block !important;
    background-color: #000 !important;
    border-bottom: 1px solid #222;
}

.nav_wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    /* height: 80px; */
}

/* ロゴのリンクを無効化（ロゴ自体は残す） */
.header-logo a,
.nav-logo a,
.footer-logo a {
    pointer-events: none !important;
    cursor: default !important;
}

/* オーダーボタンが黒背景でも見えるように調整 */
.nav-cta-btn {
    border: 1px solid #fff !important;
}

/* フッターのSNS（Instagram等）を非表示 */
.footer-sns,
.footer-instagram {
    display: none !important;
}

/* カタログページでは不要なスクロールダウンを非表示 */
.scrolldown {
    display: none !important;
}

/* 記事全体の背景を黒に */
.article {
    background-color: #000 !important;
}

/* --- カタログTOPページ --- */
.catalog-top-section {
    background-color: #000;
    padding: 120px 20px 0px;
}

.catalog-top-inner {
    max-width: 800px;
    margin: 0 auto;
}

.catalog-top-header {
    text-align: left;
    margin-bottom: 30px;
}

.catalog-top-en-title {
    font-size: 2.3rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.1);
    /* 白系の透過に変更 */
    margin-bottom: 5px;
    letter-spacing: 0.1em;
    line-height: 1.1;
}

.catalog-top-jp-title {
    font-size: 1rem;
    letter-spacing: 0.2em;
    font-weight: 500;
    color: #fff;
    /* 白に変更 */
    margin-top: 10px;
}

.catalog-top-lead {
    font-size: 0.95rem;
    color: #ccc;
    /* 薄いグレーに変更 */
    line-height: 1.8;
    margin-bottom: 40px;
    letter-spacing: 0.05em;
}

.catalog-item-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 60px;
}

.catalog-item-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 64px;
    background-color: transparent;
    /* 背景透過 */
    color: #fff;
    text-decoration: none;
    border: 1px solid #fff;
    /* 白枠追加 */
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    position: relative;
    transition: all 0.3s ease;
}

.catalog-item-btn:hover {
    background-color: #fff;
    color: #222;
}

.catalog-item-btn .btn-arrow {
    margin-left: 12px;
    background-color: currentColor;
    /* 文字色に合わせる */
}

.catalog-item-btn .btn-arrow::after {
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
}


/* --- カタログ詳細ページ --- */
.catalog-detail-section {
    background-color: #000;
    padding: 120px 20px 60px;
}

.catalog-detail-inner {
    max-width: 800px;
    margin: 0 auto;
}

.catalog-detail-header {
    text-align: left;
    margin-bottom: 35px;
}

.catalog-detail-en-title {
    font-size: 2.3rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.1);
    /* 白系の透過に変更 */
    margin-bottom: 5px;
    letter-spacing: 0.1em;
    line-height: 1.1;
}

.catalog-detail-jp-title {
    font-size: 1rem;
    letter-spacing: 0.2em;
    font-weight: 500;
    color: #fff;
    /* 白に変更 */
    margin-top: 10px;
}

/* カードグリッド（2列） */
.catalog-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 40px;
}

.catalog-card {
    background-color: #fff;
    /* カードは白を維持 */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.catalog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

.catalog-card-img {
    width: 100%;
    overflow: hidden;
}

.catalog-card-img img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.catalog-card-body {
    padding: 0px 12px 12px 12px;
    text-align: center;
}

.catalog-design-num {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 13px;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.catalog-detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Noto Sans JP", sans-serif;
}

.catalog-detail-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.catalog-detail-btn .btn-arrow {
    width: 18px;
    margin-left: 8px;
}

/* 順次追加予定テキスト */
.catalog-coming-soon {
    text-align: center;
    font-size: 0.9rem;
    color: #aaa;
    letter-spacing: 0.1em;
    margin-bottom: 50px;
    padding: 20px 0;
    border-top: 1px solid #222;
    /* 暗い色に変更 */
    border-bottom: 1px solid #222;
    /* 暗い色に変更 */
}


/* --- 戻るボタン共通 --- */
.catalog-back-wrap {
    text-align: center;
    margin-bottom: 40px;
}

.catalog-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 280px;
    height: 54px;
    background-color: transparent;
    color: #fff;
    /* 白に変更 */
    text-decoration: none;
    border: 1px solid #fff;
    /* 白枠に変更 */
    border-radius: 40px;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.catalog-back-btn:hover {
    background-color: #fff;
    color: #222;
    transform: translateY(-1px);
}

.back-arrow {
    width: 18px;
    height: 1px;
    background-color: currentColor;
    margin-right: 12px;
    position: relative;
    transform: rotate(180deg);
}

.back-arrow::after {
    content: "";
    position: absolute;
    right: 0;
    top: -3px;
    width: 6px;
    height: 6px;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
    transform: rotate(45deg);
}


/* ============================================
   モーダル（ポップアップ）
   ============================================ */
.catalog-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.catalog-modal-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.catalog-modal {
    background-color: #fff;
    border-radius: 20px;
    width: 92%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px 20px 30px;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.3s ease;
    -webkit-overflow-scrolling: touch;
}

.catalog-modal-overlay.is-active .catalog-modal {
    transform: translateY(0);
}

.catalog-modal-close {
    position: absolute;
    top: 10px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #666;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    transition: color 0.2s;
}

.catalog-modal-close:hover {
    color: #222;
}

/* スライダー */
.catalog-modal-slider {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 12px;
    touch-action: none;
    /* JSで全ての動きを制御 */
}

.catalog-modal-slides {
    display: flex;
    transition: transform 0.35s ease;
}

.catalog-modal-slides img {
    width: 100%;
    min-width: 100%;
    height: auto;
    display: block;
    flex-shrink: 0;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    /* iPhoneでの長押しメニューを防止 */
}

.catalog-slider-prev,
.catalog-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background-color: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.catalog-slider-prev:hover,
.catalog-slider-next:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.catalog-slider-prev {
    left: 8px;
}

.catalog-slider-next {
    right: 8px;
}

/* ドットインジケーター */
.catalog-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.catalog-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ccc;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s;
}

.catalog-slider-dot.is-active {
    background-color: #222;
}

/* モーダル内テキスト */
.catalog-modal-note {
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

/* オーダーボタン */
.catalog-modal-order {
    text-align: center;
}

.catalog-order-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 400px;
    height: 56px;
    background-color: #38af4f;
    color: #fff;
    text-decoration: none;
    border-radius: 40px;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    cursor: pointer;
}

.catalog-order-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.catalog-order-btn .btn-arrow {
    margin-left: 12px;
}

/* 通知ポップアップ（トースト） */
.catalog-toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background-color: rgba(0, 0, 0, 0.95);
    color: #fff;
    padding: 16px 24px;
    border-radius: 8px;
    z-index: 100000;
    /* モーダルよりも前面に */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    min-width: 300px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.catalog-toast.is-show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.catalog-toast p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 500;
}

@media (max-width: 768px) {
    .catalog-toast {
        bottom: 30px;
        width: calc(100% - 40px);
        min-width: auto;
    }
}