/* NPO法人たすけあい カスタムスタイル */
/* Version: 2024-11-03 - Background overlay updated for better text visibility */

/* 全ページ：横スクロール抑制・ノッチ／ホームバー対応（PC〜各種スマホ） */
html {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

:root {
    --primary-color: #FFAD5C;      /* 少し柔らかいパステル寄りの橙 */
    --secondary-color: #FFFFFF;
    --accent-color: #28a745;       /* 緑はそのままアクセントカラーとして使用 */
    --text-color: #333;
    --light-gray: #f8f9fa;
    --border-color: #dee2e6;
    /* タイポグラフィ（PC〜スマホで読みやすく） */
    --body-font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
    --body-line-height: 1.8;
    --body-letter-spacing: 0.04em;
    --heading-letter-spacing: 0.06em;
    --heading-line-tight: 1.35;
}

/* ともかな・サロン予定表（スケジュールPDF）：かわいいカレンダーアイコン＋7色ローテーション */
.schedule-card {
    --schedule-accent: var(--primary-color);
    --schedule-soft: rgba(255, 173, 92, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-left: 5px solid var(--schedule-accent);
    background: linear-gradient(145deg, #ffffff 0%, var(--schedule-soft) 42%, #ffffff 100%);
    transition: box-shadow 0.25s ease, transform 0.2s ease;
}
.schedule-card:hover {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}
.schedule-card-tone-0 { --schedule-accent: #e879a8; --schedule-soft: rgba(232, 121, 168, 0.12); }
.schedule-card-tone-1 { --schedule-accent: #5eb8e8; --schedule-soft: rgba(94, 184, 232, 0.12); }
.schedule-card-tone-2 { --schedule-accent: #5ec995; --schedule-soft: rgba(94, 201, 149, 0.12); }
.schedule-card-tone-3 { --schedule-accent: #e8b84a; --schedule-soft: rgba(232, 184, 74, 0.14); }
.schedule-card-tone-4 { --schedule-accent: #a78ce8; --schedule-soft: rgba(167, 140, 232, 0.12); }
.schedule-card-tone-5 { --schedule-accent: #e88a6a; --schedule-soft: rgba(232, 138, 106, 0.12); }
.schedule-card-tone-6 { --schedule-accent: #6abed8; --schedule-soft: rgba(106, 190, 216, 0.12); }

.schedule-calendar-icon {
    color: var(--schedule-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.07));
}
.schedule-calendar-icon svg {
    width: 44px;
    height: auto;
    vertical-align: middle;
}
.schedule-section-title .schedule-calendar-icon {
    color: var(--primary-color);
}
h2.schedule-section-title .schedule-calendar-icon svg {
    width: 40px;
}

/* 基本設定 */
body {
    /* 英数字は Noto Sans、和文は Sawarabi Mincho（フォールバック順） */
    font-family: 'Noto Sans', 'Sawarabi Mincho', serif;
    font-size: var(--body-font-size);
    line-height: var(--body-line-height);
    letter-spacing: var(--body-letter-spacing);
    font-feature-settings: "palt" 1;
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    /* 全ページ共通：ヒーロービューと同系統の橙・緑オブジェを背景全体に大量に散らす */
    background-color: #f8f9fa;
    background-image:
        /* 画面上部エリア：大きめの丸を多数配置 */
        radial-gradient(circle at 3% 2%,   rgba(255, 183, 77, 0.12) 0, rgba(255, 183, 77, 0.12) 140px, transparent 150px),
        radial-gradient(circle at 20% 0%,  rgba(40, 167, 69, 0.11) 0, rgba(40, 167, 69, 0.11) 130px, transparent 140px),
        radial-gradient(circle at 45% 3%,  rgba(255, 183, 77, 0.13) 0, rgba(255, 183, 77, 0.13) 150px, transparent 160px),
        radial-gradient(circle at 70% 1%,  rgba(40, 167, 69, 0.10) 0, rgba(40, 167, 69, 0.10) 120px, transparent 130px),
        radial-gradient(circle at 92% 4%,  rgba(255, 183, 77, 0.12) 0, rgba(255, 183, 77, 0.12) 145px, transparent 155px),
        /* 上中エリア：中くらいの丸を散らす */
        radial-gradient(circle at 8% 15%,  rgba(40, 167, 69, 0.10) 0, rgba(40, 167, 69, 0.10) 100px, transparent 110px),
        radial-gradient(circle at 35% 18%, rgba(255, 183, 77, 0.11) 0, rgba(255, 183, 77, 0.11) 110px, transparent 120px),
        radial-gradient(circle at 60% 12%, rgba(40, 167, 69, 0.09) 0, rgba(40, 167, 69, 0.09) 95px,  transparent 105px),
        radial-gradient(circle at 85% 16%, rgba(255, 183, 77, 0.10) 0, rgba(255, 183, 77, 0.10) 105px, transparent 115px),
        /* 中央エリア：やや小さめの丸を多数配置 */
        radial-gradient(circle at 12% 35%, rgba(255, 183, 77, 0.10) 0, rgba(255, 183, 77, 0.10) 90px,  transparent 100px),
        radial-gradient(circle at 28% 40%, rgba(40, 167, 69, 0.09) 0, rgba(40, 167, 69, 0.09) 85px,  transparent 95px),
        radial-gradient(circle at 50% 38%, rgba(255, 183, 77, 0.11) 0, rgba(255, 183, 77, 0.11) 95px,  transparent 105px),
        radial-gradient(circle at 72% 42%, rgba(40, 167, 69, 0.10) 0, rgba(40, 167, 69, 0.10) 88px,  transparent 98px),
        radial-gradient(circle at 88% 36%, rgba(255, 183, 77, 0.09) 0, rgba(255, 183, 77, 0.09) 92px,  transparent 102px),
        /* 中下エリア：中くらいの丸を配置 */
        radial-gradient(circle at 5% 60%,  rgba(40, 167, 69, 0.10) 0, rgba(40, 167, 69, 0.10) 100px, transparent 110px),
        radial-gradient(circle at 25% 65%, rgba(255, 183, 77, 0.11) 0, rgba(255, 183, 77, 0.11) 105px, transparent 115px),
        radial-gradient(circle at 55% 62%, rgba(40, 167, 69, 0.09) 0, rgba(40, 167, 69, 0.09) 98px,  transparent 108px),
        radial-gradient(circle at 80% 58%, rgba(255, 183, 77, 0.10) 0, rgba(255, 183, 77, 0.10) 102px, transparent 112px),
        radial-gradient(circle at 95% 64%, rgba(40, 167, 69, 0.11) 0, rgba(40, 167, 69, 0.11) 108px, transparent 118px),
        /* 下部エリア：大きめの丸を多数配置（スクロールしても見えるように） */
        radial-gradient(circle at 8% 80%,  rgba(255, 183, 77, 0.12) 0, rgba(255, 183, 77, 0.12) 135px, transparent 145px),
        radial-gradient(circle at 30% 85%, rgba(40, 167, 69, 0.11) 0, rgba(40, 167, 69, 0.11) 125px, transparent 135px),
        radial-gradient(circle at 52% 82%, rgba(255, 183, 77, 0.10) 0, rgba(255, 183, 77, 0.10) 130px, transparent 140px),
        radial-gradient(circle at 75% 88%, rgba(40, 167, 69, 0.12) 0, rgba(40, 167, 69, 0.12) 128px, transparent 138px),
        radial-gradient(circle at 92% 84%, rgba(255, 183, 77, 0.11) 0, rgba(255, 183, 77, 0.11) 132px, transparent 142px),
        /* 最下部エリア：確実に見えるように配置 */
        radial-gradient(circle at 15% 95%, rgba(40, 167, 69, 0.12) 0, rgba(40, 167, 69, 0.12) 140px, transparent 150px),
        radial-gradient(circle at 45% 98%, rgba(255, 183, 77, 0.13) 0, rgba(255, 183, 77, 0.13) 145px, transparent 155px),
        radial-gradient(circle at 70% 96%, rgba(40, 167, 69, 0.11) 0, rgba(40, 167, 69, 0.11) 138px, transparent 148px),
        radial-gradient(circle at 88% 99%, rgba(255, 183, 77, 0.12) 0, rgba(255, 183, 77, 0.12) 142px, transparent 152px);
    background-repeat: no-repeat;
    /* モバイルでは fixed が描画ずれ・重さの原因になりやすいため scroll（タブレット以上で固定） */
    background-attachment: scroll;
}

@media (min-width: 768px) {
    body {
        background-attachment: fixed;
    }
}

/* メイン本文の可読性（長文・リストの折り返しと余白） */
main {
    overflow-x: hidden;
    max-width: 100%;
}

/* 画像・埋め込みの横幅はみ出し防止（img-fluid 未使用でも安全に） */
main img,
main video,
main canvas,
main iframe {
    max-width: 100%;
    height: auto;
}

main p,
main li {
    overflow-wrap: break-word;
    word-break: normal;
}

main a {
    overflow-wrap: anywhere;
}

/* Bootstrap グリッド：flex 子要素の最小幅で横スクロールが出るのを防ぐ */
main .row > [class*="col-"] {
    min-width: 0;
}

/* CMS／ヒーローカード内の長文ブロック */
.page-content-full {
    text-align: left;
    letter-spacing: var(--body-letter-spacing);
    line-height: var(--body-line-height);
}

.page-content-full p,
.page-content-full li {
    line-height: inherit;
    margin-bottom: 0.85em;
}

.page-content-full ol,
.page-content-full ul {
    padding-left: 1.35em;
}

.page-content-full h4,
.page-content-full h5 {
    letter-spacing: var(--heading-letter-spacing);
    line-height: var(--heading-line-tight);
    text-wrap: balance;
}

.page-content-full .lead {
    font-size: clamp(1rem, 0.95rem + 0.35vw, 1.2rem);
    line-height: 1.85;
}

/* 本文系 .lead（Bootstrap 上書き） */
main .lead {
    font-size: clamp(1.05rem, 1rem + 0.2vw, 1.25rem);
    line-height: 1.85;
    letter-spacing: var(--body-letter-spacing);
}

/* ヘッダー */
.site-header {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    /* ノッチ下に固定ヘッダーが重ならないよう余白（対応端末のみ） */
    padding-top: env(safe-area-inset-top, 0);
}

/* ノッチ左右：コンテンツにインセット（トップヒーロー全幅は既存メディアクエリで上書き） */
.site-header .container,
main .container,
footer .container {
    padding-left: max(calc(var(--bs-gutter-x, 1.5rem) * 0.5), env(safe-area-inset-left, 0px));
    padding-right: max(calc(var(--bs-gutter-x, 1.5rem) * 0.5), env(safe-area-inset-right, 0px));
}

.site-title-link {
    color: white;
    text-decoration: none;
    font-size: clamp(1rem, 0.85rem + 0.9vw, 1.5rem);
    font-weight: bold;
    line-height: 1.35;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    max-width: 100%;
    transition: opacity 0.3s ease;
}

.site-title-link:hover {
    color: white;
    opacity: 0.8;
}

.site-title {
    font-weight: 700;
}

.contact-info small {
    font-size: 0.85rem;
}

/* ナビゲーション */
.navbar-brand {
    font-weight: bold;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* ヒーローセクション */
.hero-section {
    background: #f8f9fa;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

/* パステル調の背景装飾（ヒーロー／活動／お問い合わせ／各ページヘッダー共通の丸オブジェを全体に散らす） */
.hero-section::before,
.bg-primary.has-background::before,
.activity-section::after,
.contact-section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2; /* コンテンツの上にうっすら重ねる */
    pointer-events: none;
    background-repeat: no-repeat;
    background-image:
        /* 上エリア：円の中心をセクション内に収める（縦方向 20% 以上に） */ 
        radial-gradient(circle at 8% 22%,   rgba(255, 183, 77, 0.12) 0, rgba(255, 183, 77, 0.12) 110px, transparent 120px),
        radial-gradient(circle at 40% 25%,  rgba(40, 167, 69, 0.10) 0, rgba(40, 167, 69, 0.10) 90px,  transparent 100px),
        radial-gradient(circle at 90% 20%,  rgba(255, 183, 77, 0.11) 0, rgba(255, 183, 77, 0.11) 120px, transparent 130px),
        /* 中央エリア：やや小さめの丸を散らす（縦方向 40〜65%） */
        radial-gradient(circle at 15% 48%, rgba(40, 167, 69, 0.10) 0, rgba(40, 167, 69, 0.10) 60px,  transparent 70px),
        radial-gradient(circle at 55% 55%, rgba(255, 183, 77, 0.11) 0, rgba(255, 183, 77, 0.11) 70px,  transparent 80px),
        radial-gradient(circle at 88% 50%, rgba(40, 167, 69, 0.10) 0, rgba(40, 167, 69, 0.10) 55px,  transparent 65px),
        /* 下エリア：縦方向 75〜85% に収める */
        radial-gradient(circle at 10% 78%, rgba(255, 183, 77, 0.11) 0, rgba(255, 183, 77, 0.11) 80px, transparent 90px),
        radial-gradient(circle at 50% 82%, rgba(40, 167, 69, 0.11) 0, rgba(40, 167, 69, 0.11) 90px,  transparent 100px),
        radial-gradient(circle at 92% 80%, rgba(255, 183, 77, 0.10) 0, rgba(255, 183, 77, 0.10) 75px, transparent 85px);
}

/* 左下の緑の大きめの丸（アクセント） */
.hero-section::after,
.bg-primary.has-background::after,
.activity-section::before,
.contact-section::after {
    content: '';
    position: absolute;
    bottom: 5%;
    left: 8%;
    width: 220px;
    height: 220px;
    background: rgba(40, 167, 69, 0.14);
    border-radius: 50%;
    z-index: 2;
}

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

/* 追加の装飾要素（四角形） */
.hero-section .container::before,
.bg-primary.has-background .container::before,
.activity-section .container::before,
.contact-section .container::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 120px;
    height: 120px;
    background: rgba(255, 183, 77, 0.25);
    transform: rotate(45deg);
    z-index: 0;
    border-radius: 20px;
}

.hero-section .container::after,
.bg-primary.has-background .container::after,
.activity-section .container::after,
.contact-section .container::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 100px;
    height: 100px;
    background: rgba(40, 167, 69, 0.25);
    transform: rotate(-30deg);
    z-index: 0;
    border-radius: 15px;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--text-color);
}

/* ヒーローテキストのスタイル改善 */
.hero-content h1 {
    font-weight: 700;
    font-size: clamp(1.65rem, 1.2rem + 1.6vw, 2.75rem);
    line-height: var(--heading-line-tight);
    letter-spacing: var(--heading-letter-spacing);
    margin-bottom: 1.5rem;
    color: var(--text-color);
    text-wrap: balance;
}

/* トップ：キャッチ「あなたの…」／画像〜キャッチ分 + わたしの「たすけ」〜法人名まで約3行分 */
.hero-section--top h1#hero-title {
    font-size: clamp(2.05rem, 1.38rem + 1.85vw, 3.25rem);
    line-height: 1.2;
    margin-bottom: calc(5.75rem + 4.5rem);
}

/* キャッチ「わたしの「たすけ」」橙を、黒字行（h1基準）より 1.2 倍 */
.hero-section--top h1#hero-title .hero-title-catch-accent {
    font-size: 1.2em;
}

.hero-content .lead {
    font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
    font-weight: 400;
    line-height: 1.85;
    letter-spacing: var(--body-letter-spacing);
    color: #666;
    margin-bottom: 2rem;
}

/* たすけ愛事業ヒーロー：本文に組み込んだ ● 箇条書き（リードより一段小さく） */
.hero-content #hero-description .hero-tasukeai-bullets {
    font-size: clamp(0.88rem, 0.82rem + 0.2vw, 1.02rem);
    line-height: 1.55;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* トップヒーロー：法人名を大きく */
.hero-content .lead.hero-site-name,
.hero-content #hero-description.hero-site-name {
    font-size: clamp(1.4rem, 1.15rem + 1vw, 1.95rem);
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text-color);
    line-height: 1.5;
}

/* トップ：キャッチ（わたしの「たすけ」）と法人名のあいだに1行分の余白 */
.hero-section--top #hero-description.hero-site-name {
    padding-top: 1em;
}

/* トップヒーロー：PC（lg〜）写真の上端から約2行分下げてキャッチ開始・法人名は右揃え */
@media (min-width: 992px) {
    .hero-section--top .row.align-items-center {
        align-items: flex-start;
    }

    /* 右カラムが flex で幅を食い潰さないように */
    .hero-section--top .row > .col-lg-6:last-child {
        min-width: 0;
    }

    .hero-section--top .hero-content {
        padding-top: 5.75rem;
    }

    .hero-section--top h1#hero-title {
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    .hero-section--top #hero-description.hero-site-name {
        text-align: right;
    }
}

/* トップ：lg未満で2段積みのとき（タブレット縦など）も写真下の余白・法人名右揃え */
@media (max-width: 991.98px) {
    .hero-section--top .row > .col-lg-6:first-child {
        margin-bottom: 5.75rem;
    }

    .hero-section--top #hero-description.hero-site-name {
        text-align: right;
    }
}

