@charset "utf-8";
/*
Template: jstork19
Theme Name: stork19_custom
Theme URI:http://open-cage.com/stork19/
Version: 1.3.1
Author: opencage
Author URI: https://open-cage.com/
*/


/* グリッドコンテナの基本設定 */
.category-grid-container {
    display: grid;
    /* 常に3列均等に配置 */
    grid-template-columns: repeat(3, 1fr);
    gap: 15px; /* カード間のスペースを少し狭く調整 */
    max-width: 1000px; /* 全体の最大幅 */
    margin: 30px auto;
    padding: 0 10px; /* 画面端の余白 */
}

/* 個々のカード（ボタン）のスタイル */
.category-grid-container .grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    /* デザイン */
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 20px 10px; /* 内側の余白を少し調整 */
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease-in-out;
    /* 最小の高さを設定して崩れを防ぐ */
    min-height: 150px; 
}

/* ホバーエフェクト（PCのみ） */
.category-grid-container .grid-item:hover {
    border-color: #ddd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* アイコンのスタイル */
.category-grid-container .grid-item i {
    font-size: 2.5rem; /* アイコンを少し小さめに調整 */
    color: #555;
    margin-bottom: 8px;
}

/* メインテキスト（カテゴリ名）のスタイル */
.category-grid-container .grid-item h4 {
    font-size: 1rem; /* 文字サイズを少し調整 */
    font-weight: bold;
    margin: 5px 0 5px 0;
    line-height: 1.4;
}

/* サブテキストのスタイル */
.category-grid-container .grid-item p {
    font-size: 0.75rem; /* 文字サイズを少し調整 */
    color: #888;
    margin: 0;
}



#inner-content {
    padding: 1%;
}

.vrc-container {
    padding: 8px;
}




/* ===============================================
   カテゴリグリッド 全体設定
   =============================================== */

/* グリッドコンテナの基本設定 */
.category-grid-container {
    display: grid;
    /* 常に3列均等に配置 */
    grid-template-columns: repeat(3, 1fr);
    gap: 15px; /* カード間のスペース */
    max-width: 1000px; /* 全体の最大幅 */
    margin: 30px auto;
    padding: 0 10px; /* 画面端の余白 */
}

/* 個々のカード（ボタン）のスタイル */
.category-grid-container .grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    /* デザイン */
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 20px 10px; /* 内側の余白 */
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease-in-out;
    /* 最小の高さを設定して崩れを防ぐ */
    min-height: 150px; 
}

