/* Title ------------------------------------------ */
.acm-title {
    margin: 10px 0 0 10px;
    font-size: 1.5em;
    line-height: 1.2;
}

.acm-slider-wrapper,
.acm-slider-inner {
    position: relative;
    width: 100%;
    margin: 0 auto;
    aspect-ratio: 21/9;
    overflow: hidden;
}

.acm-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 5;
    transition: opacity 0.8s ease;
}

.acm-slide.active {
    opacity: 1;
    z-index: 10;
}

.acm-slide img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    object-position: center center; 
    min-width: 100%;
    min-height: 100%;
}


/* Prev / Next buttons ---------------------------- */
.acm-prev,
.acm-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 30;
}

.acm-prev {
    left: 10px; 
}
.acm-next { 
    right: 10px; 
}
.acm-prev:before {
    font-size: 18px;
    font-family: "dashicons";
    content: "\f341";
}
.acm-next:before {
    font-size: 18px;
    font-family: "dashicons";
    content: "\f345";
}



/* Dots ------------------------------------------ */
.acm-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 30;
}

.acm-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}

.acm-dot.active {
    background: #fff;
}


/* Buttons (Top) --------------------------------- */
.acm-top-button {
    background: linear-gradient(145deg, #f0f4f8, #d9e6f8); 
    color: #1a4f8b;
    border: 2px solid #1a4f8b;
    border-radius: 3px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none!important;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2px 24px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    min-width: 60px;
    transition: all 0.3s ease;
}

.acm-button {
    background: linear-gradient(145deg, #f0f4f8, #EDF8FF); 
    color: #1a4f8b;
    border: 2px solid #1a4f8b;
    border-radius: 3px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none!important;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 24px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    min-width: 100px;
    transition: all 0.3s ease;
}

.acm-button:hover {
    background: linear-gradient(145deg, #1a4f8b, #0f2d54);
    color: #fff;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 16px rgba(0,0,0,0.25);
}


/* Button containers ------------------------------ */
.acm-top-buttons {
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    gap: 12px;
    z-index: 40;
}

@media (max-width: 768px) {
    .acm-top-buttons { display: none; }
}

.acm-mobile-buttons {
    display: none;
    gap: 10px;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .acm-mobile-buttons { display: flex; }
    .acm-mobile-buttons .acm-button {
        flex: 1 1 48%;
        padding: 8px 0;
        font-size: 14px;
    }
}

.acm-bottom-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    justify-content: flex-start;
}

@media (max-width: 768px) {
    .acm-bottom-buttons .acm-button {
        flex: 1 1 48%;
        padding: 8px 0;
        font-size: 14px;
    }
}

/* --------------------------------------------------
   投稿ブロック
-------------------------------------------------- */
/* 投稿ブロック */
.adm-content-item {
    width: 100%;
    margin-bottom: 20px;
    overflow: hidden; /* float 内部のクリア */
}

/* 画像部分 */
.adm-thumb-wrapper {
    float: left;
    width: 50%;           /* デスクトップでの画像幅 */
    margin-right: 16px;   /* 画像とテキストの間隔 */
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9; 
}

.adm-thumb-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* テキスト部分 */
.adm-content {
    display: block;
    font-size: 15px;
    line-height: 1.7;
    color: #333;
}

/* テキストの下に float 解除を入れる */
.adm-content::after {
    content: "";
    display: block;
    clear: both;
}

/* スマホ対応 */
@media(max-width:768px){
    .adm-thumb-wrapper {
        float: none;
        width: 100%;
        margin-right: 0;
        margin-bottom: 12px;
    }
    .adm-content {
        width: 100%;
    }
}

/* --------------------------------------------------
   タイトル横ページング（最初の投稿のみ）
-------------------------------------------------- */
.adm-title-and-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    flex-wrap: nowrap;
}

.adm-title-wrapper {
    width: 60%;
}

.adm-title-wrapper h1,
.adm-title-wrapper h2,
.adm-title-wrapper h3,
.adm-title-wrapper h4,
.adm-title-wrapper h5,
.adm-title-wrapper h6 {
    margin: 0;
}

.adm-list-title a {
    font-size: 20px;
    font-weight: 600;
    text-decoration: none !important;
    color: #1a4f8b;
    transition: color 0.3s;
}

.adm-list-title a:hover {
    color: #13aff0;
    text-decoration: underline !important;
}

.adm-pagination-top-wrapper {
    width: 40%;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: nowrap;
}

.adm-pagination-top-wrapper a,
.adm-pagination-top-wrapper span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 25px;       /* 高さと同じ値 */
    height: 25px;
    font-size: 14px;
    border-radius: 50%; /* まん丸 */
    text-decoration: none;
    font-weight: 500;
    color: #1a4f8b;
    background: #fff;
    border: 1px solid #1a4f8b;
    transition: all 0.3s ease;
    padding: 0;
    text-decoration: none !important;
}

.adm-pagination-top-wrapper a:hover {
    background: #13aff0;
    color: #fff;
    border-color: #13aff0;
}

.adm-pagination-top-wrapper .current {
    background: #1a4f8b;
    color: #fff;
    border-color: #1a4f8b;
}

.adm-pagination-top-wrapper .dots {
    background: none;
    border: none;
    color: #999;
    cursor: default;
}

/* スマホ対応：タイトル横ページング非表示、タイトル下に表示される下部ページングに統合 */
@media(max-width:768px){
    .adm-title-and-pagination {
        flex-direction: column;
        align-items: flex-start;
    }
    .adm-title-wrapper { width: 100%; }
    .adm-pagination-top-wrapper { display: none; }
}

/* --------------------------------------------------
   下部ページング（丸ボタン・中央寄せ）
-------------------------------------------------- */
.adm-pagination-bottom {
    display: flex;            /* 横並び固定 */
    justify-content: center;  /* 中央寄せ */
    align-items: center;
    gap: 8px;
    margin: 15px 0;
    flex-wrap: wrap;          /* 画面狭い場合は折り返し */
}

.adm-pagination-bottom a,
.adm-pagination-bottom span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;       /* 高さと同じ値 */
    height: 40px;
    font-size: 16px;
    border-radius: 50%; /* まん丸 */
    text-decoration: none;
    font-weight: 500;
    color: #1a4f8b;
    background: #fff;
    border: 1px solid #1a4f8b;
    transition: all 0.3s ease;
    padding: 0;
    margin: 2px;
    text-decoration: none !important;
}

.adm-pagination-bottom a:hover {
    background: #13aff0;
    color: #fff;
    border-color: #13aff0;
}

.adm-pagination-bottom .current {
    background: #1a4f8b;
    color: #fff;
    border-color: #1a4f8b;
}

.adm-pagination-bottom .dots {
    background: none;
    border: none;
    color: #999;
    cursor: default;
}