/* ヒーロー画像 */
.hero-image {
    position: relative;
    z-index: 2;
}

.hero-main-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
}

/* ヒーロースライダー */
.hero-slider {
    position: relative;
    z-index: 2;
}

.hero-slider-container {
    position: relative;
    width: 100%;
}

.hero-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
}

.hero-slide {
    display: none;
    width: 100%;
    position: relative;
}

.hero-slide.active {
    display: block;
}

.hero-slide img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

.hero-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-slider-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-slider-prev {
    left: 15px;
}

.hero-slider-next {
    right: 15px;
}

.hero-slider-btn i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.hero-slider-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.hero-slider-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-slider-indicator.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.2);
}

.hero-slider-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* サービス紹介セクション用のパステルアクセント */
.activity-section {
    position: relative;
    overflow: visible; /* 丸オブジェがセクション境界で切れないように */
}

/* お問い合わせセクションにも同系統の背景オブジェを適用 */
.contact-section {
    position: relative;
    overflow: visible; /* 下側でも丸が途中で切れないように */
}

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

/* ヒーローボタンのスタイル */
.hero-buttons .btn {
    text-shadow: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.8);
    border: 4px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    padding: 15px 40px;
    font-size: 1.1rem;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.9);
}

/* アクセス情報カード */
.access-card {
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    border: 1px solid rgba(40, 167, 69, 0.25);
    position: relative;
}

