@charset "UTF-8";

.section-title h2{
  line-height: 40px;
  text-align:center;
  margin: 0px 0px 0px 10px;
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
}

section.hokuriku-inner-contents #inner-head-road {
	display: flex;
	justify-content: space-between;
	align-items: stretch;
	width: 100%;
	border-radius: 0 0 0.75rem 0.75rem;;
	overflow: hidden;
}

section.hokuriku-inner-contents #inner-head-road #inner-head-road-slider {
	position: relative;
	width: 100%;
	overflow: hidden;
}

section.hokuriku-inner-contents #inner-head-road #inner-head-road-slider .swiper-slide img {
	width: 100%;
  height: auto;
	object-fit: cover;
	object-position: center;
}

section.hokuriku-inner-contents #inner-head-road #inner-head-road-slider #carousel-prev,
section.hokuriku-inner-contents #inner-head-road #inner-head-road-slider #carousel-next {
	position: absolute;
	z-index: 10;
	top: calc(50% - 25px);
	display: block;
	width: 50px;
	height: 50px;
}
section.hokuriku-inner-contents #inner-head-road #inner-head-road-slider #carousel-prev img,
section.hokuriku-inner-contents #inner-head-road #inner-head-road-slider #carousel-next img {
	width: 100%;
}
section.hokuriku-inner-contents #inner-head-road #inner-head-road-slider #carousel-prev {
	left: 5px;
}
section.hokuriku-inner-contents #inner-head-road #inner-head-road-slider #carousel-next {
	right: 5px;
}
section.hokuriku-inner-contents #inner-head-road #inner-head-road-slider span.swiper-pagination-bullet {
	background-color: #fff;
}

.swiper-backface-hidden .swiper-slide {
	position: relative;
}

.swiper-backface-hidden .swiper-slide span {
	position: absolute;
	top: 0;
  right: 0;
  height: 50px;
	background-color: rgba(0, 176, 240, 0.6);
	color: #fff;
	font-size: 20px;
  border-radius: 0 0 0 0;
  display: flex;
  justify-content: flex-end; /* 横方向右寄せ */
  align-items: center;       /* 縦方向中央寄せ */
}

@media screen and (max-width: 768px) {
  .swiper-backface-hidden .swiper-slide span {
    height: 15px;
    font-size: 8px;
  }
}

.swiper {
  position: relative; /* 相対配置で基準にする */
}

.corner-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 230px;   /* 三角形の横幅 */
  height: 180px;  /* 三角形の縦幅 */
  background: rgba(54, 87, 187, 0.8);
  clip-path: polygon(0 0, 100% 0, 0 100%); /* 左上の三角形 */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.corner-text span {
  color: white;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  transform: translate(-60%, -160%);
}

@media screen and (max-width: 768px) {
  .corner-text {
    width: 80px;   /* 三角形の横幅 */
    height: 80px;  /* 三角形の縦幅 */
  }
  .corner-text span {
    font-size: 12px;
    transform: translate(-40%, -150%);
  }
}

.emergency-container {
  width: 100%;
  display: block;
  margin: 10px 0px 10px 0px;
}

.emergency-container:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.emergency-container img {
  width: 100%;
  height: auto;
  display: block;
}

.topic-slide {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
}

.topic-slide .swiper-slide {
  width: 50%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
}

.topic-slide img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  display: block;
  transition: all 0.3s ease; /* 切り替え時に滑らかに */
}

/* 中央スライドは通常表示 */
.topic-slide .swiper-slide-active img {
  filter: none;
  opacity: 1;
  transform: scale(1);
}

/* 前後チラ見えスライドを白っぽく */
.topic-slide .swiper-slide-prev img,
.topic-slide .swiper-slide-next img {
  filter: brightness(100%) grayscale(0%);
  opacity: 0.5;
  transform: scale(0.8); /* 少し小さくして中央との差を強調 */
}

@media screen and (max-width: 768px) {
  .topic-slide .swiper-slide {
    width: 70%;    /* スマホでは中央スライドを大きく */
    height: 50vw;  /* 高さも画面幅に応じて大きめに */
  }
  .topic-slide .swiper-slide-prev img,
  .topic-slide .swiper-slide-next img {
    transform: scale(0.7); /* 前後スライドは少し小さめ */
  }
}

