/*共通*/

.mt-10{
	margin-top: 10px;
}

.mt-30{
	margin-top: 30px;
}

.mt-50{
	margin-top: 50px;
}

.mt-80{
	margin-top: 80px;
}

.mt-100{
	margin-top: 100px;
}

.flex-container{
  padding:10px;
  display : flex;
  flex-wrap : wrap;
  justify-content:space-between;
  /*
・均等に配置
・最初のアイテムは先頭寄せ
・最後のアイテムは末尾寄せ
*/
}


.bold_ttl{
	text-align: center;
	font-weight: bold;
	font-family:sans-serif;
	letter-spacing: 8px;
	margin-bottom: 1.5em;
}

.page-ttl{
	text-align: center;
	font-size: 40px;
	font-weight: bold;
	margin-bottom:0.5em;
	line-height: 1.5;
}


.catch{
	text-align: center;
	font-size: 60px;
	font-weight: bold;
	margin-bottom:0.5em;
	line-height: 1.5;
	}

.subcatch{
	text-align: center;
	font-size: 30px;
	font-weight: bold;
	}


/*--------------------------------------
  記事一覧
--------------------------------------*/
.article-group{
  margin-left: auto;
  margin-right: auto;
  max-width: 960px;
  width: 90%;
  height: auto;
   /* ポイント１ */
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
}
/* ポイント２ */
.article-group > :not(:nth-child(3n-2)){
  margin-left: 20px;
}

/* ポイント３ */
.article-group > :nth-child(n+4){
  margin-top: 20px;
}
.article{
  /* ポイント４ */
    width: calc((100% - 20px * 2) / 3);
  height: auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,.2);
  background-color: #fff;
}
.article__imgframe{
  width: 100%;
  height: auto;
  background: #bbb;
  box-sizing: border-box;
  overflow:hidden; //これを記述することではみ出た部分を非表示にします。
}

 .article__imgframe img:hover{
  transform:scale(1.2,1.2);
  transition:1s all;
}

.article__textbox{
  width: 100%;
  height: auto;
  padding: 20px 18px;
  background: #fff;
  box-sizing: border-box;
  color:#FF9193;
  font-weight: bold;
}

.article__textbox > * + *{
  margin-top: 10px;
}

.article__overviewtext{
  font-size: 12px;
  line-height: 150%;
}


/*デザイン*/
.midashi {
  position: relative;
  font-size: 24px;
  font-weight: bold;
  padding: 25px 10px;
  margin-bottom: 1em;
}

.midashi::before {
  position: absolute;
  content: '';
  left: 0;
  bottom: 0;
  width: 100px;
  height: 10px;
  background: #FA1E0E;
  z-index: 1;
}
.midashi::after {
  position: absolute;
  content: '';
  left: 0;
  bottom: 0;
  width: 100%;
  height: 10px;
  background: #FFF1CA;
}

.gazou100 {
	width: 100%;
	font-size: 18px;
}
.gazou100 p img {
	padding: 0.5em;
	width: 25%;
}

