/* ==========================================
   1. オリジナルグッズ（products.html）
========================================== */
.products .section-title {
    margin-bottom: 40px;
}

.products h2 {
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: clamp(30px, 3vw, 48px);
    font-weight: 500;
    line-height: 1.55;
    margin: 0 0 12px;
}

.section-desc {
    color: var(--muted);
    font-size: 15px;
    margin: 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.product-card {
    background: var(--panel);
    border: 1px solid rgba(155, 120, 207, 0.16);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(90, 62, 120, 0.06);
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 48px rgba(90, 62, 120, 0.12);
}

.product-card.clickable {
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card.clickable:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(88, 58, 104, 0.15);
}

.product-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #ffffff;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.product-card:hover .product-img img {
    transform: scale(1.04);
}

.product-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 11px;
    font-weight: 800;
    color: var(--lavender-deep);
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.product-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.4;
}

.product-text {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
    line-height: 1.6;
}

.product-more {
    margin-top: 12px;
    font-size: 13px;
    font-weight: 700;
    color: #8a57ba;
    text-align: right;
    transition: transform 0.2s ease, color 0.2s ease;
}

.product-card:hover .product-more {
    transform: translateX(4px);
    color: #6a3a9a;
}

/* NO IMAGE 用スタイル */
.no-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f6efff 0%, #eae0f7 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--lavender-deep);
    font-family: sans-serif;
    user-select: none;
}

.no-image span {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.12em;
    opacity: 0.7;
}

.no-image small {
    font-size: 11px;
    margin-top: 4px;
    letter-spacing: 0.05em;
    opacity: 0.6;
}

/* COMING SOON バナー*/
.coming-soon-banner {
    margin: 48px auto 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(246, 239, 255, 0.85) 50%, rgba(255, 248, 225, 0.7) 100%);
    border: 1px solid rgba(155, 120, 207, 0.25);
    border-radius: 24px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 12px 36px rgba(90, 62, 120, 0.06);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.coming-soon-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--lavender));
}

.coming-soon-banner:hover {
    border-color: rgba(155, 120, 207, 0.4);
    box-shadow: 0 16px 44px rgba(90, 62, 120, 0.12);
    transform: translateY(-2px);
}

.banner-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #e99700;
    background: rgba(243, 196, 0, 0.15);
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.banner-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--lavender-deep);
    letter-spacing: 0.1em;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.banner-title::before,
.banner-title::after {
    content: "✨";
    font-size: 0.9rem;
    display: inline-block;
    animation: pulseSparkle 2s ease-in-out infinite alternate;
}

.banner-text {
    font-size: 0.88rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.6;
}

/* ==========================================
   よくある質問（FAQアコーディオン）
========================================== */
.faq-section {
    margin-top: 80px;
    padding-top: 20px;
}

.faq-header {
    text-align: center;
    margin-bottom: 36px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: var(--panel);
    border: 1px solid rgba(243, 196, 0, 0.25);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(90, 62, 120, 0.05);
    transition: all 0.25s ease;
}

.faq-item[open] {
    border-color: rgba(243, 196, 0, 0.5);
    box-shadow: 0 12px 30px rgba(90, 62, 120, 0.08);
}

.faq-question {
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    position: relative;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: rgba(243, 196, 0, 0.08);
}

/* ★ 左側：質問の頭に自動表示するゴールドの「Q」アイコン */
.faq-question::before {
    content: "Q";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, var(--gold), var(--gold2));
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-right: 12px;
    box-shadow: 0 4px 10px rgba(243, 196, 0, 0.3);
}

/* 右側：「+」アイコン（開閉用） */
.faq-question::after {
    content: "+";
    font-size: 18px;
    font-weight: 400;
    color: #e99700;
    transition: transform 0.25s ease;
    flex-shrink: 0;
    margin-left: auto;
}

.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px 20px 58px;
    /* 左側のQ/A位置にあわせてインデント */
    border-top: 1px solid rgba(243, 196, 0, 0.18);
    position: relative;
}

.faq-answer p {
    margin: 14px 0 0;
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.75;
    position: relative;
}

