@charset "UTF-8";
/* CSS Document */

body { margin-left: 0px; margin-top: 0px; }
#top_div { width: 100%; padding: 5px; background-color: aqua; font-size: 12px; }
#menu_div { width: 600px; background-color: aqua; font-size: 12px; padding: 5px; }

.text_black12 { font-size: 12px; }
.text_red12 { font-size: 12px; color: #F00;}
.text_bule12 { font-size: 12px; color: #00F;}

/* 画像一覧グリッド */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 225px);
    gap: 12px;
}

/* 画像カード */
.image-box {
    border: 1px solid #000;
    padding: 6px;
    background: #fff;
}

/* 画像表示エリアを固定 */
.image-box .img-wrap {
    width: 100%;
    height: 140px;          /* ← 見た目だけ固定 */
    background: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 実画像は縮小表示のみ */
.image-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;    /* ← 切らない・潰さない */
}



/*     */
.side-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    margin-bottom: 5px;
}

.menu-title {
    width: 100%;
    text-align: left;
    padding: 8px;
    border: 1px solid #ccc;
    background: #f0f0f0;
    cursor: pointer;
    font-size: 12px;
}

.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;      /* 最初は非表示 */
}

.submenu li a {
    display: block;
    padding: 6px 8px 6px 16px;
    font-size: 12px;
    text-decoration: none;
    border: 1px solid #eee;
    border-top: none;
    background: #ffffff;
}

.submenu li a:hover {
    background: #e0f7ff;
}

/* 開いているときのクラス */
.submenu.open {
    display: block;
}

textarea, input {
    padding: 6px;
    border: 1px solid #888;
    border-radius: 3px;
}
textarea:focus, input:focus {
    outline: none;
    border-color: #4a90e2;
    background: #fffef2;
}

.editable {
    display: block;
    width: 100%;
    cursor: pointer;
}

.editable textarea,
.editable input {
    width: 100%;
    box-sizing: border-box;
}

.editable {
    display: block;
    width: 100%;
}

/* 成功フラッシュ */
.flash-success {
    animation: flashGreen 1s ease;
}
@keyframes flashGreen {
    0%   { background-color: #b9f6ca; }
    100% { background-color: #FEFFE1; }
}

/* トースト */
.toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: #333;
    color: #fff;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 12px;
    opacity: 0;
    transform: translateY(10px);
    transition: all .3s ease;
    z-index: 9999;
}
.toast.show {
    opacity: 1;
    transform: translateY(0);
}
.toast.success { background: #2e7d32; }
.toast.error   { background: #c62828; }

.news-detail { width: 100%; text-align: center; background-color: #FFF; }

.news-detail h1 {
    font-size: 20px !important;
    font-weight: bold !important;
}

.inner-news-detail {
    height: auto !important;
    overflow: visible !important;
}

.inner-news-detail#first {
    height: auto !important;
    overflow: visible !important;
}