/* sightseeing.css — magazine chapters + expandable cards */

.sg-rail {
  padding: 2.5rem 0 40px;
}

.sg-group {
  margin-bottom: 5.2rem;
}

.sg-group-head {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  margin-bottom: 2.2rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line, #e5dfd4);
}

.sg-group-head .sg-kana {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  letter-spacing: 0.18em;
  color: rgba(184, 149, 106, 0.18);
  line-height: 0.8;
  font-weight: 400;
}

.sg-group-head h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
  font-weight: 500;
  letter-spacing: 0.12em;
}

.sg-feat {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 0 2.6rem;
  align-items: center;
  margin-bottom: 2.4rem;
  cursor: default;
  user-select: text;
  -webkit-user-select: text;
}

.sg-feat.reverse {
  grid-template-columns: 0.88fr 1.12fr;
}

.sg-feat.reverse .sg-feat-copy {
  order: -1;
}

.sg-feat-visual {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius, 12px);
  min-height: 380px;
  height: 420px;
}

.sg-feat-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.sg-feat .sg-feat-visual:hover img {
  transform: scale(1.05);
}

.sg-feat.open .sg-feat-visual:hover img {
  transform: scale(1.07);
}

.sg-feat-copy {
  padding: 0.4rem 0.2rem;
}

.sg-feat-idx {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.4rem, 7vw, 5.6rem);
  line-height: 0.78;
  color: var(--accent-soft, #e8d9c0);
  letter-spacing: 0.04em;
  margin-bottom: 0.85rem;
}

.sg-feat .sg-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.74rem;
  letter-spacing: 0.32em;
  color: var(--accent, #b8956a);
  margin-bottom: 0.7rem;
}

