/* TokoPhoto 共通UI（トップ / スポット検索 / 地区検索）。.tp 配下だけに効かせる */
.tp {
  --tp-ink: #1d2a26;
  --tp-sub: #5c6b66;
  --tp-line: rgba(29, 42, 38, .1);
  --tp-card: rgba(255, 255, 255, .95);
  --tp-soft: #f3f6f5;
  --tp-accent: #1f7a5a;
  --tp-accent-2: #2fae7f;
  --tp-hot: #ff6b3d;
  --tp-gold: #f5b301;
  --tp-radius: 16px;
  --tp-shadow: 0 10px 30px rgba(10, 30, 22, .18);
  color: var(--tp-ink);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  letter-spacing: .02em;
  text-align: left;
}
.tp h1, .tp h2, .tp h3, .tp h4 { text-transform: none; letter-spacing: .03em; color: inherit; margin: 0; }
.tp a { border-bottom: 0; }
.tp a:hover { text-decoration: none; }
.tp img { max-width: 100%; }
.tp ul, .tp ol { list-style: none; margin: 0; padding: 0; }
.tp p { margin: 0; }
.tp .fa-star { color: var(--tp-gold); }
.tp .fa-star-o { color: #cfd6d3; }

/* ---------- Search hero ---------- */
.tp-hero {
  position: relative; overflow: hidden;
  margin: 18px 0 22px; padding: 30px 32px 22px;
  border-radius: var(--tp-radius);
  color: #fff;
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 255, 255, .14) 0, transparent 35%),
    radial-gradient(circle at 0% 120%, rgba(47, 174, 127, .6) 0, transparent 50%),
    linear-gradient(135deg, #123b2f 0%, #1f7a5a 60%, #3aa17a 100%);
  box-shadow: var(--tp-shadow);
}
.tp-hero__deco { position: absolute; right: 3%; top: -10px; font-size: 200px; line-height: 1; color: rgba(255, 255, 255, .07); transform: rotate(-10deg); pointer-events: none; }
.tp-hero__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .18em; color: rgba(255, 255, 255, .7); }
.tp-hero__title { position: relative; font-size: 34px; font-weight: 800; line-height: 1.3; margin: 4px 0 6px !important; color: #fff !important; }
.tp-hero__lead { position: relative; color: rgba(255, 255, 255, .85); font-size: 14px; line-height: 1.8; }
.tp-hero__lead b { color: #fff; font-size: 18px; margin: 0 2px; }

.tp-search { position: relative; display: flex; margin: 18px 0 16px; max-width: 680px; }
.tp-search input[type=text] {
  flex: 1; min-width: 0; height: 52px; padding: 0 20px 0 48px;
  border: 0; border-radius: 999px 0 0 999px;
  font-size: 15px; color: var(--tp-ink); background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
}
.tp-search input[type=text]:focus { outline: 3px solid rgba(255, 255, 255, .5); outline-offset: 0; }
.tp-search > .fa-search { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: #93a19c; font-size: 16px; z-index: 1; }
.tp-search button {
  height: 52px; padding: 0 26px; border: 0; border-radius: 0 999px 999px 0;
  background: var(--tp-hot); color: #fff; font-weight: 800; font-size: 14px; letter-spacing: .08em;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18); cursor: pointer; transition: filter .15s;
}
.tp-search button:hover { filter: brightness(1.08); }

.tp-filters { position: relative; display: grid; gap: 8px; }
.tp-filter { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tp-filter > span { flex: none; width: 44px; font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, .65); letter-spacing: .1em; }
.tp-filter > div { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; min-width: 0; }
.tp-filter > div::-webkit-scrollbar { display: none; }

/* ---------- Chips ---------- */
.tp-chip {
  flex: none; display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 13px; border-radius: 999px;
  font-size: 12px; font-weight: 700; line-height: 1.5; white-space: nowrap;
  color: #fff !important; background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .25) !important;
  transition: background .15s, transform .15s;
}
.tp-chip:hover { background: rgba(255, 255, 255, .28); }
.tp-chip small { font-size: 10px; opacity: .75; font-weight: 600; }
.tp-chip.is-active { background: #fff; color: var(--tp-accent) !important; border-color: #fff !important; }
.tp-chip--hot { background: var(--tp-hot); border-color: transparent !important; }
.tp-chip--light { color: var(--tp-ink) !important; background: var(--tp-soft); border-color: transparent !important; }
.tp-chip--light:hover { background: #e2ebe7; }

/* ---------- Section ---------- */
.tp-section { margin: 0 0 30px; }
.tp-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.tp-section__head h2 { font-size: 22px; font-weight: 800; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .45); }
.tp-section__head h2 .fa { margin-right: 6px; }
.tp-section__head p { font-size: 13px; color: rgba(255, 255, 255, .85); margin-top: 4px; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.tp-more { flex: none; font-size: 13px; font-weight: 700; color: #fff !important; padding: 6px 14px; border-radius: 999px; background: rgba(0, 0, 0, .3); }
.tp-more:hover { background: rgba(0, 0, 0, .5); }
.tp-more .fa { margin-left: 4px; }

.tp-panel { background: var(--tp-card); border-radius: var(--tp-radius); box-shadow: var(--tp-shadow); padding: 22px 24px; }
.tp-panel .tp-section__head h2 { color: var(--tp-ink); text-shadow: none; }
.tp-panel .tp-section__head h2 .fa { color: var(--tp-accent); }
.tp-panel .tp-section__head p { color: var(--tp-sub); text-shadow: none; }
.tp-panel .tp-more { color: var(--tp-accent) !important; background: rgba(47, 174, 127, .1); }
.tp-panel .tp-more:hover { background: rgba(47, 174, 127, .2); }

/* ---------- Spot card ---------- */
.tp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.tp-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: 14px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x mandatory; }
.tp-row > * { scroll-snap-align: start; }
.tp-card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: var(--tp-card); border-radius: 14px; overflow: hidden;
  box-shadow: 0 6px 18px rgba(10, 30, 22, .16);
  color: var(--tp-ink) !important;
  transition: transform .2s, box-shadow .2s;
}
.tp-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(10, 30, 22, .26); }
.tp-card__img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #e4ebe8; }
.tp-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.tp-card:hover .tp-card__img img { transform: scale(1.06); }
.tp-card__img.is-noimg { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1f5c48, #2fae7f); }
.tp-card__img.is-noimg > .fa { font-size: 52px; color: rgba(255, 255, 255, .35); }
.tp-card__badges { position: absolute; left: 10px; top: 10px; right: 10px; display: flex; flex-wrap: wrap; gap: 5px; }
.tp-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.tp-badge--kind { background: var(--tp-accent-2); }
.tp-badge--hot { background: var(--tp-hot); }
.tp-card__rank { position: absolute; right: 10px; bottom: 10px; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: var(--tp-ink); background: rgba(255, 255, 255, .92); }
.tp-card__body { display: flex; flex-direction: column; gap: 5px; padding: 12px 14px 14px; flex: 1; }
.tp-card__cat { font-size: 11px; font-weight: 700; color: var(--tp-accent); }
.tp-card__title { font-size: 15px; font-weight: 800; line-height: 1.45; }
.tp-card__desc { font-size: 12.5px; color: var(--tp-sub); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tp-card__meta { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 11.5px; color: var(--tp-sub); border-top: 1px dashed var(--tp-line); }
.tp-card__meta .fa { color: var(--tp-accent-2); margin-right: 2px; }
.tp-card__meta .tp-stars { letter-spacing: 1px; font-size: 12px; }
.tp-card__meta .tp-stars .fa { margin: 0; }
.tp-card__meta .tp-stars .fa-star { color: var(--tp-gold); }
.tp-card__meta .tp-stars .fa-star-o { color: #cfd6d3; }

/* ---------- Tiles (kind / area / month) ---------- */
.tp-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 12px; }
.tp-tile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  min-height: 112px; padding: 16px; border-radius: 14px; overflow: hidden;
  color: #fff !important; background: linear-gradient(135deg, var(--c1, #1f7a5a), var(--c2, #2fae7f));
  box-shadow: 0 6px 18px rgba(10, 30, 22, .2);
  transition: transform .2s, box-shadow .2s;
}
.tp-tile:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(10, 30, 22, .28); }
.tp-tile > .fa { font-size: 26px; }
.tp-tile__bg { position: absolute; right: -14px; bottom: -22px; font-size: 96px !important; opacity: .16; transition: transform .3s; }
.tp-tile:hover .tp-tile__bg { transform: rotate(-8deg) scale(1.08); }
.tp-tile b { position: relative; font-size: 16px; font-weight: 800; }
.tp-tile small { display: block; font-size: 11px; opacity: .85; font-weight: 600; }
.tp-tile[data-k="1"] { --c1: #c4512b; --c2: #f08a4b; }
.tp-tile[data-k="2"] { --c1: #5b3f8c; --c2: #8b6cc6; }
.tp-tile[data-k="3"] { --c1: #2d5f8a; --c2: #4f97c9; }
.tp-tile[data-k="4"] { --c1: #1f6b45; --c2: #3fae6f; }
.tp-tile[data-k="5"] { --c1: #b8860b; --c2: #e6b422; }
.tp-tile[data-k="6"] { --c1: #36454f; --c2: #5f7684; }
.tp-tile[data-k="8"] { --c1: #b03a6f; --c2: #e0679b; }

.tp-areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.tp-area {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; border-radius: 12px;
  background: var(--tp-soft); color: var(--tp-ink) !important;
  border: 1px solid transparent; transition: background .15s, border-color .15s, transform .15s;
}
.tp-area:hover { background: #fff; border-color: var(--tp-accent-2); transform: translateY(-2px); }
.tp-area b { font-size: 14px; font-weight: 800; }
.tp-area b .fa { color: var(--tp-accent-2); margin-right: 6px; }
.tp-area span { font-size: 12px; font-weight: 700; color: var(--tp-accent); background: rgba(47, 174, 127, .12); padding: 2px 9px; border-radius: 999px; }
.tp-area.is-active { background: var(--tp-accent); color: #fff !important; }
.tp-area.is-active b .fa, .tp-area.is-active span { color: #fff; }
.tp-area.is-active span { background: rgba(255, 255, 255, .2); }

.tp-months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; }
.tp-month {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 0 10px;
  border-radius: 12px; background: var(--tp-soft); color: var(--tp-ink) !important;
  transition: background .15s, transform .15s;
}
.tp-month:hover { background: #e2ebe7; transform: translateY(-2px); }
.tp-month b { font-size: 17px; font-weight: 800; line-height: 1; }
.tp-month b small { font-size: 10px; margin-left: 1px; }
.tp-month i { display: block; width: 70%; height: 4px; border-radius: 2px; background: #dbe4e0; overflow: hidden; }
.tp-month i span { display: block; height: 100%; background: var(--tp-accent-2); }
.tp-month em { font-style: normal; font-size: 10px; color: var(--tp-sub); }
.tp-month.is-now { background: var(--tp-hot); color: #fff !important; }
.tp-month.is-now i { background: rgba(255, 255, 255, .35); }
.tp-month.is-now i span { background: #fff; }
.tp-month.is-now em { color: rgba(255, 255, 255, .9); }

/* Pickup themes */
.tp-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.tp-theme {
  position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden;
  background: linear-gradient(135deg, #1f5c48, #2fae7f); color: #fff !important;
}
.tp-theme img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.tp-theme:hover img { transform: scale(1.07); }
.tp-theme::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(0, 0, 0, .65)); }
.tp-theme b { position: absolute; left: 12px; bottom: 10px; right: 12px; z-index: 1; font-size: 14px; font-weight: 800; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.tp-theme--wide { grid-column: span 2; }
.tp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

/* Photos */
.tp-photos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.tp-photo { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: #e4ebe8; }
.tp-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.tp-photo:hover img { transform: scale(1.08); }
.tp-photo time { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 8px 6px; font-size: 10.5px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); }

/* Kind block in the landing page */
.tp-kindblock + .tp-kindblock { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--tp-line); }
.tp-kindblock h3 { display: flex; align-items: center; justify-content: space-between; font-size: 16px; font-weight: 800; margin-bottom: 10px; }
.tp-kindblock h3 .fa { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-right: 8px; font-size: 14px; color: #fff; background: var(--tp-accent-2); }
.tp-kindblock h3 a { font-size: 12px; color: var(--tp-accent) !important; font-weight: 700; }
.tp-kindblock .tp-card { box-shadow: 0 2px 8px rgba(10, 30, 22, .1); }
.tp-kindblock .tp-card__desc { display: none; }

/* ---------- Results ---------- */
.tp-result-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.tp-result-bar h2 { font-size: 22px; font-weight: 800; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .45); }
.tp-result-bar h2 small { font-size: 13px; font-weight: 700; margin-left: 8px; opacity: .85; }
.tp-empty { text-align: center; padding: 48px 20px; }
.tp-empty .fa { font-size: 48px; color: #c6d3ce; }
.tp-empty h3 { font-size: 18px; font-weight: 800; margin: 14px 0 6px; }
.tp-empty p { color: var(--tp-sub); margin-bottom: 18px; }

.tp-pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 22px 0 8px; }
.tp-pager ul { display: flex; gap: 6px; }
.tp-pager li a, .tp-pager li span, .tp-pager__count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 14px;
  border-radius: 999px; font-size: 13px; font-weight: 700;
  background: var(--tp-card); color: var(--tp-ink) !important; box-shadow: 0 4px 12px rgba(10, 30, 22, .15);
}
.tp-pager li a:hover { background: var(--tp-accent); color: #fff !important; }
.tp-pager li.disabled a, .tp-pager li.disabled span { opacity: .4; pointer-events: none; }
.tp-pager__count { background: rgba(0, 0, 0, .35); color: #fff !important; box-shadow: none; }

.tp-towns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; position: relative; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .tp-months { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tp-photos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .tp-hero { margin-top: 10px; padding: 22px 16px 16px; }
  .tp-hero__title { font-size: 25px; }
  .tp-hero__deco { font-size: 130px; }
  .tp-search input[type=text] { height: 48px; font-size: 14px; }
  .tp-search button { height: 48px; padding: 0 18px; }
  .tp-filter { flex-direction: column; align-items: stretch; gap: 2px; }
  .tp-filter > span { width: auto; }
  .tp-section__head h2, .tp-result-bar h2 { font-size: 18px; }
  .tp-panel { padding: 18px 14px; }
  .tp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tp-card__body { padding: 10px 10px 12px; }
  .tp-card__title { font-size: 13.5px; }
  .tp-card__desc { display: none; }
  .tp-row { grid-auto-columns: 62%; }
  .tp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-months { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tp-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tp-themes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .tp * { transition: none !important; animation: none !important; }
}
@media (max-width: 767px) {
  .tp-section__head { flex-direction: column; align-items: flex-start; }
}

/* ---------- 共通サブナビ（spot_search 要素） ---------- */
.tp-subnav {
  margin: 18px 0 10px; padding: 14px 16px 10px;
  background: rgba(255, 255, 255, .94); border-radius: var(--tp-radius);
  box-shadow: var(--tp-shadow);
}
.tp-subnav__top { display: flex; align-items: center; gap: 14px; }
.tp-subnav__brand { flex: none; font-size: 15px; font-weight: 800; color: var(--tp-ink) !important; }
.tp-subnav__brand .fa { color: var(--tp-accent-2); }
.tp-subnav__search { position: relative; flex: 1; min-width: 0; margin: 0; }
.tp-subnav__search input[type=text] {
  width: 100%; height: 42px; padding: 0 16px 0 40px;
  border: 1px solid #dbe4e0; border-radius: 999px; background: #f8faf9;
  font-size: 14px; color: var(--tp-ink); transition: border-color .15s, background .15s;
}
.tp-subnav__search input[type=text]:focus { outline: 0; border-color: var(--tp-accent-2); background: #fff; box-shadow: 0 0 0 3px rgba(47, 174, 127, .15); }
.tp-subnav__search > .fa { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #93a19c; }
.tp-subnav__chips {
  display: flex; align-items: center; gap: 6px; margin-top: 10px; padding-bottom: 4px;
  overflow-x: auto; scrollbar-width: thin;
}
.tp-subnav__chips::-webkit-scrollbar { height: 4px; }
.tp-subnav__chips::-webkit-scrollbar-thumb { background: #d3ddd9; border-radius: 2px; }
.tp-subnav__ctx { flex: none; font-size: 12px; font-weight: 800; color: var(--tp-sub); padding-right: 2px; }
.tp-subnav__sep { flex: none; width: 1px; height: 20px; background: var(--tp-line); margin: 0 4px; }
.tp-chip--light.tp-chip--hot { background: #fff1ea; color: #d24d22 !important; }
.tp-chip--light.is-active { background: var(--tp-accent); color: #fff !important; }
@media (max-width: 767px) {
  .tp-subnav { margin-top: 10px; padding: 12px 12px 8px; }
  .tp-subnav__top { flex-direction: column; align-items: stretch; gap: 8px; }
}

/* ---------- 投稿写真カード ---------- */
.tp-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.tp-pcard { margin: 0; display: flex; flex-direction: column; background: var(--tp-card); border-radius: 14px; overflow: hidden; box-shadow: 0 6px 18px rgba(10, 30, 22, .16); transition: transform .2s, box-shadow .2s; }
.tp-pcard:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(10, 30, 22, .24); }
.tp-pcard__img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #e4ebe8; }
.tp-pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.tp-pcard:hover .tp-pcard__img img { transform: scale(1.05); }
.tp-pcard__no { position: absolute; left: 10px; top: 10px; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .45); }
.tp-pcard__body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.tp-pcard__title { font-size: 14px; font-weight: 800; color: var(--tp-ink) !important; }
.tp-pcard__body time { font-size: 11.5px; color: var(--tp-sub); }
.tp-pcard__actions { display: flex; gap: 6px; margin-top: 8px; }
.tp-pbtn { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--tp-ink) !important; background: var(--tp-soft); transition: background .15s; }
.tp-pbtn:hover { background: #e2ebe7; }
.tp-pbtn--like { color: #d6336c !important; background: #fdeef3; }
.tp-pbtn--like:hover { background: #fadbe6; }
.tp-pbtn--icon { margin-left: auto; width: 32px; padding: 0; justify-content: center; color: var(--tp-sub) !important; }

.tp-mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: 10px; }
.tp-mosaic .tp-photo { border-radius: 12px; }
.tp-mosaic .tp-photo:nth-child(7n+1) { grid-column: span 2; grid-row: span 2; }
@media (max-width: 767px) {
  .tp-pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tp-pcard__body { padding: 10px; }
  .tp-pcard__actions { flex-wrap: wrap; }
  .tp-mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
}

/* ---------- リンクバー / タブ ---------- */
.tp-linkbar { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 6px auto 34px; }
.tp-linkbar a {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 700; color: #fff !important; background: rgba(0, 0, 0, .35);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); transition: background .15s;
}
.tp-linkbar a:hover { background: rgba(0, 0, 0, .55); text-decoration: none; }
.tp-tabs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 5px; margin: 0 auto 18px; border-radius: 999px; background: rgba(255, 255, 255, .92); box-shadow: 0 6px 18px rgba(10, 30, 22, .18); }
.tp-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--tp-ink) !important; transition: background .15s; }
.tp-tabs a:hover { background: var(--tp-soft); text-decoration: none; }
.tp-tabs a.is-active { background: var(--tp-accent); color: #fff !important; }
.tp-tabs a .fa { opacity: .8; }

/* ---------- カテゴリタイル ---------- */
.tp-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tp-cat { display: flex; flex-direction: column; gap: 8px; color: var(--tp-ink) !important; }
.tp-cat__img { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #e4ebe8; }
.tp-cat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.tp-cat__img.is-noimg { background: linear-gradient(135deg, #1f5c48, #2fae7f); }
.tp-cat__img.is-noimg .fa { font-size: 36px; color: rgba(255, 255, 255, .45); transition: transform .3s; }
.tp-cat:hover .tp-cat__img img { transform: scale(1.06); }
.tp-cat:hover .tp-cat__img .fa { transform: scale(1.12) rotate(-6deg); }
.tp-cat b { font-size: 13.5px; font-weight: 800; line-height: 1.4; }
.tp-cat:hover b { color: var(--tp-accent); }
@media (max-width: 767px) { .tp-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .tp-cat b { font-size: 12px; } }

/* ---------- コンパクトなページ見出し ---------- */
.tp-hero--compact { margin: 6px 0 20px; padding: 24px 28px 22px; }
.tp-hero--compact .tp-hero__title { font-size: 28px; }
.tp-hero--compact .tp-hero__deco { font-size: 150px; top: -6px; }
.tp-hero--photo { background-size: cover; background-position: center; }
.tp-hero--photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 30, 22, .85), rgba(10, 30, 22, .35)); }
.tp-hero--photo > * { position: relative; }
.tp-hero__actions { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tp-hero__stats { position: relative; display: flex; flex-wrap: wrap; gap: 0; margin-top: 14px; }
.tp-hero__stats span { padding: 0 18px; border-left: 1px solid rgba(255, 255, 255, .25); font-size: 11px; color: rgba(255, 255, 255, .75); }
.tp-hero__stats span:first-child { padding-left: 0; border-left: 0; }
.tp-hero__stats b { display: block; font-size: 22px; color: #fff; font-weight: 800; line-height: 1.2; }
@media (max-width: 767px) {
  .tp-hero--compact { padding: 18px 16px; }
  .tp-hero--compact .tp-hero__title { font-size: 22px; }
  .tp-hero__stats span { padding: 0 12px; }
  .tp-hero__stats b { font-size: 18px; }
}
.tp-mapbox .ggmap { border-radius: 12px; overflow: hidden; padding-bottom: 42%; }
.tp-mapbox .ggmap + .col-sm-12 { float: none; padding: 8px 0 0; font-size: 12px; color: var(--tp-sub); text-align: center; }
@media (max-width: 767px) { .tp-mapbox .ggmap { padding-bottom: 75%; } }

/* ---------- 投稿写真の詳細 ---------- */
.tp-contri { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 20px; margin-bottom: 22px; }
.tp-contri__main { min-width: 0; }
.tp-contri__photo { margin: 0; border-radius: var(--tp-radius); overflow: hidden; background: #0f1a16; box-shadow: var(--tp-shadow); display: flex; align-items: center; justify-content: center; max-height: 78vh; }
.tp-contri__photo img { width: 100%; max-height: 78vh; object-fit: contain; }
.tp-contri__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: 999px; background: rgba(255, 255, 255, .94); box-shadow: 0 6px 18px rgba(10, 30, 22, .16); }
.tp-contri__upload, .tp-contri__upload #spot_touko, .tp-contri__upload form { display: inline-flex !important; margin: 0; }
.tp-contri__upload .btn { min-height: 32px !important; padding: 0 12px !important; margin: 0 !important; font-size: 12px !important; }
.tp-contri__side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tp-contri__side .tp-panel { padding: 18px 20px; }
.tp-contri__no { font-size: 12px; font-weight: 700; color: var(--tp-sub); display: flex; align-items: center; justify-content: space-between; }
.tp-status { padding: 2px 10px; border-radius: 999px; font-size: 11px; background: var(--tp-soft); }
.tp-status.is-ok { background: #e8f6ef; color: var(--tp-accent); }
.tp-status.is-ng { background: #fdecea; color: #c0392b; }
.tp-contri__title { font-size: 20px; font-weight: 800; line-height: 1.4; margin: 6px 0 10px !important; }
.tp-contri__meta li { font-size: 13px; color: var(--tp-sub); padding: 3px 0; }
.tp-contri__meta .fa { width: 20px; color: var(--tp-accent-2); }
.tp-exif { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px !important; }
.tp-exif li { padding: 10px 12px; border-radius: 12px; background: var(--tp-soft); }
.tp-exif .fa { color: var(--tp-accent-2); margin-right: 4px; }
.tp-exif small { font-size: 10.5px; color: var(--tp-sub); font-weight: 700; }
.tp-exif b { display: block; font-size: 14px; margin-top: 2px; word-break: break-all; }
.tp-contri__spot { display: flex; align-items: center; gap: 14px; color: var(--tp-ink) !important; transition: transform .15s; }
.tp-contri__spot:hover { transform: translateY(-2px); }
.tp-contri__spot > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tp-contri__spot small { font-size: 11px; font-weight: 700; color: var(--tp-accent); }
.tp-contri__spot b { font-size: 15px; }
.tp-contri__spot em { font-style: normal; font-size: 12px; color: var(--tp-sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-contri__spot > .fa { color: var(--tp-sub); font-size: 20px; }
.tp-contri__spotimg { flex: none; width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1f5c48, #2fae7f); color: #fff; font-size: 22px; }
.tp-mapbox--side .ggmap { padding-bottom: 70%; }
@media (max-width: 991px) { .tp-contri { grid-template-columns: 1fr; } }
@media (max-width: 767px) { .tp-contri__bar { border-radius: 16px; } }
.tp-mapbox--tall .ggmap { padding-bottom: 50%; }
@media (max-width: 767px) { .tp-mapbox--tall .ggmap { padding-bottom: 110%; } }
.tp-mapfilters { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.tp-mapfilters__label { font-size: 11px; font-weight: 700; color: var(--tp-sub); margin-right: 4px; }
.tp-ichiran { display: block; }
.tp-ichiran[style*="inline"] { display: block !important; }

/* ---------- 使い方 / ドキュメント ---------- */
.tp-howto { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px !important; counter-reset: step; }
.tp-howto li { position: relative; padding: 22px 20px; border-radius: var(--tp-radius); background: var(--tp-card); box-shadow: var(--tp-shadow); }
.tp-howto li::before { counter-increment: step; content: "0" counter(step); position: absolute; right: 16px; top: 10px; font-family: "Open Sans", sans-serif; font-size: 34px; font-weight: 800; color: rgba(47, 174, 127, .18); }
.tp-howto .fa { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 19px; color: #fff; background: linear-gradient(135deg, var(--tp-accent), var(--tp-accent-2)); margin-bottom: 12px; }
.tp-howto b { display: block; font-size: 16px; margin-bottom: 6px; }
.tp-howto p { font-size: 13.5px; line-height: 1.85; color: var(--tp-sub); }
.tp-howto a, .tp-doc a { color: var(--tp-accent) !important; font-weight: 700; }
.tp-doc h2 { font-size: 17px; font-weight: 800; margin: 4px 0 10px !important; }
.tp-doc h2 .fa { color: var(--tp-accent-2); }
.tp-doc h2 + * { margin-bottom: 20px !important; }
.tp-doc ul li { position: relative; padding-left: 16px; font-size: 14px; line-height: 1.9; color: #2c3a35; }
.tp-doc ul li::before { content: ""; position: absolute; left: 2px; top: .8em; width: 6px; height: 6px; border-radius: 50%; background: var(--tp-accent-2); }
.tp-doc p { font-size: 14px; line-height: 1.9; }
@media (max-width: 991px) { .tp-howto { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .tp-howto { grid-template-columns: 1fr; } }

/* ---------- エラー ---------- */
.tp-error { max-width: 560px; margin: 60px auto 80px; padding: 44px 32px; text-align: center; border-radius: 20px; background: var(--tp-card); box-shadow: var(--tp-shadow); position: relative; overflow: hidden; }
.tp-error__icon { position: absolute; right: -20px; bottom: -30px; font-size: 180px; color: rgba(47, 174, 127, .08); }
.tp-error__code { font-family: "Open Sans", sans-serif; font-size: 64px; font-weight: 800; line-height: 1; color: var(--tp-accent-2) !important; }
.tp-error h2 { font-size: 22px; font-weight: 800; margin: 12px 0 8px !important; }
.tp-error > p:not(.tp-error__code) { color: var(--tp-sub); }
.tp-error__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; position: relative; }
.tp-cta-btn { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 22px; border-radius: 999px; font-weight: 800; font-size: 14px; color: #fff !important; background: var(--tp-hot); box-shadow: 0 8px 20px rgba(255, 107, 61, .3); }
.tp-cta-btn:hover { text-decoration: none; filter: brightness(1.05); }
.tp-error .tp-chip--light { padding: 10px 18px; font-size: 13px; }
