@charset "UTF-8";

:root{
    --bg-color: #f8f8f8;
    --base-color: #ffffff;
    --main-color: #007bff;
    --main-color-hover: #0056b3;
    --accent-color: ;
    --text-color: #333;
}

body {
    font-family:sans-serif;
    margin:0;
    background:#f8f8f8;
}

h2 {
    color: #333;
    font-size: 2.5em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--main-color);
}

header {
    display:block;
    position: relative;
    top: 0;
    background: linear-gradient(135deg,#667eea 0%, #764ba2 100%);
    color: white; padding: 120px 20px;
    text-align: center;
}
h1 {
    font-size: 3em; margin: 0;
}
header p {
    font-size: 1.2em; margin: 20px 0;
}

footer {
    display: block;
    position: relative;
    bottom: 0;
    background: linear-gradient(135deg,#667eea 0%, #764ba2 100%);
    color: white; padding: 60px 20px;
    text-align: center;
}
footer p {
    margin: 2px 0;
}

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


.section-title {
    font-size: 2em;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

.section-block {
    width:90%;
    max-width: 800px;
    margin: 10px auto;

}

.section-cell {
    background-color: var(--base-color);
    border-radius:10px;
    margin: 10px 0;
    padding: 20px;
}

.section-content {
    color: #444;
    line-height: 1.8;
    margin-bottom: 15px;
}

.section-content {
    color: #444;
    line-height: 1.8;
    margin-bottom: 15px;
}
.section-content p{
    padding: 0 20px;
}

.note{
    font-size: 0.9em;
    color: #666;
    text-align: right;
}

/* トップページなどの遷移ボタン */
.more-link { text-align: center; margin-top: 30px; }
.more-link a { 
    display: inline-block; 
    padding: 15px 40px; 
    background: #007bff; 
    color: white; 
    text-decoration: none; 
    border-radius: 5px; 
    font-weight: bold; 
}
.more-link a:hover { background: #0056b3; }

/* タグボタンのスタイル */
.tag-section { margin: 30px 0; text-align: center; }
.tag-section h3 { color: #333; margin-bottom: 15px; }
.tag-info { 
    font-size: 14px; 
    color: #666; 
    margin-bottom: 10px; 
}
.tag-info .selected-count {
    color: #007bff;
    font-weight: bold;
}
.tag-buttons { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 10px; 
    justify-content: center; 
    max-width: 900px; 
    margin: 0 auto; 
}

.tag-btn.all.active {
    background: #6c757d;
    color: white;
}

/* タグボタン（ラベル） */
.tag-btn-wrapper {
    position: relative;
}
.tag-btn-wrapper input[type="checkbox"] {
    display: none; /* チェックボックスを隠す */
}
.tag-btn { 
    padding: 8px 16px; 
    background: #fff; 
    border: 2px solid #007bff; 
    color: #007bff; 
    border-radius: 20px; 
    cursor: pointer; 
    font-size: 14px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    user-select: none;
}
.tag-btn:hover { 
    background: #e7f3ff; 
    transform: translateY(-2px);
}

/* チェックされた状態 */
.tag-btn-wrapper input[type="checkbox"]:checked + .tag-btn { 
    background: #007bff; 
    color: white; 
    box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}
.tag-btn .count { 
    background: rgba(0,123,255,0.2); 
    padding: 2px 8px; 
    border-radius: 10px; 
    font-size: 12px;
}
.tag-btn-wrapper input[type="checkbox"]:checked + .tag-btn .count {
    background: rgba(255,255,255,0.5);
}

/* 「すべて」ボタン */
.tag-btn.all { 
    border-color: #6c757d; 
    color: #6c757d; 
}
.tag-btn.all:hover { 
    background: #e9ecef; 
}
.tag-btn-wrapper input[type="checkbox"]:checked + .tag-btn.all { 
    background: #6c757d; 
    color: white; 
}

/* レスポンシブ */
@media (max-width: 480px) {
    .hero h1 { font-size: 2em; }
    .slider-card { flex: 0 0 250px; }
    @keyframes scroll {
        100% { transform: translateX(calc(-250px * 5 - 150px)); }
    }

    .modal-content{ 
    padding:20px; 
    width:98%;
    height: fit-content;
    max-height:150vh; 
    }

    #modal-container{
    flex-direction: column;
    }
}