.access-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.18);
}

/* アクセスカード上のパステルオブジェ（丸） */
.access-card::before,
.access-card::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.access-card::before {
    width: 120px;
    height: 120px;
    top: 0;
    left: 0;
    background: rgba(40, 167, 69, 0.22);
}

.access-card::after {
    width: 130px;
    height: 130px;
    bottom: 0;
    right: 0;
    background: rgba(255, 183, 77, 0.24);
}

.access-card .card-body {
    position: relative;
    z-index: 1;
}

.access-btn {
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.access-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.35);
    background-color: #239958;
    border-color: #239958;
}

/* すべてのカード上に重なるパステルオブジェ（丸） */
.card {
    position: relative; /* オブジェをカードの上に重ねるため */
}

.card:not(.service-card):not(.access-card)::before,
.card:not(.service-card):not(.access-card)::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0; /* 背景より上、テキストより下にしたいので card-body を上にする */
}

.card:not(.service-card):not(.access-card)::before {
    width: 100px;
    height: 100px;
    top: 10px;
    right: 10px;
    background: rgba(255, 183, 77, 0.18);
}

.card:not(.service-card):not(.access-card)::after {
    width: 110px;
    height: 110px;
    bottom: 10px;
    left: 10px;
    background: rgba(40, 167, 69, 0.16);
}

