/* モーダルオーバーレイ */
.simple2608-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 100000;
    color: #333;
    display: none;
}

.simple2608-modal-overlay.is-active {
    opacity: 1;
    visibility: visible;
    display: flex;
}

/* モーダル本体ボックス（見切れ防止・スクロール対応） */
.simple2608-modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 96%;
    max-width: 800px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;

    max-height: 85vh;
    overflow-y: auto;
}

.simple2608-modal-overlay.is-active .simple2608-modal-content {
    transform: translateY(0);
}

/* 閉じるボタン（右上固定） */
.simple2608-close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #d3d3d3;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #101010;
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    z-index: 10;
}
.simple2608-close-btn:hover {
    color: #000;
    background-color: #f1f1f1;
}

/* --- アコーディオンのスタイル（修正版） --- */
.simple2608-accordion {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px; /* アコーディオンアイテム同士の隙間 */
}

.simple2608-accordion-item {
    border: 1px solid #bfbfbf; /* 全体を囲う枠線 */
    border-radius: 6px;     /* 角丸 */
    background: #ffffff;    /* 白背景 */
    overflow: hidden;       /* 角からはみ出た部分を隠す */
}

.simple2608-accordion-header {
    color:#333;
    width: 100%;
    padding: 14px 15px;
    background: #ffffff;    /* ヘッダーも白背景 */
    border: none;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    
    /* タイトルをセンターにする設定 */
    display: flex;
    justify-content: center; /* 横方向の中央揃え */
    align-items: center;     /* 縦方向の中央揃え */
    position: relative;      /* アイコンを右側に絶対配置するための基準 */
    
    transition: background 0.2s;
}

.simple2608-accordion-header:hover {
    background: #fff; /* ホバー時にうっすら色を変える */
}

.simple2608-icon {
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
    transform: rotate(90deg);
    transition: transform 0.3s ease;
    
    /* タイトルを完全に中央にしつつ、アイコンを右端に配置するテクニック */
    position: absolute;
    right: 15px;
}

/* 開いたときのアイコンの回転（下向きから上向きへ） */
.simple2608-accordion-item.is-open .simple2608-icon {
    transform: rotate(270deg);
}

.simple2608-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: #ffffff;
    padding: 0 15px;
    border-top: 1px solid transparent; /* 開いたときの境界線用 */
}

/* 開いたときのボディの高さとパディング */
.simple2608-accordion-item.is-open .simple2608-accordion-body {
    max-height: 500px;
    padding: 15px;
    border-top: 1px solid #eee; /* 開いたときにヘッダーとの間に薄い線を入れる */
    overflow:auto;
}