/* ベースのスタイル */
body {
  font-family: 'Arial', sans-serif;
  background: linear-gradient(90deg, #0c0c1b, #0c0c44);
  color: white;
  margin: 0;
  padding: 0;
  text-align: center;
  overflow-x: hidden;
  width: 100%;
}

html {
  font-size: calc(100vw / 32);
}

img {
  width: 100%;
}

h1 {
  /* 全ての見出し */
  font-size: 42px;
  margin: 0;
}

h2,
p {
  margin: 0;
}

.title {
  text-align: left;
  padding: 3% 5%;
}

.title h1 {
  font-size: 1.05rem;
  font-weight: bold;
}

.title p {
  text-align: left;
  font-size: 0.7rem;
  margin-top: 5px;
  font-weight: bold;
}

/* トップページ */
.TopView {
  position: relative;
  width: 100%;
  background-size: cover;
  font-weight: bold;
  overflow: hidden;
}

#Top .Topimage {
  width: 100%;
  height: auto;
  display: block;
  transform-origin: center;
  transition: transform 0.3s ease;
}

#Top .logo {
  position: absolute;
  width: 23%;
  top: 10%;
  left: 13%;
  transform: translate(-50%, -50%);
  border-top-left-radius: 5% 11%;
  border-top-right-radius: 5% 11%;
  border-bottom-right-radius: 5% 11%;
  border-bottom-left-radius: 5% 11%;
}


#Top h1 {
  position: absolute;
  width: 100%;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 0.95rem;
  font-family: "M PLUS 1p", sans-serif;
  text-shadow: 2px 2px 4px #000000;
}

#Top p {
  position: absolute;
  top: 80%;
  left: 50%;
  width: 100%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1.9rem;
  font-family: "Shorai Sans StdN Black";
  text-shadow: 2px 2px 4px #000000;
}


/* 研修先について */
/* アパートと同じの部分あり */

.training-left,
.training-right {
  flex: 1;
}

#training .title {
  margin: 8% 0 0 4%;
}

.training-left .image-wrapper img {
  margin: 13% 0 0 5%;
  width: 87%;
}

.training-textLeft {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.5rem;
}

.training-right {
  position: relative;
  align-items: center;
}


.training-textRight {
  position: absolute;
  top: 60%;
  right: 30%;
  text-align: left;
  width: 60%;
  line-height: 2.2;
  font-size: 0.4rem;
}

#training a {
  color: white;
}


#training .btn {
  background-image: radial-gradient(#9a8324, #985a06);
  border: solid 1px #fff;
  color: #fff;
  text-align: center;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  width: 70%;
  padding: 2%;
  margin-top: 10%;
}

#training .btn a {
  color: white;
  text-decoration: none;
}



/* スキル */

.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 55px;
  grid-gap: 90px;
  margin: auto;
}

.card {
  position: relative;
  width: 360px;
  border-radius: 10px;
}

.card-number {
  position: absolute;
  top: -20%;
  font-size: 4rem;
  color: white;
  font-weight: bold;
  padding: 5px;
  text-shadow: 4px 5px #000000;
  z-index: 10;
}

.card-content {
  padding: 2%;
  text-align: left;
  position: absolute;
  top: 75%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
}

.card-content h2 {
  font-size: 0.5rem;
  margin: 0;
}

.card-content p {
  font-size: 0.4rem;
  color: #ffffff;
}

/* プログラムの特徴　その他 */

.benefit-container .title {
  padding: 3% 0;
}

.benefit-container {
  width: 90%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.benefit {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.benefit p {
  font-size: 0.47rem;
  color: #ffffff;
  text-align: left;
  padding: 0 4%;
}

/* 番号のデザイン */
.number {
  font-size: 1.4rem;
  font-weight: bold;
  color: white;
  min-width: 40px;
}

/* 区切り線 */
hr {
  border: 0;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
}

#language {
  margin-top: 8%;
}

.background-image {
  position: relative;
}

.overlay-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
  /* オーバーレイの半透明背景 */
  background-size: cover;
  padding: 20px;
  box-sizing: border-box;
}

.skill {
  padding-top: 5%;
}

.skill h2 {
  font-size: 1.3rem;
}

.image-container {
  padding-top: 6%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  /* 5列に設定 */
  max-width: 1200px;
  margin: 0 auto;
  gap: 30px;
}

