/* メインビジュアル */
.keyvisual-wrapper {
  width: 100%;
  overflow: hidden;
  text-align: center;
}

.keyvisual-slideshow {
  position: relative;
  width: 100%;
  height: 100%;
}

.main-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
  display: block;
}

.main-slide.active {
  opacity: 1;
  z-index: 1;
}

.main-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ドットとコントロール */
.keyvisual-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.dots span {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 6px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.dots span.active {
  background: #333;
}

/* 再生・停止ボタン */
#toggle-play {
  border: none;
  cursor: pointer;
  padding: 6px;
}

#toggle-play svg {
  width: 16px;
  height: 16px;
  fill: #333;
  vertical-align: middle;
}

#play-icon {
  display: none;
}

/* PC表示（768px以上）*/
@media (min-width: 768px) {
  .keyvisual-slideshow,
  .main-slide,
  .main-slide img {
    height: 450px;
  }
}

/*  スマホ表示（767px以下）*/
@media (max-width: 767px) {
  .keyvisual-slideshow {
    height: auto;
  }

  .main-slide {
    height: auto;
  }

  .main-slide img {
    height: auto;
  }

  .keyvisual-controls {
    margin-top: 92% !important;
  }
}

/* ログインボタンブロック */
.section_bg{
background-color: #e9f3fa;
}

.login_card {
  background: #ffffff;
  border-radius: 16px;
  padding: 10px 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2c3e50;
  text-align: center;
  text-decoration: none;
}

.login-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-top: 1px solid #eee;
  padding: 10px 0;
  min-height: 80px;
}

.login-item:first-of-type {
  border-top: none;
}

.login-label {
  font-size: 1.2rem;
  color: #34495e;
  font-weight: bold;
}

.login-btn {
  background: #6eba44;
  color: #fff !important;
  padding: 7px 50px;
  border-radius: 12px;
  font-size: 1.05rem;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}
.btn-green {
  background: #6eba44;
}

.btn-blue {
  background: #004ea2;
}

.btn-gray {
  background: #595757;
}

.login-btn:hover {
  opacity: 0.7;
  text-decoration: none !important;
}

@media (max-width: 576px) {
  .login-item {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .login-btn {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    text-align: center;
  }

  .login-label {
    text-align: center;
    line-height: 1.4;
  }
}

/* コンテンツブロック*/
.nav-tabs {
    display: flex;
    border-bottom: none;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-tabs .nav-link {
    background: #e9f3fa;
    color: #1b4b9e;
    border: none;
    border-radius: 12px;
    padding: 1.2rem 1rem;
    width: 200px;
    height: 135px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 500;
}

.nav-tabs .nav-link img {
    height: 40px;
    margin-bottom: 1rem;
}

.nav-tabs .nav-link:hover {
    background-color: #d0e6ff;
    color: #003d8e;
}

.nav-tabs .nav-link.active {
    background-color: #1b4b9e;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.nav-tabs .nav-link.active img {
    filter: brightness(0) invert(1);
}

.nav-text {
  display: inline-block;
  min-height: 3.2em;
  line-height: 1.4;
}

.card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.2);
}

