@charset "utf-8";
/* ============================================================================
   CSS information
   style info : あゆみ製薬採用サイト トップページ（home.css）
   responsive : 768px以下でSP、769px以上でPC
   liquid     : コンテンツ幅 max 1000px、背景・フル幅要素は画面に追従
/* ============================================================================

/* ============================================================================
   目次
   00. 共通
   01. #mv          / メインビジュアル
   02. #read        / リード文
   03. #next10      / 次の10年を担う人へ
   04. #project     / プロジェクトストーリー
   05. #job         / 社員紹介
   06. #talk        / 座談会
   07. #ws_rec      / 働く環境・採用情報
   08. #last        / ラスト
   09. 共通パーツ
   10. アニメーション
/* ============================================================================ */

/* ============================================================================
   00.　共通 .inner（コンテンツ幅制限）
/* ============================================================================ */
section{
  padding-bottom: clamp(10px, calc(18vw - 60px), 100px);
}
.inner {
  width: 90%;
  max-width: var(--inner-max);
  margin: 0 auto;
  padding: var(--section-pad-v) 0;
}

/* ============================================================================
   00.　共通 セクションラベル・タイトル
/* ============================================================================ */
#home h2 {
  font-family: var(--font-en);
  font-size: clamp(6rem, 10vw, 12rem);
  font-weight: 700;
  color: var(--common_R);
  line-height: 1;
  margin-bottom: .4em;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: .1em;
}
#home h2 span{
  font-family: "M PLUS 1p";
  font-weight: 300;
  font-size: clamp(1.8rem, 2vw, 2.4rem);
}

.section__title--sm {
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--color-dark);
  line-height: 1.5;
  margin-bottom: 1em;
}
.section__title--sm small {
  font-size: 1.2rem;
  display: block;
  color: var(--color-gray);
  font-weight: 300;
}

.section__read {
  line-height: 2;
  margin-bottom: 2em;
}

/* ============================================================================
   00.　共通 道
/* ============================================================================ */
.road-wrapper {
  position: absolute;
  top: -50px;
  right: -150px;
  z-index: -100;
}

.road-wrapper2 {
  position: absolute;
  width: 140vw;
  margin-left: -20vw;
  top: 3700px;
  left: -50px;
  z-index: -100;
}

.road-wrapper svg,
.road-wrapper2 svg {
  width: 100%;
  height: auto;
}
.road-wrapper svg {
  width: 150vw;
  margin-left: -10vw;
}


/* SP */
@media (max-width: 768px) {
  .road-wrapper {
    margin-left: 0vw;
    right: 0;
  }
  .road-wrapper2 {
    width: 100vw;
    top: 1700px;
    margin-left: 0vw;
    left: 0;
    overflow: hidden;
  }
  .road-wrapper2 svg {
    width: 150%;
    height: 100vh;
    transform: scale(1.5);

  }
}


/* ============================================================================

　01. #mv / メインビジュアル

/* ============================================================================ */
#mv {
  position: relative;
  width: 100vw;
  height: 150vh;
  min-height: 560px;
  overflow: hidden;
}

/* オーバーレイ */
#mv::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* インナー */
#mv .inner {
  width: 100vw;
  max-width: none;
  position: relative;
  z-index: 2;
  max-width: var(--inner-max);
  height: 100%;
  margin: 0 auto;

}

/* キャッチコピー */
#mv h1.catch {
 font-size: clamp(2.8rem, 5vw, 8rem);
  font-weight: 900;
  line-height: 1.25;
  color: #000;
  letter-spacing: -.01em;
  padding-top: 30vh;
  margin-left: 20px;

  /* フェードインアニメ */
  animation: mv-catch-in 1.8s cubic-bezier(.25,.8,.25,1) both;
}

@keyframes mv-catch-in {
  0%   { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}


/* コラージュ写真 */
.round-wrap{
  position: absolute;
  z-index: -1;
}
.round-A {
  width: clamp(250px, 50vw, 500px);
  height: clamp(250px, 50vw, 500px);
  animation: mv-photo-in 2s .0s both;
  top: -5%;
  right: 5%;
}
.round-B {
  width: clamp(250px, 50vw, 500px);
  height: clamp(250px, 50vw, 500px);
  animation: mv-photo-in 2s .5s both;
  top: 20%;
  left: -15%;
}
.round-C {
  width: clamp(150px, 30vw, 400px);
  height: clamp(150px, 30vw, 400px);
  animation: mv-photo-in 2s 1s both;
  top: 30%;
  right: -15%;
}
.round-D {
  width: clamp(200px, 40vw, 600px);
  height: clamp(200px, 40vw, 600px);
  animation: mv-photo-in 2s 1.5s both;
  top: 50%;
  right: 25%;
}
/* A-D：周期・位相・歪みパターンをずらして同期感を解消 */
.round-A .rotate,
.round-A .round,
.round-A .round-inner {
  animation-duration: 90s;
  animation-delay: 0s;
}
.round-A .round { animation-name: round_anime; }

.round-B .rotate,
.round-B .round,
.round-B .round-inner {
  animation-duration: 84s;
  animation-delay: -21s;
}
.round-B .round { animation-name: round_anime_b; }

.round-C .rotate,
.round-C .round,
.round-C .round-inner {
  animation-duration: 96s;
  animation-delay: -38s;
}
.round-C .round { animation-name: round_anime_c; }

.round-D .rotate,
.round-D .round,
.round-D .round-inner {
  animation-duration: 78s;
  animation-delay: -12s;
}
.round-D .round { animation-name: round_anime_d; }

.round-A .round-inner {
  background-image: url(../images/fv_01.jpg);
}
.round-B .round-inner {
  background-image: url(../images/fv_02.jpg);
}
.round-C .round-inner {
  background-image: url(../images/fv_03.jpg);
}
.round-D .round-inner {
  background-image: url(../images/fv_04.jpg);
}

/* SP */
@media (max-width: 768px) {
  /*キャッチの位置調整*/
  #mv h1.catch{
    padding-top: 15vh;
  }
  /*楕円形の位置調整*/
  .round-B {
    top: 45%;
    left: -5%;
  }
  .round-D {
    top: 75%;
    right: 5%;
  }
}

