@charset "UTF-8";
/*---------------------------
ロケーション
---------------------------*/
.university-ttl {
    display: block;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 4px;
    text-align: center;
    line-height: 1.4;
}
.university-text {
    font-size: 18px;
    letter-spacing: 2px;
    line-height: 1.6;
    text-align: center;
    margin: 20px 0;
}
.university-text span {
    font-size: 12px;
}
.university-img {
    display: flex;
    width: 830px;
    max-width: 90%;
    margin: 0 auto 140px;
    line-height: 0;
}
.university-img p:nth-child(1) {
    flex-basis: 60%;
    margin-right: 1.2048%;
}
.university-img p:nth-child(2) {
    flex-basis: 40%;
}
.university-img p:nth-child(2) img:nth-child(1) {
    margin-bottom: 3%;
}
.map-box {
    width: 100%;
    /* max-width: 1100px; */
    margin: 0 auto 80px;
    overflow: hidden;
    box-sizing: border-box;
}

.tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
    gap: 10px;
    list-style: none;
    padding: 0;
}

.tab-button {
    padding: 12px 0;
    width: 170px;
    border: none;
    background-color: #e3e8ea;
    color: #333;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 0.8656em;
    letter-spacing: 0.06em;
    white-space: nowrap;
    text-align: center;
}

.tab-button[data-category="all"] {
    display: none;
}

.tab-button:hover {
    background-color: #d0d0d0;
}

.tab-button.active {
    background-color: #e3e8ea;
    color: #8b291c;
}

.map-container {
    position: relative;
    width: 100%;
    height: auto;
    padding-bottom: 100%;
    overflow: hidden;
    margin-bottom: 20px;
}

.map-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.map-pin {
    position: absolute;
    width: 25px;
    height: 25px;
    cursor: pointer;
    background-color: #000; /* デフォルトの色 */
    border-radius: 50% 50% 50% 0; /* ピンの形 */
    transform: translate(-50%, -100%) rotate(-45deg); /* 位置と回転 */
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #fff;
    font-size: 0.8em;
    z-index: 10;
}
.map-pin:hover {
    opacity: .7;
}

.map-pin .pin-number {
    position: absolute;
    z-index: 11;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg); /* ピンの回転を打ち消す */
    color: #fff;
}