/* ホバーエフェクト（PCなどマウス操作時のみ） */
.category-grid-container .grid-item:hover {
    border-color: #ddd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* アイコンのスタイル */
.category-grid-container .grid-item i {
    font-size: 2.5rem;
    color: #555;
    margin-bottom: 8px;
}

/* メインテキスト（カテゴリ名）のスタイル */
.category-grid-container .grid-item h4 {
    font-size: 1rem;
    font-weight: bold;
    margin: 5px 0 5px 0;
    line-height: 1.4;
}

/* サブテキストのスタイル */
.category-grid-container .grid-item p {
    font-size: 0.75rem;
    color: #888;
    margin: 0;
}


/* ===============================================
   スマートフォン表示の調整（旧）
   =============================================== */

/* 画面幅が768px以下の場合に適用 */
@media (max-width: 768px) {

    .category-grid-container {
        gap: 10px;
        padding: 0 5px;
    }

    .category-grid-container .grid-item {
        padding: 15px 5px;
        min-height: 130px; 
    }
    
    .category-grid-container .grid-item i {
        font-size: 2.0rem;
    }

    .category-grid-container .grid-item h4 {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .category-grid-container .grid-item p {
        font-size: 0.7rem;
    }
}

/* --- 投稿一覧カードの行間調整 --- */

.archives-list .archives-list-entry-content .entry-title {
    margin-bottom: 1px;
}

.archives-list .archives-list-entry-content .vrc-group-meta {
    margin-top: -6px;
    margin-bottom: 0;
}

.archives-list .archives-list-entry-content .vrc-group-join-state {
    margin-top: -12px !important;
	margin-bottom: -10px;
}





/* ---ここから--- */

.archives-list.card-list {
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px;
    margin-right: -10px;
}

.archives-list.card-list > .post-list {
    width: calc(50% - 20px);
    margin: 0 10px 20px;
}

@media screen and (min-width: 769px) {
    .archives-list.card-list > .post-list {
        width: calc(33.333% - 20px);
    }
}

/* ---ここまで--- */







/* ---ここから--- */

.archives-list.card-list {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-left: -10px;
    margin-right: -10px;
}

.archives-list.card-list > .post-list {
    width: calc(50% - 20px) !important;
    margin: 0 10px 20px;
}

@media screen and (min-width: 769px) {
    .archives-list.card-list > .post-list {
        width: calc(33.333% - 20px) !important;
    }
}

/* ---ここまで--- */





/* 推しグループの強調表示スタイル */
.post-list.oshi-tier-1,
.post-list.oshi-tier-2,
.post-list.oshi-tier-3,
.post-list.oshi-tier-4,
.post-list.oshi-tier-5 {
  border: 4px solid transparent;
  border-radius: 6px;
  background-clip: padding-box;
  position: relative;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  margin-bottom: 1em;
}

.post-list[class*="oshi-tier-"]:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.post-list.oshi-tier-1 {
  border-image: linear-gradient(135deg, #a1c4fd, #c2e9fb) 1;
}
.post-list.oshi-tier-2 {
  border-image: linear-gradient(135deg, #007bff, #4481eb) 1;
}
.post-list.oshi-tier-3 {
  border-image: linear-gradient(135deg, #b87333, #d98e54) 1;
}
.post-list.oshi-tier-4 {
  border-image: linear-gradient(135deg, #c0c0c0, #e8e8e8) 1;
}
.post-list.oshi-tier-5 {
  border-image: linear-gradient(135deg, #ffd700, #f8c202) 1;
}


/* 投稿本文中のh2見出しの背景をヘッダーと同じグラデーションにする */
.entry-content h2 {
    background: linear-gradient(120deg, #000000 0%, #1a4ca8 50%, #f02d41 100%);
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 5px;
}









/* --- コメント欄をX風にカスタム (v3.2: リンク/インデント最終版) --- */

.comment, .pingback {
    border: none !important;
    padding: 0 !important;
    background: none !important;
    overflow: visible;
}
.commentlist > .comment {
    margin-bottom: 1.5rem;
}

.comment-body {
    background-color: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    padding: 1rem 1.2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: grid;
    grid-template-areas:
        "header"
        "content"
        "footer";
    gap: 0.75rem;
    position: relative;
}

.comment-author {
    grid-area: header;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0; border: none;
}
.comment-author .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}
.comment-author .fn {
    font-weight: bold;
    font-style: normal;
    color: #14171a;
}
.comment-author .says { display: none; }

.comment-content {
    grid-area: content;
    color: #14171a;
    line-height: 1.6;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
}
.comment-content > p:not(:has(a > img)) {
    grid-column: 1 / -1;
    margin: 0 0 0.5em 0;
}
.comment-content > p:has(a > img) { margin: 0; }
.comment-content img {
    width: 100%; height: auto;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
    display: block;
}

.reply {
    grid-area: footer;
    justify-self: end;
    border: none; padding: 0;
    display: flex;
    align-items: center;
    gap: 1em;
}
.comment-metadata {
    grid-area: footer;
    justify-self: start;
    border: none; padding: 0;
    display: flex;
    align-items: center;
    gap: 1em;
}
.comment-metadata a,
.reply a,
.reply .comment-reply-link {
    font-size: 0.9rem;
    color: #657786;
    font-weight: bold;
    text-decoration: none;
}
.reply a:before,
.reply .comment-reply-link:before { display: none; }

.pvc-delete-comment-button {
    color: #657786;
    font-size: 0.9rem;
    font-weight: bold;
    text-decoration: none;
}
.pvc-delete-comment-button:hover { color: #d63638; }

.comment .children {
    margin-top: 1.5rem;
    padding-left: 1.2rem;
    border-left: 2px solid #eef2f5;
}
.comment .children .comment {
    margin-left: 1rem;
}

.pvc-comment-top-actions {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pvc-comment-top-actions .pvc-report-link {
    font-size: 12px;
    color: #888;
    text-decoration: none;
    border: 1px solid #ddd;
    padding: 2px 8px;
    border-radius: 4px;
    background-color: #fff;
    transition: all 0.2s ease;
}
.pvc-comment-top-actions .pvc-report-link:hover {
    background-color: #f0f0f0;
    color: #333;
    border-color: #ccc;
}
.pvc-comment-top-actions .pvc-delete-comment-button {
    font-size: 12px;
    padding: 2px 0;
}

.pvc-comment-like-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin-left: auto;
}
.pvc-comment-like-button {
    background: none;
    border: 1px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    transition: transform 0.2s ease, background-color 0.2s ease;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.pvc-comment-like-button:hover {
    background-color: rgba(255, 215, 0, 0.2);
}
.pvc-comment-like-button:active {
    transform: scale(1.15);
}
.pvc-comment-like-button .pvc-like-icon {
    font-size: 2.5em;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.2s ease;
    display: block;
}
.pvc-comment-like-button.liked .pvc-like-icon,
.pvc-comment-like-button:hover .pvc-like-icon {
    filter: grayscale(0%);
    opacity: 1;
}
.pvc-like-count {
    font-size: 1.2em;
    font-weight: bold;
    color: #657786;
    min-width: 1.5em;
    text-align: left;
}


/* ★★★ START: 新しいリッチなボタンのデザイン ★★★ */

.pvc-world-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 1.5em;
    justify-content: center;
}

.pvc-favorite-button,
.pvc-visited-button {
    cursor: pointer;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    background-color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.pvc-button-icon {
    font-size: 1.8em;
    line-height: 1;
    color: #a0a0a0;
    transition: all 0.3s ease;
}

.pvc-favorite-button:hover,
.pvc-visited-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}
.pvc-favorite-button:hover .pvc-button-icon {
    color: #ff69b4;
}
.pvc-visited-button:hover .pvc-button-icon {
    color: #28a745;
}

.pvc-favorite-button.processing,
.pvc-visited-button.processing {
    cursor: wait;
    background-color: #f0f0f0;
}

.pvc-favorite-button.favorited {
    background: linear-gradient(135deg, #ff80ab, #ff2c7f);
    border: none;
    box-shadow: 0 0 12px rgba(255, 105, 180, 0.8);
}
.pvc-favorite-button.favorited .pvc-button-icon {
    color: #ffffff;
    transform: scale(1.1);
    animation: pvc-pop 0.4s ease-out;
}

.pvc-visited-button.visited {
    background: linear-gradient(135deg, #76e093, #28a745);
    border: none;
    box-shadow: 0 0 12px rgba(40, 167, 69, 0.8);
}
.pvc-visited-button.visited .pvc-button-icon {
    color: #ffffff;
    transform: scale(1.1);
    animation: pvc-pop 0.4s ease-out;
}

@keyframes pvc-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1.1); }
}

/* ★★★ END: 新しいリッチなボタンのデザイン ★★★ */



/* ★★★ START: 記事タイトル下の情報バーのデザイン ★★★ */

.pvc-post-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 15px 25px;
    padding: 15px;
    margin: 0px auto;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.pvc-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: #555;
}

.pvc-meta-icon {
    font-size: 1.2rem;
}

.pvc-meta-value {
    font-weight: bold;
    font-size: 1.1rem;
    color: #111;
}

.pvc-action-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

@media screen and (max-width: 767px) {
    .pvc-post-meta-bar {
        justify-content: space-around;
        gap: 15px;
    }
    .pvc-meta-item {
        font-size: 0.9rem;
    }
    .pvc-meta-value {
        font-size: 1rem;
    }
}

/* ★★★ END: 記事タイトル下の情報バーのデザイン ★★★ */



/* ★★★ START: archive_simple.php カード右下のボタンのデザイン ★★★ */

.post-list {
    position: relative;
}

.archive-card-actions {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 10;
    display: flex;
    gap: 8px;
}

.archive-card-actions .pvc-favorite-button,
.archive-card-actions .pvc-visited-button {
    width: 36px;
    height: 36px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.archive-card-actions .pvc-button-icon {
    font-size: 1.3em;
}

/* ★★★ END ★★★ */



/* ★★★ START: archive_simple.php スマホでのボタン表示を調整 ★★★ */

@media (max-width: 767px) {
    .archive-card-actions {
        bottom: 5px;
        right: 15px;
        gap: 5px;
    }

    .archive-card-actions .pvc-favorite-button,
    .archive-card-actions .pvc-visited-button {
        width: 28px;
        height: 28px;
    }

    .archive-card-actions .pvc-button-icon {
        font-size: 0.9em;
    }
}

/* ★★★ END ★★★ */





/* ★★★ START: 報告機能のスタイル ★★★ */

.pvc-report-link-container {
    text-align: right;
    margin: 0.5em 0 0;
}
.pvc-report-link {
    font-size: 12px;
    color: #999;
    text-decoration: none;
    border: 1px solid #ddd;
    padding: 2px 6px;
    border-radius: 4px;
}
.pvc-report-link:hover {
    background-color: #f0f0f0;
    color: #333;
    border-color: #ccc;
}
.comment-content .pvc-report-link-container {
    margin-top: 1em;
}

#pvc-report-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#pvc-report-modal {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 500px;
    padding: 25px 30px;
    max-height: 90vh;
    overflow-y: auto;
}
#pvc-report-title {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.5em;
}
#pvc-report-target {
    margin-top: 0;
    margin-bottom: 20px;
    color: #555;
    font-weight: bold;
    border-left: 3px solid #eee;
    padding-left: 10px;
}

.pvc-report-field {
    margin-bottom: 20px;
}
.pvc-report-field > label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}
.pvc-report-options label {
    display: block;
    margin-bottom: 8px;
    cursor: pointer;
}
#pvc-report-modal textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}
.pvc-report-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 25px;
}
#pvc-report-modal button {
    padding: 10px 20px;
    border-radius: 5px;
    border: 1px solid #ccc;
    cursor: pointer;
    font-weight: bold;
}
#pvc-report-submit {
    background-color: #d63638;
    color: #fff;
    border-color: #d63638;
}
#pvc-report-submit.processing {
    background-color: #aaa;
    cursor: wait;
}
#pvc-report-cancel, #pvc-report-close {
    background-color: #f0f0f0;
}

