/* =========================================================
   旅人日記（プラグイン mirai-tabibito）
   ========================================================= */

/* ---------- トップページ：今日の言葉・Miss Pentagon の右にカード ---------- */
/* 2026-10-16 見本7：横幅340px・高さ480px、2枚のカードの縦の中央に置く */
@media (min-width: 1280px) {
	.today-word-section .wrap:has(.tabibito-card) {
		max-width: var(--wrap);
		margin-left: auto;
		margin-right: auto;
		padding-left: var(--gutter);
		padding-right: var(--gutter);
		display: grid;
		grid-template-columns: minmax(0, 1000px) 340px;
		column-gap: clamp(28px, 4.9vw, 70px);
		justify-content: space-between;
		align-items: stretch;
	}
	.today-word-section .wrap:has(.tabibito-card) > .today-word-card { grid-column: 1; grid-row: 1; }
	.today-word-section .wrap:has(.tabibito-card) > .miss-pentagon-card { grid-column: 1; grid-row: 2; }
	.today-word-section .wrap:has(.tabibito-card) > .tabibito-card { grid-column: 2; grid-row: 1 / 3; align-self: center; margin: 0; }
}

.tabibito-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 340px;
	height: 480px;
	padding: 44px 24px 26px;
	box-sizing: border-box;
	background: #fdfcf7;
	border: 1px solid #e6e0d1;
	border-radius: 14px;
	text-decoration: none;
	color: inherit;
	box-shadow: 9px 11px 16px rgba(0, 0, 0, .36), 3px 4px 6px rgba(0, 0, 0, .16);
	transition: transform .15s ease;
}
.tabibito-card:hover { transform: translateY(-2px); }
/* 内側の細い金の額縁 */
.tabibito-card::after {
	content: "";
	position: absolute;
	inset: 9px;
	border: 1px solid rgba(176, 140, 70, .42);
	border-radius: 9px;
	pointer-events: none;
}
/* 蔦（いちばん手前・クリックは素通り） */
.tabibito-card-vines,
.tabibito-card-baby {
	position: absolute;
	pointer-events: none;
	z-index: 5;
}
.tabibito-card-vines {
	inset: 0;
	border-radius: 14px;
	background:
		url("vine-top-right.png") right top / 225px auto no-repeat,
		url("vine-bottom-left.png") left bottom / 285px auto no-repeat;
}
.tabibito-card-baby { background: center / 100% auto no-repeat; }
.tabibito-card-baby-l { left: -22px; top: 100px; width: 50px; height: 216px; background-image: url("vine-baby-left.png"); }
.tabibito-card-baby-r { right: -16px; top: 190px; width: 40px; height: 213px; background-image: url("vine-baby-right.png"); }
/* 英字（Future Library と同じ字体・金） */
.tabibito-card-label {
	position: relative;
	z-index: 3;
	margin-bottom: 20px;
	font-family: "Parisienne", cursive;
	font-size: 1.75rem;
	line-height: 1.1;
	letter-spacing: .02em;
	color: #a8863c;
	-webkit-text-stroke: .5px #a8863c;
	paint-order: stroke fill;
}
.tabibito-card-book {
	position: relative;
	z-index: 3;
	display: block;
	width: 150px;
	height: auto;
	margin: 0 auto;
	filter: drop-shadow(8px 12px 10px rgba(0, 0, 0, .38)) drop-shadow(2px 3px 3px rgba(0, 0, 0, .18));
}
.tabibito-card-orn {
	position: relative;
	z-index: 3;
	display: block;
	width: 170px;
	height: auto;
	margin: 16px 0 8px;
}
.tabibito-card-text {
	position: relative;
	z-index: 3;
	text-align: center;
	color: #8a6424;
	font-family: "Noto Serif JP", serif;
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.9;
	letter-spacing: .06em;
}
.tabibito-card-btn {
	position: relative;
	z-index: 3;
	display: block;
	width: 170px;
	box-sizing: border-box;
	margin: 16px auto 0;
	padding: 8px 0;
	background: #1f6b54;
	color: #fff;
	border-radius: 6px;
	text-align: center;
	font-weight: 700;
	font-size: .92rem;
	letter-spacing: .08em;
}

@media (max-width: 1279px) {
	.tabibito-card {
		margin: 22px auto 0;
	}
}

