/*
Theme Name: Backoffice Solution Pro
Description: Professional business website theme for Backoffice Solution Pro by HAS A HEART Inc.
Version: 1.0
Author: HAS A HEART Inc.
*/

/* CSS Variables for consistent theming */
:root {
    --primary-color: #000080; /* Classic Navy */
    --secondary-color: #D6C6B4; /* Sand Beige */
    --accent-color: #4169E1; /* Royal Blue */
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #F8F9FA;
    --border-color: #E0E0E0;
    --white: #FFFFFF;
    --success-color: #28A745;
    --warning-color: #FFC107;
    --danger-color: #DC3545;
}

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

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

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

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

p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--text-light);
}

/* No-break utility */
.no-break {
    white-space: nowrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    line-height: 1.5;
}

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

.btn-primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.3);
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    /* ボーダー分を内側に調整してサイズを統一 */
    box-sizing: border-box;
}

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

/* モバイルでのボタンサイズ統一 */
@media (max-width: 768px) {
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        padding: 16px 32px;
        text-align: center;
        box-sizing: border-box;
    }
    
    .hero-buttons .btn-outline-primary {
        /* アウトラインボタンもパディングを同じに調整 */
        padding: 14px 30px; /* ボーダー2px分を差し引いて調整 */
    }
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* Header */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.site-header .navbar {
    background-color: transparent;
    padding: 0.75rem 0;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    text-decoration: none;
}

.site-logo:hover {
    color: var(--accent-color) !important;
}

.navbar-nav .nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    margin-left: 1rem;
    transition: color 0.3s ease;
}

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

/* Note link styling */
.navbar-nav .nav-link.note-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem !important;
    line-height: 1;
}

.navbar-nav .note-icon {
    height: 5rem;
    margin-top: -1.7rem;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    text-decoration: none;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(0, 0, 128, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 128, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* モバイル表示調整 */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--white);
        border-top: 1px solid var(--border-color);
        margin-top: 1rem;
        padding-top: 1rem;
    }
    
    .navbar-nav .nav-item {
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }
    
    .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }
    
    .navbar-nav .nav-link {
        padding: 1rem;
        margin-left: 0;
    }
    
    .navbar-nav .nav-link.note-link {
        padding: 0.75rem 1rem !important;
    }
}

/* Hero Section */
.hero-section {
    background-color: var(--white);
    color: var(--text-color);
    padding: 120px 0 80px;
    margin-top: 80px;
    position: relative;
}

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

.btn-outline-light {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

/* Success Cases Section */
.success-cases-section {
    background-color: var(--bg-light);
    padding: 4rem 0;
}

.success-intro {
    background-color: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.success-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: none;
}

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

.success-card .card-header {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    font-weight: 600;
    text-align: center;
}

.success-card .card-body {
    padding: 1.5rem;
}

.case-detail {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    margin-top: 1rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    line-height: 1.8;
}

.hero-buttons {
    margin-top: 2rem;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    padding: 120px 0 80px;
    margin-top: 80px;
    text-align: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Section Styles */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--primary-color);
}

.py-5 {
    padding: 4rem 0;
}

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

/* Features Section */
.features-section {
    padding: 5rem 0;
}

.feature-card {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.2);
}

.feature-header {
    margin-bottom: 1.5rem;
}