#pvc-report-thanks {
    text-align: center;
    padding: 20px;
}

/* ★★★ END: 報告機能のスタイル ★★★ */



/* ★★★ START: single.phpのレイアウト調整 (最終版) ★★★ */

@media screen and (min-width: 768px) {
    .single .entry-title {
        font-size: 1.7em;
    }
}

.pvc-post-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px 25px;
}

.pvc-action-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}
.pvc-action-buttons .pvc-report-link-container {
    margin: 0;
}

/* ★★★ END: single.phpのレイアウト調整 (最終版) ★★★ */


/* ★★★ START: コメント投稿ポップアップのデザイン ★★★ */
.stk-comment-toggle-wrapper {
    margin: 2em 0;
    text-align: center;
}
.stk-comment-toggle-button {
    display: inline-block;
    width: 100%;
    max-width: 400px;
    padding: 18px 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #fff;
    background-color: var(--main-ttl-bg, #337ab7);
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}
.stk-comment-toggle-button:hover {
    background-color: var(--main-link-color-hover, #286090);
    transform: translateY(-2px);
}

#stk-comment-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#stk-comment-modal {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 600px;
    padding: 25px 30px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.stk-modal-close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2.5rem;
    color: #aaa;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.stk-modal-close-button:hover {
    color: #333;
}

#stk-comment-modal #reply-title {
    margin-top: 0;
}
#stk-comment-modal .comment-form p {
    margin-bottom: 15px;
}
#stk-comment-modal .comment-form input[type="text"],
#stk-comment-modal .comment-form input[type="email"],
#stk-comment-modal .comment-form input[type="url"],
#stk-comment-modal .comment-form textarea {
    width: 100%;
}
.cancel-reply-wrapper {
    margin-top: -15px;
    margin-bottom: 15px;
    text-align: right;
    min-height: 1em;
}
#cancel-comment-reply-link {
    font-size: 0.8em;
    font-weight: normal;
    color: #d63638;
    text-decoration: none;
    cursor: pointer;
}
#cancel-comment-reply-link:hover {
    text-decoration: underline;
}
/* ★★★ END: コメント投稿ポップアップのデザイン ★★★ */



