/* スポット詳細ページ（.sd-wrap 配下だけに効かせる） */
.sd-wrap {
  --sd-ink: #1d2a26;
  --sd-sub: #5c6b66;
  --sd-line: rgba(29, 42, 38, .1);
  --sd-card: rgba(255, 255, 255, .94);
  --sd-accent: #1f7a5a;
  --sd-accent-2: #2fae7f;
  --sd-hot: #ff6b3d;
  --sd-gold: #f5b301;
  --sd-radius: 16px;
  --sd-shadow: 0 10px 30px rgba(10, 30, 22, .18);
  color: var(--sd-ink);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  letter-spacing: .02em;
  text-transform: none;
}
.sd-wrap h1, .sd-wrap h2, .sd-wrap h3 {
  text-transform: none;
  letter-spacing: .03em;
  color: inherit;
  margin: 0;
}
.sd-wrap a { border-bottom: 0; }
.sd-wrap [hidden] { display: none !important; }

/* ---------- Hero ---------- */
.sd-hero {
  position: relative;
  min-height: 380px;
  margin: 18px 0 0;
  border-radius: var(--sd-radius) var(--sd-radius) 0 0;
  overflow: hidden;
  background: #183c31 center / cover no-repeat;
  display: flex;
  align-items: flex-end;
  color: #fff;
  box-shadow: var(--sd-shadow);
}
.sd-hero--noimg {
  background-image:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .14) 0, transparent 38%),
    radial-gradient(circle at 10% 110%, rgba(47, 174, 127, .55) 0, transparent 50%),
    linear-gradient(135deg, #123b2f 0%, #1f7a5a 55%, #3aa17a 100%);
}
.sd-hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .05) 0%, rgba(0, 0, 0, .25) 40%, rgba(0, 0, 0, .78) 100%);
}
.sd-hero--noimg .sd-hero__shade { background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .35) 100%); }
.sd-hero__icon {
  position: absolute; right: 4%; top: 50%;
  transform: translateY(-58%) rotate(-8deg);
  font-size: 220px; line-height: 1;
  color: rgba(255, 255, 255, .1);
}
.sd-hero__body { position: relative; width: 100%; padding: 28px 32px 26px; }
.sd-hero__title {
  font-size: 42px; font-weight: 800; line-height: 1.25;
  margin: 10px 0 6px !important;
  color: #fff !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
}
.sd-hero__addr { margin: 0 0 16px; color: rgba(255, 255, 255, .88); font-size: 14px; }

.sd-crumbs { font-size: 12px; color: rgba(255, 255, 255, .78); margin-bottom: 12px; }
.sd-crumbs a { color: rgba(255, 255, 255, .9) !important; }
.sd-crumbs a:hover { color: #fff !important; text-decoration: underline; }
.sd-crumbs .fa { margin: 0 8px; opacity: .6; }

.sd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sd-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; line-height: 1.6;
  color: #fff !important;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .3) !important;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background .2s;
}
.sd-chip:hover { background: rgba(255, 255, 255, .3); text-decoration: none; }
.sd-chip--kind { background: var(--sd-accent-2); border-color: transparent !important; }
.sd-chip--hot { background: var(--sd-hot); border-color: transparent !important; animation: sd-pulse 2.4s ease-in-out infinite; }
@keyframes sd-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 61, .6); } 50% { box-shadow: 0 0 0 7px rgba(255, 107, 61, 0); } }

