:root {
    --main-pink: #D81B60;
    --main-pink-hover: #AD1457;
    --sub-background: #FFF5F7;
    --accent-gold: #D4AF37;
    --text-dark: #2D3436;
    --text-muted: #636E72;
    --white: #FFFFFF;
    --shadow: 0 10px 30px rgba(216, 27, 96, 0.1);
}

body {
    margin: 0;
    font-family: 'Outfit', 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    background-color: var(--sub-background);
    background-image: radial-gradient(at 0% 0%, rgba(216, 27, 96, 0.05) 0px, transparent 50%),
                      radial-gradient(at 100% 100%, rgba(212, 175, 55, 0.05) 0px, transparent 50%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    color: var(--text-dark);
}

.main-container {
    text-align: center;
    max-width: 800px;
    width: 95%;
    margin: -60px auto 40px auto; /* Overlap the hero section */
    position: relative;
    z-index: 20;
    background: var(--white);
    padding: 50px 30px;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Hero Section - Premium (PresentAI style) */
.hero-section-premium {
    position: relative;
    height: 50vh;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('images/hero_flower_2.png') center/cover no-repeat;
    margin-bottom: 0;
    overflow: hidden;
    text-align: center;
    width: 100%;
}

.hero-overlay-dark {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 0%, rgba(255, 245, 247, 0.6) 100%);
    z-index: 1;
}

.hero-content-premium {
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.hero-badge-premium {
    display: inline-block;
    color: var(--main-pink);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 15px;
    opacity: 0.8;
}

.hero-title-premium {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(3rem, 8vw, 5rem);
    color: #002366; /* Deep Royal Navy for high contrast */
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: 0.15em;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.9), 0 2px 5px rgba(0, 0, 0, 0.2);
}

.hero-subtitle-premium {
    font-family: 'Shippori Mincho', serif;
    color: #111;
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 0.05em;
    text-shadow: 0 0 15px rgba(255, 255, 255, 1), 0 2px 4px rgba(255, 255, 255, 0.8);
}

/* Form Styles */
.section-label {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--main-pink);
    margin-bottom: 15px;
    border-left: 4px solid var(--main-pink);
    padding-left: 10px;
}


/* Card Selector */
.card-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 12px;
}

.option-card {
    background: var(--white);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 15px 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.option-card .icon {
    font-size: 1.5rem;
}

.option-card .label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.option-card:hover {
    transform: translateY(-3px);
    border-color: #ffe0e9;
}

.option-card.active {
    background: #fff0f5;
    border-color: var(--main-pink);
    box-shadow: 0 8px 20px rgba(216, 27, 96, 0.15);
    animation: selectPulse 0.4s ease;
}

.option-card.active .label {
    color: var(--main-pink);
}

/* Slider */
.slider-container {
    padding: 0 10px;
}

.custom-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: #eee;
    outline: none;
    margin: 20px 0;
}

.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--main-pink);
    cursor: pointer;
    border: 3px solid var(--white);
    box-shadow: 0 2px 10px rgba(216, 27, 96, 0.3);
    transition: all 0.2s;
}

.custom-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
}

/* Chips */
.chip-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    background: var(--white);
    border: 1px solid #eee;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s;
}

.chip:hover {
    background: #fafafa;
}

.chip.active {
    background: var(--main-pink);
    color: var(--white);
    border-color: var(--main-pink);
    box-shadow: 0 4px 12px rgba(216, 27, 96, 0.2);
    animation: selectPulse 0.4s ease;
}

/* Textarea */
#inputText {
    width: 100%;
    min-height: 100px;
    border-radius: 16px;
    border: 1px solid #eee;
    padding: 15px;
    font-size: 0.95rem;
    background: var(--white);
    resize: none;
    transition: all 0.3s;
}

#inputText:focus {
    outline: none;
    border-color: var(--main-pink);
    box-shadow: 0 0 0 4px rgba(216, 27, 96, 0.05);
}

