/* Global Styles - Friendly & Local Theme */
:root {
    --primary-color: #F39C12;
    /* Orange - Friendly/Action */
    --primary-dark: #d35400;
    --secondary-color: #00A8CC;
    /* Blue - Water */
    --accent-color: #27ae60;
    /* Green - Safety/Cheap */
    --text-dark: #444444;
    --text-gray: #666666;
    --bg-light: #fffcf5;
    /* Slightly warm white */
    --white: #ffffff;
    --radius: 16px;
    --shadow-sm: 0 4px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 6px 0 rgba(0, 0, 0, 0.05);
    --font-body: 'Noto Sans JP', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    background-image: radial-gradient(#fcefdc 1px, transparent 1px);
    background-size: 20px 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header / Hero */
.hero {
    background: white;
    padding: 40px 20px;
    text-align: center;
    border-bottom: 5px solid var(--primary-color);
}

.hero-subtitle {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1rem;
}

.hero-title {
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.4;
}

.hero-title span {
    color: var(--primary-color);
    font-size: 1.2em;
    text-shadow: 2px 2px 0px #eee;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 25px;
    background: #eafaff;
    display: inline-block;
    padding: 15px 30px;
    border-radius: var(--radius);
    border: 2px solid var(--secondary-color);
    font-weight: 700;
}

/* Campaign Bar */
.campaign-bar {
    background: var(--primary-color);
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(243, 156, 18, 0.3);
    border-radius: 0 0 20px 20px;
    margin-bottom: 40px;
}

.campaign-badge {
    background: white;
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 5px;
}

.strike {
    text-decoration: line-through;
    opacity: 0.8;
}

.free {
    font-size: 1.4em;
    color: yellow;
    text-shadow: 1px 1px 0 #d35400;
}

/* Sections */
.section {
    padding: 40px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.step-badge {
    background: var(--text-dark);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 10px;
}

.section-title {
    font-size: 1.8rem;
    color: var(--secondary-color);
    border-bottom: 3px dashed var(--secondary-color);
    display: inline-block;
    padding-bottom: 5px;
}

/* Products */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    /* More compact */
    gap: 20px;
}

.product-card {
    background: white;
    border-radius: var(--radius);
    padding: 15px;
    border: 3px solid #eee;
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
    text-align: center;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.product-card.selected {
    border-color: var(--primary-color);
    background-color: #fff9e6;
}

.product-card.selected::after {
    content: '選択中';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
}

.product-image-container {
    height: 160px;
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-maker {
    color: var(--text-gray);
    font-size: 0.8rem;
}

.product-name {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: 5px 0;
    font-weight: 700;
}

.discount-badge {
    background: var(--accent-color);
    color: white;
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 4px;
}

.selling-price {
    display: block;
    font-size: 1.6rem;
    color: var(--primary-dark);
    font-weight: 700;
}

/* Options */
.option-list {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-item {
    background: white;
    border: 2px solid #ddd;
    border-radius: var(--radius);
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.option-item:hover {
    border-color: var(--secondary-color);
}

.option-checkbox {
    width: 25px;
    /* Larger touch target */
    height: 25px;
    margin-right: 10px;
    accent-color: var(--secondary-color);
}

.option-label {
    font-weight: 700;
    display: flex;
    align-items: center;
}

/* Simulator Footer */
.simulator-wrapper {
    position: fixed;
    /* Bottom Sheet style for mobile friendliness */
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    padding: 15px 0;
    z-index: 100;
    border-top: 5px solid var(--secondary-color);
}

.simulator-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

.sim-info {
    text-align: left;
}

.sim-label {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.sim-total-price {
    font-size: 2rem;
    color: var(--primary-dark);
    font-weight: 700;
    line-height: 1;
}

.sim-discount {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.9rem;
}

.sim-actions {
    display: flex;
    gap: 10px;
}

.btn-floating {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
    transition: transform 0.1s;
}

.btn-floating:active {
    transform: translateY(4px);
    box-shadow: none;
}

.btn-line {
    background: #06c755;
}

.btn-tel {
    background: var(--secondary-color);
}

.btn-floating svg {
    width: 30px;
    height: 30px;
    margin-bottom: 5px;
}

/* Spacer for fixed footer */
.footer-spacer {
    height: 120px;
}

footer {
    text-align: center;
    padding: 20px;
    color: var(--text-gray);
    font-size: 0.8rem;
}

@media (max-width: 600px) {
    .simulator-container {
        flex-direction: column;
        gap: 15px;
    }

    .sim-actions {
        width: 100%;
        justify-content: center;
    }

    .btn-floating {
        width: 45%;
        height: 60px;
        flex-direction: row;
        gap: 10px;
    }

    .btn-floating svg {
        margin-bottom: 0;
    }

    .footer-spacer {
        height: 200px;
    }
}