.skill p {
  font-size: 0.6rem;
  padding: 3% 0;
}

/* 1日のスケジュール */
.schedule {
  display: flex;
  justify-content: center;
  width: 100%;
}

.topic {
  text-align: left;
  font-size: 0.5rem;
  margin: 0 5%;
  padding-bottom: 3%;
  width: 83%;
}

.schedule img {
  width: 40%;
  height: auto;
  margin-right: 5%;
}

.schedule hr {
  width: 90%;
  margin: 2%;
}

.time-schedule {
  width: 45%;
  text-align: left;
  margin-top: 2%;
}

.time h3 {
  font-size: 0.7rem;
  margin: 0;
}

.time p {
  font-size: 0.5rem;
  padding-left: 2.2%;
}

.time ul {
  margin: 2%
}

.time li {
  font-size: 0.4rem;
}

/* 研修生の声 */

#interview {
  margin-bottom: 5%;
}

#interview .title {
  padding: 5% 0 3% 3.5%;
  display: flex;
}

#interview .title p {
  font-size: 0.7rem;
  margin: 2% 3%;
  font-weight: normal;
}

.interview-container {
  display: flex;
  padding: 0 5.5%;
}

#interview img {
  width: 32%;
  height: auto;
  border-radius: 3%;
}

.interview-text {
  color: #fff;
  line-height: 1.5;
  font-size: 0.4rem;
  margin-left: 4%;
  margin-top: 2%;
  width: 62%;
  text-align: left;
}

/* .overlay-Q {
  background-color: rgba(255, 255, 255, 0.6);
  font-size: 0.4rem;
  font-weight: bold;
  align-self: flex-end;
  padding: 1% 2%;
  margin: 1%;
  text-align: right;
}

.overlay-A {
  background-color: rgba(255, 255, 255, 0.6);
  font-size: 0.36rem;
  padding: 1% 2%;
  text-align: left;
  width: 80%;
} */


/* 担当教師 */

.teacher-title {
  display: flex;
  align-items: end;
  justify-content: right;
  padding: 3% 8%;
}

.teacher-title p {
  font-size: 0.7rem;
  margin: 0 3%;
  margin-bottom: 10px;
}

.teacher-title h2 {
  font-size: 1rem;
}

.teacher-content {
  display: flex;
  justify-content: center;
}

.teacher-text {
  width: 55%;
  margin-right: 4%;
}

.teacher-text p {
  font-size: 0.42rem;
  line-height: 1.8;
  text-align: left;
}

.teacher-image {
  width: 27%;
  height: auto;
  margin-right: 4%;
}

.teacher-image img {
  border-radius: 3%;
}

/* 料金について */

#Fee img {
  width: 100%;
  height: auto;
}

.Fee-title {
  text-align: left;
  padding: 3% 8%;
}

.Fee-title h1 {
  font-size: 0.9rem;
  font-weight: bold;
}

.Fee-title p {
  text-align: left;
  font-size: 0.5rem;
  margin-top: 5px;
}

.Fee-overlay {
  position: absolute;
  top: 3%;
  width: 100%;
  color: white;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.breakdown {
  margin: 5% 0;
}

.breakdown h3 {
  font-size: 0.8rem;
  margin: 3% 0;
}

.breakdown ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  width: 50%;
  margin: 0 auto;
  text-align: left;
}

.breakdown li {
  font-size: 0.6rem;
  line-height: 1.8;
}

/* チェックマークアイコン */
.breakdown li::before {
  content: "✔";
  color: #ffffff;
  font-size: 0.68rem;
  margin-right: 4%;
}

#Fee .check-img {
  display: block;
  margin: 4% 0 0 4%;
  width: 18%;
}

.check-text {
  font-size: 0.67rem;
  text-align: left;
  width: 92%;
  margin: 0 auto;
}


/* アパートについて */
/* trainingと同じ */

.bothways-container {
  display: flex;
  justify-content: space-between;
}

.image-wrapper {
  position: relative;
  margin: 0 auto;
}


.photo-image {
  height: auto;
  display: block;
  margin-left: auto;
  width: 60%;
}

#apartment {
  background-image: url('img/pattern1.png');
  background-size: 33%;
  background-position: top left;
  background-repeat: no-repeat;
  color: white;
}