@media screen and (max-width: 480px) {
  .topic-slide .swiper-slide {
    width: 90%;    /* ほぼ全幅にして中央を目立たせる */
    height: 60vw;
  }
  .topic-slide .swiper-slide-prev img,
  .topic-slide .swiper-slide-next img {
    transform: scale(0.65);
  }
}

.topic-slide .swiper-slide-duplicate img {
  width: 100%;
  height: 100%;
}

.topic-slide .topic-swiper-pagination {
	bottom: 30px;
}

.topic-slide .topic-swiper-pagination {
  bottom: 30px;
  text-align: center;
}

.topic-slide .swiper-pagination-bullet {
  margin: 0 5px;
  width: 10px;
  height: 10px;
  background-color: #3657bb;
  opacity: 0.6;
}

.topic-slide .swiper-pagination-bullet-active {
  opacity: 1;
  background-color: #3657bb; /* アクティブ時の色（例） */
}

.topic-slide .topic-swiper-button-prev {
	position: absolute;
	top: calc(50% - 30px);
	left: 2.5%;
	display: block;
	width: 60px;
	height: 60px;
	margin: 0;
	background-image: url(../img/swiper-prev.png);
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
  z-index: 9999 !important;
}

.topic-slide .topic-swiper-button-next {
	position: absolute;
	top: calc(50% - 30px);
	right: 2.5%;
	display: block;
	width: 60px;
	height: 60px;
	margin: 0;
	background-image: url(../img/swiper-next.png);
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
  z-index: 9999 !important;
}

.topic-slide .topic-swiper-button-prev::after,
.topic-slide .topic-swiper-button-next::after {
	display: none;
}

.topic-info {
  border: 3px solid #3657bb;
  border-radius: 8px;
  padding: 15px;
  margin: 15px 0px 10px 10px;
  display: flex;
  align-items: flex-start;
}

.topic-link {
  display: flex !important;
  align-items: center !important;
  text-decoration: none;
  width: 100%;
}

.info-logo {
  width: 50%;
  height: auto;
  margin-right: 8px;
}

.info-text {
  font-size: 23px;
  font-weight: bold;
  color: #444444;
  margin-right: 8px;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .info-text {
    font-size: 10px;
  }
}

.info-image {
  margin-left: auto;
  max-width: 300px;
}

.info-image img {
  width: 100%;
  height: auto;
  display: block;
}

.oshirase-list {
  max-height: 300px;
  overflow: auto;
  overflow-y:scroll;
}

.oshirase-list li {
  display: flex;          /* 日付と部名を横並びに */
  flex-wrap: wrap;        /* 下のリンクは改行可能に */
  align-items: center;    /* 高さ揃え */
  margin: 0px 0px 0px 10px !important;
  gap: 4px;               /* 日付と部名の間の隙間 */
  font-size: 0.9rem;
}

.oshirase-list li a {
  flex-basis: 100%;       /* リンクは1行占有して下に配置 */
  margin: 0px 0px 10px 10px !important;
  padding-bottom: 10px;
  border-bottom: 1px dashed #6c87da;
  display: inline-block;
}

.oshirase-list li span.color-01 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 0 8px;
  background-color: #D32F2F;  /*本局用の色*/
  color: #fff;             
  border-radius: 4px;         
}

.oshirase-list li span.color-02 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 0 8px;
  background-color: #F57C00;  /*羽越用の色*/
  color: #fff;             
  border-radius: 4px;         
}

.oshirase-list li span.color-03 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 0 8px;
  background-color: #FBC02D;  /*新国用の色*/
  color: #fff;             
  border-radius: 4px;         
}

.oshirase-list li span.color-04 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 0 8px;
  background-color: #388E3C;  /*長国用の色*/
  color: #fff;             
  border-radius: 4px;         
}

.oshirase-list li span.color-05 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 0 8px;
  background-color: #1976D2;  /*高田用の色*/
  color: #fff;             
  border-radius: 4px;         
}

.oshirase-list li span.color-06 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 0 8px;
  background-color: #7B1FA2;  /*富山用の色*/
  color: #fff;             
  border-radius: 4px;         
}

