/* 拠点詳細モーダル */


.base-detail-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 1em;
  padding: 0 16px 0 12px;
  border-radius: 999px;
  background: #1b81e0;
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  vertical-align: 0.20em;
  transition: all 150ms;
}

.base-detail-trigger::before {
  content: "ⓘ";
  font-size: .8rem;
}

.base-detail-trigger:hover {
  text-decoration: none !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
              0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.base-detail-trigger:focus-visible {
  outline: 2px solid #48a4fa;
  outline-offset: 3px;
}

/*
.base-detail-trigger {
  margin-left: 1em;
  font-size: 1rem;

  color: #2c7fb8;
  text-decoration: none;
}

.base-detail-trigger::before {
  content: "[";
  color: #333;
}

.base-detail-trigger::after {
  content: "]";
  color: #333;
}*/




.mega-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
}

.mega-overlay.active {
    display: flex;
    animation: megaFadeIn .3s ease;
}

@keyframes megaFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes megaSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.mega-panel {
    position: relative;
    width: 1100px;
    max-width: 94%;
    height: 680px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 32px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .3);
    animation: megaSlideUp .4s ease;
}

.mega-close {
    position: absolute;
    top: 20px;
    right: 24px;
    z-index: 20;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .5);
    cursor: pointer;
}

.mega-close span {
    position: absolute;
    width: 18px;
    height: 2px;
    border-radius: 1px;
    background: #1a3a5c;
}

.mega-close span:first-child {
    transform: rotate(45deg);
}

.mega-close span:last-child {
    transform: rotate(-45deg);
}

.mega-content {
    min-height: 0;
    padding: 36px 40px 32px;
    display: flex;
    flex: 1;
}

.mega-detail {
    min-width: 0;
    padding: 0 8px;
    flex: 1;
    overflow-y: auto;
}

.detail-title {
    margin: 0 0 20px;
    padding: 0 60px 10px;
    border-bottom: 2px solid #5ab5cc;
    color: #1a3a5c;
    font-size: 22px;
    text-align: center;
}

.director-area {
    margin-bottom: 20px;
    padding-left: 20%;
    display: flex;
    justify-content: flex-start;
}

.director-photo {
    width: 130px;
    flex: 0 0 auto;
    text-align: center;
}

.director-photo .photo-placeholder {
    width: 130px;
    height: 160px;
    /* border: 2px solid #c0c0c0;
    background: #e8e8e8 center / contain no-repeat; */
    /* 6 */
    border: none;
    background: transparent center / contain no-repeat;

}

.director-label {
    margin-top: 8px;
    color: #5a6a7a;
    font-size: 12px;
    font-weight: 600;
}

.director-name {
    color: #1a3a5c;
    font-size: 14px;
    font-weight: 700;
}

.content-photos-row {
    margin-bottom: 24px;
    display: flex;
    gap: 24px;
}

.content-left {
    min-width: 0;
    flex: 1;
}

.intro-area {
    width: 100%;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
}

.popup-right {
    width: 200px;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 16px;
}

.photo-box {
    width: 200px;
    height: 150px;
    overflow: hidden;
    border-radius: 8px;
    background: #d0dce8;
}

.photo-placeholder-img {
    width: 100%;
    height: 100%;
    background: #fff url("image/test-image.svg") center / cover no-repeat;
}

.section-heading {
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1a3a5c;
    font-size: 16px;
}

.section-heading::before {
    content: "";
    width: 6px;
    height: 18px;
    flex: 0 0 auto;
    border-radius: 2px;
    background: #4a9eda;
}

.intro-text {
    margin: 0 0 12px;
    color: #333;
    font-size: 14px;
    line-height: 1.9;
    white-space: pre-line;
}

.detail-link {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border: 1px solid #b8d4e4;
    border-radius: 6px;
    background: #fff;
    color: #2c7fb8;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.detail-link:hover,
.detail-link:focus-visible {
    border-color: #2c7fb8;
    background: #f3f9fd;
    text-decoration: underline;
}

.popup-section {
    margin-bottom: 20px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.center-tag,
.facility-tag,
.exhibition-tag {
    padding: 6px 16px;
    display: inline-flex;
    border-radius: 20px;
    color: #fff;
    background: #1a3a5c;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    /* 6 */
    cursor: pointer;
    transition: background-color .2s, transform .2s;
}

/* 6 */
.center-tag:hover, .center-tag:focus-visible,
.facility-tag:hover, .facility-tag:focus-visible,
.exhibition-tag:hover, .exhibition-tag:focus-visible {
    background: #1a5a8a;
    text-decoration: underline;
    transform: translateY(-2px);
  }

.contact-info {
    display: block;
    margin-bottom: 12px;
}

/* .contact-group-fields {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(170px, 1fr);
    gap: 6px 14px;
} */
/* 6 */
.contact-group-fields {
  display: flex;
  flex-direction:
  column; gap: 6px;
}




.contact-group + .contact-group {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #d9e2e8;
}

.contact-group-title {
    margin: 0 0 6px;
    color: #1a3a5c;
    font-size: 14px;
    font-weight: 700;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 14px;
}

.contact-address {
    grid-row: span 2;
}

.contact-tel,
.contact-fax {
    /* gap: 3px; */ /* 6 */
  gap: 6px;
}

.contact-label {
    width: 44px;
    flex-shrink: 0;
    font-weight: 600;
    color: #5a6a7a;
}

.contact-value {
    color: #333;
    word-break: normal;
    overflow-wrap: break-word;
}

.tour-guide {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
}

.tour-guide .tour-link {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-left: 4px solid #ff9800;
    border-radius: 8px;
    background: rgba(255, 152, 0, .12);
    color: #e65100;
    font-weight: 700;
    text-decoration: none;
}

.tour-guide .tour-link:hover,
.tour-guide .tour-link:focus-visible {
    background: rgba(255, 152, 0, .2);
    text-decoration: underline;
}

/* 6 */
.tour-guide .tour-label { white-space: pre-line; }


.tour-guide .tour-arrow {
    flex-shrink: 0;
    font-size: 18px;
}
