/* ============================================
   苫小牧市プレミアム付商品券 - スタイルシート
   ============================================ */

/* リセット・基本設定 */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* カラーパレット */
    --primary: #0066b3;
    --primary-dark: #004d86;
    --primary-light: #e6f2fa;
    --secondary: #f39800;
    --secondary-dark: #de7e00;
    --secondary-light: #fff6e6;
    --text: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --gray-light: #f5f5f5;
    --gray: #e0e0e0;
    --gray-dark: #999999;
    
    /* フォント */
    --font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
    
    /* サイズ */
    --header-height: 80px;
    --container-width: 1100px;
    --border-radius: 8px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
    background-color: var(--white);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

/* コンテナ */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* PC/SP表示切り替え */
.sp-only {
    display: none;
}

@media (max-width: 768px) {
    .sp-only {
        display: inline;
    }
    .pc-only {
        display: none;
    }
}

/* ============================================
   ヘッダー
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.site-title {
    font-size: 1.25rem;
    font-weight: bold;
    line-height: 1.4;
}

.site-title a {
    color: var(--primary);
}

.site-title a:hover {
    color: var(--primary-dark);
}

.nav-list {
    display: flex;
    gap: 40px;
}

.nav-list a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    padding: 10px 0;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.nav-list a.active {
    color: var(--primary);
}

/* モバイルメニューボタン */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--text);
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 20px;
    }
    
    .nav-list li {
        border-bottom: 1px solid var(--gray);
    }
    
    .nav-list a {
        display: block;
        padding: 15px 0;
    }
}

/* ============================================
   メインビジュアル（ヒーロー）
   ============================================ */
.hero {
    margin-top: var(--header-height);
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
}

.hero-label {
    display: inline-block;
    padding: 8px 24px;
    background-color: var(--secondary);
    color: var(--white);
    font-size: 1rem;
    font-weight: bold;
    border-radius: 30px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 20px;
}

.hero-text {
    font-size: 1.125rem;
    line-height: 1.8;
    opacity: 0.95;
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-text {
        font-size: 1rem;
    }
}

/* ============================================
   セクション共通
   ============================================ */
.section-title {
    font-size: 1.75rem;
    font-weight: bold;
    text-align: center;
    color: var(--primary);
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--secondary);
    border-radius: 2px;
}

.section-title-sub {
    font-size: 1.375rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 24px;
    padding-left: 16px;
    border-left: 4px solid var(--secondary);
}

/* ============================================
   お知らせ
   ============================================ */
.news {
    padding: 60px 0;
    background-color: var(--gray-light);
}

.news-list {
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    margin-bottom: 12px;
}

.news-date {
    font-size: 0.875rem;
    color: var(--text-light);
}

.news-tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 4px;
}

.news-tag.tag-business {
    background-color: var(--secondary);
}

.news-text {
    flex: 1;
    min-width: 200px;
}

@media (max-width: 768px) {
    .news-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================
   事業概要
   ============================================ */
.about {
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.about-box {
    padding: 30px;
    background-color: var(--gray-light);
    border-radius: var(--border-radius);
}

.about-heading {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 16px;
}

.about-text {
    font-size: 1rem;
    line-height: 1.9;
}

.about-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-list-item {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--gray);
}

.about-list-item dt {
    flex-shrink: 0;
    width: 100px;
    font-weight: bold;
    color: var(--text-light);
}

.about-list-item dd {
    font-size: 1.125rem;
    font-weight: 500;
}

.about-note {
    margin-top: 16px;
    font-size: 0.875rem;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .about-box {
        padding: 24px;
    }
}

/* ============================================
   リンクカード
   ============================================ */
.links {
    padding: 60px 0;
    background-color: var(--primary-light);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 700px;
    margin: 0 auto;
}

.link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 30px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.link-card-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.link-card-disabled:hover {
    transform: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.link-card-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-light);
    border-radius: 50%;
    margin-bottom: 20px;
    color: var(--primary);
}

.link-card-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--text);
    margin-bottom: 8px;
}

.link-card-text {
    font-size: 0.875rem;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .links-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .link-card {
        padding: 30px 20px;
    }
}

