@charset "UTF-8";

/* ペアジュエリー限定ページ - SP対応完全版CSS */

/* ベース設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #21307c;
    --secondary-color: #3182ce;
    --text-color: #1c1c1c;
    --text-light: #000;
    --text-muted: #9f9f9f;
    --border-color: #e2e8f0;
    --background-light: #f7fafc;
    --font-family-ja: "FOT-ニューセザンヌ ProN DB", "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", sans-serif;
    --font-family-en: 'Helvetica', Arial, sans-serif;
}

body {
    font-family: var(--font-family-ja);
    line-height: 1.6;
    color: var(--text-color);
    background: #fff;
}

/* 英数字フォント指定 */
h1, h2, h3, h4, h5, h6,
.hero-subtitle,
.product-price,
.cta-button,
.view-product-btn {
    font-family: var(--font-family-en);
}

/* パンくずナビゲーション */
.breadcrumbs {
    background: #FFF;
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 0;
}

.breadcrumbs ol {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 20px;
    list-style: none;
}

.breadcrumbs li {
    color: #666;
    font-size: 14px;
    font-family: var(--font-family-ja);
}

.breadcrumbs li:not(:last-child)::after {
    content: ">";
    margin: 0 8px;
    color: #999;
}

.breadcrumbs a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: #333;
}

/* メインコンテナ */
.main-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* メインビジュアル（KV） */
.hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0;
    /* PC版のアスペクト比に基づいた高さ設定 */
    /* 実際の画像サイズに応じて数値を調整してください */
    aspect-ratio: 1920 / 800;  /* 例: 横1920px × 縦800px の場合 */
    max-height: 96vh;  /* 最大高さを制限 */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: contain;  /* 画像全体が見えるように */
    object-position: center;
    background-color: #f8f8f8;  /* 余白部分の背景色 */
}

/* テキストセクション */
.text-section {
    text-align: center;
    padding: 60px 0;
    background: #fff;
}

.text-section.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.text-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 300;
    color: #2d3748;
    margin-bottom: 15px;
    letter-spacing: 0.1em;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s ease 0.3s forwards;
    font-family: var(--font-family-ja);
}

.hero-subtitle {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
    letter-spacing: 0.05em;
    opacity: 1;
    transform: none;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-family-en);
}

.hero-description {
    font-size: 1.6rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
    opacity: 1;
    transform: none;
    font-family: var(--font-family-ja);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 商品セクション */
.products-section {
    padding: 40px 0;
}

.product-item {
    margin-bottom: 80px;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.product-layout.reverse .product-info {
    order: -1;
}

/* 商品画像 */
.product-main-visual {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    background: linear-gradient(135deg, var(--background-light) 0%, #ffffff 100%);
    aspect-ratio: 1;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

/* PC向けホバー効果 */
@media (hover: hover) {
    .product-main-visual::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(44, 82, 130, 0.8), rgba(49, 130, 206, 0.6));
        opacity: 0;
        transition: all 0.4s ease;
        z-index: 2;
    }

    .product-main-visual:hover::before {
        opacity: 1;
    }

    .product-main-visual::after {
        content: '商品イメージを見る';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(255, 255, 255, 0.95);
        color: var(--primary-color);
        padding: 15px 30px;
        border-radius: 30px;
        font-size: 14px;
        font-weight: 600;
        opacity: 0;
        transition: all 0.4s ease;
        z-index: 3;
        white-space: nowrap;
        backdrop-filter: blur(10px);
        font-family: var(--font-family-ja);
    }

    .product-main-visual:hover::after {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.05);
    }

    .product-main-visual:hover {
        transform: scale(1.02);
    }

    .product-main-visual:hover .product-image {
        transform: scale(1.05);
    }
}

/* 商品情報 */
.product-info {
    padding: 20px 0;
}

.product-name {
    font-size: 20px;
    color: #000;
    font-weight: 600;
    font-family: var(--font-family-ja);
}

.product-price {
    font-size: 18px;
    color: #000;
    font-weight: 700;
    margin-bottom: 25px;
    font-family: var(--font-family-en);
}

.product-description {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 15px;
    font-family: var(--font-family-ja);
}

.view-product-btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: "FOT-ニューセザンヌ ProN DB", "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", sans-serif;
    border: none;
}

.view-product-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
    text-decoration: none;
}

/* 区切り */
.section-divider {
    margin: 30px 0;
    text-align: center;
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

.section-divider-icon {
    background: white;
    padding: 0 30px;
    color: #a0aec0;
    font-size: 24px;
}

/* モーダルオーバーレイ（新方式） */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
}

/* モーダルコンテンツ */
.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: white;
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-content {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.modal-title {
    font-size: 20px;
    color: var(--primary-color);
    font-weight: 600;
    margin: 20px 0 10px 0;
    font-family: var(--font-family-ja);
}

.modal-subtitle {
    font-size: 14px;
    color: var(--text-light);
    font-family: var(--font-family-ja);
}

/* カルーセル */
.modal-carousel {
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 16px;
    background: var(--background-light);
}

.carousel-container {
    display: flex;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.carousel-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: pointer;
}

/* ナビゲーションボタン */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 20px;
    color: #333;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
    font-weight: bold;
    line-height: 1;
}

.carousel-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    color: var(--primary-color);
}

.carousel-nav.prev {
    left: 15px;
}

.carousel-nav.next {
    right: 15px;
}

/* ドットナビゲーション */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(44, 82, 130, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.carousel-dot:hover {
    background: rgba(44, 82, 130, 0.6);
}

.carousel-dot.active {
    background: var(--primary-color);
    transform: scale(1.3);
}

/* CTA */
.cta-section {
    text-align: center;
    padding: 60px 0;
    background: #fff;
    margin: 40px 0 0;
    border-radius: 20px;
}

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 14px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: var(--font-family-en);
}

.cta-button:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
    text-decoration: none;
}

/* アニメーション */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* レスポンシブ */
@media (max-width: 768px) {
    .main-area {
        padding: 0 15px;
    }

    .product-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-layout.reverse .product-info {
        order: 0;
    }

    .hero-section {
    /* SP版は正方形画像に対応 */
    aspect-ratio: 1 / 1;  /* 正方形（1:1）に修正 */
    max-height: 70vh;  /* 高さを少し調整 */
    }

    .text-section {
        padding: 60px 0 25px 0;
    }

    .hero-description {
        font-size: 1.2rem;
    }

    .modal-content {
        padding: 20px;
        width: 95%;
    }

    .carousel-wrapper {
        height: 300px;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .carousel-nav.prev {
        left: 10px;
    }

    .carousel-nav.next {
        right: 10px;
    }

    .product-item {
        margin-bottom: 60px;
    }

    .product-name {
        font-size: 20px;
    }

    .product-price {
        font-size: 17px;
    }

    .view-product-btn {
        font-size: 13px;
        padding: 11px 22px;
    }
}