@media (prefers-reduced-motion: reduce) {
  #mv h1.catch {
    animation: none !important;
  }
}

/* ============================================================================
   
　02. #read / リード文

/* ============================================================================ */
#read {
  position: relative;
  padding: 0;
  z-index: 2;
  overflow: visible;
}
#read .inner{
  display: flex;
  flex-direction: column;
  align-items: center;
}
#read .bg_img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-L);
}
#read h2{
  font-size:clamp(2.1rem, 4vw, 3.2rem) ;
  font-weight: 100;
  color: var(--common_R);
  line-height: 1.25;
  margin-bottom: 2em;
}

#read .box_txt {
  position: relative; /* これを追加 */
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  padding: clamp(20px, 5vw, 60px) ;
  box-shadow: 0 15px 40px rgba(0,0,0,0.05);
  margin-top: clamp(-200px, -15vw, -120px) ;
  margin-bottom: -100px;
  border-radius: var(--radius-S);
  display: inline-block;
}
.red_catch {
  color: var(--theme-red);
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 30px;
}
#read .box_txt strong {
  color: var(--common_R);
}


@media only screen and (max-width: 768px) {
  #read {
    margin-top: 0px;
  }
  .read__box-wrap {
    padding: 50px 0 70px;
  }
  .read__box {
    padding: 32px 24px;
    border-radius: 12px;
  }
  .read__heading {
    font-size: 1.5rem;
  }
  #read .bg_img img{
    border-radius: var(--radius-S);
  }
}


/* ============================================================================
   
　03. #next10 / 次の10年を担う人へ

/* ============================================================================ */
#next10 {
  position: relative;
  min-height: 100vh;
  z-index: 0;
}
#next10 .inner {
  margin-top: 200px;
  margin-bottom: 200px;
}
#next10 .bg_img {
  position: absolute;
  inset: 0;
}
#next10 .bg_img::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  z-index: 0;
  background: linear-gradient(20deg, rgba(255, 255, 255, 1) 15%, rgba(255, 255, 255, 0) 70%);;
}
#next10 .bg_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#next10 h2 img {
  width: clamp(250px, 55vw, 360px);

}
.number__text {
  max-width: 560px;
}


#next10 p {
  line-height: 2;
  margin-bottom: 2em;
}


/* ============================================================================

　04. #project / プロジェクトストーリー

/* ============================================================================ */
#project {
  position: relative;
  padding: clamp(10px, calc(18vw - 60px), 100px);
}

#project .inner {
  display: flex;
  align-items: stretch;
  min-height: 520px;
}

#project .round-wrap{
  position: static;
}
.round-E {
  width: clamp(300px, 40vw, 800px);
  height: clamp(300px, 40vw, 800px);
  animation: mv-photo-in 2s 1.5s both;
}
.round-E .round-inner {
  background-image: url(../images/project_img.jpg);
}

#project .box_txt {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 5%;
  /*max-width: calc(50% + (100vw - var(--inner-max)) / 2);*/
  background: rgba(255, 255, 255, 0.9);
  padding: clamp(20px, 5vw, 60px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-S);
}
#project h2{
  margin-top: 0;
  padding-top: 0;
}

/* SP */
@media screen and (max-width: 768px) {
  #project .inner {
    display: block;
  }
}



/* ============================================================================
   05. #job / 社員紹介
/* ============================================================================ */
#job {}
#job .inner {
  display: flex;
  align-items: stretch;
  min-height: 480px;
}

#job .box_text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
min-width: 320px;
}


