@charset "utf-8";

body {
  font-family: "Noto Sans JP", serif;
  color: #242424;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  background: #F8F6F4;
  position: relative;

  &::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    background: url('../images/bg.png') center / contain repeat;
    width: 100%;
    height: 100%;
  }
}

.ff-lato {
  font-family: "Lato", serif;
}

a {
  color: inherit;
  text-decoration: none;
  transition: 0.3s;
}
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

picture, img, a, span {
  display: inline-block;
}

img, svg {
  width: 100%;
  height: 100%;
}

button {
  color: inherit;
  background: transparent;
}

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

html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
ul,
ol,
dl,
li,
dt,
dd,
p,
div,
span,
img,
a,
table,
tr,
th,
td,
small,
button,
time,
figure {
  border: 0;
  margin: 0;
  padding: 0;
  vertical-align: baseline;
}

html {
  line-height: 1;
}

ol,
ul {
  list-style: none;
}

li,
dd {
  list-style-type: none;
}

header,
footer,
nav,
section,
article,
main,
aside,
figure,
figcaption {
  display: block;
}

img {
  border: none;
  vertical-align: bottom;
}

.hidden {
  overflow: hidden;
}

.br-pc br{
  display: none;
}
.br-sp br{
  display: inline-block;
}
@media screen and (min-width: 768px) {
  .br-pc br{
    display: inline-block;
  }
}
@media screen and (min-width: 768px) {
  .br-sp br{
    display: none;
  }
}
@media screen and (min-width: 900px) {
  .br-900 br{
    display: none;
  }
}
@media screen and (min-width: 1100px) {
  .br-1100 br{
    display: none;
  }
} 

.c-link,
.c-link02 a {
  text-decoration: underline !important;
}
.c-link:hover,
.c-link02 a:hover {
  text-decoration: underline !important;
  opacity: 0.7;
}



.l-inner {
  width: 100%;
  max-width: 600px;
  padding: 0 20px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}
@media screen and (min-width: 768px) {
  .l-inner {
    max-width: 1366px;
    height: inherit;
    padding: 0 60px;
  }
}
@media screen and (min-width: 1024px) {
  .l-inner {
    max-width: 1366px;
    height: inherit;
    padding: 0 40px;
  }
  .bg-detail__white .l-inner {
    padding: 0 120px;
  }
  .l-inner__detail {
    padding: 0 120px;
  }
  .top-topics .l-inner {
    padding: 0 40px;
  }
  .l-inner__76 {
    padding: 0 76px !important;
  }
}

.bg_white {
  position: relative;

  &::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    background: url('../images/bg.png') center / cover no-repeat;
    width: 100%;
    height: 100%;
  }
}

.title-wrap {
  display: flex;
  gap: 12px;
  flex-direction: column;
  align-items: start;
}
@media screen and (min-width: 768px) {
  .title-wrap {
    flex-direction: row;
    align-items: center;
  }
}

.title-main {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: calc(33 / 16);
  margin-top: 5px;

}
.title-sub {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: calc(33 / 30);
}

.button {
  width: fit-content;
  border-bottom: 1px solid #FFFFFF;
  flex-shrink: 0;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 17px;
}
.button p {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: calc(35 / 14);
  color: #fff;
  text-decoration: none;
}
.button::after {
  content: "";
  background: url('../images/icon-arrow.svg') center / contain no-repeat;
  width: 25px;
  height: 12px;
  transition: background 0.3s;
}
.button:hover {
  opacity: 0.8;
}

.button__large {
  width: 240px;
}

.c-head {
  margin: 77px 0 0;
  overflow: hidden;
  position: relative;
  padding: 20px 0 0;
  z-index: 1;
  height: 500px;
  position: relative;
  overflow-x: clip;

  &::before {
    content: "";
    position: absolute;
    top: -510px;
    right: -339px;
    background: url(../images/circle01.png) center / cover no-repeat;
    width: 949px;
    height: 717px;
  }

  &::after {
    content: "";
    position: absolute;
    bottom: -566px;
    left: -231px;
    background: url(../images/circle02.png) center / cover no-repeat;
    width: 884px;
    height: 681px;
  }
}
@media screen and (min-width: 1200px) {
  .c-head {
    height: 448px;
  }
  .c-head::before {
    top: -410px;
    right: -239px;
  }
  .c-head::after {
    bottom: -466px;
    left: -131px;
  }
}

