/* 発達育児管理システム - メインCSSファイル */

/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基本スタイル */
body {
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', 'Noto Sans JP', sans-serif;
    line-height: 1.7;
    color: #5a5a5a;
    background: #eee;
    min-height: 100vh;
}

/* ヘッダー */
header {
    background: #ffffff;
    color: #1c1e21;
    padding: 0;
    box-shadow: 0 5px 0 rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #dadde1;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-container {
    flex-shrink: 0;
}

.site-logo {
    height: 74px;
    width: auto;
}

.header-text {
    flex: 1;
}

header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: #1c1e21;
    letter-spacing: 0.02em;
}

.header-subtitle {
    font-size: 0.9rem;
    color: #65676b;
    margin: 0;
    font-weight: 400;
    line-height: 1.4;
}

.breadcrumb {
    margin: 20px 0;
    font-size: 0.9em;
    color: #3d3d3d;
}

.breadcrumb a {
    color: #3d3d3d;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* マウスオーバーアクションを削除 */

/* メインコンテンツ */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* セクション説明文 */
.section-description {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 2rem;
    text-align: left;
    line-height: 1.6;
}

/* 情報カテゴリカード */
.info-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.category-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.category-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.category-card h3 {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #8fbc8f;
}

.category-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-link {
    color: #666;
    text-decoration: none;
    font-size: 0.9em;
    padding: 0.5rem 0;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.category-link:hover {
    color: #8fbc8f;
    border-bottom-color: #8fbc8f;
    padding-left: 0.5rem;
}

/* 地域に関連する情報セクション */
.location-section {
    margin-top: 3rem;
    padding: 1rem;
}

/* お知らせコーナー */
.notice-corner {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    margin: 2rem 0;
    text-align: center;
}

.notice-corner h3 {
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.notice-corner p {
    color: #6c757d;
    margin: 0;
    font-weight: 400;
    line-height: 1.5;
    font-size: 0.9em;
}

.notice-corner .notice-date {
    font-size: 0.8em;
    opacity: 0.7;
    margin-top: 0.3rem;
}

.info-section {
    margin-top: 3rem;
    padding: 1rem;
    border-top: 2px solid #e0e0e0;
}

.location-search,
.location-selection {
    margin-bottom: 2.5rem;
}

.location-search h3,
.location-selection h3 {
    font-size: 1.3em;
    color: #333;
}

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

.main-container {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 2rem auto;
    max-width: 1200px;
    width: 90%;
}

/* セクション */
section {
    padding: 1.5rem;
}

section:last-child {
    border-bottom: none;
}

section h2 {
    color: #1c1e21;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: left;
}


/* 自治体グリッド */
.municipality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.municipality-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.municipality-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8fbc8f, #a8c8a8);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.municipality-card:hover {
    border-color: #8fbc8f;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.municipality-card:hover::before {
    transform: scaleX(1);
}

.municipality-card h3 {
    margin: 0 0 4px 0;
    color: #333;
    font-size: 0.9em;
    font-weight: 600;
}

.municipality-card p {
    margin: 0;
    color: #666;
    font-size: 0.75em;
}

/* 情報カード */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(108, 117, 125, 0.2);
    border-radius: 15px;
    padding: 1.8rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.info-card h3 {
    color: #6c757d;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    font-weight: 400;
}

.info-card p {
    color: #6c757d;
    margin: 0;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.6;
    opacity: 0.8;
}

/* 自治体ヘッダー */
.municipality-header {
    color: #6c757d;
    text-align: center;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
}

.municipality-header h2 {
    color: #6c757d;
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.municipality-header p {
    font-size: 0.95rem;
    opacity: 0.8;
    margin: 0;
}

/* サービスカテゴリ */
.service-category {
    margin-bottom: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.service-category h3 {
    background: #34495e;
    color: white;
    padding: 1rem 1.5rem;
    margin: 0;
    font-size: 1.2rem;
}

.service-list {
    padding: 1.5rem;
}

.service-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.service-item:hover {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.service-item:last-child {
    margin-bottom: 0;
}

.service-header {
    margin-bottom: 0.75rem;
}

.service-item h4 {
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.service-overview {
    color: #495057;
    margin-bottom: 0.75rem;
    line-height: 1.6;
    font-size: 0.9rem;
}

.service-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.service-detail {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: white;
    border-radius: 3px;
    border-left: 2px solid #3498db;
}

.service-detail strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 0.15rem;
    font-weight: 600;
    font-size: 0.75rem;
}

.service-detail span {
    color: #495057;
    font-size: 0.8rem;
}

.service-detail a {
    color: #007bff;
    text-decoration: none;
    font-size: 0.8rem;
}

/* マウスオーバーアクションを削除 */

.service-features {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.service-features h5 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.service-features ul {
    margin: 0;
    padding-left: 1rem;
}

.service-features li {
    margin-bottom: 0.4rem;
    color: #495057;
    line-height: 1.4;
    font-size: 0.9rem;
}

/* 提供サービスセクションを削除（keyFeaturesと重複のため） */

/* 連絡先情報 */
.contact-info {
    background: #e8f4fd;
    border: 1px solid #bee5eb;
    border-radius: 8px;
    padding: 1.5rem;
}

.contact-info h3 {
    color: #0c5460;
    margin-bottom: 1rem;
}

.contact-detail {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.contact-detail strong {
    color: #0c5460;
}

/* フッター */
footer {
    background-color: #343a40;
    color: white;
    text-align: center;
    padding: 1rem 0;
    margin-top: 3rem;
}

footer p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .site-logo {
        height: 40px;
    }
    
    header h1 {
        font-size: 1.2rem;
    }
    
    .header-subtitle {
        font-size: 0.85rem;
    }
    
    main {
        margin: 1rem auto;
        padding: 0 0.5rem;
    }
    
    .main-container {
        margin: 1.5rem auto;
        width: 92%

    }
    
    section {
        padding: 1rem;
    }
    
    .service-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .service-details {
        grid-template-columns: 1fr;
    }
    
    .service-item {
        padding: 0.75rem;
    }
    
    .service-features {
        padding: 0.5rem;
    }
    
    .service-details {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
    
    .service-detail {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }
    
    .service-detail strong {
        font-size: 0.7rem;
    }
    
    .service-detail span,
    .service-detail a {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1rem;
    }
    
    section {
        padding: 1rem;
    }
    
    .data-item {
        padding: 1rem;
    }
}

/* ボタンスタイル */
.btn {
    display: inline-block;
    padding: 8px 16px;
    background: #1877f2;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn:hover {
    background: #166fe5;
}

/* マウスオーバーアクションを削除 */

.btn-secondary {
    background: #e4e6ea;
    color: #1c1e21;
}

.btn-secondary:hover {
    background: #d8dadf;
}

/* マウスオーバーアクションを削除 */

.prefecture-link {
    text-align: center;
    margin-top: 20px;
}

/* サービスなし表示 */
.no-services {
    padding: 2rem;
    text-align: center;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    margin: 1rem 0;
}

.no-services p {
    margin: 0.5rem 0;
    color: #6c757d;
}

.contact-note {
    font-size: 0.9rem;
    font-style: italic;
    color: #007bff;
}

/* 近隣自治体のリンク */
.nearby-section {
    padding: 2rem;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.nearby-section h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.2rem;
}

.nearby-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.nearby-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    text-decoration: none;
    color: #007bff;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

/* スケルトンローディング */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin: 10px 0;
}

.skeleton-title {
    height: 24px;
    width: 70%;
    margin-bottom: 10px;
}

.skeleton-text {
    height: 16px;
    width: 100%;
    margin-bottom: 8px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

.skeleton-service-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.skeleton-service-item:last-child {
    margin-bottom: 0;
}

.skeleton-service-title {
    height: 1.2rem;
    width: 60%;
    margin-bottom: 0.75rem;
}

.skeleton-service-detail {
    height: 0.9rem;
    width: 90%;
    margin-bottom: 0.5rem;
}

.skeleton-service-detail.short {
    width: 50%;
}

.skeleton-service-detail.medium {
    width: 80%;
}

.skeleton-service-detail:last-child {
    margin-bottom: 0;
}

/* 自治体一覧用スケルトンローディング */
.municipality-skeleton-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px 8px;
    margin-bottom: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.municipality-skeleton-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f0f0f0, #e0e0e0);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.municipality-skeleton-title {
    height: 18px;
    width: 80%;
    margin: 0 auto;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

/* スケルトンからコンテンツへの滑らかな遷移 */
.service-item {
    opacity: 0;
    transform: translateY(10px);
    animation: slideInFade 0.4s ease-out forwards;
}

@keyframes slideInFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* スケルトンローディングのフェードアウト */
.skeleton-fade-out {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.3s ease-out;
}

/* スケルトンからコンテンツへの直接置き換え */
.skeleton-to-content {
    opacity: 0;
    transform: translateY(10px);
    animation: skeletonToContent 0.4s ease-out forwards;
}

@keyframes skeletonToContent {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* フェードインアニメーション */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }
.fade-in-delay-4 { animation-delay: 0.4s; }

/* 検索セクション */
.search-section {
    background: #ffffff;
    padding: 1.5rem;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #dadde1;
    border-radius: 6px;
    font-size: 1rem;
    background: #ffffff;
    color: #1c1e21;
    font-weight: 400;
}

.search-input:focus {
    outline: none;
    border-color: #1877f2;
    box-shadow: 0 0 0 2px rgba(24, 119, 242, 0.2);
}

.search-results {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #dadde1;
    border-radius: 6px;
    background: #ffffff;
    display: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid #dadde1;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #1c1e21;
}

.search-result-item:hover {
    background-color: #f0f2f5;
}

.search-result-item:last-child {
    border-bottom: none;
}

/* 都道府県グリッド */
.prefecture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.prefecture-card {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(108, 117, 125, 0.3);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.1);
    backdrop-filter: blur(5px);
}

.prefecture-card:hover {
    border-color: #8fbc8f;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(143, 188, 143, 0.3);
}

.prefecture-card h3 {
    margin: 0 0 10px 0;
    color: #6c757d;
    font-size: 1.3em;
    font-weight: 400;
}

.prefecture-card p {
    margin: 0;
    color: #6c757d;
    font-size: 1em;
    font-weight: 300;
    opacity: 0.8;
}






/* 都道府県一覧の地域グループ化スタイル（エクスパンド対応） */
.region-group {
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease;
}

.region-group:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.region-header {
    background: linear-gradient(135deg, #8fbc8f 0%, #6b8e6b 100%);
    padding: 20px 24px;
    cursor: default; /* PC版ではクリック無効 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    position: relative;
    overflow: hidden;
}

/* スマホビューでのregion-headerの高さ調整 */
@media (max-width: 768px) {
    .region-header {
        padding: 13px 16px;
    }
}

.region-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.region-header:hover::before {
    opacity: 1;
}

.region-title {
    font-size: 1.3em;
    font-weight: 600;
    margin: 0;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

.region-toggle {
    display: none; /* PC版では矢印を非表示 */
    color: white;
    font-size: 1.2em;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.region-group.expanded .region-toggle {
    transform: rotate(180deg);
}

.region-prefectures {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    padding: 24px; /* PC版では常にパディング */
    max-height: none; /* PC版では高さ制限なし */
    overflow: visible; /* PC版ではオーバーフロー制限なし */
    background: #fafbfc;
}

/* スマホ版でのエキスパンド機能 */
@media (max-width: 768px) {
    .region-header {
        cursor: pointer; /* スマホ版ではクリック有効 */
        transition: all 0.3s ease;
    }
    
    .region-header:hover {
        background: linear-gradient(135deg, #7ba87b 0%, #5a7a5a 100%);
    }
    
    .region-toggle {
        display: block; /* スマホ版では矢印を表示 */
        font-size: 1.2em;
        transition: transform 0.3s ease;
    }
    
    .region-group.expanded .region-toggle {
        transform: rotate(180deg);
    }
    
    .region-prefectures {
        padding: 0; /* スマホ版では初期状態でパディングなし */
        max-height: 0; /* スマホ版では初期状態で高さ制限 */
        overflow: hidden; /* スマホ版ではオーバーフロー制限 */
        transition: max-height 0.3s ease, padding 0.3s ease;
    }
    
    .region-group.expanded .region-prefectures {
        max-height: 1000px;
        padding: 20px;
    }
}

.prefecture-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.prefecture-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8fbc8f, #a8c8a8);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.prefecture-card:hover {
    border-color: #8fbc8f;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.prefecture-card:hover::before {
    transform: scaleX(1);
}

.prefecture-card h3 {
    margin: 0 0 4px 0;
    color: #333;
    font-size: 0.9em;
    font-weight: 600;
}

.prefecture-card p {
    margin: 0;
    color: #666;
    font-size: 0.75em;
}

/* 現在地から探すボタン */
.current-location-btn {
    background: linear-gradient(135deg, #8fbc8f 0%, #a8c8a8 100%);
    color: #ffffff;
    border: none;
    border-radius: 30px;
    padding: 18px 35px;
    font-size: 1.2em;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(143, 188, 143, 0.4);
    margin: 30px 0;
    display: block;
    max-width: 350px;
}

.current-location-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(143, 188, 143, 0.5);
}

.current-location-btn:active {
    transform: translateY(0);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .prefecture-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 9px;
    }
}

/* マウスオーバーアクションを削除 */




/* ===== お問い合わせフォーム ===== */

/* お問い合わせボタン */
.contact-button-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.contact-button {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.contact-icon {
    font-size: 18px;
}

/* モーダル */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 20px 30px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: opacity 0.3s ease;
}

.close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 30px;
    max-height: 70vh;
    overflow-y: auto;
    /* スクロールバーのスタイリング */
    scrollbar-width: thin;
    scrollbar-color: #4CAF50 #f1f1f1;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #4CAF50;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #45a049;
}

/* フォームスタイル */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ラジオボタングループ */
.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 200px;
}

.radio-label:hover {
    border-color: #3498db;
    background-color: rgba(52, 152, 219, 0.05);
}

.radio-label input[type="radio"] {
    width: auto;
    margin-right: 10px;
    margin-bottom: 0;
}

.radio-label input[type="radio"]:checked + .radio-text {
    color: #3498db;
    font-weight: 600;
}

.radio-label:has(input[type="radio"]:checked) {
    border-color: #3498db;
    background-color: rgba(52, 152, 219, 0.1);
}

.radio-text {
    font-size: 16px;
    color: #333;
}

/* フォームアクション */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
    background: #e9ecef;
    border-color: #d0d7de;
}

/* 施設情報セクション */
.facility-info-group {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.facility-info-title {
    color: #2c5530;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #4CAF50;
}

        /* 必須項目のスタイル */
        .required {
            color: #dc3545;
            font-weight: bold;
        }

        /* ポリシーページスタイル */
        .policy-content {
            max-width: 800px;
            margin: 0 auto;
            padding: 20px;
            line-height: 1.8;
        }

        .policy-section {
            background: white;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            margin-bottom: 20px;
        }

        .policy-section h2 {
            color: #2c5530;
            font-size: 20px;
            margin: 30px 0 15px 0;
            padding-bottom: 10px;
            border-bottom: 2px solid #4CAF50;
        }

        .policy-section h2:first-child {
            margin-top: 0;
        }

        .policy-section p {
            margin-bottom: 15px;
            color: #333;
        }

        .policy-section ol, .policy-section ul {
            margin: 15px 0;
            padding-left: 25px;
        }

        .policy-section li {
            margin-bottom: 8px;
            color: #333;
        }

        .last-updated {
            background: #f8f9fa;
            padding: 10px 15px;
            border-left: 4px solid #4CAF50;
            margin-bottom: 30px;
            font-weight: bold;
            color: #2c5530;
        }

        .contact-info {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 6px;
            margin-top: 20px;
        }

        /* このサイトについてページ用スタイル */
        .about-content {
            max-width: 800px;
            margin: 0 auto;
            line-height: 1.8;
        }

        .about-section {
            margin-bottom: 40px;
            padding: 20px;
            background: #f8f9fa;
            border-radius: 8px;
            border-left: 4px solid #4CAF50;
        }

        .about-section h2 {
            color: #2c5530;
            margin-bottom: 15px;
            font-size: 1.3em;
        }

        .about-section p {
            margin-bottom: 15px;
            color: #333;
        }

        .about-section strong {
            color: #2c5530;
            font-weight: bold;
        }

        /* グローバルフッター */
        .footer {
            background: #5a5a5a;
            color: white;
            padding: 30px 0;
            margin-top: 50px;
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            text-align: center;
        }

        .footer-links {
            margin-bottom: 20px;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 8px;
        }

        .footer-links a {
            color: white;
            text-decoration: none;
            padding: 6px 12px;
            border-radius: 4px;
            transition: background-color 0.3s;
            font-size: 14px;
            white-space: nowrap;
        }

        .footer-links a:hover {
            background-color: rgba(255,255,255,0.1);
        }

        .footer-info {
            border-top: 1px solid rgba(255,255,255,0.2);
            padding-top: 20px;
            color: rgba(255,255,255,0.8);
        }

        .footer-info p {
            margin: 0;
            font-size: 14px;
        }

        /* スマホ用フッター調整 */
        @media (max-width: 768px) {
            .footer-links {
                gap: 4px;
                justify-content: center;
            }

            .footer-links a {
                font-size: 13px;
                padding: 5px 8px;
                margin: 2px;
            }

            .footer {
                padding: 20px 0;
            }

            .footer-content {
                padding: 0 15px;
            }
        }

        @media (max-width: 480px) {
            .footer-links {
                flex-direction: column;
                align-items: center;
                gap: 8px;
            }

            .footer-links a {
                display: block;
                width: 100%;
                max-width: 200px;
                text-align: center;
                margin: 0;
            }
        }

        /* 同意チェックボックス */
        .consent-checkbox {
            margin: 20px 0;
            padding: 15px;
            background: #f8f9fa;
            border-radius: 6px;
            border: 1px solid #e9ecef;
        }

        .consent-checkbox input[type="checkbox"] {
            margin-right: 10px;
            transform: scale(1.2);
        }

        .consent-checkbox label {
            font-size: 14px;
            line-height: 1.5;
            cursor: pointer;
            display: flex;
            align-items: flex-start;
        }

        .consent-checkbox a {
            color: #4CAF50;
            text-decoration: underline;
        }

        .consent-checkbox a:hover {
            color: #45a049;
        }

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .contact-button-container {
        bottom: 20px;
        right: 20px;
    }
    
    .contact-button {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .radio-label {
        min-width: auto;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* 自治体一覧ページ用スタイル */
.municipality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.municipality-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.municipality-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8fbc8f, #a8c8a8);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.municipality-card:hover {
    border-color: #8fbc8f;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.municipality-card:hover::before {
    transform: scaleX(1);
}

.municipality-card h3 {
    margin: 0 0 4px 0;
    color: #333;
    font-size: 0.9em;
    font-weight: 600;
}

.prefecture-header {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.prefecture-header h2 {
    margin: 0;
    color: #333;
}

/* 都道府県一覧ページ用スタイル */
.prefecture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.prefecture-page .prefecture-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.prefecture-page .prefecture-card:hover {
    border-color: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.prefecture-page .prefecture-card h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.2em;
}

.prefecture-page .prefecture-card p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
}


/* 現在地から探すボタン */
.current-location-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    margin: 30px 0;
    display: block;
    max-width: 300px;
}

.current-location-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.current-location-btn:active {
    transform: translateY(0);
}

/* PC版では現在地から探すボタンを非表示 */
@media (min-width: 769px) {
    .current-location-btn {
        display: none;
    }
}

/* 地図を完全に非表示 */
.map-container {
    display: none !important;
}

/* スマホ版でのレイアウト調整 */
@media (max-width: 768px) {
    .municipality-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
    }
}

/* Twitterリンクのスタイル */
.contact-social {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #8fbc8f;
}

.contact-social h3 {
    color: #2c5530;
    margin-bottom: 1rem;
    font-size: 1.2em;
}

.contact-social p {
    margin-bottom: 1rem;
    color: #666;
}

.social-link {
    display: inline-block;
}

.twitter-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #1da1f2;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(29, 161, 242, 0.3);
}

.twitter-link:hover {
    background: #0d8bd9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(29, 161, 242, 0.4);
    color: white;
    text-decoration: none;
}

.social-icon {
    font-size: 1.2em;
}

.social-text {
    font-size: 1em;
}

@media (max-width: 768px) {
    .twitter-link {
        padding: 0.6rem 1.2rem;
        font-size: 0.9em;
    }
}
