:root {
  --main: #4461ab;
  --black: #333333;
  --midgrey: #a9a9a9;
  --grey: #c3c3c3;
  --lightgrey: #dedede;
  --white: #fbfbfb;
}

body {
  background-color: var(--white);
  font-family: "BIZ UDPGothic", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 18px;
  line-height: 32px;
  color: var(--black);
  overflow-x: hidden;
  overflow-y: scroll;
  text-align: justify;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}

a {
  transition: 0.5s;
}
/* 全体の背景 */
main {
  background-color: var(--lightgrey);
  padding-bottom: 40px;
}

/* 　ヘッダー */
header {
  background-color: var(--white);
  border-top: 9px solid var(--main);
  height: 90px;
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.header_logo {
  display: flex;
}

.main_logo {
  height: 36px;
  display: block;
}

.sub_logo {
  display: none;
}

@media (min-width: 800px) {
  .sub_logo {
    display: block;
    height: 36px;
    border-left: 1px solid var(--black);
    padding-left: 20px;
    margin-left: 20px;
  }
}

/* 労働総研ニュースのボタン */
.news_button {
  width: calc(50% - 5px);
  border: 1px solid var(--main);
  color: var(--main);
  height: 40px;
  text-align: center;
  line-height: 40px;
  border-radius: 10px;
  font-weight: 700;
}

@media (min-width: 800px) {
  .news_button {
    width: calc((100% - 20px) / 3);
    max-width: 200px;
  }
}

.news_button:hover {
  background-color: var(--grey);
  border: none;
}

.news_button.current {
  color: var(--white);
  background-color: var(--main);
}
.news_button.current:hover {
  background-color: var(--main);
  border: none;
}

.news_button a {
  display: block;
}



/* 下層ページのレイアウト用 */
.main_wrapper {
  width: 90%;
  margin: 0 auto;
  gap: 30px;
}

@media (min-width: 800px) {
  .main_wrapper {
    max-width: 1200px;
  }
}


/* 新着情報 */
.top_info {
  width: 100%;
  margin-bottom: 20px;
}

.top_info div {
  background-color: var(--main);
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 10px 10px 20px;
  border-radius: 10px;
  margin-bottom: 10px;
}
.top_info div p {
  color: var(--white);
  font-size: 20px;
  line-height: 40px;
  font-weight: 700;
}

.top_info div a {
  color: var(--main);
  background-color: var(--white);
  font-size: 16px;
  line-height: 40px;
  font-weight: 700;
  padding: 0 20px;
  border-radius: 8px;
}

.time {
  display: inline-block;
  color: var(--midgrey);
  font-size: 20px;
  width: 160px;
}

.arrow {
  display: inline-block;
  vertical-align: middle;
  color: var(--main);
  line-height: 0.5;
  width: 0.6em;
  height: 0.6em;
  border: 0.15em solid currentColor;
  border-left: 0;
  border-bottom: 0;
  box-sizing: border-box;
  transform: translateY(-25%) rotate(45deg);
  margin-right: 15px;
}

/* フッター */
footer {
  background: var(--main);
  padding: 20px 5%;
}
.sp_none {
  display: inline-block;
}

@media (max-width: 1200px) {
  .sp_none {
    display: none;
  }
}

.spbr {
  display: none;
}

@media (max-width: 1200px) {
  .spbr {
    display: block;
  }
}

footer ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

footer ul li a {
  display: inline-block;
  padding: 5px 20px;
  text-decoration: none;
  background-color: var(--white);
  color: var(--main);
  border-radius: 10px;
  font-weight: 700;
}

footer ul li :hover {
  background-color: var(--grey);
  color: var(--main);
}

@media (max-width: 1000px) {
  footer ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5em;
  }

  footer ul li a {
    width: 100%;
    text-align: center;
  }
}

footer p {
  margin-top: 20px;
  color: var(--white);
  text-align: center;
}

/* 労働総研について */
h1 {
  background-image: linear-gradient(
    180deg,
    rgba(68, 97, 171, 1),
    rgba(45, 62, 105, 1)
  );
  width: 100%;
  color: var(--white);
  text-align: center;
  padding: 30px 0 30px;
  font-size: 36px;
  font-weight: 700;
}

h1 img {
  width: 80px;
  margin-bottom: 10px;
}

/* パンクズリスト */
.breadcrumbs {
  margin-top: 20px;
  margin-bottom: 20px;
}
.breadcrumbs ul {
  display: flex;
  gap: 10px;
	font-size:16px;
}

