:root {
    --color-primary: #333333;
    --color-secondary: #666666;
    --color-accent: #c8a165;
    --color-background: #fafafa;
    --color-white: #ffffff;
    --color-border: #e0e0e0;
    --color-hover: #f5f5f5;
    --color-text-light: #999999;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background: var(--color-background);
    color: var(--color-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ヘッダー */
.header {
    background: var(--color-white);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.header-link {
    color: var(--color-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.header-link:hover {
    color: var(--color-accent);
}

/* ヒーローセクション */
.hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 4rem 2rem 3rem;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-primary);
    letter-spacing: 0.02em;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--color-secondary);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* メインコンテナ */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* プログレスバー */
.progress-container {
    margin-bottom: 3rem;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-border);
    z-index: 0;
}

.progress-line {
    position: absolute;
    top: 16px;
    left: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.5s ease;
    z-index: 1;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    z-index: 2;
}

.progress-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-white);
    border: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
    transition: all 0.3s;
}

.progress-step.active .progress-step-circle {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
    box-shadow: 0 0 0 4px rgba(200, 161, 101, 0.1);
}

.progress-step.completed .progress-step-circle {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.progress-step-label {
    font-size: 0.75rem;
    color: var(--color-text-light);
    font-weight: 500;
    text-align: center;
}

.progress-step.active .progress-step-label {
    color: var(--color-accent);
    font-weight: 600;
}

/* 質問セクション */
.question-section {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.question-section.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-title {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--color-primary);
}

/* 選択肢グリッド */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.option-card {
    background: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: 12px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.option-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.option-card:hover::before {
    transform: scaleX(1);
}

.option-card.selected {
    border-color: var(--color-accent);
    background: linear-gradient(to bottom, rgba(200, 161, 101, 0.03), var(--color-white));
    box-shadow: var(--shadow-md);
}

.option-card.selected::before {
    transform: scaleX(1);
}

.option-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: none;
}

.option-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
    padding: 0 1.5rem;
}

.option-description {
    font-size: 0.85rem;
    color: var(--color-secondary);
    line-height: 1.5;
    padding: 0 1.5rem 1.5rem;
}

/* 商品画像 */
.option-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    margin-bottom: 1rem;
}

/* ボタン */
.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2.5rem;
}

.btn {
    padding: 0.875rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans JP', sans-serif;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-white);
}

.btn-primary:hover:not(:disabled) {
    background: #b89156;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-primary:disabled {
    background: var(--color-border);
    color: var(--color-text-light);
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-secondary);
    border: 2px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-hover);
    border-color: var(--color-secondary);
}

/* 結果セクション */
.result-section {
    display: none;
    animation: fadeInUp 0.6s ease;
}

.result-section.active {
    display: block;
}

.result-header {
    text-align: center;
    margin-bottom: 3rem;
}

.result-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.result-subtitle {
    font-size: 1rem;
    color: var(--color-secondary);
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.product-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    background: #f5f5f5;
}

.product-content {
    padding: 1.75rem;
}

.product-brand {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--color-accent);
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
}

.product-description {
    font-size: 0.9rem;
    color: var(--color-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.product-link {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.product-link:hover {
    background: var(--color-accent);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* 比較モード */
.compare-mode-btn {
    display: inline-block;
    padding: 0.875rem 2.5rem;
    background: var(--color-accent);
    color: var(--color-white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.compare-mode-btn:hover {
    background: #d4a650;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.compare-container {
    display: none;
    position: relative;
    overflow: hidden;
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
    margin: 0 auto 2rem;
    max-width: 800px;
    width: 100%;
}

.compare-container.active {
    display: block;
}

.compare-slider {
    display: flex;
    transition: transform 0.3s ease-in-out;
    width: 100%;
    will-change: transform;
}

.compare-item {
    min-width: 100%;
    max-width: 100%;
    width: 100%;
    flex: 0 0 100%;
    flex-shrink: 0;
    box-sizing: border-box;
}

.compare-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.compare-dots {
    display: flex;
    gap: 0.5rem;
}

.compare-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.compare-dot.active {
    background: var(--color-accent);
    transform: scale(1.2);
}

.compare-arrow {
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.compare-arrow:hover {
    background: var(--color-accent);
    transform: scale(1.1);
}

.compare-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.compare-product-card {
    background: var(--color-bg);
    border-radius: 12px;
    overflow: hidden;
    padding: 1.5rem;
}

.compare-product-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    min-height: 250px;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 auto 1.5rem;
    display: block;
}

.compare-product-info {
    text-align: center;
    margin-bottom: 2rem;
}

.compare-product-brand {
    font-size: 0.85rem;
    color: var(--color-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.compare-product-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.compare-product-description {
    font-size: 1rem;
    color: var(--color-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.compare-product-details {
    background: var(--color-white);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.compare-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.compare-detail-item:last-child {
    border-bottom: none;
}

.compare-detail-label {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.9rem;
    min-width: 80px;
}

.compare-detail-value {
    color: var(--color-secondary);
    font-size: 0.9rem;
    text-align: right;
    flex: 1;
}

.color-palette {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    border: 2px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
    cursor: pointer;
}

.color-swatch:hover {
    transform: scale(1.1);
    border-color: var(--color-accent);
}

.compare-features {
    background: var(--color-white);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.compare-features-title {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.compare-feature-item {
    display: flex;
    align-items: start;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--color-secondary);
    line-height: 1.6;
}

.compare-feature-item:before {
    content: "✓";
    color: var(--color-accent);
    font-weight: bold;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

/* フッター */
.footer {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 2.5rem 2rem;
    text-align: center;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-text {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .compare-container {
        padding: 1rem;
    }

    .compare-product-card {
        padding: 1rem;
    }

    .compare-product-image {
        min-height: 200px;
        max-height: 300px;
    }

    .compare-product-name {
        font-size: 1.2rem;
    }

    .result-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .container {
        padding: 2rem 1.25rem;
    }

    .question-title {
        font-size: 1.25rem;
    }

    .options-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .result-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .progress-step-label {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .hero {
        padding: 3rem 1.25rem 2rem;
    }

    .progress-step-circle {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
}
/*additional*/
.container {
    margin: 0 auto 40px;
}
.footer{
    display: none;
}
.button-group {
    position: fixed;
    bottom: 0;
    background-color: #fff;
    width: 100%;
    justify-content: center;
    border-top: 1px solid #eee;
    padding: 15px 0;
    left: 0;
    z-index: 1;
}
@media (max-width: 768px) {
    .button-group {
        width: calc(100% - 40px);
        margin: 0 20px;
    }
}