@charset "UTF-8";
/* --------------------------------------------------
  map page
  -------------------------------------------------- */
body:has(#map) {
  overflow: auto;
}

#map {
  padding: 13rem 0 0rem;
  background-color: var(--c-bg-beige);
  background-image: radial-gradient(circle, var(--c-dot-gray) 1px, transparent 1px);
  background-position: 0 0;
  background-size: 8px 8px;
}
@media screen and (width <= 767px) {
  #map {
    padding: 8rem 0 0rem;
  }
}

/* 一個の大きな白背景 */
.map-inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 3rem;
    background-color: var(--c-white);
    border-radius: 2rem;
    padding: 9rem;
}
@media screen and (width <= 767px) {
  .map-inner {
    margin: 0 5%;
    margin-bottom: 2rem;
    border-radius: 1.6rem;
	padding: 5rem 5%;
  }
}

/* 各セクション内の inner も 820px に統一 */
#map .map-inner .inner-820 {
  max-width: 920px;
}

/* --------------------------------------------------
  hero
  -------------------------------------------------- */
.map-hero {
  padding: 0 0 4rem;
}
@media screen and (width <= 767px) {
  .map-hero {
    padding-bottom: 3rem;
  }
}
.map-hero .title-wrapper {
  text-align: center;
}
.map-hero .title-wrapper h1 {
  font-size: 4rem;
}
@media screen and (width <= 767px) {
  .map-hero .title-wrapper h1 {
    font-size: 2.8rem;
  }
}

.map-hero .description-wrapper {
  max-width: 62rem;
  margin: 3rem auto 0;
}
@media screen and (width <= 767px) {
  .map-hero .description-wrapper {
    margin: 2rem auto 0;
  }
}
.map-hero .description-wrapper .description {
  line-height: 1.9;
  text-align: justify;
}
@media screen and (width <= 767px) {
  .map-hero .description-wrapper .description {
    font-size: 1.4rem;
  }
}

/* --------------------------------------------------
  location (geo + campus map)
  -------------------------------------------------- */
.map-location-inner {
  display: flex;
  gap: 4rem;
  align-items: flex-start;
  justify-content: space-between;
}
@media screen and (width <= 767px) {
  .map-location-inner {
    flex-direction: column;
    gap: 2rem;
  }
}

.map-geo {
  flex: 0 1 45%;
  max-width: 45rem;
}
@media screen and (width <= 767px) {
  .map-geo {
    display: flex;
    flex: none;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    max-width: 100%;
  }
}
@media screen and (width <= 767px) {
  .map-geo .map-hokkaido,
  .map-geo .map-japan {
    width: 50%;
  }
}
.map-geo .map-hokkaido img,
.map-geo .map-japan img {
  width: 100%;
  height: auto;
}
.map-geo .map-japan {
  margin-top: 2rem;
}
@media screen and (width <= 767px) {
  .map-geo .map-japan {
    margin-top: 0;
  }
}
.map-geo .map-geo-caption {
  margin-top: 1.5rem;
  font-size: 1.4rem;
  color: var(--c-gray);
}
@media screen and (width <= 767px) {
  .map-geo .map-geo-caption {
    width: 100%;
    font-size: 1.2rem;
  }
}

.map-campus {
  flex: 0 1 55%;
}
@media screen and (width <= 767px) {
  .map-campus {
    flex: none;
    width: 100%;
  }
}
.map-campus .map-sapporo img {
  width: 100%;
  height: auto;
}

/* マップページでは Lottie（札幌キャンパス）の背景を透明に */
#map #lottie17 {
  background: transparent;
}
#map #lottie17 svg {
  background: transparent;
}

/* --------------------------------------------------
  section title（共通）
  -------------------------------------------------- */
.section-title {
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-align: center;
}
@media screen and (width <= 767px) {
  .section-title {
    font-size: 2.2rem;
  }
}

.department-header .section-title {
  margin-bottom: 0;
}

/* --------------------------------------------------
  status（技術者の在籍状況）画像
  -------------------------------------------------- */
.status-table-img {
  margin-top: 2rem;
  overflow-x: auto;
}
@media screen and (width <= 767px) {
  .status-table-img {
    /* SP 時は横スクロールで見せる想定 */
    -webkit-overflow-scrolling: touch;
  }
}
.status-table-img img {
  width: 100%;
  height: auto;
  vertical-align: top;
}
@media screen and (width <= 767px) {
  .status-table-img img {
    min-width: 620px;
  }
}

