/*
 * PictPostPersonal システム動作用 CSS定義
 *
 * 本CSSを編集するとPPPが正常に動作しなくなる可能性があります。
 *
 */
:root {
    --text-color-light: #999;
    --thumbnail-border-color: #555;

    --thumbnail-l-size: 800ox;
    --thumbnail-s-size: 400px;

    /* ボタン類の色 */
    --button-text-color: #fff;

    --theme-color: #51bb9b;
    --theme-l-color: #89ebcd;
    --theme-d-color: #258a6b;

    --warn-color: #cc5759;
    --warn-l-color: #cc5759;
    --warn-d-color: #9b3638;

    --normal-color: #888;
    --normal-l-color: #BBB;
    --normal-d-color: #555;

    --disable-color: #999;
    --disable-l-color: #bbb;


    /*トップページ：サムネイルの横幅*/
    --thumbnail-width: 150px;
    /*トップページ：サムネイルの縦幅*/
    --thumbnail-height: 150px;

    /*検索ページ：サムネイルの横幅*/
    --search-thumbnail-width: 100px;
    /*検索ページ：サムネイルの縦幅*/
    --search-thumbnail-height: 100px;

    /*サムネイルの色*/
    --thumbnail-back-color: #eee;
    --thumbnail-font-color: #999;

    /*タグ クラウドのバックカラー&文字色*/
    --tag-cloud-back-color: #a0a0a0;
    --tag-cloud-font-color: #fff;
    --tag-cloud-back-color-hover: #777;
    --tag-cloud-font-color-hover: #fff;

    /* 基本背景色 */
    --background-color: #f0f0f0;
    --base-background-color: #fff;

    /* 基本 文字色 */
    --base-text-color: #333;
    --base-light-color: #777;

    --link-color: #777;
    --link-hover-color: #999;


    /* トップページ背景色 */
    --index-back-color: #fff;

    /* ヘッダー部背景色 */
    --header-back-color: var(--background-color);
    --header-link-color: #777;
    --header-link-color-hover: #999;
}

* {
    box-sizing: border-box;
}

.hide {
    display: none;
}

/* 記事ページ / 画像表示 */
/* 位置制御 */
.p-center {
    margin: 0 auto;
}

.p-right {
    float: right;
}

.p-left {
    float: left;
}

.p-clearfix:after {
    content: "";
    display: block;
    clear: both;
}