/* ピンの色クラス */
.pin-color-shopping { background-color: #8b291c; }
.pin-color-park { background-color: #008000; }
.pin-color-culture { background-color: #0000ff; }
.pin-color-education { background-color: #ffa500; }
.pin-color-medical { background-color: #800080; }
.pin-color-finance { background-color: #8b4513; }

.pin-popup {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid #ccc;
    padding: 8px 12px;
    border-radius: 5px;
    white-space: nowrap;
    z-index: 20;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translate(-50%, -110%);

    text-align: center;
    font-size: 13px;
    line-height: 1.3;
    color: #333;

    display: none;
}

.pin-popup::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(255, 255, 255, 0.95);
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
}

/* Google Map Button */
.gmap-Btn {
  margin: 30px auto 50px;
  text-align: center;
}
.gmap-Btn a {
  display:inline-block;
  width:200px;
  background: #e3e8ea;
  padding: 10px 0;
  border-radius: 5px;
  text-align: center;

  font-size: 0.925em;
  line-height: 1.6;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: .3s;
}
.gmap-Btn a:hover {
  opacity: .5;
  transition: .3s;
}


.facility-box {

}
.facility-box .ttl {
  font-size: 20px;
  line-height: 1.6;
  letter-spacing: 0.2em;
  font-weight: 600;
  font-family: "Zen Kaku Gothic New", sans-serif;
  text-align: center;
  margin-bottom: 30px;
}

.facility-box ul.img {
  display: flex;
  justify-content: space-between;
}
.facility-box ul.img li {
  width: calc((100% - 6%) / 4);
}
.facility-box ul.img li figure {
  margin-bottom: 10px;
}

.facility-box ul.img li .pin-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0px;
  align-items:flex-start;
}

.facility-box ul.img li .store-name {
  margin-left: 0px;
  color: #666;
  font-size: 12px;
  line-height: 1.3;
}
/* .facility-box ul.img li .map-pin {
  position: relative;
  width: 20px;
  height: 20px;
  background-color: #000;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: inline-block;
  margin-right: 0.5em;
}
.facility-box.shop ul.img  .map-pin { background-color: #8b291c; }

.facility-box ul.img map-pin-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  color: #fff;
  font-size: 12px;
  z-index: 1;
} */


.facility-list {
    margin-top: 50px;
}

.facility-list ul {
    list-style: none;
    padding: 0;
    margin: 0 0 80px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.facility-list li {
    display: flex;
    align-items: baseline;
    padding: 8px 0;
    border-bottom: 1px solid #e3e8ea;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 48%;
    margin-bottom: 5px;
    box-sizing: border-box;
    --pin-color: #000; /* デフォルト値 */
}

.facility-list li:nth-child(odd) {
    margin-right: 2%;
}

.facility-list li:nth-last-child(1),
.facility-list li:nth-last-child(2) {
    border-bottom: none;
}

.facility-list li.active {
    opacity: .7;
    /* background-color: #f0f8ff; */
}

.facility-list li .pin-number-badge {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
    background-color: var(--pin-color, #666);
    color: #fff;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    margin-right: 15px;
    font-size: 0.85em;
    flex-shrink: 0;
    position: relative;
}

.facility-list li .pin-number-badge::before {
    content: attr(data-display-number);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    color: #fff;
}


.facility-name {
    flex-grow: 1;
    font-weight: normal;
    color: #333;
    font-size: 0.95em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.facility-time-distance {
    flex-shrink: 0;
    font-size: 0.9em;
    color: #555;
    margin-left: 10px;
    text-align: right;
}

.facility-details {
    display: none !important;
}

/*---------------------------
PC・TABのみ
---------------------------*/
@media only screen and (min-width: 769px) and (max-width: 1024px) {



}

/*---------------------------
Tab
---------------------------*/
@media screen and (max-width: 1024px) {




}

/*---------------------------
sp
---------------------------*/
@media only screen and (max-width: 768px) {
  .copy_box .copy-text {
    width: 85%;
    margin: 20px auto;
  }
  .university-ttl {
    font-size: 20px;
  }
  .university-text {
    font-size: 14px;
    width: 85%;
    margin: 20px auto;
  }
  .university-img {
      display: flex;
      flex-direction: column;
  }
  .university-img p:nth-child(1) {
    flex-basis: auto;
    margin-right: 0;
    margin-bottom: 2%;
  }
  .university-img p:nth-child(2) {
    flex-basis: auto;
    display: flex;
    justify-content: space-between;
  }
  .university-img p:nth-child(2) img:nth-child(1) {
    margin-bottom: 0;
  }
  .university-img p:nth-child(2) img {
    width: 49%;
  }
  .container {
      padding: 0;
      margin: 0;
      max-width: 100%;
  }
  .tabs {
    display: flex;
    justify-content:space-between;
    flex-wrap: wrap;
    margin-bottom: 20px;
    gap: 5px;
      /* flex-direction: column;
      align-items: stretch; */
  }
  .tab-button {

      width: 48.5%;
      margin-bottom: 5px;
  }


  .map-pin {
      position: absolute;
      width: 18px;
      height: 18px;
      cursor: pointer;
      border-radius: 50% 50% 50% 0; /* ピンの形 */
      transform: translate(-50%, -100%) rotate(-45deg); /* 位置と回転 */
      display: flex;
      justify-content: center;
      align-items: center;
      font-weight: bold;
      color: #fff;
      font-size: 0.8em;
      z-index: 10;
  }


  .gmap-Btn {
      text-align: center;
  }
  .gmap-Btn a {
      padding: 10px 20px;
      font-size: 1em;
  }

  .facility-box .ttl {
    font-size: 16px;
    text-align: center;
    margin-bottom: 20px;
  }

  .facility-box ul.img {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .facility-box ul.img li {
    width: calc((100% - 6%) / 2);
    margin-bottom: 20px;
  }

  .facility-list ul {
      flex-direction: column;
  }
  .facility-list li {
      width: 100%;
      margin-right: 0;
      border-bottom: 1px dashed #eee;
  }
  .facility-list li:last-child {
      border-bottom: none;
  }
  .facility-list li:nth-last-child(1),
  .facility-list li:nth-last-child(2) {
      border-bottom: 1px dashed #eee;
  }
  .facility-list li:last-child {
      border-bottom: none;
  }
  .facility-name {
      font-size: 0.85em;
      line-height: 1.3;
      white-space: normal;
      overflow: visible;
      text-overflow: clip;
  }
  .facility-time-distance {
  font-size: 0.8em;
  }

}