/* ============================================
   ページヘッダー（下層ページ）
   ============================================ */
.page-header {
    margin-top: var(--header-height);
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
}

.page-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 12px;
}

.page-description {
    font-size: 1rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .page-header {
        padding: 40px 0;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    .page-description {
        font-size: 0.9rem;
        opacity: 0.9;
    }
}

/* ============================================
   メインコンテンツ
   ============================================ */
.main {
    padding: 60px 0;
}

.section {
    margin-bottom: 60px;
}

.section:last-child {
    margin-bottom: 0;
}

/* コンテンツボックス */
.content-box {
    padding: 30px;
    background-color: var(--gray-light);
    border-radius: var(--border-radius);
}

.content-text {
    font-size: 1rem;
    line-height: 1.9;
    margin-bottom: 24px;
}

.content-heading {
    font-size: 1.125rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 16px;
}

.content-list {
    margin-left: 24px;
    margin-bottom: 20px;
}

.content-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    list-style: none;
}

.content-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
}

.content-note {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* ============================================
   ダウンロード
   ============================================ */
.download-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.download-card {
    padding: 30px;
    background-color: var(--white);
    border: 2px solid var(--gray);
    border-radius: var(--border-radius);
    text-align: center;
    transition: border-color 0.3s ease;
}

.download-card:hover {
    border-color: var(--primary);
}

.download-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-light);
    border-radius: 50%;
    margin: 0 auto 20px;
    color: var(--primary);
}

.download-title {
    font-size: 1.125rem;
    font-weight: bold;
    color: var(--text);
    margin-bottom: 8px;
}

.download-desc {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: var(--primary);
    color: var(--white);
    font-size: 0.875rem;
    font-weight: bold;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.download-btn:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}

.download-note {
    margin-top: 24px;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-light);
}
.download-hr {
    border: none;
    border-top: 1px solid var(--gray);
    margin: 40px 0 30px;
}

@media (max-width: 768px) {
    .download-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .download-card {
        padding: 24px;
    }
}

/* ============================================
   お問い合わせ
   ============================================ */
.contact-box {
    padding: 30px;
    background-color: var(--primary-light);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary);
}

.contact-org {
    font-size: 1.125rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 20px;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: baseline;
    gap: 16px;
}

.contact-item dt {
    flex-shrink: 0;
    width: 80px;
    font-weight: bold;
    color: var(--text-light);
}

.contact-item dd a {
    font-size: 1.25rem;
    font-weight: bold;
}

/* ============================================
   フッター
   ============================================ */
.footer {
    padding: 40px 0;
    background-color: var(--text);
    color: var(--white);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-org {
    font-size: 0.875rem;
}

.footer-contact {
    font-size: 0.875rem;
    text-align: right;
}

.footer-copy {
    font-size: 0.75rem;
    text-align: center;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 16px;
    }
    
    .footer-contact {
        text-align: left;
    }
}

/* ============================================
   ユーティリティ
   ============================================ */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* ============================================
   取扱店舗マップ
   ============================================ */

/* マップレイアウト */
.map-layout {
    display: flex;
    height: calc(100vh - var(--header-height) - 140px);
    min-height: 500px;
    position: relative;
}

/* フィルターサイドバー */
.map-sidebar {
    width: 320px;
    flex-shrink: 0;
    background-color: var(--white);
    border-right: 1px solid var(--gray);
    overflow-y: auto;
    padding: 20px;
}

.filter-header {
    margin-bottom: 16px;
}

.filter-title {
    font-size: 1.125rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 4px;
}

.filter-count {
    font-size: 0.875rem;
    color: var(--text-light);
}

.filter-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.filter-btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 0.8125rem;
    font-weight: 500;
    font-family: var(--font-family);
    color: var(--primary);
    background-color: var(--primary-light);
    border: 1px solid var(--primary);
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.filter-btn:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* フィルターグループ */
.filter-group {
    margin-bottom: 8px;
    border-bottom: 1px solid var(--gray);
    padding-bottom: 8px;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-category {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9375rem;
}

.filter-checkbox {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--primary);
    cursor: pointer;
}