/* 記事内・画像サムネイル */
.p-thumb {
    display: grid;
    justify-content: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.p-thumb-large {
    max-width: var(--thmubnail-large-width, 800px);
}

.p-thumb-small {
    max-width: var(--thmubnail-small-width, 400px);
}

.p-thumb img {
    border-radius: 5px;
}

.p-thumb-img-cover {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
}

.p-thumb-img-scale-down {
    width: 100%;
    height: auto;
    object-fit: scale-down;
    object-position: center;
}

.p-thumb-border {
    border: 1px solid var(--border-color, #555);
}

.p-image-comment {
    font-size: 0.8rem;
    color: var(--text-color-light, #BBB);
    text-align: center;
    margin-top: -1.5rem;
}

/* リスト用 サムネイル */
@scope(.p-log-list) {

    .p-thumbnails {
        margin-top: 30px;
    }

    .p-thumbnail a {
        color: var(--link-color, #777);
        text-decoration: none;

    }

    .p-thumbnail a:hover {
        color: var(--link-hover-color, #999);
        text-decoration: underline;
    }

    .p-thumbnails ul {
        list-style: none;
        width: 100%;

        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .p-thumbnail {
        position: relative;
        width: var(--thumbnail-width, 150px);
        margin: 5px;

        overflow: hidden;
        text-overflow: ellipsis;
    }

    .p-thumbnail-item {
        position: relative;
        width: var(--thumbnail-width, 150px);
        height: var(--thumbnail-height, 150px);
        border: 1px solid #999;
    }

    .p-thumnail-title {
        text-wrap: nowrap;
        font-weight: 600;
    }

    .p-thumbnail-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .p-thumbnail-info {
        position: absolute;
        top: 0;
        left: 0;
        width: var(--thumbnail-width, 150px);
        height: var(--thumbnail-height, 150px);
        padding: 10px;
        display: grid;
        place-content: center;
    }

}

.p-pin-icon {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 2;

    width: 18px;
    height: 18px;
    cursor: pointer;

    background-image: url("../pinimage.png");
    background-size: cover;

    opacity: 0.7;
}

.p-multi-icon {
    position: absolute;
    left: 8px;
    bottom: 8px;
    z-index: 2;

    width: 18px;
    height: 18px;
    cursor: pointer;

    background-image: url("../multiimage.png");
    background-size: cover;

    opacity: 0.7;
}

/* ボタン */
.p-button {
    border: none;
    border-radius: 20px;
    font-size: 1.2em;
    min-width: 30%;
    height: 2em;

    background-color: var(--theme-color);
    color: var(--button-text-color);

    font-weight: 800;

    padding: 0 1em 0 1em;
    word-wrap: none;

    cursor: pointer;
}

.p-button:hover {
    background-color: var(--theme-d-color);
}

.p-button:active {
    background-color: var(--theme-l-color);
    border: 1px solid var(--theme-d-color);
}

.p-button-warn {
    background-color: var(--warn-color);
}

.p-button-warn:hover {
    background-color: var(--warn-d-color)
}

.p-button-warn:active {
    background-color: var(--warn-l-color);
    border: 1px solid var(--warn-d-color);
}

.p-button-normal {
    background-color: var(--normal-color);
}

.p-button-normal:hover {
    background-color: var(--normal-d-color);
}

.p-button-normal:active {
    background-color: var(--normal-l-color);
    border: 1px solid var(--normal-d-color);
}

.p-button-disable {
    cursor: not-allowed;
    background-color: var(--disable-color);
    color: var(--disable-l-color);
}

.p-button-disable:hover {
    background-color: var(--disable-color);
    color: var(--disable-l-color);
}

.p-button-disable:active {
    background-color: var(--disable-color);
    color: var(--disable-l-color);
}

.p-button-inline {
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    height: 1.8em;
    width: initial;
    min-width: 5em;

    background-color: var(--theme-color);
    color: var(--button-text-color);

    font-weight: 800;
    word-wrap: none;
    cursor: pointer;
}

/* いいねボタン */
.p-button-like-it {
    display: inline-block;
    border-radius: 5em;
    background-color: #ffd2d2;
    color: #6e4848;
    font-size: 15px;
    padding: 0.5em 2em 0.5em 2em;
    margin-bottom: 2em;
    cursor: pointer;
}

.p-button-like-it-active::before {
    font-weight: 900 !important;
    content: "\f004" !important;
    color: #f00 !important;
}

.p-button-like-it::before {
    font-family: "Font Awesome 7 Free";
    font-weight: 400;
    content: "\f004";
    margin-right: 0.4em;
    display: inline-block;
}

.p-button-like-it:hover {
    background-color: #ff8f8f;
}

.p-button-like-it:active {
    margin-top: -1px;
    border: 1px solid #ff8f8f;
    background-color: #ffd2d2;
}

.p-button-like-it:active::before {
    font-family: "Font Awesome 7 Free";
    font-weight: 900;
    content: "\f004";
    color: #f00;
}

/* 続きを読むボタン */
.p-more-button {
    margin: 0.5em 0 0.5em 0;
    padding: 0.5em 1em 0.5em 1em;
    border-radius: 5px;

    font-size: 0.9em;

    background-color: var(--normal-color);
    color: var(--button-text-color);
}

.p-more-button-active {
    background-color: var(--theme-color);
    color: var(--button-text-color);
}

/* 小説表示用定義 */
.p-novel-body-outer {
    min-height: 80vh;
    width: 100%;
    padding-top: 1em;
    padding-bottom: 1em;
}

.p-novel-body-in {

    line-height: 200%;
}

.p-vertical-text {
    -ms-writing-mode: tb-rl;
    writing-mode: vertical-rl;
    max-height: 90vh;
    width: 95%;
    text-orientation: upright;
    overflow: auto;
    line-height: 2em;
    margin: 0 auto 0 auto;
}

.p-horizontal-text {
    max-width: 600px;
    margin: 0 auto 0 auto;
}

.p-text-combine {
    -webkit-text-combine: horizontal;
    -ms-text-combine-horizontal: all;
    text-combine-upright: all;
}

.p-vt-controler-ctl {
    cursor: pointer;
    display: inline-block;
    margin-bottom: 0.5em;
    color: #555;
}

.p-vt-cover {
    z-index: 1;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #fff;
    opacity: 0.9;
}

.p-vt-controler {
    z-index: 99;
    position: absolute;
    padding: 0 1em 1em 1em;
    border: 1px solid #ccc;
    background-color: #fff;
    box-shadow: 10px 5px 5px rgba(50, 50, 50, 0.1);
}

.p-vt-controler span {
    display: inline-block;
    margin-top: 1em;
}

.p-vt-controler-active {
    font-weight: 800;
}

.p-vt-title-1 {
    margin-right: 0.5em;
    width: 7em;
}

.p-vt-title-2 {
    margin-right: 0.5em;
    width: 7em;
}

.p-vt-title-3 {
    margin-right: 0.5em;
    width: 7em;
}

.p-vt-controler-1 {
    cursor: pointer;
    border-left: 1px solid #999;
    border-top: 1px solid #999;
    border-bottom: 1px solid #999;
    padding: 0.5em;
    border-radius: 10px 0 0 10px;
}

.p-vt-controler-2 {
    cursor: pointer;
    border-left: 1px solid #999;
    border-top: 1px solid #999;
    border-bottom: 1px solid #999;
    padding: 0.5em;
}

.p-vt-controler-3 {
    cursor: pointer;
    border-left: 1px solid #999;
    border-right: 1px solid #999;
    border-top: 1px solid #999;
    border-bottom: 1px solid #999;
    padding: 0.5em;
    border-radius: 0 10px 10px 0;
}

.p-vt-controler-v {
    cursor: pointer;
    border-left: 1px solid #999;
    border-top: 1px solid #999;
    border-bottom: 1px solid #999;
    padding: 0.5em;
    border-radius: 10px 0 0 10px;
}

.p-vt-controler-h {
    cursor: pointer;
    border-left: 1px solid #999;
    border-right: 1px solid #999;
    border-top: 1px solid #999;
    border-bottom: 1px solid #999;
    padding: 0.5em;
    border-radius: 0 10px 10px 0;
}

.p-vt-controler-fss {
    cursor: pointer;
    border-left: 1px solid #999;
    border-top: 1px solid #999;
    border-bottom: 1px solid #999;
    padding: 0.5em;
    border-radius: 10px 0 0 10px;
}

.p-vt-controler-fs {
    cursor: pointer;
    border-left: 1px solid #999;
    border-right: 1px solid #999;
    border-top: 1px solid #999;
    border-bottom: 1px solid #999;
    padding: 0.5em;
    border-radius: 0 10px 10px 0;
}

/* {alert}用スタイル定義 */
.p-alert {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(30px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.p-alert-control {
    margin: 2em auto 0 auto;
    text-align: center;
}

/* フォーム関連 */
.p-input {
    display: inline-block;

    -webkit-appearance: none;
    appearance: none;

    border: 1px solid #999;
    background-color: #fff;
    border-radius: 5px;
    outline: none;

    font-size: 80%;
    padding: 0.3em;
    padding-right: 1em;
    padding-left: 1em;

    height: 2em;
}

.p-textarea {
    width: 100%;
    resize: vertical;
    height: 20em;
    font-size: 90%;
    background-color: #fff;
    border: 1px solid #999;
    border-radius: 5px;
    padding: 0.5em;
}



/* 検索欄 */
.p-search-input {
    display: inline-block;
    border: 1px solid #999;
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    border-radius: 30px;
}

.p-search-button {
    cursor: pointer;
    margin-right: 0.5rem;
}

.p-search_clear_button {
    cursor: pointer;
}

/* タグクラウド */
.p-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    width: 100%;
}

.p-tag {
    list-style: none;
}

.p-tag a {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    color: var(--text-secondary, #888);
    background: var(--bg-secondary, #f5f7f9);
    border: 1px solid var(--border-color, #e8eced);
    border-radius: 20px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all var(--transition-fast, 150ms cubic-bezier(0.4, 0, 0.2, 1));
    margin: 0.1rem 0.25rem;
    text-decoration: none;
}

.p-tag a:hover {
    background: var(--accent-primary, #51bb9b);
    border-color: var(--accent-primary, #51bb9b);
    color: white;
    transform: translateY(-1px);
    text-decoration: none;
}

/* 記事内目次 */
.p-toc {
    background-color: #fafafa;
    padding: 0.8rem 0.8rem 1.8rem 0.8rem;
    margin-left: 2rem;
    margin-right: 2rem;
    font-size: 0.9rem;
}

.p-toc-title::before {
    content: '■';
}

.p-toc li {
    list-style: none;
    border-bottom: #ccc dotted 1px;
    padding: 0.5rem;
}

.p-toc-lv3 {
    margin-left: 1em;
}

:root {
    --table-bg: #ffffff;
    --table-border: #e5e7eb;
    --table-header-bg: #f9fafb;
    --table-header-text: #374151;
    --table-text: #111827;
    --table-muted-text: #6b7280;
    --table-row-hover: #f3f4f6;
    --table-stripe: #fcfcfd;
    --accent: #2563eb;
    --radius: 8px;
    --font-size: 14px;
}

/* MARKDOWN */
.p-md-code {
    background: #f6f8fa;
    padding: 12px;
    border-radius: 4px;
    overflow-x: auto;
}

.p-md-code .p-md-highlight-1 {
    color: #559955;
    font-weight: 800;
}

.p-md-code .p-md-highlight-2 {
    color: #5555CC;
    font-weight: 800;
}

/* wrapper（横スクロール対策） */
table.p-md-wrapper {
    width: 100%;
    overflow-x: auto;
}

/* table */
table.p-md {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--table-bg);
    font-size: var(--font-size);
    color: var(--table-text);
    border: 1px solid var(--table-border);
    border-radius: var(--radius);
}

/* header */
table.p-md thead th {
    background: var(--table-header-bg);
    color: var(--table-header-text);
    text-align: left;
    font-weight: 600;
    padding: 12px 16px;
    border-bottom: 1px solid var(--table-border);
    white-space: nowrap;
}

/* body */
table.p-md tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--table-border);
    vertical-align: middle;
}

/* 最終行のボーダー調整 */
table.p-md tbody tr:last-child td {
    border-bottom: none;
}

/* ストライプ */
table.p-md tbody tr:nth-child(even) {
    background: var(--table-stripe);
}

/* hover */
table.p-md tbody tr:hover {
    background: var(--table-row-hover);
}

/* alignment helpers */
table.p-md .text-right {
    text-align: right;
}

table.p-md .text-center {
    text-align: center;
}

/* 状態表現 */
table.p-md .muted {
    color: var(--table-muted-text);
}

table.p-md .highlight {
    color: var(--accent);
    font-weight: 500;
}

/* sticky header（任意） */
table.p-md.sticky thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}