/*
 AI Onsen Ryokan - Custom Stylesheet
*/

html, body {
    margin: 0;
    padding: 0;
}

:root {
    --background-color: #F8F8F8;
    --text-color: #333333;
    --accent-color: #00AEEF;
    --wa-color: #D0B89F; /* 生成り */
    --gray-color: #A8A8A8;
    --font-serif: 'Noto Serif JP', 'Montserrat', serif;
    --font-sans: 'Noto Sans JP', sans-serif;
    --banner-height: 40px;
    --navbar-height: 80px;
}

.site-header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1031;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.object-fit-cover {
    object-fit: cover;
}

.sample-site-banner {
    background-color: var(--wa-color);
    color: var(--text-color);
    text-align: center;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--banner-height);
    padding: 0 1rem;
}

body {
    font-family: var(--font-sans);
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.75;
    padding-top: calc(var(--banner-height) + var(--navbar-height));
}

html {
    scroll-padding-top: calc(var(--banner-height) + var(--navbar-height) + 16px);
}

@media (max-width: 991.98px) {
    :root {
        --navbar-height: 72px;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
}

h1 { font-size: 36px; }
h2 { font-size: 28px; }

a {
    color: var(--accent-color);
    text-decoration: none;
}

a:hover {
    color: #008cbf;
    text-decoration: none;
}

/* --- Component: Button --- */
.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    border-radius: 50rem; /* Pill shape */
    padding: 0.75rem 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #008cbf;
    border-color: #008cbf;
    box-shadow: 0 0 0 0.25rem rgba(0, 174, 239, 0.5);
}

/* --- Component: Card --- */
.card {
    border: none;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}


/* --- Component: Form --- */
.form-control {
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 174, 239, 0.25);
}

/* --- Header & Footer --- */
#site-header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 100%;
}

#site-header .navbar {
    min-height: var(--navbar-height);
    background: rgba(255, 255, 255, 0.9);
    transition: background-color 0.3s ease;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    width: 100%;
}

.navbar-brand {
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 600;
    color: var(--text-color) !important;
}

#footer {
    background-color: #222;
    color: #eee;
}

#footer a {
    color: var(--wa-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

#footer a:hover {
    color: #fff;
}

/* --- Homepage Specific Styles --- */
.hero-section {
    position: relative;
    height: 70vh;
    min-height: 450px;
    margin-top: 0;
    background-color: #1c1c1c; /* Fallback color */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1,
.hero-section .lead {
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}

.hero-section .hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    font-size: 2rem;
}

.card-img-top {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

@media (max-width: 575.98px) {
    .card-img-top {
        height: 200px;
    }
}

.reservation-result-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: .375rem 0 0 .375rem;
}

@media (max-width: 575.98px) {
    .reservation-result-image {
        height: 180px;
    }
}

/* --- Page Specific Styles --- */
main {
    padding-top: 0.4rem;
}
.page-header {
    border-bottom: 1px solid #e9ecef;
    margin-top: 0.1rem;
}
.page-header .page-title {
    font-family: var(--font-serif);
    font-weight: bold;
}

/* --- AI Demo Surface --- */
.ai-sim-display {
    position: relative;
    min-height: 360px;
    overflow: hidden;
}

.ai-sim-status .status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--accent-color);
    box-shadow: 0 0 0 0 rgba(0, 174, 239, 0.5);
    animation: statusPulse 2.4s infinite;
}

.ai-sim-log {
    background: #f8f9fa;
    border-radius: 1rem;
    padding: 1.5rem;
    min-height: 220px;
    max-height: 260px;
    overflow-y: auto;
    font-size: 0.9rem;
}

.ai-sim-log::-webkit-scrollbar {
    width: 6px;
}

.ai-sim-log::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 999px;
}

.ai-sim-message {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.ai-sim-message:last-child {
    margin-bottom: 0;
}

.ai-sim-avatar {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.ai-sim-message--ai .ai-sim-avatar {
    background: rgba(0, 174, 239, 0.1);
    color: var(--accent-color);
}

.ai-sim-message--guest .ai-sim-avatar {
    background: rgba(0, 0, 0, 0.05);
    color: #555;
}

.ai-sim-bubble {
    flex: 1;
    border-radius: 1rem;
    padding: 0.75rem 1rem;
    line-height: 1.5;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    background: #fff;
}

.ai-sim-message--ai .ai-sim-bubble {
    background: rgba(0, 174, 239, 0.12);
}

.ai-sim-typing {
    display: inline-block;
    white-space: pre-wrap;
}

.ai-sim-progress {
    height: 0.55rem;
    border-radius: 999px;
    overflow: hidden;
}

.ai-service-flow {
    margin-top: 2rem;
    border-left: 2px solid rgba(0, 0, 0, 0.08);
    padding-left: 1.5rem;
}

.ai-service-step {
    position: relative;
    margin-bottom: 1.75rem;
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.ai-service-step:last-child {
    margin-bottom: 0;
}

.ai-service-step::before {
    content: '';
    position: absolute;
    left: -1.53rem;
    top: 0.7rem;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #d5d8dc;
    border: 2px solid #fff;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.ai-service-step .step-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(0, 174, 239, 0.12);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.ai-service-step.active .step-icon {
    background: var(--accent-color);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0, 174, 239, 0.35);
}

.ai-service-step.active::before,
.ai-service-step.completed::before {
    background: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(0, 174, 239, 0.15);
}

.ai-service-step.completed .step-icon {
    background: rgba(0, 174, 239, 0.2);
    color: #fff;
}

.ai-service-step.active .step-copy h5 {
    color: var(--accent-color);
}

.ai-service-step p {
    margin-bottom: 0;
}

@keyframes statusPulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 174, 239, 0.45); }
    70% { box-shadow: 0 0 0 12px rgba(0, 174, 239, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 174, 239, 0); }
}

@media (max-width: 991.98px) {
    .ai-service-flow {
        border-left: none;
        padding-left: 0;
    }

    .ai-service-step::before {
        display: none;
    }
}