.sd-stats { display: flex; flex-wrap: wrap; gap: 0; list-style: none; margin: 0; padding: 0; }
.sd-stats li {
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 22px; border-left: 1px solid rgba(255, 255, 255, .25);
}
.sd-stats li:first-child { padding-left: 0; border-left: 0; }
.sd-stats b { font-size: 24px; font-weight: 800; line-height: 1.2; }
.sd-stats small { font-size: 11px; color: rgba(255, 255, 255, .75); letter-spacing: .08em; }
.sd-stars { color: var(--sd-gold); font-size: 17px; letter-spacing: 2px; white-space: nowrap; }
.sd-stars .fa-star-o { color: rgba(255, 255, 255, .4); }
.sd-card .sd-stars .fa-star-o { color: #d0d6d4; }

/* ---------- Action bar ---------- */
.sd-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 14px 18px;
  background: var(--sd-card);
  border-radius: 0 0 var(--sd-radius) var(--sd-radius);
  box-shadow: var(--sd-shadow);
  margin-bottom: 22px;
}
.sd-btn, .sd-actions .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 16px;
  border-radius: 999px !important;
  border: 1px solid var(--sd-line) !important;
  background: #fff; color: var(--sd-ink) !important;
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
  text-transform: none; box-shadow: none;
  cursor: pointer; white-space: nowrap;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.sd-btn:hover, .sd-actions .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(10, 30, 22, .12);
  text-decoration: none;
}
.sd-btn--like { background: #e8f6ef; color: var(--sd-accent) !important; border-color: transparent !important; }
.sd-btn--accent, .sd-actions .btn-warning {
  background: linear-gradient(135deg, var(--sd-accent), var(--sd-accent-2)) !important;
  color: #fff !important; border-color: transparent !important;
}
.sd-btn--block { display: flex; width: 100%; margin-top: 12px; }
.sd-btn-upload, .sd-btn-upload #spot_touko, .sd-btn-upload form { display: inline-flex !important; margin: 0; }
.sd-share { margin-left: auto; display: inline-flex; gap: 6px; }
.sd-icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #f1f4f3; border: 0; color: var(--sd-ink) !important;
  font-size: 15px; padding: 0; cursor: pointer;
  transition: background .15s, color .15s;
}
.sd-icon-btn:hover { background: var(--sd-ink); color: #fff !important; text-decoration: none; }
.sd-icon-btn--line { font-size: 10px; font-weight: 800; }
.sd-icon-btn--line:hover { background: #06c755; }

/* ---------- Cards ---------- */
.sd-card {
  background: var(--sd-card);
  border-radius: var(--sd-radius);
  box-shadow: var(--sd-shadow);
  padding: 22px 24px;
  margin-bottom: 22px;
  text-align: left;
}
.sd-card__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-bottom: 12px; margin-bottom: 16px;
  border-bottom: 1px solid var(--sd-line);
}
.sd-card__head h2 { font-size: 18px; font-weight: 800; }
.sd-card__head h2 .fa { color: var(--sd-accent); margin-right: 4px; }
.sd-meta, .sd-note { font-size: 12px; color: var(--sd-sub); }
.sd-note { margin: 12px 0 0; }
.sd-link { font-size: 13px; font-weight: 700; color: var(--sd-accent) !important; }
.sd-link .fa { margin-left: 4px; transition: transform .15s; }
.sd-link:hover .fa { transform: translateX(3px); }
.sd-link--light { color: #fff !important; text-shadow: 0 1px 6px rgba(0, 0, 0, .4); }
.sd-muted { color: #a3aeaa; }

/* About */
.sd-about p { font-size: 15px; line-height: 2; color: #2c3a35; margin: 0 0 1.1em; }
.sd-about .sd-lead {
  font-size: 16.5px; font-weight: 600; color: var(--sd-ink);
  padding-left: 14px; border-left: 4px solid var(--sd-accent-2);
}
.sd-readmore {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 12px; margin-top: 4px;
  border: 1px dashed rgba(31, 122, 90, .4); border-radius: 12px;
  background: rgba(47, 174, 127, .06);
  color: var(--sd-accent); font-weight: 700; font-size: 14px;
  cursor: pointer; transition: background .15s;
}
.sd-readmore:hover { background: rgba(47, 174, 127, .14); }

/* Gallery */
.sd-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sd-gallery__item {
  position: relative; display: block; aspect-ratio: 1 / 1;
  overflow: hidden; border-radius: 10px; background: #e9eeec;
}
.sd-gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
.sd-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.sd-gallery__item:hover img { transform: scale(1.06); }
.sd-gallery__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; gap: 6px;
  padding: 18px 8px 6px; font-size: 11px; color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, .65));
  opacity: 0; transition: opacity .2s;
}
.sd-gallery__cap .fa-heart { color: #ff7a8a; }
.sd-gallery__item:hover .sd-gallery__cap { opacity: 1; }
.sd-empty { text-align: center; padding: 18px 0 8px; color: var(--sd-sub); }
.sd-empty > .fa { font-size: 42px; color: #c6d3ce; }
.sd-empty p { margin: 8px 0 14px; line-height: 1.8; }

/* Messages（既存要素の見た目を馴染ませる） */
.sd-messages .thumbnail { background: transparent !important; padding: 0; margin: 0; box-shadow: none; }
.sd-messages .thumbnail > .row > .col-sm-12:first-child p { font-size: 18px; font-weight: 800; padding-bottom: 12px; border-bottom: 1px solid var(--sd-line); }
.sd-messages .thumbnail > .row > .col-sm-12:first-child .fa { color: var(--sd-accent); }
.sd-messages .form-control { height: 44px; border-radius: 999px 0 0 999px; padding-left: 18px; }
.sd-messages .input-group-btn .btn { height: 44px; border-radius: 0 999px 999px 0; padding: 0 20px; background: var(--sd-accent); border-color: var(--sd-accent); font-weight: 700; }
.sd-messages #messageNextPage .btn { border-radius: 999px; background: #f1f4f3; color: var(--sd-ink); border: 0; font-weight: 700; }

/* Info */
.sd-dl { margin: 0; }
.sd-dl > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--sd-line); }
.sd-dl > div:last-child { border-bottom: 0; }
.sd-dl dt { font-size: 12px; font-weight: 700; color: var(--sd-sub); }
.sd-dl dt .fa { width: 16px; color: var(--sd-accent-2); }
.sd-dl dd { margin: 0; font-size: 14px; line-height: 1.7; word-break: break-all; }
.sd-dl dd a { color: var(--sd-accent) !important; font-weight: 600; }
.sd-zip { font-size: 12px; color: var(--sd-sub); }

/* Season */
.sd-season { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--sd-line); }
.sd-season h3 { font-size: 14px; font-weight: 800; margin-bottom: 10px; }
.sd-season h3 .fa { color: var(--sd-accent-2); }
.sd-season__bar { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; list-style: none; margin: 0; padding: 0; }
.sd-season__bar li a {
  display: block; text-align: center; padding: 8px 0;
  font-size: 11px; font-weight: 700; border-radius: 6px;
  background: #eef2f1; color: #93a19c !important;
}
.sd-season__bar li.is-part a { background: #bfe8d6; color: var(--sd-accent) !important; }
.sd-season__bar li.is-full a { background: var(--sd-accent-2); color: #fff !important; }
.sd-season__bar li.is-now a { box-shadow: inset 0 0 0 2px var(--sd-hot); }
.sd-season__legend { margin: 8px 0 0; font-size: 11px; color: var(--sd-sub); }
.sd-season__legend span { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 3px 0 8px; vertical-align: -1px; }
.sd-season__legend span:first-child { margin-left: 0; }
.sd-season__legend .is-full { background: var(--sd-accent-2); }
.sd-season__legend .is-part { background: #bfe8d6; }
.sd-season__legend .is-now { box-shadow: inset 0 0 0 2px var(--sd-hot); }

/* Map */
.sd-mapcard .ggmap { border-radius: 12px; overflow: hidden; padding-bottom: 75%; }
.sd-mapcard .ggmap + .col-sm-12 { float: none; padding: 8px 0 0; font-size: 12px; }
.sd-coords { font-family: Menlo, Consolas, monospace; text-align: center; }

/* ---------- Spot lists ---------- */
.sd-section { margin: 10px 0 26px; text-align: left; }
.sd-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sd-section__head h2 { font-size: 20px; font-weight: 800; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .45); }
.sd-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.sd-spot {
  display: flex; flex-direction: column;
  background: var(--sd-card); border-radius: 14px; overflow: hidden;
  box-shadow: 0 6px 18px rgba(10, 30, 22, .16);
  color: var(--sd-ink) !important;
  transition: transform .2s, box-shadow .2s;
}
.sd-spot:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(10, 30, 22, .25); text-decoration: none; }
.sd-spot__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #e9eeec; }
.sd-spot__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.sd-spot:hover .sd-spot__img img { transform: scale(1.06); }
.sd-spot__body { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; }
.sd-spot__body b { font-size: 14px; line-height: 1.4; }
.sd-spot__body small { font-size: 11.5px; color: var(--sd-sub); line-height: 1.5; }
.sd-spot__body small .fa { color: var(--sd-accent-2); }

.sd-footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 10px 0 30px; }
.sd-footer-links a {
  padding: 6px 16px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: rgba(0, 0, 0, .35); color: #fff !important;
}
.sd-footer-links a:hover { background: rgba(0, 0, 0, .55); text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  .sd-hero { min-height: 300px; margin-top: 10px; }
  .sd-hero__body { padding: 20px 18px 18px; }
  .sd-hero__title { font-size: 28px; }
  .sd-hero__icon { font-size: 140px; }
  .sd-stats li { padding: 0 14px; }
  .sd-stats b { font-size: 19px; }
  .sd-actions { padding: 12px; gap: 6px; }
  .sd-btn, .sd-actions .btn { height: 38px; padding: 0 12px; font-size: 12px; }
  .sd-share { margin-left: 0; width: 100%; justify-content: center; padding-top: 4px; }
  .sd-card { padding: 18px 16px; }
  .sd-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sd-gallery__item:first-child { grid-column: span 3; grid-row: auto; aspect-ratio: 16 / 10; }
  .sd-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sd-section__head h2 { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .sd-wrap * { animation: none !important; transition: none !important; }
}
@media (max-width: 767px) {
  .sd-gallery__item:nth-child(n+8) { display: none; }
}
.sd-wrap img { max-width: 100%; }
.sd-wrap .col-md-8, .sd-wrap .col-md-4 { min-width: 0; }
@media (max-width: 420px) {
  .sd-stats li { padding: 0 9px; }
  .sd-stats .sd-stars { font-size: 13px; letter-spacing: 0; }
  .sd-stats b { font-size: 17px; }
}
@media (max-width: 767px) {
  .sd-stats { display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); }
  .sd-stats li { padding: 0 8px; }
  .sd-stats small { font-size: 10px; letter-spacing: 0; white-space: nowrap; }
}
