@charset "UTF-8";

/* ------------------------------------------- */
/* 旧スタイル（未使用・保管）
/* ------------------------------------------- */
/*
.edit-area {
	&.article {
		@media screen and (max-width: 767px) {

		}
	}
}

.article-area {
	& h2 {
		position: relative;
		margin-bottom: 2rem;
		padding-left: 1.7rem;
		font-weight: bold;
		font-size: 2.4rem;
		letter-spacing: 0.1em;
		line-height: 1.5;
		color: #000;

		&:after {
			content: "";
			position: absolute;
			left: 0;
			top: 0;
			display: block;
			width: 0.4rem;
			height: 100%;
			background: #d20000;
		}
	}

	& h3 {
		position: relative;
		margin-bottom: 2rem;
		padding: 0 0 1rem;
		font-size: 2.2rem;
		letter-spacing: 0.1em;
		line-height: 180%;

		&:after {
			content: "";
			position: absolute;
			left: 0;
			bottom: 0;
			display: block;
			width: 4rem;
			height: 0.3rem;
			background: #d20000;
		}
	}

	& a {
		color: #d20000;

		&[target="_blank"] {
			position: relative;
			padding-right: 3rem;

			&:after,
			&:before {
				content: "";
				position: absolute;
				right: 0.8rem;
				bottom: 0.8rem;
				display: block;
				width: 1.4rem;
				height: 1rem;
				border: 1px solid #d20000;
				background: #fff;
				box-sizing: border-box;
			}

			&:before {
				right: 0.5rem;
				bottom: 1.2rem;
			}
		}
	}

	& ul li:after {
		background: #d20000;
	}

	& ol li:after {
		color: #d20000;
	}
}
*/

/* ------------------------------------------- */
/* single article layout
/* ------------------------------------------- */

.single-article #contents {
  background-color: #eff0ee;
  padding-top: 8rem;
  padding-bottom: 12rem;
  z-index: 0;

  @media screen and (max-width: 767px) {
    padding-top: 4rem;
    padding-bottom: 6rem;
  }
}

.edit-area.article {
  padding-bottom: 0;
}

.article-board {
  box-sizing: border-box;
  width: 100%;
  max-width: 120rem;
  padding: 9rem 15rem;
  background: #ffffff;

  @media screen and (max-width: 1100px) {
    padding: 6rem 6rem;
  }

  @media screen and (max-width: 767px) {
    padding: 3.2rem 2rem;
  }
}

.article-date {
  display: block;
  /* margin-bottom: 0.5rem; */
  font-family: "Jost", "Noto Sans JP", sans-serif;
  font-weight: 400;
  font-size: 1.8rem;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: #111;

  @media screen and (max-width: 767px) {
    /* margin-bottom: 0.5rem; */
    font-size: 1.6rem;
  }
}

.article-title {
  margin: 0 0 2.4rem;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 3.4rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #111;

  @media screen and (max-width: 767px) {
    margin-bottom: 1.6rem;
    font-size: 2.4rem;
  }
}

.article-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 4.8rem;

  @media screen and (max-width: 767px) {
    margin-bottom: 3.2rem;
  }
}

.article-cat {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex: none;
  padding: 0.6rem 1rem;
  gap: 1rem;
  background: #0068b7;
  border-radius: 0.4rem;
  font-family: "Noto Sans JP", sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 2rem;
  line-height: 1.8rem;
  letter-spacing: 0.08em;
  color: #fff;

  @media screen and (max-width: 767px) {
    font-size: 1.6rem;
    line-height: 1.4rem;
  }
}

/* ------------------------------------------- */
/* article body
/* ------------------------------------------- */

