* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-padding-top: 100px;
    /* ヘッダーの高さ＋α */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #24292f;
    background: #f6f8fa;
    min-height: 100vh;
}

/* 固定ヘッダー */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid #d1d9e0;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 1px 3px rgba(36, 41, 47, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: #24292f;
    text-decoration: none;
    vertical-align: middle;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #656d76;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a:hover {
    color: #0969da;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #0969da;
    transition: width 0.2s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* メインコンテンツ */
.main-content {
    margin-top: 80px;
    padding: 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* お知らせセクション */
.notice-section {
    background: linear-gradient(135deg, #ffffff 0%, #ecf4f7 100%);
    border: 1px solid #f6feff;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(246, 233, 107, 0.2);
}

.notice-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #046b85;
    margin-bottom: 0.75rem;
}

.notice-content {
    margin: 0;
}

.notice-text {
    margin: 0;
    color: #045185;
    font-size: 0.95rem;
    line-height: 1.5;
}

.notice-date {
    font-weight: 600;
    color: #6c5ce7;
    margin-right: 0.5rem;
}

.notice-action {
    background: #fd79a8;
    color: white;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

.notice-link {
    color: #0969da;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.notice-link:hover {
    color: #0860ca;
    text-decoration: underline;
}

/* スライダー関連スタイル */
.slider-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: #f7fafc;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 10;
}

.slide-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: white;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.slide-link:hover .slide-overlay {
    transform: translateY(0);
}

.slide-overlay h3 {
    margin: 0 0 5px 0;
    font-size: 1.2em;
    font-weight: bold;
}

.slide-overlay p {
    margin: 0;
    font-size: 0.9em;
    opacity: 0.9;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #cbd5e0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #4299e1;
}

.dot:hover {
    background-color: #63b3ed;
}

.no-data {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #718096;
    font-size: 1.1em;
}

/* 検索セクション */
.search-section {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(36, 41, 47, 0.12);
    border: 1px solid #d1d9e0;
    padding: 2rem;
    margin: 2rem 0;
    
}

.search-container {
    text-align: center;
}

.search-container h2 {
    font-size: 1.5rem;
    color: #24292f;
    margin-bottom: 1rem;
    font-weight: 600;
}

.search-form {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center; 
}

.search-input-group {
    display: flex;
    gap: 0.5rem;
    width: 600px;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d9e0;
    border-radius: 6px;
    font-size: 1rem;
    background: #ffffff;
    color: #24292f;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #0969da;
    box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.1);
}

.search-button {
    padding: 0.75rem 1.5rem;
    background: #0969da;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-button:hover {
    background: #0860ca;
}

.search-info {
    color: #656d76;
    font-size: 0.9rem;
}

.search-info a {
    color: #0969da;
    text-decoration: none;
}

.search-info a:hover {
    text-decoration: underline;
}

/* 検索結果・アイテム一覧 */
.search-results,
.item-list {
    margin-top: 2rem;
}

.item {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(36, 41, 47, 0.12);
    border: 1px solid #d1d9e0;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1.5rem;
    transition: box-shadow 0.2s ease;
}

.item:hover {
    box-shadow: 0 3px 6px rgba(36, 41, 47, 0.15);
}

.item-image {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
    background: #f6f8fa;
}

.item-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.item-content {
    flex: 1;
    min-width: 0;
}

.item-content h2 {
    margin: 0 0 0.75rem 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.item-content h2 a {
    color: #24292f;
    text-decoration: none;
    transition: color 0.2s ease;
}

.item-content h2 a:hover {
    color: #0969da;
}

.tags {
    margin-bottom: 0.75rem;
    color: #656d76;
    font-size: 0.9rem;
}

.tag-link {
    display: inline-block;
    background: #f1f8ff;
    color: #0969da;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-decoration: none;
    margin-right: 0.5rem;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    transition: background-color 0.2s ease;
}

.tag-link:hover {
    background: #dbeafe;
}

.description {
    color: #656d76;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.item-info {
    color: #8b949e;
    font-size: 0.85rem;
}

.no-results {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(36, 41, 47, 0.12);
    border: 1px solid #d1d9e0;
    padding: 2rem;
    text-align: center;
    color: #656d76;
}

/* フッター情報セクション */
.footer-info {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(36, 41, 47, 0.12);
    border: 1px solid #d1d9e0;
    padding: 2.5rem;
    text-align: center;
}

.catchphrase {
    font-size: 1.4rem;
    color: #24292f;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.contact-info {
    color: #656d76;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

/* ソート・ページネーション（set-list.php用） */
.sort-controls {
    margin: 1rem 0;
    padding: 1rem;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #d1d9e0;
}

.sort-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    color: #656d76;
    text-decoration: none;
    border-radius: 4px;
    margin-right: 0.5rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sort-link:hover {
    background: #f6f8fa;
    color: #24292f;
}

.sort-link.active {
    background: #0969da;
    color: white;
}

.filter-info {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #d1d9e0;
}

.filter-info h1 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    color: #24292f;
}

.filter-info p {
    color: #656d76;
    margin: 0;
}

.filter-info a {
    color: #0969da;
    text-decoration: none;
}

.filter-info a:hover {
    text-decoration: underline;
}

.pagination {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #d1d9e0;
    text-align: center;
}

.pagination p {
    margin: 0.5rem 0;
    color: #656d76;
}

.pagination-links {
    margin-top: 1rem;
}

.pagination-links a,
.pagination-links strong {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    margin: 0 0.25rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.pagination-links a {
    color: #0969da;
    border: 1px solid #d1d9e0;
}

.pagination-links a:hover {
    background: #f6f8fa;
}

.pagination-links strong {
    background: #0969da;
    color: white;
    border: 1px solid #0969da;
}