/* 労働総研について　タブ切り替え */
.page_tab {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.page_tab li {
  width: 100%;
  font-weight: 700;
}

@media (max-width: 480px) {
  .page_tab li {
    font-size: 12px;
  }
}
.page_tab li a {
  padding: 10px auto;
  display: block;
  text-align: center;
  border-radius: 10px;
  padding: 5px;
  background-color: var(--white);
  color: var(--main);
}

.page_tab li a.current {
  background-color: var(--main);
  color: var(--white);
}

.page_tab li a:hover {
  background-color: var(--grey);
}

.page_tab li a.current:hover {
  background-color: var(--main);
}

/* 労働総研について　記事 */
.article_wrapper {
	width:100%;
  margin-top: 20px;

}

.article_wrapper article {
  background-color: var(--white);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 40px;
}

h2 {
  font-size: 20px;
  background-color: var(--main);
  color: var(--white);
  font-weight: 700;
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 20px;
  margin-top: 20px;
}

.align_light {
  text-align: right;
}

/* 労働総研について　組織概要 */
.name_list li {
  background-color: var(--white);
  margin-bottom: 10px;
  border-radius: 10px;
  padding: 10px 20px;
}

.name_list span {
  color: var(--midgrey);
}

.download {
  background-color: var(--main);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 10px;
  display: inline-block;
  margin: 20px auto;
}
.teikan {
  text-align: center;
}

.teikan img {
  border: 1px solid var(--midgrey);
  width: 240px;
  margin-top: 20px;
}

/* 総会 */

.link_list{
	width:100%;
	margin-bottom:40px;
}
.link_list li a {
  display: block;
  background-color: var(--white);
  margin-bottom: 10px;
  border-radius: 10px;
  padding: 10px 20px;
  white-space: nowrap; /* 折り返し無しにする */
  overflow: hidden; /* はみ出た部分を非表示 */
  text-overflow: ellipsis; /* 語尾を3点リーダーに */
}

@media (max-width:600px){
	.link_list li a{
		width:90vw;
	}
}

.link_list li a:hover {
  background-color: var(--grey);
}

.grey {
  color: var(--midgrey);
}

/* クォータリー・ニュース */
.book_wrapper article {
  background-color: var(--white);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 40px;
  margin-top: 20px;
}

.book_right p {
  margin: 20px 0;
}

.book_container {
  display: block;
  gap: 60px;
}

@media (min-width: 800px) {
  .book_container {
    display: flex;
    gap: 60px;
  }
}

.book_left {
  width: 100%;
  text-align: center;
}

@media (min-width: 800px) {
  .book_left {
    width: 240px;
    text-align: center;
  }
}

.book_left img {
  width: 240px;
  border: 1px solid var(--midgrey);
}

.book_right {
  width: 100%;
}

.book_right h3 {
  font-size: 20px;
  font-weight: 700;
  padding: 10px 0;
}

.book_right ul li {
  list-style: disc;
  line-height: 32px;
  margin-left: 18px;
  padding: 8px 0;
}

.book_right ul li a:hover {
  text-decoration: underline;
  color: var(--main);
}

.tag {
  display: flex;
	flex-wrap:wrap;
  justify-content: flex-end;
  gap: 10px; /* タグの間隔を調整 */
  padding: 0;
  margin: 0;
}

.tag a {
  background-color: var(--midgrey);
  color: var(--white);
  font-weight: 700;
  padding: 5px 10px;
	height:40px;
  border-radius: 10px;
  display: inline-block;
}

.tag a:hover {
  background-color: var(--grey);
}

/* 研究・調査活動 */
.white_back {
  background-color: var(--white);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 40px;
}

/*ベース*/
.accordion {
  margin-top: 20px;
}

.toggle {
  display: none;
}

.Label {
  /*タイトル*/
  padding: 10px 10px 10px 40px;
  display: block;
  color: var(--black);
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--grey);
  font-weight: 700;
}

.Label span {
  font-size: 16px;
}

.Label::before {
  /*タイトル横の矢印*/
  content: "";
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--main);
  border-right: 2px solid var(--main);
  -webkit-transform: rotate(45deg);
  position: absolute;
  top: calc(50% - 8px);
  left: 15px;
  transform: rotate(135deg);
}

.Label,
.content {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  transition: all 0.3s;
}

.content {
  /*本文*/
  height: 0;
  margin-bottom: 10px;
  padding: 0 20px;
  overflow: hidden;
}

.toggle:checked + .Label + .content {
  /*開閉時*/
  height: auto;
  padding: 20px;
  transition: all 0.3s;
}

.toggle:checked + .Label::before {
  top: calc(50% - 2px);
  transform: rotate(-45deg) !important;
}



/* アクセス */
.map{
  width: 100%;
  height:50vh;
  margin-bottom: 40px;
}

/* link */
.linkpage_list {
  width: 100%;
  max-width: 1200px; /* 必要なら任意の最大幅を設定 */
  margin: 0 auto;
}



.linkpage_list li a {
  display: block;
  background-color: var(--white);
  margin-bottom: 10px;
  border-radius: 10px;
  padding: 10px 20px 10px 60px;
  white-space: nowrap; /* 折り返し無しにする */
  overflow: hidden; /* はみ出た部分を非表示 */
  text-overflow: ellipsis; /* 語尾を3点リーダーに */
  background-image: url("../img/linkicon.svg");
  background-repeat: no-repeat;
  background-position:left 20px center;
}
@media(max-width:600px){
.linkpage_list {
  width: 90vw;
}
	.linkpage_list li {
	width:90vw;
}}

.linkpage_list li a:hover {
  background-color: var(--grey);
}

.linkpage_list li span {
background-color: var(--main);
padding: 5px 10px;
margin-right: 20px;
color:var(--white);
font-size: 14px;
}