/* ---------- 旅人日記のページ ---------- */
/* サイトの題名（single-title）は隠し、綴り帖つきの題名だけを出す */
.page-tabibito-nikki .single-title, body:has(.tb-page) .single-title { display: none; }
.tb-page { max-width: 760px; margin: 0 auto; }
.tb-title {
	display: flex;
	align-items: center;
	gap: 14px;
	font-family: "Noto Serif JP", serif;
	color: #24523a;
	font-size: 2rem;
	margin: 0 0 6px;
}
.tb-title img { width: 46px; height: auto; }
.tb-greet {
	font-family: "Noto Serif JP", serif;
	color: #555;
	line-height: 2;
	border-left: 4px solid #e6e0d1;
	padding-left: 16px;
	margin: 18px 0 30px;
}
.tb-form {
	background: #fbf8ef;
	border: 1px solid #e6e0d1;
	border-radius: 12px;
	padding: 22px 24px;
	margin-bottom: 34px;
}
.tb-form h2, .tb-list h2 {
	font-family: "Noto Serif JP", serif;
	font-size: 1.15rem;
	color: #24523a;
	margin: 0 0 14px;
	border: 0;
	padding: 0;
}
.tb-form label { display: block; font-size: .85rem; color: #555; margin: 10px 0 6px; }
.tb-form input[type="text"], .tb-form textarea {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #d9d2bf;
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 16px;
	background: #fff;
	font-family: inherit;
}
.tb-form textarea {
	min-height: 130px;
	line-height: 32px;
	background: #fff repeating-linear-gradient(#fff 0 31px, #e7efe4 31px 32px);
}
.tb-btn {
	margin-top: 16px;
	background: #1f6b54;
	color: #fff;
	border: 0;
	border-radius: 6px;
	padding: 10px 32px;
	font-size: 1rem;
	cursor: pointer;
}
.tb-btn:hover { opacity: .9; }
.tb-small { font-size: .78rem; color: #888; margin: 12px 0 0; line-height: 1.7; }
.tb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tb-notice { padding: 10px 14px; border-radius: 8px; font-size: .92rem; margin: 0 0 12px; }
.tb-notice-ok { background: #eaf4e4; color: #24523a; }
.tb-notice-info { background: #eef3f8; color: #2c4a66; }
.tb-notice-warn { background: #fbefe6; color: #8a4b1c; }
.tb-list h2 { border-bottom: 1px solid #e6e0d1; padding-bottom: 8px; margin-bottom: 16px; }
.tb-entry {
	background: #fffdf6 repeating-linear-gradient(transparent 0 33px, #e9efe4 33px 34px);
	border: 1px solid #ece4cf;
	border-radius: 10px;
	padding: 14px 22px 10px;
	margin-bottom: 16px;
	box-shadow: 2px 3px 8px rgba(0, 0, 0, .06);
}
.tb-entry-text {
	font-family: "Kosugi Maru", "Hiragino Maru Gothic ProN", sans-serif; /* 2026-10-21 書体を小杉丸に（元：Zen Kurenaido） */
	font-size: 1.15rem;
	line-height: 34px;
	color: #333;
	word-break: break-word;
}
.tb-entry-meta { font-size: .78rem; color: #998; text-align: right; line-height: 30px; }
.tb-empty { color: #888; }
.tb-pager { display: flex; justify-content: space-between; margin-top: 10px; }
.tb-pager a { color: #24523a; }

/* ---------- 2026-10-07 追加：トップへ戻るボタン ---------- */
.tb-back { text-align: center; margin: 40px 0 10px; }
.tb-back a {
	display: inline-block;
	padding: 10px 28px;
	border: 1px solid #1f6b54;
	border-radius: 6px;
	color: #1f6b54;
	background: #fff;
	font-weight: 700;
	text-decoration: none;
}
.tb-back a:hover { background: #1f6b54; color: #fff; }

/* =========================================================
   2026-10-21 追加：書いた人が、自分の書き込みを直す・消す
   ========================================================= */
.tb-own { border: 1.5px solid #c9b27a !important; box-shadow: 0 0 0 3px rgba(201,178,122,.15); }
.tb-own-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 8px; padding-top: 8px; border-top: 1px dashed #e0d6bd; font-family: "Noto Sans JP", "Hiragino Sans", sans-serif; }
.tb-own-note { font-size: .75rem; color: #8a7a52; }
.tb-own-btns { display: flex; gap: 8px; }
.tb-own-btns-end { justify-content: flex-end; margin-top: 8px; }
.tb-mini { font-family: "Noto Sans JP", "Hiragino Sans", sans-serif; font-size: .8rem; padding: 5px 14px; border-radius: 999px; border: 1px solid #2f5d45; background: #fff; color: #2f5d45; cursor: pointer; line-height: 1.4; }
.tb-mini.del { border-color: #b5523b; color: #b5523b; }
.tb-mini.fill { background: #2f5d45; color: #fff; }
.tb-mini.fill.del { background: #b5523b; color: #fff; }
.tb-mini:disabled { opacity: .5; }
.tb-edit textarea { width: 100%; box-sizing: border-box; min-height: 110px; font: inherit; font-size: 1rem; padding: 10px; border: 1px solid #c9b27a; border-radius: 8px; background: #fffdf6; }
.tb-confirm { background: #fbf3ef; border: 1px solid #e7c3b8; border-radius: 8px; padding: 10px 12px; font-size: .85rem; color: #7a3b2c; }

/* 2026-10-21 追加：お名前欄のすぐ下の小さな説明（「旅の人」と表示されます） */
.tb-form .tb-hint { font-size: .78rem; color: #8a7a52; margin: 7px 0 4px 2px; line-height: 1.6; }

/* 2026-10-21 追加：下の注意書き。折り返した行・改行した行を「※」の次の文字の真下から始める */
.tb-small .tb-note { display: block; padding-left: 1.25em; text-indent: -1.25em; }
