/* 基本スタイル */
:root {
    --primary: #004D85;
    --secondary: #34B5E5;
    --accent: #FF7F50;
    --light: #F7FAFC;
    --dark: #2D3748;
    --gray: #CBD5E0;
    --success: #48BB78;
    --danger: #E53E3E;
    --warning: #F6AD55;

    --government: #004D85;
    --education: #48BB78;
    --tourism: #F6AD55;
    --disaster: #E53E3E;
    --business: #805AD5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: #F8F9FA;
}

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

a {
    text-decoration: none;
    color: var(--primary);
}

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

/* ヘッダー */
.site-header {
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
}

.logo img {
    height: 40px;
}

/* ヒーローセクション */
.hero {
    background-image: linear-gradient(rgba(0, 77, 133, 0.8), rgba(0, 77, 133, 0.8)), url('https://www.hcc.co.jp/assets/images/main_visual.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.hero h1 {
    /*font-size: 2.5rem;*/
    font-size: 4.0rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
/*    font-size: 1.2rem;*/
    font-size: 1.92rem;
    max-width: 600px;
    margin: 0 auto;
}

/* フィルターセクション */
.case-filters {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    margin-top: -50px;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.case-filters h2 {
/*    font-size: 1.8rem;*/
    font-size: 2.88rem;
    margin-bottom: 20px;
    text-align: center;
    color: var(--primary);
}

.case-filters h3 {
/*    font-size: 1.2rem;*/
    font-size: 1.92rem;
    margin-bottom: 15px;
    color: var(--dark);
    font-weight: 500;
}

.industry-filters, .tag-filters {
    margin-bottom: 30px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-buttons button {
    background-color: var(--light);
    border: 1px solid var(--gray);
    border-radius: 20px;
    padding: 8px 16px;
/*    font-size: 0.9rem;*/
    font-size: 1.44rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-buttons button:hover {
    background-color: #E2E8F0;
}

.filter-buttons button.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background-color: var(--light);
    border: 1px solid var(--gray);
    border-radius: 20px;
    padding: 5px 12px;
/*    font-size: 0.85rem;*/
    font-size: 1.36rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag:hover {
    background-color: #E2E8F0;
}

.tag.active {
    background-color: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

.active-filters {
    margin-top: 20px;
}

.active-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.clear-all {
    background: none;
    border: none;
    color: var(--primary);
/*    font-size: 0.9rem;*/
    font-size: 1.44rem;
    cursor: pointer;
    text-decoration: underline;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tag {
    background-color: var(--light);
    border-radius: 16px;
    padding: 4px 12px;
/*    font-size: 0.85rem;*/
    font-size: 1.36rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.filter-tag .remove {
    cursor: pointer;
    color: var(--dark);
    font-weight: bold;
}

/* 事例グリッド */
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.case-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-image {
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-card:hover .card-image img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.case-card:hover .card-overlay {
    opacity: 1;
}

.view-case {
    color: white;
    background-color: var(--primary);
    padding: 8px 16px;
    border-radius: 4px;
/*    font-size: 0.9rem;*/
    font-size: 1.44rem;
}

.card-content {
    padding: 20px;
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    margin-bottom: 10px;
/*    font-size: 1.2rem;*/
    font-size:1.92rem;
    color: var(--dark);
}

.card-content .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 15px;
}

.card-content .tags span {
    background-color: var(--light);
    color: var(--primary);
    padding: 3px 8px;
    border-radius: 4px;
/*    font-size: 0.75rem;*/
    font-size: 1.2rem;
}

.card-content .summary {
/*    font-size: 0.9rem;*/
    font-size: 1.44rem;
    color: var(--dark);
    margin-bottom: 40px;
    flex-grow: 1;
}

.industry-icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
/*    font-size: 0.75rem;*/
    font-size: 1.2rem;
    border-radius: 4px;
    padding: 3px 8px;
    color: white;
}

.industry-icon.government {
    background-color: var(--government);
}

.industry-icon.education {
    background-color: var(--education);
}

.industry-icon.tourism {
    background-color: var(--tourism);
}

.industry-icon.disaster {
    background-color: var(--disaster);
}

.industry-icon.business {
    background-color: var(--business);
}

/* マップビュー */
.map-view {
    margin-bottom: 80px;
}

.map-view h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
    color: var(--primary);
}

.coming-soon {
/*    font-size: 1rem;*/
    font-size: 1.6rem;
    color: var(--secondary);
    font-weight: normal;
}

.map-placeholder {
    position: relative;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 77, 133, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 20px;
}

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

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
}

.copyright {
    margin-top: 30px;
/*    font-size: 0.9rem;*/
    font-size: 1.44rem;
    opacity: 0.8;
}

/* スライダー */

.slider-container{
    max-width:768px;
    margin: 0 auto;
   }

.slick-prev, .slick-next{
 width: 60px;
 height: 60px;
 border-radius: 50%;
 background-color: #0056b3;
 z-index: 1;
}
.slick-prev:hover,
.slick-prev:focus,
.slick-next:hover,
.slick-next:focus{
 opacity: 0.7;
 background-color: #0056b3;
}
.slick-prev:before, .slick-next:before{
 content: "";
 display: block;
 width: 20px;
 height: 20px;
}
.slick-prev:before{
 border-style: solid;
 border-width: 4px 0 0 4px;
 border-color: #fff transparent transparent #fff;
 transform: rotate(-45deg) translate(60%, 60%);
}
.slick-next:before{
 border-style: solid;
 border-width: 4px 4px 0 0;
 border-color: #fff #fff transparent transparent;
 transform: rotate(45deg) translate(40%, -40%);
}
.slide_img{
 display: block;
 position: relative;
 width: 100%;
 height: auto;
}
.slide_img img{
 display: block;
 z-index: 0;
}
.slide_img figcaption{
 display: block;
 width: 100%;/* 75% */
 padding: 10px 0;/* 20px 0 */
 text-align: center;
 font-weight: bold;
 font-size: 1.6rem;
 position: absolute;
 top: 90%;/* 50% */
 left: 50%;
 z-index: 1;
 transform: translate(-50%, -50%);
 background-color: rgba(255,255,255,0.8);
}
.slide_img figcaption span{
 display: none;
}
.slick-dots{
bottom: -32px;
}

.slick-dots li button:before{
	font-size: 16px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .hero {
        padding: 60px 20px;
    }

    .hero h1 {
/*        font-size: 2rem;*/
    font-size: 3.2rem;
    }

    .case-filters {
        margin-top: -30px;
        padding: 20px;
    }

    .filter-buttons {
        justify-content: center;
    }

    .case-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .slider-container{
        max-width: calc(100vw - 70px);
    }
    
}

@media (max-width: 576px) {
    .hero h1 {
/*        font-size: 1.8rem;*/
        font-size: 2.88rem;
    }

    .hero p {
/*        font-size: 1rem;*/
        font-size: 1.6rem;
    }

    .case-filters h2 {
/*        font-size: 1.5rem;*/
        font-size: 2.4rem;
    }

    .case-grid {
        grid-template-columns: 1fr;
    }

    .card-content .summary {
        min-height: auto;
    }
}