.card:not(.service-card):not(.access-card) .card-body {
    position: relative;
    z-index: 1; /* テキスト・アイコンをオブジェより前面に */
}

.card .card-body p {
    line-height: var(--body-line-height);
    letter-spacing: var(--body-letter-spacing);
}

.card-header {
    background: var(--primary-color);
    color: white;
    border-radius: 10px 10px 0 0 !important;
    font-weight: bold;
    position: relative;
    z-index: 1; /* ヘッダーもオブジェより前面に */
}

/* カード内の見出しスタイル */
.card h5, .card h6 {
    font-weight: 700;
    letter-spacing: var(--heading-letter-spacing);
    line-height: var(--heading-line-tight);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
    color: var(--accent-color); /* カード見出しは緑ベースに */
    text-wrap: balance;
}

.card h5 {
    font-size: clamp(1.05rem, 0.95rem + 0.35vw, 1.25rem);
    border-bottom: 2px solid rgba(40, 167, 69, 0.4);
    padding-bottom: 8px;
    display: inline-block;
}

.card h6 {
    font-size: clamp(1rem, 0.92rem + 0.25vw, 1.1rem);
    background: rgba(40, 167, 69, 0.10); /* 小見出しもパステル緑に */
    padding: 8px 15px;
    border-radius: 5px;
    border-left: 3px solid rgba(40, 167, 69, 0.6);
}

