body {
    font-family: 'Noto Sans JP', sans-serif;
    scroll-behavior: smooth;
}
.serif {
    font-family: 'Noto Serif JP', serif;
}
/* 改行の最適化 */
.balanced-text {
    text-wrap: balance; /* ブラウザが自動で行の長さを調整 */
}
.keep-all {
    word-break: keep-all;
    overflow-wrap: anywhere;
}
.inline-group {
    display: inline-block; /* 塊として扱い、途中の改行を防ぐ */
}
.hero-video-container {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}
/* スマホでの動画の見え方を最適化 */
@media (max-width: 640px) {
    .hero-video-container {
        height: 85vh; /* スマホでは少し高さを抑えると、下にコンテンツがあることが伝わりやすい */
    }
    .hero-overlay {
        /* スマホは屋外で見ることが多いため、少し暗めにして文字を浮かせます */
        background: rgba(0, 0, 0, 0.25);
    }
}
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
}
.custom-text-shadow {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 0, 0, 0.5), 0 4px 24px rgba(0, 0, 0, 0.4);
}
.nature-bg {
    background: linear-gradient(rgba(255,255,255,0.8), rgba(255,255,255,0.8)), url('./image/kome-kawa.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

@media (max-width: 768px) {
    .nature-bg {
        background-attachment: scroll;
    }
}
.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: #b48c36;
    margin: 10px auto;
}
.hide-scrollbar::-webkit-scrollbar {
    height: 6px;
}
.hide-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.hide-scrollbar::-webkit-scrollbar-thumb {
    background: #d6d3d1;
    border-radius: 10px;
}
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    background: rgba(0,0,0,0.7);
    align-items: center;
    justify-content: center;
}
.modal.active {
    display: flex;
}
/* モーダル内のテキスト収まりを改善 */
#modalDesc {
    /* 1行が短すぎる時に無理に広げず、自然な改行位置を探る */
    overflow-wrap: anywhere;
    word-break: normal;
    line-break: strict; /* 句読点などが先頭に来ないよう厳密に管理 */
}
/* モーダルの画像コンテナから枠線と影を消去 */
#modalImageContainer {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* 画像自体の縁に色がついている場合の対策 */
#modalImageContainer img {
    border: none !important;
    background-color: transparent !important;
}
.map-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}
.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.img-fallback {
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 0.75rem;
    text-align: center;
    padding: 10px;
}
.header-logo {
    max-width: 290px;
    height: auto;
    width: 100%;
}
@media (max-width: 768px) {
    .header-logo {
        max-width: 180px;
    }
}
/* モバイル端末での余白調整 */
@media (max-width: 640px) {
    .header-logo {
        max-width: 150px; /* 現状の180pxから少し縮小 */
    }
    #modalDesc {
        text-align: left; /* スマホでは両端揃えより左揃えが見やすい場合があります */
    }
}
/* 自動スクロール中はスナップを一時的に無効化するか、コンテナの設定を調整 */
#list-business, #list-home {
    scroll-snap-type: none; /* 自動スクロールを滑らかにするため none に */
    overflow-x: auto;       /* hiddenからautoに変更（スワイプを有効化） */
    display: flex;
    gap: 1.5rem;           /* カード間の隙間 */
    white-space: nowrap;   /* 改行を防ぐ */
    cursor: grab; /* 掴めることを示すカーソル */
    user-select: none; /* テキストや画像の選択を無効化 */
    -webkit-user-drag: none; /* 画像のドラッグ禁止 */
    -webkit-overflow-scrolling: touch; /* iOSでのスクロールを滑らかに */
}
.cursor-grabbing {
    cursor: grabbing !important; /* 掴んでいる最中のカーソル */
}
/* スクロールバーを完全に非表示にする（任意） */
#list-business::-webkit-scrollbar,
#list-home::-webkit-scrollbar {
    display: none;
}
/* スクロールコンテナの高さが干渉しないよう固定する（必要に応じて） */
#scroller-container {
    overflow: hidden;
    height: auto; 
}
/* hiddenクラスがついているときは絶対に表示しない */
.hidden {
    display: none !important;
}

/* 縦書きの基本設定 */
.writing-vertical {
    writing-mode: vertical-rl; /* 縦書き、右から左へ */
    text-orientation: mixed;
}

/* 縦書き時の文字間隔と配置の調整 */
.hero-vertical-text {
    letter-spacing: 0.3em;
    line-height: 1.8;
}

/* スマホとPCでの位置調整 */
@media (min-width: 1024px) {
    .hero-container-flex {
        justify-content: center; /* PCでも中央 */
    }
}
@media (max-width: 1023px) {
    .hero-container-flex {
        justify-content: center; /* スマホ・タブレットでは中央 */
    }
}

/* ハンバーガーボタン */
.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #292524; /* stone-800 */
    border-radius: 2px;
    transition: transform 0.35s ease, opacity 0.35s ease;
}
/* 開いている状態：ハンバーガー → バツ */
#menuBtn.is-open .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
#menuBtn.is-open .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
#menuBtn.is-open .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ドロワーオーバーレイ */
.drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* ドロワーパネル */
.drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 260px;
    height: 100%;
    background: #fff;
    padding: 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 24px rgba(0,0,0,0.08);
}
.drawer-overlay.open .drawer-panel {
    transform: translateX(0);
}

/* ドロワーリンク */
.drawer-link {
    display: block;
    padding: 0.85rem 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #44403c; /* stone-700 */
    border-bottom: 1px solid #f5f5f4; /* stone-100 */
    letter-spacing: 0.05em;
    transition: color 0.2s ease, padding-left 0.2s ease;
}
.drawer-link:hover {
    color: #92400e; /* amber-800 */
    padding-left: 1rem;
}

/* PC用ナビメニュー表示制御 */
.nav-pc-menu {
    display: none;
}
@media (min-width: 1024px) {
    .nav-pc-menu {
        display: flex;
    }
}

/* フロー矢印（PC用） */
.pc-arrow { display: none; }
@media (min-width: 768px) {
    .pc-arrow { display: block; }
}

/* お知らせ本文内リンク */
/* お知らせ本文内リンク */
.news-body-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #b45309;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: #b45309;
    text-underline-offset: 3px;
    background-color: #fffbeb;
    padding: 1px 6px 1px 4px;
    border-radius: 3px;
    border: 1px solid #fde68a;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.news-body-link:hover {
    color: #92400e;
    background-color: #fef3c7;
    border-color: #f59e0b;
    text-decoration-color: #92400e;
}