.article-area {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  font-size: 1.8rem;
  line-height: 2;
  letter-spacing: 0.04em;
  color: #111;

  & h2 {
    margin: 0 0 2.4rem;
    font-weight: 700;
    font-size: 2.6rem;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #0068b7;

    @media screen and (max-width: 767px) {
      margin-bottom: 1.6rem;
      font-size: 2.2rem;
    }
  }

  & h3 {
    margin: 0 0 2rem;
    font-weight: 700;
    font-size: 2.2rem;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #111;

    @media screen and (max-width: 767px) {
      margin-bottom: 1.2rem;
      font-size: 1.9rem;
    }
  }

  & h4 {
    margin: 0 0 1.6rem;
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.5;
    color: #111;
  }

  & p {
    clear: both;
    margin: 0 0 2.4rem;
    font-weight: 400;
    line-height: 2;

    @media screen and (max-width: 767px) {
      margin-bottom: 1.6rem;
    }
  }

  & a {
    color: #0068b7;
    text-decoration: underline;
    text-underline-offset: 0.3rem;
    transition: opacity 0.3s ease;

    &:hover {
      opacity: 0.7;
    }

    &[target="_blank"] {
      display: inline-flex;
      align-items: center;
      gap: 0.6rem;
      padding-right: 0;
      text-decoration: underline;

      &::after {
        content: "";
        display: inline-block;
        flex-shrink: 0;
        width: 1.4rem;
        height: 1.4rem;
        background: url("../../common/img/parts/clip.png") center / contain no-repeat;
      }

      &::before {
        content: none;
      }
    }
  }

  & ul {
    margin: 0 0 2.4rem;
    padding: 0;
    list-style: none;

    & li {
      position: relative;
      padding-left: 1.6rem;
      font-weight: 400;
      line-height: 2;

      &::after {
        content: "";
        position: absolute;
        left: 0;
        top: 1.2rem;
        display: block;
        width: 0.6rem;
        height: 0.6rem;
        border-radius: 50%;
        background: #0068b7;
      }
    }
  }

  & ol {
    margin: 0 0 2.4rem;
    padding: 0;
    list-style: none;
    counter-reset: number 0;

    & li {
      position: relative;
      padding-left: 2.4rem;
      font-weight: 400;
      line-height: 2;
      counter-increment: number 1;

      &::after {
        content: counter(number) ".";
        position: absolute;
        left: 0;
        top: 0;
        display: block;
        color: #0068b7;
        font-size: 1.8rem;
        font-weight: 700;
        line-height: 2;
      }
    }
  }

  & img {
    vertical-align: top;
    max-width: 100%;
    height: auto;
  }

  & img.alignleft {
    float: left;
    margin: 0.8rem 1rem 1rem 0;

    @media screen and (max-width: 767px) {
      float: none;
      display: block;
      margin: 0 auto 1rem;
    }
  }

  & img.aligncenter {
    display: block;
    margin: 0 auto 2.4rem;
  }

  & img.alignright {
    float: right;
    margin: 0.8rem 0 1rem 1rem;

    @media screen and (max-width: 767px) {
      float: none;
      display: block;
      margin: 0 auto 1rem;
    }
  }

  & blockquote {
    position: relative;
    margin: 0 0 2.4rem;
    padding: 1.6rem 0 1.6rem 2.4rem;
    border-left: 0.3rem solid #0068b7;
    font-size: 1.7rem;
    line-height: 1.8;
    color: #333;
  }
}

/* ------------------------------------------- */
/* 一覧に戻る
/* ------------------------------------------- */

.article-back {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 36rem;
  margin: 6rem auto 0;
  padding: 0 0 1.2rem;
  border-bottom: 0.1rem solid #000;
  text-decoration: none;
  box-sizing: border-box;
  transition: opacity 0.3s ease;

  @media screen and (max-width: 767px) {
    max-width: 100%;
    margin-top: 4rem;
  }

  &:hover {
    opacity: 0.75;

    .w-btn img {
      transform: translateX(0.3rem);
    }
  }
}

.article-back-label {
  font-family: "Noto Sans JP", sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 1.8rem;
  line-height: 1.6rem;
  letter-spacing: 0.08em;
  color: #000;
}

.article-back .w-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.8rem;
  height: 2.8rem;
  background-color: #0068b7;

  & img {
    display: block;
    width: 1.2rem;
    height: auto;
    transition: transform 0.3s ease;
  }
}