/* たすけ愛事業「参加方法」3カード：見出しが inline-block のとき短いタイトルで下線幅だけ狭く見えるのを防ぎ、高さを揃える */
#sanka-hoho .join-step-card .card-body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: 100%;
}

#sanka-hoho .join-step-card .step-number {
    align-self: center;
}

#sanka-hoho .join-step-card h5 {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

#sanka-hoho .join-step-card .card-body > p.text-muted {
    flex-grow: 1;
    margin-bottom: 0;
}

/* ボタン */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 25px;
    padding: 10px 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #FF6B00;
    border-color: #FF6B00;
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 25px;
    padding: 10px 30px;
    font-weight: 500;
}

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

/* セクション */
.section {
    padding: 60px 0;
    position: relative;
    /* 他のページのセクション全体にも、さりげないパステルの●を散らす */
    background-image:
        radial-gradient(circle at 12% 18%, rgba(40, 167, 69, 0.05) 0, rgba(40, 167, 69, 0.05) 12px, transparent 13px),
        radial-gradient(circle at 82% 20%, rgba(255, 183, 77, 0.06) 0, rgba(255, 183, 77, 0.06) 14px, transparent 15px),
        radial-gradient(circle at 18% 70%, rgba(40, 167, 69, 0.04) 0, rgba(40, 167, 69, 0.04) 10px, transparent 11px),
        radial-gradient(circle at 75% 78%, rgba(255, 183, 77, 0.05) 0, rgba(255, 183, 77, 0.05) 12px, transparent 13px);
    background-repeat: no-repeat;
}

/* セクションに背景画像がある場合のオーバーレイ（軽く） */
.section.has-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    z-index: 1;
}

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

.section.has-background .card {
    position: relative;
    z-index: 3;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.section.has-background .card .btn {
    position: relative;
    z-index: 4;
    pointer-events: auto;
}

/* サービスカードスタイル */
.service-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
    position: relative; /* オブジェをカードの上に重ねるため */
}

/* 動的サービスカードのスライドアニメーション */
.service-card-item {
    position: relative;
    overflow: hidden;
}

.service-content-wrapper {
    position: relative;
    overflow: hidden;
}

#service-content-body {
    position: relative;
    transition: margin-top 0.4s ease, opacity 0.4s ease;
}

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

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

.service-card .service-content {
    background: white;
}

/* サービスカード上に重なるパステルオブジェ（丸） */
.service-card::before,
.service-card::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0; /* 背景より上、テキストより下にしたいので card-body を上にする */
}

/* 右上の橙の丸 */
.service-card::before {
    width: 110px;
    height: 110px;
    top: 0;
    right: 0;
    background: rgba(255, 183, 77, 0.25);
}

/* 左下の緑の丸 */
.service-card::after {
    width: 130px;
    height: 130px;
    bottom: 0;
    left: 0;
    background: rgba(40, 167, 69, 0.22);
}

.service-card .card-body {
    position: relative;
    z-index: 1; /* テキスト・アイコンをオブジェより前面に */
}

