:root {
    --primary-color: #0056b3;
    /* Professional Blue */
    --accent-color: #0088cc;
    /* Lighter Blue */
    --bg-color: #f4f7f6;
    /* Very light gray/mint */
    --text-color: #333333;
    --bubble-bg: #FFFFFF;
    --bubble-text: #444444;
    --font-main: 'Noto Sans JP', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    /* Optimize japanese line breaks */
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* Hero Section */
.hero {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    background-color: #fff;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* LINE App Button */
.line-app-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background-color: #06C755;
    /* LINE Green */
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(6, 199, 85, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: float 3s ease-in-out infinite;
}

.line-app-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(6, 199, 85, 0.5);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .line-app-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* Home Link (Top Right) */
.home-link {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: transform 0.2s;
}

.home-link:hover {
    transform: scale(1.05);
}

.home-link-text {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.home-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    background: #fff;
}

/* Mobile Hero Fix */
@media (max-width: 480px) {
    .hero {
        height: auto;
        min-height: auto;
    }

    .hero-image {
        height: auto;
        object-fit: contain;
    }
}

/* Content Section (FAQ) */
.content-section {
    padding: 60px 20px 120px 20px;
    /* Bottom padding for fixed button */
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.faq-item:hover {
    transform: translateY(-2px);
}

.faq-question {
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-question::before {
    content: 'Q.';
    color: var(--primary-color);
    font-weight: 900;
}

.faq-answer {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
    margin-left: 28px;
    /* Indent to align with text */
}

/* Mobile Tweak for FAQ */
@media (max-width: 480px) {
    .content-section {
        padding-top: 40px;
        padding-bottom: 100px;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .faq-item {
        padding: 20px;
    }
}

/* Chat Widget Styles from v4 */
.chat-widget {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    padding: 20px;
    gap: 15px;
}

.chat-bubble {
    pointer-events: auto;
    width: 320px;
    max-width: 90vw;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 20px;
    margin-bottom: 10px;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpFade 0.6s ease-out 0.5s forwards;
}

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-message {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 8px;
}

.chat-message:last-child {
    border-bottom: none;
}

.bot-msg {
    margin: 0;
}

.line-btn {
    display: block;
    width: 100%;
    background-color: #06C755;
    color: #fff;
    text-align: center;
    text-decoration: none;
    padding: 12px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(6, 199, 85, 0.3);
    transition: transform 0.2s;
    margin-top: 5px;
}

.line-btn:hover {
    transform: translateY(-2px);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

/* Bottom Actions Container */
.bottom-actions-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: flex-end;
    gap: 15px;
    z-index: 2000;
}

/* AI Consult Button */
.ai-consult-btn {
    background-color: #0056b3;
    color: #fff;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, background-color 0.2s;
    height: 50px;
    margin-bottom: 5px;
}

.ai-consult-btn:hover {
    transform: translateY(-2px);
    background-color: #004494;
}

.ai-icon {
    font-size: 1.2rem;
}

/* Voice Icon Button */
.voice-icon-btn {
    position: relative;
    width: 60px;
    height: 60px;
    cursor: pointer;
    transition: transform 0.2s;
}

.voice-icon-btn:hover {
    transform: scale(1.05);
}

.voice-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #ff4757;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    background: #fff;
    display: block;
}

.voice-badge {
    position: absolute;
    top: -30px;
    right: 50%;
    transform: translateX(50%);
    background-color: #ff4757;
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: bounce 2s infinite;
}

.voice-badge::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    background-color: #ff4757;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    animation: pulse 2s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(50%) translateY(0);
    }

    40% {
        transform: translateX(50%) translateY(-10px);
    }

    60% {
        transform: translateX(50%) translateY(-5px);
    }
}

@media (max-width: 480px) {
    .chat-bubble {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .chat-widget {
        padding-bottom: 120px;
    }
}