:root {
    --primary-color: #df6011;
    --secondary-color: #1f1f1f;
    --background-color: #ffffff;
    --surface-color: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --border-color: #e6e6e6;
    --hover-color: #f0f0f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
    background-color: var(--surface-color);
    color: var(--text-primary);
    line-height: 1.6;
}

/* ヘッダー */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--background-color);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.main-nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover {
    background-color: var(--hover-color);
    color: var(--text-primary);
}

.nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

/* メインコンテンツ */
.main-content {
    margin-top: 60px;
    min-height: calc(100vh - 60px);
}

.content-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    padding: 32px 24px;
}

/* フィルターバー */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px 0;
}

.result-count {
    font-size: 14px;
    color: var(--text-secondary);
}

.result-count span {
    font-weight: 700;
    color: var(--text-primary);
}

.sort-select {
    padding: 8px 32px 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    background-color: white;
    cursor: pointer;
    outline: none;
}

/* ギャラリーグリッド */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.gallery-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.item-image {
    position: relative;
    width: 100%;
    padding-bottom: 140%;
    overflow: hidden;
    background-color: var(--surface-color);
}

.multi-page-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
}

.item-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 16px;
}

.gallery-item:hover .item-overlay {
    opacity: 1;
}

.overlay-info {
    width: 100%;
    color: white;
}

.overlay-title {
    display: block;
    font-size: 16px;
    font-weight: 600;
}

.item-footer {
    padding: 12px 16px;
}

.item-title {
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* モーダル */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.2s ease;
}

.modal-close:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-body {
    display: flex;
    height: 85vh;
}

.modal-image-section {
    flex: 1;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.modal-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image-section img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.modal-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.modal-nav-btn:disabled:hover {
    transform: translateY(-50%) scale(1);
}

.modal-prev {
    left: 16px;
}

.modal-next {
    right: 16px;
}

.modal-page-indicator {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    z-index: 5;
}

.modal-info-section {
    width: 400px;
    padding: 32px;
    overflow-y: auto;
    background-color: white;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}

.modal-description h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.modal-description p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}

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

.tag {
    padding: 6px 12px;
    background-color: var(--surface-color);
    border-radius: 16px;
    font-size: 12px;
    color: var(--primary-color);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

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

/* ローディングインジケーター */
.loading-indicator {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.loading-indicator i {
    font-size: 32px;
    margin-bottom: 12px;
}

.loading-indicator span {
    display: block;
    font-size: 14px;
}

/* レスポンシブ対応 */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }

    .modal-body {
        flex-direction: column;
    }

    .modal-image-section {
        height: 60vh;
    }

    .modal-info-section {
        width: 100%;
        height: 25vh;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 16px;
    }

    .header-left {
        gap: 16px;
    }

    .main-nav {
        display: none;
    }

    .search-box {
        width: 200px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }

    .content-wrapper {
        padding: 24px 16px;
    }

    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .modal-info-section {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .search-box {
        width: 160px;
    }

    .search-box input {
        font-size: 12px;
        padding: 8px 32px 8px 12px;
    }

    .item-footer {
        padding: 10px 12px;
    }

    .item-title {
        font-size: 13px;
    }
}



.st1
{
  font-family : Noto Sans JP;
  font-weight : bold;
  font-size : 70px;
  color : hwb(62 0% 12%);
  color : rgb(218, 224, 0);
}
.st
{
  font-family : Noto Sans JP;
  font-size : 15px;
  color : #000000;
  color : rgb(0, 0, 0);
}

.case{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 50px;
  background:#fff;
  position: relative;
  /* background: red !important; */
}
@media (min-width: 1024px){
  .case{
    max-width: 1600px;
    margin: 0 auto; /* ←中央寄せ */
    padding: 32px 24px; /* ←content-wrapperと揃える */ 
    width: 100%;
  }
}


/* 左 */
.case__left{
  display:flex;
  flex-direction:column;
  justify-content:center;
}



/* 右：画像 */
.case__right{
  display:flex;
  justify-content:center;
  align-items:center;
}

.case__right img{
  width: 100%;
  max-width: 340px;   /* イラストの実サイズに合わせて調整 */
  height: auto;
  display:block;
}



/* スマホ */
@media (max-width: 768px){
  .case{
    grid-template-columns: 1fr;
  }
  .case::after{
    display:none;
  }
}


.case{
  padding: 16px;
}

@media (min-width: 1024px){
  .case{
    max-width: 1100px;   /* 好みで 960〜1200くらい */
    margin: 0 auto;      /* 中央寄せ */
    padding: 32px 48px;  /* PC時の内側余白 */
  }
}