.service-card .service-icon {
    text-align: center;
}

.service-card h2 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem);
    letter-spacing: var(--heading-letter-spacing);
    line-height: var(--heading-line-tight);
    margin-bottom: 1rem;
    text-wrap: balance;
}

.service-card .lead {
    color: #666;
    font-size: clamp(1rem, 0.95rem + 0.25vw, 1.1rem);
    line-height: 1.85;
    letter-spacing: var(--body-letter-spacing);
}

.service-card .btn {
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 90, 160, 0.3);
}

/* レスポンシブ対応 */
@media (max-width: 991.98px) {
    .service-card .service-image {
        height: 250px !important;
    }
    
    .service-card .service-content {
        padding: 2rem !important;
    }
}

/* ページヘッダー用のスタイル */
.bg-primary.has-background {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* ページヘッダーのパステル調装飾 */
.bg-primary.has-background::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
    background: rgba(255, 183, 77, 0.2);
    border-radius: 50%;
    z-index: 1;
}

.bg-primary.has-background::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 180px;
    height: 180px;
    background: rgba(40, 167, 69, 0.15);
    border-radius: 50%;
    z-index: 1;
}

.bg-primary.has-background h1 {
    font-weight: 700;
    font-size: clamp(1.65rem, 1.2rem + 1.6vw, 2.75rem);
    line-height: var(--heading-line-tight);
    letter-spacing: var(--heading-letter-spacing);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
    text-wrap: balance;
}

.bg-primary.has-background .lead {
    font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
    font-weight: 400;
    line-height: 1.85;
    letter-spacing: var(--body-letter-spacing);
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
}

.bg-primary.has-background .container {
    position: relative;
    z-index: 2;
}

/* ページヘッダーに追加の装飾要素 */
.bg-primary.has-background .container::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 5%;
    width: 80px;
    height: 80px;
    background: rgba(255, 183, 77, 0.15);
    transform: rotate(45deg);
    z-index: 1;
    border-radius: 15px;
}

/* セクション内の小見出しスタイル */
.section h2, .section h3, .section h4, .section h5, .section h6 {
    font-weight: 800;
    letter-spacing: var(--heading-letter-spacing);
    line-height: var(--heading-line-tight);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
    text-wrap: balance;
}

.section h2 {
    font-size: clamp(1.5rem, 1.05rem + 1.5vw, 2.5rem);
    padding-bottom: 10px;
    display: inline-block;
    border-bottom: 3px solid rgba(40, 167, 69, 0.45); /* 濃すぎない緑の下線 */
}

.section h3 {
    font-size: clamp(1.25rem, 1rem + 0.9vw, 2rem);
    border-left: 4px solid rgba(40, 167, 69, 0.5); /* 見出し3は緑のライン */
    padding-left: 15px;
}

.section h4 {
    font-size: clamp(1.1rem, 0.98rem + 0.45vw, 1.5rem);
    background-color: rgba(40, 167, 69, 0.16); /* パステル調の緑 */
    color: var(--text-color);
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-block;
    text-shadow: none;
}

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

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

/* 「私たちの活動」タイトル専用スタイル */
.activity-title h2 {
    display: inline-block;
    background-color: transparent; /* バナー感を消す */
    color: var(--text-color);
    padding: 0;
    border-radius: 0;
    border: none;
    position: relative;
}

.activity-title p.lead {
    margin-top: 15px;
    line-height: 1.85;
    letter-spacing: var(--body-letter-spacing);
}

/* イベントカード */
.event-card {
    border-left: 4px solid var(--accent-color); /* イベントカードも緑ライン */
    transition: all 0.3s ease;
}

.event-card:hover {
    border-left-color: var(--primary-color); /* ホバー時だけ少し橙を見せる */
    transform: translateX(5px);
}

.event-date {
    background: rgba(40, 167, 69, 0.16); /* イベント日付もパステル緑に */
    color: var(--text-color);
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

.event-month {
    font-size: 0.8rem;
    display: block;
}

.event-day {
    font-size: 1.5rem;
    display: block;
}

/* お知らせ */
.news-item {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    transition: background-color 0.3s ease;
}

.news-item:hover {
    background-color: var(--light-gray);
    padding-left: 10px;
    border-radius: 5px;
}

.news-date {
    color: #666;
    font-size: clamp(0.85rem, 0.8rem + 0.2vw, 0.9rem);
    letter-spacing: var(--body-letter-spacing);
}

.news-title {
    font-weight: bold;
    line-height: 1.55;
    letter-spacing: var(--body-letter-spacing);
    color: var(--primary-color);
    text-decoration: none;
}

.news-title:hover {
    color: var(--accent-color);
}

/* PDFビューアー */
.pdf-viewer {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.pdf-controls {
    background: var(--light-gray);
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
}

/* フォーム */
.form-control {
    border-radius: 5px;
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--text-color);
}

/* アラート */
.alert {
    border-radius: 10px;
    border: none;
}

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

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

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* フッター */
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding-bottom: env(safe-area-inset-bottom, 0);
}

