/* ========================================
   SBI Investment Co., Ltd. - Main Styles
   Corporate Colors: Blue (#003366) and White
   ======================================== */

/* CSS Variables */
:root {
    --primary-color: #003366;
    --primary-light: #004d99;
    --primary-dark: #001a33;
    --secondary-color: #0066cc;
    --accent-color: #00a3e0;
    --white: #ffffff;
    --light-gray: #f5f7fa;
    --gray: #6c757d;
    --dark-gray: #343a40;
    --text-color: #333333;
    --border-color: #dee2e6;
    --success-color: #28a745;
    --error-color: #dc3545;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 5px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --font-family: 'Hiragino Kaku Gothic Pro', 'Meiryo', 'Helvetica Neue', Arial, sans-serif;
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

a:hover {
    color: var(--secondary-color);
}

ul, ol {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
    margin-bottom: 1rem;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-accent:hover {
    background-color: #0088b3;
    color: var(--white);
}

/* ========================================
   Header & Navigation
   ======================================== */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-text span {
    color: var(--accent-color);
}

.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color);
    padding: 10px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 150px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../assets/financial-services.jpg') center/cover no-repeat;
    opacity: 0.15;
}

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

.hero-content {
    max-width: 700px;
}

.hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 50px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

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

.section-light {
    background-color: var(--light-gray);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.section-title p {
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Services Grid
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

.service-content {
    padding: 25px;
}

.service-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.service-content p {
    color: var(--gray);
    margin-bottom: 15px;
}

.service-link {
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.service-link::after {
    content: '→';
    transition: var(--transition);
}

.service-link:hover::after {
    transform: translateX(5px);
}

/* ========================================
   About Section
   ======================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-content h2 {
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 20px;
    color: var(--gray);
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.feature-text p {
    font-size: 0.875rem;
    margin: 0;
}

/* ========================================
   Lead Form
   ======================================== */
.lead-form-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 80px 0;
}

.lead-form-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.lead-form-content h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.lead-form-content p {
    opacity: 0.9;
    margin-bottom: 20px;
}

.lead-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group label .required {
    color: var(--error-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.consent-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.consent-group input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
    flex-shrink: 0;
}

.consent-group label {
    font-size: 0.875rem;
    color: var(--gray);
    margin: 0;
}

.consent-group label a {
    color: var(--primary-color);
    text-decoration: underline;
}

.form-submit {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

.form-message {
    margin-top: 15px;
    padding: 15px;
    border-radius: 5px;
    display: none;
}

.form-message.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
}

.form-message.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
}

/* ========================================
   Contact Page
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    padding: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 10px;
}

.contact-info h3 {
    color: var(--white);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-details h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 5px;
}

.contact-details p,
.contact-details a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.contact-details a:hover {
    color: var(--white);
}

.business-hours {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.business-hours h4 {
    color: var(--white);
    margin-bottom: 15px;
}

.business-hours p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin: 0;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 300px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ========================================
   Services Page
   ======================================== */
.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.service-detail:nth-child(even) {
    direction: rtl;
}

.service-detail:nth-child(even) > * {
    direction: ltr;
}

.service-detail-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.service-detail-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.service-detail-content h3 {
    font-size: 1.75rem;
    margin-bottom: 15px;
}

.service-detail-content p {
    color: var(--gray);
    margin-bottom: 20px;
}

.service-examples {
    margin-top: 30px;
}

.service-examples h4 {
    margin-bottom: 15px;
}

.service-examples ul {
    list-style: none;
}

.service-examples li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.service-examples li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
}

/* ========================================
   Business Model Page
   ======================================== */
.business-model-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.business-model-section:last-child {
    border-bottom: none;
}

.business-model-section h2 {
    margin-bottom: 20px;
}

.business-model-section p {
    color: var(--gray);
    max-width: 800px;
}

.data-list {
    margin-top: 30px;
}

.data-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background-color: var(--light-gray);
    border-radius: 10px;
    margin-bottom: 15px;
}

.data-item h4 {
    min-width: 200px;
    margin: 0;
}

.data-item p {
    margin: 0;
}

/* ========================================
   Policy Pages
   ======================================== */
.policy-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

.policy-content h1 {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
}

.policy-content h2 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 15px;
}

.policy-content h3 {
    font-size: 1.25rem;
    margin-top: 30px;
    margin-bottom: 10px;
}

.policy-content p {
    color: var(--gray);
}

.policy-content ul,
.policy-content ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

.policy-content ul {
    list-style: disc;
}

.policy-content ol {
    list-style: decimal;
}

.policy-content li {
    margin-bottom: 10px;
    color: var(--gray);
}

.policy-content a {
    color: var(--primary-color);
}

.last-updated {
    margin-top: 40px;
    padding: 20px;
    background-color: var(--light-gray);
    border-radius: 5px;
    font-size: 0.875rem;
    color: var(--gray);
}

/* ========================================
   Cookie Banner
   ======================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    padding: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.cookie-content p {
    color: var(--gray);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cookie-settings {
    display: none;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.cookie-settings.show {
    display: block;
}

.cookie-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.cookie-category:last-child {
    border-bottom: none;
}

.cookie-category-info h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.cookie-category-info p {
    font-size: 0.85rem;
    margin: 0;
}

.cookie-toggle {
    position: relative;
    width: 50px;
    height: 26px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: var(--transition);
    border-radius: 26px;
}

.cookie-toggle-slider::before {
    position: absolute;
    content: '';
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: var(--white);
    transition: var(--transition);
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: var(--primary-color);
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
    transform: translateX(24px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-links h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-disclaimer {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 15px;
    font-style: italic;
}

.footer-copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   Page Header
   ======================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 120px 0 60px;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 15px;
}

.page-header p {
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
    padding: 15px 0;
    background-color: var(--light-gray);
    font-size: 0.9rem;
}

.breadcrumb-list {
    display: flex;
    gap: 10px;
}

.breadcrumb-list li::after {
    content: '>';
    margin-left: 10px;
    color: var(--gray);
}

.breadcrumb-list li:last-child::after {
    display: none;
}

.breadcrumb-list a {
    color: var(--gray);
}

.breadcrumb-list a:hover {
    color: var(--primary-color);
}

.breadcrumb-list li:last-child {
    color: var(--primary-color);
}

/* ========================================
   Accessibility
   ======================================== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Focus styles */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .about-grid,
    .lead-form-container,
    .contact-grid,
    .service-detail {
        grid-template-columns: 1fr;
    }
    
    .service-detail:nth-child(even) {
        direction: ltr;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .header .container {
        padding: 10px 20px;
    }
    
    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
        gap: 0;
    }
    
    .nav-list.active {
        display: flex;
    }
    
    .nav-list li {
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-list li:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        display: block;
        padding: 15px 0;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .lead-form {
        padding: 25px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-buttons .btn {
        width: 100%;
    }
    
    .data-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .data-item h4 {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 50px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
.mb-5 { margin-bottom: 50px; }

.hidden { display: none !important; }
.visible { display: block !important; }

/* Cookie Table */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95rem;
}

.cookie-table th,
.cookie-table td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid var(--border-color);
}

.cookie-table th {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}

.cookie-table tr:nth-child(even) {
    background-color: var(--light-gray);
}

.cookie-table tr:hover {
    background-color: #e9ecef;
}

/* Print styles */
@media print {
    .header,
    .cookie-banner,
    .footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
    }
}
