

:root {
    color-scheme: light dark;
}

body {
    margin: 0 0 520px 0;
    background-color: #f9f9f9;
    color: #333333;
    font-size: 16px;

    /* ★フォント適用（custom/preset/google 全対応） */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, "Noto Sans JP", sans-serif;
}

body {
    background-color: light-dark(#f9f9f9, #f9f9f9);
    color: light-dark(#333333, #333333);
}

form input,
form textarea,
form select,
form button {
    color-scheme: light;

    /* ★フォーム類も同じフォントに */
    font-family: inherit;
}

a {
    color: #996633;
    color: light-dark(
        #996633,
        #996633    );
}
a:visited {
    color: #996633;
    color: light-dark(
        #996633,
        #996633    );
}
a:active {
    color: #cc9966;
    color: light-dark(
        #cc9966,
        #cc9966    );
}

.quote-text {
    color: #666666;
    color: light-dark(
        #666666,
        #666666    );
}

.comment-text {
    color: #333333;
    color: light-dark(
        #333333,
        #333333    );
}

.note-text {
    color: #333333;
    color: light-dark(
        #333333,
        #333333    );
}

.name {
    color: #007700;
    color: light-dark(
        #007700,
        #007700    );
}

.cap {
    color: #f39800;
    color: light-dark(
        #f39800,
        #f39800    );
}

.deleted-message {
    color: #ff0000;
    color: light-dark(
        #ff0000,
        #ff0000    );
}

.error-message {
    color: #ff0000;
    color: light-dark(
        #ff0000,
        #ff0000    );
}

hr {
    border: none;
    border-top: 1px solid #cccccc;
    border-top-color: light-dark(
        #cccccc,
        #cccccc    );
}

.embed-post {
    background-color: #f9f9f9;
    color: #333333;
    background-color: light-dark(
        #f9f9f9,
        #f9f9f9    );
    color: light-dark(
        #333333,
        #333333    );
}

mark {
    background-color: transparent;
    color: inherit;
    margin: 0 5px;
}

/* パンくずリスト */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    list-style: none;
    padding-left: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
    display: inline-block;
    padding: 0 0.5rem;
    content: ">";
    vertical-align: middle;

    color: #333333;
    color: light-dark(
        #333333,
        #333333    );
}

/* 最後のパンくずリスト項目のリンクを無効にする */
.breadcrumb-item:last-child a {
    pointer-events: none;
    color: inherit;
    text-decoration: none;
}

/* 外部サイト埋め込み */
.embed-contents {
    position: relative;
    width: min(100%, 600px);
    max-width: 600px;
    box-sizing: border-box;
}

.nieru-external-embed {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .65rem;
    margin: .5rem 0;
    padding: .75rem;
    border: 1px solid rgba(127, 127, 127, .35);
    border-radius: 8px;
    background: rgba(127, 127, 127, .06);
    overflow: hidden;
}

.nieru-external-embed--sensitive {
    border-color: rgba(180, 45, 45, .55);
    background: rgba(180, 45, 45, .07);
}

.nieru-external-embed--sensitive .nieru-external-embed-load {
    color: #a51f2d;
    background: rgba(255, 255, 255, .72);
}

.nieru-external-embed--amazon {
    grid-template-columns: 6rem minmax(0, 1fr);
    align-items: center;
    border-color: rgba(255, 153, 0, .55);
    background: rgba(255, 153, 0, .08);
}

.nieru-amazon-product-media {
    display: grid;
    width: 6rem;
    height: 6rem;
    place-items: center;
    overflow: hidden;
    border-radius: 6px;
    background: #fff;
}

.nieru-amazon-product-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nieru-amazon-product-mark {
    position: relative;
    display: grid;
    width: 3.25rem;
    height: 3.25rem;
    justify-self: center;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: #232f3e;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.nieru-amazon-product-mark::after {
    position: absolute;
    right: .55rem;
    bottom: .55rem;
    left: .55rem;
    height: 3px;
    border-radius: 2px;
    background: #ff9900;
    content: "";
}

.nieru-amazon-product-id,
.nieru-amazon-associate-label,
.nieru-amazon-price-notice,
.nieru-amazon-content-notice {
    display: block;
    color: inherit;
    font-size: .8rem;
    line-height: 1.4;
    opacity: .72;
    overflow-wrap: anywhere;
}

.nieru-amazon-product-title {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: .3rem;
    color: inherit;
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.nieru-amazon-product-price {
    display: block;
    margin-bottom: .2rem;
    color: #b12704;
    font-size: 1rem;
    line-height: 1.35;
}

.nieru-amazon-product-button {
    display: inline-flex;
    min-height: 2.35rem;
    align-items: center;
    justify-content: center;
    padding: .4rem .8rem;
    border: 1px solid #d47f00;
    border-radius: 6px;
    color: #111;
    background: #ffb33b;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
}

.nieru-amazon-product-button:hover,
.nieru-amazon-product-button:focus-visible {
    background: #ff9900;
}

.nieru-amazon-associate-label {
    margin-top: .45rem;
}

.nieru-amazon-price-notice,
.nieru-amazon-content-notice {
    margin-top: .25rem;
    font-size: .7rem;
}

@media (max-width: 420px) {
    .nieru-external-embed--amazon {
        grid-template-columns: 4.75rem minmax(0, 1fr);
        padding: .65rem;
    }

    .nieru-amazon-product-media {
        width: 4.75rem;
        height: 4.75rem;
    }
}

.nieru-external-embed-thumbnail {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 6px;
    background: rgba(127, 127, 127, .14);
}

.nieru-external-embed--vertical .nieru-external-embed-thumbnail {
    width: min(100%, 320px);
    aspect-ratio: 9 / 16;
}

.nieru-external-embed-body {
    min-width: 0;
}

.nieru-external-embed-label {
    display: block;
    margin: 0 0 .35rem;
    font-size: .95rem;
    line-height: 1.35;
}

.nieru-external-embed-summary,
.nieru-external-embed-error {
    margin: .35rem 0;
    overflow-wrap: anywhere;
    white-space: normal;
}

.nieru-external-embed-error {
    font-size: .88rem;
}

.nieru-external-embed-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem;
    margin-top: .5rem;
}

.nieru-external-embed-load {
    min-height: 2.5rem;
    padding: .45rem .8rem;
    border: 1px solid currentColor;
    border-radius: 6px;
    color: inherit;
    background: transparent;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.nieru-external-embed-load:hover,
.nieru-external-embed-load:focus-visible {
    background: rgba(127, 127, 127, .12);
}

.nieru-external-embed-load:disabled {
    cursor: wait;
    opacity: .65;
}

.nieru-external-embed.is-loaded {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;
}

.nieru-external-embed-frame {
    display: block;
    width: 100%;
    max-width: 600px;
    border: 0;
    background: rgba(127, 127, 127, .08);
}

.nieru-external-embed-frame--video {
    aspect-ratio: 16 / 9;
    height: auto;
}

.nieru-external-embed-frame--vertical {
    width: min(100%, 360px);
    aspect-ratio: 9 / 16;
    height: auto;
    min-height: 480px;
}

.nieru-external-embed-frame--social {
    height: 560px;
}

.nieru-external-embed-frame--audio-compact {
    height: 152px;
}

.nieru-external-embed-frame--audio {
    height: 352px;
}

.nieru-external-embed-media {
    display: block;
    max-width: 100%;
}

.nieru-external-embed-media--image,
.nieru-external-embed-media--video {
    width: auto;
    max-height: min(70vh, 720px);
}

.nieru-external-embed-media--audio {
    width: 100%;
}

/* Floating video player */
html.nieru-floating-embed-enabled .nieru-floating-embed-placeholder {
    display: block;
    max-width: 100%;
    margin: .5rem 0;
}

html.nieru-floating-embed-enabled .nieru-floating-embed-placeholder[hidden] {
    display: none !important;
}

html.nieru-floating-embed-enabled .nieru-external-embed.is-loaded.nieru-floating-embed-active {
    position: fixed;
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 2147483000;
    width: min(420px, calc(100vw - 24px));
    max-width: none;
    max-height: calc(100vh - 24px);
    margin: 0;
    border-radius: 8px;
    background: #000;
    box-shadow: 0 12px 36px rgba(0, 0, 0, .38);
    overflow: hidden;
    isolation: isolate;
}

html.nieru-floating-embed-enabled .nieru-external-embed--vertical.is-loaded.nieru-floating-embed-active {
    width: min(220px, calc(100vw - 24px));
}

html.nieru-floating-embed-enabled .nieru-floating-embed-active .nieru-external-embed-frame {
    width: 100%;
    max-width: none;
}

html.nieru-floating-embed-enabled .nieru-floating-embed-control {
    display: none;
}

html.nieru-floating-embed-enabled .nieru-floating-embed-active .nieru-floating-embed-control {
    position: absolute;
    top: 8px;
    z-index: 2;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 0, 0, .72);
    font: 700 22px/1 sans-serif;
    cursor: pointer;
}

html.nieru-floating-embed-enabled .nieru-floating-embed-active .nieru-floating-embed-return {
    right: 48px;
    font-size: 19px;
}

html.nieru-floating-embed-enabled .nieru-floating-embed-active .nieru-floating-embed-dismiss {
    right: 8px;
}

html.nieru-floating-embed-enabled .nieru-floating-embed-active .nieru-floating-embed-control:hover,
html.nieru-floating-embed-enabled .nieru-floating-embed-active .nieru-floating-embed-control:focus-visible {
    background: rgba(0, 0, 0, .92);
}

@media (max-width: 640px) {
    html.nieru-floating-embed-enabled .nieru-external-embed.is-loaded.nieru-floating-embed-active {
        right: max(8px, env(safe-area-inset-right));
        bottom: max(8px, env(safe-area-inset-bottom));
        width: min(320px, calc(100vw - 16px));
        max-height: calc(100vh - 16px);
    }

    html.nieru-floating-embed-enabled .nieru-external-embed--vertical.is-loaded.nieru-floating-embed-active {
        width: min(200px, calc(100vw - 16px));
    }
}

.nieru-external-embed-social-host {
    width: min(100%, 600px);
    max-width: 600px;
    margin: .5rem 0;
    overflow-wrap: anywhere;
}

.nieru-twitter-plaintext {
    white-space: pre-wrap;
}

.img-thumbnail,
.embed-youtube-img,
.embed-image,
.video-thumbnail {
    max-width: 128px;
    height: auto;
}

@media (max-width: 640px) {
    .nieru-external-embed {
        padding: .65rem;
    }

    .nieru-external-embed-frame--vertical {
        min-height: 440px;
    }

    .nieru-external-embed-frame--social {
        height: 520px;
    }
}

img.emoji {
    height: 1em;
    width: 1em;
    margin: 0 .05em 0 .1em;
    vertical-align: -0.1em;
}

img {
    max-height: 512px;
}

* , ::before , ::after { box-sizing: border-box; list-style: none; margin: 0; padding: 0; }
body { line-height: 1.3; letter-spacing: .03em; word-break:break-all; -webkit-text-size-adjust:none; }
hr { display:none; }
ul { list-style:none; }
a { text-decoration:none; }
img { max-width:100%; height:auto; }
iframe{ max-width:100%; overflow:hidden; }
input[type="text"], input[type="email"], input[type="url"] { width: 50%; margin: .5rem 0rem; padding: 6px; height: 40px; border: 1px solid #d1d2d3; border-radius: 3px; box-shadow: inset 0 2px 2px 0 #dddddd; }
input[type="number"] { margin: .1rem 0rem; padding: 6px; height: 40px; border: 1px solid #d1d2d3; border-radius: 3px; box-shadow: inset 0 2px 2px 0 #dddddd; text-align: center; }
select, input[type="date"] { height: 40px; margin: .5rem 0rem; border: 1px solid #b3b3b3; border-radius: 5px; background: #ffffff; }
input[type="file"] { margin: .2rem 0rem; }
textarea { width: 90% !important; margin: .5rem .1rem; padding: 6px; height: 300px; border: 1px solid #d1d2d3; border-radius: 3px; box-shadow: inset 0 2px 2px 0 #dddddd; 
}
/* ボタン */
button[type="submit"] { padding: .5rem 1rem; background-color:#f9f9f9; color: #333333; }
input[type="submit"], button[type="submit"], button[type="button"] { padding: .5rem 1rem; font-weight: bold; border-radius: 5px; border: 2px solid #cccccc; }
input[type="submit"]:active,  button[type="submit"]:active, button[type="button"]:active { transform: translate(0,2px); border-bottom:none; border-top:1px; background-color:#f0f0f0; }
input[type="submit"]:hover, button[type="submit"]:hover, button[type="button"]:hover { background-color:#f0f0f0; }
.page-jump-btn { text-align: center; font-size: 90%; }
.page-jump-btn span { display: inline-block; min-height: 2rem; min-width: 3.5rem; line-height:2; background-color:#fff; color: #777777; border-radius: 5px; border: 1px solid #cccccc; margin: .2rem; }
.page-jump-btn a { display:inline-block; min-height: 2rem; min-width: 3.5rem; line-height:2; background-color:#999999; color: #fff; font-weight: bold; border-radius: 4px; border: 0px solid #cccccc; }
.page_idou_text { width: 5rem !important; text-align: right; }
span.log-mini-btn a { display: inline-block; padding: 3px 5px ; margin: 2px; text-align:center; min-width: 2rem; color:#444; font-size: 80%; border: 2px solid #cccccc; border-radius: 5px; background-color: #f9f9f9; } 
.vote-btn { padding: 3px 5px 3px 0; margin: 2px 2px 2px 0; }
.button-link { background-color:#999999 !important; margin: .5rem auto !important; padding: .5rem 1rem !important; font-size: 80%;}
.download-button { background-color:#999999 !important; color: #ffffff; margin: 1rem auto .2rem !important; }
.download-button:hover { opacity: .7; background-color:#999999 !important; }
@media (min-width: 641px) {
.button-link { width: 30%; font-size: 100%; }
}
.site-title h1 { margin: 1rem 1rem 2rem; }
.site-title h1 a { font-weight: 400; font-size: 140%;
}
/* パンくずリスト */
.breadcrumb { margin-top: .8rem; margin-bottom: .8rem; padding: 0rem .5rem; overflow-x: scroll; flex-wrap: nowrap; border-top: 1px solid #cccccc; border-bottom: 1px solid #cccccc; font-size: 80%; -ms-overflow-style: none; scrollbar-width: none; }
.breadcrumb-item { height: 2.5rem; white-space: nowrap; }
.breadcrumb-item a { display: flex; align-items: center; padding: 1rem .5rem; }
.breadcrumb::-webkit-scrollbar { display: none; 
}
/* 見出し */
div.th-title { margin: 8px 0; padding: 1rem; text-align: center; background: #dcdcdc; color: #333333; border: 1px solid #dcdcdc;
}
.th-list { margin-top: 0; margin-bottom: .5rem; padding: 8px 1rem 0 2rem; color: #999999; font-size: 120%; font-weight: 600; }
.th-list div { margin-right: .5rem; display:inline-block;
 }
/* メニュー */
.mn-btn { text-align: center; margin: 8px auto; padding: 0; }
.mn-btn a { display:inline-block; margin: 0 8px; padding: .8rem; width: 35%; background-color: #999999; color: #ffffff; border-radius: 5px; font-weight: bold; text-align: center; border: 1px solid #999999; box-shadow: 0px 0px 0px 1px rgba(255,255,255,0.5) inset; }
.mn-btn a:hover { opacity: .7;
}
.post-btn a { width: 30%; color: #fff; background: #999999; font-weight: bold; font-size: 100%; text-align: center; display: inline-block; border: 1px solid #999999; margin: 2px 4px; padding: .5rem 0; border-radius: 5px; box-shadow: 0px 0px 0px 1px rgba(255,255,255,0.5) inset; 
} 
/* スレッド一覧 */
div.thread-list { margin: .5rem auto; }
div.thread-frame { margin: 8px; padding: 0; border-radius: 3px; border: 1px solid #cccccc; box-shadow: 1px 1px 2px rgba(000,000,000,0.2); }
div.thread-frame a { display:block; min-height: 80px; line-height: 50%; margin: 0; padding: 8px; font-weight: 600; }
div.thread-frame .thread { display:flex; }
div.thread-frame .thumbnail { display:block; width:90px; height:90px; object-fit:cover; margin-right:10px; }
div.thread-frame .thread-text { line-height:1.4; font-size: 100%; }
div.thread-frame .thread-text span { color: #777777; font-size: 80%; }
div.thread-frame a:hover, a.article:hover { background-color: #e5e5e5; }
div.thread-list select { height: 40px; margin: .5rem .1rem .5rem 1rem; border: 1px solid #b3b3b3; border-radius: 5px; background: #ffffff; }
div.thread-list input[type="submit"] { height: 40px; margin: .2rem .1rem; padding: 0 1rem; background-color:#f9f9f9; color: #686968; font-weight: bold; border-radius: 5px; border: 2px solid #cccccc; }
.articles_wrap { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: auto 1fr; grid-gap: 14px 3vw; margin: .8rem; }
.articles_head { grid-column: 1 / -1; grid-row: 1; }
.article { grid-column: span 6; border-radius: 3px; border: 1px solid #ccc; }
.article .thumbnail { width: 100% !important; height: 160px !important; border-radius: 2px 2px 0 0; }
.article .thread-text { padding: 0 .5rem .5rem; }
.article p { margin-top: .2rem; }
.article .th-title { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: 3; /* 行数指定 */ max-height: calc(1.5em * 3); }
.article .th-date { font-size: 80%; color: #777777; }
.grid-kanri { width: 300px; }
@media screen and (min-width: 600px) {
.articles_wrap { grid-gap: 14px 1.2vw; }
.article { grid-column: span 3; }
.grid-kanri { width: 500px; }
}
/* レス */
div.log-frame { padding: 10px; margin: 10px 8px; border: 2px solid #cccccc; border-radius: 10px; }
p.line-text { margin: 1rem 0 1.5rem; }
/* .loop-file { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); align-items:flex-end; gap:3px; } */

.loop-file { 
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  display: flex;
  gap: 16px;
  padding-bottom: .8rem;
/* マーカーグループの表示位置を指定 */
  scroll-marker-group: after;
  /* マーカーグループのスタイリング */
  &::scroll-marker-group {
    /* マーカーを横並びに配置 */
    display: flex;
    gap: 8px;
    place-content: safe center;
    margin-top: 0;
    margin-bottom: 2rem;
  }
}
.img-frame { 
  flex: 1 0 auto; 
  width: 100%; 
  max-width: 150px; 
  height: auto; 
  aspect-ratio: 16 / 9; 
  border: 1px solid #cccccc;
  border-radius: 2px;
}
.img-frame, .video-container, .embed-audio  { 
  scroll-snap-align: start;
  scroll-snap-stop: always;
/* マーカーのスタイリング */
  &::scroll-marker {
    aspect-ratio: 1 / 1;
    content: "";
    width: 16px;
    height: 16px;
    border: 1px solid #999999;
    border-radius: 100%;
  } 
  /* 現在のマーカーのスタイリング */
  &::scroll-marker:target-current {
    border: 1px solid #999999;
    background-color: #999999;
  }
}
.embed-audio { 
  flex: 1 0 auto;
  width: 100%; 
  max-width: 320px; 
  aspect-ratio: 16 / 9;
}

/* .img-frame { display:inline-block; width: 100px; height: auto; border: 1px solid #cccccc; border-radius: 2px; margin: .1rem 0; padding: 0; } */
.img-frame a { display:block; margin: 0; padding: .15rem; }
.img-frame .image { width: 100% !important; height: auto !important; object-fit: cover; }
.img-frame .img-size, .video-container .vdo-size { font-size: .8rem; }
.video-container { margin: 1rem 0 0; padding: 0; }
.video-container .vdo-size { margin-top: -0.3rem; }
.embed-audio { display:block; margin-bottom: 0; } 
.img-thumbnail, .embed-image, .video-thumbnail { max-width: auto; height: 128px; } 
.embed-youtube-img { max-width: 100%; max-height: auto; }
@media (min-width: 641px) {
.embed-contents, .embed-video iframe, .embed-youtube iframe { max-width: 640px; max-height: 360px; }
.embed-audio { max-width: 350px; } 
.img-thumbnail, .embed-image, .video-thumbnail { max-width: 100%; height: 180px; } 
}
#write_option_button-field { border: 2px solid #cccccc; box-shadow: none !important; }
.file-box { border: none !important; box-shadow: none !important; }
.file-box h2 { margin: .5rem; color: #999999; }
.file-nav { display:none !important; }
a.image-link { height: 50vh; } 
.file-info { display:none !important; }
.file-info p { display: inline-block; margin-bottom: .8rem; padding: 2px; border-bottom:2px solid #cccccc; font-size: 80%;
}
@media (min-width: 641px) {
a.image-link { height: 80vh; } 
.download-button { max-width: 50%; margin: 20px auto 0 !important; }
}
/* マニュアル */
.manual_item_title { border-bottom: 1px #996633 solid; margin-bottom: .5rem; padding-bottom: .2rem; color: #663300; font-size: 120%; 
}
#delete_cookie { display:none;
}
/* フッター */
#footer { margin-bottom: .5rem; padding: 0; border-top: 1px solid #999999; text-align: center;
}
.info-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 2px; place-content: center; align-items: center; margin: .8rem auto .5rem; width: calc(100% - 2rem); }
.info-grid__item { margin: 0; padding: 0; }
.info-grid__item a { background-color: #fff; border: 1px solid #ccc; border-radius: 2px; font-size: .8rem; padding: .7rem 1rem; text-align: left; display: block; }
.info-grid__item a:hover { border-bottom: 1px solid #999999;
}
.copyright { margin: .5rem auto 0; padding: .5rem; font-size: 1rem; text-align: center; border-bottom: 3px solid #999999;
}
footer nav ul { margin: .6rem auto;
}
/* スマートフォン表示 */
@media (max-width: 767px) {
.pc { display:none; }
}
/* パソコン表示 */
@media (min-width: 768px) {
.sp { display:none; }
}

a.www-youtube-com { display:none; }

/* 画像を囲む白い枠の余白をなくす */
.lb-container { padding: 0 !important; }
/* 画像自体の最大サイズをビューポート（画面）いっぱいに広げる */
.lb-image { width: 90vw !important; height: auto !important; border-radius: 0 !important; /* 角丸があれば解除 */ }
/* 下部のキャプション部分が画像に被らないよう調整 */
.lb-dataContainer { width: 90% !important;
}
@media (min-width: 768px) {
.lb-image { width: auto !important; height: 80vh !important; }
.lb-dataContainer { width: 50% !important;
}
}