.feature-number {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

/* Service Styles */
.service-badge {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.service-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-details-box {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
    border-left: 4px solid var(--primary-color);
}

.price-info {
    color: var(--primary-color);
    font-size: 1.125rem;
    margin-bottom: 0;
}

/* Support Areas */
.support-area-card {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
}

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

.support-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.support-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Success Cases */
.success-cases-section {
    background-color: var(--bg-light);
    padding: 5rem 0;
}

.case-card {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

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

.case-company {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.case-title {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.case-metrics {
    margin: 1.5rem 0;
}

.metric-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.metric-label {
    font-weight: 600;
    color: var(--text-color);
}

.metric-value {
    font-weight: 700;
    color: var(--primary-color);
}

.case-benefit {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    margin-top: 1rem;
}

/* FAQ Section */
.faq-section {
    padding: 5rem 0;
}

.faq-item {
    background: var(--white);
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 20px rgba(0, 51, 102, 0.15);
}

.faq-question {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 10px 10px 0 0;
    font-weight: 600;
    margin-bottom: 0;
}

.faq-answer {
    padding: 1.5rem;
    color: var(--text-color);
    line-height: 1.8;
}

/* Team Section */
.team-section {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.member-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

.member-card:hover {
    transform: translateY(-5px);
}

.member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    object-fit: cover;
    border: 4px solid var(--secondary-color);
}

.member-name {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.member-position {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 1rem;
}

.member-expertise {
    margin-bottom: 1.5rem;
}

.expertise-badge {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    margin: 0.25rem;
    display: inline-block;
}

/* Contact Form */
.contact-form-section {
    padding: 5rem 0;
}

.contact-form-card {
    background: var(--white);
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-title {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
}

.form-label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    display: block;
}

.form-label.required::after {
    content: " *";
    color: var(--danger-color);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background-color: var(--white);
    cursor: pointer;
    transition: border-color 0.3s ease;
}

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

.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.form-check-input {
    margin-right: 0.5rem;
    margin-top: 0.25rem;
}

.form-check-label {
    font-size: 0.9rem;
    line-height: 1.5;
}

.service-checkboxes {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

/* Footer */
.site-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-section {
    padding: 0 0.5rem;
}

.footer-section h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-section p,
.footer-section li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

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

/* Footer SNS Section */
.footer-sns-section {
    margin: 2rem 0;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.sns-title {
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.sns-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.sns-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 100px;
}

.sns-link:hover,
.sns-link:focus-visible {
    color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    outline: none;
}

.sns-link:focus-visible {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 0 0 2px var(--secondary-color);
}

.sns-logo {
    width: 32px;
    height: 32px;
    margin-bottom: 0.5rem;
    filter: brightness(0.9);
    transition: filter 0.3s ease;
}

.sns-logo.note-logo {
    background: #fff;
    border-radius: 8px;
    padding: 6px;
    filter: none;
    transition: all 0.3s ease;
}

.sns-link:hover .sns-logo.note-logo {
    background: #fff;
    transform: scale(1.05);
    filter: none;
}

.sns-link:hover .sns-logo {
    filter: brightness(1.1);
}

.sns-link span {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Platform-specific hover and focus colors */
.sns-link.facebook:hover,
.sns-link.facebook:focus-visible {
    border-color: #1877f2;
    color: #1877f2;
}

.sns-link.note:hover,
.sns-link.note:focus-visible {
    border-color: #41c9b4;
    color: #41c9b4;
}

.sns-link.twitter:hover,
.sns-link.twitter:focus-visible {
    border-color: #1d9bf0;
    color: #1d9bf0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-section {
        padding: 0;
        text-align: center;
    }
    
    .sns-icons {
        gap: 1rem;
        justify-content: center;
    }
    
    .sns-link {
        min-width: 80px;
        padding: 0.75rem;
    }
    
    .sns-logo {
        width: 28px;
        height: 28px;
    }
    
    .sns-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-navigation li {
        margin-left: 0;
    }
    
    .hero-buttons .btn {
        display: block;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .contact-form-card {
        padding: 2rem 1.5rem;
    }
}

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

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.g-4 > * {
    margin-bottom: 1.5rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-12 { flex: 0 0 100%; max-width: 100%; padding: 0 15px; }
.col-lg-6 { flex: 0 0 50%; max-width: 50%; padding: 0 15px; }
.col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; padding: 0 15px; }
.col-lg-3 { flex: 0 0 25%; max-width: 25%; padding: 0 15px; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; padding: 0 15px; }

@media (max-width: 992px) {
    .col-lg-6,
    .col-lg-4,
    .col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }

.img-fluid {
    max-width: 100%;
    height: auto;
}

.rounded { border-radius: 8px; }
.shadow { box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); }

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Alert Styles */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert i {
    margin-right: 0.5rem;
}