.border-anime {
	background-image: linear-gradient(120deg, #84fab0 0%, #ABBDF9 60%, #E2C1EB 80%, #8fd3f4 100%);
	background-size: 200%;
	animation: border-gradient 3s infinite;
	width: 100%;
	height: 3px;
}

@keyframes border-gradient {
  0% {
    background-position: 0% 40%;
  }
  50% {
    background-position: 100% 60%;
  }
  100% {
    background-position: 0% 40%;
  }
}

.head-border {
    display: flex;
    align-items: center;
	font-family: sans-serif;
}

.head-border:before,
.head-border:after {
    content: "";
    height: 1px;
    flex-grow: 1;
    background-color: #666;
}

.head-border:before {
    margin-right: 1rem;
}

.head-border:after {
    margin-left: 1rem;
}

/* ボタン */
.button006 a {
    background:#2A8302;
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 0 auto;
    max-width: 240px;
    padding: 10px 25px;
    color: #fff;
    transition: 0.3s ease-in-out;
    font-weight: 500;
	margin-bottom: 3em;
}
.button006 a:before {
    content: '';
    position: absolute;
    top: calc(50% - 2px);
    right: -2em;
    transform: translateY(calc(-50% - 2px)) rotate(30deg);
    width: 12px;
    height: 2px;
    background-color:#268931;
    transition: 0.3s;
}
.button006 a:after {
    content: '';
    position: absolute;
    top: 50%;
    right: -2em;
    transform: translateY(-50%);
    width: 60px;
    height: 2px;
    background-color:#268931;
    transition: 0.3s;
}
.button006 a:hover:before, .button006 a:hover:after {
    right: -2.5em;
}
.button006 a:hover {
    background:#CDF0C8;
    color:#268931;
}

.sdgs_btn {
	width: 100%;
	font-size: 16px;
	font-weight: bold;
	text-align: center;
}
.sdgs_btn a {
	display:block;
	width: 100%;
	background-color:#2A8302;
	padding:15px 5px 15px 5px;
	margin: 0 0 20px 0;
	border-radius: 10px;
	color: #FFFFFF;
	text-decoration: none;
	font-size: 18px;
}
.sdgs_btn a:hover {
	background-color:#CDF0C8;
	color:#268931;
}

.slogun_sdgs{
	font-size:200%;
	font-weight:bold;
	margin:30px 0 20px 0;
	text-align:center;
	color:#2A8302;
	line-height: 120%;
}

.article-wrapper {
  container: inline-size;
  margin: 1rem auto;
  max-width: 100%;
  outline-offset: 10px;
  background-color: #fff;
  padding: 3em;
  border-radius: 20px;
}
.article-wrapper2 {
  container: inline-size;
  margin: 1rem auto;
  max-width: 90%;
  outline-offset: 10px;
  background-color: #fff;
  padding: 3em;
  border-radius: 20px;
}

.card {
  display: flex;
  flex-direction:row;
  flex-wrap: wrap;
  justify-content:space-between;
  gap: calc(0.5rem + 1qmin);
  background-color: #fff;
}
.card2 {
  flex-direction:row;
  flex-wrap: wrap;
  justify-content:space-between;
  gap: calc(0.5rem + 1qmin);
  background-color: #fff;
}

.card__thumb {
  aspect-ratio: 4.4 / 3;
  flex: 0 0 30%;
  border-radius: 7px;
  min-width: 0;
  object-fit: cover;
}

.card::after{
  content: "";
    display: block;
    width: 30%;  /* .boxに指定したwidthと同じ幅を指定する */
    height: 0;
}

.card__thumb img{
	object-fit: cover;
	width: 100%;
	border-radius: 7px;
}

.card__title {
  font-weight: 700;
  font-size: 18px;
  margin-top: 6px;
  margin-bottom: 1rem;
  font-family:"Zen Maru Gothic", serif;
  line-height: 1.2;
}

.card__content {
  flex: 1;
}

.card__desc {
  color: #000;
  line-height: 1.5;
  margin-bottom: 3em;
  font-family: "Zen Maru Gothic", serif;
  font-size: 14px;
}

.card__comment {
  color: #000;
  line-height: 1.5;
  margin-bottom: 3em;
  font-family: "Zen Maru Gothic", serif;
  font-size: 14px;
  margin: 20px; 
}

@container (min-width: 400px) {
  .card {
    flex-direction: row;
    gap: 1rem;

    > * + * {
      margin-top: 0;
    }
  }

  .card__thumb {
    align-self: flex-start;
  }
}

@container (min-width: 800px) {
  .card {
    position: relative;
    justify-content: center;
    align-items: center;
    min-height: calc(350px + 10qmax);
  }

  .card__thumb {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0.25;
  }

  .card__content {
    position: relative;
    flex: unset;
  }

  .card__desc {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    color: #222;
  }
}


hr {
  height: 8px;
  background-image: repeating-linear-gradient(45deg, #ccc 0, #ccc 1px, transparent 0, transparent 50%);
  background-size: 8px 8px;
  margin-bottom: 2em;
}

.slider {
  max-width: 500px;
  margin: 2rem auto 3rem;

  input {
    width: 100%;
  }
}

.note {
  padding: 1rem;
  margin-top: 1rem;
  text-align: center;
}

.wrapper {
  display: grid;
  grid-template-columns: 320px 1fr;
  grid-gap: 3rem;
  max-width: 1200px;
  margin: 2rem auto;

  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 1.5rem;

    > div {
      container: inline-size;
    }
  }

  aside {
    > div {
      container: inline-size;
    }
  }
	
}

body {
  padding: 1rem;
  font-family: "Rubik";
  line-height: 1.4;
}

*,
*:before,
*:after {
  box-sizing: border-box;
}


.box_20_ttl {
	border-left: solid 4px #2A8302;
	padding-left: 10px;
	color: 27acd9;
	font-size: 1.2em;
	font-weight: bold;
	margin-bottom: 1.5em;
	margin-left: 15px;
	}
.box_20_txt {
	background: #fff;
	border-radius: 10px;
	padding: 1em;
	margin-top: 10px;
	box-shadow: 0 2px 3px #ccc;
	}

.parent_element {
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  gap: 1em;
}

.item {
  width: 30%;
  padding: 1em;
  margin-bottom: 1em;
  background-color: #fff;
  border: 1px solid gray;
  text-align: center;
}

/* ボタン003 */
.button003 a {
    background:#2A8302;
    border-radius: 50px;
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 0 auto;
    max-width: 260px;
    padding: 10px 25px;
    color: #fff;
    transition: 0.3s ease-in-out;
    font-weight: 500;
}
.button003 a:hover {
    background: #fff;
    color: #000;
}
.button003 a:after {
    content: '';
    width: 5px;
    height: 5px;
    border-top: 3px solid #fff;
    border-right: 3px solid #fff;
    transform: rotate(45deg) translateY(-50%);
    position: absolute;
    top: 50%;
    right: 20px;
    border-radius: 1px;
    transition: 0.3s ease-in-out;
}
.button003 a:hover:after {
    border-color: #FFF;
}

.count{
	font-size: 80px;
	font-family: "Comic Sans MS", "cursive";
	font-weight: bold;
	text-align: center;
	color: #3B9210;
}

.ribbon3 {
  display: inline-block;
  position: relative;
  height: 60px;
  line-height: 60px;
  text-align: center;
  padding: 7px 0;
  font-size: 18px;
  background: #acd879;
  color: #FFF;
  box-sizing: border-box;
}

.ribbon3 p {
  margin: 0;
  padding: 0 30px;
  border-top: dashed 2px rgba(255, 255, 255, 0.5);
  border-bottom: dashed 2px rgba(255, 255, 255, 0.5);
  line-height: 42px;
  font-family: "Zen Maru Gothic", serif;
}

.ribbon3:before, .ribbon3:after {
  position: absolute;
  content: '';
  width: 0px;
  height: 0px;
  z-index: 1;
}

.ribbon3:before {
  /*左の山形*/
  top: 0;
  left: 0;
  border-width: 30px 0px 30px 15px;
  border-color: transparent transparent transparent #fff;
  border-style: solid;
}

.ribbon3:after {
  /*右の山形*/
  top: 0;
  right: 0;
  border-width: 30px 15px 30px 0px;
  border-color: transparent #fff transparent transparent;
  border-style: solid;
}

.box2 {
	margin: 0 auto;
    padding: 0.5em 1em;
    margin: 0 auto;
    color: #000;/*文字色*/
    background: #FFF;
    border: solid 1px #000;/*線*/
    border-radius: 10px;/*角の丸み*/
	width: 90%;
}
.box2 p {
    margin: 0; 
    padding: 0;
}

.text1 {
	font-size: 60px;
	font-weight: bold;
	text-align: right;
	background: linear-gradient( to right,  rgba(233,21,172,100) 40%, rgba(102,51,153,1) 60% );
  -webkit-background-clip: text;
  color: transparent;
	line-height: 1.2;
}

.text2 {
	font-size: 9px;
	font-weight: bold;
	text-align: right;
}

.filter {
  transition: 0.4s ease;
  filter: brightness(50%) blur(3px);
  position: relative;/*親要素にrelative*/
}

/* ホバー時にフィルターを解除 */
.filter:hover {
  filter: none;
}

/* 目次デザイン */
.toc-002 {
    margin-bottom: 30px;
    border: 2px solid #ff9500;
    border-radius: 3px;
}

.toc-002 div {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 10px 0;
    background-color: #ff9500;
    color: #fff;
    font-weight: 600;
    font-size: 1.1em;
}

.toc-002 div::before {
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-right: 5px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 4H21V6H8V4ZM3 3.5H6V6.5H3V3.5ZM3 10.5H6V13.5H3V10.5ZM3 17.5H6V20.5H3V17.5ZM8 11H21V13H8V11ZM8 18H21V20H8V18Z' fill='%23fff'%3E%3C/path%3E%3C/svg%3E");
    content: '';
}

.toc-002 ol {
    list-style-type: disc;
    margin: 0;
    overflow: hidden;
}

.toc-002 > ol {
    padding: 1em 1em 1em 3em;
}

.toc-002 ol ol {
    margin-top: 5px;
    padding-left: 1.1em;
}

.toc-002 li {
    padding: 5px 0;
    font-weight: 600;
}

.toc-002 ol ol li {
    font-weight: 500;
    font-size: .9em;
}

.toc-002 a {
    color: #333;
    text-decoration: none;
}


/*-----------------------------------------------------*/
/* タブレット用 */
/*-----------------------------------------------------*/
@media screen and (min-width:480px) and ( max-width:1024px) {
    /*　for iPad 　*/

	.gazou100 {
	width: 100%;
	text-align: center;
	}
	
	.gazou100 p img {
	width: 25%;
}
	
	.catch{
		font-size: 50px;
	}
	
}

/*-----------------------------------------------------*/
/* スマホ用のCSS */
/*-----------------------------------------------------*/
@media screen and (max-width: 480px) {
/* 480pxまでの幅の場合に適用される */
	
	.bold_ttl{
		font-size: 20px;
		text-align: center;
	}
	
	.page-ttl{
	font-size: 20px;
	}
	
	.card__title {
		font-size: 14px;
	}
		
	.catch{
		font-size: 25px;
	}
	
	.subcatch{
	font-size: 16px;
	margin-bottom: -30px;
	}
	
	.midashi {
		font-size: 18px;
	}
	
	.gazou100 {
	width: 100%;
	text-align: center;
	}
	
	.gazou100 p img {
	width: 60%;
}
	
	.article-wrapper {
	padding: 2em 0.2em;
	}
	
	.text1 {
		font-size: 20px;
	}
	
	.text2 {
		font-size: 10x;
	}
	
	/*記事一覧*/
	
.article-group > :nth-child(2n){
  margin-left: 20px;
}
	
.article-group > :nth-child(n+3){
  margin-top: 20px;
}
	
.article-group > :not(:nth-child(3n-2)){
  margin-left: auto;
}
	
.article{
  width: calc((100% - 20px * 1) / 2);
  background-color: #fff;
}
	

	
}