@charset "utf-8";
/* TOP Page CSS */
/* ===== MV Slider ===== */
#mv {
  position: relative;
  overflow: hidden;
  height: calc(100vh - 86px - 130px);
  min-height: 550px;
  padding: 0;
}
.mv-slides {
  position: relative;
  width: 100%;
  height: 100%;
}
.mv-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.mv-slide.active {
  opacity: 1;
}
.mv-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.mv-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.45) 0%, rgba(0,0,0,.1) 60%, transparent 100%);
}
.mv-copy {
  position: absolute;
  bottom: clamp(60px, 10vw, 120px);
  left: 0;
  z-index: 10;
  color: #fff;
  padding: 0 clamp(20px, 5vw, 80px);
}
.mv-copy h1 {
  font-size: clamp(26px, 3.5vw, 48px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .05em;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
  margin-bottom: 12px;
}
.mv-copy p {
  font-size: clamp(13px, 1.4vw, 16px);
  line-height: 1.8;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
/* Slider dots */
.mv-dots {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mv-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  transition: background .3s, transform .3s;
  border: none;
}
.mv-dot.active {
  background: #fff;
  transform: scale(1.3);
}
/* SP nav: PCでは常に非表示 */
.sp-nav {
  display: none;
}
/* ===== Quick Access ===== */
#quick-access {
  padding: 0;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  position: relative;
  z-index: 5;
}
.quick-list {
  display: flex;
  border-top: 3px solid var(--main);
}
.quick-item {
  flex: 1;
  border-right: 1px solid var(--border);
  text-align: center;
}
.quick-item:last-child {
  border-right: none;
}
.quick-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 10px 20px;
  gap: 10px;
  transition: background .3s, color .3s;
  color: var(--text);
  height: 100%;
}
.quick-item a:hover {
  background: var(--main-light);
  color: var(--main);
}
.quick-item .icon-wrap {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.quick-item .icon-wrap img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.quick-item span {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .05em;
  line-height: 1.4;
}
.quick-item .arr {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--main);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  margin-top: 4px;
  transition: background .3s;
}
.quick-item a:hover .arr {
  background: var(--main-dark);
}
/* ===== お知らせ ===== */
#news {
  background: #fff;
  padding: clamp(50px, 6vw, 80px) 0;
}
.news-wrap {
  display: flex;
  gap: 80px;
  align-items: flex-start;
}
.news-main {
  flex: 1;
  min-width: 540px;
}
.news-side {
  width: 380px;
  flex-shrink: 0;
}
/* News box wrapper */
.news-box {
  border: 1px solid var(--border);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 0 5px rgba(0,0,0,.18);
}
/* Tabs — folder style on top of box */
.news-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 0;
}
.news-tab {
  padding: 10px clamp(0.313rem, -0.354rem + 2.8vw, 1.75rem);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: #fff;
  color: #555;
  border: 1px solid var(--border);
  border-bottom: none;
  margin-right: 4px;
  transition: background .25s, color .25s;
  letter-spacing: .05em;
  position: relative;
  width: calc(100% / 4)
}
.news-tab:first-child {
  border-radius: 4px 0 0 0;
}
.news-tab:last-child {
  border-radius: 0 4px 0 0;
  margin-right: 0px;
}
.news-tab.active {
  background: var(--main);
  color: #fff;
  border-color: var(--main);
  z-index: 1;
}
.news-tab:hover:not(.active) {
  background: var(--main-light);
  color: var(--main);
  border-color: var(--main);
}
/* News list inside box */
.news-list {
  display: none;
}
.news-list.active {
  display: block;
}
.news-list ul, .news-box .news-list {
  padding: 30px clamp(0.313rem, -0.354rem + 2.8vw, 1.75rem);
}
.news-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  transition: background .2s;
}
.news-item:first-child {
  border-top: none;
}
.news-item:last-child {
  border-bottom: none;
}
.news-item:hover {
  background: var(--main-light);
}
.news-date {
  font-size: 13px;
  color: #888;
  flex-shrink: 0;
  letter-spacing: .05em;
  min-width: 80px;
}
.news-cat {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 3px;
  letter-spacing: .05em;
  min-width: 90px;
  text-align: center;
}
.cat-assoc {
  background: var(--main);
  color: #fff;
}
.cat-tsukuba {
  background: #29b6f6;
  color: #fff;
}
.cat-govt {
  background: #e91e8c;
  color: #fff;
}
.news-title {
  font-size: 14px;
  color: var(--text);
  flex: 1;
  transition: color .3s;
}
.news-item:hover .news-title {
  color: var(--main);
}
/* Side panel (つくばリンク）*/
.news-side-card {
  background: var(--main);
  border-radius: 6px;
  overflow: hidden;
  color: #fff;
}
.news-side-card .side-img {
  height: 160px;
  overflow: hidden;
}
.news-side-card .side-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.news-side-card:hover .side-img img {
  transform: scale(1.05);
}
.news-side-body {
  padding: 16px;
}
.news-side-body h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.news-side-body h3 i {
  width: 30px
}
.news-side-body h3 i img {
  filter: brightness(0) invert(1);
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.news-side-body p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 12px;
}
.side-tel {
  background: rgba(255,255,255,.35);
  border-radius: 4px;
  padding: 8px 12px;
  margin-bottom: 12px;
  font-size: 14px;
  display: block;
  color: #fff;
  pointer-events: painted;
}
.side-tel strong {
  font-size: 25px;
  display: block;
  letter-spacing: .05em;
}
.side-tel strong i {
  font-size: 20px
}
.btn-side {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  color: var(--main);
  padding: 10px 16px;
  border-radius: 4px;
  font-weight: 700;
  transition: background .3s;
}
.side-tel:hover {
  background: rgba(255,255,255,.15);
}
.btn-side:hover {
  background: var(--main-light);
  color: var(--main);
}
/* ===== 目的から探す ===== */
#purpose {
  padding: clamp(50px, 6vw, 80px) 0;
  background: url('../../img/index/selectbg.jpg') center/cover no-repeat;
  position: relative;
}
/*#purpose::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(230, 247, 242, .88);
}*/
#purpose .inner {
  position: relative;
}
#purpose .sec-head {
  justify-content: center;
}
#purpose .sec-head h2 {
  font-size: clamp(18px, 2.2vw, 24px);
}
.purpose-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.purpose-item a {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border-radius: 6px;
  padding: 18px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: box-shadow .3s, transform .3s;
  border-left: 4px solid var(--main);
}
.purpose-item a:hover {
  box-shadow: 0 6px 20px rgba(0,163,122,.18);
  transform: translateY(-2px);
}
.purpose-item .p-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.purpose-item .p-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.purpose-item .p-text {
  flex: 1;
}
.purpose-item .p-text strong {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.purpose-item .p-text span {
  display: block;
  font-size: 14px;
  color: #888;
  line-height: 1.5;
}
.purpose-item .p-arr {
  color: var(--main);
  font-size: 14px;
  flex-shrink: 0;
}
/* ===== 協会NEWS ===== */
#assoc-news {
  background: var(--gray);
  padding: clamp(50px, 6vw, 80px) 0;
}
.news-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.news-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: box-shadow .3s, transform .3s;
}
.news-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  transform: translateY(-3px);
}
.news-card a {
  display: block;
}
.card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
	display: flex;
    justify-content: center;	
}
.card-img img {
  width: auto;
  height: 100%;
  object-fit: contain;
  transition: transform .4s;
	object-position: center;
}
.news-card:hover .card-img img {
  transform: scale(1.06);
}
.card-body {
  padding: 14px 16px 16px;
}
.card-date {
  font-size: 12px;
  color: #888;
  margin-bottom: 6px;
}
.card-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
  transition: color .3s;
}
.news-card:hover .card-title {
  color: var(--main);
}
.card-more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--main);
  color: #fff;
  margin: 10px 16px 14px auto;
  font-size: 13px;
  transition: background .3s;
}
.news-card:hover .card-more {
  background: var(--main-dark);
}
/* ===== BGM toggle (FV mv-copy内) ===== */
.mv-sound-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 10px 22px;
  color: #fff;
  font-size: 13px;
  letter-spacing: .05em;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 999px;
  backdrop-filter: blur(2px);
  cursor: pointer;
  transition: background .3s, color .3s;
}
.mv-sound-btn:hover {
  background: #fff;
  color: var(--main-dark);
}
.mv-sound-btn.is-muted i {
  opacity: .8;
}
/* ===== Responsive ===== */
/* news-wrap 縦積み：news-main(540px) + gap(80px) + side(380px) が収まらなくなる幅 */
@media (max-width: 1000px) {
  .news-wrap {
    flex-direction: column;
    gap: 30px;
  }
  .news-main {
    min-width: 0;
    width: 100%;
  }
  .news-side {
    width: 100%;
  }
}
/* 600px以下：news-item を日付・カテゴリ／タイトルの2段表示 */
@media (max-width: 600px) {
  .news-item {
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 14px 16px;
  }
  .news-date {
    min-width: auto;
  }
  .news-cat {
    min-width: auto;
  }
  .news-title {
    width: 100%;
    flex-basis: 100%;
    padding-left: 2px;
  }
}
@media (max-width: 1024px) {
  .news-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .purpose-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 699px) {
  #quick-access {
    display: none;
  }
}
@media (max-width: 767px) {
  #mv {
    margin-top: 30px;
    height: 70vw;
    min-height: 300px;
  }
  .quick-list {
    flex-wrap: wrap;
  }
  .quick-item {
    width: 33.33%;
    border-bottom: 1px solid var(--border);
  }
  .quick-item:nth-child(3) {
    border-right: none;
  }
  .quick-item a {
    padding: 16px 6px 14px;
  }
  .news-wrap {
    flex-direction: column;
  }
  .news-main {
    min-width: 0;
    width: 100%;
  }
  .news-side {
    width: 100%;
  }
  .purpose-grid {
    grid-template-columns: 1fr;
  }
  .news-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
@media (max-width: 480px) {
  .news-cards {
    grid-template-columns: 1fr;
  }
  .quick-item {
    width: 50%;
  }
  .quick-item:nth-child(3) {
    border-right: 1px solid var(--border);
  }
  .quick-item:nth-child(2), .quick-item:nth-child(4) {
    border-right: none;
  }
}