/* Button */
.sendBtn {
    background: linear-gradient(135deg, var(--main-pink), #FF4081);
    color: var(--white);
    border: none;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    max-width: 320px;
    margin: 20px auto;
    display: block;
    box-shadow: 0 10px 20px rgba(216, 27, 96, 0.3);
    transition: all 0.3s;
}

.sendBtn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(216, 27, 96, 0.4);
}

.sendBtn:active:not(:disabled) {
    transform: translateY(-1px);
}

.sendBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Results */
.result-box {
    margin-top: 30px;
    border-radius: 20px !important;
    border: 1px solid rgba(216, 27, 96, 0.1) !important;
    line-height: 1.8;
}

/* Animations */
@keyframes selectPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(216, 27, 96, 0.05);
    animation: bgFloat linear infinite;
    z-index: 0;
}

@keyframes bgFloat {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-120vh) rotate(360deg); opacity: 0; }
}


/* Premium Hamburger Button */
#menu-btn {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 100;
    padding: 10px;
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 175, 55, 0.4) !important;
    color: var(--accent-gold) !important;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

#menu-btn:hover {
    background: rgba(216, 27, 96, 0.3) !important;
    border-color: var(--main-pink) !important;
    transform: translateY(-2px) scale(1.05);
}

#menu-btn svg {
    color: var(--accent-gold) !important;
}

/* Item Carousel */
.recommendations-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--main-pink);
    margin: 40px 0 20px;
    padding-left: 15px;
    border-left: 6px solid var(--main-pink);
    text-align: left;
}

.item-carousel-wrapper {
    position: relative;
    margin: 0 -20px 30px;
    padding: 0 20px;
}

.item-carousel {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding: 10px 5px 25px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.item-carousel::-webkit-scrollbar {
    height: 6px;
}

.item-carousel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.item-carousel::-webkit-scrollbar-thumb {
    background: #ffd1dc;
    border-radius: 10px;
}

/* Item Card */
.recommend-card {
    flex: 0 0 180px;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border: 1px solid #fdf2f4;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.recommend-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(216, 27, 96, 0.12);
    border-color: var(--main-pink);
}

.card-image-box {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #fafafa;
}

.card-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.recommend-card:hover .card-image-box img {
    transform: scale(1.1);
}

.card-info {
    padding: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-item-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.4em;
    line-height:1.2;
}

.card-price-row {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.card-item-price {
    color: var(--main-pink);
    font-weight: 800;
    font-size: 1rem;
}

.card-rating {
    font-size: 0.7rem;
    color: #f1c40f;
    font-weight: 700;
}

@media (max-width: 600px) {
    .recommend-card {
        flex: 0 0 150px;
    }
    .main-container {
        padding: 30px 15px;
        margin: -50px auto 20px auto;
    }
    .card-selector {
        grid-template-columns: repeat(3, 1fr);
    }
    .hero-title-premium {
        font-size: 3rem;
    }
}

/* ── 結果表示 ─────────────────────────────────── */
.result-content {
    font-family: 'Noto Sans JP', sans-serif;
}

.result-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(216, 27, 96, 0.08);
}

.result-row:last-of-type {
    border-bottom: none;
}

.result-label {
    flex-shrink: 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    min-width: 90px;
}

.result-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.6;
}

.result-flower-name {
    font-size: 1.15rem;
    color: var(--main-pink);
}

.result-checkpoints-block {
    background: #fff8fb;
    border-radius: 14px;
    padding: 14px 18px;
    margin: 14px 0 10px;
    border: 1px solid rgba(216, 27, 96, 0.1);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.result-checkpoint {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--main-pink);
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.5;
}

.result-reason {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.8;
    padding: 12px 16px;
    background: #fafafa;
    border-radius: 12px;
}

.result-keyword {
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--text-dark);
    border-top: 1px dashed #ddd;
    padding-top: 8px;
}