#apartment .bothways-container {
  position: relative;
}

.apart-textLeft {
  position: absolute;
  width: 100%;
  top: 80%;
  left: 60%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: left;
  padding: 10px;
  line-height: 1.2;

}


.apart-textRight {
  position: absolute;
  top: 60%;
  left: 67%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  padding: 10px;
  font-size: 0.8rem;
  width: 100%;
}

.photo-image {
  width: 68%;
}

.apart-textLeft h2 {
  font-size: 0.53rem;
  margin-bottom: 20px;
}

.apart-textLeft p {
  font-size: 0.47rem;
}

/* これからの流れ */
.process-container {
  font-family: Arial, sans-serif;
  margin: 0 auto;
}

.process-step {
  display: flex;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background-color: #8c7f6f;
  background-color: rgba(140, 127, 111, 0.4);
  width: 90%;
}

.process-step img {
  width: 15%;
  border-radius: 20%;
  object-fit: cover;
  margin-left: 5%;
  padding: 2%;
}

.subtitle {
  color: #ba9560;
  font-size: 0.7rem;
}

.text {
  padding-left: 2%;
}

.process-step p {
  text-align: left;
  font-size: 0.48rem;
  width: 100%;
  color: #f3f4ed;
  line-height: 1.6;
}


/* よくある質問 */

#faq {
  margin-top: 3%;
}

.faq-container {
  margin: 0 5%;
  padding: 1%;
}

.faq-item {
  /* 各質問のスタイル */
  text-align: left;
  padding: 3% 5%;
  border-left: 10px solid #FF9C00;
}

.faq-item h2 {
  font-size: 0.7rem;
  margin: 2% 0;
  font-weight: bold;
}

.faq-item p {
  font-size: 0.5rem;
  color: #ddd;
  line-height: 1.6;
}



/* ヘッダー */
.header-image {
  margin-top: 10%;
  width: 100%;
  height: auto;
}

.logo-container {
  margin-top: 5%;
  display: flex;
  justify-content: center;
}

.logo-container img {
  width: 7rem;
}

#X {
  width: 30%;
}

.NEXTLogo {
  width: 6.7rem;
  margin-top: 4.5%;
}


.sns {
  display: flex;
  justify-content: space-around;
}

.sns img {
  width: 1.6rem;
}

.sns img:hover {
  transform: scale(1.2, 1.2);
}


iframe {
  margin-top: 50px;
  width: 100%;
  height: 500px;
  border: none;
}