.c-head__inner {
  padding: 0 26px;
  position: relative;
  z-index: 1;
}



.c-breadcrumb {
  display: flex;
  justify-content: end;
  align-items: center;
  font-size: 14px;
  color: #FFFFFF;
  letter-spacing: 0.06em;
  gap: 17px;
  font-weight: 400;
  position: relative;
  z-index: 5;
}
.c-breadcrumb__arrow {
  width: 7px;
  height: 7px;
  mask-position: center center;
  mask-repeat: no-repeat;
  mask-size: contain;
  mask-image: url('../images/breadcrumb-arrow.svg');
  background: #fff;
}

.c-breadcrumb a {
  transition: text-decoration 0.3s
}
.c-breadcrumb a:hover {
  text-decoration: underline;
}

.c-breadcrumb--gray {
  color: #C7C6C5;
}
.c-breadcrumb--gray .c-breadcrumb__arrow {
  background: #C7C6C5;
}

.c-head__wrap {
  margin: 157px auto 0;
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

.c-head__title-wrap {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  gap: 40px;
  max-width: 900px;
  margin: 68px auto 0;    
}
.c-head__title-wrap--chill {
  margin: 48px auto 0;    
}
@media screen and (min-width: 768px) {
  .c-head__title-wrap {
    flex-direction: row;
    align-items: start;
  }
}
@media screen and (min-width: 1300px) {
  .c-head__title-wrap {
    max-width: 1070px; 
    transform: translateX(56px);
  }
}

.c-head__title-main {
  font-size: 30px;
  line-height: calc(40 / 30);
  letter-spacing: 0.3em;
  font-weight: 500;
}
@media screen and (min-width: 768px) {
  .c-head__title-main {
    writing-mode: vertical-rl;
    text-orientation: upright;
    width: 30px;
  }
  .c-head__title-main02 {
    width: 64px;
  }
  .c-head__title-chill {
    margin-top: -20px;
    width: 75px;
  }
  .c-head__title-gallery {
    margin-top: -34px;
  }
}
.gallery__title-wrap {
  display: flex;
  gap: 10px;
  flex-direction: column-reverse;
}
@media screen and (min-width: 768px) {
  .gallery__title-wrap {
    flex-direction: row;
    gap: 26px;
  }
  .gallery__title {
    writing-mode: vertical-rl;
    text-orientation: upright;
    width: 22px;
  }
}

.c-head__text-wrap {
  max-width: 518px;
  margin-top: 30px;
}
.c-head__title-copy {
  font-size: 19px;
  letter-spacing: 0.1em;
  font-weight: 500;
}
@media screen and (min-width: 768px) {
  .c-head__title-copy {
    font-size: 26px;
  }
}

.c-head__title-text {
  margin-top: 8px;
  font-size: 12px;
  line-height: calc(36 / 16);
  letter-spacing: 0;
  font-weight: 500;
}
@media screen and (min-width: 768px) {
  .c-head__title-text {
    font-size: 16px;
  }
}

.c-head__img {
  aspect-ratio: 375 / 400;
  width: 100%;
  height: 100%;
  position: relative;
  position: sticky;
  top: 0;
  left: 0;
}
@media screen and (min-width: 768px) {
  .c-head__img {
    aspect-ratio: 1367 / 693;
  }
}

.c-head__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-tag {
  padding: 2px 8px;
  background: #fff;
  color: #45785F;
  border-radius: 2px;
  border: 1px solid #45785F;
  font-size: 10px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.09em;
  width: fit-content;
  margin: auto 0 0 0;
}


.c-category > .webgene-blog {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
  justify-content: start;
}
@media screen and (min-width: 1024px) {
  .c-category > .webgene-blog {
    margin-bottom: 70px;
    gap: 30px;
  }
}

.c-cat {
  padding: 13px 33px 13px 13px;
  display: flex;
  gap: 13px;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid #CCCCCC;
  border-radius: 8px;

  &::before {
    content: "";
    width: 6px;
    height: 6px ;
    background: #24876A;
    border-radius: 50%;
  }

  &:hover {
    background: #E1F0E8;
  }
}
.c-cat.is-active {
  background: #E1F0E8;
  color: #242424;
}

.webgene-pagination {
  margin-top: 20px;
  font-size: 14px;
  justify-self: center;
  grid-column: 1 / -1;
}
@media screen and (min-width: 768px) {
  .webgene-pagination {
    margin-top: 35px;
  }
}

.webgene-pagination a:hover {
  opacity: 0.7;
}

.webgene-pagination ul {
  display: flex;
  list-style: none;
  gap: 10px;
  padding-inline-start: 0;
  justify-content: center;
  align-items: center;
}

.webgene-pagination ul .number a {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  line-height: 1;
  border-radius: 50%;
  background-color: #FFFFFF;
  color: #4B4B4B;
}

.webgene-pagination ul .number.selected a {
  background: #4F9E79;
  color: #fff;
  border-radius: 50%;
}

li.next,
li.prev {
  position: relative;
}

li.next a,
li.prev a{
  height: 40px;
  width: 40px;
  padding: 2px;
  position: relative;
}

li.prev:after,
li.next:after {
  pointer-events: none;
  content: "";
  position: absolute;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
}

li.prev:after {
  background-image: url("../images/prev.svg");
  left: 0;
}
li.next:after {
  background-image: url("../images/next.svg");
  right: 0;
}

@media screen and (min-width: 768px) {
  li.next {
    margin-left: 30px;
  }
  li.prev {
    margin-right: 30px;
  }

  li.next a,
  li.prev a{
    margin-top: 3px;
    color: #283B54;
    width: auto;
    padding-block: 10px;
    z-index: 10;
    line-height: 1;
  }
  li.prev a {
    padding-left: 48px;
  }
  li.next a {
    padding-right: 48px;
  }

  li.prev:after,
  li.next:after {
    pointer-events: auto;
  }
}

@media screen and (min-width: 1024px) {
  .detail-box {
    max-width: 925px;
    margin-inline: auto;
  }
}

.post-ttl {
  margin-top: 30px;
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  font-weight: 400;
  padding: 0 0 16px 25px;
  border-bottom: 1.5px solid #D0D0D0;
  position: relative;
}
@media screen and (min-width: 768px) {
  .post-ttl {
    margin-top: 50px;
    padding: 0 0 16px 33px;
  }
}
@media screen and (min-width: 1200px) {
  .post-ttl {
    font-size: 22px;
  }
}

.post-ttl::before {
  content: "";
  position: absolute;
  background: #4F9E79;
  width: 8px;
  height: 67%;
  top: 40%;
  transform: translateY(-50%);
  left: 2px;
}

.post-detail__content span {
  display: block;
  margin-inline: auto;
}

.post-detail__content img,
.detail img{
  margin: 40px auto 10px;
  max-width: 550px;
  margin-inline: auto;
  display: block;
  height: auto;
}
@media screen and (min-width: 768px) {
  .post-detail__content img,
  .detail img{
    margin: 81px auto 84px;
    width: min(100%, 594px);
  }
}
.post-detail__content img,
.detail img{
  object-fit: cover;
}

.detail-text {
  padding-block: 32px 60px;
  font-weight: 400;
}
@media screen and (min-width: 768px) {
  .detail-text {
    padding-block: 44px 80px;
  }
}

.post-detail__content h2 {
  margin-top: 53px;
  font-size: 18px;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 35px;
}
@media screen and (min-width: 768px) {
  .post-detail__content h2 {
    gap: 17px;
  }
}

.post-detail__content h2::before {
  content: "";
  background: #4F9E79;
  border-radius: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.post-detail__content h3 {
  margin-top: 83px;
  font-size: 18px;
  letter-spacing: 0.06em;
  padding-bottom: 12px;
  border-bottom: 1.5px solid #4F9E79;
  margin-bottom: 40px;
}

.detail__btn {
  display: block;
  margin-inline: auto;
  border: 1px solid transparent;
  width: 183px;
  background: #4F9E79;
  border: 1px solid #4F9E79;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  padding: 14px;
  border-radius:40px;
}
.detail__btn:hover {
  color: #4F9E79;
  background: #fff;
}