/* ==================
   ボタンデザイン
   ================== */
.stylish-button {
    padding: 10px 15px; /* 小さくしたいなら5px 10px程度に */
    font-size: 15px;   /* 小さく調整 */
    font-weight: bold;
    border-radius: 20px; /* 50px→20pxで少しコンパクト */
    color: white;
    text-transform: uppercase;
    background: linear-gradient(135deg, #12c2e9, #f64f59);
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stylish-button:hover {
    background: linear-gradient(135deg, #f64f59, #12c2e9);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.stylish-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 300%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: skewX(-45deg);
    transition: all 0.5s ease;
}

.stylish-button:hover:before {
    left: 100%;
}

.stylish-button:active {
    transform: translateY(2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

/* ハイライト */
.highlight {
    color: red;
    font-weight: bold;
}

/* ボタン配置 */
.custom-buttons {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin: -15px 0;
}

/* ==================
   モーダル全体
   ================== */
.custom-modal-container {
    position: relative;
    margin-bottom: 20px;
}
   
.myModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 5%;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow: auto;
}

.myModal.show {
    display: flex;
}

.modal-content {
    background-color: #fff;
    margin: 0 auto 0% auto; /* 上: 0%, 左右: auto, 下: 10% */
    padding: 0px;
    border-radius: 10px;
    text-align: center;
    max-width: 500px;
    border: 1px solid #888;
    height: 80vh;
    overflow-y: auto;
    box-sizing: border-box;
}

.modal-content img {
    max-width: 100%;
    height: auto;
    margin-bottom: 0px;
}

/* ==================
   カード表示
   ================== */
.specific-row {
    margin: 20px 0;
    padding: 10px;
    background: linear-gradient(135deg, #f0f8ff, #e6efff);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 10px;
}

.card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 16px;
    width: calc(33.333% - 16px);
    box-sizing: border-box;
    transition: transform 0.3s ease-in-out;
    cursor:pointer;
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
}

.card:hover {
    transform:scale(1.05);
    box-shadow:0 4px 12px rgba(0,0,0,0.15);
}

.card-key {
    font-weight: bold;
    color: #555;
    margin-bottom: 8px;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal; 
}

.card-value {
    color: #333;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal; 
}

/* dynamic-modal用スタイル */
.dynamic-modal {
    display: block;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width:100%;
    height:100%;
    background-color: rgba(0,0,0,0.5);
    justify-content:center;
    align-items:center;
}

.dynamic-modal .modal-content {
    background-color:#fff;
    margin:10% auto;
    padding:20px;
    border-radius:10px;
    max-width:500px;
    text-align:center;
    box-shadow:0 4px 10px rgba(0,0,0,0.2);
}

/* ==================
   モーダル内ボタン
   ================== */
.modal-buttons {
    display:flex;
    justify-content:center;
    align-items:center;
    gap:80px;
    margin-top:10px;
}

.modal-button {
    padding:10px 50px;
    font-size:15px;
    border-radius:20px;
    background: linear-gradient(135deg,#6a11cb,#2575fc);
    color:white;
    border:none;
    cursor:pointer;
    transition: all 0.3s ease;
    box-shadow:0 5px 15px rgba(0,0,0,0.2);
}

.modal-button:hover {
    background:linear-gradient(135deg,#2575fc,#6a11cb);
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(0,0,0,0.3);
}

.modal-button:active {
    transform:scale(0.95);
}

.closeModal {
    padding:5px 50px;
    font-size:12px;
    border-radius:20px;
    background-color:red;
    color:white;
    border:none;
    cursor:pointer;
    transition:background 0.3s ease;
}

.closeModal:hover {
    background-color:darkred;
}

/* ==================
   アコーディオン
   ================== */
.custom-accordion {
    max-width:800px;
    margin:20px auto;
    border:1px solid #ddd;
    border-radius:8px;
    overflow:hidden;
    background-color:#f9f9f9;
    box-shadow:0 4px 10px rgba(0,0,0,0.1);
}

.accordion-item {
    border-bottom:1px solid #ddd;
}

.accordion-item:last-child {
    border-bottom:none;
}

.accordion-button {
    width:100%;
    padding:12px 15px;
    font-size:14px;
    font-weight:bold;
    text-align:left;
    background:linear-gradient(135deg,#f093fb,#f5576c);
    color:white;
    border:none;
    outline:none;
    cursor:pointer;
    transition:all 0.3s ease;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.accordion-button:hover {
    background:linear-gradient(135deg,#f5576c,#f093fb);
}

.accordion-button:after {
    content:'+';
    font-size:14px;
    transition:transform 0.3s ease;
}

.accordion-button.active:after {
    content:'-';
    transform:rotate(180deg);
}

.accordion-content {
    display:none;
    padding:12px 15px;
    background-color:white;
    color:#333;
    font-size:12px;
    line-height:1.6;
    animation:slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity:0;
        transform:translateY(-10px);
    }
    to {
        opacity:1;
        transform:translateY(0);
    }
}

/* ==================
   レスポンシブ対応
   ================== */
@media (max-width:768px) {
    /* スマホ時 モーダル閉じ時はDATAボタンだけ表示 */
    .custom-buttons .stylish-button:not(:first-child) {
        display:none;
    }

    .stylish-button {
        font-size:12px;
        padding:5px 10px;
    }

    .custom-buttons {
        flex-direction:column;
        align-items:center;
        gap:10px;
    }
}

@media (max-width:480px) {
    .stylish-button {
        height:auto;
        line-height:normal;
        font-size:12px;
        border-radius:15px;
        padding:5px 10px;
    }

    .modal-buttons {
        display:flex;
        flex-wrap:wrap;
        justify-content:center;
        gap:10px;
    }

    .modal-button,.closeModal {
        flex: 1 1 auto;
        max-width:100%;
        padding:5px 10px;
        font-size:12px;
    }

    .accordion-button {
        font-size:12px;
        padding:8px 10px;
    }

    .accordion-content {
        font-size:12px;
        padding:8px;
    }
}

/* ==================
   フィルターデザイン
   ================== */
.filter-container {
    margin-bottom:10px;
    padding:10px;
    background:#f2f2f2;
    border-radius:8px;
    text-align:left;
    font-size:14px;
    border:1px solid #ccc;
}

.filter-title {
    font-size:15px;
    font-weight:bold;
    margin-bottom:10px;
}

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

.filter-checkboxes label {
    background:#fff;
    padding:3px 8px;
    border-radius:5px;
    box-shadow:0 1px 2px rgba(0,0,0,0.1);
    cursor:pointer;
}

.filter-checkboxes label:hover {
    background:#e9e9e9;
}

.apply-filter-button, .select-all-button, .clear-all-button {
    background: linear-gradient(135deg, #12c2e9, #f64f59);
    color:white;
    font-size:12px;
    padding:5px 10px;
    border:none;
    border-radius:20px;
    cursor:pointer;
    transition:all 0.4s ease;
    text-transform:uppercase;
    text-align:center;

}

.select-all-button {
    width: 80px;
    height: 40px;
    font-size:8px;
    padding:2px 5px;
}

.clear-all-button {
    width: 80px;
    height:40px;
    font-size:8px;
    padding:2px 5px;
}

.apply-filter-button {
    width:80px;
    height:40px;
    font-size:8px;
    padding:2px 5px;
}

.apply-filter-button:hover, .select-all-button:hover, .clear-all-button:hover {
    background:linear-gradient(135deg,#f64f59,#12c2e9);
    transform:translateY(-2px);
    box-shadow:0 10px 20px rgba(0,0,0,0.3);
}

.apply-filter-button:active, .select-all-button:active, .clear-all-button:active {
    transform:translateY(2px);
}

.filter-actions {
    display:flex; 
    flex-wrap:wrap; 
    gap:10px;
    align-items:center;
    justify-content:flex-start;
}

.filter-actions button {
    width:auto; 
    padding:5px 10px; 
    font-size:12px;
    text-align:center;
}

@media (max-width:480px) {
  /*  .filter-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-actions button {
        width:100%;
    }*/
}

/* ==================
   スライダー用CSS
   ================== */
.data-slider {
    white-space: nowrap;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.data-page {
    display: inline-block;
    vertical-align: top;
    width: 100%;
    box-sizing: border-box;
    padding:10px;
}

.slider-nav {
    display:flex;
    justify-content:space-between;
    margin-top:10px;
}

.slider-nav button {
    padding:5px 10px;
    font-size:12px;
    border:none;
    border-radius:20px;
    background: linear-gradient(135deg, #12c2e9, #f64f59);
    color:white;
    cursor:pointer;
    transition:all 0.4s ease;
}

.slider-prev {
    width:80px;
    height:60px;
    font-size:12px;
    padding:5px;
}

.slider-next {
    width:80px;
    height:60px;
    font-size:12px;
    padding:5px;
}

.slider-nav button:hover {
    background:linear-gradient(135deg,#f64f59,#12c2e9);
    transform:translateY(-2px);
    box-shadow:0 10px 20px rgba(0,0,0,0.3);
}

/* 元コードのまま。必要なら.card.selectedの見た目強調 */
.card.selected {
    border: 2px solid red;
}