.oshirase-list li span.color-07 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 0 8px;
  background-color: #C2185B;  /*金沢用の色*/
  color: #fff;             
  border-radius: 4px;         
}

.oshirase-list li span.color-08 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 0 8px;
  background-color: #4ba797;  /*能登復興用の色*/
  color: #fff;             
  border-radius: 4px;         
}

.oshirase-list li span.color-09 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 0 8px;
  background-color: #455A64;  /*その他用の色*/
  color: #fff;             
  border-radius: 4px;         
}

.oshirase-ichiran-container {
  text-align: right;
}

.oshirase-ichiran {
  display: inline-block;
  padding: 5px 10px 5px 10px;
  margin: 20px 0px 10px 10px;
  border-radius: 8px;       /* 角を丸くする */
  background-color: #3657bb;
}

.oshirase-ichiran a {
  color: #fff !important; 
}

.flex-container {
  display: flex;
  flex-wrap: wrap;          /* 折り返しを有効化 */
  gap: 16px;
  padding: 20px 20px 0 20px;
  justify-content: center;  /* 中央寄せ */
}

.flex-item {
  position: relative;
  flex: 1 1 calc(25% - 16px); /* 幅を可変（4列想定） */
  min-width: 250px;          /* 最小幅 */
  max-width: 250px;          /* 最大幅 */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: transform 0.3s ease;
  text-decoration: none;   /* リンクの下線消す */
  color: inherit;          /* 文字色継承 */
  display: block;          /* aをブロック化 */
}

.flex-item:hover {
  transform: scale(1.05);
}

.flex-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.flex-item::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 3px solid #fff;
  border-radius: 6px;
  z-index: 2;   /* オーバーレイより上 */
  pointer-events: none; /* 枠線がクリックを邪魔しないように */
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  font-size: 1.8rem;
  white-space: nowrap;
  font-weight: bold;
  padding: 10px;
  box-sizing: border-box;
  z-index: 1; /* 枠線より下 */
}

.viewmore {
  padding: 10px;
  border: 3px solid #3657bb;
  border-radius: 8px;       /* 角を丸くする */
  background-color: #f0f0f0;
  display: inline-block;
}

.viewmore:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.viewmore a {
  font-size: 1.2rem !important;
  font-weight: bold;
  color: #3657bb !important;
}

.info-container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 20px 0 20px;
  justify-content: center;  /* 中央寄せ */
}

.info-card {
  flex:1 1 calc(25% - 16px);
  min-width:240px;
  max-width:275px;
  background: #3657bb;
  border-radius: 8px;
  overflow:hidden;
  border: 2px solid rgba(0,0,0,.06);
}

.card-hero {
  background: #fff;
  display:flex;
  align-items:center;
  justify-content:center;
  aspect-ratio: 16 / 9;
}

.card-hero img {
  max-width: 100%;
  height:auto;
  display:block;
}

.card-title {
  margin:0;
  padding:8px 8px;
  background: #3657bb;
  color: #fff;
  font-size: 18px;
  display: inline-block;
  align-items:center;
  gap:10px;
  font-weight: 700;
}

.card-links {
  margin:0 !important;
  background-color: #3657bb !important;
  padding:10px;
  list-style:none;
  background: #fff;
}

.card-links li {
  position:relative;
  background-color: #fff !important;
  margin:0 !important;
  padding-left:20px;
  padding:2px 2px 2px 20px;
}


.card-links li::before {
  content:"\25B8";
  position:absolute;
  left:4px;
  top:0;
  line-height:1.7;
  opacity:.85;
  color:#006496;
}

.card-links a{
  display: block;
  width: 100%;
  white-space: normal; /* 改行可能 */
  line-height: 1.2;
  text-decoration: none;
}

.other-list {
  flex-wrap: wrap;
  display: flex;
  justify-content: space-between;
  padding: 0;
  margin: 0;
  list-style-type: none;
}

.list-item {
  flex: calc(25%);
}

@media (max-width: 768px) {
  .other-list {
    display: block;
  }
}

