@charset "utf-8";

/* ===============================
   ロード画面（他アニメに干渉しない・完全ブロック）
   =============================== */
#loading-screen {
  position: fixed;
  inset: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.8s ease;
}

#loading-screen.hide {
  opacity: 0;
  pointer-events: none;
}

.gjs-dashed .loading{
  opacity: 1 !important;
  position: relative!important;
  visibility: visible !important;
}

.gjs-dashed .loading__logo {
  opacity:1 !important;
}

.loading {
    background-color: #FFF;
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 3rem;
}

.loading-img-wrap {
    position: relative;
    padding: 5rem;
    width: fit-content;
    height: fit-content;
}

.loading-img{
  	position: relative;
    width: 250px;
  	height: auto;
  	z-index: 2;
}


/* =========================
   FV
========================= */

.fv {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: #fff;
}

/* 縦書きタイトル */

.fv-title {
  position: absolute;
  left: 15%;
  top: 20%;
  z-index: 5;

  display: flex;
  flex-direction: column;
  gap: 18px;

  writing-mode: vertical-rl;
}

.fv-title h1 {
  margin: 0;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.18em;

  opacity: 0;
  transform: translateY(24px);
}

/* 文字フェード */

.fv.is-show .fv-title h1 {
  animation: fvTitleFade 0.9s ease forwards;
}

.fv.is-show .fv-title h1:nth-child(1) {
  animation-delay: 5s;
}

.fv.is-show .fv-title h1:nth-child(2) {
  animation-delay: 5.3s;
}

.fv.is-show .fv-title h1:nth-child(3) {
  animation-delay: 5.6s;
}

@keyframes fvTitleFade {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 背景画像 */

.fv-img-01,
.fv-img-02 {
  position: absolute;
  display: block;
  height: auto;

  opacity: 1;
  clip-path: inset(100% 0 0 0);

  transform: translateY(40px) scaleY(1.04);
  transform-origin: center bottom;

  transition:
    clip-path 1.15s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.15s cubic-bezier(0.22, 1, 0.36, 1);
}

.fv-img-01 {
  right: 10%;
  bottom: 0;
  width: 70%;
  z-index: 1;
}

.fv-img-02 {
  right: -5%;
  bottom: 0;
  width: 30%;
  z-index: 2;
}

/* 発火後 */

.fv.is-show .fv-img-01 {
  clip-path: inset(0 0 0 0);
  transform: translateY(0) scaleY(1);
}

.fv.is-show .fv-img-02 {
  clip-path: inset(0 0 0 0);
  transform: translateY(0) scaleY(1);
  transition-delay: 0.45s;
}

/* =========================
   1024px
========================= */

@media screen and (max-width: 1024px) {
  .fv-title {
    left: 12%;
  }

  .fv-title h1 {
    font-size: 28px;
  }

  .fv-img-01 {
    right: 24%;
    width: 85%;
  }

  .fv-img-02 {
    right: -2%;
    width: 40%;
  }
}

/* =========================
   768px
========================= */

@media screen and (max-width: 768px) {
  .fv {
    min-height: 760px;
  }

  .fv-title {
    left: 10%;
    top: 24%;
    gap: 20px;
  }

  .fv-title h1 {
    font-size: 24px;
  }

  .fv-img-01 {
    right: 18%;
    width: 68%;
  }

  .fv-img-02 {
    right: -16%;
    width: 58%;
  }
}

/* =========================
   414px
========================= */

@media screen and (max-width: 414px) {
  .fv {
    min-height: 680px;
  }

  .fv-title {
    left: 8%;
    top: 24%;
    gap: 14px;
  }

  .fv-title h1 {
    font-size: 20px;
  }

  .fv-img-01 {
    right: 5%;
    width: 100%;
  }

  .fv-img-02 {
    right: -34%;
    width: 86%;
  }
}
/* =========================
   top news
========================= */

.top-news {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 20px 0;
}

.top-news-title {
  display: flex;
  align-items: flex-end;
  gap: 70px;
  margin-bottom: 32px;
}

.top-news-title-head p {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
}

.top-news-title-head h2 {
  margin: 0;
  font-family: serif;
  font-size: 72px;
  font-weight: 500;
  line-height: 1;
}

.top-news-title .back-btn {
  margin: 0 0 8px;
}

.news-main {
  width: 100%;
}

.newsLink-top:nth-child(2){
  animation-delay: .3s
}

.newsLink-top:nth-child(3){
  animation-delay: .6s
}
/* =========================
   768px
========================= */

@media screen and (max-width: 768px) {
  .top-news {
    padding: 70px 20px 0;
  }

  .top-news::before {
    left: 20%;
    width: 280px;
  }

  .top-news::after {
    right: -220px;
  }

  .top-news-title {
    gap: 36px;
  }

  .top-news-title-head h2 {
    font-size: 58px;
  }
}

/* =========================
   414px
========================= */

@media screen and (max-width: 414px) {
  .top-news {
    padding: 2rem 16px;
  }

  .top-news::before,
  .top-news::after {
    width: 220px;
    height: 90px;
  }

  .top-news::before {
    left: 35%;
  }

  .top-news::after {
    right: -150px;
  }

  .top-news-title {
    display: block;
    margin-bottom: 28px;
  }

  .top-news-title-head h2 {
    font-size: 48px;
  }

  .top-news-title .back-btn {
    margin: 24px 0 0;
  }
}

/* =========================
   title animation
========================= */

.top-title-head h2{
  position: relative;
  display: inline-block;

  color: #111;

  opacity: 0;

  overflow: hidden;
}

/* 白い覆い */
.top-title-head h2::after {
  content: "";

  position: absolute;
  inset: 0;

  background: #fff;

  clip-path: polygon(
    0 0,
    100% 0,
    100% 100%,
    0 100%
  );

  transition:
    clip-path 1.2s cubic-bezier(0.77, 0, 0.175, 1);

  z-index: 2;
}

/* 発火 */
.top-title-head h2.is-show {
  opacity: 1;
}

.top-title-head h2.is-show::after {
  clip-path: polygon(
    100% 0,
    100% 0,
    100% 100%,
    100% 100%
  );
}


/* =========================
   top about
========================= */

.top-about {
  height: 160vh;
  margin: 2rem 0;
}

.top-about-cont {
  position: sticky;
  top: 120px;
  width: min(100% - 40px, 1200px);
  height: 520px;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
}

.top-about-back {
  position: absolute;
  left: 50%;
  bottom: 0;

  width: 50%;
  height: 40%;

  object-fit: cover;

  transform: translateX(-50%) scale(0.65);
  transform-origin: center bottom;

  opacity: 0;

  transition:
    width 0.8s ease,
    height 0.8s ease,
    transform 0.8s ease,
    opacity 0.8s ease;
}

.top-about-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);

  opacity: 0;
  transform: translateY(100%);

  transition:
    opacity 0.7s ease,
    transform 0.7s ease;

  z-index: 2;
}