footer p,
footer .text-light {
    line-height: 1.85;
    letter-spacing: var(--body-letter-spacing);
}

footer h5,
footer h6 {
    letter-spacing: var(--heading-letter-spacing);
    line-height: var(--heading-line-tight);
}

.social-links a {
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color) !important;
    transform: translateY(-2px);
}

/* レスポンシブ */
@media (max-width: 768px) {
    /* トップページのみ：ヒーロー写真は左右いっぱい、テキスト列のみ余白 */
    .hero-section--top .container {
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .hero-section--top .row {
        --bs-gutter-x: 0;
        margin-left: 0;
        margin-right: 0;
        flex-direction: column;
    }

    .hero-section--top .row > .col-lg-6:first-child {
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 5.75rem;
    }

    .hero-section--top .row > .col-lg-6:last-child {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .hero-section--top .hero-slider-wrapper {
        border-radius: 0;
    }

    .hero-section--top .hero-slide img.hero-main-image,
    .hero-section--top .hero-main-image {
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .hero-section--top {
        padding: 32px 0 28px;
        min-height: auto;
    }

    /* 他ページのヒーローもモバイルでは画像上・テキスト下 */
    .hero-section .row {
        flex-direction: column;
    }

    .hero-section .hero-image {
        margin-bottom: 22px;
    }
    
    .hero-content {
        text-align: center;
    }

    /* トップ：法人名は右揃え（上の .hero-content 中央指定を上書き） */
    .hero-section--top #hero-description.hero-site-name {
        text-align: right;
    }
    
    .hero-buttons .btn {
        margin-bottom: 10px;
        width: 100%;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .card {
        margin-bottom: 20px;
    }
    
    .contact-info {
        text-align: center;
        margin-top: 15px;
    }
    
    .section h4 {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* モバイルでの装飾要素を小さく */
    .hero-section::before,
    .hero-section::after {
        width: 120px;
        height: 120px;
    }
    
    .hero-section .container::before,
    .hero-section .container::after {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 576px) {
    /* 狭い画面：本文・見出しを一段階大きく（約18px相当の本文） */
    :root {
        --body-font-size: 1.125rem;
        --body-line-height: 1.9;
    }

    .site-title-link {
        font-size: clamp(1.05rem, 0.92rem + 0.95vw, 1.5rem);
    }

    .hero-content h1 {
        font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.75rem);
    }

    .hero-section--top h1#hero-title {
        font-size: clamp(2.1rem, 1.55rem + 2.1vw, 3.4rem);
        line-height: 1.2;
        margin-bottom: calc(5.75rem + 4.5rem);
    }

    .hero-content .lead,
    .bg-primary.has-background .lead {
        font-size: clamp(1.1rem, 1.02rem + 0.45vw, 1.3rem);
    }

    .hero-content .lead.hero-site-name,
    .hero-content #hero-description.hero-site-name {
        font-size: clamp(1.42rem, 1.18rem + 1vw, 2rem);
    }

    main .lead {
        font-size: clamp(1.1rem, 1.02rem + 0.45vw, 1.3rem);
    }

    .page-content-full .lead {
        font-size: clamp(1.08rem, 1rem + 0.5vw, 1.22rem);
    }

    .bg-primary.has-background h1 {
        font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.75rem);
    }

    .section h2 {
        font-size: clamp(1.6rem, 1.15rem + 1.4vw, 2.5rem);
    }

    .section h3 {
        font-size: clamp(1.3rem, 1.08rem + 0.85vw, 2rem);
    }

    .section h4 {
        font-size: clamp(1.15rem, 1.02rem + 0.5vw, 1.5rem);
    }

    .card h5 {
        font-size: clamp(1.1rem, 1rem + 0.45vw, 1.28rem);
    }

    .card h6 {
        font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.12rem);
    }

    .news-date {
        font-size: clamp(0.9rem, 0.85rem + 0.22vw, 0.95rem);
    }

    .event-month {
        font-size: 0.85rem;
    }

    .hero-section {
        padding: 40px 0;
        min-height: auto;
    }

    .hero-section--top {
        padding: 22px 0 18px;
    }
    
    .hero-content h1:not(#hero-title) {
        margin-bottom: 1rem;
    }
    
    .hero-content .lead {
        margin-bottom: 1.5rem;
    }
    
    .card h5 {
        display: block;
        width: 100%;
    }
    
    .section-title {
        margin-bottom: 2rem;
    }
    
    .page-content-full {
        padding-left: 0.125rem;
        padding-right: 0.125rem;
    }
    
    .intro-tab-btn {
        text-align: center;
    }
    
    .intro-tab-btn small {
        line-height: 1.5;
        letter-spacing: var(--body-letter-spacing);
    }
    
    /* さらに小さな装飾要素 */
    .hero-section::before,
    .hero-section::after {
        width: 100px;
        height: 100px;
    }
    
    .hero-section .container::before,
    .hero-section .container::after {
        width: 50px;
        height: 50px;
    }
}