/* --------------------------------------------------
  department (tabs + panels)
  -------------------------------------------------- */
.section-note {
  margin-top: 0.5rem;
  font-size: 1.5rem;
  color: var(--c-black);
  text-align: center;
}
@media screen and (width <= 767px) {
  .section-note {
    font-size: 1.3rem;
  }
}

.department-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 0;
}
@media screen and (width <= 767px) {
  .department-header {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }
}

.department-header-left {
  flex: 1;
  text-align: center;
}

.department-header-note {
  flex-shrink: 0;
  font-size: 1.3rem;
  color: #d9534f;
  white-space: nowrap;
}
@media screen and (width <= 767px) {
  .department-header-note {
    font-size: 1.1rem;
  }
}

.department-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 2rem;
}
@media screen and (width <= 767px) {
  .department-tabs {
    flex-wrap: nowrap;
    margin-top: 1.5rem;
    overflow-x: auto;
  }
}

.tab-item {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
  min-width: 0;
}

.tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 8rem;
  padding: 1.4rem 1rem;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--c-black);
  text-align: center;
  cursor: pointer;
  background-color: var(--c-white);
  border: none;
  border-radius: 0.8rem 0.8rem 0 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: color 0.25s, box-shadow 0.25s;
}
@media screen and (width <= 767px) {
  .tab-btn {
    padding: 1rem 0.6rem;
    font-size: 1.2rem;
  }
}
@media screen and (width <= 450px) {
  .tab-btn {
    padding: 1rem 0.1rem;
    font-size: 1.0rem;
  }
}
.tab-btn:hover {
  color: var(--c-black);
}

.tab-item.is-active .tab-btn {
  font-weight: 700;
  color: var(--c-black);
}

.tab-label {
  display: block;
  font-weight: inherit;
  line-height: 1.3;
}
@media screen and (width <= 767px) {
  .tab-label {
    font-size: 10px;
  }
}

.tab-sublabel {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.2rem;
  font-weight: 500;
  color: inherit;
}
@media screen and (width <= 767px) {
  .tab-sublabel {
    font-size: 1rem;
  }
}

.tab-bar {
  display: block;
  width: 100%;
  height: 16px;
  margin-top: 0;
  transition: height 0.2s;
}
.tab-item:not(.is-active) .tab-bar {
  height: 10px;
}
@media screen and (width <= 767px) {
  .tab-item:not(.is-active) .tab-bar {
    height: 6px;
  }
}
.tab-item.is-active .tab-bar {
  height: 16px;
  margin-top: -5px;
}
@media screen and (width <= 767px) {
  .tab-item.is-active .tab-bar {
    height: 10px;
  }
}
.tab-bar.tab-bar-green {
  background-color: #62c4bb;
}
.tab-bar.tab-bar-purple {
  background-color: #aa97b9;
}
.tab-bar.tab-bar-blue {
  background-color: #64b4e6;
}
.tab-bar.tab-bar-red {
  background-color: #e66464;
}
.tab-bar.tab-bar-yellow {
  background-color: #bce650;
}

/* panel */
.department-panel {
  position: relative;
  display: none;
  padding: 3rem;
  background-color: #f5f5f5;
}
@media screen and (width <= 767px) {
  .department-panel {
    padding: 2rem 1.5rem;
  }
}
.department-panel.is-visible {
  display: block;
}

.panel-body {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}
@media screen and (width <= 767px) {
  .panel-body {
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
  }
}

.panel-body-text {
  flex: 1;
  min-width: 0;
}

/* 名前と部門名ブロック：擬似要素で左に縦ライン */
.panel-heading {
  padding-left: 1.8rem;
}
.panel-heading::before {
  position: absolute;
  top: 28px;
  bottom: 0;
  left: 0;
  width: 9px;
  /* border-radius: 3px; */
  height: 73px;
  content: "";
}
@media screen and (width <= 767px) {
  .panel-heading::before {
    top: 20px;
    width: 6px;
  }
}

.department-panel[data-panel-color=green] .panel-heading::before {
  background-color: #62c4bb;
}

.department-panel[data-panel-color=purple] .panel-heading::before {
  background-color: #aa97b9;
}

.department-panel[data-panel-color=blue] .panel-heading::before {
  background-color: #64b4e6;
}

.department-panel[data-panel-color=red] .panel-heading::before {
  background-color: #e66464;
}

.department-panel[data-panel-color=yellow] .panel-heading::before {
  background-color: #bce650;
}