/* コンテナの基準設定 */
#job .bg_img {
  position: relative;
  width: 60vw;
  max-width: 800px; /* カンプのレイアウトを維持する最大幅。環境に合わせて調整すること */
  aspect-ratio: 3 / 4; /* コンテナの高さを確保。ブラウザ幅に応じて高さも可変する */
  margin: 0 auto;
  padding: 0;
  list-style: none;
  transform: translateX(8vw) !important;
}
/* 各画像の共通設定 */
#job .bg_img li {
  position: absolute;
  border-radius: 16px; /* カンプの角丸を再現 */
  overflow: hidden;
}
#job .bg_img li img {
  width: 100%;
  height: auto;
  display: block;
}
/* 1番目：車（左側配置、z-index中） */
#job .bg_img li:nth-child(1) {
  top: 18%;
  left: 0;
  width: 38%;
  z-index: 2;
}
/* 2番目：握手（中央下部配置、最前面） */
#job .bg_img li:nth-child(2) {
  top: 40%;
  left: 22%;
  width: 38%;
  z-index: 4;
}
/* 3番目：クリーンルーム（中央上部配置、最背面） */
#job .bg_img li:nth-child(3) {
  top: 0;
  left: 42%;
  width: 38%;
  z-index: 1;
}
/* 4番目：スマホ女性（右側配置、z-index中） */
#job .bg_img li:nth-child(4) {
  top: 28%;
  right: 0;
  width: 38%;
  z-index: 3;
}


/* SP */
@media screen and (max-width: 768px) {
  #job .inner {
    flex-direction: column-reverse;/*1カラムで写真を上に*/
  }
  #job .bg_img {
    /* 100vw＋translateX だとモバイルで横スクロールが出やすいので、幅はコンテナに合わせる */
    width: 100%;
    transform: none !important;
  }
}



/* ============================================================================
 
　06. #talk / 座談会

/* ============================================================================ */
#talk {
  position: relative;
}
#talk .bg_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .3;
}
#talk .inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6%;
}
#talk h2 {
  margin-top: -1.2em;
  font-size: clamp(4rem, 10vw, 12rem);
}

#talk .bg_img{
  display:block;
  width:100%;
  height:auto;
  mask-image: url("../images/talk_mask.svg");
  mask-repeat: no-repeat;
  mask-size: contain;
  mask-position: center;
}



/* ============================================================================
 
07. #ws_rec / 働き方
08. #ws_rec / 採用情報

/* ============================================================================ */
#ws_rec {
  background: var(--color-white);
}

#ws_rec .inner {
  display: flex;
  gap: 5%;
}

#ws_rec .col2 {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#ws_rec .bg_img {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius-S);
}
#ws_rec .col2 .bg_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}


#ws_rec .box_txt {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#ws_rec h2{
  margin-top: 0;
}
#ws_rec h2 a{
  color: var(--common_R);
  font-size: clamp(5.5rem, 6vw, 8rem);
  display: grid;
    grid-template-columns: repeat(2, auto);
    grid-template-rows: repeat(2, auto);
    align-items: center;
    gap: .2em;
}
#ws_rec h2 a:hover{
  text-decoration: none;
}
#ws_rec h2 a span{
  font-size: clamp(1.8rem, 2vw, 2.4rem);
  line-height: 1;
}

#ws_rec h2 span.arrow_circle::after{
  width: clamp(50px, 10vw, 50px);
    height: clamp(50px, 10vw, 50px);
}

/* SP */
@media screen and (max-width: 768px) {
  #ws_rec .inner {
    flex-direction: column;
  }
  .col2:last-of-type{margin-top: 50px;}
}




/* ============================================================================
   08. #last / ラスト
/* ============================================================================ */
#last {
  font-size: clamp(1.4rem, 3vw, 2.8rem);
  line-height: 3;
  text-align: center;
  padding-bottom: 250px;

}





/* ============================================================================
   10. レスポンシブ（768px以下 SP）
/* ============================================================================ */
@media only screen and (max-width: 768px) {

  :root {
    --section-pad-v: 60px;
  }

  /* MV */
  #mv {
    height: 100svh;
    min-height: 500px;
  }
  .mv__photos {
    display: none; /* SP では非表示 */
  }
  .mv__catch {
    font-size: clamp(2.4rem, 8vw, 3.6rem);
  }
  .mv__scroll {
    bottom: 24px;
  }

  /* number */
  .number__en-num {
    font-size: 5.5rem;
  }
  .number__lead {
    font-size: 1.6rem;
  }

  /* project */
  .project__inner {
    flex-direction: column;
    min-height: auto;
  }
  .project__photo {
    flex: none;
    max-width: 100%;
    width: 100%;
    height: 55vw;
    max-height: 320px;
  }
  .project__text {
    padding: 40px 5%;
    max-width: 100%;
  }

  /* job */
  .job__inner {
    flex-direction: column-reverse; /* SP: 写真→テキストの順 */
    min-height: auto;
  }
  .job__photo {
    flex: none;
    max-width: 100%;
    width: 100%;
    height: 55vw;
    max-height: 300px;
  }
  .job__text {
    padding: 40px 5%;
  }

  /* crosstalk */
  .crosstalk__inner {
    flex-direction: column;
    gap: 3em;
  }
  .crosstalk__text {
    flex: none;
    width: 100%;
  }
  .crosstalk__photos {
    width: 100%;
    height: 60vw;
    max-height: 300px;
  }

  /* workstyle_recruit */
  .wr__inner {
    flex-direction: column;
    gap: 4em;
  }



  /* section labels */
  .section__label {
    font-size: 1.8rem;
  }
}