/* ★ 左側：回答の頭に自動表示するラベンダーの「A」アイコン */
.faq-answer p::before {
    content: "A";
    position: absolute;
    left: -38px;
    top: -2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, var(--lavender), var(--lavender-deep));
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(120, 90, 180, 0.25);
}

/* FAQ下のお問い合わせ導線 */
.faq-support {
    text-align: center;
    margin-top: 60px;
    padding: 50px 32px;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 34px;
    border: 1px solid rgba(243, 196, 0, 0.22);
    box-shadow: 0 16px 50px rgba(90, 62, 120, 0.08);
}

.faq-support-text {
    font-size: 15px;
    color: var(--muted);
    margin: 0 0 20px;
    line-height: 1.7;
}

/* トップページへ戻るテキストリンク */
.back-home-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--lavender-deep);
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.back-home-link:hover {
    opacity: 0.8;
    transform: translateX(-3px);
}

/* ==========================================
   2. オリジナルグッズ詳細モーダル ＆ ご注文フォーム
========================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(40, 30, 50, 0.5);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: #ffffff;
    border-radius: 24px;
    max-width: 500px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.25s ease;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.modal-content::-webkit-scrollbar {
    display: none;
}

.modal-header {
    position: sticky;
    top: -32px;
    background: #ffffff;
    z-index: 10;
    margin: -32px -32px 0;
    padding: 32px 32px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 28px;
    color: #888;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #333;
}

.modal-detail-title {
    font-size: 20px;
    margin: 12px 0 8px;
    color: #333;
}

.modal-detail-spec {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #666;
    line-height: 1.8;
}

.modal-note {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.75rem;
    color: #888888;
}

.modal-img {
    width: 100%;
    max-height: 220px;
    background: #f8f5fc;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-img img {
    width: 100%;
    height: 100%;
    max-height: 220px;
    object-fit: contain;
    padding: 12px;
}

.modal-img-plain {
    width: 100%;
    text-align: center;
    margin-top: 16px;
    margin-bottom: 20px;
}

.modal-img-plain img {
    max-width: 100%;
    max-height: 260px;
    height: auto;
    object-fit: contain;
}

.modal-img-none {
    width: 100%;
    height: 120px;
    background: #f8f6fc;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
    margin-bottom: 20px;
    color: var(--lavender-deep);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.1em;
    opacity: 0.6;
}

/* モーダル内 サムネイル画像 */
.modal-thumb-list {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: -10px;
    margin-bottom: 20px;
}

.modal-thumb-item {
    width: 54px;
    height: 54px;
    border-radius: 10px;
    border: 2px solid #eee;
    overflow: hidden;
    cursor: pointer;
    background: #f8f6fc;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.modal-thumb-item:hover {
    border-color: #d6b8e8;
    transform: translateY(-2px);
}

.modal-thumb-item.active {
    border-color: var(--lavender-deep, #8a57ba);
    box-shadow: 0 4px 12px rgba(138, 87, 186, 0.25);
}

.modal-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--lavender-deep, #8a57ba);
    margin: 6px 0 12px;
}

.modal-price small {
    font-size: 11px;
    font-weight: normal;
    color: #777;
}

.modal-action {
    position: sticky;
    bottom: -32px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    margin: 20px -32px -32px;
    padding: 16px 32px;
    border-top: 1px solid #f0f0f0;
    box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.05);
    z-index: 10;
    text-align: center;
}

/* モーダル 左右ナビゲーション矢印 */
.modal-nav-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: #ffffff;
    border: 1px solid rgba(138, 87, 186, 0.25);
    border-radius: 50%;
    color: var(--lavender-deep, #8a57ba);
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    box-shadow: 0 8px 25px rgba(90, 62, 120, 0.2);
    transition: all 0.2s ease;
    user-select: none;
}

.modal-nav-btn:hover {
    background: #f8f5fc;
    color: #7652b7;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 12px 30px rgba(127, 85, 188, 0.35);
}

.modal-nav-btn.prev {
    left: calc(50% - 310px);
}

.modal-nav-btn.next {
    right: calc(50% - 310px);
}

/* 注文フォーム入力領域 */
.order-section {
    padding: 60px 20px;
    text-align: center;
}

