* { box-sizing: border-box; }

body {
margin: 0;
background: #fff8fb;
color: #4a3b42;
font-family: -apple-system, BlinkMacSystemFont, “Hiragino Sans”, “Yu Gothic”, “Meiryo”, sans-serif;
line-height: 1.7;
}

a { color: inherit; }

.wrap {
width: min(680px, 100%);
margin: 0 auto;
padding: 16px;
}

.site-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin: 0 0 16px;
}

.site-header h1 {
margin: 0;
font-size: 20px;
letter-spacing: .03em;
}

.admin-link,
button,
.pager a {
display: inline-block;
border: 0;
border-radius: 999px;
background: #ff8eb7;
color: #fff;
padding: 8px 14px;
font: inherit;
text-decoration: none;
cursor: pointer;
}

.timeline {
display: grid;
gap: 12px;
}

.post {
background: #fff;
border: 1px solid #f4d5e1;
border-radius: 18px;
padding: 14px;
box-shadow: 0 4px 14px rgba(120, 70, 90, .08);
}

.post-meta {
color: #9c7b89;
font-size: 12px;
margin-bottom: 6px;
}

.post-text {
white-space: normal;
overflow-wrap: anywhere;
word-break: break-word;
font-size: 15px;
}

.post-text a {
text-decoration: underline;
text-decoration-thickness: 1px;
text-underline-offset: 3px;
}

/* ===== 画像：縦並び・角丸ナシ ===== */
.post-images {
display: grid;
grid-template-columns: 1fr;
gap: 6px;
margin-top: 10px;
}

.post-images img {
width: 100%;
height: auto;
aspect-ratio: auto;
display: block;
object-fit: contain;
border-radius: 0;
background: #f8edf2;
}
/* ================================= */

.panel {
background: #fff;
border: 1px solid #f4d5e1;
border-radius: 18px;
padding: 14px;
box-shadow: 0 4px 14px rgba(120, 70, 90, .08);
display: grid;
gap: 10px;
margin-bottom: 16px;
}

input[type=“password”],
textarea {
width: 100%;
border: 1px solid #efc8d8;
border-radius: 12px;
padding: 10px;
font: inherit;
background: #fffafd;
}

textarea {
resize: vertical;
}

.notice {
background: #fff;
border: 1px solid #f4d5e1;
border-radius: 12px;
padding: 10px;
}

.hint {
margin: 0;
font-size: 12px;
color: #9c7b89;
}

.admin-actions {
margin: 0 0 16px;
text-align: right;
font-size: 13px;
}

.delete-form {
margin-top: 10px;
text-align: right;
}

.delete-form button {
background: #999;
font-size: 13px;
padding: 5px 10px;
}

.pager {
display: flex;
justify-content: space-between;
gap: 10px;
margin: 18px 0;
}

.empty {
background: #fff;
border: 1px solid #f4d5e1;
border-radius: 18px;
padding: 14px;
color: #9c7b89;
text-align: center;
}

/* iframe / 埋め込み表示用 */
.embed-body {
background: transparent;
}

.embed-timeline {
padding: 0;
display: grid;
gap: 10px;
}

.embed-post {
box-shadow: none;
}

/* YouTube / Bluesky 埋め込み */
.embed {
margin: 0.9em 0;
}

.embed-youtube {
position: relative;
width: 100%;
aspect-ratio: 16 / 9;
overflow: hidden;
border-radius: 14px;
background: #000;
box-shadow: 0 3px 10px rgba(120, 70, 90, .10);
}

.embed-youtube iframe {
width: 100%;
height: 100%;
border: 0;
display: block;
}

.embed-bsky {
width: 100%;
max-width: 600px;
overflow: hidden;
}

.embed-bsky .bluesky-embed {
width: 100% !important;
max-width: 100% !important;
margin: 0 !important;
border-radius: 14px !important;
}

.embed-bsky iframe {
max-width: 100%;
}

/* センシティブ投稿 */
.sensitive-check {
display: block;
font-size: 14px;
color: #9c4d6b;
}

.sensitive-check input,
.temporary-check input {
margin-right: 6px;
}

.temporary-check {
display: block;
font-size: 14px;
color: #9c6479;
}

/* 時限投稿：シンプルな文字表示のみ */
.temporary-label {
margin-bottom: 4px;
color: #9c7b89;
font-size: 12px;
line-height: 1.5;
}

.sensitive-label {
display: inline-block;
margin-left: 6px;
padding: 1px 7px;
border-radius: 999px;
background: #ffe3ef;
color: #c03f72;
}

.sensitive-box {
margin-top: 8px;
}

.sensitive-box summary {
cursor: pointer;
list-style: none;
display: inline-block;
padding: 8px 14px;
border-radius: 999px;
background: #ffe3ef;
color: #c03f72;
font-weight: bold;
border: 1px solid #f4b8cf;
}

.sensitive-box summary::-webkit-details-marker {
display: none;
}

.sensitive-box[open] summary {
margin-bottom: 10px;
}

.sensitive-inner {
margin-top: 10px;
}

/* 日付スタンプを非表示：ミニログ公開側・iframe側 */
.post-meta {
display: none;
}

/* 管理画面の一覧では日付を残す */
.admin-list .post-meta {
display: block;
}