.panel-title-wrap {
  margin-bottom: 0.8rem;
}
@media screen and (width <= 767px) {
  .panel-title-wrap {
    margin-top: 0.5rem;
    margin-bottom: 0;
  }
}

.panel-title {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.3;
}
@media screen and (width <= 767px) {
  .panel-title {
    font-size: 2rem;
  }
}

.panel-lead {
  margin: 0.8rem 0 1.5rem;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--c-black);
}
@media screen and (width <= 767px) {
  .panel-lead {
    margin-top: 0.3rem;
    font-size: 1.4rem;
  }
}
.panel-lead .panel-lead-name {
  font-size: 20px;
}

.panel-description {
  margin-bottom: 0;
  line-height: 1.9;
  text-align: justify;
}
@media screen and (width <= 767px) {
  .panel-description {
    font-size: 1.4rem;
  }
}

.panel-body-photo {
  flex-shrink: 0;
  width: 24rem;
  max-width: 100%;
}
@media screen and (width <= 767px) {
  .panel-body-photo {
    width: 100%;
    max-width: 24rem;
    margin: 0 auto;
  }
}
.panel-body-photo img {
  width: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}

.panel-deploy {
  margin-bottom: 2rem;
}
.panel-deploy a {
  text-decoration: underline;
}
.panel-deploy .label {
  margin-bottom: 0.8rem;
  font-weight: 700;
}
.panel-deploy .deploy-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.panel-deploy .deploy-dots li {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 1.5rem;
}
.panel-deploy .deploy-dot {
  display: inline-block;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
}

/* 各部門のキーカラーで配置先部局のドットを統一 */
.department-panel[data-panel-color=green] .panel-deploy .deploy-dot {
  background-color: #62c4bb;
}

.department-panel[data-panel-color=purple] .panel-deploy .deploy-dot {
  background-color: #aa97b9;
}

.department-panel[data-panel-color=blue] .panel-deploy .deploy-dot {
  background-color: #64b4e6;
}

.department-panel[data-panel-color=red] .panel-deploy .deploy-dot {
  background-color: #e66464;
}

.department-panel[data-panel-color=yellow] .panel-deploy .deploy-dot {
  background-color: #bce650;
}

.panel-groups .label {
  margin-bottom: 1rem;
  font-weight: 700;
}
.panel-groups {
  /* トップページ #StaffMap .group-wrapper ul.tech-list と同じ見た目 */
}
.panel-groups ul.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  row-gap: 1.5rem;
  padding: 0;
  margin: 2rem 0 0;
  list-style: none;
}
@media screen and (width <= 767px) {
  .panel-groups ul.tech-list {
    row-gap: 1rem;
  }
}
.panel-groups ul.tech-list li {
  width: 49%;
}
@media screen and (width <= 767px) {
  .panel-groups ul.tech-list li {
    width: 100%;
  }
}
.panel-groups ul.tech-list a.btn-arrow {
  position: relative;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: flex-start;
  height: 6.6rem;
  background-color: var(--c-white);
  border-radius: 5rem;
  box-shadow: 1rem 1rem 3rem rgba(0, 0, 0, 0.03);
  transition: all 0.3s;
}
@media screen and (width <= 767px) {
  .panel-groups ul.tech-list a.btn-arrow {
    height: 4.5rem;
  }
}
.panel-groups ul.tech-list a.btn-arrow::after {
  position: absolute;
  top: 0;
  right: 2.5rem;
  bottom: 0;
  width: 12px;
  height: 12px;
  margin: auto;
  content: "";
  border: 0;
  border-top: solid 2px var(--c-black);
  border-right: solid 2px var(--c-black);
  transition: all 0.3s;
  transform: rotate(45deg);
}
@media screen and (width <= 767px) {
  .panel-groups ul.tech-list a.btn-arrow::after {
    right: 2rem;
    width: 8px;
    height: 8px;
    border-top-width: 1px;
    border-right-width: 1px;
  }
}
.panel-groups ul.tech-list a.btn-arrow:hover {
  opacity: 0.6;
}
.panel-groups ul.tech-list a.btn-arrow:hover::after {
  right: 1.5rem;
}
.panel-groups ul.tech-list a.btn-arrow div {
  flex-shrink: 0;
}
.panel-groups ul.tech-list a.btn-arrow div img {
  width: 6.6rem;
  height: auto;
  -o-object-fit: contain;
     object-fit: contain;
}
@media screen and (width <= 767px) {
  .panel-groups ul.tech-list a.btn-arrow div img {
    width: 4.5rem;
  }
}
.panel-groups ul.tech-list a.btn-arrow p {
  line-height: 1.1;
}
@media screen and (width <= 767px) {
  .panel-groups ul.tech-list a.btn-arrow p {
    font-size: 1.6rem;
  }
}
.panel-groups ul.tech-list a.btn-arrow p span.size-14 {
  font-size: 1.2rem;
}

