/* 事例詳細ページ用スタイル */

@import url("https://fonts.googleapis.com/earlyaccess/notosansjp.css");

body {
    /*font-family: "Noto Sans JP", sans-serif;*/
    font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", "メイリオ", Meiryo, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
}

.site-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.6rem 3.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

.case-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 9rem 0 3.2rem
}

.case-header {
/*    margin-bottom: 3rem;*/
    margin-bottom: 4.8rem;
}

.case-title {
    font-size: 4.0rem;
    font-weight: 700;
    margin-bottom: 1.6rem;
    color: #0056b3;
}

.case-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.4rem;
}

.case-industry {
    background-color: #0056b3;
    color: white;
    padding: 0.48rem 1.6rem;
    border-radius: 4px;
    font-weight: 500;
}

.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.case-tag {
    background-color: #f0f0f0;
    padding: 0.48rem 1.28rem;
    border-radius: 4px;
    font-size: 1.44rem;
}

.case-hero {
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    aspect-ratio: 9 / 4;
    object-position: top;
}

.case-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3.2rem;
}

.case-description {
    line-height: 1.8;
}

.case-description h2 {
    font-size: 2.88rem;
    color: #0056b3;
    margin: 3rem 0 1.6rem;
    font-weight: 700;
}

.case-description h3 {
    font-size: 2.4rem;
    color: #0056b3;
    margin: 2.4rem 0 1.28rem;
    font-weight: 700;
}

.case-description p {
    margin-bottom: 2.4rem;
}

.case-description ul {
    margin-bottom: 2.4rem;
    padding-left: 2.4rem;
}

.case-description li {
    list-style-type: disc;
    margin-bottom: 0.8rem;
}

.case-sidebar {
    background-color: #f8f9fa;
    padding: 3.2rem 2.4rem;
    border-radius: 8px;
    height: fit-content;
}

.sidebar-section {
    margin-bottom: 3.2rem;
}

.sidebar-section h3 {
    font-size: 2.08rem;
    margin-bottom: 1.6rem;
    color: #0056b3;
    font-weight: 700;
}

.sidebar-section ul {
    padding-left: 2.4rem;
}

.sidebar-section li {
    list-style-type: disc;
    margin-bottom: 0.8rem;
}

.related-cases {
    margin-top: 6.4rem;
}

.related-cases h2 {
    font-size: 2.88rem;
    margin-bottom: 2.4rem;
    color: #0056b3;
    font-weight: 700;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3.2rem;
}

.related-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.related-image {
    height: 200px;
}

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

.related-content {
    padding: 2.4rem;
}

.related-content h3 {
    font-size: 2.08rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.related-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.6rem;
}

.related-tags span {
    background-color: #f0f0f0;
    padding: 0.32rem 0.96rem;
    border-radius: 4px;
    font-size: 1.28rem;
}

.back-to-cases {
    display: inline-block;
    margin-top: 4.8rem;
    padding: 1.28rem 2.4rem;
    background-color: #0056b3;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

a.back-to-cases:visited,
a.back-to-cases:link{
    color: #fff;
}

.back-to-cases:hover {
    background-color: #003d82;
}

/* サイトフッタースタイル */
.site-footer {
    background-color: #333;
    color: #fff;
    padding: 4.8rem 0;
    margin-top: 6.4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
/*    padding: 0 2rem;*/
    padding: 0 3.2rem;
    display: flex;
    flex-direction: column;
}

.footer-logo {
/*    margin-bottom: 2rem;*/
margin-bottom: 3.2rem;
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
}

.footer-info {
    max-width: 400px;
}

.footer-info p {
/*    margin-bottom: 0.5rem;
    font-size: 0.9rem;*/
    margin-bottom: 0.8rem;
    font-size: 1.44rem;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .case-content {
        grid-template-columns: 1fr;
    }

    .case-title{
    font-size: 2.88rem;
}
.case-description h2{
    font-size: 1.92rem;
    margin: 3rem 0 1.2rem;
}

.slick-prev, .slick-next{
    width: 40px;
    height: 40px;
}
.slick-prev:before, .slick-next:before{
    width: 12px;
    height: 12px;
}
.slick-dots li button:before{
    font-size: 10px;
}
.case-sidebar{
    padding: 3.2rem 0;
}

    .footer-content {
        flex-direction: column;
        gap: 3.2rem;
    }
    
    .header-container {
        padding: 1.6rem;
    }
    
    .case-detail-container {
        padding: 7rem 2.4rem 2.4rem;
    }
}

/* 画像ギャラリー */
.image-gallery {
    margin: 3.2rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
    margin-top: 1.6rem;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* フェードイン効果 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 引用ブロック */
blockquote {
    font-style: italic;
    margin: 3.2rem 0;
    padding: 1.6rem 3.2rem;
    border-left: 4px solid #0056b3;
    background-color: #f0f8ff;
}

blockquote p:last-child {
    margin-bottom: 0;
}

/* 装飾ラベル */
.label {
    display: inline-block;
    padding: 0.32rem 1.28rem;
    border-radius: 4px;
    font-size: 1.44rem;
    font-weight: 500;
    margin-right: 0.8rem;
}

.label-new {
    background-color: #e3342f;
    color: white;
}

.label-featured {
    background-color: #f6993f;
    color: white;
}

/* プロジェクト情報テーブル */
.project-info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6rem 0 3.2rem;
}

.project-info-table th,
.project-info-table td {
    padding: 1.44rem;
    border-bottom: 1px solid #e0e0e0;
}

.project-info-table th {
    text-align: left;
    width: 30%;
    color: #0056b3;
    font-weight: 500;
}

/* 関連リンク */
.related-links {
    margin-top: 3.2rem;
}

.related-links ul {
    list-style: none;
    padding: 0;
}

.related-links li {
    margin-bottom: 1.28rem;
}

.related-links a {
    color: #0056b3;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.related-links a:hover {
    text-decoration: underline;
}

.related-links a:before {
    content: "→";
    margin-right: 0.8rem;
    font-weight: bold;
}