.order-section .contact-form {
    max-width: 600px;
    margin: 30px auto 0;
    text-align: left;
    background: #ffffff;
    padding: 32px 24px;
    border-radius: 20px;
    border: 1px solid rgba(155, 120, 207, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.order-section .form-group {
    margin-bottom: 20px;
}

.order-section .form-label {
    display: block;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 8px;
    color: #333333;
}

.order-section .required {
    background: #e74c3c;
    color: #ffffff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
}

.order-section .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f9f8fc;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(155, 120, 207, 0.15);
}

.order-section .checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.order-section .checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.order-section .form-input,
.order-section .form-textarea {
    width: 100%;
    display: block;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    box-sizing: border-box;
    font-family: inherit;
}

.order-section .form-input:focus,
.order-section .form-textarea:focus {
    border-color: #8a57ba;
    outline: none;
}

.order-section .form-submit {
    text-align: center;
    margin-top: 24px;
}

.order-section .form-submit .button {
    width: 100%;
    max-width: 300px;
    padding: 14px 20px;
    font-size: 15px;
}

/* ==========================================
   3. 画像拡大表示（ライトボックス）
========================================== */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(20, 15, 25, 0.85);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    padding: 20px;
    cursor: zoom-out;
    box-sizing: border-box;
}

.lightbox-modal img {
    max-width: 50% !important;
    max-height: 75vh !important;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: lightboxZoomIn 0.2s ease;
}

/* スマホのときはめいっぱい広げる */
@media (max-width: 768px) {
    .lightbox-modal img {
        max-width: 92% !important;
        max-height: 85vh !important;
    }
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    color: #ffffff;
    font-size: 36px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    transition: opacity 0.2s;
    z-index: 2010;
}

.lightbox-close:hover {
    opacity: 0.7;
}

/* ==========================================
   オリジナルグッズページ専用のレスポンシブ対応
========================================== */
@media (max-width: 980px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .product-grid {
        grid-template-columns: 1fr;
        /* スマホでは1列にする */
        gap: 18px;
    }

    .product-content {
        padding: 16px;
    }

    .coming-soon-banner {
        margin: 32px 0 20px;
        padding: 24px 18px;
        border-radius: 20px;
    }

    .banner-title {
        font-size: 0.95rem;
    }

    .banner-text {
        font-size: 0.82rem;
    }
}

/* ==========================================
   グッズページ：アニメーション＆余白調整（表示順序の最終調整）
========================================== */

/* COMING SOON バナーと FAQ の上下余白バランス */
.coming-soon-banner {
    margin-top: 60px !important;
    margin-bottom: 90px !important;
}

/* 全要素共通：2.6秒の優雅なアニメーション */
.product-card.scroll-fade,
.coming-soon-banner.scroll-fade,
.faq-item.scroll-fade,
.faq-support.scroll-fade {
    will-change: transform, opacity;
    transition: opacity 2.0s cubic-bezier(0.16, 1, 0.3, 1), transform 2.0s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* グッズカードホバー処理 */
.product-card.scroll-fade.is-show {
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 2.0s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* 1. グッズカード3つ（時間差） */
.product-grid .product-card.scroll-fade:nth-child(1) {
    transition-delay: 0.1s !important;
}

.product-grid .product-card.scroll-fade:nth-child(2) {
    transition-delay: 0.35s !important;
}

.product-grid .product-card.scroll-fade:nth-child(3) {
    transition-delay: 0.6s !important;
}

/* 2. COMING SOONバナー（もっと早く出して、質問に先を越されないようにする） */
.coming-soon-banner.scroll-fade {
    transition-delay: 0.2s !important;
}

/* 3. FAQ質問3つ（バナーのあとにしっかり続くように、スタートを少し後ろにズラす） */
.faq-container .faq-item.scroll-fade:nth-child(1) {
    transition-delay: 0.1s !important;
}

.faq-container .faq-item.scroll-fade:nth-child(2) {
    transition-delay: 0.35s !important;
}

.faq-container .faq-item.scroll-fade:nth-child(3) {
    transition-delay: 0.6s !important;
}

/* 4. FAQサポートボタン領域 */
.faq-support.scroll-fade {
    transition-delay: 0.85s !important;
}