.card-img-top {
    max-height: 150px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.card-body {
  text-align: center;
}

.card-title {
    font-size: 1.2rem;
    height: 2.4rem;
    font-weight: bold;
    color: #004ea2;
}

.card-text {
    font-size: 1rem;
    color: #595757;
    height: 6rem;
    text-align: left;
}

.no-underline:hover {
  text-decoration: none !important;
}

.hover-opacity:hover {
  opacity: 0.7;
}

.tab-pane {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.tab-pane.show.active {
    opacity: 1;
    transform: translateY(0);
}

#myTabContent .col-md-3 {
    margin-bottom: 1.5rem;
}

.bg_lightblue--service {
    background: linear-gradient(to bottom, #eaf6ff 0%, #ffffff 100%);
    padding: 2rem 0;
}

@media (max-width: 768px) {
    .nav-tabs .nav-link {
        font-size: 0.85rem;
        padding: 0.5rem 0.8rem;
    }
}

@media (max-width: 576px) {
    .nav-tabs {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        margin: 0 auto;
        padding: 0;
        gap: 0;
    }
    .nav-tabs .nav-item {
        width: 25%;
        padding: 4px;
        box-sizing: border-box;
    }

    .nav-tabs .nav-link {
        width: 100%;
        height: 100px;
        padding: 0.6rem 0.4rem;
        font-size: 0.75rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        white-space: normal;
        box-sizing: border-box;
    }

    .nav-tabs .nav-link img {
        width: 28px;
        height: 28px;
        margin-bottom: 0.5rem;
    }
}

.tab-section__view-all-btn {
    color: #fff !important;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px;
    margin: 0 auto;
    padding: .9em 2em;
    border: none;
    border-radius: 5px;
    background-color: #6eba44;
    color: #fff;
    font-weight: 600;
    font-size: 1em;
}

.tab-section__view-all-btn:hover {
    opacity: 0.7;
}

/* バナーブロック */
.banner-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.banner-card {
  flex: 1 1 calc(33.333% - 2rem);
  max-width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  background: white;
}

.banner-card img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

.banner-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.banner-card:hover img {
  transform: scale(1.05);
}

/* スマホ対応 */
@media (max-width: 1024px) {
  .banner-card {
    flex: 1 1 calc(50% - 2rem);
  }
}

@media (max-width: 768px) {
  .banner-row {
    flex-direction: column;
    align-items: center;
  }

  .banner-card {
    flex: none;
    width: 90%;
  }
}


 /* お知らせ */
.newsBlock {
	display: flex;
	justify-content: center;
}
.newsBlock > .col {
	width: 50%;
	max-width: 1000px;
	padding: 0 0 22px;
}

.newsBlock .newsTabBoxWrap {
	position: relative;
}
.newsBlock .newsTabBoxWrap .tabTtl {
	display: flex;
	padding-bottom: 10px;
}
.newsBlock .newsTabBoxWrap .tabTtl li {
	flex: 1;
}
.newsBlock .newsTabBoxWrap .tabTtl li + li {
	padding-left: 1px;
}
.newsBlock .newsTabBoxWrap .tabTtl li a {
	background-color: #e9f3fb;
	color: #333;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	text-align: center;
	text-decoration: none;
	width: 100%;
	height: 70px;
}
.newsBlock .newsTabBoxWrap .tabTtl li .selected,
.newsBlock .newsTabBoxWrap .tabTtl li a:hover {
	background-color: #004ea2;
	color: #fff;
}
.newsBlock .newsTabBoxWrap .tabTtl li .selected:after,
.newsBlock .newsTabBoxWrap .tabTtl li a:hover:after {
	border-style: solid;
	border-width: 15px 14px 0 14px;
	border-color: #004ea2 transparent transparent transparent;
	content: "";
	display: block;
	width: 0;
	height: 0;
	margin-left: -14px;
	position: absolute;
	left: 50%;
	top: 100%;
}
.newsBlock .newsTabBoxWrap .tabContentsWrap {
	margin-top: 10px;
}
.newsBlock .newsTabBoxWrap .tabContentsWrap > div {
	display: none;
}
.newsBlock .newsTabBoxWrap .tabContentsWrap > div:first-child {
	display: block;
}
.newsBlock .newsTabBoxWrap .tabContentsWrap .newsList {
	border-top: 1px solid #e0e0e0;
}
.newsBlock .newsTabBoxWrap .tabContentsWrap .newsList li {
	border-bottom: 1px solid #e0e0e0;
	padding: .5rem 1rem;
  height: 6rem;
}
.newsBlock .newsTabBoxWrap .tabContentsWrap .newsList li .dateWrap {
	position: relative;
	margin-bottom: 8px;
}
.newsBlock .newsTabBoxWrap .tabContentsWrap .newsList li.new .dateWrap:after {
	background-color: #fd3c34;
	content: "NEW";
	color: #fff;
	display: inline-block;
	font-size: 12px;
	width: 40px;
	height: 18px;
	line-height: 18px;
	text-align: center;
}
.newsBlock .newsTabBoxWrap .tabContentsWrap .newsList li.ended .dateWrap:after {
	background-color: #595757;
	content: "終了";
	color: #fff;
	display: inline-block;
	font-size: 12px;
	width: 32px;
	height: 18px;
	line-height: 18px;
	text-align: center;
}
.newsBlock .newsTabBoxWrap .tabContentsWrap .newsList li .dateWrap .date {
	color: #595757;
	display: inline-block;
	margin-right: 20px;
}
.newsBlock .newsTabBoxWrap .tabContentsWrap .newsList li .dateWrap .category {
	border: 1px solid #000;
	display: inline-block;
	font-size: 12px;
	width: 60px;
	height: 18px;
	line-height: 16px;
	margin-right: 10px;
	text-align: center;
}
.newsBlock .newsTabBoxWrap .tabContentsWrap .newsList li .dateWrap .category01 {
	border-color: #bf6be3;
	color: #bf6be3;
}
.newsBlock .newsTabBoxWrap .tabContentsWrap .newsList li .dateWrap .category02 {
	border-color: #e3a754;
	color: #e3a754;
}
.newsBlock .newsTabBoxWrap .tabContentsWrap .newsList li .dateWrap .category03 {
	border-color: #004ea2;
	color: #004ea2;
}
.newsBlock .newsTabBoxWrap .tabContentsWrap .newsList li .dateWrap .category04 {
	border-color: #6eba44;
	color: #6eba44;
}
.newsBlock .newsTabBoxWrap .tabContentsWrap .newsList li a {
	color: #595757;
}
.newsBlock .newsTabBoxWrap .tabContentsWrap .newsList li a:after {
	content: "";
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-left: 8px;
	vertical-align: middle;
}
.newsBlock .newsTabBoxWrap .tabContentsWrap .newsList li a.pdf:after {
	background-image: url(/common/images/icon/icn_pdf.png);
	width: 17px;
	height: 20px;
	margin-left: 5px;
}
@media screen and (max-width: 767px){
.newsBlock {
	display: block;
	padding: 15px 0 20px;
}
.newsBlock > .col:nth-of-type(1),
.newsBlock > .col {
	width: 100%;
	padding: 0 15px;
}
.newsBlock > .col:nth-of-type(2) {
	border-top: 1px solid #e0e0e0;
	border-left: none;
	margin-top: 35px;
	padding: 25px 16px 0;
}
.newsBlock .ttlNews {
	margin-bottom: 27px;
	text-align: center;
}
.newsBlock .ttlNews .jpTtl {
	font-size: 28px;
}
.newsBlock .ttlNews .enTtl {
	margin-top: 10px;
}
.newsBlock .newsTabBoxWrap .tabTtl li a {
	font-size: 12px;
	height: 56px;
}
.newsBlock .newsTabBoxWrap .tabContentsWrap .newsList li {
  padding: 0.75rem;
  height: 8rem;
}
}