.top-about-title,
.top-about-text {
  position: absolute;
  z-index: 3;
  color: #fff;

  opacity: 0;
  transform: translateY(40px);

  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.top-about-title {
  left: 12%;
  top: 35%;
  transform: translateY(60px);
}

.top-about-title p {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
}

.top-about-title h2 {
  margin: 0;
  font-size: 54px;
  font-weight: 500;
  line-height: 1;
}

.top-about-text {
  right: 10%;
  top: 15%;
  max-width: 460px;
}

.top-about-text h3 {
  margin: 0 0 24px;
  font-family: serif;
  font-size: 30px;
  line-height: 1.6;
  font-weight: 500;
}

.top-about-text p {
  margin: 0;
  font-size: 13px;
  line-height: 2;
  font-weight: 500;
}

/* step 1：画像が下から拡大 */

.top-about.is-image-show .top-about-back {
  width: 100%;
  height: 100%;
  transform: translateX(-50%) scale(1);
  opacity: 1;
}

/* step 2：マスクと文字が上がる */

.top-about.is-text-show .top-about-mask {
  opacity: 1;
  transform: translateY(0);
}

.top-about.is-text-show .top-about-title,
.top-about.is-text-show .top-about-text {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   768px
========================= */

@media screen and (max-width: 768px) {
  .top-about {
    height: auto;
    margin: 90px 0;
  }

  .top-about-cont {
    position: relative;
    top: auto;
    height: auto;
    min-height: 520px;
  }

  .top-about-back {
    width: 100%;
    height: 100%;
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }

  .top-about-mask {
    opacity: 1;
    transform: translateY(0);
  }

  .top-about-title,
  .top-about-text {
    opacity: 1;
    transform: translateY(0);
  }

  .top-about-title {
    left: 32px;
    top: 70px;
  }

  .top-about-text {
    left: 32px;
    right: 32px;
    top: 210px;
    max-width: none;
  }

  .top-about-title h2 {
    font-size: 46px;
  }

  .top-about-text h3 {
    font-size: 26px;
  }
}

/* =========================
   414px
========================= */

@media screen and (max-width: 414px) {
  .top-about {
    margin: 70px 0;
  }

  .top-about-cont {
    width: calc(100% - 28px);
    min-height: 560px;
  }

  .top-about-title {
    left: 24px;
    top: 54px;
  }

  .top-about-title h2 {
    font-size: 38px;
  }

  .top-about-text {
    left: 24px;
    right: 24px;
    top: 180px;
  }

  .top-about-text h3 {
    font-size: 22px;
  }

  .top-about-text p {
    font-size: 12px;
    line-height: 1.9;
  }

  .top-about-text p br {
    display: none;
  }
}


/* =========================
   top service
========================= */
.top-service-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2tem auto;
}

.top-service-title p {
  margin: 0 auto;
  font-size: 16px;
  font-weight: 700;
}

.top-service-title h2 {
  margin: 0;
  font-family: serif;
  font-size: 72px;
  font-weight: 500;
  line-height: 1;
}

.top-service-title p{
  width: fit-content;
}

.top-service-cont {
  position: relative;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 120px 20px 130px;
}

.top-service-cont::after {
  content: "";
  position: absolute;
  right: -20%;
  top: 0;
  width: 40%;
  height: 100%;
  object-fit: contain;
  background: url("https://josho-group.com/system_panel/uploads/images/20260514082148963466.png") bottom left / cover no-repeat;
  z-index: -1;
}

/* =========================
   left
========================= */

.top-service-item-left {
  position: relative;
  z-index: 2;
}

.top-service-item-left > img {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  margin-bottom: 36px;
}

.top-service-item-left .back-btn {
  margin: 0 auto;
}

/* =========================
   PC mockup
========================= */

.top-service-cont .orca-pc {
  position: relative;
  width: 700px;
  max-width: 100%;
  margin-left: auto;
}

.top-service-cont .orca-pc-img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
}

