/* フォントを適用 */
body {
    font-family: serif;
}
/* スムーズスクロール */
html {
    scroll-behavior: smooth;
}
/* カスタムスタイル */
.hero-bg {
    background-image: url('https://placehold.co/1920x1080/e2e8f0/94a3b8?text=ヒーローイメージ'); /* 仮の画像 */
    background-size: cover;
    background-position: center;
}
.service-card img {
    aspect-ratio: 16/9;
    object-fit: cover;
}
/* ハンバーガーメニュー用のスタイル */
.menu-icon {
    display: none; /* 通常は非表示 */
    cursor: pointer;
    z-index: 50;
}
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: white;
    padding: 80px 20px 20px;
    transition: right 0.3s ease-in-out;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.mobile-menu.active {
    right: 0;
}
.mobile-menu a {
    display: block;
    padding: 10px 0;
    font-size: 1.1rem;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: color 0.3s ease;
}
.mobile-menu a:hover {
    color: #A52B23;
}
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    z-index: 999;
}
.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}
@media (max-width: 768px) { /* mdブレークポイント */
    .menu-icon {
        display: block; /* モバイルで表示 */
    }
    .nav-links {
        display: none; /* 通常は非表示 */
    }
}
.close-menu {
    position: absolute;
    top: 20px;
    left: 20px;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    padding: 0;
}
.close-menu svg {
    transition: transform 0.3s ease;
    width: 24px;
    height: 24px;
}
.close-menu:hover svg {
    transform: rotate(90deg);
}
/* 電話ボタンのアニメーション */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(165, 43, 35, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(165, 43, 35, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(165, 43, 35, 0);
    }
}

a[href^="tel:"] {
    animation: pulse 2s infinite;
}

a[href^="tel:"]:hover {
    animation: none;
    transform: scale(1.05);
}