@media screen and (max-width: 768px) {

  #Top .Topimage {
    transform: scale(1.2);
  }

  #Top .logo {
    position: absolute;
    width: 20%;
    top: 12%;
    left: 13%;
  }

  #Top h1 {
    width: 77%;
    font-size: 1.3rem;
  }

  #Top p {
    font-size: 1.7rem;
    top: 84%;
  }

  .title h1 {
    font-size: 2.1rem;
    font-weight: bold;
  }

  .title p {
    text-align: left;
    font-size: 1.53rem;
    margin-top: 5px;
    font-weight: bold;
  }


  /* 研修先について-レスポンシブ */

  .bothways-container {
    flex-direction: column;
    /* 縦に並べる */
    gap: 1rem;
  }

  .image-wrapper {
    margin-top: 5%;
  }

  .training-left .image-wrapper img {
    margin: 0 auto;
    width: 90%;
  }

  .training-right img {
    margin-top: -4%;
    display: none;
    position: none;
  }

  .training-left,
  .training-right {
    width: 100%;
  }

  .training-textLeft {
    /* font-size: 1.6rem;
    width: 100%; */
    display: none;
  }


  .training-textRight {
    text-align: left;
    font-size: 1.2rem;
    width: 82%;
    margin-top: -88%;
    margin-right: -22%;
  }


  .training-textRight p {
    font-size: 1.6rem;
    line-height: 1.6;
  }

  #training .btn {
    width: 95%;
  }

  /* スキル */
  .card-container {
    margin: auto;
  }

  .card {
    width: 88%;
    margin-bottom: -5%;
  }

  .card-number {
    position: absolute;
    top: -13%;
    font-size: 7.5rem;
  }

  .card-content h2 {
    font-size: 2rem;
    margin-bottom: 5%;
    width: 100%;
  }

  .card-content p {
    font-size: 1.3rem;
    color: #ffffff;
  }


  /* プログラムの特徴-その他レスポンシブ */

  .benefit-container {
    padding: 10% 0;
  }

  .benefit {
    display: flex;
    flex-direction: column;
  }

  .benefit p {
    font-size: 1.2rem;
    color: #ffffff;
    text-align: left;
    padding: 2% 4%;
  }

  /* 番号のデザイン */
  .number {
    font-size: 4rem;
    font-weight: bold;
    color: white;
    min-width: 40px;
  }

  .skill {
    padding-top: 0;
  }


  /* スキル */
  .skill h2 {
    font-size: 1.9rem;
  }

  .skill p {
    font-size: 0.9rem;
    padding: 1% 0%;
  }


  .image-container {
    padding-top: 4%;
    gap: 10px;
  }


  /* 料金について */
  .check-text {
    font-size: 0.65rem;
    text-align: left;
    padding-left: 6%;
  }


  /* 研修生の声-レスポンシブ */
  #interview .title {
    padding: 4% 4.5%;
  }

  #interview .title p {
    font-size: 1.53rem;
    margin: 0 3%;
    margin-top: 4%;
  }

  .interview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0;
  }

  #interview img {
    width: 90%;
    height: auto;
    margin: 5% 0;
  }

  .interview-text {
    color: #fff;
    line-height: 1.5;
    font-size: 1.3rem;
    margin: 5% 0;
    width: 85%;
    text-align: left;
  }


  /* スケジュール-レスポンシブ */
  .schedule {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .topic {
    margin: 0 auto;
    font-size: 1.2rem;
    width: 90%;
  }

  .schedule img {
    display: none;
    /* width: 0%;
    height: auto;
    margin-top: 10%; */
  }

  .time-schedule {
    width: 92%;
    text-align: left;
    margin-top: 5%;
  }

  .time h3 {
    font-size: 1.5rem;
    margin: 0;
  }

  .time p {
    font-size: 1.2rem;
  }

  .time ul {
    margin: 4% 0;
    padding: 0 8%;
  }

  .time li {
    font-size: 1.05rem;
  }

  /* 担当教師-レスポンシブ */

  .teacher-title p {
    font-size: 1.53rem;
    margin: 0 2%;
    margin-bottom: 6px;
  }

  .teacher-title h2 {
    font-size: 2.1rem;
  }

  .teacher-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .teacher-text {
    width: 85%;
    margin: 5% 0;
  }

  .teacher-text p {
    font-size: 1.2rem;
  }

  .teacher-image {
    order: -1;
    /* 画像を先に表示（上に来るように） */
    width: 83%;
    height: auto;
    margin-top: 5%;
  }


  /* 料金について-レスポンシブ */

  #Fee {
    margin: 25% 0 40% 0;
  }

  .Fee-title {
    text-align: left;
    margin: 0 auto;
    margin-top: -28%;
  }

  .Fee-title h1 {
    font-size: 2rem;
    font-weight: bold;
  }

  .Fee-title p {
    text-align: left;
    font-size: 1.12rem;
  }

  .breakdown {
    padding-top: 8%;
    margin: 0;
  }

  .breakdown h3 {
    font-size: 1.8rem;
    margin: 0;
  }

  .breakdown ul {
    margin-top: 5%;
    width: 70%;
  }

  .breakdown li {
    font-size: 1.45rem;
    line-height: 1.5;
  }

  /* チェックマークアイコン */
  .breakdown li::before {
    color: #ffffff !important;
    font-size: 1.45rem;
    margin-right: 4%;
  }


  .checkpoint {
    margin-top: 23%;
    display: flex;
    flex-direction: column;
    align-items: left;
  }


  #Fee .check-img {
    width: 40%;
  }

  .check-text {
    font-size: 1.3rem;
    text-align: left;
    padding: 0;
    padding-top: 2%;
    width: 90%;
    margin: 0 auto;
  }


  /* これからの流れ-レスポンシブ */

  #process {
    margin-top: 50%;
  }

  .process-step {
    width: 100%;
    flex-direction: column;
    background: rgba(255, 255, 255, 0);
  }

  .process-step img {
    width: 50%;
    padding: 5%;
    margin: 0 35% 0 0;
  }

  .text {
    padding: 0;
    margin: 2% 6%;
  }

  .subtitle {
    color: #ba9560;
    font-size: 1.7rem;
  }

  .process-step p {
    font-size: 1.2rem;
  }




  /* よくある質問-レスポンシブ */

  #faq {
    margin-top: 10%;
  }

  .faq-container {
    margin: 0;
    background: rgba(255, 255, 255, 0.1);
  }

  .faq-item {
    /* 各質問のスタイル */
    text-align: left;
    background: rgba(255, 255, 255, 0);
    border-left: 0 solid #FF9C00;
    padding: 1% 5%;
    margin: 0;
  }

  .faq-item h2 {
    font-size: 1.3rem;
    margin: 2% 0;
    font-weight: bold;
  }

  .faq-item p {
    font-size: 1.2rem;
    color: #ddd;
    line-height: 1.6;
  }


  /* ヘッダー */

  .logo-container {
    flex-direction: column;
  }

  .logo-container img {
    width: 15rem;
  }

  #X {
    display: block;
    margin: 0 auto;
  }

  .sns {
    display: flex;
    justify-content: center;
    gap: 20px;
  }

  .sns img {
    width: 5rem;
  }

  .NEXTLogo {
    width: 13rem;
    margin-top: 0;
  }


  iframe {
    margin-top: 50px;
    width: 100%;
    height: 50svh;
    border: none;
  }

}


