@charset "utf-8";

/* =========================================================
   p-top
   ========================================================= */
.p-top p,
.p-top h1,
.p-top h2,
.p-top h3 {
  margin: 0;
}
.p-top a:hover {
  text-decoration: none;
}

/* =========================================================
   fv
   ========================================================= */
.fv {
  position: relative;
  height: 692px;
  margin: 10px 10px 0;
  overflow: hidden;
  border-radius: 10px;
}
.p-top .fv__img {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: 28% 50%;
}
.p-top .fv__ttl {
  position: absolute;
  top: 448px;
  left: 10px;
  color: #fff;
  font-size: clamp(37px, calc(31.691px + 1.416vw), 42.55px);
  font-weight: 500;
  line-height: 1.19;
  text-shadow: 0 3px 3px rgba(0, 0, 0, .16);
}
.fv__recruit {
  position: absolute;
  bottom: 32px;
  left: 10px;
  display: block;
  width: 293px;
  max-width: calc(100% - 20px);
  min-height: 77px;
  padding: 11px 50px 10px 17px;
  overflow: hidden;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, .8);
  box-shadow: 0 3px 3px rgba(0, 0, 0, .16);
}
.fv__recruit::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 7px;
  background-color: var(--c-blue);
}
.fv__recruit::after {
  content: "";
  position: absolute;
  top: 25px;
  right: 17px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--arrow-w) center / 11px auto no-repeat, var(--g-main);
}
.p-top .fv__recruitEn {
  color: var(--c-blue);
  font-family: var(--f-en);
  font-size: clamp(8px, calc(6.852px + 0.306vw), 9.2px);
  font-weight: 500;
  line-height: 1.2;
}
.p-top .fv__recruitTtl {
  color: var(--c-black);
  font-size: clamp(14px, calc(11.991px + 0.536vw), 16.1px);
  font-weight: 500;
  line-height: 1.45;
}
.p-top .fv__recruitTxt {
  margin-top: 2px;
  color: var(--c-black);
  font-family: var(--f-noto);
  font-size: clamp(12px, calc(10.278px + 0.459vw), 13.8px);
  line-height: 1.5;
}

@media (min-width: 768px) {
  .fv {
    height: max(560px, min(1032px, 53.75vw));
    margin: min(25px, 1.302vw) min(18px, .938vw) 0 min(23px, 1.198vw);
    border-radius: 20px;
  }
  .p-top .fv__img {
    object-position: 50% 0;
  }
  .p-top .fv__ttl {
    top: min(186px, 9.688vw);
    left: min(1150px, 59.896vw);
    font-size: clamp(40px, 3.958vw, 76px);
    line-height: 1.237;
  }
  .fv__recruit {
    bottom: min(30px, 1.562vw);
    left: min(26px, 1.354vw);
    width: min(464px, 24.167vw);
    min-width: 300px;
    min-height: max(90px, min(124px, 6.458vw));
    padding: min(21px, 1.094vw) min(90px, 4.688vw) min(18px, .938vw) min(41px, 2.135vw);
  }
  .fv__recruit::before {
    width: min(10px, .521vw);
  }
  .fv__recruit::after {
    top: 50%;
    right: min(26px, 1.354vw);
    width: max(32px, min(41px, 2.135vw));
    height: max(32px, min(41px, 2.135vw));
    transform: translateY(-50%);
  }
  .p-top .fv__recruitEn {
    font-size: clamp(10px, .729vw, 14px);
  }
  .p-top .fv__recruitTtl {
    font-size: clamp(18px, 1.25vw, 24px);
  }
  .p-top .fv__recruitTxt {
    margin-top: min(4px, .208vw);
    font-size: clamp(12px, .833vw, 16px);
  }
}
/* 768-1023: PC layout, title anchored to the right so it stays inside */
@media (min-width: 768px) and (max-width: 1023px) {
  .p-top .fv__ttl {
    right: min(197px, 10.26vw);
    left: auto;
  }
}
/* recruit badge: text always on one line */
.fv__recruit {
  width: max-content;
  min-width: min(293px, calc(100% - 20px));
}
.p-top .fv__recruitTxt {
  white-space: nowrap;
}
@media (max-width: 767px) {
  .p-top .fv__recruitTxt {
    font-size: min(clamp(12px, calc(10.278px + 0.459vw), 13.8px), calc((100vw - 107px) / 20));
  }
}
@media (min-width: 768px) {
  .fv__recruit {
    min-width: max(300px, min(464px, 24.167vw));
  }
}

/* =========================================================
   p-top-news
   ========================================================= */
