/* カスタム変数 */
:root {
    --primary-color: #ffffff;
    --secondary-color: #2c3e50;
    --accent-color: #00883d;
    --accent-color-2: #3498db;
    --accent-color-3: #2ecc71;
    --text-color: #2c3e50;
    --light-gray: #f8f9fa;
}

/* 全体のスタイル */
body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    line-height: 1.8;
}

/* ナビゲーションバー */
.navbar {
    /* background-color: var(--secondary-color) !important; */
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.nav-link {
    color: var(--primary-color) !important;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

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

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

/* ブランドアイコン */
.brand-icon {
    height: 40px;
    width: auto;
    vertical-align: middle;
    transition: transform 0.3s ease;
    border-radius: 50%;
}

.brand-icon2 {
    height: 25px;
    width: auto;
    vertical-align: middle;
    transition: transform 0.3s ease;
    border-radius: 50%;
}


.navbar-brand:hover .brand-icon {
    transform: scale(1.1);
}

/* ヒーローセクション */
.hero-section {
    /* background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%); */
    background-image: url('../images/main_background.jpg');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* 背景オーバーレイ */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.6);
    z-index: 1;
}

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

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-section h1 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    font-size: 3.5rem;
}

.hero-section .lead {
    color: var(--text-color);
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.hero-buttons .btn {
    padding: 0.8rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hero-buttons .btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.hero-buttons .btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.hero-buttons .btn-outline-primary {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.hero-buttons .btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

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

.hero-image img {
    max-width: 100%;
    height: auto;
    animation: float 6s ease-in-out infinite;
}

@keyframes pulse {
    0% { transform: scale(1) rotate(-45deg); }
    50% { transform: scale(1.1) rotate(-45deg); }
    100% { transform: scale(1) rotate(-45deg); }
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

/* 商品カード */
.card {
    border: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-body {
    padding: 2rem;
}

.card-title {
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* 商品カテゴリごとの色分け */
#products .card:nth-of-type(1) {
    border-top: 3px solid var(--accent-color);
}

#products .card:nth-of-type(2) {
    border-top: 3px solid var(--accent-color-2);
}

#products .card:nth-of-type(3) {
    border-top: 3px solid var(--accent-color-3);
}

/* 会社概要セクション */
#about {
    background-color: var(--light-gray);
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect x="0" y="0" width="100" height="100" fill="%232c3e50" opacity="0.05"/></svg>') repeat;
    z-index: 0;
}

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

#about dt {
    font-weight: bold;
    color: var(--accent-color);
    font-size: 1.1rem;
}

#about dd {
    margin-bottom: 1rem;
}

#about .card {
    margin-bottom: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    height: 100%;
}

#about .map-container {
    height: 100%;
    margin: 0;
}

#about .map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

/* 地図コンテナ */
.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.map-container:hover {
    transform: scale(1.02);
}

/* フッター */
footer {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 3rem 0;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* セクションタイトル */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    color: var(--secondary-color);
    font-weight: 700;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
    margin: 0.8rem auto;
    opacity: 0.7;
}

/* アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 4rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .card {
        margin-bottom: 2rem;
    }

    .brand-icon {
        height: 25px;
    }

    /* モバイル時の地図コンテナの調整 */
    .map-container:hover {
        transform: none;
    }

    #about .map-container {
        margin-top: 2rem;
    }
}

/* お問い合わせフォーム */
#contact .contact-form {
    max-width: 600px;
    margin: 0 auto;
}

#contact .btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}