/* アニメーション */


/* ------------------------------
   ズームイン効果
------------------------------ */
.anim-box.zoomin.is-animated {
  animation: zoomIn 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes zoomIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* モバイル対応 */
@media (max-width: 768px) {
  .anim-box.zoomin.is-animated {
    animation-duration: 1s;
  }
}


/* ------------------------------
   スライドイン効果 - 右から
------------------------------ */
.anim-box.right-slidein {
  opacity: 0;
  transform: translateX(0);
  visibility: hidden;
}

.anim-box.right-slidein.is-animated {
  animation: right-slideIn 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  visibility: visible;
}

@keyframes right-slideIn {
  0% {
    transform: translateX(180px);
    opacity: 0;
  }

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

@media (max-width: 768px) {
  @keyframes right-slideIn {
    0% {
      transform: translateX(80px);
      opacity: 0;
    }

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


/* ------------------------------
   スライドイン効果 - 左から
------------------------------ */
.anim-box.left-slidein {
  opacity: 0;
  transform: translateX(0);
  visibility: hidden;
}

.anim-box.left-slidein.is-animated {
  animation: left-slideIn 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  visibility: visible;
}

@keyframes left-slideIn {
  0% {
    transform: translateX(-180px);
    opacity: 0;
  }

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

@media (max-width: 768px) {
  @keyframes left-slideIn {
    0% {
      transform: translateX(-80px);
      opacity: 0;
    }

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


/* ------------------------------
   スライドイン効果 - 下から
------------------------------ */
.anim-box.bottom-slidein.is-animated {
  animation: slideInUp 1.7s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes slideInUp {
  0% {
    transform: translateY(50px);
    opacity: 0;
  }

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

@media (max-width: 768px) {
  @keyframes slideInUp {
    0% {
      transform: translateY(25px);
      opacity: 0;
    }

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


/* ------------------------------
   フェードイン効果
------------------------------ */
.anim-box.fadein {
  opacity: 0;
  transform: translateX(0);
  visibility: hidden;
}

.anim-box.fadein.is-animated {
  animation: fadeIn 1.5s cubic-bezier(0.33, 1, 0.68, 1) forwards;
  visibility: visible;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .anim-box.fadein.is-animated {
    animation-duration: 1s;
  }
}


/* ------------------------------
   ポップアップ効果
------------------------------ */
.anim-box.popup.is-animated {
  animation: popup 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes popup {
  0% {
    transform: translateY(40px) scale(0.8);
    opacity: 0;
  }

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

@media (max-width: 768px) {
  @keyframes popup {
    0% {
      transform: translateY(20px) scale(0.9);
      opacity: 0;
    }

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

  @media (max-width: 768px) {

    .anim-box.right-slidein,
    .anim-box.left-slidein,
    .anim-box.fadein {
      opacity: 1 !important;
      visibility: visible !important;
      transform: none !important;
    }
  }

}


/* ------------------------------
   アニメーション無効化対応
------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .anim-box.is-animated {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}