/* ページネーションの汎用スタイル */
.nav-links ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.nav-links li > * {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 45px;
}
.nav-links li > *:not(.dots) {
  width: 45px;
  border-radius: 10px;
  color: var(--main);
background-color: var(--white);
	border:1px solid var(--main)
  transition: color 0.3s ease, background 0.3s ease;
}
.nav-links li > .current,
.nav-links li > a:hover {
  color: var(--white);
  background-color: var(--main);
}
.navigation.pagination .screen-reader-text {
    display: none;
}

/* コンタクトフォーム */
.hissu{
	  font-weight: 700;
  background-color: var(--main);
  font-size: 14px;
  color: var(--white);
  padding: 5px;
  margin-left: 10px;
}
.inputform{
background-color: var(--white);
padding: 10px;
border-radius: 10px;
width: 100%;
font-weight:400;
	margin-bottom:20px;
	margin-top:5px;
}

/* placeholder の文字色を薄くする */
.inputform::placeholder {
  color: #ccc; /* 薄いグレー */
  opacity: 1;  /* Firefoxでも確実に反映させるため */
	font-weight:400;
}
.label-name {
  font-weight: bold;
}

.submit-btn {
  background-color: var(--main);
  color: var(--white);
  font-weight: 700;
  width: 200px;
  padding: 10px;
  text-align: center;
  border-radius: 10px;
  display: block;
  margin: 20px auto;
}

label.form br {
  line-height: 0;
  margin: 0;
  padding: 0;
}
#zip{
	background-color: var(--white);
padding: 10px;
border-radius: 10px;
width: 100%;
font-weight:400;
	margin-bottom:20px;
	margin-top:5px;
}

#pref{
	background-color: var(--white);
padding: 10px;
border-radius: 10px;
width: 100%;
font-weight:400;
	margin-bottom:20px;
	margin-top:5px;
}


/* トップページのレイアウト用 */
.top_main_wrapper{
	width:90%;
	margin:40px auto;
}
@media(min-width:800px){
.top_main_wrapper{
	max-width:1200px;
	display:flex;
	gap:40px;
}}



/* トップページの左側 */
.top_left{
width:100%;
	}
@media(min-width:800px){
	.top_left{
	width:64%
}
}
/* スライド */
#slider img{
	width:100%;
}



/* 新着情報 */
.top_info{
	margin-top:40px;
	margin-bottom:40px;
}

.link_list li a {
  display: block;
  background-color: var(--white);
  margin-bottom: 10px;
  border-radius: 10px;
  padding: 10px 20px;
  white-space: nowrap; /* 折り返し無しにする */
  overflow: hidden; /* はみ出た部分を非表示 */
  text-overflow: ellipsis; /* 語尾を3点リーダーに */
}


	.link_list li{
		width:100%;
	}


.link_list li a:hover {
  background-color: var(--grey);
}


/* トップページのナビ */
.top_nav{
	width:100%;
}

@media(min-width:800px){
.top_nav{
	width:41%
	}}
.top_nav ul{
	display:flex;
	flex-wrap:wrap;
	gap:4%;
}



.top_nav ul li{
background-color:var(--white);
display:block;
border-radius:10px;
width:48%;
aspect-ratio: 1 / 1;
margin-bottom:4%;
}

.top_nav ul li:hover{
	background-color:var(--grey);
	  transition: 0.5s;
}

.top_nav ul li img{
width:100%;
}

/* 中ページのナビ */

.page_nav ul {
  width: 90%;
  max-width: 1200px;
  margin: 20px auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.page_nav ul li {
  width: calc((100% - 10px) / 2);
}

@media (min-width: 800px) {
  .page_nav ul li {
    width: calc((100% - 20px) / 3);
  }
}

.page_nav ul li a {
  display: block;
  background-color: var(--white);
  color: var(--main);
  font-weight: 700;
  font-size: 18px;
  line-height: 40px;
  text-align: center;
  border-radius: 10px;
}

@media (max-width: 460px) {
  .page_nav ul li a {
    font-size: 15px;
  }
}

@media (min-width: 900px) {
  .page_nav ul li a {
    font-size: 24px;
    line-height: 60px;
  }
}

.page_nav ul li a:hover {
  background-color: var(--grey);
}

.page_nav ul li a.current {
  background-color: var(--main);
  color: var(--white);
}
/* 記事検索オプション */
.filter-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  width: 100%;
}

.filter-form {
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap; /* ← 追加 */
}

.filter-form select,
.filter-form input[type="text"] {
  background-color: var(--white);
  padding: 0.4rem 1rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
  max-width: 100%; /* ← 追加 */
  box-sizing: border-box; /* ← 追加 */
  flex: 1; /* ← 追加 */
}

/* 検索ボタン */
.filter-button {
  background-color: var(--main); 
  color: var(--white);
  border: none;
  padding: 0.4rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
}

.filter-button:hover {
  background-color: #0056b3;
}

/* スマホ対応 */
@media (max-width: 600px) {
  .filter-container {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-form {
    width: 100%;
  }
  .filter-form input[type="text"] {
    width: 100%; /* ← 追加 */
  }
}