.banner-list-col5 {
	display: flex;
	justify-content: flex-start;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 10px;
	width: 100%;
	margin-top: 3rem;
}

.banner-list-col5 img {
  width: 220px;
	height: 55px;
}


/*viewmore.html用（ここから）*/

.other-box {
	display: flex;
	align-items: stretch;
	padding: 10px 0 10px 0;
}

.other-box ul {
	flex: 1;
	display: flex;
	align-items: stretch;
}

.other-box ul li {
	flex: 1;
	display: flex;
	align-items: stretch;
	margin: 0px 10px 0px 10px !important;
}

.other-box ul:last-child {
	margin-right: 0px;
}

.other-box ul li:hover {
  transform: scale(1.05);
  transition: 0.5s;
}

.other-box ul li a {
	flex: 1;
	box-shadow: 0 0px 10px rgba(0,0,0,0.2);
	border-radius: 10px;
	text-decoration: none;
	color: #006496;
}

.other-box ul li span {
	display: flex;
	padding: 0.7rem 0 0.7rem 2.0rem;
  margin: 0px 0px 0px 0px !important;
  background-image: url(../img/icon_arrow.png);
	background-size: 1.0rem;
	background-repeat: no-repeat;
	background-position: 7px center;
	font-size: 16px;
	font-weight: 700;
  color: #424242;
  line-height: 1.0;
}

.other-box ul li img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit:cover;
	border-radius: 5px;
}

@media screen and (max-width: 768px) {

	.other-box {
		display: block;
		align-items: normal;
		padding: 5px 0 15px 0;
	}

  .other-box ul {
    flex: auto;
	  display: block;
  }

	.other-box ul li {
		flex: auto;
		display: block;
		width: 80%;
		align-items: normal;
		margin: 0 auto;
		padding-bottom: 20px;
		font-size: 13px;
		line-height: 1.4;
	}

  .other-box ul:last-child {
	margin-right: 0px;
  margin: 0 auto;
  }

	.other-box ul li a {
		display: block;
		box-shadow: 0 0px 10px rgba(0,0,0,0.2);
		border-radius: 10px;
		flex: auto;
		text-decoration: none;
		color: #006496;
	}

  .other-box ul li span {
	  display: block;
	  padding: 0.7rem 0 0.7rem 2.0rem;
    background-image: url(../img/icon_arrow.png);
	  background-size: 1.2rem;
	  background-repeat: no-repeat;
	  background-position: 7px center;
	  font-size: 16px;
	  font-weight: 700;
    color: #424242;
    line-height: 1.0;
  }
  
  .other-box ul li img {
	  width: 100%;
	  aspect-ratio: 16 / 9;
	  object-fit:cover;
	  border-radius: 5px;
  }
}

/*viewmore.html用（ここまで）*/


/*other**_********.html用（ここから）*/

.column-3 {
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 30px;
  width: 100%;
  margin-top: 40px;
  margin-bottom: 20px;
}

.column-3-item {
  width: calc(33.3333% - 20px);
}

@media screen and (max-width: 768px) {
  .column-3-item {
    width: calc(50% - 15px);
  }
}

.item-button {
  display: flex;
  gap: 10px;
  width: 100%;
}

.column-3-item a {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0;
  padding: 1em 2em;
  font-feature-settings: "palt";
  letter-spacing: .03em;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  color: #3657bb !important;
  line-height: 1.5;
  border: 3px solid #3657bb;
  border-radius: 10px;
  box-shadow: 3px 3px 12px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  transition: 0.3s box-shadow;
}

@media screen and (max-width: 768px) {
  .column-3-item a {
    font-size: 15px;
  }
}

.column-3-item a:after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.2em;
  display: block;
  width: 0.6em;
  height: 0.6em;
  transform: translateY(-50%) rotate(45deg);
  transition: 0.3s transform;
  border-top: 2px solid #3657bb;
  border-right: 2px solid #3657bb;
}

.column-3-item a:hover {
  color: #fff !important;
  background-color: #3657bb;
  transition: 0.5s;
}

.column-3-item a:hover:after {
  transform: translateX(3px) translateY(-50%) rotate(45deg);
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transition: 0.5s;
}

/*other**_********.html用（ここまで）*/