/* --------------------------------------------------
  technical groups (cards grid) — デザイン仕様
  -------------------------------------------------- */
.map-group .section-note {
  padding-top: 5rem;
  margin-top: 4rem;
  margin-bottom: 0.5rem;
  color: var(--c-black);
  border-top: 2px solid var(--c-border-light-gray);
}
.map-group .section-title {
  margin-top: 0;
  margin-bottom: 0;
  font-weight: 700;
  color: var(--c-black);
}

.group-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 0;
  margin: 3rem 0 0;
  list-style: none;
}
@media screen and (width <= 1024px) {
  .group-cards {
    grid-template-columns: repeat(2, 1fr);
  }
	.map-group .inner-820{
		padding: 0;
	}
}
@media screen and (width <= 767px) {
  .group-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0 0;
  }
}
.group-cards li {
  height: 300px;
  margin-top: 40px;
  margin-bottom: 0;
}
@media screen and (width <= 767px) {
  .group-cards li {
    margin-top: 15px;
    margin-bottom: 15px;
  }
}

.group-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.4rem 1.2rem 3.2rem;
  margin-top: 30px;
  text-align: center;
  background-color: var(--c-white);
  border-radius: 1.2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  height: 230px;
}
.group-card > * {
  transition: opacity 0.3s;
}
.group-card:hover {
  opacity: 1;
}
.group-card:hover > * {
  opacity: 0.6;
}
@media screen and (width <= 767px) {
  .group-card {
    padding: 2.4rem 1rem 1rem;
  }
}
.group-card .group-card-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 8rem;
  height: 8rem;
  margin-top: -62px;
  margin-bottom: 1.6rem;
  overflow: visible;
  border-radius: 50%;
  /* シャドウを上半分だけに表示（擬似要素 + clip-path） */
}
.group-card .group-card-icon::before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 50% 0);
  pointer-events: none;
  content: "";
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}
.group-card .group-card-icon img {
  width: 7.4rem;
  height: 7.4rem;
  -o-object-fit: contain;
     object-fit: contain;
}
.group-card .group-card-title {
  margin: 0 0 0.6rem;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-black);
}
.group-card .group-card-title .group-card-subtitle {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.4rem;
  font-weight: 500;
}
.group-card .group-card-desc {
  flex: 1;
  width: 100%;
  margin: 0 0 1.6rem;
  font-size: 1.4rem;
  line-height: 1.75;
  color: var(--c-black);
  text-align: justify;
}
@media screen and (width <= 767px) {
  .group-card .group-card-desc {
    font-size: 1.2rem;
  }
	.group-card .group-card-title {
		font-size: 1.5rem;
	}
	.group-card .group-card-title .group-card-subtitle {
		font-size: 1.2rem;
	}
	
	.group-card{
		height: 260px;
	}


}
.group-card .group-card-arrow {
  position: absolute;
  right: 0;
  bottom: -15px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin: 0 auto;
  background-color: #333;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.group-card .group-card-arrow::after {
  width: 6px;
  height: 6px;
  margin-left: -2px;
  content: "";
  border-top: 2px solid var(--c-white);
  border-right: 2px solid var(--c-white);
  transform: rotate(45deg);
}

/* --------------------------------------------------
  CTA + update note
  -------------------------------------------------- */
.map-cta {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  margin-top: 4rem;
  text-align: center;
}
@media screen and (width <= 767px) {
  .map-cta {
    margin-top: 3rem;
  }
}
.map-cta .update-note {
  max-width: 32rem;
  line-height: 1.6;
  color: var(--c-gray);
}

/* セクション間の余白（白い inner 内） */
.map-hero + .map-location,
.map-location + .map-status,
.map-status + .map-department,
.map-department + .map-group {
  padding-top: 3rem;
}
@media screen and (width <= 767px) {
  .map-hero + .map-location,
  .map-location + .map-status,
  .map-status + .map-department,
  .map-department + .map-group {
    padding-top: 2rem;
  }
}