.filter-color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

.filter-label-text {
    flex: 1;
}

.filter-count-badge {
    font-size: 0.75rem;
    color: var(--text-light);
    background-color: var(--gray-light);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: normal;
}

/* 詳細業種 */
.filter-subcategories {
    padding-left: 26px;
}

.filter-subcategory {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text);
}

/* マップコンテナ */
.map-container {
    flex: 1;
    min-width: 0;
    position: relative;
}

#map {
    width: 100%;
    height: 100%;
}

.map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-light);
    font-size: 0.9375rem;
}

/* モバイルフィルタートグル */
.filter-toggle {
    display: none;
    position: fixed;
    bottom: 15px;
    left: 20px;
    /*transform: translateX(-50%);*/
    z-index: 100;
    padding: 12px 24px;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 30px;
    font-size: 0.9375rem;
    font-weight: bold;
    font-family: var(--font-family);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
}

.filter-toggle:hover {
    background-color: var(--primary-dark);
}

.filter-toggle.active {
    background-color: var(--text);
}

/* InfoWindow スタイル */
.info-window {
    padding: 4px 0;
    max-width: 280px;
    font-family: var(--font-family);
    line-height: 1.6;
}

.info-window-name {
    font-size: 1rem;
    font-weight: bold;
    color: var(--text);
    margin-bottom: 6px;
}

.info-window-category {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.info-window-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.info-window-address,
.info-window-phone,
.info-window-ticket {
    font-size: 0.8125rem;
    color: var(--text);
    margin-bottom: 4px;
}

.info-window-aeon {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: bold;
    margin-top: 4px;
    padding: 2px 8px;
    background-color: var(--primary-light);
    border-radius: 4px;
    display: inline-block;
}

/* ピン上の件数バッジ */
.marker-badge {
    background-color: #e74c3c;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -3px;
    margin-top: -2px;
}

/* InfoWindow 共通 */
.info-window-detail {
    font-size: 0.8125rem;
    color: var(--text);
    margin-bottom: 3px;
}

/* 同一地点の店舗グループ */
.info-window-group {
    max-height: 260px;
    overflow-y: auto;
    margin: 8px 0;
}

.info-window-group-item {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.info-window-group-item:last-child {
    border-bottom: none;
}

.info-window-group-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9375rem;
    font-weight: bold;
    color: var(--text);
    margin-bottom: 2px;
}

.info-window-group-sub {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-left: 16px;
    margin-bottom: 1px;
}

/* モバイル「地図に戻る」ボタン */
.filter-close {
    display: none;
}

/* マップ レスポンシブ */
@media (max-width: 768px) {
    .filter-close {
        display: flex;
        align-items: center;
        gap: 6px;
        width: 100%;
        padding: 14px 20px;
        margin-bottom: 12px;
        background-color: var(--primary);
        color: var(--white);
        border: none;
        border-radius: var(--border-radius);
        font-size: 1rem;
        font-weight: bold;
        font-family: var(--font-family);
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

    .filter-close:hover {
        background-color: var(--primary-dark);
    }

    .filter-close-bottom {
        margin-top: 16px;
        margin-bottom: 0;
    }
    .map-layout {
        flex-direction: column;
        height: calc(100vh - var(--header-height) - 100px);
    }

    .map-sidebar {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        z-index: 500;
        transform: translateY(100%);
        transition: transform 0.3s ease;
        padding-top: 20px;
        padding-bottom: 80px;
    }

    .map-sidebar.active {
        transform: translateY(0);
    }

    .filter-toggle {
        display: flex;
    }

    .map-container {
        height: 100%;
    }
}

/* 画面右下固定ボタンのスタイル */
.fixed-nav-btn {
    /* 既存のスタイル */
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background-color: var(--secondary);
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.fixed-nav-btn:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-4px);
    color: #ffffff;
}
/* モバイル対応：少し小さく、位置を調整 */
@media (max-width: 768px) {
    .fixed-nav-btn {
        bottom: 15px;
        right: 20px;
        padding: 10px 15px;
        font-size: 0.875rem;
    }
}
