/* 写真でたどる東青協（/archive/）。TOPと同じ紙の地・明朝・紺の札で揃える。 */
.ts50-archive {
  --ts50-paper: #f4f1ea;
  --ts50-ink: #001040;
  --ts50-spot: #15a8e2;
  --ts50-mincho: "Shippori Mincho B1", "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  max-width: none !important;
  width: 100% !important;
  background: var(--ts50-paper);
  color: var(--ts50-ink);
  padding: 0 0 100px;
}
.ts50-archive *, .ts50-archive *::before, .ts50-archive *::after { box-sizing: border-box; }
.ts50-archive__intro { max-width: 860px; margin: 0 auto; padding: 72px 40px 24px; }
.ts50-archive__intro .post_content p { font-size: 16px; line-height: 2.1; color: #404853; }

/* 期の目次：上に貼りつく */
.ts50-archive__nav {
  position: sticky;
  top: 80px;
  z-index: 5;
  margin: 24px 0 0;
  background: rgba(244, 241, 234, .94);
  backdrop-filter: blur(6px);
  border-top: 1px solid #d9d2c3;
  border-bottom: 1px solid #d9d2c3;
}
.ts50-archive__nav ol { display: flex; gap: 0; max-width: 1240px; margin: 0 auto; padding: 0 40px; list-style: none; overflow-x: auto; scrollbar-width: none; }
.ts50-archive__nav ol::-webkit-scrollbar { display: none; }
.ts50-archive__nav li { flex: 0 0 auto; margin: 0; }
.ts50-archive__nav a {
  display: block;
  padding: 14px 22px 12px;
  color: var(--ts50-ink);
  font-family: var(--ts50-mincho);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.ts50-archive__nav a span { display: block; font-family: -apple-system, BlinkMacSystemFont, "Yu Gothic", Meiryo, sans-serif; font-size: 10px; font-weight: 500; letter-spacing: .06em; color: #6b7280; }
.ts50-archive__nav a:hover { border-bottom-color: var(--ts50-spot); }

/* 期 */
.ts50-archive__period { max-width: 1240px; margin: 0 auto; padding: 90px 40px 0; scroll-margin-top: 150px; }
.ts50-archive__period-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 22px; padding-bottom: 20px; margin-bottom: 8px; border-bottom: 2px solid var(--ts50-ink); }
.ts50-archive__period-head h2 {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  font-family: var(--ts50-mincho) !important;
  font-size: clamp(34px, 4vw, 54px) !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  color: var(--ts50-ink) !important;
  text-align: left !important;
}
.ts50-archive__period-head h2::before { display: none !important; }
.ts50-archive__years { order: -1; width: 100%; margin: 0; font-family: var(--ts50-mincho); font-size: 15px; letter-spacing: .08em; color: var(--ts50-spot); }
.ts50-archive__theme { margin: 0; font-size: 15px; color: #404853; }

/* 月 */
.ts50-archive__month { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 34px 0; border-bottom: 1px solid #d9d2c3; }
.ts50-archive__month-head h3 {
  margin: 0 0 10px !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  font-family: var(--ts50-mincho) !important;
  font-size: 34px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: var(--ts50-ink) !important;
  text-align: left !important;
}
.ts50-archive__month-head h3::before { display: none !important; }
.ts50-archive__month-head h3 span { margin: 0 2px; font-size: 15px; }
.ts50-archive__month-label { font-size: 22px !important; }
.ts50-archive__events { margin: 0; padding: 0; list-style: none; }
.ts50-archive__events li { margin: 0 0 6px; padding-left: 14px; position: relative; font-size: 13px; line-height: 1.75; color: #404853; }
.ts50-archive__events li::before { content: ""; position: absolute; left: 0; top: .75em; width: 6px; height: 1px; background: var(--ts50-spot); }
.ts50-archive__month--feature { background: #fff; margin: 24px -24px; padding: 34px 24px; border: 1px solid #e3dccd; }

/* 写真：高さを揃えて横に詰める */
.ts50-archive__photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.ts50-archive__photo { margin: 0; overflow: hidden; aspect-ratio: 4 / 3; background: #e6e0d3; }
.ts50-archive__photo a { display: block; width: 100%; height: 100%; }
.ts50-archive__photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.ts50-archive__photo a:hover img { transform: scale(1.04); }

/* 飯島期の下：2026–2027期の公式サイト「響く、東青協」へ */
.ts50-resound {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  margin: 48px 0 0;
  color: #f4f1ea;
  text-decoration: none !important;
  background: var(--ts50-ink);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 18px 40px -26px rgba(0, 16, 64, .55);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s;
}
/* 響く東青協のロゴの下にある、赤と紺の2本線 */
.ts50-resound::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 10px;
  background: linear-gradient(#c8161d 0 3px, transparent 3px 5px, #1c2f6b 5px 10px);
}
.ts50-resound__logo { display: flex; align-items: center; justify-content: center; padding: 40px 36px 50px; background: #fff; }
.ts50-resound__logo img { display: block; width: 100%; max-width: 300px; height: auto; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.ts50-resound__body { display: flex; flex-direction: column; justify-content: center; padding: 44px 48px 54px; }
.ts50-resound__kicker { font-size: 13px; letter-spacing: .12em; color: var(--ts50-spot); }
.ts50-resound__title { margin: 10px 0 0; font-family: var(--ts50-mincho); font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; line-height: 1.45; }
.ts50-resound__text { margin: 16px 0 0; font-size: 14px; line-height: 1.95; color: rgba(244, 241, 234, .82); }
.ts50-resound__more { display: inline-flex; align-items: center; gap: 14px; align-self: flex-start; margin: 26px 0 0; padding: 0 0 6px; font-family: var(--ts50-mincho); font-size: 16px; font-weight: 700; border-bottom: 1px solid rgba(244, 241, 234, .5); }
.ts50-resound__more i { position: relative; width: 34px; height: 34px; border-radius: 50%; background: #f4f1ea; transition: transform .5s cubic-bezier(.2, .7, .2, 1), background .3s; }
/* 外のサイトへ：右上向きの矢印 */
.ts50-resound__more i::before { content: ""; position: absolute; left: 12px; top: 12px; width: 9px; height: 9px; border-top: 2px solid var(--ts50-ink); border-right: 2px solid var(--ts50-ink); }
.ts50-resound__more i::after { content: ""; position: absolute; left: 11px; top: 16px; width: 13px; height: 2px; background: var(--ts50-ink); transform: rotate(-45deg); transform-origin: 50% 50%; }
.ts50-resound:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -26px rgba(0, 16, 64, .7); }
.ts50-resound:hover .ts50-resound__logo img { transform: scale(1.05); }
.ts50-resound:hover .ts50-resound__more i { transform: translate(3px, -3px); background: var(--ts50-spot); }

.ts50-archive__note { max-width: 1240px; margin: 48px auto 0; padding: 0 40px; font-size: 12px; line-height: 1.9; color: #6b7280; }

/* 大きく見る */
.ts50-lightbox { max-width: min(92vw, 1400px); max-height: 92vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.ts50-lightbox::backdrop { background: rgba(0, 10, 40, .88); }
.ts50-lightbox figure { margin: 0; }
.ts50-lightbox img { display: block; max-width: 92vw; max-height: 84vh; width: auto; height: auto; margin: 0 auto; }
.ts50-lightbox figcaption { margin-top: 12px; color: #f4f1ea; font-size: 14px; text-align: center; }
.ts50-lightbox__close { position: absolute; top: -44px; right: 0; width: 40px; height: 40px; border: 0; background: none; color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }

@media (max-width: 860px) {
  .ts50-archive__intro { padding: 44px 20px 12px; }
  .ts50-archive__nav { top: 52px; }
  .ts50-archive__nav ol { padding: 0 12px; }
  .ts50-archive__nav a { padding: 12px 14px 10px; font-size: 15px; }
  .ts50-archive__period { padding: 64px 20px 0; }
  .ts50-archive__month { grid-template-columns: 1fr; gap: 14px; padding: 26px 0; }
  .ts50-archive__month-head h3 { font-size: 28px !important; }
  .ts50-archive__month--feature { margin: 16px -12px; padding: 24px 12px; }
  .ts50-archive__photos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .ts50-archive__note { padding: 0 20px; }
  .ts50-resound { grid-template-columns: 1fr; margin-top: 32px; }
  .ts50-resound__logo { padding: 28px 24px; }
  .ts50-resound__logo img { max-width: 220px; }
  .ts50-resound__body { padding: 28px 22px 40px; }
  .ts50-resound__text { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .ts50-archive__photo img { transition: none; }
  .ts50-resound, .ts50-resound__logo img, .ts50-resound__more i { transition: none; }
}

/* 記念誌づくりのための写真一覧（/kinenshi-photos/）。写真でたどる東青協と同じ見た目で、写真を多く並べる */
.ts50-kphotos__total { margin: 18px 0 0; font-family: var(--ts50-mincho); font-size: 18px; font-weight: 700; }
.ts50-kphotos__total b { font-size: 30px; margin: 0 2px; }
.ts50-kphotos__total small { margin-left: 8px; font-family: -apple-system, BlinkMacSystemFont, "Yu Gothic", Meiryo, sans-serif; font-size: 12px; font-weight: 500; color: #6b7280; }
.ts50-kphotos .ts50-archive__nav a[aria-current="page"] { border-bottom-color: var(--ts50-ink); }
.ts50-kphotos .ts50-archive__period { padding-top: 56px; }
.ts50-kphotos__toc { margin: 18px 0 10px; padding: 16px 20px; background: #fff; border: 1px solid #e3dccd; }
.ts50-kphotos__toc summary { cursor: pointer; font-family: var(--ts50-mincho); font-size: 16px; font-weight: 700; }
.ts50-kphotos__toc ol { columns: 2 380px; column-gap: 32px; margin: 12px 0 0; padding: 0; list-style: none; }
.ts50-kphotos__toc li { break-inside: avoid; margin: 0; border-bottom: 1px dotted #d9d2c3; }
.ts50-kphotos__toc a { display: grid; grid-template-columns: 9.5em 1fr auto; gap: 10px; padding: 6px 0; color: var(--ts50-ink); font-size: 13px; line-height: 1.6; text-decoration: none; }
.ts50-kphotos__toc a:hover span { text-decoration: underline; }
.ts50-kphotos__toc time { color: #6b7280; font-size: 12px; }
.ts50-kphotos__toc small { color: #6b7280; font-size: 12px; white-space: nowrap; }
.ts50-kphotos__group { scroll-margin-top: 150px; }
.ts50-kphotos .ts50-archive__month-head { position: sticky; top: 150px; align-self: start; }
.ts50-kphotos .ts50-kphotos__date { font-size: 21px !important; line-height: 1.4 !important; }
.ts50-kphotos__title { margin: 0 0 10px; font-family: var(--ts50-mincho); font-size: 18px; font-weight: 700; line-height: 1.5; }
.ts50-kphotos__folder { margin: 10px 0 0; font-size: 11px; line-height: 1.6; color: #8a8f98; word-break: break-all; }
.ts50-kphotos .ts50-archive__photos { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.ts50-kphotos .ts50-archive__photo img { height: 100%; }
.ts50-kphotos__box figcaption { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 13px; line-height: 1.7; }
.ts50-kphotos__orig { color: #9fdcf5; white-space: nowrap; }
.ts50-kphotos__prev, .ts50-kphotos__next { position: fixed; top: 50%; width: 52px; height: 72px; margin-top: -36px; border: 0; background: rgba(0, 10, 40, .45); color: #fff; font-size: 40px; line-height: 1; cursor: pointer; }
.ts50-kphotos__prev { left: 8px; }
.ts50-kphotos__next { right: 8px; }
.ts50-kphotos__prev:hover, .ts50-kphotos__next:hover { background: var(--ts50-spot); }
@media (max-width: 860px) {
  .ts50-kphotos .ts50-archive__month-head { position: static; }
  .ts50-kphotos .ts50-archive__photos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .ts50-kphotos__toc { padding: 12px 14px; }
  .ts50-kphotos__toc a { grid-template-columns: 7.5em 1fr auto; }
  .ts50-kphotos__prev, .ts50-kphotos__next { width: 40px; height: 56px; margin-top: -28px; font-size: 30px; }
}
.ts50-kphotos__count { margin: 0 0 8px; font-size: 13px; color: #404853; }
.ts50-kphotos__info[hidden] { display: none; }
.ts50-kphotos__info { margin-top: 10px; }
.ts50-kphotos__folders { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.ts50-kphotos__folders button { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 6px 10px; border: 1px solid #d9d2c3; background: #fff; color: var(--ts50-ink); font-size: 12.5px; line-height: 1.5; text-align: left; cursor: pointer; }
.ts50-kphotos__folders button small { flex: none; color: #6b7280; font-size: 11px; font-variant-numeric: tabular-nums; }
.ts50-kphotos__folders button:hover { border-color: var(--ts50-ink); }
.ts50-kphotos__folders button[aria-pressed="true"] { background: var(--ts50-ink); border-color: var(--ts50-ink); color: #fff; }
.ts50-kphotos__folders button[aria-pressed="true"] small { color: #d7dbe3; }
.ts50-kphotos .ts50-archive__photo { position: relative; }
.ts50-kphotos__no { position: absolute; left: 0; bottom: 0; padding: 0 5px; background: rgba(0, 10, 40, .55); color: #fff; font-size: 10px; line-height: 1.6; letter-spacing: .03em; font-variant-numeric: tabular-nums; pointer-events: none; }
.ts50-kphotos__find { position: relative; margin: 18px 0 0; }
.ts50-kphotos__find label { display: block; margin: 0 0 6px; font-family: var(--ts50-mincho); font-size: 16px; font-weight: 700; }
.ts50-kphotos__find input { display: block; width: 100%; box-sizing: border-box; padding: 10px 14px; border: 1px solid #d9d2c3; border-radius: 0; background: #fff; color: var(--ts50-ink); font-size: 16px; line-height: 1.5; }
.ts50-kphotos__find input:focus { outline: 2px solid var(--ts50-spot); outline-offset: -1px; }
.ts50-kphotos__find ol { position: absolute; z-index: 20; left: 0; right: 0; max-height: 60vh; margin: 0; padding: 4px 14px; overflow-y: auto; background: #fff; border: 1px solid #d9d2c3; border-top: 0; list-style: none; box-shadow: 0 8px 20px rgba(0, 10, 40, .12); }
.ts50-kphotos__find ol[hidden] { display: none; }
.ts50-kphotos__find li { margin: 0; border-bottom: 1px dotted #d9d2c3; }
.ts50-kphotos__find li:last-child { border-bottom: 0; }
.ts50-kphotos__find li.is-none { padding: 8px 0; font-size: 13px; color: #6b7280; }
.ts50-kphotos__find a { display: grid; grid-template-columns: 14em 1fr auto; gap: 10px; padding: 7px 0; color: var(--ts50-ink); font-size: 13px; line-height: 1.6; text-decoration: none; }
.ts50-kphotos__find a:hover span { text-decoration: underline; }
.ts50-kphotos__find time, .ts50-kphotos__find small { color: #6b7280; font-size: 12px; white-space: nowrap; }
.ts50-kphotos__box { margin: auto; }
.ts50-kphotos__box img { max-height: 76vh; }
.ts50-kphotos__box .ts50-lightbox__close { position: fixed; top: 10px; right: 10px; background: rgba(0, 10, 40, .45); }
.ts50-kphotos__box figcaption { display: block; }
.ts50-kphotos__bar { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px 14px; margin-bottom: 4px; }
.ts50-kphotos__num { font-size: 17px; font-weight: 700; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.ts50-kphotos__copy { padding: 0; border: 0; background: none; color: #9fdcf5; font-size: 13px; line-height: 1.7; text-decoration: underline; cursor: pointer; }
.ts50-kphotos__copy[hidden] { display: none; }
.ts50-kphotos__box.is-loading .ts50-kphotos__bar::after { content: "元の写真を読み込み中…"; flex-basis: 100%; color: #c9cdd6; font-size: 12px; }
@media (max-width: 860px) {
  .ts50-kphotos__folders { flex-direction: row; flex-wrap: wrap; }
  .ts50-kphotos__find a { grid-template-columns: 1fr auto; }
  .ts50-kphotos__find time { grid-column: 1 / -1; }
  .ts50-kphotos__prev, .ts50-kphotos__next { background: rgba(0, 10, 40, .25); }
}
.ts50-kphotos__markcount { font-weight: 500; font-variant-numeric: tabular-nums; }
.ts50-kphotos__same { display: grid; grid-template-columns: 16px 1fr; align-items: start; gap: 0 8px; margin: 14px 0 0; font-size: 14px; line-height: 1.6; cursor: pointer; }
.ts50-kphotos__same input { width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--ts50-ink); }
.ts50-kphotos__same small { grid-column: 2; color: #6b7280; font-size: 12px; }
.ts50-kphotos__same + .ts50-kphotos__same { margin-top: 4px; }
.ts50-kphotos__mark { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 10, 40, .45); cursor: pointer; }
.ts50-kphotos__mark::before { content: ""; position: absolute; inset: 6px; background: rgba(255, 255, 255, .8); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.ts50-kphotos__mark:hover { background: rgba(0, 10, 40, .75); }
.ts50-kphotos__mark.is-on { background: #fff; box-shadow: 0 0 0 1px rgba(0, 10, 40, .25); }
.ts50-kphotos__mark.is-on::before { background: var(--ts50-spot); }
.ts50-kphotos__mark.is-mine { background: var(--ts50-spot); box-shadow: 0 0 0 2px #fff; }
.ts50-kphotos__mark.is-mine::before { background: #fff; }
.ts50-kphotos__more { position: absolute; right: 0; bottom: 0; padding: 0 5px; background: var(--ts50-ink); color: #fff; font-size: 10px; line-height: 1.6; font-variant-numeric: tabular-nums; pointer-events: none; }
.ts50-kphotos__want { display: inline-block; margin: 2px 0 6px; padding: 5px 14px 5px 32px; position: relative; border: 1px solid #9fdcf5; border-radius: 999px; background: none; color: #fff; font-size: 14px; line-height: 1.5; cursor: pointer; }
.ts50-kphotos__want::before { content: ""; position: absolute; left: 12px; top: 50%; width: 15px; height: 15px; margin-top: -8px; background: #9fdcf5; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.ts50-kphotos__want.is-on { border-color: #fff; background: rgba(255, 255, 255, .14); }
.ts50-kphotos__want.is-mine { border-color: var(--ts50-spot); background: var(--ts50-spot); }
.ts50-kphotos__want.is-mine::before { background: #fff; }
.ts50-kphotos__cap { display: block; }
.ts50-kphotos__sims { margin-top: 4px; color: #c9cdd6; font-size: 12px; line-height: 1.8; }
.ts50-kphotos__sims[hidden] { display: none; }
.ts50-kphotos__sims button { margin-left: 8px; padding: 0; border: 0; background: none; color: #9fdcf5; font-size: 12px; text-decoration: underline; cursor: pointer; }
.ts50-kphotos__sims button[aria-current] { color: #fff; text-decoration: none; cursor: default; }
.ts50-kphotos__picked { margin: 18px 0 8px; padding: 16px 20px; background: #fff; border: 1px solid #e3dccd; }
.ts50-kphotos__who { flex-direction: row; flex-wrap: wrap; margin-bottom: 12px; }
.ts50-kphotos__who:empty { display: none; }
.ts50-kphotos__zip a { display: inline-block; margin: 0 8px 8px 0; padding: 10px 18px; background: var(--ts50-ink); color: #fff; font-size: 14px; font-weight: 700; line-height: 1.5; text-decoration: none; }
.ts50-kphotos__zip a:hover { background: var(--ts50-spot); }
.ts50-kphotos__zip small { display: inline-block; margin-left: 10px; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.ts50-kphotos__golist { margin: 8px 0 0; font-size: 14px; line-height: 1.6; }
.ts50-kphotos__golist a { color: var(--ts50-ink); text-decoration: underline; }
.ts50-kphotos__golist a:hover { color: var(--ts50-spot); }
.ts50-kphotos__zip p { margin: 0 0 10px; color: #404853; font-size: 12.5px; line-height: 1.7; }
.ts50-kphotos__me { margin: 0; font-size: 13px; line-height: 1.7; }
.ts50-kphotos__me button { margin-left: 10px; padding: 0; border: 0; background: none; color: var(--ts50-ink); font-size: 13px; text-decoration: underline; cursor: pointer; }
.ts50-kphotos__empty { margin: 24px 0; font-size: 14px; line-height: 1.8; }
.ts50-kphotos__empty[hidden] { display: none; }
.ts50-kphotos__name { width: min(420px, calc(100vw - 32px)); padding: 22px 24px; border: 0; background: #fff; color: var(--ts50-ink); }
.ts50-kphotos__name::backdrop { background: rgba(0, 10, 40, .55); }
.ts50-kphotos__name label { display: block; margin: 0 0 8px; font-family: var(--ts50-mincho); font-size: 18px; font-weight: 700; }
.ts50-kphotos__name input { display: block; width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #d9d2c3; border-radius: 0; font-size: 16px; }
.ts50-kphotos__name p { margin: 10px 0 16px; color: #404853; font-size: 13px; line-height: 1.7; }
.ts50-kphotos__name div { display: flex; justify-content: flex-end; gap: 10px; }
.ts50-kphotos__name button { padding: 8px 16px; border: 1px solid var(--ts50-ink); background: #fff; color: var(--ts50-ink); font-size: 14px; cursor: pointer; }
.ts50-kphotos__name button[type="submit"] { background: var(--ts50-ink); color: #fff; }
.ts50-kphotos__toast { position: fixed; z-index: 30; left: 50%; bottom: 20px; max-width: calc(100vw - 32px); margin: 0; padding: 8px 16px; transform: translateX(-50%); background: #fff; color: var(--ts50-ink); font-size: 13px; line-height: 1.6; box-shadow: 0 4px 16px rgba(0, 10, 40, .3); }
.ts50-kphotos__toast[hidden] { display: none; }
.ts50-kphotos__tags { position: absolute; top: 0; left: 0; display: flex; flex-wrap: wrap; gap: 2px; max-width: calc(100% - 34px); pointer-events: none; }
.ts50-kphotos__hasmemo { padding: 0 5px; background: #fff; color: var(--ts50-ink); font-size: 10px; line-height: 1.6; }
.ts50-kphotos__flag { padding: 0 5px; background: rgba(0, 10, 40, .72); color: #fff; font-size: 10px; line-height: 1.6; }
.ts50-kphotos__hasmemo[hidden] { display: none; }
.ts50-kphotos__memo { max-width: 640px; margin: 8px auto 0; text-align: left; }
.ts50-kphotos__memo ul { margin: 0 0 6px; padding: 0; list-style: none; }
.ts50-kphotos__memo ul[hidden], .ts50-kphotos__memo form[hidden], .ts50-kphotos__memo-open[hidden] { display: none; }
.ts50-kphotos__memo li { margin: 0; padding: 4px 0; border-top: 1px solid rgba(255, 255, 255, .2); font-size: 13px; line-height: 1.7; }
.ts50-kphotos__memo li b { margin-right: 10px; color: #9fdcf5; font-weight: 700; }
.ts50-kphotos__memo li span { white-space: pre-wrap; overflow-wrap: anywhere; }
.ts50-kphotos__memo-open { display: block; margin: 0 auto; padding: 0; border: 0; background: none; color: #9fdcf5; font-size: 13px; line-height: 1.7; text-decoration: underline; cursor: pointer; }
.ts50-kphotos__memo textarea { display: block; width: 100%; box-sizing: border-box; padding: 8px 10px; border: 0; border-radius: 0; background: #fff; color: var(--ts50-ink); font-size: 16px; line-height: 1.6; resize: vertical; }
.ts50-kphotos__memo form div { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.ts50-kphotos__memo form button { padding: 5px 16px; border: 1px solid #9fdcf5; background: none; color: #fff; font-size: 13px; line-height: 1.6; cursor: pointer; }
.ts50-kphotos__memo form button[type="submit"] { border-color: var(--ts50-spot); background: var(--ts50-spot); }
.ts50-kphotos__csv { margin: 0 0 8px; font-size: 13px; line-height: 1.7; }
.ts50-kphotos__csv[hidden] { display: none; }
.ts50-kphotos__csv a { color: var(--ts50-ink); text-decoration: underline; }
.ts50-kphotos__csv b { font-weight: 500; }
.ts50-kphotos__box { max-height: 96vh; overflow: hidden auto; }
.ts50-kphotos__box img { max-height: 70vh; }
@media (min-width: 861px) {
  .ts50-kphotos .ts50-archive__nav ol { justify-content: space-between; padding: 0 12px; overflow: visible; }
  .ts50-kphotos .ts50-archive__nav a { padding: 12px 8px 10px; }
  .ts50-kphotos .ts50-archive__nav a span { letter-spacing: 0; }
}
@media (min-width: 861px) and (max-width: 1239px) {
  .ts50-kphotos .ts50-archive__nav ol { display: grid; grid-template-columns: repeat(4, 1fr); }
  .ts50-kphotos .ts50-archive__month-head { top: 204px; }
  .ts50-kphotos__group { scroll-margin-top: 204px; }
}
@media (max-width: 860px) {
  .ts50-kphotos .ts50-archive__nav ol { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0 4px; overflow: visible; }
  .ts50-kphotos .ts50-archive__nav a { padding: 8px 2px 6px; font-size: 12.5px; line-height: 1.4; text-align: center; white-space: normal; }
  .ts50-kphotos .ts50-archive__nav a span { display: none; }
}
.ts50-kphotos__erase { position: absolute; right: 0; bottom: 0; padding: 0 6px; border: 0; background: #fff; color: var(--ts50-ink); font-size: 11px; line-height: 1.8; cursor: pointer; }
.ts50-kphotos__erase:hover { background: var(--ts50-ink); color: #fff; }
.ts50-kphotos__wantwho { margin: 0 0 6px; font-size: 13px; line-height: 1.7; }
.ts50-kphotos__wantwho[hidden] { display: none; }
.ts50-kphotos__wantwho button { margin-left: 12px; padding: 0; border: 0; background: none; color: #9fdcf5; font-size: 13px; text-decoration: underline; cursor: pointer; }
.ts50-kphotos__wantwho button[hidden] { display: none; }
.ts50-kphotos__uses { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 6px; }
.ts50-kphotos__uses button { padding: 2px 12px; border: 1px solid #9fdcf5; background: none; color: #fff; font-size: 13px; line-height: 1.7; cursor: pointer; }
.ts50-kphotos__uses button[aria-pressed="true"] { border-color: #fff; background: #fff; color: var(--ts50-ink); font-weight: 700; }
.ts50-kphotos__usefilter { flex-direction: row; flex-wrap: wrap; margin-bottom: 12px; }
.ts50-kphotos__usefilter:empty { display: none; }
.ts50-kphotos__usetag { position: absolute; left: 0; bottom: 18px; max-width: 100%; padding: 0 5px; background: var(--ts50-spot); color: #fff; font-size: 10px; line-height: 1.6; pointer-events: none; }
.ts50-kphotos__usetag[hidden] { display: none; }
.ts50-kphotos__gate { box-sizing: border-box; max-width: 452px; margin: 0 auto; padding: 56px 16px 0; }
.ts50-kphotos__gate label { display: block; margin: 0 0 12px; font-family: var(--ts50-mincho); font-size: 22px; font-weight: 700; line-height: 1.5; }
.ts50-kphotos__gate input[name="ts50_pass"] { display: block; width: 100%; box-sizing: border-box; padding: 11px 12px; border: 1px solid #d9d2c3; border-radius: 0; background: #fff; font-size: 16px; }
.ts50-kphotos__gate button { display: block; width: 100%; margin: 12px 0 0; padding: 11px 16px; border: 1px solid var(--ts50-ink); border-radius: 0; background: var(--ts50-ink); color: #fff; font-size: 15px; cursor: pointer; }
.ts50-kphotos__gate p { margin: 14px 0 0; color: #404853; font-size: 13px; line-height: 1.8; }
.ts50-kphotos__gate .ts50-kphotos__gate-error { margin: 10px 0 0; color: #b3261e; font-weight: 700; }
.ts50-kphotos__howto { margin: 12px 0 0; font-size: 14px; line-height: 1.8; }
.ts50-kphotos__howto summary { cursor: pointer; text-decoration: underline; }
.ts50-kphotos__howto ol { margin: 8px 0 0; padding: 0 0 0 1.6em; list-style: decimal; }
.ts50-kphotos__howto li { margin: 2px 0; list-style: decimal; }
.ts50-kphotos__log { margin: 8px 0 0; font-size: 13px; line-height: 1.7; }
.ts50-kphotos__log[hidden] { display: none; }
.ts50-kphotos__log summary { cursor: pointer; text-decoration: underline; }
.ts50-kphotos__log ol { margin: 6px 0 0; padding: 0; list-style: none; }
.ts50-kphotos__log li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 5px 0; border-top: 1px solid #d9d2c3; list-style: none; }
.ts50-kphotos__log a { color: var(--ts50-ink); font-weight: 700; text-decoration: underline; }
.ts50-kphotos__log span { overflow-wrap: anywhere; }
.ts50-kphotos__log time { color: #6b7280; font-size: 12px; }
.ts50-kphotos__log button { margin-left: auto; padding: 0; border: 0; background: none; color: var(--ts50-ink); font-size: 13px; text-decoration: underline; cursor: pointer; }
.ts50-kphotos__log button:disabled { color: #6b7280; cursor: default; }
/* 見終わった行事と進み具合 */
.ts50-kphotos .ts50-archive__nav a { position: relative; }
.ts50-kphotos .ts50-archive__nav a small { margin-left: 6px; font-family: -apple-system, BlinkMacSystemFont, "Yu Gothic", Meiryo, sans-serif; font-size: 11px; font-weight: 500; color: #6b7280; font-variant-numeric: tabular-nums; }
.ts50-kphotos__tabbar::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 3px; height: 3px; background: linear-gradient(to right, var(--ts50-spot) var(--done, 0%), #ddd6c6 0); }
.ts50-kphotos__progress { width: 100%; margin: 0; font-size: 14px; color: #404853; }
.ts50-kphotos__progress b { font-family: var(--ts50-mincho); font-size: 18px; color: var(--ts50-ink); }
.ts50-kphotos__progress a { margin-left: 14px; color: var(--ts50-ink); text-decoration: underline; }
.ts50-kphotos__progress a:hover { color: var(--ts50-spot); }
.ts50-kphotos__done { display: block; width: 100%; max-width: 220px; margin: 10px 0; padding: 8px 10px; border: 1px solid var(--ts50-ink); background: #fff; color: var(--ts50-ink); font-size: 13px; line-height: 1.5; text-align: left; cursor: pointer; }
@media (hover: hover) {
  .ts50-kphotos__done:hover { border-color: var(--ts50-spot); color: var(--ts50-spot); }
}
.ts50-kphotos__done[aria-pressed="true"] { background: var(--ts50-ink); color: #fff; }
.ts50-kphotos__done[aria-pressed="true"]::before, .ts50-kphotos__toc li.is-done span::before { content: ""; display: inline-block; width: .36em; height: .72em; margin: 0 .6em .12em .15em; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(42deg); }
.ts50-kphotos__done small { margin-left: 8px; color: #d7dbe3; font-size: 11px; }
.ts50-kphotos__doneend { display: none; margin: 0; }
.ts50-kphotos__toc li.is-done span::before { color: var(--ts50-spot); }
@media (max-width: 860px) {
  .ts50-kphotos .ts50-archive__nav a small { display: none; }
  .ts50-kphotos__tabbar::after { left: 6px; right: 6px; bottom: 1px; }
  .ts50-kphotos__done { max-width: none; padding: 10px 12px; }
  .ts50-kphotos__doneend { display: block; }
}
/* 指で押す端末では、見た目は変えずに押せる範囲だけ広げる */
@media (pointer: coarse) {
  .ts50-kphotos__log button { position: relative; }
  .ts50-kphotos__log button::after { content: ""; position: absolute; inset: -12px -8px; }
  .ts50-kphotos__erase::after { content: ""; position: absolute; inset: -8px 0 0 -6px; }
}