.sg-feat h3,
.sg-card h3 {
  font-family: 'Noto Serif JP', serif;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.sg-feat h3 {
  font-size: clamp(1.55rem, 2.8vw, 2.05rem);
  margin: 0.45rem 0 0.8rem;
}

.sg-lead {
  color: var(--text-soft, #5c574f);
  font-size: 0.94rem;
  line-height: 1.95;
}

.sg-dist {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: #fff;
  background: var(--accent, #b8956a);
  padding: 0.22rem 0.75rem;
  border-radius: 999px;
}

.sg-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.15rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--accent-dark, #9a7a52);
}

.sg-toggle::after {
  content: '';
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  margin-top: -4px;
}

.open .sg-toggle::after {
  transform: rotate(225deg);
  margin-top: 2px;
}

.sg-more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.open .sg-more {
  grid-template-rows: 1fr;
}

.open .sg-more-inner {
  animation: sgCopyIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes sgCopyIn {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.sg-more-inner {
  overflow: hidden;
  padding-top: 0.2rem;
}

.sg-more p,
.sg-more address {
  font-size: 0.86rem;
  color: var(--text-soft, #5c574f);
  line-height: 1.9;
  margin-top: 0.75rem;
  font-style: normal;
}

.sg-more a {
  color: var(--accent-dark, #9a7a52);
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  border-bottom: 1px solid var(--accent-soft, #e8d9c0);
}

.sg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.sg-card {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 0 1.15rem;
  background: #fff;
  border-radius: var(--radius, 12px);
  overflow: hidden;
  box-shadow: var(--shadow, 0 12px 40px rgba(44, 42, 38, 0.06));
  cursor: pointer;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s;
}

.sg-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(44, 42, 38, 0.1);
}

.sg-card figure {
  margin: 0;
  height: 100%;
  min-height: 168px;
  overflow: hidden;
  transition:
    height 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    min-height 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.sg-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.sg-card:hover img {
  transform: scale(1.05);
}

.sg-card-body {
  padding: 1.15rem 1.2rem 1.2rem 0;
}

.sg-card h3 {
  font-size: 1.08rem;
  margin: 0.4rem 0 0.4rem;
}

.sg-card .sg-lead {
  font-size: 0.86rem;
  line-height: 1.8;
}

.sg-solo {
  max-width: 100%;
}

@media (max-width: 960px) {
  .sg-feat,
  .sg-feat.reverse {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }
  .sg-feat.reverse .sg-feat-copy {
    order: 0;
  }
  .sg-feat-visual {
    min-height: 0;
    height: 220px;
  }
  .sg-feat-copy {
    padding: 0;
  }
  .sg-grid {
    grid-template-columns: 1fr;
  }
  .sg-card {
    grid-template-columns: 1fr;
  }
  .sg-card.open {
    grid-template-columns: 1fr;
  }
  .sg-card figure {
    height: 200px;
    min-height: 0;
  }
  .sg-card-body {
    padding: 1.15rem 1.2rem 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sg-feat-visual img,
  .sg-card img,
  .sg-card,
  .sg-card figure,
  .sg-more,
  .sg-toggle::after,
  .open .sg-more-inner {
    transition: none;
  }
}

.sg-card-no {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  color: var(--accent, #b8956a);
  margin: 0 0 0.25rem;
  line-height: 1;
}

.sg-map-intro {
  position: relative;
  overflow: hidden;
  padding: 5.2rem 0 2.2rem;
  text-align: center;
}

.sg-map-intro .section-desc {
  margin: 0 auto;
}

.sg-map-body {
  margin-bottom: 3.6rem;
}

.sg-map-frame {
  overflow: hidden;
  border-radius: var(--radius, 12px);
  box-shadow: var(--shadow, 0 12px 40px rgba(44, 42, 38, 0.08));
  border: 1px solid var(--line, #e5dfd4);
}

#sgMap {
  height: 460px;
  width: 100%;
  background: #e8e2d6;
}

.sg-map-legend {
  list-style: none;
  margin: 1.35rem auto 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem 0.55rem;
  max-width: 52rem;
}

.sg-map-legend a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.38rem 0.7rem;
  border: 1px solid var(--line, #e5dfd4);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text, #2c2a26);
  background: #fff;
}

.sg-map-legend a i {
  font-style: normal;
  font-family: 'Cormorant Garamond', serif;
  color: var(--accent-dark, #9a7a52);
}

.sg-map-legend a small {
  color: var(--text-muted, #8a847a);
  font-size: 0.68rem;
}

.sg-map-legend a.is-on,
.sg-map-legend a:hover {
  border-color: var(--accent, #b8956a);
  color: var(--accent-dark, #9a7a52);
}

.sg-pin {
  background: none !important;
  border: none !important;
}

.sg-pin span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent, #b8956a);
  color: #fff;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 12px rgba(44, 42, 38, 0.28);
  border: 2px solid #fff;
}

.sg-pin-home span {
  width: 36px;
  height: 36px;
  background: var(--text, #2c2a26);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.leaflet-popup-content-wrapper {
  border-radius: 10px;
  font-family: inherit;
}

.sg-popup .leaflet-popup-content {
  width: auto !important;
  margin: 0.65rem 0.85rem 0.7rem;
  font-size: 0.86rem;
  line-height: 1.55;
}

.sg-pop {
  width: max-content;
  max-width: 22rem;
}

.sg-pop-title {
  margin: 0;
  font-weight: 600;
  white-space: nowrap;
}

.sg-pop-actions {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.2rem;
  margin-top: 0.65rem;
}

.sg-pop-actions a:last-child {
  margin-left: auto;
}

.leaflet-popup-content a {
  color: var(--accent-dark, #9a7a52);
}

.sg-meta {
  list-style: none;
  margin: 0.7rem 0 0;
  padding: 0.7rem 0 0;
  border-top: 1px solid var(--line, #e5dfd4);
  display: grid;
  gap: 0.28rem;
}

.sg-meta li {
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--text-soft, #5c574f);
}

.sg-meta b {
  font-weight: 500;
  color: var(--text-muted, #8a847a);
  letter-spacing: 0.08em;
  font-size: 0.68rem;
  margin-right: 0.55rem;
}

.sg-meta-extra {
  display: block;
}

.sg-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.15rem;
  margin-top: 0.85rem;
}

.sg-actions a {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  border: none;
  border-bottom: 1px solid var(--accent-soft, #e8d9c0);
  border-radius: 0;
  padding: 0 0 0.08rem;
  background: none;
  color: var(--accent-dark, #9a7a52);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.sg-actions a:hover {
  background: none;
  border-bottom-color: var(--accent, #b8956a);
}

.sg-actions svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.sg-card.open {
  grid-column: 1 / -1;
  grid-template-columns: 240px 1fr;
  cursor: default;
}

.sg-card.open figure {
  min-height: 260px;
}

@media (max-width: 960px) {
  #sgMap {
    height: 360px;
  }
  .sg-card.open {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
  .sg-card.open figure {
    width: 100%;
    height: 240px;
    min-height: 240px;
  }
}

.sg-feat.is-snap,
.sg-feat.is-snap .sg-feat-visual,
.sg-feat.is-snap .sg-more,
.sg-feat.is-snap .sg-more-inner,
.sg-card.is-snap,
.sg-card.is-snap figure,
.sg-card.is-snap .sg-more,
.sg-card.is-snap .sg-more-inner {
  transition: none !important;
  animation: none !important;
}
