@charset "utf-8";

body {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  color: #333333;
  letter-spacing: 0;
  line-height: normal;
  background: #F8F8F8;
}

.hidden {
  overflow: hidden;
}

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;
}

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

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

.l-inner {
  width: 100%;
  max-width: 600px;
  padding: 0 20px;
  margin: 0 auto;
  position: relative;
  line-height: normal !important;
}
@media screen and (min-width: 768px) {
  .l-inner {
    max-width: 900px;
    height: inherit;
    padding: 0 100px;
  }
}
@media screen and (min-width: 1024px) {
  .l-inner {
    max-width: 1366px;
  }
}

.title-wrap {
  width: fit-content;
  text-align: center;
}
.title-wrap__center {
  margin: 0 auto;
}
.title-sub {
  font-size: 40px;
  letter-spacing: 0.05em;
  line-height: calc(50 / 40);
  font-weight: 900;
  color: #DC2E1E;
  text-transform: uppercase;
}
.title-sub--small {
  font-size: 36px;
  line-height: calc(45 / 36);
  font-weight: 900;
}
.title-main {
  margin-top: 5px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: calc(24 / 12);
  color: #333333;
}


.button {
  width: 100%;
  background: #DC2E1E;
  border-radius: 50px;
  border: 1px solid #DC2E1E;
  padding: 17px 20px 17px 30px;
  text-align: left;
  flex-shrink: 0;
  position: relative;
}
.button p {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  color: #fff;
  text-decoration: none;
}
.button::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 24px;
  background: url('../images/button-arrow-white.svg') center / contain no-repeat;
  width: 10px;
  height: 7px;
}
.button:hover {
  background: #fff;
}
.button:hover p {
  color: #DC2E1E;
}
.button:hover::after {
  background: url('../images/button-arrow-red.svg') center / contain no-repeat;
}

.c-head {
  padding: 149px 0 0;
  overflow: hidden;
}

.c-breadcrumb {
  margin-top: 12px;
  display: flex;
  align-items: center;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  color: #333333;
  font-weight: 400;
  letter-spacing: 0.06em;
  gap: 10px;
}
.c-breadcrumb > :first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}
.c-breadcrumb > :first-child::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #DC2E1E;
  display: inline-block;
}

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

.c-breadcrumb__border {
  width: 22px;
  height: 1px;
  background:#333333;
}

.c-head__title-sub {
  color: #B22517;
  font-size: 15px;
  line-height: calc(24 / 15);
  font-weight: 600;
  letter-spacing: 0.2em;
}

.c-head__title-main {
  margin-top: 5px;
  font-size: 30px;
  line-height: calc(62 / 38);
  letter-spacing: 0.05em;
  font-weight: 700;
}
@media screen and (min-width: 768px) {
  .c-head__title-main {
    font-size: 38px;
  }
}

.c-head__img {
  margin: -40px 0 0 auto;
  aspect-ratio: 300 / 200;
  max-width: 80%;
  border-radius: 40px 0 0 40px;
  overflow: hidden;
  position: relative;
}
@media screen and (min-width: 1024px) {
  .c-head__img {
    margin: -92px 0 0 auto;
    aspect-ratio: 900 / 397;
    max-width: 900px;
  }
}
@media screen and (min-width: 1500px) {
  .c-head__img {
    max-width: 60%;
  }
}
.c-head__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.c-head__img::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

.c-head__bg-text__wrap {
  display: flex;
  gap: 50px;
  width: 100%;
  margin-top: -92px;
  z-index: -1;
  position: relative;
}
.c-head__bg-text {
  font-size: 145px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #FFFFFF;
  flex-shrink: 0;
  white-space: nowrap;
  animation-name: infinity-scroll-left;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
  animation-duration: 20s;
}
@keyframes infinity-scroll-left {
  from { transform: translateX(0%); }
  to   { transform: translateX(-100%); }
}

.c-tag {
  padding: 5px 7px 5px;
  background: #fff;
  color: #DC2E1E;
  border: 1px solid #DC2E1E;
  border-radius: 3px;
  font-size: 12px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.08em;
  width: fit-content;
  margin: auto 0 0 0;
}


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

.c-cat {
  min-width: 150px;
  border: 1px solid #DC2E1E;
  background: #fff;
  border-radius: 50px;
  padding: 18px 20px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  color: #DC2E1E;
  transition: background 0.3s;
}
.c-cat:hover {
  background: #DC2E1E;
  color: #fff;
}
.c-cat.is-active {
  background: #DC2E1E;
  color: #fff;
}

.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: #F8F8F8;
  color: #4B4B4B;
}

.webgene-pagination ul .number.selected a {
  background: #D9301F;
  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;
  }
}

.detail-box {
  background: #fff;
  border-radius: 10px;
  padding: 40px 23px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
  max-width: 1078px;
  margin-inline: auto;
}
@media screen and (min-width: 768px) {
  .detail-box {
    padding: 40px 43px 58px;
  }
}
@media screen and (min-width: 1024px) {
  .detail-box {
    padding: 93px 76px 98px;
  }
}
.detail-box__bg {
  background: #F8F8F8;
  padding: 0;
}
@media screen and (min-width: 768px) {
  .detail-box__bg {
    padding: 78px 44px;
  }
}

.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: #D9301F;
  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;
  aspect-ratio: 594 / 281;
  border-radius: 5px;
}
@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: #D9301F;
  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 #D9301F;
  margin-bottom: 40px;
}

.detail__btn {
  display: block;
  margin-inline: auto;
  border: 1px solid transparent;
  width: 183px;
  background: #D9301F;
  border: 1px solid #D9301F;
  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: #D9301F;
  background: #fff;
}