/* ローディング */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 管理画面 */
.admin-sidebar {
    background: var(--primary-color);
    min-height: 100vh;
    padding: 20px 0;
}

.admin-sidebar .nav-link {
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    margin: 5px 10px;
    transition: background-color 0.3s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background-color: rgba(255,255,255,0.2);
    color: white;
}

.admin-content {
    padding: 20px;
}

/* テーブル */
.table-responsive {
    -webkit-overflow-scrolling: touch;
}

.table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.table thead th {
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-weight: 500;
}

.table tbody tr:hover {
    background-color: var(--light-gray);
}

/* ページネーション */
.pagination .page-link {
    color: var(--primary-color);
    border-color: var(--border-color);
}

.pagination .page-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* 固定アクションボタン */
.fixed-action-buttons {
    position: fixed;
    right: max(20px, env(safe-area-inset-right, 0px));
    bottom: max(20px, env(safe-area-inset-bottom, 0px));
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fixed-action-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.fixed-home-btn {
    background: #FF8C42; /* 橙系の少し濃い色 */
}

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

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

.fixed-action-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    color: white;
}

.fixed-action-btn::after {
    content: attr(title);
    position: absolute;
    right: 70px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.fixed-action-btn:hover::after {
    opacity: 1;
}

@media (max-width: 768px) {
    .fixed-action-buttons {
        right: 15px;
        bottom: 15px;
    }
    
    .fixed-action-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .fixed-action-btn::after {
        display: none;
    }
}

/* ユーティリティ */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.shadow-sm {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.shadow {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
}

.shadow-lg {
    box-shadow: 0 8px 15px rgba(0,0,0,0.2) !important;
}

/* 紹介ページのアイコンボタン */
.intro-tab-btn {
    padding: 15px 10px;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    transition: all 0.3s ease;
    background: white;
}

.intro-tab-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.intro-tab-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.intro-tab-btn i {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.intro-tab-btn:hover i,
.intro-tab-btn.active i {
    color: white;
}

.intro-tab-btn small {
    display: block;
    font-weight: 500;
}

/* 沿革タイムライン */
.timeline-intro {
    padding: 20px 0;
}

.timeline-item-intro {
    padding-left: 20px;
    border-left: 3px solid var(--primary-color);
    position: relative;
}

.timeline-item-intro::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 5px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.timeline-year {
    min-width: 80px;
    font-size: 1.1rem;
}

.timeline-content {
    flex: 1;
    line-height: 1.8;
}

/* フッター：サービス紹介ホバー／フォーカスで5サービスへ（下方向ドロップダウン） */
footer .row > .col-md-4:nth-child(2) {
    overflow: visible;
}

.footer-services-hover {
    position: relative;
    z-index: 1;
}

/* 親行はページ遷移しない（5件はホバーで表示されるサブメニューのみリンク） */
button.footer-services-trigger {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-align: left;
}

.footer-services-hover:hover,
.footer-services-hover:focus-within {
    z-index: 1100;
}

.footer-services-submenu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    bottom: auto;
    margin-top: 0.35rem;
    margin-bottom: 0;
    padding: 0.5rem 0.75rem;
    min-width: 14rem;
    max-width: min(22rem, calc(100vw - 2rem));
    background: #2c3034;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.375rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 1100;
}

.footer-services-submenu li:last-child {
    margin-bottom: 0 !important;
}

.footer-services-submenu a:hover {
    color: var(--primary-color) !important;
    text-decoration: underline !important;
}

.footer-services-hover:hover .footer-services-submenu,
.footer-services-hover:focus-within .footer-services-submenu {
    display: block;
}

/* フッターお問い合わせ：地図ホバーでプレビュー表示 */
.footer-map-hover-wrap {
    position: relative;
    display: inline-block;
}

.footer-map-hover-label {
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.footer-map-hover-preview {
    display: none;
    position: absolute;
    left: 0;
    bottom: calc(100% + 0.4rem);
    width: min(320px, calc(100vw - 2rem));
    z-index: 1200;
}

.footer-map-hover-preview img {
    width: 100%;
    height: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: #1f2225;
}

.footer-map-hover-wrap:hover .footer-map-hover-preview,
.footer-map-hover-wrap:focus-within .footer-map-hover-preview {
    display: block;
}

/* たすけ愛事業：グループリビング等のSVGイラストは切り取りを避けて全体表示 */
.service-image img[src$=".svg"] {
    object-fit: contain !important;
    padding: 1.25rem;
    background: #f1f3f5;
}

/* ---- サロン作品例ギャラリー ---- */
.gallery-card {
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}
.gallery-card-img {
    height: 180px;
    object-fit: cover;
}
@media (max-width: 575.98px) {
    .gallery-card-img {
        height: 140px;
    }
}