/* =========================
   PC screen
========================= */

.top-service-cont .orca-pc-screen {
  position: absolute;
  top: 15%;
  left: 15%;
  width: 66%;
  height: 48%;
  overflow: hidden;
  border-radius: 6px;
  z-index: 3;
}

/* =========================
   loop slider
========================= */

.top-service-cont .orca-service-track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: topServiceLoopSlider 52s linear infinite;
}

.top-service-cont .orca-service-track img {
  display: block;
  width: auto;
  height: 100%;
  flex-shrink: 0;
  object-fit: cover;
  object-position: top;
}

@keyframes topServiceLoopSlider {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* =========================
   PC deco
========================= */

.top-service-cont .orca-pc-img-deco01,
.top-service-cont .orca-pc-img-deco02 {
  position: absolute;
  display: block;
  height: auto;
  z-index: 5;
  pointer-events: none;
}

.top-service-cont .orca-pc-img-deco01 {
  width: 155px;
  top: -72px;
  right: 105px;
}

.top-service-cont .orca-pc-img-deco02 {
  width: 145px;
  top: -4px;
  right: -16px;
  animation-delay: .5s;
}

/* =========================
   1024px
========================= */

@media screen and (max-width: 1024px) {
  .top-service-cont {
    grid-template-columns: 300px 1fr;
    gap: 44px;
    padding-bottom: 110px;
  }

  .top-service-cont::after {
    right: -160px;
    width: 330px;
    height: 460px;
  }

  .top-service-cont .orca-pc {
    width: 560px;
  }

  .top-service-cont .orca-service-track img {
    width: 440px;
  }

  .top-service-cont .orca-pc-img-deco01 {
    width: 130px;
    top: -60px;
    right: 90px;
  }

  .top-service-cont .orca-pc-img-deco02 {
    width: 122px;
    top: -2px;
    right: -12px;
  }
}

/* =========================
   768px
========================= */

@media screen and (max-width: 768px) {
  .top-service-cont {
    grid-template-columns: 1fr;
    gap: 60px;
    padding: 2rem 20px;
  }

  .top-service-cont::after {
    right: -20%;
    top: 0;
    width: 40%;
    height: 100%;
    object-fit: contain;
  }

  .top-service-item-left {
    text-align: center;
  }

  .top-service-item-left > img {
    max-width: 300px;
    margin: 0 auto 30px;
  }

  .top-service-item-left .back-btn {
    margin: 0 auto;
  }

  .top-service-cont .orca-pc {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }

  .top-service-cont .orca-service-track img {
    width: 470px;
  }

  .top-service-cont .orca-pc-img-deco01 {
    width: 118px;
    top: -54px;
    right: 78px;
  }

  .top-service-cont .orca-pc-img-deco02 {
    width: 108px;
    top: 0;
    right: -8px;
  }
}

/* =========================
   414px
========================= */

@media screen and (max-width: 414px) {
  .top-service-cont {
    gap: 46px;
    padding: 50px 16px 80px;
  }

  .top-service-cont::after {
    right: 0;
    top: 220px;
    width: 230px;
    height: 320px;
  }

  .top-service-item-left > img {
    max-width: 250px;
    margin-bottom: 24px;
  }

  .top-service-cont .orca-pc {
    width: 100%;
  }

  .top-service-cont .orca-pc-screen {
    border-radius: 4px;
  }

  .top-service-cont .orca-service-track img {
    width: 320px;
  }

  .top-service-cont .orca-pc-img-deco01 {
    width: 82px;
    top: -36px;
    right: 52px;
  }

  .top-service-cont .orca-pc-img-deco02 {
    width: 76px;
    top: 2px;
    right: -4px;
  }
}

/* =========================
   top transition links
========================= */

.top-trans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  max-width: 960px;
  margin: 40px auto 120px;
  padding: 0 20px;
}

