/*

*/

.footer-poweredby {
    display: none;
}

div.split-page-nav>nav.pagination {
    margin-top: 0em !important;
}

div.split-page-nav>div.next-page-link {

    padding: 0 30%;
}

div.split-page-nav>div.next-page-link a {
    color: #fff;
    display: block;
    background-color: cornflowerblue;
    padding: 0.5rem 1rem;
    text-align: center;
}

div.cs-borderbottom {
    padding-bottom: 2rem !important;
    margin-bottom: 2rem !important;
    border-bottom: 1px solid #a3a3a3;
}

/* figure */
.wp-block-image{
    padding: 0.5em;
    background-color: #eee;
    border: 1px solid #ccc;
}

.wp-block-image figcaption{
    text-align: left;
    padding-top: .5em;
    color: var(--font-color);
    font-size: 0.9em;
}

/*  custom buttons  */
.wtc-custom-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.wtc-custom-buttons a:hover{
    color: #a8e9ff !important;
}

/* ボタン全体の基本スタイル */
.wtc-button {
    background-color: #2d92be;
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 16px;
    padding: 4px 0;
    text-align: center;
    font-weight: bold;
    flex: 1 1 calc(100% / 6 - 10px);
    /* 6等分 - gap対応 */
}

.archive_text_nothumb> :first-child {
    margin-top: 0;
}

.cs-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.issue-content {
    padding: 1rem;
    text-align: center;
}

.however {
    font-size: 0.8rem;
}

.both-ends-border {
    display: flex;
    align-items: center;
}

.both-ends-border:before,
.both-ends-border:after {
    content: "";
    height: 1px;
    flex-grow: 1;
    background-color: #666;
}

.both-ends-border:before {
    margin-right: 1rem;
}

.both-ends-border:after {
    margin-left: 1rem;
}

/* wtc-tagcloud */

.wtc-tagcloud {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wtc-tagcloud li {
    margin-bottom: 6px;
    font-size: small;
}

.wtc-tagcloud a {
    padding: 0.3em 0.8em;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
}

.wtc-tagcloud a:hover {
    color: #c8e6ff;
}
.wtc-tagcloud a.color1 {
    background-color: #2aabe3;
}

.wtc-tagcloud a.color2 {
    background-color: #7ac9cf;
}

.wtc-tagcloud a.color3 {
    background-color: #447cbc;
}

.wtc-round-headline {
    padding: 0.3em 0.8em;
    border-radius: 16px;
    color: #fff;
    background-color: black;
}

.widget pre {
    background: none;
}

/* cs-info ショートコード  */
li.cs-info-list a {
    text-decoration: none;
    color: inherit;
}

/*  login form  */
.ys-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.ys-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    border-radius: 8px;
    position: relative;
}

.ys-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
}

.password-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 1em;
}

.password-wrapper input{
    width: 100%;
    padding-right: 40px;
    /* ボタンの幅分余裕を持たせる */
    box-sizing: border-box;
}
#togglePassword {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    color:inherit;
}

/* wtc-post-tags */

.wtc-post-tags ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.wtc-post-tags li {
    margin-bottom: 6px;
    font-size: small;
}

.wtc-post-tags a {
    padding: 0.3em 0.8em;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    margin-right: 8px;
    margin-bottom: 8px;
}

.wtc-post-tags a:hover {
    color: #c8e6ff;
}

.wtc-post-tags a.color1 {
    background-color: #2aabe3;
}

.wtc-post-tags a.color2 {
    background-color: #7ac9cf;
}

.wtc-post-tags a.color3 {
    background-color: #447cbc;
}


@media screen and (min-width:576px) {
    .cs-col-3 {
        width: 22%;
        margin-right: 3%;
    }
}

@media screen and (max-width:575px) {
    .cs-col-3 {
        width: 49%;
        margin-right: 1%;
    }
}

@media screen and (min-width:768px) {
    .global-nav {
        background: none !important;
    }


}

/* モバイル対応：2列 × 3行 */
@media (max-width: 767px) {
    .wtc-button {
        flex: 1 1 calc(50% - 10px);
        /* 2列表示 */
    }

    .wtc-tagcloud {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .wtc-tagcloud a {
        /* optional styling to fit horizontally */
        margin-right: 8px;
        margin-bottom: 8px;
    }


}

/* post clendar */
#calendar-year,
#calendar-month {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    padding: 0.4em 2em 0.4em 0.6em;
    /* 右に余白を作る */
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'><path d='M0 2.5 L5 7.5 L10 2.5 Z' fill='%23666'/></svg>") no-repeat right 0.6em center;
    background-size: 10px;
    cursor: pointer;
}