.p-top-news {
  margin-top: 48px;
  padding: 0 9px 0 11px;
}
.p-top-news__box {
  display: grid;
  grid-template-areas:
    "ttl"
    "list"
    "btn";
  padding: 30px 8px 27px 11px;
  border-radius: 10px;
  background-color: var(--c-gray);
}
.p-top-news__ttl {
  grid-area: ttl;
}
.p-top-news__list {
  grid-area: list;
  margin-top: 32px;
}
.p-top-news__items,
.p-top-news__list .webgene-blog,
.p-top-news__item {
  margin: 0;
  padding: 0;
}
.p-top-news__item {
  border-bottom: 1px solid var(--c-line);
}
.p-top-news__item:first-child {
  border-top: 1px solid var(--c-line);
}
.p-top-news__link {
  display: grid;
  grid-template-areas:
    "date cat"
    "title title";
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 16px;
  row-gap: 7px;
  padding: 10px 0 11px;
  color: var(--c-black);
}
.p-top-news__link:hover {
  color: var(--c-black);
}
.p-top .p-top-news__date {
  grid-area: date;
  font-family: var(--f-en);
  font-size: clamp(14px, calc(11.991px + 0.536vw), 16.1px);
  font-weight: 500;
  line-height: 1.2;
}
.p-top .p-top-news__cat {
  grid-area: cat;
  justify-self: start;
  min-width: 73px;
  padding: 0 12px;
  border-radius: 10px;
  background-color: var(--c-sub);
  color: var(--c-green);
  font-size: clamp(14px, calc(11.991px + 0.536vw), 16.1px);
  line-height: 20px;
  text-align: center;
}
.p-top .p-top-news__title {
  grid-area: title;
  overflow: hidden;
  font-size: clamp(14px, calc(11.991px + 0.536vw), 16.1px);
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p-top-news__btn {
  grid-area: btn;
  justify-self: end;
  margin-top: 16px;
}

@media (min-width: 1024px) {
  .p-top-news {
    margin-top: min(54px, 2.812vw);
    padding: 0 min(18px, .938vw) 0 min(23px, 1.198vw);
  }
  .p-top-news__box {
    grid-template-areas:
      "ttl list"
      "btn list";
    grid-template-columns: min(642px, 33.438vw) 1fr;
    grid-template-rows: auto 1fr;
    padding: min(40px, 2.083vw) min(78px, 4.062vw) min(48px, 2.5vw) min(73px, 3.802vw);
    border-radius: 20px;
  }
  .p-top-news__list {
    align-self: center;
    margin-top: 0;
  }
  .p-top-news__link {
    grid-template-areas: "title date cat";
    grid-template-columns: 1fr auto auto;
    column-gap: min(24px, 1.25vw);
    padding: min(16px, .833vw) min(10px, .521vw) min(16px, .833vw) 0;
  }
  .p-top .p-top-news__date {
    font-size: clamp(15px, 1.042vw, 20px);
  }
  .p-top .p-top-news__cat {
    min-width: min(108px, 5.625vw);
    padding: 0 min(14px, .729vw);
    border-radius: 13px;
    font-size: clamp(13px, .833vw, 16px);
    line-height: max(22px, min(26px, 1.354vw));
  }
  .p-top .p-top-news__title {
    font-size: clamp(14px, .833vw, 16px);
  }
  .p-top-news__btn {
    align-self: start;
    justify-self: start;
    margin-top: min(32px, 1.667vw);
  }
}

/* =========================================================
   p-top-about
   ========================================================= */
.p-top-about {
  position: relative;
  margin-top: 90px;
  padding-bottom: 33px;
  overflow: hidden;
}
.p-top-about__head {
  position: relative;
  z-index: 2;
  padding: 0 20px 0 19px;
}
.p-top .p-top-about__lead {
  margin-top: 10px;
  font-size: clamp(18px, calc(15.417px + 0.689vw), 20.7px);
  line-height: 1.45;
  letter-spacing: 0;
}
.p-top-about__body {
  position: relative;
  z-index: 1;
  margin-top: 40px;
}
.p-top .p-top-about__img {
  position: relative;
  z-index: 1;
  display: block;
  width: calc(100% - 40px);
  max-width: none;
  margin: 0 auto;
  aspect-ratio: 335 / 290;
  object-fit: cover;
  border-radius: 10px;
}
.p-top-about__content {
  position: relative;
  z-index: 2;
  margin-top: 48px;
  padding: 0 20px 0 27px;
}
.p-top .p-top-about__ttl {
  color: var(--c-green);
  font-size: clamp(24px, calc(20.556px + 0.918vw), 27.6px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
}
.p-top .p-top-about__txt {
  font-size: clamp(14px, calc(11.991px + 0.536vw), 16.1px);
  line-height: 24px;
  letter-spacing: 0;
}
.p-top .p-top-about__ttl + .p-top-about__txt {
  margin-top: 26px;
}
.p-top .p-top-about__txt + .p-top-about__txt {
  margin-top: 24px;
}
.p-top-about__btn {
  margin-top: 40px;
}
.p-top-about__map {
  position: relative;
  z-index: 0;
  width: 719px;
  margin: -429px 0 0 max(-217px, calc(100% - 592px));
  pointer-events: none;
}
.p-top .p-top-about__mapImg {
  display: block;
  width: 100%;
  max-width: none;
}
.p-top .p-top-about__osaka {
  position: absolute;
  top: 65.7%;
  left: 48%;
  width: 20.6%;
  max-width: none;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .p-top-news {
    padding: 0 48px;
  }
}

@media (min-width: 768px) {
  .p-top-about__head,
  .p-top-about__content {
    padding-right: 48px;
    padding-left: 48px;
  }
  .p-top .p-top-about__img {
    width: calc(100% - 96px);
    aspect-ratio: 16 / 9;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .p-top-about__txt.u-brPc br {
    display: inline;
  }
  .p-top-about__body {
    padding-bottom: max(0px, calc(59vw - 380px));
  }
  .p-top-about__map {
    position: absolute;
    top: calc((100vw - 96px) * 9 / 16);
    left: calc(5.49vw + 297.8px);
    width: 58vw;
    margin: 0;
  }
}

@media (min-width: 1024px) {
  .p-top-about {
    margin-top: min(207px, 10.781vw);
    padding-bottom: min(188px, 9.792vw);
  }
  .p-top-about__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0 min(48px, 2.5vw);
    padding: 0 0 0 min(811px, 42.24vw);
  }
  .p-top .p-top-about__lead {
    margin-top: min(34px, 1.771vw);
    white-space: nowrap;
    font-size: clamp(15px, 1.042vw, 20px);
  }
  .p-top-about__body {
    position: static;
    display: flex;
    align-items: flex-start;
    gap: min(205px, 10.677vw);
    margin-top: min(90px, 4.688vw);
  }
  .p-top .p-top-about__img {
    flex: none;
    width: min(689px, 35.885vw);
    margin: min(15px, .781vw) 0 0;
    aspect-ratio: 689 / 727;
    border-radius: 0 10px 10px 0;
  }
  .p-top-about__content {
    margin-top: 0;
    padding: 0 min(96px, 5vw) 0 0;
  }
  .p-top .p-top-about__ttl {
    font-size: clamp(24px, 1.875vw, 36px);
  }
  .p-top .p-top-about__txt {
    font-size: clamp(14px, .938vw, 18px);
    line-height: 1.667;
  }
  .p-top .p-top-about__ttl + .p-top-about__txt {
    margin-top: min(46px, 2.396vw);
  }
  .p-top .p-top-about__txt + .p-top-about__txt {
    margin-top: 1.667em;
  }
  .p-top-about__btn {
    margin-top: min(69px, 3.594vw);
  }
  .p-top-about__map {
    position: absolute;
    margin: 0;
    top: max(-47px, -2.448vw);
    bottom: auto;
    left: min(800px, 41.667vw);
    width: min(1120px, 58.333vw);
  }
  .p-top .p-top-about__osaka {
    top: 66.34%;
    left: 48.93%;
    width: 18.39%;
  }
}

/* =========================================================
   p-top-service
   ========================================================= */
.p-top-service {
  padding: 50px 0 52px;
  background: linear-gradient(60deg, var(--c-gray) 30%, var(--c-sub) 100%);
}
.p-top-service__list {
  margin-top: 40px;
}
.p-top-service__item {
  display: grid;
  grid-template-areas:
    "head"
    "img"
    "txt"
    "btn";
  padding: 31px 0 30px;
  border-top: 1px solid var(--c-line);
}
.p-top-service__item:last-child {
  border-bottom: 1px solid var(--c-line);
}
.p-top-service__head {
  display: flex;
  align-items: center;
  gap: 16px;
  grid-area: head;
}
.p-top .p-top-service__num {
  font-family: var(--f-en);
  font-size: clamp(16px, calc(13.704px + 0.612vw), 18.4px);
  font-weight: 500;
  line-height: 1.2;
}
.p-top .p-top-service__num::before {
  content: "\FF08";
}
.p-top .p-top-service__num::after {
  content: "\FF09";
}
.p-top .p-top-service__ttl {
  font-size: clamp(18px, calc(15.417px + 0.689vw), 20.7px);
  font-weight: 500;
  line-height: 1.45;
}
.p-top .p-top-service__img {
  grid-area: img;
  display: block;
  width: 100%;
  max-width: none;
  margin-top: 9px;
  aspect-ratio: 335 / 167;
  object-fit: cover;
  border-radius: 5px;
}
.p-top .p-top-service__txt {
  grid-area: txt;
  margin-top: 18px;
  font-size: clamp(14px, calc(11.991px + 0.536vw), 16.1px);
  line-height: 24px;
  letter-spacing: 0;
}
.p-top-service__btn {
  grid-area: btn;
  justify-self: center;
  margin-top: 17px;
}

@media (min-width: 1024px) {
  .p-top-service {
    padding: min(89px, 4.635vw) 0 min(88px, 4.583vw);
  }
  .p-top-service__list {
    margin-top: min(55px, 2.865vw);
  }
  .p-top-service__item {
    grid-template-areas:
      ". img"
      "head img"
      "txt img"
      "btn img"
      ". img";
    grid-template-columns: 1fr min(670px, 34.896vw);
    grid-template-rows: 1fr auto auto auto 1fr;
    column-gap: min(60px, 3.125vw);
    padding: min(33px, 1.719vw) min(96px, 5vw) min(33px, 1.719vw) min(92px, 4.792vw);
  }
  .p-top-service__head {
    gap: min(16px, .833vw);
  }
  .p-top .p-top-service__ttl {
    font-size: clamp(22px, 1.667vw, 32px);
  }
  .p-top .p-top-service__img {
    grid-row: 1 / 6;
    align-self: center;
    margin-top: 0;
    aspect-ratio: 670 / 286;
    border-radius: 10px;
  }
  .p-top .p-top-service__txt {
    margin-top: min(26px, 1.354vw);
    font-size: clamp(14px, .833vw, 16px);
    line-height: 1.75;
  }
  .p-top-service__btn {
    justify-self: start;
    margin-top: min(48px, 2.5vw);
  }
}

/* =========================================================
   p-top-reason
   ========================================================= */
.p-top-reason {
  padding-top: 88px;
}
.p-top .p-top-reason__lead {
  margin-top: 30px;
  font-size: clamp(16px, calc(13.704px + 0.612vw), 18.4px);
  line-height: 24px;
  text-align: center;
  letter-spacing: .05em;
}
.p-top-reason__wrap {
  margin-top: 31px;
}
.p-top-reason__center {
  position: relative;
  width: 231px;
  height: 231px;
  margin: 0 auto;
  border: 9px solid #fff;
  border-radius: 50%;
  box-shadow: 3px 6px 5px rgba(0, 0, 0, .16);
}
.p-top .p-top-reason__centerImg {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.p-top .p-top-reason__centerTxt {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  color: #fff;
  font-size: clamp(20px, calc(17.13px + 0.765vw), 23px);
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  transform: translateY(-50%);
}
.p-top-reason__list {
  display: grid;
  gap: 20px;
  margin-top: 50px;
}
.p-top-reason__card {
  padding: 14px 10px 13px;
  border: 1px solid var(--c-line);
  border-radius: 5px;
  background-color: var(--c-gray);
}
.p-top .p-top-reason__icon {
  display: block;
  width: auto;
  height: 74px;
  margin: 0 auto;
}
.p-top-reason__cardBody {
  margin-top: 10px;
  padding: 10px 10px 0;
  border-top: 1px solid var(--c-line);
}
.p-top .p-top-reason__cardTtl {
  font-family: var(--f-noto);
  font-size: clamp(16px, calc(13.704px + 0.612vw), 18.4px);
  font-weight: 400;
  line-height: 1.8;
  text-align: center;
}
.p-top .p-top-reason__cardTtl b,
.p-top .p-top-reason__cardTtl strong {
  font-size: 1.273em;
  font-weight: 500;
}
.p-top .p-top-reason__cardTxt {
  margin-top: 6px;
  font-family: var(--f-noto);
  font-size: clamp(14px, calc(11.991px + 0.536vw), 16.1px);
  line-height: 24px;
}
.p-top-reason__btn {
  display: flex;
  width: max-content;
  margin: 49px auto 0;
}

/* reason card text: break at the <br> only while every first line fits */
.p-top .p-top-reason__cardTxt br {
  display: none;
}
@media (min-width: 467px) and (max-width: 859px) {
  .p-top .p-top-reason__cardTxt br {
    display: inline;
  }
}
/* from 467px (2 lines with br, then 1 line from 860px): center the texts */
@media (min-width: 467px) and (max-width: 1023px) {
  .p-top .p-top-reason__cardTxt {
    text-align: center;
  }
}

@media (min-width: 1024px) {
  .p-top-reason {
    padding-top: min(181px, 9.427vw);
  }
  .p-top .p-top-reason__lead {
    margin-top: min(35px, 1.823vw);
    font-size: clamp(18px, 1.25vw, 24px);
    line-height: 1.45;
  }
  .p-top-reason__wrap {
    position: relative;
    margin-top: min(88px, 4.583vw);
  }
  .p-top-reason__center {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: min(377px, 19.635vw);
    height: min(377px, 19.635vw);
    margin: auto;
    border-width: min(16px, .833vw);
  }
  .p-top .p-top-reason__centerTxt {
    font-size: clamp(20px, 1.771vw, 34px);
    line-height: 1.265;
  }
  .p-top-reason__list {
    grid-template-columns: repeat(2, 1fr);
    gap: min(25px, 1.302vw) min(38px, 1.979vw);
    margin-top: 0;
  }
  .p-top-reason__card {
    display: flex;
    align-items: center;
    min-height: min(147px, 7.656vw);
    padding: min(15px, .781vw) min(200px, 10.417vw) min(15px, .781vw) 0;
    border-radius: 10px;
  }
  .p-top-reason__card:nth-child(even) {
    padding: min(15px, .781vw) min(54px, 2.812vw) min(15px, .781vw) min(185px, 9.635vw);
  }
  .p-top .p-top-reason__icon {
    flex: none;
    width: min(163px, 8.49vw);
    height: auto;
    padding: 0 min(42px, 2.188vw);
    margin: 0;
    object-fit: contain;
  }
  .p-top-reason__cardBody {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: stretch;
    min-height: min(117px, 6.094vw);
    margin: 0;
    padding: 0 0 0 min(41px, 2.135vw);
    border-top: none;
    border-left: 1px solid var(--c-line);
  }
  .p-top .p-top-reason__cardTtl {
    font-size: clamp(16px, 1.146vw, 22px);
    line-height: 1.45;
    text-align: left;
  }
  .p-top .p-top-reason__cardTxt {
    margin-top: min(8px, .417vw);
    font-size: clamp(13px, .833vw, 16px);
    line-height: 1.5;
  }
  .p-top-reason__btn {
    margin-top: min(89px, 4.635vw);
  }
}

@media (min-width: 1024px) and (max-width: 1439px) {
  .p-top-service .l-sec__inner,
  .p-top-reason .l-sec__inner {
    width: calc(100% - 48px);
  }
  .p-top-service__item {
    /* text column wide enough for the longest line (41 chars at 14px) */
    grid-template-columns: 1fr min(min(670px, 34.896vw), calc(100% - 590px - min(60px, 3.125vw)));
    padding-right: 32px;
    padding-left: 32px;
  }
  .p-top-reason__card {
    min-height: 140px;
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .p-top-reason__card:nth-child(even) {
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .p-top-reason__cardBody {
    padding-left: 24px;
  }
  .p-top-reason__card {
    container-type: inline-size;
  }
  .p-top .p-top-reason__icon {
    width: 25cqi;
    padding: 0 5cqi;
  }
  .p-top .p-top-reason__cardTxt {
    margin-top: 10px;
  }
  .p-top-about__body {
    gap: calc(25.48vw - 213px);
  }
  .p-top-about {
    padding-bottom: calc(345.2px - 14.18vw);
  }
  .p-top-about__map {
    top: calc(671.2px - 49.04vw);
    left: calc(33.41vw + 118.9px);
    width: calc(78.85vw - 295.4px);
  }
}

/* =========================================================
   p-top-gallery
   ========================================================= */
.p-top-gallery {
  margin-top: 81px;
  overflow: hidden;
}
.p-top-gallery__track {
  display: flex;
  width: max-content;
}
.p-top .p-top-gallery__img {
  flex: none;
  width: 178px;
  max-width: none;
  height: 139px;
  margin-right: 26px;
  object-fit: cover;
  border-radius: 10px;
}
.p-top-gallery__track.is-loop {
  animation: galleryLoop 40s linear infinite;
}
@keyframes galleryLoop {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (min-width: 1024px) {
  .p-top-gallery {
    margin-top: min(190px, 9.896vw);
  }
  .p-top .p-top-gallery__img {
    width: min(339px, 17.656vw);
    height: min(264px, 13.75vw);
    margin-right: min(52px, 2.708vw);
  }
}

/* =========================================================
   p-top-recruit
   ========================================================= */
.p-top-recruit {
  position: relative;
  margin-top: 80px;
  padding: 38px 0 47px;
  background: var(--c-blue) url("/system_panel/uploads/images/recruit-bg.jpg") 30% 50% / cover no-repeat;
}
.p-top-recruit__body {
  padding: 0 20px;
}
.p-top-recruit__content {
  margin-top: 40px;
  padding-left: 9px;
}
.p-top .p-top-recruit__ttl {
  color: #fff;
  font-size: clamp(24px, calc(20.556px + 0.918vw), 27.6px);
  font-weight: 500;
  line-height: 1.45;
}
.p-top .p-top-recruit__txt {
  color: #fff;
  font-size: clamp(14px, calc(11.991px + 0.536vw), 16.1px);
  line-height: 20px;
  letter-spacing: .05em;
}
.p-top .p-top-recruit__ttl + .p-top-recruit__txt {
  margin-top: 30px;
}
.p-top .p-top-recruit__txt + .p-top-recruit__txt {
  margin-top: 20px;
}
.p-top-recruit__btn {
  margin-top: 30px;
}
.p-top .p-top-recruit__img {
  display: block;
  width: calc(100% - 59px);
  max-width: none;
  margin: 40px 29px 0 30px;
  aspect-ratio: 316 / 215;
  object-fit: cover;
  border-radius: 5px;
}

@media (min-width: 768px) {
  .p-top-recruit {
    min-height: min(773px, 40.26vw);
    margin-top: min(200px, 10.417vw);
    padding: min(81px, 4.219vw) 0 min(100px, 5.208vw);
    background-position: center;
  }
  .p-top-recruit__body {
    max-width: min(1120px, 58.333vw);
    padding: 0 0 0 min(96px, 5vw);
  }
  .p-top-recruit__content {
    margin-top: min(50px, 2.604vw);
    padding-left: min(204px, 10.625vw);
  }
  .p-top .p-top-recruit__ttl {
    font-size: clamp(24px, 1.875vw, 36px);
  }
  .p-top .p-top-recruit__txt {
    font-size: clamp(14px, .833vw, 16px);
    line-height: 1.5;
  }
  .p-top .p-top-recruit__ttl + .p-top-recruit__txt {
    margin-top: min(60px, 3.125vw);
  }
  .p-top .p-top-recruit__txt + .p-top-recruit__txt {
    margin-top: 1.5em;
  }
  .p-top-recruit__btn {
    margin-top: min(70px, 3.646vw);
  }
  .p-top .p-top-recruit__img {
    position: absolute;
    top: min(122px, 6.354vw);
    right: 0;
    width: min(747px, 38.906vw);
    margin: 0;
    aspect-ratio: 747 / 528;
    border-radius: 10px 0 0 10px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .p-top-recruit__body {
    max-width: calc(61.1vw - 16px);
    padding-left: 48px;
  }
  .p-top-recruit__content {
    padding-left: 24px;
  }
}

/* service text: line break only on PC (same as u-brPc, works without the class) */
.p-top .p-top-service__txt br {
  display: none;
}
@media (min-width: 1024px) {
  .p-top .p-top-service__txt br {
    display: inline;
  }
}

/* =========================================================
   p-top-blog
   ========================================================= */
.p-top-blog {
  margin-top: 100px;
}
.p-top-blog__inner {
  display: grid;
  grid-template-areas:
    "ttl"
    "list"
    "btn";
}
.p-top-blog__ttl {
  grid-area: ttl;
}
.p-top-blog__list {
  grid-area: list;
  margin-top: 23px;
}
.p-top-blog__items,
.p-top-blog__list .webgene-blog {
  display: grid;
  gap: 20px;
  margin: 0;
}
.p-top-blog__item,
.p-top-blog__list .webgene-item {
  min-width: 0;
  margin: 0;
}
.p-top-blog__card {
  position: relative;
  display: block;
  height: 100%;
  min-height: 176px;
  padding: 22px 19px 20px 19px;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(121deg, var(--c-gray) 0%, #98c4a2 100%);
  color: var(--c-black);
}
.p-top-blog__card::after {
  content: "";
  position: absolute;
  top: 16px;
  right: 24px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--arrow-w) center / 13px auto no-repeat, var(--g-main);
}
.p-top-blog__card:hover {
  color: var(--c-black);
}
.p-top-blog__meta {
  display: flex;
  align-items: center;
  gap: 20px;
}
.p-top .p-top-blog__date {
  color: var(--c-txt-sub);
  font-family: var(--f-en);
  font-size: clamp(16px, calc(13.704px + 0.612vw), 18.4px);
  font-weight: 500;
  line-height: 1.2;
}
.p-top .p-top-blog__cat {
  min-width: 61px;
  padding: 0 10px;
  border-radius: 3px;
  background-color: rgba(80, 155, 97, .2);
  color: var(--c-txt-sub);
  font-family: var(--f-noto);
  font-size: clamp(10px, calc(8.565px + 0.383vw), 11.5px);
  line-height: 20px;
  text-align: center;
}
.p-top .p-top-blog__cardTtl {
  display: -webkit-box;
  margin-top: 40px;
  overflow: hidden;
  font-family: var(--f-noto);
  font-size: clamp(16px, calc(13.704px + 0.612vw), 18.4px);
  font-weight: 400;
  line-height: 24px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.p-top-blog__btn {
  grid-area: btn;
  justify-self: center;
  margin-top: 28px;
}

@media (min-width: 1024px) {
  .p-top-blog {
    margin-top: min(200px, 10.417vw);
  }
  .p-top-blog__inner {
    grid-template-areas:
      "ttl list"
      "btn list";
    grid-template-columns: min(446px, 23.229vw) 1fr;
    grid-template-rows: auto 1fr;
  }
  .p-top-blog__list {
    margin-top: 0;
  }
  .p-top-blog__items,
  .p-top-blog__list .webgene-blog {
    grid-template-columns: repeat(3, 1fr);
    gap: min(20px, 1.042vw);
  }
  .p-top-blog__card {
    min-height: min(267px, 13.906vw);
    padding: min(28px, 1.458vw) min(32px, 1.667vw) min(30px, 1.562vw);
    background: linear-gradient(122deg, var(--c-gray) 25%, var(--c-sub) 100%);
    isolation: isolate;
  }
  .p-top-blog__card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(121deg, var(--c-gray) 0%, #98c4a2 100%);
    opacity: 0;
    transition: opacity .3s;
  }
  .p-top-blog__card:hover::before {
    opacity: 1;
  }
  .p-top-blog__card::after {
    top: min(20px, 1.042vw);
    right: min(32px, 1.667vw);
    width: max(32px, min(41px, 2.135vw));
    height: max(32px, min(41px, 2.135vw));
    background-size: max(12px, min(15px, .781vw)) auto, auto;
  }
  .p-top .p-top-blog__cat {
    min-width: min(75px, 3.906vw);
    padding: 0 min(12px, .625vw);
    font-size: clamp(11px, .677vw, 13px);
    line-height: max(20px, min(25px, 1.302vw));
  }
  .p-top .p-top-blog__cardTtl {
    margin-top: min(70px, 3.646vw);
    font-size: clamp(16px, 1.146vw, 22px);
    line-height: 1.727;
  }
  .p-top-blog__btn {
    align-self: start;
    justify-self: start;
    margin-top: min(80px, 4.167vw);
  }
}

@media (min-width: 1024px) {
  .p-top .p-top-blog__cat {
    white-space: nowrap;
  }
}
/* until the longest tag (10 chars) clears the arrow: tag goes under the date */
@media (min-width: 1024px) and (max-width: 1521px) {
  .p-top-blog__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .p-top .p-top-blog__cardTtl {
    margin-top: min(40px, 2.083vw);
  }
}
/* =========================================================
   p-top-insta
   ========================================================= */
.p-top-insta {
  margin-top: 100px;
  padding-bottom: 81px;
}
.p-top .p-top-insta__ttl {
  font-family: var(--f-en);
  font-size: clamp(34px, calc(29.121px + 1.301vw), 39.1px);
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}
.p-top-insta__feed {
  max-width: 316px;
  margin: 23px auto 0;
}
.p-top-insta .webgene-blog {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 16px;
}
.p-top-insta .webgene-item {
  min-width: 0;
}
.p-top-insta .indexSnsWrap {
  width: 100%;
  max-width: none;
  padding: 0 !important;
}
.p-top-insta .indexSnsWrap > .mt-3 {
  display: none;
}
.p-top-insta .imgBx01 {
  display: block;
  overflow: hidden;
  border-radius: 5px;
}
.p-top-insta .imgBx01 img,
.p-top-insta .imgBx01 video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.p-top-insta .imgBx01 video {
  pointer-events: none;
}
.p-top-insta .imgBx01 video::-webkit-media-controls {
  display: none !important;
}
.p-top-insta .imgBx01 > img + span,
.p-top-insta .imgBx01 > video + span {
  display: none;
}

@media (min-width: 768px) {
  .p-top-insta__feed {
    max-width: 664px;
  }
  .p-top-insta .webgene-blog {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .p-top-insta {
    margin-top: min(180px, 9.375vw);
    padding-bottom: min(180px, 9.375vw);
  }
  .p-top .p-top-insta__ttl {
    font-size: clamp(40px, 3.125vw, 60px);
  }
  .p-top-insta__feed {
    max-width: min(1112px, 57.917vw);
    margin-top: min(41px, 2.135vw);
  }
  .p-top-insta .webgene-blog {
    gap: min(44px, 2.292vw);
  }
  .p-top-insta .imgBx01 {
    border-radius: 10px;
  }
}

/* =========================================================
   p-top animation
   ========================================================= */
.fv .fv__img,
.fv .fv__ttl,
.fv .fv__recruit {
  opacity: 0;
  animation: fvFallback .6s ease-out 4s forwards;
}
body:has(.fv) .l-header {
  opacity: 0;
  animation: fvFallback .6s ease-out 4s forwards;
}
body:has(.fv.is-load) .l-header {
  animation: fvHeader 1.6s ease-out both;
}
@keyframes fvHeader {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fvFallback {
  to {
    opacity: 1;
  }
}
.fv.js-fv.is-load .fv__img {
  animation: blurIn 1.6s ease-out both;
}
.fv.js-fv.is-load .fv__ttl {
  animation: fadeUp 1s ease-out .8s both;
}
.fv.js-fv.is-load .fv__recruit {
  animation: fadeUp 1s ease-out 1.2s both;
}
.p-top-about__osaka.js-pop {
  opacity: 0;
  transform: scale(.6);
  transform-origin: 50% 100%;
}
.p-top-about__osaka.js-pop.is-show {
  animation: mapPop .7s cubic-bezier(.3, 1.6, .5, 1) .3s both;
}
@keyframes mapPop {
  from {
    opacity: 0;
    transform: scale(.6);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* osaka: the image stays hidden (it marks when to start). css draws the
   rings (::before, they grow and fade again and again) and the label + pin (::after) */
.p-top-about__map {
  --ow: 20.6cqi;
  container-type: inline-size;
}
.p-top .p-top-about__osaka {
  visibility: hidden;
}
.p-top-about__map::before,
.p-top-about__map::after {
  position: absolute;
  top: 65.7%;
  left: 48%;
  width: 20.6%;
  aspect-ratio: 1;
  pointer-events: none;
}
.p-top-about__map::before {
  content: "";
  z-index: 1;
  border-radius: 50%;
  background: radial-gradient(circle closest-side, rgba(79, 154, 96, .78) 49.5%, rgba(79, 154, 96, .64) 50%, rgba(79, 154, 96, .64) 74.5%, rgba(79, 154, 96, .4) 75%, rgba(79, 154, 96, .4) 99%, rgba(79, 154, 96, 0) 100%);
  opacity: 0;
}
.p-top-about__map::after {
  content: "Osaka";
  z-index: 2;
  box-sizing: border-box;
  padding-top: calc(var(--ow) * .323);
  background:
    radial-gradient(circle calc(var(--ow) * .0255) at 50% 48.2%, #0057a7 92%, rgba(0, 87, 167, 0) 100%),
    linear-gradient(#fff, #fff) center calc(var(--ow) * .51) / calc(var(--ow) * .005) calc(var(--ow) * .034) no-repeat;
  color: #222;
  font-family: "Montserrat", sans-serif;
  font-size: calc(var(--ow) * .08);
  font-weight: 500;
  line-height: 1;
  text-align: center;
  opacity: 0;
}
.p-top-about__map:has(.p-top-about__osaka.is-show)::before {
  animation: osakaWave 3.5s cubic-bezier(.2, .7, .3, 1) .3s infinite;
}
.p-top-about__map:has(.p-top-about__osaka.is-show)::after {
  animation: osakaLabel .6s ease-out .3s both;
}
@keyframes osakaWave {
  0% {
    opacity: 1;
    transform: scale(.15);
  }
  72% {
    opacity: 1;
    transform: scale(1);
  }
  90% {
    opacity: 0;
    transform: scale(1.05);
  }
  100% {
    opacity: 0;
    transform: scale(1.05);
  }
}
@keyframes osakaLabel {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (min-width: 1024px) {
  .p-top-about__map {
    --ow: 18.39cqi;
  }
  .p-top-about__map::before,
  .p-top-about__map::after {
    top: 66.34%;
    left: 48.93%;
    width: 18.39%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .p-top-about__map:has(.p-top-about__osaka.is-show)::before {
    opacity: 1;
    animation: none;
  }
  .p-top-about__map:has(.p-top-about__osaka.is-show)::after {
    opacity: 1;
    animation: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fv .fv__img,
  .fv .fv__ttl,
  .fv .fv__recruit,
  body:has(.fv) .l-header,
  .p-top-about__osaka.js-pop {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
}

/* about text 2: first br (after "zenkoku kakuchi made.") is SP only, 12/1 */
.p-top .p-top-about__ttl + .p-top-about__txt + .p-top-about__txt br:first-of-type {
  display: inline;
}
@media (min-width: 768px) {
  .p-top .p-top-about__ttl + .p-top-about__txt + .p-top-about__txt br:first-of-type {
    display: none;
  }
}

/* reason card under 467px: side padding 18px (inner 0) so card 2 stays 2 lines at 375, 12/1 */
@media (max-width: 466px) {
  .p-top-reason__card {
    padding-right: 18px;
    padding-left: 18px;
  }
  .p-top-reason__cardBody {
    padding-right: 0;
    padding-left: 0;
  }
}

/* about text: keep "...kensetsu-gaisha desu." on one line at 1024-1149px, 12/1 */
@media (min-width: 1024px) and (max-width: 1149px) {
  .p-top-about__content {
    padding-right: 16px;
  }
}

/* FV intro, modeled on the reference site (12/1):
   white veil fades out -> image zooms out slightly -> title wipes in left to right -> recruit card.
   The image itself stays opacity 1 from the start so Lighthouse can find LCP (NO_LCP fix). */
.fv::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  background-color: #fff;
  pointer-events: none;
  animation: fvVeil .5s ease-out 4s forwards;
}
.fv.js-fv.is-load::after {
  animation: fvVeil .5s ease-out both;
}
@keyframes fvVeil {
  to {
    opacity: 0;
    visibility: hidden;
  }
}
.fv .fv__img {
  opacity: 1;
  transform: scale(1.08);
  animation: fvImgFallback .6s ease-out 4s forwards;
}
.fv.js-fv.is-load .fv__img {
  animation: fvZoom 1.6s cubic-bezier(.2, .7, .3, 1) both;
}
@keyframes fvZoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}
@keyframes fvImgFallback {
  to {
    transform: scale(1);
  }
}
.fv.js-fv.is-load .fv__ttl {
  animation: fvTtlWipe .9s ease-out .3s both;
}
@keyframes fvTtlWipe {
  from {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}
.fv.js-fv.is-load .fv__recruit {
  animation: fadeUp .8s ease-out .8s both;
}
body:has(.fv.is-load) .l-header {
  animation: fvHeader .8s ease-out .6s both;
}
@media (prefers-reduced-motion: reduce) {
  .fv::after {
    display: none;
  }
  .fv .fv__img {
    transform: none;
    animation: none !important;
  }
}

/* fv title one character at a time (spans added by main.js), 12/1 */
.fv .fv__ttl.is-split {
  opacity: 1;
  animation: none;
}
.fv .fv__ttl.is-split .fv__char {
  opacity: 0;
}
.fv.js-fv.is-load .fv__ttl.is-split {
  opacity: 1;
  animation: none;
}
.fv.js-fv.is-load .fv__ttl.is-split .fv__char {
  animation: fvChar .5s ease-out both;
  animation-delay: calc(.3s + var(--i) * .07s);
}
@keyframes fvChar {
  from {
    opacity: 0;
    filter: blur(6px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .fv .fv__ttl.is-split .fv__char {
    opacity: 1;
    animation: none !important;
  }
}