.top-trans-link {
  display: block;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.top-trans-link img {
  display: block;
  width: 100%;
  height: auto;
}

.top-trans-link:hover {
  opacity: 0.7;
  transform: translateY(-4px);
}

/* =========================
   768px
========================= */

@media screen and (max-width: 768px) {
  .top-trans {
    gap: 36px;
    max-width: 680px;
    margin: 30px auto 90px;
  }
}

/* =========================
   414px
========================= */

@media screen and (max-width: 414px) {
  .top-trans {
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 20px auto 70px;
    padding: 0 16px;
  }
}

/* =========================
   top company
========================= */

.top-company {
  position: relative;
  width: 100%;
  min-height: 300px;
  margin: 80px auto 120px;
  padding: 60px 20px;
  overflow: hidden;
  background: url("https://josho-group.com/system_panel/uploads/images/20260514085122334788.png") center / cover no-repeat;
}

.top-company::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  z-index: 1;
}

.top-company-cont {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 520px;
  align-items: center;
  gap: 80px;
  width: min(100% - 40px, 960px);
  margin: 0 auto;
}

.top-company-title {
  color: #fff;
}

.top-company-title p {
  font-size: 16px;
  font-weight: 700;
}

.top-company-title h2 {
  margin: 0 0 26px;
  font-family: serif;
  font-size: 64px;
  font-weight: 500;
  line-height: 1;
}

.top-company-btn {
  margin: 0;
  color: #fff;
  border-color: #fff;
  background: transparent;
}

.top-company-btn::after {
  background: #fff;
}

.top-company-btn:hover {
  color: #000;
}

.top-company-img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
}

/* =========================
   1024px
========================= */

@media screen and (max-width: 1024px) {
  .top-company {
    padding: 54px 20px;
  }

  .top-company-cont {
    grid-template-columns: 1fr 440px;
    gap: 56px;
    width: min(100% - 40px, 900px);
  }

  .top-company-title h2 {
    font-size: 56px;
  }

  .top-company-img {
    height: 200px;
  }
}

/* =========================
   768px
========================= */

@media screen and (max-width: 768px) {
  .top-company {
    margin: 70px auto 100px;
    padding: 50px 20px;
  }

  .top-company-cont {
    grid-template-columns: 1fr;
    gap: 36px;
    width: calc(100% - 32px);
  }

  .top-company-img {
    width: 80%;
    height: 200px;
    margin-left: auto;
  }
}

/* =========================
   414px
========================= */

@media screen and (max-width: 414px) {
  .top-company {
    margin: 56px auto 80px;
    padding: 42px 16px;
  }

  .top-company-cont {
    width: 100%;
  }

  .top-company-title h2 {
    font-size: 44px;
  }

  .top-company-title p {
    font-size: 14px;
  }

  .top-company-img {
    width: 100%;
    height: 170px;
  }
}