/**
 * tenjikai ページ専用CSS
 * このディレクトリ配下の見た目調整はここに書きます。
 */

/* ハブ（神戸 / 東京 入口） */
.tenjikai-hub__lead {
  margin: 0 0 1.75rem;
  font-size: 1rem;
  line-height: 1.8;
  color: #374151;
}

.tenjikai-hub__grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .tenjikai-hub__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

.tenjikai-hub__card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tenjikai-hub__card:hover {
  border-color: var(--color-navy);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.tenjikai-hub__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 10.2rem;
  padding: 1.25rem 1.5rem 0.625rem;
  background: #fff;
  box-sizing: border-box;
}

.tenjikai-hub__logo img {
  display: block;
  width: auto;
  max-width: min(100%, 20.4rem);
  max-height: 7.8rem;
  height: auto;
  object-fit: contain;
}

.tenjikai-hub__body {
  display: block;
  padding: 0.675rem 1.5rem 1.35rem;
}

.tenjikai-hub__place {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #9ca3af;
}

.tenjikai-hub__name {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--color-navy);
}

.tenjikai-hub__label {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #9ca3af;
}

.tenjikai-hub__next-title {
  margin: 0 0 0.35rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-navy);
}

.tenjikai-hub__next-meta,
.tenjikai-hub__next-note {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #4b5563;
}

.tenjikai-hub__next-note {
  margin-top: 0.25rem;
}

.tenjikai-hub__more {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-navy);
}

.tenjikai-series__intro {
  margin: 0 0 2rem;
  font-size: 1rem;
  line-height: 1.8;
  color: #374151;
}

/* L3ナビ〜本文の間隔（共通 2.5rem の 1.5倍） */
.page-body > .subnav-l3 {
  margin-bottom: 3.75rem;
}

.tenjikai-next__layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .tenjikai-next__layout {
    grid-template-columns: minmax(14rem, 0.48fr) minmax(0, 0.82fr);
    gap: 3rem;
    justify-content: start;
  }
}

.tenjikai-event-logo {
  margin: 0;
  max-width: 22rem;
  text-align: center;
}

@media (min-width: 900px) {
  .tenjikai-event-logo {
    position: sticky;
    top: 6rem;
    max-width: none;
  }
}

/* layout.css の .page-prose figure img { width:100% } より優先 */
.page-prose .tenjikai-event-logo img {
  display: block;
  width: 80%;
  max-width: 80%;
  height: auto;
  margin-inline: auto;
}

.tenjikai-next__main {
  min-width: 0;
}

.tenjikai-info-block {
  margin: 0 0 2.5rem;
}

.tenjikai-info-block__title {
  margin: 0 0 1rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--color-navy);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--color-navy);
}

.tenjikai-info-block__lead {
  margin: 0 0 1rem;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-navy);
}

.tenjikai-info-block__list {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.9;
  color: #374151;
}

.tenjikai-info-block__dates {
  margin: 1rem 0 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--color-navy);
}

.tenjikai-map {
  margin-top: 1.25rem;
}

.tenjikai-map iframe {
  width: 100%;
  min-height: 14rem;
  border: 0;
}

.tenjikai-featured {
  margin-bottom: 2.5rem;
}

.tenjikai-featured .badge {
  margin-bottom: 1rem;
}

.tenjikai-featured__badge {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #9ca3af;
}

.tenjikai-featured__title {
  margin-bottom: 1.5rem;
}

.page-prose .tenjikai-featured__title,
.page-prose h2.tenjikai-featured__title {
  margin-top: 0;
}

.tenjikai-featured__note {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  color: #6b7280;
}

.tenjikai-featured__exhibitor {
  margin: 1.5rem 0 0;
  text-align: center;
}

.tenjikai-featured__exhibitor .btn {
  letter-spacing: 0.05em;
  text-transform: none;
  white-space: normal;
  text-align: center;
  line-height: 1.5;
}

.tenjikai-video {
  margin-bottom: 2.5rem;
}

.tenjikai-video__frame {
  width: 75%;
  max-width: 100%;
  margin-inline: auto;
  background: #000;
}

@media (max-width: 767px) {
  .tenjikai-video__frame {
    width: 100%;
  }
}

.tenjikai-about {
  margin-bottom: 2.5rem;
}

.tenjikai-about__sub {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy);
}

.tenjikai-about__cta {
  text-align: center;
}

.tenjikai-visit {
  margin-bottom: 2.5rem;
}

.tenjikai-visit__note {
  margin-top: 2rem;
}

.tenjikai-complete {
  text-align: center;
}

/* 過去の展示会：アコーディオン + 写真 */
.tenjikai-history {
  margin-bottom: 2.5rem;
}

.tenjikai-history__item.accordion + .tenjikai-history__item.accordion {
  border-top: 0;
}

.tenjikai-history__summary {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background-color 0.2s;
  font-size: 1rem;
}

.tenjikai-history__summary::-webkit-details-marker {
  display: none;
}

.tenjikai-history__summary:hover {
  background: var(--color-gray);
}

.tenjikai-history__item[open] > .tenjikai-history__summary {
  background: #e6e8eb;
}

.tenjikai-history__item[open] > .tenjikai-history__summary:hover {
  background: #d8dce1;
}

@media (min-width: 768px) {
  .tenjikai-history__summary {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 1.75rem;
  }
}

.tenjikai-history__no {
  flex-shrink: 0;
  width: 7.5rem;
  font-size: 0.9375rem;
  font-family: var(--font-base);
  color: #6b7280;
}

.tenjikai-history__title {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-navy);
}

.tenjikai-history__body {
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
}

@media (min-width: 768px) {
  .tenjikai-history__body {
    padding: 1.75rem 2rem;
  }
}

.tenjikai-history__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .tenjikai-history__inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.75rem;
  }
}

.tenjikai-history__content {
  flex: 1;
  min-width: 0;
}

.tenjikai-history__photos {
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .tenjikai-history__photos {
    width: min(58%, 42rem);
    margin-left: auto;
  }
}

.tenjikai-history__meta {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: #374151;
}

.tenjikai-history__meta > div {
  display: block;
}

.tenjikai-history__meta .label-gold {
  display: block;
  margin-bottom: 0.1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #9ca3af;
}

.tenjikai-history__meta dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-navy);
}

.tenjikai-history__cta {
  margin: 1.25rem 0 0;
}

.tenjikai-history__link {
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
}

.tenjikai-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.tenjikai-gallery--logo {
  grid-template-columns: 1fr;
}

.tenjikai-gallery__item {
  overflow: hidden;
  background: #e5e7eb;
  border: 1px solid var(--color-border);
}

.tenjikai-gallery__item--dummy {
  aspect-ratio: 4 / 3;
  background: #e5e7eb;
  border-color: #d1d5db;
}

.tenjikai-gallery__item--logo {
  background: #000;
  border-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.tenjikai-gallery__item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.tenjikai-gallery__item--logo img {
  aspect-ratio: auto;
  object-fit: contain;
  max-height: 12rem;
}