/* ★★★ START: single.php メタ情報バーのレイアウト調整 ★★★ */

.pvc-post-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: nowrap;
    gap: 15px;
}

.pvc-stats-group {
    display: flex;
    align-items: center;
    gap: 25px;
}

.pvc-action-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

@media screen and (max-width: 767px) {
    .pvc-stats-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .pvc-action-buttons {
        gap: 8px;
    }
    
    .pvc-action-buttons .pvc-favorite-button,
    .pvc-action-buttons .pvc-visited-button {
        width: 42px;
        height: 42px;
    }
    .pvc-action-buttons .pvc-button-icon {
        font-size: 1.5em;
    }
    
    .pvc-action-buttons .pvc-report-link {
        padding: 4px 6px;
        font-size: 11px;
    }
}

/* ★★★ END: single.php メタ情報バーのレイアウト調整 ★★★ */




/* ★★★ START: コメント欄のユーザーレベル表示スタイル ★★★ */

.user-comment-level {
    font-size: 0.8em;
    font-weight: bold;
    color: #555;
    background-color: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

/* ★★★ END: コメント欄のユーザーレベル表示スタイル ★★★ */




.fvw-update-display {
  text-align: right;
  font-size: 0.8em;
  color: #666;
}




/* --- START: コメント画像が1枚の時だけ大きく表示する --- */

.comment-content:has(> p:has(a > img)):not(:has(> p:has(a > img) ~ p:has(a > img))) {
    grid-template-columns: 1fr;
}

/* --- END: コメント画像が1枚の時だけ大きく表示する --- */


/* ★★★ START: スマホ表示用のスタイル上書き（ファイルの最後に配置） ★★★ */
@media screen and (max-width: 767px) {

    /* コメントの日時表示を小さくして、返信リンクとの重なりを防ぐ */
    .comment-metadata a {
        font-size: 0.8rem !important;
    }

}
/* ★★★ END: スマホ表示用のスタイル上書き ★★★ */